(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("861d"),o=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),a=/./.test;r({target:"RegExp",proto:!0,forced:!o},{test:function(e){if("function"!==typeof this.exec)return a.call(this,e);var t=this.exec(e);if(null!==t&&!i(t))throw new Error("RegExp exec method returned something other than an Object or null");return!!t}})},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"030f":function(e,t,n){(function(e){(function(t){"use strict";var n=function(){},r=function(e){return function(){return e()}},i=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},o=function(e){return function(){return e}},a=function(e){return e};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var l=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},u=function(e){return function(){throw new Error(e)}},c=o(!1),f=o(!0),d=tinymce.util.Tools.resolve("tinymce.ThemeManager"),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};function p(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var m,v=function(){return y},y=function(){var e=function(e){return e.isNone()},t=function(e){return e()},r=function(e){return e},i={fold:function(e,t){return e()},is:c,isSome:c,isNone:f,getOr:r,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:r,orThunk:t,map:v,each:n,bind:v,exists:c,forall:f,filter:v,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(i),i}(),b=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:f,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return b(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:y},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,(function(t){return n(e,t)}))}};return i},_=function(e){return null===e||void 0===e?y:b(e)},w={some:b,none:v,from:_},x=function(e){var t=function(t){return e===t},n=function(t){return x(e)},r=function(t){return x(e)},i=function(t){return x(t(e))},a=function(t){return x(e)},s=function(t){t(e)},l=function(t){return t(e)},u=function(t,n){return n(e)},d=function(t){return t(e)},h=function(t){return t(e)},p=function(){return w.some(e)};return{is:t,isValue:f,isError:c,getOr:o(e),getOrThunk:o(e),getOrDie:o(e),or:n,orThunk:r,fold:u,map:i,mapError:a,each:s,bind:l,exists:d,forall:h,toOption:p}},O=function(e){var t=function(e){return e()},r=function(){return u(String(e))()},i=function(e){return e},o=function(e){return e()},s=function(t){return O(e)},l=function(t){return O(t(e))},d=function(t){return O(e)},h=function(t,n){return t(e)};return{is:c,isValue:c,isError:f,getOr:a,getOrThunk:t,getOrDie:r,or:i,orThunk:o,fold:h,map:s,mapError:l,each:n,bind:d,exists:c,forall:f,toOption:w.none}},S=function(e,t){return e.fold((function(){return O(t)}),x)},C={value:x,error:O,fromOption:S},k=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},E=function(e){return function(t){return k(t)===e}},A=E("string"),T=E("object"),D=E("array"),M=E("boolean"),P=E("function"),I=E("number"),j=function(e,t){if(D(e)){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n]))return!1;return!0}return!1},L=Array.prototype.slice,N=Array.prototype.indexOf,R=Array.prototype.push,B=function(e,t){return N.call(e,t)},$=function(e,t){var n=B(e,t);return-1===n?w.none():w.some(n)},F=function(e,t){return B(e,t)>-1},z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},q=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},U=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=L.call(e,r,r+t);n.push(i)}return n},H=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},V=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},W=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},K=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},G=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},Y=function(e,t,n){return W(e,(function(e){n=t(n,e)})),n},X=function(e,t,n){return V(e,(function(e){n=t(n,e)})),n},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return w.some(i)}return w.none()},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return w.some(n)}return w.none()},J=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!D(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);R.apply(t,e[n])}return t},ee=function(e,t){var n=H(e,t);return J(n)},te=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},ne=function(e){var t=L.call(e,0);return t.reverse(),t},re=function(e,t){return G(e,(function(e){return!F(t,e)}))},ie=function(e){return[e]},oe=function(e,t){var n=L.call(e,0);return n.sort(t),n},ae=function(e){return 0===e.length?w.none():w.some(e[0])},se=function(e){return 0===e.length?w.none():w.some(e[e.length-1])},le=P(Array.from)?Array.from:function(e){return L.call(e)},ue=Object.keys,ce=Object.hasOwnProperty,fe=function(e,t){for(var n=ue(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},de=function(e,t){return he(e,(function(e,n){return{k:n,v:t(e,n)}}))},he=function(e,t){var n={};return fe(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},pe=function(e,t){var n=[];return fe(e,(function(e,r){n.push(t(e,r))})),n},ge=function(e,t){for(var n=ue(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return w.some(a)}return w.none()},me=function(e){return pe(e,(function(e){return e}))},ve=function(e,t){return ye(e,t)?w.from(e[t]):w.none()},ye=function(e,t){return ce.call(e,t)},be=function(e){if(!D(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var n=[],r={};return V(e,(function(i,o){var a=ue(i);if(1!==a.length)throw new Error("one and only one name per case");var s=a[0],l=i[s];if(void 0!==r[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!D(l))throw new Error("case arguments must be an array");n.push(s),r[s]=function(){var r=arguments.length;if(r!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+r);for(var i=new Array(r),a=0;a<i.length;a++)i[a]=arguments[a];var u=function(e){var t=ue(e);if(n.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+"\nActual: "+t.join(","));var r=te(n,(function(e){return F(t,e)}));if(!r)throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+n.join(", "));return e[s].apply(null,i)};return{fold:function(){if(arguments.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+arguments.length);var t=arguments[o];return t.apply(null,i)},match:u,log:function(e){t.console.log(e,{constructors:n,constructor:s,params:i})}}}})),r},_e={generate:be},we=Object.prototype.hasOwnProperty,xe=function(e,t){return t},Oe=function(e,t){var n=T(e)&&T(t);return n?Ce(e,t):t},Se=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)we.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},Ce=Se(Oe),ke=Se(xe),Ee=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Ae=_e.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),Te=function(e){return Ae.defaultedThunk(o(e))},De=function(e){return Ae.mergeWithThunk(o(e))},Me=Ae.strict,Pe=Ae.asOption,Ie=Ae.defaultedThunk,je=Ae.mergeWithThunk,Le=function(e,t){var n={};return fe(e,(function(e,r){F(t,r)||(n[r]=e)})),n},Ne=function(e){return function(t){return ye(t,e)?w.from(t[e]):w.none()}},Re=function(e,t){return function(n){return ye(n,e)?n[e]:t}},Be=function(e,t){return Ne(t)(e)},$e=function(e,t){return ye(e,t)&&void 0!==e[t]&&null!==e[t]},Fe=function(e,t){var n={};return n[e]=t,n},ze=function(e){var t={};return V(e,(function(e){t[e.key]=e.value})),t},qe=(_e.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),function(e){var t=[],n=[];return V(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}}),Ue=function(e,t){return Le(e,t)},He=function(e){return Ne(e)},Ve=function(e,t){return Re(e,t)},We=function(e,t){return Be(e,t)},Ke=function(e,t){return Fe(e,t)},Ge=function(e){return ze(e)},Ye=function(e,t){return 0===e.length?C.value(t):C.value(Ce(t,ke.apply(void 0,e)))},Xe=function(e){return C.error(J(e))},Ze=function(e,t){var n=qe(e);return n.errors.length>0?Xe(n.errors):Ye(n.values,t)},Qe=function(e,t){return $e(e,t)};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(m||(m={}));var Je=function(e,t,n){return e.stype===m.Error?t(e.serror):n(e.svalue)},et=function(e){var t=[],n=[];return V(e,(function(e){Je(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},tt=function(e,t){return e.stype===m.Error?{stype:m.Error,serror:t(e.serror)}:e},nt=function(e,t){return e.stype===m.Value?{stype:m.Value,svalue:t(e.svalue)}:e},rt=function(e,t){return e.stype===m.Value?t(e.svalue):e},it=function(e,t){return e.stype===m.Error?t(e.serror):e},ot=function(e){return{stype:m.Value,svalue:e}},at=function(e){return{stype:m.Error,serror:e}},st=function(e){return Je(e,C.error,C.value)},lt=function(e){return e.fold(at,ot)},ut={fromResult:lt,toResult:st,svalue:ot,partition:et,serror:at,bind:rt,bindError:it,map:nt,mapError:tt,fold:Je},ct=function(e,t){return e.length>0?ut.svalue(Ce(t,ke.apply(void 0,e))):ut.svalue(t)},ft=function(e){return i(ut.serror,J)(e)},dt=function(e,t){var n=ut.partition(e);return n.errors.length>0?ft(n.errors):ct(n.values,t)},ht=function(e){var t=ut.partition(e);return t.errors.length>0?ft(t.errors):ut.svalue(t.values)},pt={consolidateObj:dt,consolidateArr:ht},gt=_e.generate([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]},{thunk:["description"]},{func:["args","outputSchema"]}]),mt=_e.generate([{field:["name","presence","type"]},{state:["name"]}]),vt=function(e){return T(e)&&ue(e).length>100?" removed due to size":JSON.stringify(e,null,2)},yt=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):e;return H(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},bt=function(e,t){return ut.serror([{path:e,getErrorInfo:t}])},_t=function(e,t,n){return bt(e,(function(){return'Could not find valid *strict* value for "'+t+'" in '+vt(n)}))},wt=function(e,t){return bt(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},xt=function(e,t,n){return bt(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+vt(t)}))},Ot=function(e,t){return bt(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},St=function(e,t){return bt(e,(function(){return t}))},Ct=_e.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),kt=function(e,t,n){return Be(t,n).fold((function(){return _t(e,n,t)}),ut.svalue)},Et=function(e,t,n){var r=Be(e,t).fold((function(){return n(e)}),a);return ut.svalue(r)},At=function(e,t){return ut.svalue(Be(e,t))},Tt=function(e,t,n){var r=Be(e,t).map((function(t){return!0===t?n(e):t}));return ut.svalue(r)},Dt=function(e,t,n,r){return n.fold((function(n,i,a,s){var l=function(t){var o=s.extract(e.concat([n]),r,t);return ut.map(o,(function(e){return Fe(i,r(e))}))},u=function(t){return t.fold((function(){var e=Fe(i,r(w.none()));return ut.svalue(e)}),(function(t){var o=s.extract(e.concat([n]),r,t);return ut.map(o,(function(e){return Fe(i,r(w.some(e)))}))}))};return function(){return a.fold((function(){return ut.bind(kt(e,t,n),l)}),(function(e){return ut.bind(Et(t,n,e),l)}),(function(){return ut.bind(At(t,n),u)}),(function(e){return ut.bind(Tt(t,n,e),u)}),(function(e){var r=e(t),i=ut.map(Et(t,n,o({})),(function(e){return Ce(r,e)}));return ut.bind(i,l)}))}()}),(function(e,n){var i=n(t);return ut.svalue(Fe(e,r(i)))}))},Mt=function(e,t,n,r){var i=H(n,(function(n){return Dt(e,t,n,r)}));return pt.consolidateObj(i,{})},Pt=function(e){var t=function(t,n,r){return e().extract(t,n,r)},n=function(){return e().toString()},r=function(){return e().toDsl()};return{extract:t,toString:n,toDsl:r}},It=function(e){var t=function(t,n,r){return ut.bindError(e(r,n),(function(e){return St(t,e)}))},n=function(){return"val"},r=function(){return gt.itemOf(e)};return{extract:t,toString:n,toDsl:r}},jt=function(e){var t=ue(e);return G(t,(function(t){return Qe(e,t)}))},Lt=function(e){var t=Nt(e),n=Y(e,(function(e,t){return t.fold((function(t){return Ce(e,Ke(t,!0))}),o(e))}),{}),r=function(e,r,i){var o=M(i)?[]:jt(i),a=G(o,(function(e){return!Qe(n,e)}));return 0===a.length?t.extract(e,r,i):Ot(e,a)};return{extract:r,toString:t.toString,toDsl:t.toDsl}},Nt=function(e){var t=function(t,n,r){return Mt(t,r,e,n)},n=function(){var t=H(e,(function(e){return e.fold((function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"},r=function(){return gt.objOf(H(e,(function(e){return e.fold((function(e,t,n,r){return mt.field(e,n,r)}),(function(e,t){return mt.state(e)}))})))};return{extract:t,toString:n,toDsl:r}},Rt=function(e){var t=function(t,n,r){var i=H(r,(function(r,i){return e.extract(t.concat(["["+i+"]"]),n,r)}));return pt.consolidateArr(i)},n=function(){return"array("+e.toString()+")"},r=function(){return gt.arrOf(e)};return{extract:t,toString:n,toDsl:r}},Bt=function(e,t){var n=function(t,n){return Rt(It(e)).extract(t,a,n)},r=function(e,r,i){var o=ue(i),a=n(e,o);return ut.bind(a,(function(n){var o=H(n,(function(e){return Ct.field(e,e,Me(),t)}));return Nt(o).extract(e,r,i)}))},i=function(){return"setOf("+t.toString()+")"},o=function(){return gt.setOf(e,t)};return{extract:r,toString:i,toDsl:o}},$t=o(It(ut.svalue)),Ft=i(Rt,Nt),zt=Ct.state,qt=Ct.field,Ut=function(e,t,n,r,i){var o=We(r,i);return o.fold((function(){return xt(e,r,i)}),(function(r){return r.extract(e.concat(["branch: "+i]),t,n)}))},Ht=function(e,t){var n=function(n,r,i){var o=We(i,e);return o.fold((function(){return wt(n,e)}),(function(e){return Ut(n,r,i,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+ue(t)},i=function(){return gt.choiceOf(e,t)};return{extract:n,toString:r,toDsl:i}},Vt=It(ut.svalue),Wt=function(e){return Ft(e)},Kt=function(){return Rt(Vt)},Gt=Pt,Yt=function(e){return It((function(t){return e(t).fold(ut.serror,ut.svalue)}))},Xt=function(e,t){return Bt((function(t){return ut.fromResult(e(t))}),t)},Zt=function(e,t,n,r){var i=t.extract([e],n,r);return ut.mapError(i,(function(e){return{input:r,errors:e}}))},Qt=function(e,t,n){return ut.toResult(Zt(e,t,a,n))},Jt=function(e){return e.fold((function(e){throw new Error(tn(e))}),a)},en=function(e,t,n){return Jt(Qt(e,t,n))},tn=function(e){return"Errors: \n"+yt(e.errors)+"\n\nInput object: "+vt(e.input)},nn=function(e,t){return Ht(e,t)},rn=function(e,t){return Ht(e,de(t,Nt))},on=o(Vt),an=function(e,t){return It((function(n){var r=typeof n;return e(n)?ut.svalue(n):ut.serror("Expected type: "+t+" but got: "+r)}))},sn=an(I,"number"),ln=an(A,"string"),un=an(M,"boolean"),cn=an(P,"function"),fn=function(e){var t=function(e,t){var n=e.next();while(!n.done){if(!t(n.value))return!1;n=e.next()}return!0};if(Object(e)!==e)return!0;switch({}.toString.call(e).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(e).every((function(t){return fn(e[t])}));case"Map":return t(e.keys(),fn)&&t(e.values(),fn);case"Set":return t(e.keys(),fn);default:return!1}},dn=It((function(e){return fn(e)?ut.svalue(e):ut.serror("Expected value to be acceptable for sending via postMessage")})),hn=function(e){return Yt((function(t){return F(e,t)?C.value(t):C.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},pn=function(e){return qt(e,e,Me(),$t())},gn=function(e,t){return qt(e,e,Me(),t)},mn=function(e){return gn(e,sn)},vn=function(e){return gn(e,ln)},yn=function(e,t){return qt(e,e,Me(),hn(t))},bn=function(e){return gn(e,un)},_n=function(e){return gn(e,cn)},wn=function(e,t){return qt(e,e,Pe(),It((function(n){return ut.serror("The field: "+e+" is forbidden. "+t)})))},xn=function(e,t){return qt(e,e,Me(),Nt(t))},On=function(e,t){return qt(e,e,Me(),Ft(t))},Sn=function(e,t){return qt(e,e,Me(),Rt(t))},Cn=function(e){return qt(e,e,Pe(),$t())},kn=function(e,t){return qt(e,e,Pe(),t)},En=function(e){return kn(e,sn)},An=function(e){return kn(e,ln)},Tn=function(e){return kn(e,cn)},Dn=function(e,t){return kn(e,Rt(t))},Mn=function(e,t){return kn(e,Nt(t))},Pn=function(e,t){return kn(e,Lt(t))},In=function(e,t){return qt(e,e,Te(t),$t())},jn=function(e,t,n){return qt(e,e,Te(t),n)},Ln=function(e,t){return jn(e,t,sn)},Nn=function(e,t){return jn(e,t,ln)},Rn=function(e,t,n){return jn(e,t,hn(n))},Bn=function(e,t){return jn(e,t,un)},$n=function(e,t){return jn(e,t,cn)},Fn=function(e,t){return jn(e,t,dn)},zn=function(e,t,n){return jn(e,t,Rt(n))},qn=function(e,t,n){return jn(e,t,Nt(n))},Un=function(e,t){return zt(e,t)},Hn=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return Hn(n())};return{get:n,set:r,clone:i}},Vn=function(e,n){var r=n||t.document,i=r.createElement("div");if(i.innerHTML=e,!i.hasChildNodes()||i.childNodes.length>1)throw t.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Gn(i.childNodes[0])},Wn=function(e,n){var r=n||t.document,i=r.createElement(e);return Gn(i)},Kn=function(e,n){var r=n||t.document,i=r.createTextNode(e);return Gn(i)},Gn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},Yn=function(e,t,n){var r=e.dom();return w.from(r.elementFromPoint(t,n)).map(Gn)},Xn={fromHtml:Vn,fromTag:Wn,fromText:Kn,fromDom:Gn,fromPoint:Yn},Zn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Qn=function(e,n){return Zn(e,n,t.Node.DOCUMENT_POSITION_PRECEDING)},Jn=function(e,n){return Zn(e,n,t.Node.DOCUMENT_POSITION_CONTAINED_BY)},er={documentPositionPreceding:Qn,documentPositionContainedBy:Jn},tr=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},nr=function(e,t){var n=tr(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return or(r(1),r(2))},rr=function(e,t){var n=String(t).toLowerCase();return 0===e.length?ir():nr(e,n)},ir=function(){return or(0,0)},or=function(e,t){return{major:e,minor:t}},ar={nu:or,detect:rr,unknown:ir},sr="Edge",lr="Chrome",ur="IE",cr="Opera",fr="Firefox",dr="Safari",hr=function(e,t){return function(){return t===e}},pr=function(){return gr({current:void 0,version:ar.unknown()})},gr=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:hr(sr,t),isChrome:hr(lr,t),isIE:hr(ur,t),isOpera:hr(cr,t),isFirefox:hr(fr,t),isSafari:hr(dr,t)}},mr={unknown:pr,nu:gr,edge:o(sr),chrome:o(lr),ie:o(ur),opera:o(cr),firefox:o(fr),safari:o(dr)},vr="Windows",yr="iOS",br="Android",_r="Linux",wr="OSX",xr="Solaris",Or="FreeBSD",Sr=function(e,t){return function(){return t===e}},Cr=function(){return kr({current:void 0,version:ar.unknown()})},kr=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:Sr(vr,t),isiOS:Sr(yr,t),isAndroid:Sr(br,t),isOSX:Sr(wr,t),isLinux:Sr(_r,t),isSolaris:Sr(xr,t),isFreeBSD:Sr(Or,t)}},Er={unknown:Cr,nu:kr,windows:o(vr),ios:o(yr),android:o(br),linux:o(_r),osx:o(wr),solaris:o(xr),freebsd:o(Or)},Ar=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!i,s=e.isiOS()||e.isAndroid(),l=s||r("(pointer:coarse)"),u=i||!a&&s&&r("(min-device-width:768px)"),c=a||s&&!u,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!f;return{isiPad:o(i),isiPhone:o(a),isTablet:o(u),isPhone:o(c),isTouch:o(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:o(f),isDesktop:o(d)}},Tr=function(e,t){var n=String(t).toLowerCase();return Z(e,(function(e){return e.search(n)}))},Dr=function(e,t){return Tr(e,t).map((function(e){var n=ar.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Mr=function(e,t){return Tr(e,t).map((function(e){var n=ar.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Pr={detectBrowser:Dr,detectOs:Mr},Ir=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},jr=function(e,t){return-1!==e.indexOf(t)},Lr=function(e,t){return Ir(e,t,e.length-t.length)},Nr=function(e){return e.replace(/^\s+|\s+$/g,"")},Rr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Br=function(e){return function(t){return jr(t,e)}},$r=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return jr(e,"edge/")&&jr(e,"chrome")&&jr(e,"safari")&&jr(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Rr],search:function(e){return jr(e,"chrome")&&!jr(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return jr(e,"msie")||jr(e,"trident")}},{name:"Opera",versionRegexes:[Rr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Br("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Br("firefox")},{name:"Safari",versionRegexes:[Rr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(jr(e,"safari")||jr(e,"mobile/"))&&jr(e,"applewebkit")}}],Fr=[{name:"Windows",search:Br("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return jr(e,"iphone")||jr(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Br("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Br("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Br("linux"),versionRegexes:[]},{name:"Solaris",search:Br("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Br("freebsd"),versionRegexes:[]}],zr={browsers:o($r),oses:o(Fr)},qr=function(e,t){var n=zr.browsers(),r=zr.oses(),i=Pr.detectBrowser(n,e).fold(mr.unknown,mr.nu),o=Pr.detectOs(r,e).fold(Er.unknown,Er.nu),a=Ar(o,i,e,t);return{browser:i,os:o,deviceType:a}},Ur={detect:qr},Hr=function(e){return t.window.matchMedia(e).matches},Vr=Hn(Ur.detect(t.navigator.userAgent,Hr)),Wr=function(){return Vr.get()},Kr=(t.Node.ATTRIBUTE_NODE,t.Node.CDATA_SECTION_NODE,t.Node.COMMENT_NODE,t.Node.DOCUMENT_NODE),Gr=(t.Node.DOCUMENT_TYPE_NODE,t.Node.DOCUMENT_FRAGMENT_NODE,t.Node.ELEMENT_NODE),Yr=t.Node.TEXT_NODE,Xr=(t.Node.PROCESSING_INSTRUCTION_NODE,t.Node.ENTITY_REFERENCE_NODE,t.Node.ENTITY_NODE,t.Node.NOTATION_NODE,Gr),Zr=Kr,Qr=function(e,t){var n=e.dom();if(n.nodeType!==Xr)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Jr=function(e){return e.nodeType!==Xr&&e.nodeType!==Zr||0===e.childElementCount},ei=function(e,n){var r=void 0===n?t.document:n.dom();return Jr(r)?[]:H(r.querySelectorAll(e),Xn.fromDom)},ti=function(e,n){var r=void 0===n?t.document:n.dom();return Jr(r)?w.none():w.from(r.querySelector(e)).map(Xn.fromDom)},ni=function(e,t){return e.dom()===t.dom()},ri=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},ii=function(e,t){return er.documentPositionContainedBy(e.dom(),t.dom())},oi=Wr().browser,ai=oi.isIE()?ii:ri,si=function(e,t){return ni(e.element(),t.event().target())},li=function(e){if(!Qe(e,"can")&&!Qe(e,"abort")&&!Qe(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return en("Extracting event.handler",Lt([In("can",o(!0)),In("abort",o(!1)),In("run",n)]),e)},ui=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return X(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},ci=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return X(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},fi=function(e){return P(e)?{can:o(!0),abort:o(!1),run:e}:e},di=function(e){var t=ui(e,(function(e){return e.can})),n=ci(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];V(e,(function(e){e.run.apply(void 0,t)}))};return li({can:t,abort:n,run:r})},hi=o("touchstart"),pi=o("touchmove"),gi=o("touchend"),mi=o("mousedown"),vi=o("mousemove"),yi=o("mouseout"),bi=o("mouseup"),_i=o("mouseover"),wi=o("focusin"),xi=o("focusout"),Oi=o("keydown"),Si=o("keyup"),Ci=o("input"),ki=o("change"),Ei=o("click"),Ai=o("transitionend"),Ti=o("selectstart"),Di={tap:o("alloy.tap")},Mi=o("alloy.focus"),Pi=o("alloy.blur.post"),Ii=o("alloy.paste.post"),ji=o("alloy.receive"),Li=o("alloy.execute"),Ni=o("alloy.focus.item"),Ri=Di.tap,Bi=Wr().deviceType.isTouch()?Di.tap:Ei,$i=o("alloy.longpress"),Fi=o("alloy.sandbox.close"),zi=o("alloy.typeahead.cancel"),qi=o("alloy.system.init"),Ui=o("alloy.system.touchmove"),Hi=o("alloy.system.touchend"),Vi=o("alloy.system.scroll"),Wi=o("alloy.system.resize"),Ki=o("alloy.system.attached"),Gi=o("alloy.system.detached"),Yi=o("alloy.system.dismissRequested"),Xi=o("alloy.system.repositionRequested"),Zi=o("alloy.focusmanager.shifted"),Qi=o("alloy.slotcontainer.visibility"),Ji=o("alloy.change.tab"),eo=o("alloy.dismiss.tab"),to=o("alloy.highlight"),no=o("alloy.dehighlight"),ro=function(e,t){so(e,e.element(),t,{})},io=function(e,t,n){so(e,e.element(),t,n)},oo=function(e){ro(e,Li())},ao=function(e,t,n){so(e,t,n,{})},so=function(e,t,n,r){var i=h({target:t},r);e.getSystem().triggerEvent(n,t,de(i,o))},lo=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event())};function uo(e,t,n,r,i){return e(n,r)?w.some(n):P(i)&&i(n)?w.none():t(n,r,i)}"undefined"!==typeof t.window?t.window:Function("return this;")();var co=function(e){var t=e.dom().nodeName;return t.toLowerCase()},fo=function(e){return e.dom().nodeType},ho=function(e){return function(t){return fo(t)===e}},po=ho(Gr),go=ho(Yr),mo=function(e){var t=go(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},vo=Ee((function(){return yo(Xn.fromDom(t.document))})),yo=function(e){var t=e.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Xn.fromDom(t)},bo=function(e,t,n){var r=e.dom(),i=P(n)?n:o(!1);while(r.parentNode){r=r.parentNode;var a=Xn.fromDom(r);if(t(a))return w.some(a);if(i(a))break}return w.none()},_o=function(e,t,n){var r=function(e,t){return t(e)};return uo(r,bo,e,t,n)},wo=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=Xn.fromDom(e.childNodes[r]);if(t(i))return w.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return w.none()};return n(e.dom())},xo=function(e,t,n){var r=_o(e,(function(e){return t(e).isSome()}),n);return r.bind(t)},Oo=function(e){return Ge(e)},So=function(e,t){return{key:e,value:li({abort:t})}},Co=function(e,t){return{key:e,value:li({can:t})}},ko=function(e){return{key:e,value:li({run:function(e,t){t.event().prevent()}})}},Eo=function(e,t){return{key:e,value:li({run:t})}},Ao=function(e,t,n){return{key:e,value:li({run:function(e){t.apply(void 0,[e].concat(n))}})}},To=function(e){return function(t){return Eo(e,t)}},Do=function(e){return function(t){return{key:e,value:li({run:function(e,n){si(e,n)&&t(e,n)}})}}},Mo=function(e,t){return Eo(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){lo(t,t.element(),e,r)}))}))},Po=function(e,t,n){var r=t.partUids[n];return Mo(e,r)},Io=function(e,t){return Eo(e,(function(e,n){var r=n.event(),i=e.getSystem().getByDom(r.target()).fold((function(){var t=xo(r.target(),(function(t){return e.getSystem().getByDom(t).toOption()}),o(!1));return t.getOr(e)}),(function(e){return e}));t(e,i,n)}))},jo=function(e){return Eo(e,(function(e,t){t.cut()}))},Lo=function(e){return Eo(e,(function(e,t){t.stop()}))},No=function(e,t){return Do(e)(t)},Ro=Do(Ki()),Bo=Do(Gi()),$o=Do(qi()),Fo=To(Li()),zo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return V(e,(function(e,n){r[e]=o(t[n])})),r}},qo=function(e){return e.slice(0).sort()},Uo=function(e,t){throw new Error("All required keys ("+qo(e).join(", ")+") were not specified. Specified keys were: "+qo(t).join(", ")+".")},Ho=function(e){throw new Error("Unsupported keys for object: "+qo(e).join(", "))},Vo=function(e,t){if(!D(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");V(t,(function(t){if(!A(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Wo=function(e){var t=qo(e),n=Z(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Ko=function(e,t){var n=e.concat(t);if(0===n.length)throw new Error("You must specify at least one required or optional field.");return Vo("required",e),Vo("optional",t),Wo(n),function(r){var i=ue(r),a=te(e,(function(e){return F(i,e)}));a||Uo(e,i);var s=G(i,(function(e){return!F(n,e)}));s.length>0&&Ho(s);var l={};return V(e,(function(e){l[e]=o(r[e])})),V(t,(function(e){l[e]=o(Object.prototype.hasOwnProperty.call(r,e)?w.some(r[e]):w.none())})),l}},Go=function(e){return Xn.fromDom(e.dom().ownerDocument)},Yo=function(e){return Xn.fromDom(e.dom().ownerDocument.documentElement)},Xo=function(e){return Xn.fromDom(e.dom().ownerDocument.defaultView)},Zo=function(e){return w.from(e.dom().parentNode).map(Xn.fromDom)},Qo=function(e){return w.from(e.dom().offsetParent).map(Xn.fromDom)},Jo=function(e){return w.from(e.dom().nextSibling).map(Xn.fromDom)},ea=function(e){return H(e.dom().childNodes,Xn.fromDom)},ta=function(e,t){var n=e.dom().childNodes;return w.from(n[t]).map(Xn.fromDom)},na=function(e){return ta(e,0)},ra=(zo("element","offset"),function(e,n){var r=n||t.document,i=r.createElement("div");return i.innerHTML=e,ea(Xn.fromDom(i))}),ia=function(e,t){var n=Zo(e);n.each((function(n){n.dom().insertBefore(t.dom(),e.dom())}))},oa=function(e,t){var n=Jo(e);n.fold((function(){var n=Zo(e);n.each((function(e){sa(e,t)}))}),(function(e){ia(e,t)}))},aa=function(e,t){var n=na(e);n.fold((function(){sa(e,t)}),(function(n){e.dom().insertBefore(t.dom(),n.dom())}))},sa=function(e,t){e.dom().appendChild(t.dom())},la=function(e,t,n){ta(e,n).fold((function(){sa(e,t)}),(function(e){ia(e,t)}))},ua=function(e,t){V(t,(function(t){ia(e,t)}))},ca=function(e,t){V(t,(function(t){sa(e,t)}))},fa=function(e){e.dom().textContent="",V(ea(e),(function(e){da(e)}))},da=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ha=function(e){var t=ea(e);t.length>0&&ua(e,t),da(e)},pa=function(e){return e.dom().innerHTML},ga=function(e,t){var n=Go(e),r=n.dom(),i=Xn.fromDom(r.createDocumentFragment()),o=ra(t,r);ca(i,o),fa(e),sa(e,i)},ma=function(e){var t=Xn.fromTag("div"),n=Xn.fromDom(e.dom().cloneNode(!0));return sa(t,n),pa(t)},va=function(e,n,r){if(!(A(r)||M(r)||I(r)))throw t.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(n,r+"")},ya=function(e,t,n){va(e.dom(),t,n)},ba=function(e,t){var n=e.dom();fe(t,(function(e,t){va(n,t,e)}))},_a=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},wa=function(e,t){var n=e.dom();return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},xa=function(e,t){e.dom().removeAttribute(t)},Oa=function(e,t){return Xn.fromDom(e.dom().cloneNode(t))},Sa=function(e){return Oa(e,!1)},Ca=function(e){var t=Sa(e);return ma(t)},ka=function(e){return Ca(e)},Ea=function(e,t,n){return ni(t,e.element())&&!ni(t,n)},Aa=Oo([Co(Mi(),(function(e,n){var r=n.event().originator(),i=n.event().target();return!Ea(e,r,i)||(t.console.warn(Mi()+" did not get interpreted by the desired target. \nOriginator: "+ka(r)+"\nTarget: "+ka(i)+"\nCheck the "+Mi()+" event handlers"),!1)}))]),Ta=Object.freeze({events:Aa}),Da=0,Ma=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Da++,e+"_"+r+Da+String(n)},Pa=o("alloy-id-"),Ia=o("data-alloy-id"),ja=Pa(),La=Ia(),Na=function(e,t){var n=Ma(ja+e);return Ra(t,n),n},Ra=function(e,t){Object.defineProperty(e.dom(),La,{value:t,writable:!0})},Ba=function(e){var t=po(e)?e.dom()[La]:null;return w.from(t)},$a=function(e){return Ma(e)},Fa=a,za=function(e){var t=function(t){return function(){throw new Error("The component must be in a context to send: "+t+"\n"+ka(e().element())+" is not in context.")}};return{debugInfo:o("fake"),triggerEvent:t("triggerEvent"),triggerFocus:t("triggerFocus"),triggerEscape:t("triggerEscape"),build:t("build"),addToWorld:t("addToWorld"),removeFromWorld:t("removeFromWorld"),addToGui:t("addToGui"),removeFromGui:t("removeFromGui"),getByUid:t("getByUid"),getByDom:t("getByDom"),broadcast:t("broadcast"),broadcastOn:t("broadcastOn"),broadcastEvent:t("broadcastEvent"),isConnected:o(!1)}},qa=za(),Ua=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:Ha(a.slice(0,1).concat(a.slice(3)))}},e},Ha=function(e){return H(e,(function(e){return Lr(e,"/*")?e.substring(0,e.length-"/*".length):e}))},Va=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:Ha(o)}},e},Wa=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:Ha(o.slice(1))}},e},Ka=Ma("alloy-premade"),Ga=function(e){return Ke(Ka,e)},Ya=function(e){return We(e,Ka)},Xa=function(e){return Wa((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,[t.getApis()].concat([t].concat(n)))}),e)},Za={init:function(){return Qa({readState:function(){return"No State required"}})}},Qa=function(e){return e},Ja=function(e,t){var n=H(t,(function(e){return Mn(e.name(),[pn("config"),In("state",Za)])})),r=Qt("component.behaviours",Nt(n),e.behaviours).fold((function(t){throw new Error(tn(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),(function(e){return e}));return{list:t,data:de(r,(function(e){var t=e,n=t.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return function(){return n}}))}},es=function(e){return e.list},ts=function(e){return e.data},ns=function(e,t){var n={};return fe(e,(function(e,r){fe(e,(function(e,i){var o=Ve(i,[])(n);n[i]=o.concat([t(r,e)])}))})),n},rs=function(e){return{classes:void 0!==e.classes?e.classes:[],attributes:void 0!==e.attributes?e.attributes:{},styles:void 0!==e.styles?e.styles:{}}},is=function(e,t){return h(h({},e),{attributes:h(h({},e.attributes),t.attributes),styles:h(h({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},os=function(e,t,n,r){var i=h({},t);V(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=function(e,t){return{name:e,modification:t}},a=ns(i,o),s=function(e){return Y(e,(function(e,t){return h(h({},t.modification),e)}),{})},l=Y(a.classes,(function(e,t){return t.modification.concat(e)}),[]),u=s(a.attributes),c=s(a.styles);return rs({classes:l,attributes:u,styles:c})},as=function(e,t,n,r){var i=n.slice(0);try{var o=i.sort((function(n,i){var o=n[t](),a=i[t](),s=r.indexOf(o),l=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===l)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<l?-1:l<s?1:0}));return C.value(o)}catch(a){return C.error([a])}},ss=function(e,t){return{handler:e,purpose:o(t)}},ls=function(e,t){return{cHandler:e,purpose:o(t)}},us=function(e,t){return ls(s.apply(void 0,[e.handler].concat(t)),e.purpose())},cs=function(e){return e.cHandler},fs=function(e,t){return{name:o(e),handler:o(t)}},ds=function(e,t){var n={};return V(e,(function(e){n[e.name()]=e.handlers(t)})),n},hs=function(e,t,n){var r=h(h({},n),ds(t,e));return ns(r,fs)},ps=function(e,t,n,r){var i=hs(e,n,r);return ys(i,t)},gs=function(e){var t=fi(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},ms=function(e,t){return C.error(["The event ("+e+') has more than one behaviour that listens to it.\nWhen this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]).\nThe behaviours that can trigger it are: '+JSON.stringify(H(t,(function(e){return e.name()})),null,2)])},vs=function(e,t,n){var r=t[n];return r?as("Event: "+n,"name",e,r).map((function(e){var t=H(e,(function(e){return e.handler()}));return di(t)})):ms(n,e)},ys=function(e,t){var n=pe(e,(function(e,n){var r=1===e.length?C.value(e[0].handler()):vs(e,t,n);return r.map((function(r){var i=gs(r),o=e.length>1?G(t[n],(function(t){return z(e,(function(e){return e.name()===t}))})).join(" > "):e[0].name();return Ke(n,ss(i,o))}))}));return Ze(n,{})},bs=function(e){return Qt("custom.definition",Nt([qt("dom","dom",Me(),Nt([pn("tag"),In("styles",{}),In("classes",[]),In("attributes",{}),Cn("value"),Cn("innerHtml")])),pn("components"),pn("uid"),In("events",{}),In("apis",{}),qt("eventOrder","eventOrder",De({"alloy.execute":["disabling","alloy.base.behaviour","toggling","typeaheadevents"],"alloy.focus":["alloy.base.behaviour","focusing","keying"],"alloy.system.init":["alloy.base.behaviour","disabling","toggling","representing"],input:["alloy.base.behaviour","representing","streaming","invalidating"],"alloy.system.detached":["alloy.base.behaviour","representing","item-events","tooltipping"],mousedown:["focusing","alloy.base.behaviour","item-type-events"],mouseover:["item-type-events","tooltipping"]}),on()),Cn("domModification")]),e)},_s=function(e){return h(h({},e.dom),{uid:e.uid,domChildren:H(e.components,(function(e){return e.element()}))})},ws=function(e){return e.domModification.fold((function(){return rs({})}),rs)},xs=function(e){return e.events},Os=function(e,t){var n=_a(e,t);return void 0===n||""===n?[]:n.split(" ")},Ss=function(e,t,n){var r=Os(e,t),i=r.concat([n]);return ya(e,t,i.join(" ")),!0},Cs=function(e,t,n){var r=G(Os(e,t),(function(e){return e!==n}));return r.length>0?ya(e,t,r.join(" ")):xa(e,t),!1},ks=function(e){return void 0!==e.dom().classList},Es=function(e){return Os(e,"class")},As=function(e,t){return Ss(e,"class",t)},Ts=function(e,t){return Cs(e,"class",t)},Ds=function(e,t){ks(e)?e.dom().classList.add(t):As(e,t)},Ms=function(e){var t=ks(e)?e.dom().classList:Es(e);0===t.length&&xa(e,"class")},Ps=function(e,t){if(ks(e)){var n=e.dom().classList;n.remove(t)}else Ts(e,t);Ms(e)},Is=function(e,t){return ks(e)&&e.dom().classList.contains(t)},js=function(e,t){V(t,(function(t){Ds(e,t)}))},Ls=function(e,t){V(t,(function(t){Ps(e,t)}))},Ns=function(e){return void 0!==e.style&&P(e.style.getPropertyValue)},Rs=function(e,n,r){if(!A(r))throw t.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",e),new Error("CSS value must be a string: "+r);Ns(e)&&e.style.setProperty(n,r)},Bs=function(e,t){Ns(e)&&e.style.removeProperty(t)},$s=function(e,t,n){var r=e.dom();Rs(r,t,n)},Fs=function(e,t){var n=e.dom();fe(t,(function(e,t){Rs(n,t,e)}))},zs=function(e,t){var n=e.dom();fe(t,(function(e,t){e.fold((function(){Bs(n,t)}),(function(e){Rs(n,t,e)}))}))},qs=function(e,n){var r=e.dom(),i=t.window.getComputedStyle(r),o=i.getPropertyValue(n),a=""!==o||mo(e)?o:Us(r,n);return null===a?void 0:a},Us=function(e,t){return Ns(e)?e.style.getPropertyValue(t):""},Hs=function(e,t){var n=e.dom(),r=Us(n,t);return w.from(r).filter((function(e){return e.length>0}))},Vs=function(e,t,n){var r=Xn.fromTag(e);$s(r,t,n);var i=Hs(r,t);return i.isSome()},Ws=function(e,t){var n=e.dom();Bs(n,t),wa(e,"style")&&""===Nr(_a(e,"style"))&&xa(e,"style")},Ks=function(e){return e.dom().offsetWidth},Gs=function(e){return e.dom().value},Ys=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom().value=t},Xs=function(e){var t=Xn.fromTag(e.tag);ba(t,e.attributes),js(t,e.classes),Fs(t,e.styles),e.innerHtml.each((function(e){return ga(t,e)}));var n=e.domChildren;return ca(t,n),e.value.each((function(e){Ys(t,e)})),e.uid,Ra(t,e.uid),t},Zs=function(e){var t=Ve("behaviours",{})(e),n=G(ue(t),(function(e){return void 0!==t[e]}));return H(n,(function(e){return t[e].me}))},Qs=function(e,t){return Ja(e,t)},Js=function(e){var t=Zs(e);return Qs(e,t)},el=function(e,t,n){var r=_s(e),i=ws(e),o={"alloy.base.modification":i},a=t.length>0?os(n,o,t,r):i;return is(r,a)},tl=function(e,t,n){var r={"alloy.base.behaviour":xs(e)};return ps(n,e.eventOrder,t,r).getOrDie()},nl=function(e){var t=function(){return b},n=Hn(qa),r=Jt(bs(e)),i=Js(e),a=es(i),s=ts(i),l=el(r,a,s),u=Xs(l),c=tl(r,a,s),f=Hn(r.components),d=function(e){n.set(e)},h=function(){n.set(za(t))},p=function(){var e=ea(u),t=ee(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),(function(e){return[e]}))}));f.set(t)},g=function(t){var n=s,r=P(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},m=function(e){return P(s[e.name()])},v=function(){return r.apis},y=function(e){return s[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},b={getSystem:n.get,config:g,hasConfigured:m,spec:o(e),readState:y,getApis:v,connect:d,disconnect:h,element:o(u),syncComponents:p,components:f.get,events:o(c)};return b},rl=function(e){var t=Ve("components",[])(e);return H(t,ll)},il=function(e){var t=Fa(e),n=t.events,r=p(t,["events"]),i=rl(r),o=h(h({},r),{events:h(h({},Ta),n),components:i});return C.value(nl(o))},ol=function(e){var t=Xn.fromText(e);return al({element:t})},al=function(e){var t=en("external.component",Lt([pn("element"),Cn("uid")]),e),r=Hn(za()),i=function(e){r.set(e)},a=function(){r.set(za((function(){return s})))};t.uid.each((function(e){Ra(t.element,e)}));var s={getSystem:r.get,config:w.none,hasConfigured:o(!1),connect:i,disconnect:a,getApis:function(){return{}},element:o(t.element),spec:o(e),readState:o("No state"),syncComponents:n,components:o([]),events:o({})};return Ga(s)},sl=$a,ll=function(e){return Ya(e).fold((function(){var t=e.hasOwnProperty("uid")?e:h({uid:sl("")},e);return il(t).getOrDie()}),(function(e){return e}))},ul=Ga;function cl(e,t){var n=function(t,n){if(!I(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();Ns(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=qs(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return X(t,(function(t,n){var r=qs(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var fl,dl=cl("height",(function(e){var t=e.dom();return mo(e)?t.getBoundingClientRect().height:t.offsetHeight})),hl=function(e){return dl.get(e)},pl=function(e){return dl.getOuter(e)},gl=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=dl.max(e,t,n);$s(e,"max-height",r+"px")},ml=function(e,t){var n=function(n,r){return ml(e+n,t+r)};return{left:o(e),top:o(t),translate:n}},vl=ml,yl=function(e){var t=e.getBoundingClientRect();return vl(t.left,t.top)},bl=function(e,t){return void 0!==e?e:void 0!==t?t:0},_l=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom())return vl(n.offsetLeft,n.offsetTop);var o=bl(r.pageYOffset,i.scrollTop),a=bl(r.pageXOffset,i.scrollLeft),s=bl(i.clientTop,n.clientTop),l=bl(i.clientLeft,n.clientLeft);return wl(e).translate(a-l,o-s)},wl=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?vl(r.offsetLeft,r.offsetTop):mo(e)?yl(t):vl(0,0)},xl=cl("width",(function(e){return e.dom().offsetWidth})),Ol=function(e,t){xl.set(e,t)},Sl=function(e){return xl.get(e)},Cl=function(e){return xl.getOuter(e)},kl=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=xl.max(e,t,n);$s(e,"max-width",r+"px")},El=(Wr().browser.isSafari(),function(e){var n=void 0!==e?e.dom():t.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,i=n.body.scrollTop||n.documentElement.scrollTop;return vl(r,i)}),Al=function(e,t,n,r){return{x:o(e),y:o(t),width:o(n),height:o(r),right:o(e+n),bottom:o(t+r)}},Tl=function(e){var n=void 0===e?t.window:e,r=n["visualViewport"];if(void 0!==r)return Al(r.pageLeft,r.pageTop,r.width,r.height);var i=Xn.fromDom(n.document),o=n.document.documentElement,a=El(i),s=o.clientWidth,l=o.clientHeight;return Al(a.left(),a.top(),s,l)},Dl=function(e,t){var n=e.view(t);return n.fold(o([]),(function(t){var n=e.owner(t),r=Dl(e,n);return[t].concat(r)}))},Ml=function(e,t){var n=t.owner(e),r=Dl(t,n);return w.some(r)},Pl=function(e){var n=e.dom()===t.document?w.none():w.from(e.dom().defaultView.frameElement);return n.map(Xn.fromDom)},Il=function(e){return Go(e)},jl=Object.freeze({view:Pl,owner:Il}),Ll=function(e){var n=Xn.fromDom(t.document),r=El(n),i=Ml(e,jl);return i.fold(s(_l,e),(function(t){var n=wl(e),i=Y(t,(function(e,t){var n=wl(t);return{left:e.left+n.left(),top:e.top+n.top()}}),{left:0,top:0});return vl(i.left+n.left()+r.left(),i.top+n.top()+r.top())}))},Nl=zo("point","width","height"),Rl=zo("x","y","width","height"),Bl=function(e,t,n,r){return{x:o(e),y:o(t),width:o(n),height:o(r),right:o(e+n),bottom:o(t+r)}},$l=function(e){var t=_l(e),n=Cl(e),r=pl(e);return Bl(t.left(),t.top(),n,r)},Fl=function(e){var t=Ll(e),n=Cl(e),r=pl(e);return Bl(t.left(),t.top(),n,r)},zl=function(){return Tl(t.window)},ql=function(e,t,n){return _o(e,t,n).isSome()},Ul=function(e,t,n){return bo(e,(function(e){return Qr(e,t)}),n)},Hl=function(e,t){return ti(t,e)},Vl=function(e,t,n){return uo(Qr,Ul,e,t,n)},Wl=function(e){var t=_o(e,(function(e){if(!po(e))return!1;var t=_a(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=_a(e,"id"),n=Go(e);return Hl(n,'[aria-owns="'+t+'"]')}))},Kl=function(){var e=Ma("aria-owns"),t=function(t){ya(t,"aria-owns",e)},n=function(e){xa(e,"aria-owns")};return{id:o(e),link:t,unlink:n}},Gl=function(e,t){return Wl(t).exists((function(t){return Yl(e,t)}))},Yl=function(e,t){return ql(t,(function(t){return ni(t,e.element())}),o(!1))||Gl(e,t)},Xl=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Zl=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return w.none();t.push(r.getOrDie())}return w.some(t)},Ql=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return w.none()},Jl=function(e,t,n){return e.isSome()&&t.isSome()?w.some(n(e.getOrDie(),t.getOrDie())):w.none()},eu="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(fl||(fl={}));var tu=Hn({}),nu=function(e,n){var r=[],i=(new Date).getTime();return{logEventCut:function(e,t,n){r.push({outcome:"cut",target:t,purpose:n})},logEventStopped:function(e,t,n){r.push({outcome:"stopped",target:t,purpose:n})},logNoParent:function(e,t,n){r.push({outcome:"no-parent",target:t,purpose:n})},logEventNoHandlers:function(e,t){r.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,n){r.push({outcome:"response",purpose:n,target:t})},write:function(){var o=(new Date).getTime();F(["mousemove","mouseover","mouseout",qi()],e)||t.console.log(e,{event:e,time:o-i,target:n.dom(),sequence:H(r,(function(e){return F(["cut","stopped","response"],e.outcome)?"{"+e.purpose+"} "+e.outcome+" at ("+ka(e.target)+")":e.outcome}))})}}},ru=function(e,t,n){var r=We(tu.get(),e).orThunk((function(){var t=ue(tu.get());return Ql(t,(function(t){return e.indexOf(t)>-1?w.some(tu.get()[t]):w.none()}))})).getOr(fl.NORMAL);switch(r){case fl.NORMAL:return n(lu());case fl.LOGGING:var i=nu(e,t),o=n(i);return i.write(),o;case fl.STOP:return!0}},iu=["alloy/data/Fields","alloy/debugging/Debugging"],ou=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return Z(t,(function(e){return e.indexOf("alloy")>0&&!z(iu,(function(t){return e.indexOf(t)>-1}))})).getOr(eu)}return eu},au={logEventCut:n,logEventStopped:n,logNoParent:n,logEventNoHandlers:n,logEventResponse:n,write:n},su=function(e,t,n){return ru(e,t,n)},lu=o(au),uu=o([pn("menu"),pn("selectedMenu")]),cu=o([pn("item"),pn("selectedItem")]),fu=(o(Nt(cu().concat(uu()))),o(Nt(cu()))),du=xn("initSize",[pn("numColumns"),pn("numRows")]),hu=function(){return gn("markers",fu())},pu=function(){return xn("markers",[pn("backgroundMenu")].concat(uu()).concat(cu()))},gu=function(e){return xn("markers",H(e,pn))},mu=function(e,t,n){ou();return qt(t,t,n,Yt((function(e){return C.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},vu=function(e){return mu("onHandler",e,Te(n))},yu=function(e){return mu("onKeyboardHandler",e,Te(w.none))},bu=function(e){return mu("onHandler",e,Me())},_u=function(e){return mu("onKeyboardHandler",e,Me())},wu=function(e,t){return Un(e,o(t))},xu=function(e){return Un(e,a)},Ou=o(du),Su=zo("x","y","bubble","direction","label"),Cu=_e.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),ku=function(e,t,n,r,i,o,a,s,l){return e.fold(t,n,r,i,o,a,s,l)},Eu=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},Au=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},Tu=Cu.southeast,Du=Cu.southwest,Mu=Cu.northeast,Pu=Cu.northwest,Iu=Cu.south,ju=Cu.north,Lu=Cu.east,Nu=Cu.west,Ru=function(e){return e.x()},Bu=function(e,t){return e.x()+e.width()/2-t.width()/2},$u=function(e,t){return e.x()+e.width()-t.width()},Fu=function(e,t){return e.y()-t.height()},zu=function(e){return e.y()+e.height()},qu=function(e,t){return e.y()+e.height()/2-t.height()/2},Uu=function(e){return e.x()+e.width()},Hu=function(e,t){return e.x()-t.width()},Vu=function(e,t,n){return Su(Ru(e),zu(e),n.southeast(),Tu(),"layout-se")},Wu=function(e,t,n){return Su($u(e,t),zu(e),n.southwest(),Du(),"layout-sw")},Ku=function(e,t,n){return Su(Ru(e),Fu(e,t),n.northeast(),Mu(),"layout-ne")},Gu=function(e,t,n){return Su($u(e,t),Fu(e,t),n.northwest(),Pu(),"layout-nw")},Yu=function(e,t,n){return Su(Bu(e,t),Fu(e,t),n.north(),ju(),"layout-n")},Xu=function(e,t,n){return Su(Bu(e,t),zu(e),n.south(),Iu(),"layout-s")},Zu=function(e,t,n){return Su(Uu(e),qu(e,t),n.east(),Lu(),"layout-e")},Qu=function(e,t,n){return Su(Hu(e,t),qu(e,t),n.west(),Nu(),"layout-w")},Ju=function(){return[Vu,Wu,Ku,Gu,Xu,Yu,Zu,Qu]},ec=function(){return[Wu,Vu,Gu,Ku,Xu,Yu,Zu,Qu]},tc=function(){return[Vu,Wu,Ku,Gu,Xu,Yu]},nc=function(){return[Wu,Vu,Gu,Ku,Xu,Yu]},rc=function(e,t,n){return Fo((function(r){n(r,e,t)}))},ic=function(e,t,n){return $o((function(r,i){n(r,e,t)}))},oc=function(e,t,n,r,i,o){var a=Lt(e),s=Mn(t,[Pn("config",e)]);return uc(a,s,t,n,r,i,o)},ac=function(e,t,n,r,i,o){var a=e,s=Mn(t,[kn("config",e)]);return uc(a,s,t,n,r,i,o)},sc=function(e,t,n){var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var s=[r].concat(i);return r.config({name:o(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(s,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return Ua(r,n,t)},lc=function(e){return{key:e,value:void 0}},uc=function(e,t,n,r,i,o,a){var l=function(e){return Qe(e,n)?e[n]():w.none()},u=de(i,(function(e,t){return sc(n,e,t)})),c=de(o,(function(e,t){return Va(e,t)})),f=h(h(h({},c),u),{revoke:s(lc,n),config:function(t){var r=en(n+"-config",e,t);return{key:n,value:{config:r,me:f,configAsRaw:Ee((function(){return en(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:function(){return t},exhibit:function(e,t){return l(e).bind((function(e){return We(r,"exhibit").map((function(n){return n(t,e.config,e.state)}))})).getOr(rs({}))},name:function(){return n},handlers:function(e){return l(e).map((function(e){var t=Ve("events",(function(e,t){return{}}))(r);return t(e.config,e.state)})).getOr({})}});return f},cc=function(e){return Ge(e)},fc=Lt([pn("fields"),pn("name"),In("active",{}),In("apis",{}),In("state",Za),In("extra",{})]),dc=function(e){var t=en("Creating behaviour: "+e.name,fc,e);return oc(t.fields,t.name,t.active,t.apis,t.extra,t.state)},hc=Lt([pn("branchKey"),pn("branches"),pn("name"),In("active",{}),In("apis",{}),In("state",Za),In("extra",{})]),pc=function(e){var t=en("Creating behaviour: "+e.name,hc,e);return ac(rn(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},gc=o(void 0),mc=function(e,t){return t.universal()?e:G(e,(function(e){return F(t.channels(),e)}))},vc=function(e){return Oo([Eo(ji(),(function(t,n){var r=e.channels,i=ue(r),o=mc(i,n);V(o,(function(e){var i=r[e],o=i.schema,a=en("channel["+e+"] data\nReceiver: "+ka(t.element()),o,n.data());i.onReceive(t,a)}))}))])},yc=Object.freeze({events:vc}),bc=[gn("channels",Xt(C.value,Lt([bu("onReceive"),In("schema",on())])))],_c=dc({fields:bc,name:"receiving",active:yc}),wc=function(e,t){return rs({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},xc=Object.freeze({exhibit:wc}),Oc=function(e){e.dom().focus()},Sc=function(e){e.dom().blur()},Cc=function(e){var t=Go(e).dom();return e.dom()===t.activeElement},kc=function(e){var n=void 0!==e?e.dom():t.document;return w.from(n.activeElement).map(Xn.fromDom)},Ec=function(e){return kc(Go(e)).filter((function(t){return e.dom().contains(t.dom())}))},Ac=function(e,t){var r=Go(t),i=kc(r).bind((function(e){var n=function(t){return ni(e,t)};return n(t)?w.some(t):wo(t,n)})),o=e(t);return i.each((function(e){kc(r).filter((function(t){return ni(t,e)})).fold((function(){Oc(e)}),n)})),o},Tc=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right"],Dc=function(e,t,n){var r=function(e){return We(n,e).getOr([])},i=function(e,t,n){var i=re(Tc,n);return{offset:function(){return vl(e,t)},classesOn:function(){return ee(n,r)},classesOff:function(){return ee(i,r)}}};return{southeast:function(){return i(-e,t,["top","alignLeft"])},southwest:function(){return i(e,t,["top","alignRight"])},south:function(){return i(-e/2,t,["top","alignCentre"])},northeast:function(){return i(-e,-t,["bottom","alignLeft"])},northwest:function(){return i(e,-t,["bottom","alignRight"])},north:function(){return i(-e/2,-t,["bottom","alignCentre"])},east:function(){return i(e,-t/2,["valignCentre","left"])},west:function(){return i(-e,-t/2,["valignCentre","right"])},innerNorthwest:function(){return i(-e,t,["top","alignRight"])},innerNortheast:function(){return i(e,t,["top","alignLeft"])},innerNorth:function(){return i(-e/2,t,["top","alignCentre"])},innerSouthwest:function(){return i(-e,-t,["bottom","alignRight"])},innerSoutheast:function(){return i(e,-t,["bottom","alignLeft"])},innerSouth:function(){return i(-e/2,-t,["bottom","alignCentre"])},innerWest:function(){return i(e,-t/2,["valignCentre","right"])},innerEast:function(){return i(-e,-t/2,["valignCentre","left"])}}},Mc=function(){return Dc(0,0,{})},Pc=Ko(["x","y","width","height","maxHeight","maxWidth","direction","classes","label","candidateYforTest"],[]),Ic=zo("position","left","top","right","bottom"),jc=_e.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Lc=function(e,t,n,r,i,o){var a=t.x()-n,s=t.y()-r,l=t.width(),u=t.height(),c=i-(a+l),f=o-(s+u),d=w.some(a),h=w.some(s),p=w.some(c),g=w.some(f),m=w.none();return ku(t.direction(),(function(){return Ic(e,d,h,m,m)}),(function(){return Ic(e,m,h,p,m)}),(function(){return Ic(e,d,m,m,g)}),(function(){return Ic(e,m,m,p,g)}),(function(){return Ic(e,d,h,m,m)}),(function(){return Ic(e,d,m,m,g)}),(function(){return Ic(e,d,h,m,m)}),(function(){return Ic(e,m,h,p,m)}))},Nc=function(e,t){return e.fold((function(){return Ic("absolute",w.some(t.x()),w.some(t.y()),w.none(),w.none())}),(function(e,n,r,i){return Lc("absolute",t,e,n,r,i)}),(function(e,n,r,i){return Lc("fixed",t,e,n,r,i)}))},Rc=function(e,t){var n=s(Ll,t),r=e.fold(n,n,(function(){var e=El();return Ll(t).translate(-e.left(),-e.top())})),i=Cl(t),o=pl(t);return Bl(r.left(),r.top(),i,o)},Bc=function(e,t){return t.fold((function(){return e.fold(zl,zl,Bl)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=$c(e,n.x(),n.y());return Bl(r.left(),r.top(),n.width(),n.height())}))}))},$c=function(e,t,n){var r=vl(t,n),i=function(){var e=El();return r.translate(-e.left(),-e.top())};return e.fold(o(r),o(r),i)},Fc=function(e,t,n,r){return e.fold(t,n,r)},zc=jc.relative,qc=jc.fixed,Uc=function(e){return e},Hc=function(e,t){return function(n){return"rtl"===Vc(n)?t:e}},Vc=function(e){return"rtl"===qs(e,"direction")?"rtl":"ltr"},Wc=function(){return Mn("layouts",[pn("onLtr"),pn("onRtl")])},Kc=function(e,t,n,r){var i=t.layouts.map((function(t){return t.onLtr(e)})).getOr(n),o=t.layouts.map((function(t){return t.onRtl(e)})).getOr(r),a=Hc(i,o);return a(e)},Gc=function(e,t,n){var r=t.hotspot,i=Rc(n,r.element()),o=Kc(e.element(),t,tc(),nc());return w.some(Uc({anchorBox:i,bubble:t.bubble.getOr(Mc()),overrides:t.overrides,layouts:o,placer:w.none()}))},Yc=[pn("hotspot"),Cn("bubble"),In("overrides",{}),Wc(),wu("placement",Gc)],Xc=function(e,t,n){var r=$c(n,t.x,t.y),i=Bl(r.left(),r.top(),t.width,t.height),o=Kc(e.element(),t,Ju(),ec());return w.some(Uc({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:w.none()}))},Zc=[pn("x"),pn("y"),In("height",0),In("width",0),In("bubble",Mc()),In("overrides",{}),Wc(),wu("placement",Xc)],Qc=function(){return"\ufeff"},Jc=zo("start","soffset","finish","foffset"),ef={create:Jc},tf=_e.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),nf=function(e,t,n,r){return e.fold(t,n,r)},rf=function(e){return e.fold(a,a,a)},of=tf.before,af=tf.on,sf=tf.after,lf={before:of,on:af,after:sf,cata:nf,getStart:rf},uf=_e.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),cf=function(e){return uf.exact(e.start(),e.soffset(),e.finish(),e.foffset())},ff=function(e){return e.match({domRange:function(e){return Xn.fromDom(e.startContainer)},relative:function(e,t){return lf.getStart(e)},exact:function(e,t,n,r){return e}})},df=uf.domRange,hf=uf.relative,pf=uf.exact,gf=function(e){var t=ff(e);return Xo(t)},mf=ef.create,vf={domRange:df,relative:hf,exact:pf,exactFromRange:cf,getWin:gf,range:mf},yf=function(e,t){t.fold((function(t){e.setStartBefore(t.dom())}),(function(t,n){e.setStart(t.dom(),n)}),(function(t){e.setStartAfter(t.dom())}))},bf=function(e,t){t.fold((function(t){e.setEndBefore(t.dom())}),(function(t,n){e.setEnd(t.dom(),n)}),(function(t){e.setEndAfter(t.dom())}))},_f=function(e,t,n){var r=e.document.createRange();return yf(r,t),bf(r,n),r},wf=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom(),n),o.setEnd(r.dom(),i),o},xf=function(e){return{left:o(e.left),top:o(e.top),right:o(e.right),bottom:o(e.bottom),width:o(e.width),height:o(e.height)}},Of=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?w.some(n).map(xf):w.none()},Sf=_e.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Cf=function(e,t,n){return t(Xn.fromDom(n.startContainer),n.startOffset,Xn.fromDom(n.endContainer),n.endOffset)},kf=function(e,t){return t.match({domRange:function(e){return{ltr:o(e),rtl:w.none}},relative:function(t,n){return{ltr:Ee((function(){return _f(e,t,n)})),rtl:Ee((function(){return w.some(_f(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:Ee((function(){return wf(e,t,n,r,i)})),rtl:Ee((function(){return w.some(wf(e,r,i,t,n))}))}}})},Ef=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Sf.rtl(Xn.fromDom(e.endContainer),e.endOffset,Xn.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Cf(e,Sf.ltr,n)}))}return Cf(e,Sf.ltr,n)},Af=function(e,t){var n=kf(e,t);return Ef(e,n)},Tf=function(e,t){var n=Af(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom(),n),o.setEnd(r.dom(),i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom(),i),o.setEnd(t.dom(),n),o}})},Df=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>o)return a-1;o=l}}return 0},Mf=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom};function Pf(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?w.from(t.dom().nodeValue):w.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r};return{get:n,getOption:r,set:i}}var If=Pf(go,"text"),jf=function(e){return If.get(e)},Lf=function(e){return If.getOption(e)},Nf=function(e,t,n,r,i){var o=function(n){var r=e.dom().createRange();return r.setStart(t.dom(),n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=jf(t).length,l=Df(a,n,r,i.right,s);return o(l)},Rf=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getClientRects(),a=Ql(o,(function(e){return Mf(e,n,r)?w.some(e):w.none()}));return a.map((function(i){return Nf(e,t,n,r,i)}))},Bf=function(e,t,n,r){var i=e.dom().createRange(),o=ea(t);return Ql(o,(function(t){return i.selectNode(t.dom()),Mf(i.getBoundingClientRect(),n,r)?$f(e,t,n,r):w.none()}))},$f=function(e,t,n,r){return go(t)?Rf(e,t,n,r):Bf(e,t,n,r)},Ff=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return $f(e,t,a,s)},zf=function(e){return"img"===co(e)?1:Lf(e).fold((function(){return ea(e).length}),(function(e){return e.length}))},qf=" ",Uf=function(e){return Lf(e).filter((function(e){return 0!==e.trim().length||e.indexOf(qf)>-1})).isSome()},Hf=["img","br"],Vf=function(e){var t=Uf(e);return t||F(Hf,co(e))},Wf=function(e){return wo(e,Vf)},Kf=function(e){return Gf(e,Vf)},Gf=function(e,t){var n=function(e){for(var r=ea(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return w.some(o);var a=n(o);if(a.isSome())return a}return w.none()};return n(e)},Yf=!0,Xf=!1,Zf=function(e,t){return t-e.left<e.right-t?Yf:Xf},Qf=function(e,t,n){var r=e.dom().createRange();return r.selectNode(t.dom()),r.collapse(n),r},Jf=function(e,t,n){var r=e.dom().createRange();r.selectNode(t.dom());var i=r.getBoundingClientRect(),o=Zf(i,n),a=o===Yf?Wf:Kf;return a(t).map((function(t){return Qf(e,t,o)}))},ed=function(e,t,n){var r=t.dom().getBoundingClientRect(),i=Zf(r,n);return w.some(Qf(e,t,i))},td=function(e,t,n){var r=0===ea(t).length?ed:Jf;return r(e,t,n)},nd=function(e,t,n){return w.from(e.dom().caretPositionFromPoint(t,n)).bind((function(t){if(null===t.offsetNode)return w.none();var n=e.dom().createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),w.some(n)}))},rd=function(e,t,n){return w.from(e.dom().caretRangeFromPoint(t,n))},id=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return Ff(e,t,a,s)},od=function(e,t,n){return Xn.fromPoint(e,t,n).bind((function(r){var i=function(){return td(e,r,t)};return 0===ea(r).length?i():id(e,r,t,n).orThunk(i)}))},ad=(document.caretPositionFromPoint||document.caretRangeFromPoint,function(e,t){return ei(t,e)}),sd=function(e,t,n,r){var i=Go(e),o=i.dom().createRange();return o.setStart(e.dom(),t),o.setEnd(n.dom(),r),o},ld=function(e,t,n,r){var i=sd(e,t,n,r),o=ni(e,n)&&t===r;return i.collapsed&&!o},ud=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return w.some(ef.create(Xn.fromDom(t.startContainer),t.startOffset,Xn.fromDom(n.endContainer),n.endOffset))}return w.none()},cd=function(e){var t=Xn.fromDom(e.anchorNode),n=Xn.fromDom(e.focusNode);return ld(t,e.anchorOffset,n,e.focusOffset)?w.some(ef.create(t,e.anchorOffset,n,e.focusOffset)):ud(e)},fd=function(e){return w.from(e.getSelection()).filter((function(e){return e.rangeCount>0})).bind(cd)},dd=function(e,t){var n=Tf(e,t);return Of(n)},hd=zo("element","offset"),pd=function(e,t){var n=ea(e);if(0===n.length)return hd(e,t);if(t<n.length)return hd(n[t],0);var r=n[n.length-1],i=go(r)?jf(r).length:ea(r).length;return hd(r,i)},gd=_e.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),md=function(e){return e.fold((function(e){return e}),(function(e,t,n){return e.translate(-t,-n)}))},vd=function(e){return e.fold((function(e){return e}),(function(e,t,n){return e}))},yd=function(e){return X(e,(function(e,t){return e.translate(t.left(),t.top())}),vl(0,0))},bd=function(e){var t=H(e,md);return yd(t)},_d=function(e){var t=H(e,vd);return yd(t)},wd=gd.screen,xd=gd.absolute,Od=function(e,t,n){var r=Xo(n.root).dom(),i=function(t){var n=Go(t),r=Go(e.element());return ni(n,r)};return w.from(r.frameElement).map(Xn.fromDom).filter(i).map(_l)},Sd=function(e,t,n){var r=Go(e.element()),i=El(r),o=Od(e,t,n).getOr(i);return xd(o,i.left(),i.top())},Cd=function(e,t,n,r){var i=e,o=t,a=n,s=r;e<0&&(i=0,a=n+e),t<0&&(o=0,s=r+t);var l=wd(vl(i,o));return w.some(Nl(l,a,s))},kd=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point()],a=Fc(r,(function(){return _d(o)}),(function(){return _d(o)}),(function(){return bd(o)})),s=Rl(a.left(),a.top(),e.width(),e.height()),l=function(){return n.showAbove?[Ku,Gu,Vu,Wu,Yu,Xu]:[Vu,Wu,Ku,Gu,Xu,Xu]},u=function(){return n.showAbove?[Gu,Ku,Wu,Vu,Yu,Xu]:[Wu,Vu,Gu,Ku,Xu,Yu]},c=Kc(i,n,l(),u());return Uc({anchorBox:s,bubble:n.bubble.getOr(Mc()),overrides:n.overrides,layouts:c,placer:w.none()})}))},Ed={capRect:Cd,calcNewAnchor:kd},Ad=zo("element","offset"),Td=function(e,t){return go(e)?Ad(e,t):pd(e,t)},Dd=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return fd(e)}}));return n().map((function(e){var t=Td(e.start(),e.soffset()),n=Td(e.finish(),e.foffset());return vf.range(t.element(),t.offset(),n.element(),n.offset())}))},Md=function(e,t,n){var r=Xo(t.root).dom(),i=Sd(e,n,t),o=Dd(r,t).bind((function(e){var t=dd(r,vf.exactFromRange(e)).orThunk((function(){var t=Xn.fromText(Qc());return ia(e.start(),t),dd(r,vf.exact(t,0,t,1)).map((function(e){return da(t),e}))}));return t.bind((function(e){return Ed.capRect(e.left(),e.top(),e.width(),e.height())}))})),a=Dd(r,t).bind((function(e){return po(e.start())?w.some(e.start()):Zo(e.start())})),s=a.getOr(e.element());return Ed.calcNewAnchor(o,i,t,n,s)},Pd=[Cn("getSelection"),pn("root"),Cn("bubble"),Wc(),In("overrides",{}),In("showAbove",!1),wu("placement",Md)],Id=function(e,t,n){var r=Sd(e,n,t);return t.node.bind((function(i){var o=i.dom().getBoundingClientRect(),a=Ed.capRect(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element());return Ed.calcNewAnchor(a,r,t,n,s)}))},jd=[pn("node"),pn("root"),Cn("bubble"),Wc(),In("overrides",{}),In("showAbove",!1),wu("placement",Id)],Ld=function(e){return e.x()+e.width()},Nd=function(e,t){return e.x()-t.width()},Rd=function(e,t){return e.y()-t.height()+e.height()},Bd=function(e){return e.y()},$d=function(e,t,n){return Su(Ld(e),Bd(e),n.southeast(),Tu(),"link-layout-se")},Fd=function(e,t,n){return Su(Nd(e,t),Bd(e),n.southwest(),Du(),"link-layout-sw")},zd=function(e,t,n){return Su(Ld(e),Rd(e,t),n.northeast(),Mu(),"link-layout-ne")},qd=function(e,t,n){return Su(Nd(e,t),Rd(e,t),n.northwest(),Pu(),"link-layout-nw")},Ud=function(){return[$d,Fd,zd,qd]},Hd=function(){return[Fd,$d,qd,zd]},Vd=function(e,t,n){var r=Rc(n,t.item.element()),i=Kc(e.element(),t,Ud(),Hd());return w.some(Uc({anchorBox:r,bubble:Mc(),overrides:t.overrides,layouts:i,placer:w.none()}))},Wd=[pn("item"),Wc(),In("overrides",{}),wu("placement",Vd)],Kd=rn("anchor",{selection:Pd,node:jd,hotspot:Yc,submenu:Wd,makeshift:Zc}),Gd=zo("anchorBox","origin"),Yd=function(e,t){return Gd(e,t)},Xd=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},Zd=function(e,t,n){return e<=t?t:e>=n?n:e},Qd=_e.generate([{fit:["reposition"]},{nofit:["reposition","deltaW","deltaH"]}]),Jd=function(e,t,n,r,i){var o=i.x(),a=i.y(),s=i.width(),l=i.height(),u=e>=o,c=t>=a,f=u&&c,d=e+n<=o+s,h=t+r<=a+l,p=d&&h,g=Math.abs(Math.min(n,u?o+s-e:o-(e+n))),m=Math.abs(Math.min(r,c?a+l-t:a-(t+r))),v=Zd(e,i.x(),i.right()),y=Zd(t,i.y(),i.bottom());return{originInBounds:f,sizeInBounds:p,limitX:v,limitY:y,deltaW:g,deltaH:m}},eh=function(e,t,n,r){var i=e.x(),a=e.y(),s=e.bubble().offset().left(),l=e.bubble().offset().top(),u=r.y(),c=r.bottom(),f=r.x(),d=r.right(),h=i+s,p=a+l,g=Jd(h,p,t,n,r),m=g.originInBounds,v=g.sizeInBounds,y=g.limitX,b=g.limitY,_=g.deltaW,w=g.deltaH,x=o(b+w-u),O=o(c-b),S=Eu(e.direction(),O,O,x),C=o(y+_-f),k=o(d-y),E=Au(e.direction(),k,k,C),A=Pc({x:y,y:b,width:_,height:w,maxHeight:S,maxWidth:E,direction:e.direction(),classes:{on:e.bubble().classesOn(),off:e.bubble().classesOff()},label:e.label(),candidateYforTest:p});return m&&v?Qd.fit(A):Qd.nofit(A,_,w)},th=function(e,t,n,r,i){var o=n.width(),l=n.height(),u=function(e,a,s,u){var c=e(t,n,r),f=eh(c,o,l,i);return f.fold(Qd.fit,(function(e,t,n){var r=n>u||t>s;return r?Qd.nofit(e,t,n):Qd.nofit(a,s,u)}))},c=X(e,(function(e,t){var n=s(u,t);return e.fold(Qd.fit,n)}),Qd.nofit(Pc({x:t.x(),y:t.y(),width:n.width(),height:n.height(),maxHeight:n.height(),maxWidth:n.width(),direction:Tu(),classes:{on:[],off:[]},label:"none",candidateYforTest:t.y()}),-1,-1));return c.fold(a,a)},nh=function(e){return{width:o(Cl(e)),height:o(pl(e))}},rh=function(e,t,n,r){Ws(t,"max-height"),Ws(t,"max-width");var i=nh(t);return th(r.preference(),e,i,n,r.bounds())},ih=function(e,t){var n=t.classes();Ls(e,n.off),js(e,n.on)},oh=function(e,t,n){var r=n.maxHeightFunction();r(e,t.maxHeight())},ah=function(e,t,n){var r=n.maxWidthFunction();r(e,t.maxWidth())},sh=function(e,t,n){var r=function(e){return e+"px"},i=Nc(n.origin(),t);zs(e,{position:w.some(i.position()),left:i.left().map(r),top:i.top().map(r),right:i.right().map(r),bottom:i.bottom().map(r)})},lh=function(e,t){gl(e,Math.floor(t))},uh=o((function(e,t){lh(e,t),Fs(e,{"overflow-x":"hidden","overflow-y":"auto"})})),ch=o((function(e,t){lh(e,t)})),fh=Ko(["bounds","origin","preference","maxHeightFunction","maxWidthFunction"],[]),dh=function(e,t,n){return void 0===e[t]?n:e[t]},hh=function(e,t,r,i,o,a){var s=dh(a,"maxHeightFunction",uh()),l=dh(a,"maxWidthFunction",n),u=e.anchorBox(),c=e.origin(),f=fh({bounds:Bc(c,o),origin:c,preference:i,maxHeightFunction:s,maxWidthFunction:l});ph(u,t,r,f)},ph=function(e,t,n,r){var i=rh(e,t,n,r);sh(t,i,r),ih(t,i),oh(t,i,r),ah(t,i,r)},gh=function(){var e=t.document.documentElement;return qc(0,0,e.clientWidth,e.clientHeight)},mh=function(e){var t=_l(e.element()),n=e.element().dom().getBoundingClientRect();return zc(t.left(),t.top(),n.width,n.height)},vh=function(e,t,n,r,i){var o=Yd(n.anchorBox,t);hh(o,i.element(),n.bubble,n.layouts,r,n.overrides)},yh=function(e,t,n,r,i){bh(e,t,n,r,i,w.none())},bh=function(e,t,n,r,i,o){var a=o.map($l);return _h(e,t,n,r,i,a)},_h=function(e,t,n,r,i,a){var s=en("positioning anchor.info",Kd,r);Ac((function(){$s(i.element(),"position","fixed");var n=Hs(i.element(),"visibility");$s(i.element(),"visibility","hidden");var r=t.useFixed()?gh():mh(e),l=s.placement,u=a.map(o).or(t.getBounds);l(e,s,r).each((function(t){var n=t.placer.getOr(vh);n(e,r,t,u,i)})),n.fold((function(){Ws(i.element(),"visibility")}),(function(e){$s(i.element(),"visibility",e)})),Hs(i.element(),"left").isNone()&&Hs(i.element(),"top").isNone()&&Hs(i.element(),"right").isNone()&&Hs(i.element(),"bottom").isNone()&&Hs(i.element(),"position").is("fixed")&&Ws(i.element(),"position")}),i.element())},wh=function(e,t,n){return t.useFixed()?"fixed":"absolute"},xh=Object.freeze({position:yh,positionWithin:bh,positionWithinBounds:_h,getMode:wh}),Oh=[In("useFixed",c),Cn("getBounds")],Sh=dc({fields:Oh,name:"positioning",active:xc,apis:xh}),Ch=function(e){ro(e,Gi());var t=e.components();V(t,Ch)},kh=function(e){var t=e.components();V(t,kh),ro(e,Ki())},Eh=function(e,t){sa(e.element(),t.element())},Ah=function(e){V(e.components(),(function(e){return da(e.element())})),fa(e.element()),e.syncComponents()},Th=function(e,t){var n=e.components();Ah(e);var r=re(n,t);V(r,(function(t){Ch(t),e.getSystem().removeFromWorld(t)})),V(t,(function(t){t.getSystem().isConnected()?Eh(e,t):(e.getSystem().addToWorld(t),Eh(e,t),mo(e.element())&&kh(t)),e.syncComponents()}))},Dh=function(e,t){Mh(e,t,sa)},Mh=function(e,t,n){e.getSystem().addToWorld(t),n(e.element(),t.element()),mo(e.element())&&kh(t),e.syncComponents()},Ph=function(e){Ch(e),da(e.element()),e.getSystem().removeFromWorld(e)},Ih=function(e){var t=Zo(e.element()).bind((function(t){return e.getSystem().getByDom(t).toOption()}));Ph(e),t.each((function(e){e.syncComponents()}))},jh=function(e){var t=e.components();V(t,Ph),fa(e.element()),e.syncComponents()},Lh=function(e,t){Rh(e,t,sa)},Nh=function(e,t){Rh(e,t,oa)},Rh=function(e,t,n){n(e,t.element());var r=ea(t.element());V(r,(function(e){t.getByDom(e).each(kh)}))},Bh=function(e){var t=ea(e.element());V(t,(function(t){e.getByDom(t).each(Ch)})),da(e.element())},$h=function(e,t,n,r){n.get().each((function(t){jh(e)}));var i=t.getAttachPoint(e);Dh(i,e);var o=e.getSystem().build(r);return Dh(e,o),n.set(o),o},Fh=function(e,t,n,r){var i=$h(e,t,n,r);return t.onOpen(e,i),i},zh=function(e,t,n,r){return n.get().map((function(){return $h(e,t,n,r)}))},qh=function(e,t,n,r,i){Yh(e,t),Fh(e,t,n,r),i(),Zh(e,t)},Uh=function(e,t,n){n.get().each((function(r){jh(e),Ih(e),t.onClose(e,r),n.clear()}))},Hh=function(e,t,n){return n.isOpen()},Vh=function(e,t,n,r){return Hh(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},Wh=function(e,t,n){return n.get()},Kh=function(e,t,n,r){Hs(e.element(),t).fold((function(){xa(e.element(),n)}),(function(t){ya(e.element(),n,t)})),$s(e.element(),t,r)},Gh=function(e,t,n){if(wa(e.element(),n)){var r=_a(e.element(),n);$s(e.element(),t,r)}else Ws(e.element(),t)},Yh=function(e,t,n){var r=t.getAttachPoint(e);$s(e.element(),"position",Sh.getMode(r)),Kh(e,"visibility",t.cloakVisibilityAttr,"hidden")},Xh=function(e){return z(["top","left","right","bottom"],(function(t){return Hs(e,t).isSome()}))},Zh=function(e,t,n){Xh(e.element())||Ws(e.element(),"position"),Gh(e,"visibility",t.cloakVisibilityAttr)},Qh=Object.freeze({cloak:Yh,decloak:Zh,open:Fh,openWhileCloaked:qh,close:Uh,isOpen:Hh,isPartOf:Vh,getState:Wh,setContent:zh}),Jh=function(e,t){return Oo([Eo(Fi(),(function(n,r){Uh(n,e,t)}))])},ep=Object.freeze({events:Jh}),tp=[vu("onOpen"),vu("onClose"),pn("isPartOf"),pn("getAttachPoint"),In("cloakVisibilityAttr","data-precloak-visibility")],np=function(){var e=Hn(w.none()),t=o("not-implemented"),n=function(){return e.get().isSome()},r=function(t){e.set(w.some(t))},i=function(t){return e.get()},a=function(){e.set(w.none())};return Qa({readState:t,isOpen:n,clear:a,set:r,get:i})},rp=Object.freeze({init:np}),ip=dc({fields:tp,name:"sandboxing",active:ep,apis:Qh,state:rp}),op=o("dismiss.popups"),ap=o("reposition.popups"),sp=o("mouse.released"),lp=Lt([In("isExtraPart",o(!1)),Mn("fireEventInstead",[In("event",Yi())])]),up=function(e){var t,n=en("Dismissal",lp,e);return t={},t[op()]={schema:Lt([pn("target")]),onReceive:function(e,t){if(ip.isOpen(e)){var r=ip.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return ip.close(e)}),(function(t){return ro(e,t.event)}))}}},t},cp=Lt([In("isExtraPart",o(!1)),Mn("fireEventInstead",[In("event",Xi())]),_n("doReposition")]),fp=function(e){var t,n=en("Reposition",cp,e);return t={},t[ap()]={onReceive:function(e){ip.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return ro(e,t.event)}))}},t},dp=function(e,t,n){t.store.manager.onLoad(e,t,n)},hp=function(e,t,n){t.store.manager.onUnload(e,t,n)},pp=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},gp=function(e,t,n){return t.store.manager.getValue(e,t,n)},mp=function(e,t,n){return n},vp=Object.freeze({onLoad:dp,onUnload:hp,setValue:pp,getValue:gp,getState:mp}),yp=function(e,t){var n=e.resetOnDom?[Ro((function(n,r){dp(n,e,t)})),Bo((function(n,r){hp(n,e,t)}))]:[ic(e,t,dp)];return Oo(n)},bp=Object.freeze({events:yp}),_p=function(){var e=Hn(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return Qa({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},wp=function(){var e=function(){};return Qa({readState:e})},xp=function(){var e=Hn({}),t=Hn({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return We(e.get(),n).orThunk((function(){return We(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};V(n,(function(e){o[e.value]=e,We(e,"meta").each((function(t){We(t,"text").each((function(t){a[t]=e}))}))})),e.set(h(h({},r),o)),t.set(h(h({},i),a))};return Qa({readState:n,lookup:i,update:o,clear:r})},Op=function(e){return e.store.manager.state(e)},Sp=Object.freeze({memory:_p,dataset:xp,manual:wp,init:Op}),Cp=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},kp=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).fold((function(){return r.getFallbackEntry(i)}),(function(e){return e}))},Ep=function(e,t,n){var r=t.store;r.initialValue.each((function(r){Cp(e,t,n,r)}))},Ap=function(e,t,n){n.clear()},Tp=[Cn("initialValue"),pn("getFallbackEntry"),pn("getDataKey"),pn("setValue"),wu("manager",{setValue:Cp,getValue:kp,onLoad:Ep,onUnload:Ap,state:xp})],Dp=function(e,t,n){return t.store.getValue(e)},Mp=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},Pp=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Ip=[pn("getValue"),In("setValue",n),Cn("initialValue"),wu("manager",{setValue:Mp,getValue:Dp,onLoad:Pp,onUnload:n,state:Za.init})],jp=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Lp=function(e,t,n){return n.get()},Np=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Rp=function(e,t,n){n.clear()},Bp=[Cn("initialValue"),wu("manager",{setValue:jp,getValue:Lp,onLoad:Np,onUnload:Rp,state:_p})],$p=[jn("store",{mode:"memory"},rn("mode",{memory:Bp,manual:Ip,dataset:Tp})),vu("onSetValue"),In("resetOnDom",!1)],Fp=dc({fields:$p,name:"representing",active:bp,apis:vp,extra:{setValueFrom:function(e,t){var n=Fp.getValue(t);Fp.setValue(e,n)}},state:Sp}),zp=function(e,t){return qn(e,{},H(t,(function(t){return wn(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Un("dump",a)]))},qp=function(e){return e.dump},Up=function(e,t){return h(h({},e.dump),cc(t))},Hp={field:zp,augment:Up,get:qp},Vp="placeholder",Wp=_e.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Kp=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?Wp.single(!0,o(n)):We(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+ue(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},Gp=function(e,t,n,r){return n.uiType===Vp?Kp(e,t,n,r):Wp.single(!1,o(n))},Yp=function(e,t,n,r){var i=Gp(e,t,n,r);return i.fold((function(i,o){var a=o(t,n.config,n.validated),s=We(a,"components").getOr([]),l=ee(s,(function(n){return Yp(e,t,n,r)}));return[h(h({},a),{components:l})]}),(function(e,r){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(a);return o(i)}))},Xp=function(e,t,n,r){return ee(n,(function(n){return Yp(e,t,n,r)}))},Zp=function(e,t){var n=!1,r=function(){return n},i=function(){if(!0===n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},a=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:o(e),required:a,used:r,replace:i}},Qp=function(e,t,n,r){var i=de(r,(function(e,t){return Zp(t,e)})),o=Xp(e,t,n,i);return fe(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},Jp=Wp.single,eg=Wp.multiple,tg=o(Vp),ng=_e.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),rg=In("factory",{sketch:a}),ig=In("schema",[]),og=pn("name"),ag=qt("pname","pname",Ie((function(e){return"<alloy."+Ma(e.name)+">"})),on()),sg=Un("schema",(function(){return[Cn("preprocess")]})),lg=In("defaults",o({})),ug=In("overrides",o({})),cg=Nt([rg,ig,og,ag,lg,ug]),fg=Nt([rg,ig,og,lg,ug]),dg=Nt([rg,ig,og,ag,lg,ug]),hg=Nt([rg,sg,og,pn("unit"),ag,lg,ug]),pg=function(e){return e.fold(w.some,w.none,w.some,w.some)},gg=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},mg=function(e){return e.fold(a,a,a,a)},vg=function(e,t){return function(n){var r=en("Converting part type",t,n);return e(r)}},yg=vg(ng.required,cg),bg=vg(ng.external,fg),_g=vg(ng.optional,dg),wg=vg(ng.group,hg),xg=o("entirety"),Og=Object.freeze({required:yg,external:bg,optional:_g,group:wg,asNamedPart:pg,name:gg,asCommon:mg,original:xg}),Sg=function(e,t,n,r){return Ce(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},Cg=function(e,t,n){var r={},i={};return V(n,(function(e){e.fold((function(e){r[e.pname]=Jp(!0,(function(t,n,r){return e.factory.sketch(Sg(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=o(e.factory.sketch(Sg(t,e,n[xg()]),n))}),(function(e){r[e.pname]=Jp(!1,(function(t,n,r){return e.factory.sketch(Sg(t,e,n,r))}))}),(function(e){r[e.pname]=eg(!0,(function(t,n,r){var i=t[e.name];return H(i,(function(n){return e.factory.sketch(Ce(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:o(r),externals:o(i)}},kg=function(e,t){var n={};return V(t,(function(t){pg(t).each((function(t){var r=Eg(e,t.pname);n[t.name]=function(n){var i=en("Part: "+t.name+" in "+e,Nt(t.schema),n);return h(h({},r),{config:n,validated:i})}}))})),n},Eg=function(e,t){return{uiType:tg(),owner:e,name:t}},Ag=function(e,t,n){return{uiType:tg(),owner:e,name:t,config:n,validated:{}}},Tg=function(e){return ee(e,(function(e){return e.fold(w.none,w.some,w.none,w.none).map((function(e){return xn(e.name,e.schema.concat([xu(xg())]))})).toArray()}))},Dg=function(e){return H(e,gg)},Mg=function(e,t,n){return Cg(e,t,n)},Pg=function(e,t,n){return Qp(w.some(e),t,t.components,n)},Ig=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOption()},jg=function(e,t,n){return Ig(e,t,n).getOrDie("Could not find part: "+n)},Lg=function(e,t,n){var r={},i=t.partUids,a=e.getSystem();return V(n,(function(e){r[e]=o(a.getByUid(i[e]))})),r},Ng=function(e,t){var n=e.getSystem();return de(t.partUids,(function(e,t){return o(n.getByUid(e))}))},Rg=function(e){return ue(e.partUids)},Bg=function(e,t,n){var r={},i=t.partUids,a=e.getSystem();return V(n,(function(e){r[e]=o(a.getByUid(i[e]).getOrDie())})),r},$g=function(e,t){var n=Dg(t);return Ge(H(n,(function(t){return{key:t,value:e+"-"+t}})))},Fg=function(e){return qt("partUids","partUids",je((function(t){return $g(t.uid,e)})),on())},zg=Object.freeze({generate:kg,generateOne:Ag,schemas:Tg,names:Dg,substitutes:Mg,components:Pg,defaultUids:$g,defaultUidsSchema:Fg,getAllParts:Ng,getAllPartNames:Rg,getPart:Ig,getPartOrDie:jg,getParts:Lg,getPartsOrDie:Bg}),qg=function(e,t){var n=e.length>0?[xn("parts",e)]:[];return n.concat([pn("uid"),In("dom",{}),In("components",[]),xu("originalSpec"),In("debug.sketcher",{})]).concat(t)},Ug=function(e,t,n,r,i){var o=qg(r,i);return en(e+" [SpecSchema]",Lt(o.concat(t)),n)},Hg=function(e,t,n,r){var i=Wg(r),o=Ug(e,t,i,[],[]);return n(o,i)},Vg=function(e,t,n,r,i){var o=Wg(i),a=Tg(n),s=Fg(n),l=Ug(e,t,o,a,[s]),u=Mg(e,l,n),c=Pg(e,l,u.internals());return r(l,c,o,u.externals())},Wg=function(e){return e.hasOwnProperty("uid")?e:h(h({},e),{uid:$a("uid")})};function Kg(e){return void 0!==e.uid}var Gg,Yg=Lt([pn("name"),pn("factory"),pn("configFields"),In("apis",{}),In("extraApis",{})]),Xg=Lt([pn("name"),pn("factory"),pn("configFields"),pn("partFields"),In("apis",{}),In("extraApis",{})]),Zg=function(e){var t=en("Sketcher for "+e.name,Yg,e),n=function(e){return Hg(t.name,t.configFields,t.factory,e)},r=de(t.apis,Xa),i=de(t.extraApis,(function(e,t){return Va(e,t)}));return h(h({name:o(t.name),partFields:o([]),configFields:o(t.configFields),sketch:n},r),i)},Qg=function(e){var t=en("Sketcher for "+e.name,Xg,e),n=function(e){return Vg(t.name,t.configFields,t.partFields,t.factory,e)},r=kg(t.name,t.partFields),i=de(t.apis,Xa),a=de(t.extraApis,(function(e,t){return Va(e,t)}));return h(h({name:o(t.name),partFields:o(t.partFields),configFields:o(t.configFields),sketch:n,parts:o(r)},i),a)},Jg=function(e){return"input"===co(e)&&"radio"!==_a(e,"type")||"textarea"===co(e)},em=function(e,t,n){return t.find(e)},tm=Object.freeze({getCurrent:em}),nm=[pn("find")],rm=dc({fields:nm,name:"composing",apis:tm}),im=function(e,t,n,r){var i=ad(e.element(),"."+t.highlightClass);V(i,(function(n){z(r,(function(e){return e.element()===n}))||(Ps(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),ro(n,no())})))}))},om=function(e,t,n){return im(e,t,n,[])},am=function(e,t,n,r){dm(e,t,n,r)&&(Ps(r.element(),t.highlightClass),t.onDehighlight(e,r),ro(r,no()))},sm=function(e,t,n,r){im(e,t,n,[r]),dm(e,t,n,r)||(Ds(r.element(),t.highlightClass),t.onHighlight(e,r),ro(r,to()))},lm=function(e,t,n){gm(e,t).each((function(r){sm(e,t,n,r)}))},um=function(e,t,n){mm(e,t).each((function(r){sm(e,t,n,r)}))},cm=function(e,t,n,r){pm(e,t,n,r).fold((function(e){throw new Error(e)}),(function(r){sm(e,t,n,r)}))},fm=function(e,t,n,r){var i=_m(e,t),o=Z(i,r);o.each((function(r){sm(e,t,n,r)}))},dm=function(e,t,n,r){return Is(r.element(),t.highlightClass)},hm=function(e,t,n){return Hl(e.element(),"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOption()}))},pm=function(e,t,n,r){var i=ad(e.element(),"."+t.itemClass);return w.from(i[r]).fold((function(){return C.error("No element found with index "+r)}),e.getSystem().getByDom)},gm=function(e,t,n){return Hl(e.element(),"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOption()}))},mm=function(e,t,n){var r=ad(e.element(),"."+t.itemClass),i=r.length>0?w.some(r[r.length-1]):w.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOption()}))},vm=function(e,t,n,r){var i=ad(e.element(),"."+t.itemClass),o=Q(i,(function(e){return Is(e,t.highlightClass)}));return o.bind((function(t){var n=Xd(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOption()}))},ym=function(e,t,n){return vm(e,t,n,-1)},bm=function(e,t,n){return vm(e,t,n,1)},_m=function(e,t,n){var r=ad(e.element(),"."+t.itemClass);return Xl(H(r,(function(t){return e.getSystem().getByDom(t).toOption()})))},wm=Object.freeze({dehighlightAll:om,dehighlight:am,highlight:sm,highlightFirst:lm,highlightLast:um,highlightAt:cm,highlightBy:fm,isHighlighted:dm,getHighlighted:hm,getFirst:gm,getLast:mm,getPrevious:ym,getNext:bm,getCandidates:_m}),xm=[pn("highlightClass"),pn("itemClass"),vu("onHighlight"),vu("onDehighlight")],Om=dc({fields:xm,name:"highlighting",apis:wm}),Sm=function(){return[8]},Cm=function(){return[9]},km=function(){return[13]},Em=function(){return[27]},Am=function(){return[32]},Tm=function(){return[37]},Dm=function(){return[38]},Mm=function(){return[39]},Pm=function(){return[40]},Im=function(e,t,n){var r=ne(e.slice(0,t)),i=ne(e.slice(t+1));return Z(r.concat(i),n)},jm=function(e,t,n){var r=ne(e.slice(0,t));return Z(r,n)},Lm=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return Z(i.concat(r),n)},Nm=function(e,t,n){var r=e.slice(t+1);return Z(r,n)},Rm=function(e){return function(t){var n=t.raw();return F(e,n.which)}},Bm=function(e){return function(t){return te(e,(function(e){return e(t)}))}},$m=function(e){var t=e.raw();return!0===t.shiftKey},Fm=function(e){var t=e.raw();return!0===t.ctrlKey},zm=l($m),qm=function(e,t){return{matches:e,classification:t}},Um=function(e,t){var n=Z(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},Hm=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return ni(t,e)}))}));r||io(e,Zi(),{prevFocus:t,newFocus:n})},Vm=function(){var e=function(e){return Ec(e.element())},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element());var i=e(t);Hm(t,r,i)};return{get:e,set:t}},Wm=function(){var e=function(e){return Om.getHighlighted(e).map((function(e){return e.element()}))},t=function(t,r){var i=e(t);t.getSystem().getByDom(r).fold(n,(function(e){Om.highlight(t,e)}));var o=e(t);Hm(t,i,o)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Gg||(Gg={}));var Km=function(e,t,n,r,i){var o=function(){return e.concat([In("focusManager",Vm()),jn("focusInside","onFocus",Yt((function(e){return F(["onFocus","onEnterOrSpace","onApi"],e)?C.value(e):C.error("Invalid value for focusInside")}))),wu("handler",l),wu("state",t),wu("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return Um(o,t.event()).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Gg.OnFocusMode?w.none():i(e).map((function(n){return Eo(Mi(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=Rm(Am().concat(km()))(r.event());e.focusInside===Gg.OnEnterOrSpaceMode&&o&&si(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))};return Oo(o.toArray().concat([Eo(Oi(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),Eo(Si(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))]))},l={schema:o,processKey:a,toEvents:s};return l},Gm=function(e){var t=[Cn("onEscape"),Cn("onEnter"),In("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),In("firstTabstop",0),In("useTabstopAt",o(!0)),Cn("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return Vl(t,e)})).getOr(t);return hl(n)>0},r=function(e,t){var r=ad(e.element(),t.selector),i=G(r,(function(e){return n(t,e)}));return w.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return Vl(e,t.selector)}))},a=function(e,t){return n(e,t)&&e.useTabstopAt(t)},l=function(e,t){r(e,t).each((function(n){t.focusManager.set(e,n)}))},u=function(e,t,n,r,i){return i(t,n,(function(e){return a(r,e)})).fold((function(){return r.cyclic?w.some(!0):w.none()}),(function(t){return r.focusManager.set(e,t),w.some(!0)}))},c=function(e,t,n,r){var o=ad(e.element(),n.selector);return i(e,n).bind((function(t){var i=Q(o,s(ni,t));return i.bind((function(t){return u(e,o,t,n,r)}))}))},f=function(e,t,n,r){var i=n.cyclic?Im:jm;return c(e,t,n,i)},d=function(e,t,n,r){var i=n.cyclic?Lm:Nm;return c(e,t,n,i)},h=function(e,t,n,r){return n.onEnter.bind((function(n){return n(e,t)}))},p=function(e,t,n,r){return n.onEscape.bind((function(n){return n(e,t)}))},g=o([qm(Bm([$m,Rm(Cm())]),f),qm(Rm(Cm()),d),qm(Rm(Em()),p),qm(Bm([zm,Rm(km())]),h)]),m=o([]);return Km(t,Za.init,g,m,(function(){return w.some(l)}))},Ym=Gm(Un("cyclic",o(!1))),Xm=Gm(Un("cyclic",o(!0))),Zm=function(e,t,n){return ao(e,n,Li()),w.some(!0)},Qm=function(e,t,n){return Jg(n)&&Rm(Am())(t.event())?w.none():Zm(e,t,n)},Jm=function(e,t){return w.some(!0)},ev=[In("execute",Qm),In("useSpace",!1),In("useEnter",!0),In("useControlEnter",!1),In("useDown",!1)],tv=function(e,t,n){return n.execute(e,t,e.element())},nv=function(e,t,n,r){var i=n.useSpace&&!Jg(e.element())?Am():[],o=n.useEnter?km():[],a=n.useDown?Pm():[],s=i.concat(o).concat(a);return[qm(Rm(s),tv)].concat(n.useControlEnter?[qm(Bm([Fm,Rm(km())]),tv)]:[])},rv=function(e,t,n,r){return n.useSpace&&!Jg(e.element())?[qm(Rm(Am()),Jm)]:[]},iv=Km(ev,Za.init,nv,rv,(function(){return w.none()})),ov=function(e){var t=Hn(w.none()),n=function(e,n){t.set(w.some({numRows:o(e),numColumns:o(n)}))},r=function(){return t.get().map((function(e){return e.numRows()}))},i=function(){return t.get().map((function(e){return e.numColumns()}))};return Qa({readState:function(){return t.get().map((function(e){return{numRows:e.numRows(),numColumns:e.numColumns()}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:n,getNumRows:r,getNumColumns:i})},av=function(e){return e.state(e)},sv=Object.freeze({flatgrid:ov,init:av}),lv=function(e){return function(t,n,r,i){var o=e(t.element());return dv(o,t,n,r,i)}},uv=function(e,t){var n=Hc(e,t);return lv(n)},cv=function(e,t){var n=Hc(t,e);return lv(n)},fv=function(e){return function(t,n,r,i){return dv(e,t,n,r,i)}},dv=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element(),n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},hv=fv,pv=fv,gv=fv,mv=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},vv=function(e){var t=e.dom();return!mv(t)},yv=Ko(["index","candidates"],[]),bv=function(e,t){return Q(e,t).map((function(t){return yv({index:t,candidates:e})}))},_v=function(e,t,n){var r=s(ni,t),i=ad(e,n),o=G(i,vv);return bv(o,r)},wv=function(e,t){return Q(e,(function(e){return ni(t,e)}))},xv=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row()*n+t.column();return r>=0&&r<e.length?w.some(e[r]):w.none()}))},Ov=function(e,t,n,r,i){return xv(e,t,r,(function(t,a){var s=t===n-1,l=s?e.length-t*r:r,u=Xd(a,i,0,l-1);return w.some({row:o(t),column:o(u)})}))},Sv=function(e,t,n,r,i){return xv(e,t,r,(function(t,a){var s=Xd(t,i,0,n-1),l=s===n-1,u=l?e.length-s*r:r,c=Zd(a,0,u-1);return w.some({row:o(s),column:o(c)})}))},Cv=function(e,t,n,r){return Ov(e,t,n,r,1)},kv=function(e,t,n,r){return Ov(e,t,n,r,-1)},Ev=function(e,t,n,r){return Sv(e,t,n,r,-1)},Av=function(e,t,n,r){return Sv(e,t,n,r,1)},Tv=[pn("selector"),In("execute",Qm),yu("onEscape"),In("captureTab",!1),Ou()],Dv=function(e,t,n){Hl(e.element(),t.selector).each((function(n){t.focusManager.set(e,n)}))},Mv=function(e,t){return t.focusManager.get(e).bind((function(e){return Vl(e,t.selector)}))},Pv=function(e,t,n,r){return Mv(e,n).bind((function(r){return n.execute(e,t,r)}))},Iv=function(e){return function(t,n,r,i){return _v(t,n,r.selector).bind((function(t){return e(t.candidates(),t.index(),i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},jv=function(e,t,n,r){return n.captureTab?w.some(!0):w.none()},Lv=function(e,t,n,r){return n.onEscape(e,t)},Nv=Iv(kv),Rv=Iv(Cv),Bv=Iv(Ev),$v=Iv(Av),Fv=o([qm(Rm(Tm()),uv(Nv,Rv)),qm(Rm(Mm()),cv(Nv,Rv)),qm(Rm(Dm()),hv(Bv)),qm(Rm(Pm()),pv($v)),qm(Bm([$m,Rm(Cm())]),jv),qm(Bm([zm,Rm(Cm())]),jv),qm(Rm(Em()),Lv),qm(Rm(Am().concat(km())),Pv)]),zv=o([qm(Rm(Am()),Jm)]),qv=Km(Tv,ov,Fv,zv,(function(){return w.some(Dv)})),Uv=function(e,t,n,r){var i=function(e){return"button"===co(e)&&"disabled"===_a(e,"disabled")},o=function(e,t,n){var a=Xd(t,r,0,n.length-1);return a===e?w.none():i(n[a])?o(e,a,n):w.from(n[a])};return _v(e,n,t).bind((function(e){var t=e.index(),n=e.candidates();return o(t,t,n)}))},Hv=[pn("selector"),In("getInitial",w.none),In("execute",Qm),yu("onEscape"),In("executeOnMove",!1),In("allowVertical",!0)],Vv=function(e,t){return t.focusManager.get(e).bind((function(e){return Vl(e,t.selector)}))},Wv=function(e,t,n){return Vv(e,n).bind((function(r){return n.execute(e,t,r)}))},Kv=function(e,t){t.getInitial(e).orThunk((function(){return Hl(e.element(),t.selector)})).each((function(n){t.focusManager.set(e,n)}))},Gv=function(e,t,n){return Uv(e,n.selector,t,-1)},Yv=function(e,t,n){return Uv(e,n.selector,t,1)},Xv=function(e){return function(t,n,r){return e(t,n,r).bind((function(){return r.executeOnMove?Wv(t,n,r):w.some(!0)}))}},Zv=function(e,t,n,r){return n.onEscape(e,t)},Qv=function(e,t,n,r){var i=Tm().concat(n.allowVertical?Dm():[]),o=Mm().concat(n.allowVertical?Pm():[]);return[qm(Rm(i),Xv(uv(Gv,Yv))),qm(Rm(o),Xv(cv(Gv,Yv))),qm(Rm(km()),Wv),qm(Rm(Am()),Wv),qm(Rm(Em()),Zv)]},Jv=o([qm(Rm(Am()),Jm)]),ey=Km(Hv,Za.init,Qv,Jv,(function(){return w.some(Kv)})),ty=Ko(["rowIndex","columnIndex","cell"],[]),ny=function(e,t,n){return w.from(e[t]).bind((function(e){return w.from(e[n]).map((function(e){return ty({rowIndex:t,columnIndex:n,cell:e})}))}))},ry=function(e,t,n,r){var i=e[t],o=i.length,a=Xd(n,r,0,o-1);return ny(e,t,a)},iy=function(e,t,n,r){var i=Xd(n,r,0,e.length-1),o=e[i].length,a=Zd(t,0,o-1);return ny(e,i,a)},oy=function(e,t,n,r){var i=e[t],o=i.length,a=Zd(n+r,0,o-1);return ny(e,t,a)},ay=function(e,t,n,r){var i=Zd(n+r,0,e.length-1),o=e[i].length,a=Zd(t,0,o-1);return ny(e,i,a)},sy=function(e,t,n){return ry(e,t,n,1)},ly=function(e,t,n){return ry(e,t,n,-1)},uy=function(e,t,n){return iy(e,n,t,-1)},cy=function(e,t,n){return iy(e,n,t,1)},fy=function(e,t,n){return oy(e,t,n,-1)},dy=function(e,t,n){return oy(e,t,n,1)},hy=function(e,t,n){return ay(e,n,t,-1)},py=function(e,t,n){return ay(e,n,t,1)},gy=[xn("selectors",[pn("row"),pn("cell")]),In("cycles",!0),In("previousSelector",w.none),In("execute",Qm)],my=function(e,t){var n=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Hl(e.element(),n.cell)}));n.each((function(n){t.focusManager.set(e,n)}))},vy=function(e,t,n){return Ec(e.element()).bind((function(r){return n.execute(e,t,r)}))},yy=function(e,t){return H(e,(function(e){return ad(e,t.selectors.cell)}))},by=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return Vl(r,i.selectors.row).bind((function(e){var t=ad(e,i.selectors.cell);return wv(t,r).bind((function(t){var r=ad(n,i.selectors.row);return wv(r,e).bind((function(e){var n=yy(r,i);return o(n,e,t).map((function(e){return e.cell()}))}))}))}))}},_y=by(ly,fy),wy=by(sy,dy),xy=by(uy,hy),Oy=by(cy,py),Sy=o([qm(Rm(Tm()),uv(_y,wy)),qm(Rm(Mm()),cv(_y,wy)),qm(Rm(Dm()),hv(xy)),qm(Rm(Pm()),pv(Oy)),qm(Rm(Am().concat(km())),vy)]),Cy=o([qm(Rm(Am()),Jm)]),ky=Km(gy,Za.init,Sy,Cy,(function(){return w.some(my)})),Ey=[pn("selector"),In("execute",Qm),In("moveOnTab",!1)],Ay=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},Ty=function(e,t){Hl(e.element(),t.selector).each((function(n){t.focusManager.set(e,n)}))},Dy=function(e,t,n){return Uv(e,n.selector,t,-1)},My=function(e,t,n){return Uv(e,n.selector,t,1)},Py=function(e,t,n){return n.moveOnTab?gv(Dy)(e,t,n):w.none()},Iy=function(e,t,n){return n.moveOnTab?gv(My)(e,t,n):w.none()},jy=o([qm(Rm(Dm()),gv(Dy)),qm(Rm(Pm()),gv(My)),qm(Bm([$m,Rm(Cm())]),Py),qm(Bm([zm,Rm(Cm())]),Iy),qm(Rm(km()),Ay),qm(Rm(Am()),Ay)]),Ly=o([qm(Rm(Am()),Jm)]),Ny=Km(Ey,Za.init,jy,Ly,(function(){return w.some(Ty)})),Ry=[yu("onSpace"),yu("onEnter"),yu("onShiftEnter"),yu("onLeft"),yu("onRight"),yu("onTab"),yu("onShiftTab"),yu("onUp"),yu("onDown"),yu("onEscape"),In("stopSpaceKeyup",!1),Cn("focusIn")],By=function(e,t,n){return[qm(Rm(Am()),n.onSpace),qm(Bm([zm,Rm(km())]),n.onEnter),qm(Bm([$m,Rm(km())]),n.onShiftEnter),qm(Bm([$m,Rm(Cm())]),n.onShiftTab),qm(Bm([zm,Rm(Cm())]),n.onTab),qm(Rm(Dm()),n.onUp),qm(Rm(Pm()),n.onDown),qm(Rm(Tm()),n.onLeft),qm(Rm(Mm()),n.onRight),qm(Rm(Am()),n.onSpace),qm(Rm(Em()),n.onEscape)]},$y=function(e,t,n){return n.stopSpaceKeyup?[qm(Rm(Am()),Jm)]:[]},Fy=Km(Ry,Za.init,By,$y,(function(e){return e.focusIn})),zy=Ym.schema(),qy=Xm.schema(),Uy=ey.schema(),Hy=qv.schema(),Vy=ky.schema(),Wy=iv.schema(),Ky=Ny.schema(),Gy=Fy.schema(),Yy=Object.freeze({acyclic:zy,cyclic:qy,flow:Uy,flatgrid:Hy,matrix:Vy,execution:Wy,menu:Ky,special:Gy}),Xy=pc({branchKey:"mode",branches:Yy,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element(),e.element())}),(function(r){r(e,t,n)}))},setGridSize:function(e,n,r,i,o){Qe(r,"setGridSize")?r.setGridSize(i,o):t.console.error("Layout does not support setGridSize")}},state:sv}),Zy=function(e,t,n,r){Ac((function(){var t=H(r,e.getSystem().build);Th(e,t)}),e.element())},Qy=function(e,t,n,r){var i=e.getSystem().build(r);Mh(e,i,n)},Jy=function(e,t,n,r){Qy(e,t,sa,r)},eb=function(e,t,n,r){Qy(e,t,aa,r)},tb=function(e,t,n,r){var i=nb(e),o=Z(i,(function(e){return ni(r.element(),e.element())}));o.each(Ih)},nb=function(e,t){return e.components()},rb=function(e,t,n,r,i){var o=nb(e);return w.from(o[r]).map((function(o){return tb(e,t,n,o),i.each((function(n){Qy(e,t,(function(e,t){la(e,t,r)}),n)})),o}))},ib=function(e,t,n,r,i){var o=nb(e);return Q(o,r).bind((function(r){return rb(e,t,n,r,i)}))},ob=Object.freeze({append:Jy,prepend:eb,remove:tb,replaceAt:rb,replaceBy:ib,set:Zy,contents:nb}),ab=dc({fields:[],name:"replacing",apis:ob}),sb=function(e,t){var n=Oo(t);return dc({fields:[pn("enabled")],name:e,active:{events:o(n)}})},lb=function(e,t){var n=sb(e,t);return{key:e,value:{config:{},me:n,configAsRaw:o({}),initialConfig:{},state:Za}}},ub=function(e,t){t.ignore||(Oc(e.element()),t.onFocus(e))},cb=function(e,t){t.ignore||Sc(e.element())},fb=function(e){return Cc(e.element())},db=Object.freeze({focus:ub,blur:cb,isFocused:fb}),hb=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return rs(n)},pb=function(e){return Oo([Eo(Mi(),(function(t,n){ub(t,e),n.stop()}))].concat(e.stopMousedown?[Eo(mi(),(function(e,t){t.event().prevent()}))]:[]))},gb=Object.freeze({exhibit:hb,events:pb}),mb=[vu("onFocus"),In("stopMousedown",!1),In("ignore",!1)],vb=dc({fields:mb,name:"focusing",active:gb,apis:db}),yb=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},bb=function(e,t,n){t.toggleClass.each((function(t){n.get()?Ds(e.element(),t):Ps(e.element(),t)}))},_b=function(e,t,n){Ob(e,t,n,!n.get())},wb=function(e,t,n){n.set(!0),bb(e,t,n),yb(e,t,n)},xb=function(e,t,n){n.set(!1),bb(e,t,n),yb(e,t,n)},Ob=function(e,t,n,r){var i=r?wb:xb;i(e,t,n)},Sb=function(e,t,n){return n.get()},Cb=function(e,t,n){Ob(e,t,n,t.selected)},kb=Object.freeze({onLoad:Cb,toggle:_b,isOn:Sb,on:wb,off:xb,set:Ob}),Eb=function(e,t,n){return rs({})},Ab=function(e,t){var n=rc(e,t,_b),r=ic(e,t,Cb);return Oo(J([e.toggleOnExecute?[n]:[],[r]]))},Tb=Object.freeze({exhibit:Eb,events:Ab}),Db=function(e){var t=function(){var t=Hn(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Mb=function(e,t,n){ya(e.element(),"aria-pressed",n),t.syncWithExpanded&&jb(e,t,n)},Pb=function(e,t,n){ya(e.element(),"aria-selected",n)},Ib=function(e,t,n){ya(e.element(),"aria-checked",n)},jb=function(e,t,n){ya(e.element(),"aria-expanded",n)},Lb=[In("selected",!1),Cn("toggleClass"),In("toggleOnExecute",!0),jn("aria",{mode:"none"},rn("mode",{pressed:[In("syncWithExpanded",!1),wu("update",Mb)],checked:[wu("update",Ib)],expanded:[wu("update",jb)],selected:[wu("update",Pb)],none:[wu("update",n)]}))],Nb=dc({fields:Lb,name:"toggling",active:Tb,apis:kb,state:Db(!1)}),Rb="alloy.item-hover",Bb="alloy.item-focus",$b=function(e){(Ec(e.element()).isNone()||vb.isFocused(e))&&(vb.isFocused(e)||vb.focus(e),io(e,Rb,{item:e}))},Fb=function(e){io(e,Bb,{item:e})},zb=o(Rb),qb=o(Bb),Ub=function(e){return{dom:e.dom,domModification:h(h({},e.domModification),{attributes:h(h(h({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:Hp.augment(e.itemBehaviours,[e.toggling.fold(Nb.revoke,(function(e){return Nb.config(h({aria:{mode:"checked"}},e))})),vb.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){Fb(e)}}),Xy.config({mode:"execution"}),Fp.config({store:{mode:"memory",initialValue:e.data}}),lb("item-type-events",[Eo(Bi(),oo),jo(mi()),Eo(_i(),$b),Eo(Ni(),vb.focus)])]),components:e.components,eventOrder:e.eventOrder}},Hb=[pn("data"),pn("components"),pn("dom"),In("hasSubmenu",!1),Cn("toggling"),Hp.field("itemBehaviours",[Nb,vb,Xy,Fp]),In("ignoreFocus",!1),In("domModification",{}),wu("builder",Ub),In("eventOrder",{})],Vb=function(e){return{dom:e.dom,components:e.components,events:Oo([Lo(Ni())])}},Wb=[pn("dom"),pn("components"),wu("builder",Vb)],Kb=function(){return"item-widget"},Gb=o([yg({name:"widget",overrides:function(e){return{behaviours:cc([Fp.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:function(){}}})])}}})]),Yb=function(e){var t=Mg(Kb(),e,Gb()),n=Pg(Kb(),e,t.internals()),r=function(t){return Ig(t,e,"widget").map((function(e){return Xy.focusIn(e),e}))},i=function(t,n){return Jg(n.event().target())?w.none():function(){return e.autofocus?(n.setSource(t.element()),w.none()):w.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:Oo([Fo((function(e,t){r(e).each((function(e){t.stop()}))})),Eo(_i(),$b),Eo(Ni(),(function(t,n){e.autofocus?r(t):vb.focus(t)}))]),behaviours:Hp.augment(e.widgetBehaviours,[Fp.config({store:{mode:"memory",initialValue:e.data}}),vb.config({ignore:e.ignoreFocus,onFocus:function(e){Fb(e)}}),Xy.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:gc(),onLeft:i,onRight:i,onEscape:function(t,n){return vb.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element()),w.none()):w.none():(vb.focus(t),w.some(!0))}})])}},Xb=[pn("uid"),pn("data"),pn("components"),pn("dom"),In("autofocus",!1),In("ignoreFocus",!1),Hp.field("widgetBehaviours",[Fp,vb,Xy]),In("domModification",{}),Fg(Gb()),wu("builder",Yb)],Zb=rn("type",{widget:Xb,item:Hb,separator:Wb}),Qb=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},Jb=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},e_=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},t_=o([wg({factory:{sketch:function(e){var t=en("menu.spec item",Zb,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return t.hasOwnProperty("uid")?t:h(h({},t),{uid:$a("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),n_=o([pn("value"),pn("items"),pn("dom"),pn("components"),In("eventOrder",{}),zp("menuBehaviours",[Om,Fp,rm,Xy]),jn("movement",{mode:"menu",moveOnTab:!0},rn("mode",{grid:[Ou(),wu("config",Qb)],matrix:[wu("config",Jb),pn("rowSelector")],menu:[In("moveOnTab",!0),wu("config",e_)]})),hu(),In("fakeFocus",!1),In("focusManager",Vm()),vu("onHighlight")]),r_=o("alloy.menu-focus"),i_=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Up(e.menuBehaviours,[Om.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),Fp.config({store:{mode:"memory",initialValue:e.value}}),rm.config({find:w.some}),Xy.config(e.movement.config(e,e.movement))]),events:Oo([Eo(qb(),(function(e,t){var n=t.event();e.getSystem().getByDom(n.target()).each((function(n){Om.highlight(e,n),t.stop(),io(e,r_(),{menu:e,item:n})}))})),Eo(zb(),(function(e,t){var n=t.event().item();Om.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},o_=Qg({name:"Menu",configFields:n_(),partFields:t_(),factory:i_}),a_=function(e){return he(e,(function(e,t){return{k:e,v:t}}))},s_=function(e,t,n,r){return We(n,r).bind((function(r){return We(e,r).bind((function(r){var i=s_(e,t,n,r);return w.some([r].concat(i))}))})).getOr([])},l_=function(e,t){var n={};fe(e,(function(e,t){V(e,(function(e){n[e]=t}))}));var r=t,i=a_(t),o=de(i,(function(e,t){return[t].concat(s_(n,r,i,t))}));return de(n,(function(e){return We(o,e).getOr([e])}))},u_=function(){var e=Hn({}),t=Hn({}),n=Hn({}),r=Hn(w.none()),i=Hn({}),o=function(){e.set({}),t.set({}),n.set({}),r.set(w.none())},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(h(h({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},l=function(o,a,s,l){r.set(w.some(o)),e.set(s),t.set(a),i.set(l);var u=l_(l,s);n.set(u)},u=function(t){return ge(e.get(),(function(e,n){return e===t}))},c=function(e,t,n){return m(e).bind((function(r){return u(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},f=function(e,t){var i=G(y(e).toArray(),(function(e){return m(e).isSome()}));return We(n.get(),e).bind((function(e){var n=ne(i.concat(e)),o=ee(n,(function(e,i){return c(e,t,n.slice(0,i+1)).fold((function(){return r.get().is(e)?[]:[w.none()]}),(function(e){return[w.some(e)]}))}));return Zl(o)}))},d=function(t){return We(e.get(),t).map((function(e){var r=We(n.get(),t).getOr([]);return[e].concat(r)}))},p=function(e){return We(n.get(),e).bind((function(e){return e.length>1?w.some(e.slice(1)):w.none()}))},g=function(e){return We(n.get(),e)},m=function(e){return v(e).bind(c_)},v=function(e){return We(t.get(),e)},y=function(t){return We(e.get(),t)},b=function(e){var t=i.get();return re(ue(t),e)},_=function(){return r.get().bind(m)},x=function(){return t.get()};return{setMenuBuilt:s,setContents:l,expand:d,refresh:g,collapse:p,lookupMenu:v,lookupItem:y,otherMenus:b,getPrimary:_,getMenus:x,clear:o,isClear:a,getTriggeringPath:f}},c_=function(e){return"prepared"===e.type?w.some(e.menu):w.none()},f_={init:u_,extractPreparedMenu:c_},d_=function(e,t){var n,r=Hn(w.none()),i=function(t,n,r){return de(r,(function(r,i){var o=function(){return o_.sketch(h(h({dom:r.dom},r),{value:i,items:r.items,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?Wm():Vm()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=f_.init(),a=function(t){var n=i(t,e.data.primary,e.data.menus),r=u();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()},s=function(e){return Fp.getValue(e).value},l=function(e,t,n){return Ql(t,(function(e){if(!e.getSystem().isConnected())return w.none();var t=Om.getCandidates(e);return Z(t,(function(e){return s(e)===n}))}))},u=function(t){return de(e.data.menus,(function(e,t){return ee(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},c=function(e,t){Om.highlight(e,t),Om.getHighlighted(t).orThunk((function(){return Om.getFirst(t)})).each((function(t){ao(e,t.element(),Ni())}))},f=function(e,t){return Xl(H(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?w.some(e.menu):w.none()}))})))},d=function(t,n,r){var i=f(n,n.otherMenus(r));V(i,(function(n){Ls(n.element(),[e.markers.backgroundMenu]),e.stayInDom||ab.remove(t,n)}))},p=function(t){return r.get().getOrThunk((function(){var n={},i=ad(t.element(),"."+e.markers.item),o=G(i,(function(e){return"true"===_a(e,"aria-haspopup")}));return V(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=s(e);n[t]=e}))})),r.set(w.some(n)),n}))},g=function(e,t){var n=p(e);fe(n,(function(e,n){var r=F(t,n);ya(e.element(),"aria-expanded",r)}))},m=function(t,n,r){return w.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return w.none();var o=i.menu,a=f(n,r.slice(1));return V(a,(function(t){Ds(t.element(),e.markers.backgroundMenu)})),mo(o.element())||ab.append(t,ul(o)),Ls(o.element(),[e.markers.backgroundMenu]),c(t,o),d(t,n,r),w.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu},y=function(t,r,i){void 0===i&&(i=n.HighlightSubmenu);var a=s(r);return o.expand(a).bind((function(a){return g(t,a),w.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(l){var u=v(t,s,l);return mo(u.element())||ab.append(t,ul(u)),e.onOpenSubmenu(t,r,u,ne(a)),i===n.HighlightSubmenu?(Om.highlightFirst(u),m(t,o,a)):(Om.dehighlightAll(u),w.some(r))}))}))}))},b=function(t,n){var r=s(n);return o.collapse(r).bind((function(r){return g(t,r),m(t,o,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},_=function(e,t){var n=s(t);return o.refresh(n).bind((function(t){return g(e,t),m(e,o,t)}))},x=function(e,t){return Jg(t.element())?w.none():y(e,t,n.HighlightSubmenu)},O=function(e,t){return Jg(t.element())?w.none():b(e,t)},S=function(t,n){return b(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},C=function(t){return function(n,r){return Vl(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOption().bind((function(e){return t(n,e).map((function(){return!0}))}))}))}},k=Oo([Eo(r_(),(function(e,t){var n=t.event().item();o.lookupItem(s(n)).each((function(){var n=t.event().menu();Om.highlight(e,n);var r=s(t.event().item());o.refresh(r).each((function(t){return d(e,o,t)}))}))})),Fo((function(t,r){var i=r.event().target();t.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&b(t,r),y(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),(function(){}))}))})),Ro((function(t,n){a(t).each((function(n){ab.append(t,ul(n)),e.onOpenMenu(t,n),e.highlightImmediately&&c(t,n)}))}))].concat(e.navigateOnHover?[Eo(zb(),(function(t,r){var i=r.event().item();_(t,i),y(t,i,n.HighlightParent),e.onHover(t,i)}))]:[])),E=function(e){return Om.getHighlighted(e).bind(Om.getHighlighted)},A=function(e){E(e).each((function(t){b(e,t)}))},T=function(e){o.getPrimary().each((function(t){c(e,t)}))},D=function(e){return w.from(e.components()[0]).filter((function(e){return"menu"===_a(e.element(),"role")}))},M=function(t){var n=o.getPrimary().bind((function(e){return E(t).bind((function(e){var n=s(e),r=me(o.getMenus()),i=Xl(H(r,f_.extractPreparedMenu));return o.getTriggeringPath(n,(function(e){return l(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){D(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},P={collapseMenu:A,highlightPrimary:T,repositionMenus:M};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:Up(e.tmenuBehaviours,[Xy.config({mode:"special",onRight:C(x),onLeft:C(O),onEscape:C(S),focusIn:function(e,t){o.getPrimary().each((function(t){ao(e,t.element(),Ni())}))}}),Om.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),rm.config({find:function(e){return Om.getHighlighted(e)}}),ab.config({})]),eventOrder:e.eventOrder,apis:P,events:k}},h_=o("collapse-item"),p_=function(e,t,n){return{primary:e,menus:t,expansions:n}},g_=function(e,t){return{primary:e,menus:Ke(e,t),expansions:{}}},m_=function(e){return{value:Ma(h_()),meta:{text:e}}},v_=Zg({name:"TieredMenu",configFields:[_u("onExecute"),_u("onEscape"),bu("onOpenMenu"),bu("onOpenSubmenu"),bu("onRepositionMenu"),vu("onCollapseMenu"),In("highlightImmediately",!0),xn("data",[pn("primary"),pn("menus"),pn("expansions")]),In("fakeFocus",!1),vu("onHighlight"),vu("onHover"),pu(),pn("dom"),In("navigateOnHover",!0),In("stayInDom",!1),zp("tmenuBehaviours",[Xy,Om,rm,ab]),In("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:d_,extraApis:{tieredData:p_,singleData:g_,collapseItem:m_}}),y_=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return tc()},onRtl:function(){return nc()}}}:{},s=function(e){return 2===e.length},l=function(e){return s(e)?a:{}};return v_.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,onEscape:function(){return ip.close(t),e.onEscape.map((function(e){return e(t)})),w.some(!0)},onExecute:function(){return w.some(!0)},onOpenMenu:function(e,t){Sh.positionWithinBounds(o().getOrDie(),n,t,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Sh.position(i,h({anchor:"submenu",item:t},l(r)),n)},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Sh.positionWithinBounds(a,n,t,i()),V(r,(function(e){var t=l(e.triggeringPath);Sh.position(a,h({anchor:"submenu",item:e.triggeringItem},t),e.triggeredMenu)}))}})},b_=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Yl(e,n)}))},r=function(e,t){ip.setContent(e,t)},i=function(e,t,n){a(e,t,n,w.none())},a=function(e,t,n,r){s(e,t,n,(function(){return r.map((function(e){return $l(e)}))}))},s=function(t,n,r,i){var o=e.lazySink(t).getOrDie();ip.openWhileCloaked(t,r,(function(){return Sh.positionWithinBounds(o,n,t,i())})),Fp.setValue(t,w.some({mode:"position",anchor:n,getBounds:i}))},l=function(e,t,n){u(e,t,n,(function(){return w.none()}))},u=function(t,n,r,i){var o=y_(e,t,n,r,i);ip.open(t,o),Fp.setValue(t,w.some({mode:"menu",menu:o}))},c=function(e){Fp.setValue(e,w.none()),ip.close(e)},f=function(e){return ip.getState(e)},d=function(t){ip.isOpen(t)&&Fp.getValue(t).each((function(n){switch(n.mode){case"menu":ip.getState(t).each((function(e){v_.repositionMenus(e)}));break;case"position":var r=e.lazySink(t).getOrDie();Sh.positionWithinBounds(r,n.anchor,t,n.getBounds());break}}))},p={setContent:r,showAt:i,showWithin:a,showWithinBounds:s,showMenuAt:l,showMenuWithinBounds:u,hide:c,getContent:f,reposition:d,isOpen:ip.isOpen};return{uid:e.uid,dom:e.dom,behaviours:Up(e.inlineBehaviours,[ip.config({isPartOf:function(e,t,r){return Yl(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),Fp.config({store:{mode:"memory",initialValue:w.none()}}),_c.config({channels:h(h({},up(h({isExtraPart:o(!1)},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),fp(h(h({isExtraPart:o(!1)},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:d})))})]),eventOrder:e.eventOrder,apis:p}},__=Zg({name:"InlineView",configFields:[pn("lazySink"),vu("onShow"),vu("onHide"),Tn("onEscape"),zp("inlineBehaviours",[ip,Fp,_c]),Mn("fireDismissalEventInstead",[In("event",Yi())]),Mn("fireRepositionEventInstead",[In("event",Xi())]),In("getRelated",w.none),In("eventOrder",w.none)],factory:b_,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),w_=function(e){return e.x()},x_=function(e,t){return e.x()+e.width()/2-t.width()/2},O_=function(e,t){return e.x()+e.width()-t.width()},S_=function(e){return e.y()},C_=function(e,t){return e.y()+e.height()-t.height()},k_=function(e,t,n){return Su(w_(e),C_(e,t),n.innerSoutheast(),Tu(),"layout-se")},E_=function(e,t,n){return Su(O_(e,t),C_(e,t),n.innerSouthwest(),Du(),"layout-sw")},A_=function(e,t,n){return Su(w_(e),S_(e),n.innerNortheast(),Mu(),"layout-ne")},T_=function(e,t,n){return Su(O_(e,t),S_(e),n.innerNorthwest(),Pu(),"layout-nw")},D_=function(e,t,n){return Su(x_(e,t),S_(e),n.innerNorth(),ju(),"layout-n")},M_=function(e,t,n){return Su(x_(e,t),C_(e,t),n.innerSouth(),Iu(),"layout-s")},P_=function(e){var t=function(e){return Eo(Li(),(function(t,n){e(t),n.stop()}))},n=function(e,t){t.stop(),oo(e)},r=function(e,t){t.cut()},i=Wr().deviceType.isTouch()?[Eo(Ri(),n)]:[Eo(Ei(),n),Eo(mi(),r)];return Oo(J([e.map(t).toArray(),i]))},I_=function(e){var t=P_(e.action),n=e.dom.tag,r=function(t){return We(e.dom,"attributes").bind((function(e){return We(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return h({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:Hp.augment(e.buttonBehaviours,[vb.config({}),Xy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},j_=Zg({name:"Button",factory:I_,configFields:[In("uid",void 0),pn("dom"),In("components",[]),Hp.field("buttonBehaviours",[vb,Xy]),Cn("action"),Cn("role"),In("eventOrder",{})]}),L_=function(e){var t=Kg(e)&&Qe(e,"uid")?e.uid:$a("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOption()},i=function(){return h(h({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}},N_=function(e){return w.from(e()["temporary-placeholder"]).getOr("!not found!")},R_=function(e,t){return w.from(t()[e]).getOrThunk((function(){return N_(t)}))},B_=function(e,t,n){return w.from(t()[e]).or(n).getOrThunk((function(){return N_(t)}))},$_=function(e,t){return Ql(e,(function(e){return w.from(t()[e])})).getOrThunk((function(){return N_(t)}))},F_={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},z_=function(e){var t=L_({dom:{tag:"p",innerHtml:e.translationProvider(e.text)},behaviours:cc([ab.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=L_({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:cc([ab.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){ab.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);ab.set(r,[ol(n)])}},s={updateProgress:o,updateText:a},l=J([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return w.from(F_[e])})).toArray()]);return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:$_(l,e.iconProvider)}},{dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:cc([ab.config({})])}].concat(e.progress?[i.asSpec()]:[]).concat(j_.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:R_("close",e.iconProvider),attributes:{"aria-label":e.translationProvider("Close")}}}],action:function(t){e.onAction(t)}})),apis:s}},q_=Zg({name:"Notification",factory:z_,configFields:[Cn("level"),pn("progress"),pn("icon"),pn("onAction"),pn("text"),pn("iconProvider"),pn("translationProvider")],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}}),U_=tinymce.util.Tools.resolve("tinymce.util.Delay");function H_(e,t,n){var r=t.backstage,i=function(e){switch(e){case"bc-bc":return M_;case"tc-tc":return D_;case"tc-bc":return Yu;case"bc-tc":default:return Xu}},o=function(e){V(e,(function(e){return e.moveTo(0,0)}))},a=function(e){e.length>0&&(ae(e).each((function(e){return e.moveRel(null,"banner")})),V(e,(function(t,n){n>0&&t.moveRel(e[n-1].getEl(),"bc-tc")})))},s=function(e){o(e),a(e)},l=function(e,o){var a=function(){o(),__.hide(l)},s=ll(q_.sketch({text:e.text,level:F(["success","error","warning","warn","info"],e.type)?e.type:void 0,progress:!0===e.progressBar,icon:w.from(e.icon),onAction:a,iconProvider:r.shared.providers.icons,translationProvider:r.shared.providers.translate})),l=ll(__.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:t.backstage.shared.getSink,fireDismissalEventInstead:{}}));return n.add(l),e.timeout>0&&U_.setTimeout((function(){a()}),e.timeout),{close:a,moveTo:function(e,t){__.showAt(l,{anchor:"makeshift",x:e,y:t},ul(s))},moveRel:function(e,n){if("banner"!==n){var r=i(n),o={anchor:"node",root:vo(),node:w.some(Xn.fromDom(e)),layouts:{onRtl:function(){return[r]},onLtr:function(){return[r]}}};__.showAt(l,o,ul(s))}else __.showAt(l,t.backstage.shared.anchors.banner(),ul(s))},text:function(e){q_.updateText(s,e)},settings:e,getEl:function(){return s.element().dom()},progressBar:{value:function(e){q_.updateProgress(s,e)}}}},u=function(e){e.close()},c=function(e){return e.settings};return{open:l,close:u,reposition:s,getArgs:c}}var V_,W_=function(e,n){var r=null,i=function(){null!==r&&(t.clearTimeout(r),r=null)},o=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];null===r&&(r=t.setTimeout((function(){e.apply(null,i),r=null}),n))};return{cancel:i,throttle:o}},K_=function(e,n){var r=null,i=function(){null!==r&&(t.clearTimeout(r),r=null)},o=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];null!==r&&t.clearTimeout(r),r=t.setTimeout((function(){e.apply(null,i),r=null}),n)};return{cancel:i,throttle:o}},G_=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Y_=function(e){return e.nodeType===t.Node.TEXT_NODE},X_=function(e,t){return e.isBlock(t)||F(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},Z_=_e.generate([{aborted:[]},{edge:["element"]},{success:["info"]}]),Q_=_e.generate([{abort:[]},{kontinue:[]},{finish:["info"]}]),J_=function(e,t,n,r,i,o){var a=function(){return o.fold(Z_.aborted,Z_.edge)},s=function(){var n=i();return n?J_(e,n,w.none(),r,i,w.some(t)):a()};if(X_(e,t))return a();if(Y_(t)){var l=t.textContent;return r(Q_,t,l,n).fold(Z_.aborted,(function(){return s()}),Z_.success)}return s()},ew=function(e,t,n,r,i){var o=new G_(t,i||e.getRoot());return J_(e,t,w.some(n),r,o.prev,w.none())},tw="[data-mce-autocompleter]",nw=function(e,t){return rw(Xn.fromDom(e.selection.getNode())).getOrThunk((function(){var n=Xn.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return sa(n,Xn.fromDom(t.extractContents())),t.insertNode(n.dom()),Zo(n).each((function(e){return e.dom().normalize()})),Kf(n).map((function(t){e.selection.setCursorLocation(t.dom(),zf(t))})),n}))},rw=function(e){return Vl(e,tw)},iw=function(e){return e.collapsed&&3===e.startContainer.nodeType},ow=/[\u00a0 \t\r\n]/,aw=function(e,t,n,r){var i;for(i=t-1;i>=0;i--){var o=e.charAt(i);if(ow.test(o))return w.none();if(o===n)break}return-1===i||t-i<r?w.none():w.some(e.substring(i+1,t))},sw=function(e,t){var n=e.toString().substring(t.length);return n.replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},lw=function(e,t,n,r){if(void 0===r&&(r=0),!iw(t))return w.none();var i=function(e,i,o,a){var s=a.getOr(o.length);return aw(o,s,n,1).fold((function(){return o.match(ow)?e.abort():e.kontinue()}),(function(a){var l=t.cloneRange();return l.setStart(i,s-a.length-1),l.setEnd(t.endContainer,t.endOffset),o.length<r?e.abort():e.finish({text:sw(l,n),range:l,triggerChar:n})}))};return ew(e,t.startContainer,t.startOffset,i).fold(w.none,w.none,w.some)},uw=function(e,t,n,r){return void 0===r&&(r=0),rw(Xn.fromDom(t.startContainer)).fold((function(){return lw(e,t,n,r)}),(function(t){var r=e.createRng();return r.selectNode(t.dom()),w.some({range:r,text:sw(r,n),triggerChar:n})}))},cw=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){io(e,Oi(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(Om.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(oo),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(Om.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&rw(Xn.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},fw={setup:cw},dw=tinymce.util.Tools.resolve("tinymce.util.Promise"),hw=function(e,t){return{element:e,offset:t}},pw=function(e){return e.nodeType===t.Node.TEXT_NODE},gw=function(e){return e.nodeType===t.Node.ELEMENT_NODE},mw=function(e){if(pw(e))return hw(e,e.data.length);var t=e.childNodes;return t.length>0?mw(t[t.length-1]):hw(e,t.length)},vw=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?vw(n[t],0):n.length>0&&gw(e)&&n.length===t?mw(n[n.length-1]):hw(e,t)},yw=function(e){var t=function(e,t,n,r){var i=r.getOr(n.length);return 0===i?e.kontinue():e.finish(/\s/.test(n.charAt(i-1)))};return function(n){var r=vw(n.startContainer,n.startOffset);return ew(e,r.element,r.offset,t).fold(o(!0),o(!0),a)}},bw=function(e,t,n){return Ql(n.triggerChars,(function(n){return uw(e,t,n)}))},_w=function(e,t){var n=t(),r=e.selection.getRng();return bw(e.dom,r,n).bind((function(n){return ww(e,t,n)}))},ww=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=G(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return yw(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return w.none();var l=dw.all(H(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction}}))})));return w.some({lookupData:l,context:n})},xw=Nt([vn("type"),An("text")]),Ow=function(e){return Qt("separatormenuitem",xw,e)},Sw=Nt([Un("type",(function(){return"autocompleteitem"})),Un("active",(function(){return!1})),Un("disabled",(function(){return!1})),In("meta",{}),vn("value"),An("text"),An("icon")]),Cw=Nt([vn("type"),vn("ch"),Ln("minChars",1),In("columns",1),Ln("maxResults",10),Tn("matches"),_n("fetch"),_n("onAction")]),kw=function(e){return Qt("Autocompleter.Separator",xw,e)},Ew=function(e){return Qt("Autocompleter.Item",Sw,e)},Aw=function(e){return Qt("Autocompleter",Cw,e)},Tw=function(e){var t={};return V(e,(function(e){t[e]={}})),ue(t)},Dw=function(e){var t=e.ui.registry.getAll().popups,n=de(t,(function(e){return Aw(e).fold((function(e){throw new Error(tn(e))}),(function(e){return e}))})),r=Tw(pe(n,(function(e){return e.ch}))),i=me(n),o=function(e){return G(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}},Mw=[Bn("disabled",!1),An("text"),An("shortcut"),qt("value","value",Ie((function(){return Ma("menuitem-value")})),on()),In("meta",{})],Pw=Nt([vn("type"),$n("onSetup",(function(){return n})),$n("onAction",n),An("icon")].concat(Mw)),Iw=function(e){return Qt("menuitem",Pw,e)},jw=Nt([vn("type"),_n("getSubmenuItems"),$n("onSetup",(function(){return n})),An("icon")].concat(Mw)),Lw=function(e){return Qt("nestedmenuitem",jw,e)},Nw=Nt([vn("type"),Bn("active",!1),$n("onSetup",(function(){return n})),_n("onAction")].concat(Mw)),Rw=function(e){return Qt("togglemenuitem",Nw,e)},Bw=Nt([vn("type"),Bn("active",!1),An("icon")].concat(Mw)),$w=function(e){return Qt("choicemenuitem",Bw,e)},Fw=["inserttable","colorswatch"],zw=Nt([vn("type"),yn("fancytype",Fw),$n("onAction",n)]),qw=function(e){return Qt("fancymenuitem",zw,e)},Uw=function(e,t,n){var r=ad(e.element(),"."+n);if(r.length>0){var i=Q(r,(function(e){var n=e.dom().getBoundingClientRect().top,i=r[0].dom().getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return w.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return w.none()},Hw=function(e,t){return cc([lb(e,t)])},Vw=function(e){return Hw(Ma("unnamed-events"),e)},Ww={namedEvents:Hw,unnamedEvents:Vw},Kw=[pn("lazySink"),pn("tooltipDom"),In("exclusive",!0),In("tooltipComponents",[]),In("delay",300),Rn("mode","normal",["normal","follow-highlight"]),In("anchor",(function(e){return{anchor:"hotspot",hotspot:e,layouts:{onLtr:o([Xu,Yu,Vu,Ku,Wu,Gu]),onRtl:o([Xu,Yu,Vu,Ku,Wu,Gu])}}})),vu("onHide"),vu("onShow")],Gw=function(){var e=Hn(w.none()),n=Hn(w.none()),r=function(){return n.get()},i=function(e){n.set(w.some(e))},a=function(){n.set(w.none())},s=function(){e.get().each((function(e){t.clearTimeout(e)}))},l=function(n,r){s(),e.set(w.some(t.setTimeout((function(){n()}),r)))},u=function(){return n.get().isSome()},c=o("not-implemented");return Qa({getTooltip:r,isShowing:u,setTooltip:i,clearTooltip:a,clearTimer:s,resetTimer:l,readState:c})},Yw=Object.freeze({init:Gw}),Xw=Ma("tooltip.exclusive"),Zw=Ma("tooltip.show"),Qw=Ma("tooltip.hide"),Jw=function(e,t,n){e.getSystem().broadcastOn([Xw],{})},ex=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&ab.set(e,r)}))},tx=Object.freeze({hideAllExclusive:Jw,setComponents:ex}),nx=function(e,t){var n=function(n){t.getTooltip().each((function(r){Ih(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){Jw(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Oo("normal"===e.mode?[Eo(_i(),(function(e){ro(n,Zw)})),Eo(yi(),(function(e){ro(n,Qw)}))]:[]),behaviours:cc([ab.config({})])});t.setTooltip(i),Dh(r,i),e.onShow(n,i),Sh.position(r,e.anchor(n),i)}};return Oo(J([[Eo(Zw,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),Eo(Qw,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Eo(ji(),(function(e,t){var r=t;F(r.channels(),Xw)&&n(e)})),Bo((function(e){n(e)}))],"normal"===e.mode?[Eo(wi(),(function(e){ro(e,Zw)})),Eo(Pi(),(function(e){ro(e,Qw)})),Eo(_i(),(function(e){ro(e,Zw)})),Eo(yi(),(function(e){ro(e,Qw)}))]:[Eo(to(),(function(e,t){ro(e,Zw)})),Eo(no(),(function(e){ro(e,Qw)}))]]))},rx=Object.freeze({events:nx}),ix=dc({fields:Kw,name:"tooltipping",active:rx,state:Yw,apis:tx}),ox=function(e){var t=void 0!==e.dom().attributes?e.dom().attributes:[];return X(t,(function(e,t){var n;return"class"===t.name?e:h(h({},e),(n={},n[t.name]=t.value,n))}),{})},ax=function(e){return Array.prototype.slice.call(e.dom().classList,0)},sx=function(e){var t=Xn.fromHtml(e),n=ea(t),r=ox(t),i=ax(t),o=0===n.length?{}:{innerHtml:pa(t)};return h({tag:co(t),classes:i,attributes:r},o)},lx=tinymce.util.Tools.resolve("tinymce.util.I18n"),ux="tox-menu-nav__js",cx="tox-collection__item",fx="tox-swatch",dx={normal:ux,color:fx},hx="tox-collection__item--enabled",px="tox-collection__group-heading",gx="tox-collection__item-icon",mx="tox-collection__item-label",vx="tox-collection__item-accessory",yx="tox-collection__item-caret",bx="tox-collection__item-checkmark",_x="tox-collection__item--active",wx="tox-collection__item-icon-rtl",xx=function(e){return We(dx,e).getOr(ux)},Ox=tinymce.util.Tools.resolve("tinymce.Env"),Sx=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=Ox.mac?t:n,i=e.split("+"),o=H(i,(function(e){var t=e.toLowerCase().trim();return ye(r,t)?r[t]:e}));return Ox.mac?o.join(""):o.join("+")},Cx={convertText:Sx},kx=function(e){return{dom:{tag:"div",classes:[gx],innerHtml:e}}},Ex=function(e){return{dom:{tag:"div",classes:[mx]},components:[ol(lx.translate(e))]}},Ax=function(e){return{dom:{tag:"div",classes:[mx],innerHtml:e}}},Tx=function(e,t){return{dom:{tag:"div",classes:[mx]},components:[{dom:{tag:e.tag,attributes:{style:e.styleAttr}},components:[ol(lx.translate(t))]}]}},Dx=function(e){return{dom:{tag:"div",classes:[vx],innerHtml:Cx.convertText(e)}}},Mx=function(e){return{dom:{tag:"div",classes:[gx,bx],innerHtml:R_("checkmark",e)}}},Px=function(e){return{dom:{tag:"div",classes:[yx],innerHtml:R_("chevron-right",e)}}},Ix=function(e){return{dom:{tag:"div",classes:[yx],innerHtml:R_("chevron-down",e)}}},jx=function(e,t,n,r){var i="custom",o="remove",a=function(){var a=fx,s=n.getOr(""),l=e.map((function(e){return' title="'+r.translate(e)+'"'})).getOr("");return sx(t===i?'<button class="'+a+' tox-swatches__picker-btn"'+l+">"+s+"</button>":t===o?'<div class="'+a+' tox-swatch--remove"'+l+">"+s+"</div>":'<div class="'+a+'" style="background-color: '+t+'" data-mce-color="'+t+'"'+l+"></div>")};return{dom:a(),optComponents:[]}},Lx=function(e,t,n,r,i){var o=n?e.checkMark.orThunk((function(){return t.or(w.some("")).map(kx)})):w.none(),a=e.ariaLabel.map((function(e){return{attributes:{title:lx.translate(e)}}})).getOr({}),s=ke({tag:"div",classes:[ux,cx].concat(i?[wx]:[])},a),l=e.htmlContent.fold((function(){return e.textContent.map(r)}),(function(e){return w.some(Ax(e))})),u={dom:s,optComponents:[o,l,e.shortcutContent.map(Dx),e.caret]};return u},Nx=["list-num-default","list-num-lower-alpha","list-num-lower-greek","list-num-lower-roman","list-num-upper-alpha","list-num-upper-roman"],Rx=["list-bull-circle","list-bull-default","list-bull-square"],Bx=function(e,t,n,r){void 0===r&&(r=w.none());var i=function(e){return e.map((function(e){return lx.isRtl()&&F(Nx,e)?e+"-rtl":e}))},o=lx.isRtl()&&e.iconContent.exists((function(e){return F(Rx,e)})),a=i(e.iconContent).map((function(e){return B_(e,t.icons,r)})),l=w.from(e.meta).fold((function(){return Ex}),(function(e){return ye(e,"style")?s(Tx,e.style):Ex}));return"color"===e.presets?jx(e.ariaLabel,e.value,a,t):Lx(e,a,n,l,o)},$x=["input","button","textarea","select"],Fx=function(e,t,n){t.disabled&&Gx(e,t)},zx=function(e,t){return!0===t.useNative&&F($x,co(e.element()))},qx=function(e){return wa(e.element(),"disabled")},Ux=function(e){ya(e.element(),"disabled","disabled")},Hx=function(e){xa(e.element(),"disabled")},Vx=function(e){return"true"===_a(e.element(),"aria-disabled")},Wx=function(e){ya(e.element(),"aria-disabled","true")},Kx=function(e){ya(e.element(),"aria-disabled","false")},Gx=function(e,t,n){t.disableClass.each((function(t){Ds(e.element(),t)}));var r=zx(e,t)?Ux:Wx;r(e),t.onDisabled(e)},Yx=function(e,t,n){t.disableClass.each((function(t){Ps(e.element(),t)}));var r=zx(e,t)?Hx:Kx;r(e),t.onEnabled(e)},Xx=function(e,t){return zx(e,t)?qx(e):Vx(e)},Zx=function(e,t,n,r){var i=r?Gx:Yx;i(e,t,n)},Qx=Object.freeze({enable:Yx,disable:Gx,isDisabled:Xx,onLoad:Fx,set:Zx}),Jx=function(e,t,n){return rs({classes:t.disabled?t.disableClass.map(ie).getOr([]):[]})},eO=function(e,t){return Oo([So(Li(),(function(t,n){return Xx(t,e)})),ic(e,t,Fx)])},tO=Object.freeze({exhibit:Jx,events:eO}),nO=[In("disabled",!1),In("useNative",!0),Cn("disableClass"),vu("onDisabled"),vu("onEnabled")],rO=dc({fields:nO,name:"disabling",active:tO,apis:Qx}),iO=function(e){return rO.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},oO=function(e){return rO.config({disabled:e})},aO=function(e){return rO.config({disabled:e,disableClass:"tox-tbtn--disabled"})},sO=function(e){return rO.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},lO={item:iO,button:oO,splitButton:aO,toolbarButton:sO},uO=function(e,t){var n=e.getApi(t);return function(e){e(n)}},cO=function(e,t){return Ro((function(n){var r=uO(e,n);r((function(n){var r=e.onSetup(n);null!==r&&void 0!==r&&t.set(r)}))}))},fO=function(e,t){return Bo((function(n){return uO(e,n)(t.get())}))};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(V_||(V_={}));var dO=V_,hO=function(e,t){return Fo((function(n,r){uO(e,n)(e.onAction),e.triggersSubmenu||t!==dO.CLOSE_ON_EXECUTE||(ro(n,Fi()),r.stop())}))},pO={"alloy.execute":["disabling","alloy.base.behaviour","toggling","item-events"]},gO=function(e){return ee(e,(function(e){return e.toArray()}))},mO=function(e,t,r){var i=Hn(n);return{type:"item",dom:t.dom,components:gO(t.optComponents),data:e.data,eventOrder:pO,hasSubmenu:e.triggersSubmenu,itemBehaviours:cc([lb("item-events",[hO(e,r),cO(e,i),fO(e,i)]),lO.item(e.disabled),ab.config({})].concat(e.itemBehaviours))}},vO=function(e){return{value:e.value,meta:ke({text:e.text.getOr("")},e.meta)}},yO=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),bO=function(e,t){return ve(e,"tooltipWorker").map((function(e){return[ix.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{anchor:"submenu",item:e,overrides:{maxHeightFunction:ch}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){ix.setComponents(t,[al({element:Xn.fromDom(e)})])}))}})]})).getOr([])},_O=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},wO=function(e){return yO.DOM.encode(e)},xO=function(e,t){var n=lx.translate(e),r=wO(n);if(t.length>0){var i=new RegExp(_O(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},OO=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var l=Bx({presets:r,textContent:w.none(),htmlContent:n?e.text.map((function(e){return xO(e,t)})):w.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:w.none(),checkMark:w.none(),caret:w.none(),value:e.value},a.providers,s,e.icon);return mO({data:vO(e),disabled:e.disabled,getApi:function(){return{}},onAction:function(t){return i(e.value,e.meta)},onSetup:function(){return function(){}},triggersSubmenu:!1,itemBehaviours:bO(e.meta,a)},l,o)},SO=function(e,t,n,r,i,o,a){var s=function(e){return{setActive:function(t){Nb.set(e,t)},isActive:function(){return Nb.isOn(e)},isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},l=Bx({presets:n,textContent:t?e.text:w.none(),htmlContent:w.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:w.none(),checkMark:t?w.some(Mx(a.icons)):w.none(),caret:w.none(),value:e.value},a,!0);return Ce(mO({data:vO(e),disabled:e.disabled,getApi:s,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(i),function(){}},triggersSubmenu:!1,itemBehaviours:[]},l,o),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:e.active}})},CO=o(kg(Kb(),Gb())),kO=Ma("cell-over"),EO=Ma("cell-execute"),AO=function(e,t,n){var r,i=function(n){return io(n,kO,{row:e,col:t})},o=function(n){return io(n,EO,{row:e,col:t})};return ll({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:cc([lb("insert-table-picker-cell",[Eo(_i(),vb.focus),Eo(Li(),o),Eo(Bi(),o)]),Nb.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),vb.config({onFocus:i})])})},TO=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(AO(i,a,e));r.push(o)}return r},DO=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)Nb.set(e[o][a],o<=t&&a<=n)},MO=function(e){return ee(e,(function(e){return H(e,ul)}))},PO=function(e,t){return ol(t+1+"x"+(e+1))};function IO(e){var t=10,n=10,r=Ma("size-label"),i=TO(r,t,n),o=L_({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[ol("0x0")],behaviours:cc([ab.config({})])});return{type:"widget",data:{value:Ma("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[CO().widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:MO(i).concat(o.asSpec()),behaviours:cc([lb("insert-table-picker",[Io(kO,(function(e,r,a){var s=a.event().row(),l=a.event().col();DO(i,s,l,t,n),ab.set(o.get(e),[PO(s,l)])})),Io(EO,(function(t,n,r){e.onAction({numRows:r.event().row()+1,numColumns:r.event().col()+1}),ro(t,Fi())}))]),Xy.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}}var jO=function(e){return{value:o(e)}},LO=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,NO=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,RO=function(e){return LO.test(e)||NO.test(e)},BO=function(e){var t=e.value().replace(LO,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:o(t)}},$O=function(e){var t=BO(e),n=NO.exec(t.value());return null===n?["FFFFFF","FF","FF","FF"]:n},FO=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},zO=function(e){var t=FO(e.red())+FO(e.green())+FO(e.blue());return jO(t)},qO=Math.min,UO=Math.max,HO=Math.round,VO=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,WO=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,KO=function(e,t,n,r){return{red:o(e),green:o(t),blue:o(n),alpha:o(r)}},GO=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},YO=function(e){var t,n,r,i=(e.hue()||0)%360,o=e.saturation()/100,a=e.value()/100;if(o=UO(0,qO(o,1)),a=UO(0,qO(a,1)),0===o)return t=n=r=HO(255*a),KO(t,n,r,1);var s=i/60,l=a*o,u=l*(1-Math.abs(s%2-1)),c=a-l;switch(Math.floor(s)){case 0:t=l,n=u,r=0;break;case 1:t=u,n=l,r=0;break;case 2:t=0,n=l,r=u;break;case 3:t=0,n=u,r=l;break;case 4:t=u,n=0,r=l;break;case 5:t=l,n=0,r=u;break;default:t=n=r=0}return t=HO(255*(t+c)),n=HO(255*(n+c)),r=HO(255*(r+c)),KO(t,n,r,1)},XO=function(e){var t=$O(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return KO(n,r,i,1)},ZO=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return KO(i,o,a,s)},QO=function(e){if("transparent"===e)return w.some(KO(0,0,0,0));var t=VO.exec(e);if(null!==t)return w.some(ZO(t[1],t[2],t[3],"1"));var n=WO.exec(e);return null!==n?w.some(ZO(n[1],n[2],n[3],n[4])):w.none()},JO=function(e){return"rgba("+e.red()+","+e.green()+","+e.blue()+","+e.alpha()+")"},eS=o(KO(255,0,0,1)),tS=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),nS="tinymce-custom-colors";function rS(e){void 0===e&&(e=10);var t=tS.getItem(nS),n=A(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),o=function(t){$(i,t).each(a),i.unshift(t),i.length>e&&i.pop(),tS.setItem(nS,JSON.stringify(i))},a=function(e){i.splice(e,1)},s=function(){return i.slice(0)};return{add:o,state:s}}var iS="choiceitem",oS=[{type:iS,text:"Light Green",value:"#BFEDD2"},{type:iS,text:"Light Yellow",value:"#FBEEB8"},{type:iS,text:"Light Red",value:"#F8CAC6"},{type:iS,text:"Light Purple",value:"#ECCAFA"},{type:iS,text:"Light Blue",value:"#C2E0F4"},{type:iS,text:"Green",value:"#2DC26B"},{type:iS,text:"Yellow",value:"#F1C40F"},{type:iS,text:"Red",value:"#E03E2D"},{type:iS,text:"Purple",value:"#B96AD9"},{type:iS,text:"Blue",value:"#3598DB"},{type:iS,text:"Dark Turquoise",value:"#169179"},{type:iS,text:"Orange",value:"#E67E23"},{type:iS,text:"Dark Red",value:"#BA372A"},{type:iS,text:"Dark Purple",value:"#843FA1"},{type:iS,text:"Dark Blue",value:"#236FA1"},{type:iS,text:"Light Gray",value:"#ECF0F1"},{type:iS,text:"Medium Gray",value:"#CED4D9"},{type:iS,text:"Gray",value:"#95A5A6"},{type:iS,text:"Dark Gray",value:"#7E8C8D"},{type:iS,text:"Navy Blue",value:"#34495E"},{type:iS,text:"Black",value:"#000000"},{type:iS,text:"White",value:"#ffffff"}],aS=rS(10),sS=function(e){var n=[],r=t.document.createElement("canvas");r.height=1,r.width=1;for(var i=r.getContext("2d"),o=function(e,t){var n=255,r=t/255,i=Math.round(e*r+n*(1-r));return("0"+i.toString(16)).slice(-2).toUpperCase()},a=function(e){if(/^[0-9A-Fa-f]{6}$/.test(e))return"#"+e.toUpperCase();i.clearRect(0,0,r.width,r.height),i.fillStyle="#FFFFFF",i.fillStyle=e,i.fillRect(0,0,1,1);var t=i.getImageData(0,0,1,1).data,n=t[0],a=t[1],s=t[2],l=t[3];return"#"+o(n,l)+o(a,l)+o(s,l)},s=0;s<e.length;s+=2)n.push({text:e[s+1],value:a(e[s]),type:"choiceitem"});return n},lS=function(e,t){return e.getParam("color_cols",t,"number")},uS=function(e){return!1!==e.getParam("custom_colors")},cS=function(e){return e.getParam("color_map")},fS=function(e){var t=cS(e);return void 0!==t?sS(t):oS},dS=function(){return H(aS.state(),(function(e){return{type:iS,text:e,value:e}}))},hS=function(e){aS.add(e)},pS={mapColors:sS,getColorCols:lS,hasCustomColors:uS,getColorMap:cS,getColors:fS,getCurrentColors:dS,addColor:hS},gS=function(e){return e.fire("SkinLoaded")},mS=function(e){return e.fire("ResizeEditor")},vS=function(e){return e.fire("BeforeRenderUI")},yS=function(e,t){return e.fire("ResizeContent",t)},bS=function(e,t){return e.fire("ScrollContent",t)},_S=function(e,t){return e.fire("TextColorChange",t)},wS={fireSkinLoaded:gS,fireResizeEditor:mS,fireScrollContent:bS,fireBeforeRenderUI:vS,fireResizeContent:yS,fireTextColorChange:_S},xS=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),n},OS=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},SS=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},CS=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){OS(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){SS(e,t)}))},kS=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},ES=function(e){var t=pS.getColors(e),n=kS(t.length);return pS.getColorCols(e,n)},AS=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},TS=function(e,t,n,r){if("custom"===n){var i=LS(e);i((function(n){n.each((function(n){pS.addColor(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),"#000000")}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},DS=function(e,t){return e.concat(pS.getCurrentColors().concat(AS(t)))},MS=function(e,t){return function(n){n(DS(e,t))}},PS=function(e,t,n){var r=function(t,n){e.setIconFill(t,n),e.setIconStroke(t,n)},i="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";r(i,n)},IS=function(e,t,n,r,i){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=w.from(xS(e,n));return r.bind((function(e){return QO(e).map((function(e){var n=zO(e).value();return jr(t.toLowerCase(),n)}))})).getOr(!1)},columns:ES(e),fetch:MS(pS.getColors(e),pS.hasCustomColors(e)),onAction:function(t){null!==i.get()&&TS(e,n,i.get(),(function(){}))},onItemAction:function(r,o){TS(e,n,o,(function(n){i.set(n),wS.fireTextColorChange(e,{name:t,color:n})}))},onSetup:function(n){null!==i.get()&&PS(n,t,i.get());var r=function(e){e.name===t&&PS(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},jS=function(e,t,r,i){e.ui.registry.addNestedMenuItem(t,{text:i,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){TS(e,r,t.value,n)}}]}})},LS=function(e){return function(t,n){var r=function(e){return function(t){var n=t.getData();e(w.from(n.colorpicker)),t.close()}},i=function(e,t){"hex-valid"===t.name&&(t.value?e.enable("ok"):e.disable("ok"))},o={colorpicker:n},a=r(t);e.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:o,onAction:i,onSubmit:a,onClose:function(){},onCancel:function(){t(w.none())}})}},NS=function(e){CS(e);var t=Hn(null),n=Hn(null);IS(e,"forecolor","forecolor","Text color",t),IS(e,"backcolor","hilitecolor","Background color",n),jS(e,"forecolor","forecolor","Text color"),jS(e,"backcolor","hilitecolor","Background color")},RS={register:NS,getColors:DS,getFetch:MS,colorPickerDialog:LS,getCurrentColor:xS,getColorCols:ES,calcCols:kS},BS=function(e,t){return function(n){var r=U(n,t);return H(r,(function(t){return{dom:e,components:t}}))}},$S=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[o_.parts().items({preprocess:"auto"!==e?BS({tag:"div",classes:["tox-swatches__row"]},e):a})]}]}},FS=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[o_.parts().items({preprocess:BS({tag:"div",classes:["tox-collection__group"]},e)})]}},zS=function(e,t){var n=[],r=[];return V(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],ye(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),H(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},qS=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[o_.parts().items({preprocess:function(n){return"auto"!==e&&e>1?BS({tag:"div",classes:["tox-collection__group"]},e)(n):zS(n,(function(e,n){return"separator"===t[n].type}))}})]}},US=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[o_.parts().items({preprocess:function(t){return zS(t,(function(t,n){return"separator"===e[n].type}))}})]}},HS=function(e){return"color"===e?"tox-swatches":"tox-menu"},VS=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:HS(e),tieredMenu:"tox-tiered-menu"}},WS=function(e){var t=VS(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:xx(e)}},KS=function(e,t,n){var r=VS(n);return{tag:"div",classes:J([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},GS=[o_.parts().items({})],YS=function(e,t,n){var r=VS(n),i={tag:"div",classes:J([[r.tieredMenu]])};return{dom:i,markers:WS(n)}},XS=function(e){return void 0!==e.icon||"togglemenuitem"===e.type||"choicemenuitem"===e.type},ZS=function(e){return z(e,XS)},QS=function(e){return t.console.error(tn(e)),t.console.log(e),w.none()},JS=function(e,t,n,r,i){var o=US(n);return{value:e,dom:o.dom,components:o.components,items:n}},eC=function(e,t,n,r,i){if("color"===i){var o=$S(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=qS(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=qS(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=qS(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=FS(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:KS(t,r,i),components:GS,items:n}},tC=function(e,t,n,r,i,o,a,s){var l=ZS(t),u="color"!==i?"normal":"color",c=nC(t,n,r,u,o,a,s);return eC(e,l,c,r,i)},nC=function(e,t,n,r,i,o,a){return Xl(H(e,(function(e){return"choiceitem"===e.type?$w(e).fold(QS,(function(s){return w.some(SO(s,1===n,r,t,o(e.value),i,a))})):w.none()})))},rC=function(e,t){var n=WS(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},iC=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+fx:"."+cx}}};function oC(e,t){var n=RS.getColors(t.colorinput.getColors(),t.colorinput.hasCustomColors()),r=t.colorinput.getColorCols(),i="color",o=tC(Ma("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,dO.CLOSE_ON_EXECUTE,(function(){return!1}),t.shared.providers),a=Ce(h(h({},o),{markers:WS(i),movement:rC(r,i)}));return{type:"widget",data:{value:Ma("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[CO().widget(o_.sketch(a))]}}var aC,sC={inserttable:IO,colorswatch:oC},lC=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?w.some(e[t]):w.none()},uC=function(e,t){return lC(sC,e.fancytype).map((function(n){return n(e,t)}))},cC=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},o=Bx({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,caret:w.none(),checkMark:w.none(),shortcutContent:e.shortcut},n,r);return mO({data:vO(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t)},fC=function(e,t,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!1);var a=o?Ix(r.icons):Px(r.icons),s=function(e){return{isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},l=Bx({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,caret:w.some(a),checkMark:w.none(),shortcutContent:e.shortcut},r,i);return mO({data:vO(e),getApi:s,disabled:e.disabled,onAction:n,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},l,t)},dC=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:h({tag:"div",classes:[cx,px]},t),components:[]}},hC=function(e,t,n){var r=function(e){return{setActive:function(t){Nb.set(e,t)},isActive:function(){return Nb.isOn(e)},isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},i=Bx({iconContent:w.none(),textContent:e.text,htmlContent:w.none(),ariaLabel:e.text,checkMark:w.some(Mx(n.icons)),caret:w.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,!0);return Ce(mO({data:vO(e),disabled:e.disabled,getApi:r,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},i,t),{toggling:{toggleClass:hx,toggleOnExecute:!1,selected:e.active}})},pC=OO,gC=dC,mC=cC,vC=fC,yC=hC,bC=uC;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(aC||(aC={}));var _C=function(e){return void 0!==e.icon||"togglemenuitem"===e.type||"choicemenuitem"===e.type},wC=function(e){return z(e,_C)},xC=function(e,n,r,i,o){var a=r.shared.providers,s=function(e){return o?h(h({},e),{shortcut:w.none(),icon:e.text.isSome()?w.none():e.icon}):e};switch(e.type){case"menuitem":return Iw(e).fold(QS,(function(e){return w.some(mC(s(e),n,a,i))}));case"nestedmenuitem":return Lw(e).fold(QS,(function(e){return w.some(vC(s(e),n,a,i,o))}));case"togglemenuitem":return Rw(e).fold(QS,(function(e){return w.some(yC(s(e),n,a))}));case"separator":return Ow(e).fold(QS,(function(e){return w.some(gC(e))}));case"fancymenuitem":return qw(e).fold(QS,(function(e){return bC(s(e),r)}));default:return t.console.error("Unknown item in general menu",e),w.none()}},OC=function(e,t,n,r,i,o){var a=1===r,s=!a||wC(e);return Xl(H(e,(function(e){return"separator"===e.type?kw(e).fold(QS,(function(e){return w.some(gC(e))})):Ew(e).fold(QS,(function(e){return w.some(pC(e,t,a,"normal",n,i,o,s))}))})))},SC=function(e,t,n,r,i){var o=wC(t),a=Xl(H(t,(function(e){var t=function(e){return i?!e.hasOwnProperty("text"):o},a=function(e){return xC(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(ke(e,{disabled:!0})):a(e)}))),s=i?JS:eC;return s(e,o,a,1,"normal")},CC=function(e){return v_.singleData(e.value,e)},kC=function(e,t,n,r){var i=n===aC.ContentFocus?Wm():Vm(),o=rC(t,r),a=WS(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===aC.ContentFocus,focusManager:i,menuBehaviours:Ww.unnamedEvents("auto"!==t?[]:[Ro((function(e,t){Uw(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Xy.setGridSize(e,r,n)}))}))])}},EC=function(e,n){var r=Hn(w.none()),i=Hn(!1),o=ll(__.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:cc([lb("dismissAutocompleter",[Eo(Yi(),(function(){return u()}))])]),lazySink:n.getSink})),a=function(){return __.isOpen(o)},s=function(){return r.get().isSome()},l=function(){s()&&__.hide(o)},u=function(){if(s()){var t=r.get().map((function(e){return e.element}));rw(t.getOr(Xn.fromDom(e.selection.getNode()))).each(ha),l(),r.set(w.none()),i.set(!1)}},c=Ee((function(){return Dw(e)})),f=function(r,o){var a=Ql(o,(function(e){return w.from(e.columns)})).getOr(1);return ee(o,(function(o){var s=o.items;return OC(s,o.matchText,(function(n,a){var s=e.selection.getRng();uw(e.dom,s,r).fold((function(){return t.console.error("Lost context. Cursor probably moved")}),(function(e){var t=e.range,r={hide:function(){u()},reload:function(e){l(),g(e)}};i.set(!0),o.onAction(r,t,n,a),i.set(!1)}))}),a,dO.BUBBLE_TO_SANDBOX,n)}))},d=function(t){if(!s()){var n=nw(e,t.range);r.set(w.some({triggerChar:t.triggerChar,element:n,matchLength:t.text.length})),i.set(!1)}},h=function(t,n,r,i){t.matchLength=n.text.length;var a=Ql(r,(function(e){return w.from(e.columns)})).getOr(1);__.showAt(o,{anchor:"node",root:Xn.fromDom(e.getBody()),node:w.from(t.element)},o_.sketch(kC(eC("autocompleter-value",!0,i,a,"normal"),a,aC.ContentFocus,"normal"))),__.getContent(o).each(Om.highlightFirst)},p=function(t){return r.get().map((function(n){return uw(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return ww(e,c,n,t)}))})).getOrThunk((function(){return _w(e,c)}))},g=function(e){p(e).fold(u,(function(e){d(e.context),e.lookupData.then((function(t){r.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=f(r.triggerChar,t);i.length>0?h(n,r,t,i):r.text.length-n.matchLength>=10?u():l()}}))}))}))},m=K_((function(e){27!==e.which&&g()}),50),v={onKeypress:m,cancelIfNecessary:u,isMenuOpen:a,isActive:s,isProcessingAction:i.get,getView:function(){return __.getContent(o)}};fw.setup(v,e)},AC={register:EC},TC=function(e,t,n,r,i,a,s){return{target:o(e),x:o(t),y:o(n),stop:r,prevent:i,kill:a,raw:o(s)}},DC=function(e){var t=Xn.fromDom(e.target),n=function(){e.stopPropagation()},r=function(){e.preventDefault()},o=i(r,n);return TC(t,e.clientX,e.clientY,n,r,o,e)},MC=function(e,t){return function(n){e(n)&&t(DC(n))}},PC=function(e,t,n,r,i){var o=MC(n,r);return e.dom().addEventListener(t,o,i),{unbind:s(LC,e,t,o,i)}},IC=function(e,t,n,r){return PC(e,t,n,r,!1)},jC=function(e,t,n,r){return PC(e,t,n,r,!0)},LC=function(e,t,n,r){e.dom().removeEventListener(t,n,r)},NC=o(!0),RC=function(e,t,n){return IC(e,t,NC,n)},BC=function(e,t,n){return jC(e,t,NC,n)},$C=DC,FC=function(e,t,n){return Vl(e,t,n).isSome()};function zC(e,n){var r=null,i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r=t.setTimeout((function(){e.apply(null,i),r=null}),n)},o=function(){null!==r&&(t.clearTimeout(r),r=null)};return{cancel:o,schedule:i}}var qC=5,UC=400,HC=function(e){var t=e.raw();return void 0===t.touches||1!==t.touches.length?w.none():w.some(t.touches[0])},VC=function(e,t){var n=Math.abs(e.clientX-t.x()),r=Math.abs(e.clientY-t.y());return n>qC||r>qC},WC=function(e){var t=Hn(w.none()),n=Hn(!1),r=zC((function(t){e.triggerEvent($i(),t),n.set(!0)}),UC),i=function(e){return HC(e).each((function(i){r.cancel();var a={x:o(i.clientX),y:o(i.clientY),target:e.target};r.schedule(e),n.set(!1),t.set(w.some(a))})),w.none()},a=function(e){return r.cancel(),HC(e).each((function(e){t.get().each((function(n){VC(e,n)&&t.set(w.none())}))})),w.none()},s=function(i){r.cancel();var o=function(e){return ni(e.target(),i.target())};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(Ri(),i)}))},l=Ge([{key:hi(),value:i},{key:pi(),value:a},{key:gi(),value:s}]),u=function(e,t){return We(l,t).bind((function(t){return t(e)}))};return{fireIfReady:u}},KC=function(e){var t=e.raw();return t.which===Sm()[0]&&!F(["input","textarea"],co(e.target()))&&!FC(e.target(),'[contenteditable="true"]')},GC=Wr().browser.isFirefox(),YC=Lt([_n("triggerEvent"),In("stopBackspace",!0)]),XC=function(e,t){return GC?BC(e,"focus",t):RC(e,"focusin",t)},ZC=function(e,t){return GC?BC(e,"blur",t):RC(e,"focusout",t)},QC=function(e,n){var r=en("Getting GUI events settings",YC,n),i=Wr().deviceType.isTouch()?["touchstart","touchmove","touchend","gesturestart"]:["mousedown","mouseup","mouseover","mousemove","mouseout","click"],o=WC(r),a=H(i.concat(["selectstart","input","contextmenu","change","transitionend","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return RC(e,t,(function(e){o.fireIfReady(e,t).each((function(t){t&&e.kill()}));var n=r.triggerEvent(t,e);n&&e.kill()}))})),s=Hn(w.none()),l=RC(e,"paste",(function(e){o.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var n=r.triggerEvent("paste",e);n&&e.kill(),s.set(w.some(t.setTimeout((function(){r.triggerEvent(Ii(),e)}),0)))})),u=RC(e,"keydown",(function(e){var t=r.triggerEvent("keydown",e);t?e.kill():!0===r.stopBackspace&&KC(e)&&e.prevent()})),c=XC(e,(function(e){var t=r.triggerEvent("focusin",e);t&&e.kill()})),f=Hn(w.none()),d=ZC(e,(function(e){var n=r.triggerEvent("focusout",e);n&&e.kill(),f.set(w.some(t.setTimeout((function(){r.triggerEvent(Pi(),e)}),0)))})),h=function(){V(a,(function(e){e.unbind()})),u.unbind(),c.unbind(),d.unbind(),l.unbind(),s.get().each(t.clearTimeout),f.get().each(t.clearTimeout)};return{unbind:h}},JC=function(e,t){var n=We(e,"target").map((function(e){return e()})).getOr(t);return Hn(n)},ek=function(e,t){var n=Hn(!1),r=Hn(!1),i=function(){n.set(!0)},a=function(){r.set(!0)};return{stop:i,cut:a,isStopped:n.get,isCut:r.get,event:o(e),setSource:t.set,getSource:t.get}},tk=function(e){var t=Hn(!1),r=function(){t.set(!0)};return{stop:r,cut:n,isStopped:t.get,isCut:o(!1),event:o(e),setSource:u("Cannot set source of a broadcasted event"),getSource:u("Cannot get source of a broadcasted event")}},nk=_e.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),rk=function(e,t,n,r,i,o){var a=e(t,r),s=ek(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),nk.complete()}),(function(e){var n=e.descHandler(),r=cs(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element(),n.purpose()),nk.stopped()):s.isCut()?(o.logEventCut(t,e.element(),n.purpose()),nk.complete()):Zo(e.element()).fold((function(){return o.logNoParent(t,e.element(),n.purpose()),nk.complete()}),(function(r){return o.logEventResponse(t,e.element(),n.purpose()),nk.resume(r)}))}))},ik=function(e,t,n,r,i,o){return rk(e,t,n,r,i,o).fold((function(){return!0}),(function(r){return ik(e,t,n,r,i,o)}),(function(){return!1}))},ok=function(e,t,n,r,i){var o=JC(n,r);return rk(e,t,n,r,o,i)},ak=function(e,t,n){var r=tk(t);return V(e,(function(e){var t=e.descHandler(),n=cs(t);n(r)})),r.isStopped()},sk=function(e,t,n,r){var i=n.target();return lk(e,t,n,i,r)},lk=function(e,t,n,r,i){var o=JC(n,r);return ik(e,t,n,r,o,i)},uk=zo("element","descHandler"),ck=function(e,t){return{id:o(e),descHandler:o(t)}};function fk(){var e={},t=function(t,n,r){fe(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=us(r,t),e[i]=o}))},n=function(e,t){return Ba(t).fold((function(){return w.none()}),(function(n){var r=He(n);return e.bind(r).map((function(e){return uk(t,e)}))}))},r=function(t){return We(e,t).map((function(e){return pe(e,(function(e,t){return ck(t,e)}))})).getOr([])},i=function(t,r,i){var o=He(r),a=o(e);return xo(i,(function(e){return n(a,e)}),t)},o=function(t){fe(e,(function(e,n){e.hasOwnProperty(t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}}function dk(){var e=fk(),t={},n=function(e){var t=e.element();return Ba(t).fold((function(){return Na("uid-",e.element())}),(function(e){return e}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+ka(r.element())+"\nCannot use it for: "+ka(e.element())+"\nThe conflicting element is"+(mo(r.element())?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);Qe(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events()),t[o]=i},o=function(n){Ba(n.element()).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},l=function(e){return He(e)(t)};return{find:s,filter:a,register:i,unregister:o,getById:l}}var hk,pk=function(e){var t=e.dom,n=t.attributes,r=p(t,["attributes"]);return{uid:e.uid,dom:h({tag:"div",attributes:h({role:"presentation"},n)},r),components:e.components,behaviours:qp(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},gk=Zg({name:"Container",factory:pk,configFields:[In("components",[]),zp("containerBehaviours",[]),In("events",{}),In("domModification",{}),In("eventOrder",{})]}),mk=function(e){var t=function(t){return Zo(e.element()).fold((function(){return!0}),(function(e){return ni(t,e)}))},r=dk(),i=function(e,n){return r.find(t,e,n)},a=QC(e.element(),{triggerEvent:function(e,t){return su(e,t.target(),(function(n){return sk(i,e,t,n)}))}}),s={debugInfo:o("real"),triggerEvent:function(e,t,n){su(e,t,(function(r){lk(i,e,n,t,r)}))},triggerFocus:function(e,t){Ba(e).fold((function(){Oc(e)}),(function(r){su(Mi(),e,(function(r){ok(i,Mi(),{originator:o(t),kill:n,prevent:n,target:o(e)},e,r)}))}))},triggerEscape:function(e,t){s.triggerEvent("keydown",e.element(),t.event())},getByUid:function(e){return v(e)},getByDom:function(e){return y(e)},build:ll,addToGui:function(e){c(e)},removeFromGui:function(e){f(e)},addToWorld:function(e){l(e)},removeFromWorld:function(e){u(e)},broadcast:function(e){p(e)},broadcastOn:function(e,t){g(e,t)},broadcastEvent:function(e,t){m(e,t)},isConnected:o(!0)},l=function(e){e.connect(s),go(e.element())||(r.register(e),V(e.components(),l),s.triggerEvent(qi(),e.element(),{target:o(e.element())}))},u=function(e){go(e.element())||(V(e.components(),u),r.unregister(e)),e.disconnect()},c=function(t){Dh(e,t)},f=function(e){Ih(e)},d=function(){a.unbind(),da(e.element())},h=function(e){var t=r.filter(ji());V(t,(function(t){var n=t.descHandler(),r=cs(n);r(e)}))},p=function(e){h({universal:o(!0),data:o(e)})},g=function(e,t){h({universal:o(!1),channels:o(e),data:o(t)})},m=function(e,t){var n=r.filter(e);return ak(n,t)},v=function(e){return r.getById(e).fold((function(){return C.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),C.value)},y=function(e){var t=Ba(e).getOr("not found");return v(t)};return l(e),{root:o(e),element:e.element,destroy:d,add:c,remove:f,getByUid:v,getByDom:y,addToWorld:l,removeFromWorld:u,broadcast:p,broadcastOn:g,broadcastEvent:m}},vk=tinymce.util.Tools.resolve("tinymce.EditorManager"),yk=function(e){var t=e.settings,n=t.skin,r=t.skin_url;if(!1!==n){var i=n||"oxide";r=r?e.documentBaseURI.toAbsolute(r):vk.baseURL+"/skins/ui/"+i}return r},bk=function(e){return e.getParam("readonly",!1,"boolean")},_k=function(e){return!1===e.getParam("skin")},wk=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},xk=function(e){return w.from(e.settings.min_width).filter(I)},Ok=function(e){return w.from(e.settings.min_height).filter(I)},Sk=function(e){return w.from(e.getParam("max_width")).filter(I)},Ck=function(e){return w.from(e.getParam("max_height")).filter(I)},kk=function(e){return w.from(e.getParam("style_formats")).filter(D)},Ek=function(e){return e.getParam("style_formats_merge",!1,"boolean")},Ak=function(e){return e.getParam("removed_menuitems","")},Tk=function(e){return!1!==e.getParam("menubar",!0,"boolean")},Dk=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=A(t),i=D(t)&&t.length>0;return!Pk(e)&&(i||r||n)},Mk=function(e){var t=ue(e.settings),n=G(t,(function(e){return/^toolbar([1-9])$/.test(e)})),r=H(n,(function(t){return e.getParam(t,!1,"string")})),i=G(r,(function(e){return"string"===typeof e}));return i.length>0?w.some(i):w.none()},Pk=function(e){return Mk(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),(function(){return!0}))};(function(e){e["default"]="",e["floating"]="floating",e["sliding"]="sliding"})(hk||(hk={}));var Ik=function(e){return e.getParam("toolbar_drawer","","string")},jk=function(e){return e.getParam("fixed_toolbar_container","","string")},Lk=function(e){var t=jk(e);return t.length>0&&e.inline?Hl(vo(),t):w.none()},Nk=function(e){return e.inline&&Lk(e).isSome()},Rk=function(e){var t=Lk(e);return t.getOr(vo())},Bk=function(e){return e.inline&&!Tk(e)&&!Dk(e)&&!Pk(e)},$k=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!Nk(e)&&!Bk(e)},Fk=function(e){return e.getParam("draggable_modal",!1,"boolean")},zk=Ma("form-component-change"),qk=Ma("form-close"),Uk=Ma("form-cancel"),Hk=Ma("form-action"),Vk=Ma("form-submit"),Wk=Ma("form-block"),Kk=Ma("form-unblock"),Gk=Ma("form-tabchange"),Yk=Ma("form-resize"),Xk=function(e,t){return gk.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[j_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:R_(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){io(t,Hk,{name:"alert-banner",value:e.url})}})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},Zk=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:H(e.items,t.interpreter)}},Qk=o([In("prefix","form-field"),zp("fieldBehaviours",[rm,Fp])]),Jk=o([_g({schema:[pn("dom")],name:"label"}),_g({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[pn("text")],name:"aria-descriptor"}),yg({factory:{sketch:function(e){var t=Ue(e,["factory"]);return e.factory.sketch(t)}},schema:[pn("factory")],name:"field"})]),eE=function(e,t,n,r){var i=Up(e.fieldBehaviours,[rm.config({find:function(t){return Ig(t,e,"field")}}),Fp.config({store:{mode:"manual",getValue:function(e){return rm.getCurrent(e).bind(Fp.getValue)},setValue:function(e,t){rm.getCurrent(e).each((function(e){Fp.setValue(e,t)}))}}})]),o=Oo([Ro((function(t,n){var r=Lg(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=Ma(e.prefix);r.label().each((function(e){ya(e.element(),"for",n),ya(t.element(),"id",n)})),r["aria-descriptor"]().each((function(n){var r=Ma(e.prefix);ya(n.element(),"id",r),ya(t.element(),"aria-describedby",r)}))}))}))]),a={getField:function(t){return Ig(t,e,"field")},getLabel:function(t){return Ig(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},tE=Qg({name:"FormField",configFields:Qk(),partFields:Jk(),factory:eE,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),nE=o([Cn("data"),In("inputAttributes",{}),In("inputStyles",{}),In("tag","input"),In("inputClasses",[]),vu("onSetValue"),In("styles",{}),In("eventOrder",{}),zp("inputBehaviours",[Fp,vb]),In("selectOnFocus",!0)]),rE=function(e){return cc([vb.config({onFocus:!1===e.selectOnFocus?n:function(e){var t=e.element(),n=Gs(t);t.dom().setSelectionRange(0,n.length)}})])},iE=function(e){return h(h({},rE(e)),Up(e.inputBehaviours,[Fp.config({store:{mode:"manual",initialValue:e.data.getOr(void 0),getValue:function(e){return Gs(e.element())},setValue:function(e,t){var n=Gs(e.element());n!==t&&Ys(e.element(),t)}},onSetValue:e.onSetValue})]))},oE=function(e){return{tag:e.tag,attributes:h({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},aE=function(e,t){return{uid:e.uid,dom:oE(e),components:[],behaviours:iE(e),eventOrder:e.eventOrder}},sE=Zg({name:"Input",configFields:nE(),factory:aE}),lE={},uE={exports:lE};(function(t,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof t&&t.amd)t([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};t[s][0].call(f.exports,(function(e){var n=t[s][1][e];return o(n||e)}),f,f.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!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{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,f=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?f=c.concat(f):h=-1,f.length&&g())}function g(){if(!d){var e=l(p);d=!0;var t=f.length;while(t){c=f,f=[];while(++h<t)c&&c[h].run();h=-1,t=f.length}c=null,d=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}o.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];f.push(new m(e,t)),1!==f.length||d||l(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}l(t.promise,r)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,lE,uE,void 0);var cE,fE=uE.exports.boltExport,dE=function(e){var n=w.none(),r=[],i=function(e){return dE((function(t){o((function(n){t(e(n))}))}))},o=function(e){s()?u(e):r.push(e)},a=function(e){n=w.some(e),l(r),r=[]},s=function(){return n.isSome()},l=function(e){V(e,u)},u=function(e){n.each((function(n){t.setTimeout((function(){e(n)}),0)}))};return e(a),{get:o,map:i,isReady:s}},hE=function(e){return dE((function(t){t(e)}))},pE={nu:dE,pure:hE},gE=function(e){t.setTimeout((function(){throw e}),0)},mE=function(e){var t=function(t){e().then(t,gE)},n=function(t){return mE((function(){return e().then(t)}))},r=function(t){return mE((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return mE((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return pE.nu(t)},a=function(){var t=null;return mE((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},vE=function(e){return mE((function(){return new fE(e)}))},yE=function(e){return mE((function(){return fE.resolve(e)}))},bE={nu:vE,pure:yE},_E=["input","textarea"],wE=function(e){var t=co(e);return F(_E,t)},xE=function(e,t){var n=t.getRoot(e).getOr(e.element());Ps(n,t.invalidClass),t.notify.each((function(t){wE(e.element())&&ya(e.element(),"aria-invalid",!1),t.getContainer(e).each((function(e){ga(e,t.validHtml)})),t.onValid(e)}))},OE=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element());Ds(i,t.invalidClass),t.notify.each((function(t){wE(e.element())&&ya(e.element(),"aria-invalid",!0),t.getContainer(e).each((function(e){ga(e,r)})),t.onInvalid(e,r)}))},SE=function(e,t,n){return t.validator.fold((function(){return bE.pure(C.value(!0))}),(function(t){return t.validate(e)}))},CE=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),SE(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return OE(e,t,n,r),C.error(r)}),(function(n){return xE(e,t),C.value(n)})):C.error("No longer in system")}))},kE=function(e,t){var n=t.getRoot(e).getOr(e.element());return Is(n,t.invalidClass)},EE=Object.freeze({markValid:xE,markInvalid:OE,query:SE,run:CE,isInvalid:kE}),AE=function(e,t){return e.validator.map((function(r){return Oo([Eo(r.onEvent,(function(n){CE(n,e,t).get(a)}))].concat(r.validateOnLoad?[Ro((function(r){CE(r,e,t).get(n)}))]:[]))})).getOr({})},TE=Object.freeze({events:AE}),DE=[pn("invalidClass"),In("getRoot",w.none),Mn("notify",[In("aria","alert"),In("getContainer",w.none),In("validHtml",""),vu("onValid"),vu("onInvalid"),vu("onValidate")]),Mn("validator",[pn("validate"),In("onEvent","input"),In("validateOnLoad",!0)])],ME=dc({fields:DE,name:"invalidating",active:TE,apis:EE,extra:{validation:function(e){return function(t){var n=Fp.getValue(t);return bE.pure(e(n))}}}}),PE=function(e,t){return rs({attributes:Ge([{key:t.tabAttr,value:"true"}])})},IE=Object.freeze({exhibit:PE}),jE=[In("tabAttr","data-alloy-tabstop")],LE=dc({fields:jE,name:"tabstopping",active:IE}),NE=function(e,t,n,r){var i=BE(e,t,n,r);return tE.sketch(i)},RE=function(e,t){return NE(e,t,[],[])},BE=function(e,t,n,r){return{dom:FE(n),components:e.toArray().concat([t]),fieldBehaviours:cc(r)}},$E=function(){return FE([])},FE=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},zE=function(e,t){return tE.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},qE=function(e,t,n,r){return n.getOrCreate(e,t,r)},UE=Object.freeze({getCoupled:qE}),HE=[gn("others",Xt(C.value,on()))],VE=function(e){var t={},n=function(e,n,r){var i=ue(n.others);if(i)return We(t,r).getOrThunk((function(){var i=We(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(e),a=e.getSystem().build(o);return t[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},r=o({});return Qa({readState:r,getOrCreate:n})},WE=Object.freeze({init:VE}),KE=dc({fields:HE,name:"coupling",apis:UE,state:WE}),GE=o("sink"),YE=o(_g({name:GE(),overrides:o({dom:{tag:"div"},behaviours:cc([Sh.config({useFixed:f})]),events:Oo([jo(Oi()),jo(mi()),jo(Ei())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(cE||(cE={}));var XE=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{anchor:r,hotspot:n,overrides:i}}),(function(e){return{anchor:r,hotspot:n,overrides:i,layouts:e}}))},ZE=function(e,t,n){var r=e.fetch;return r(n).map(t)},QE=function(e,t,n,r,i,o,a){var s=ZE(e,t,r),l=rA(r,e);return s.map((function(e){return e.bind((function(e){return w.from(v_.sketch(h(h({},o.menu()),{uid:$a(""),data:e,highlightImmediately:a===cE.HighlightFirst,onOpenMenu:function(e,t){var r=l().getOrDie();Sh.position(r,n,t),ip.decloak(i)},onOpenSubmenu:function(e,t,n){var r=l().getOrDie();Sh.position(r,{anchor:"submenu",item:t},n),ip.decloak(i)},onRepositionMenu:function(e,t,r){var i=l().getOrDie();Sh.position(i,n,t),V(r,(function(e){Sh.position(i,{anchor:"submenu",item:e.triggeringItem},e.triggeredMenu)}))},onEscape:function(){return vb.focus(r),ip.close(i),w.some(!0)}})))}))}))},JE=function(e,t,n,r,i,o,a){var s=XE(e,n),l=QE(e,t,s,n,r,i,a);return l.map((function(e){return e.fold((function(){ip.isOpen(r)&&ip.close(r)}),(function(e){ip.cloak(r),ip.open(r,e),o(r)})),r}))},eA=function(e,t,n,r,i,o,a){return ip.close(r),bE.pure(r)},tA=function(e,t,n,r,i,o){var a=KE.getCoupled(n,"sandbox"),s=ip.isOpen(a),l=s?eA:JE;return l(e,t,n,a,r,i,o)},nA=function(e,t,n){var r=rm.getCurrent(t).getOr(t),i=Sl(e.element());n?$s(r.element(),"min-width",i+"px"):Ol(r.element(),i)},rA=function(e,t){return e.getSystem().getByUid(t.uid+"-"+GE()).map((function(e){return function(){return C.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return C.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},iA=function(e){ip.getState(e).each((function(e){v_.repositionMenus(e)}))},oA=function(e,t,n){var r=Kl(),i=function(i,o){var a=XE(e,t);r.link(t.element()),e.matchWidth&&nA(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},a=function(e,i){r.unlink(t.element()),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},s=rA(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id(),role:"listbox"}},behaviours:Hp.augment(e.sandboxBehaviours,[Fp.config({store:{mode:"memory",initialValue:t}}),ip.config({onOpen:i,onClose:a,isPartOf:function(e,n,r){return Yl(n,r)||Yl(t,r)},getAttachPoint:function(){return s().getOrDie()}}),rm.config({find:function(e){return ip.getState(e).bind((function(e){return rm.getCurrent(e)}))}}),_c.config({channels:h(h({},up({isExtraPart:o(!1)})),fp({isExtraPart:o(!1),doReposition:iA}))})])}},aA=function(e){var t=KE.getCoupled(e,"sandbox");iA(t)},sA=function(){return[In("sandboxClasses",[]),Hp.field("sandboxBehaviours",[rm,_c,ip,Fp])]},lA=o([pn("dom"),pn("fetch"),vu("onOpen"),yu("onExecute"),In("getHotspot",w.some),In("getAnchorOverrides",o({})),In("layouts",w.none()),zp("dropdownBehaviours",[Nb,KE,Xy,vb]),pn("toggleClass"),In("eventOrder",{}),Cn("lazySink"),In("matchWidth",!1),In("useMinWidth",!1),Cn("role")].concat(sA())),uA=o([bg({schema:[pu()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),YE()]),cA=function(e,t,r,i){var o,a=function(t){return We(e.dom,"attributes").bind((function(e){return We(e,t)}))},s=function(e){ip.getState(e).each((function(e){v_.highlightPrimary(e)}))},l=function(t){var r=s;tA(e,(function(e){return e}),t,i,r,cE.HighlightFirst).get(n)},u={expand:function(t){Nb.isOn(t)||tA(e,(function(e){return e}),t,i,n,cE.HighlightNone).get(n)},open:function(t){Nb.isOn(t)||tA(e,(function(e){return e}),t,i,n,cE.HighlightFirst).get(n)},isOpen:Nb.isOn,close:function(t){Nb.isOn(t)&&tA(e,(function(e){return e}),t,i,n,cE.HighlightFirst).get(n)},repositionMenus:function(e){Nb.isOn(e)&&aA(e)}},c=function(e,t){return oo(e),w.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:Up(e.dropdownBehaviours,[Nb.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),KE.config({others:{sandbox:function(t){return oA(e,t,{onOpen:function(){Nb.on(t)},onClose:function(){Nb.off(t)}})}}}),Xy.config({mode:"special",onSpace:c,onEnter:c,onDown:function(e,t){if(fA.isOpen(e)){var n=KE.getCoupled(e,"sandbox");s(n)}else fA.open(e);return w.some(!0)},onEscape:function(e,t){return fA.isOpen(e)?(fA.close(e),w.some(!0)):w.none()}}),vb.config({})]),events:P_(w.some(l)),eventOrder:h(h({},e.eventOrder),(o={},o[Li()]=["disabling","toggling","alloy.base.behaviour"],o)),apis:u,domModification:{attributes:h(h({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:a("type").getOr("button")}:{})}}},fA=Qg({name:"Dropdown",configFields:lA(),partFields:uA(),factory:cA,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),dA=function(e,t){return rs({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},hA=function(e){return Oo([So(Ti(),o(!0))])},pA=Object.freeze({events:hA,exhibit:dA}),gA=dc({fields:[],name:"unselecting",active:pA}),mA=function(e,t){return fA.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:cc([gA.config({}),LE.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return bE.nu((function(t){return e.fetch(t)})).map((function(r){return w.from(CC(Ce(tC(Ma("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,dO.CLOSE_ON_EXECUTE,(function(){return!1}),t.providers),{movement:rC(e.columns,e.presets)})))}))},parts:{menu:YS(!1,1,e.presets)}})},vA=Ma("color-input-change"),yA=Ma("color-swatch-change"),bA=Ma("color-picker-cancel"),_A=function(e,t,n){var r=tE.parts().field({factory:sE,inputClasses:["tox-textfield"],onSetValue:function(e){return ME.run(e).get((function(){}))},inputBehaviours:cc([LE.config({}),ME.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return Zo(e.element())},notify:{onValid:function(e){var t=Fp.getValue(e);io(e,vA,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=Fp.getValue(e);if(0===t.length)return bE.pure(C.value(!0));var n=Xn.fromTag("span");$s(n,"background-color",t);var r=Hs(n,"background-color").fold((function(){return C.error("blah")}),(function(e){return C.value(t)}));return bE.pure(r)}}})]),selectOnFocus:!1}),i=e.label.map((function(e){return zE(e,t.providers)})),o=function(e,t){io(e,yA,{value:t})},a=function(e,t){s.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return ro(e,bA)}),(function(t){o(e,t),pS.addColor(t)}))}),"#ffffff"):o(e,"remove"===t?"":t)}))},s=L_(mA({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:w.some({onRtl:function(){return[Vu]},onLtr:function(){return[Wu]}}),components:[],fetch:RS.getFetch(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return tE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:cc([lb("form-field-events",[Eo(vA,(function(t,n){s.getOpt(t).each((function(e){$s(e.element(),"background-color",n.event().color())})),io(t,zk,{name:e.name})})),Eo(yA,(function(e,t){tE.getField(e).each((function(n){Fp.setValue(n,t.event().value()),rm.getCurrent(e).each(vb.focus)}))})),Eo(bA,(function(e,t){tE.getField(e).each((function(t){rm.getCurrent(e).each(vb.focus)}))}))])])})},wA=function(e,t,n){return{hue:o(e),saturation:o(t),value:o(n)}},xA=function(e){var t=0,n=0,r=0,i=e.red()/255,o=e.green()/255,a=e.blue()/255,s=Math.min(i,Math.min(o,a)),l=Math.max(i,Math.max(o,a));if(s===l)return r=s,wA(0,0,100*r);var u=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-u/(l-s)),n=(l-s)/l,r=l,wA(Math.round(t),Math.round(100*n),Math.round(100*r))},OA=function(e){var t=(100-e)/100*360,n=wA(t,100,100),r=YO(n);return zO(r)},SA=o(Ma("rgb-hex-update")),CA=o(Ma("slider-update")),kA=o(Ma("palette-update")),EA=Wr(),AA=EA.deviceType.isTouch(),TA=_g({schema:[pn("dom")],name:"label"}),DA=function(e){return _g({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){var n=Oo([Ao(hi(),e,[t])]),r=Oo([Ao(mi(),e,[t]),Ao(vi(),(function(t,n){n.mouseIsDown.get()&&e(t,n)}),[t])]);return{events:AA?n:r}}))}})},MA=DA("top-left"),PA=DA("top"),IA=DA("top-right"),jA=DA("right"),LA=DA("bottom-right"),NA=DA("bottom"),RA=DA("bottom-left"),BA=DA("left"),$A=yg({name:"thumb",defaults:o({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Oo([Po(hi(),e,"spectrum"),Po(pi(),e,"spectrum"),Po(gi(),e,"spectrum"),Po(mi(),e,"spectrum"),Po(vi(),e,"spectrum"),Po(bi(),e,"spectrum")])}}}),FA=yg({schema:[Un("mouseIsDown",(function(){return Hn(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))},i=Oo([Eo(hi(),r),Eo(pi(),r)]),o=Oo([Eo(mi(),r),Eo(vi(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))]);return{behaviours:cc(AA?[]:[Xy.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),vb.config({})]),events:AA?i:o}}}),zA=[TA,BA,jA,PA,NA,MA,IA,RA,LA,$A,FA],qA=Wr().deviceType.isTouch(),UA="slider.change.value",HA=o(UA),VA=function(e){var t=e.event().raw();if(qA){var n=t;return void 0!==n.touches&&1===n.touches.length?w.some(n.touches[0]).map((function(e){return vl(e.clientX,e.clientY)})):w.none()}var r=t;return void 0!==r.clientX?w.some(r).map((function(e){return vl(e.clientX,e.clientY)})):w.none()},WA="top",KA="right",GA="bottom",YA="left",XA=function(e){return e.model.minX},ZA=function(e){return e.model.minY},QA=function(e){return e.model.minX-1},JA=function(e){return e.model.minY-1},eT=function(e){return e.model.maxX},tT=function(e){return e.model.maxY},nT=function(e){return e.model.maxX+1},rT=function(e){return e.model.maxY+1},iT=function(e,t,n){return t(e)-n(e)},oT=function(e){return iT(e,eT,XA)},aT=function(e){return iT(e,tT,ZA)},sT=function(e){return oT(e)/2},lT=function(e){return aT(e)/2},uT=function(e){return e.stepSize},cT=function(e){return e.snapToGrid},fT=function(e){return e.snapStart},dT=function(e){return e.rounded},hT=function(e,t){return void 0!==e[t+"-edge"]},pT=function(e){return hT(e,YA)},gT=function(e){return hT(e,KA)},mT=function(e){return hT(e,WA)},vT=function(e){return hT(e,GA)},yT=function(e){return e.model.value.get()},bT=function(e){return{x:o(e)}},_T=function(e){return{y:o(e)}},wT=function(e,t){return{x:o(e),y:o(t)}},xT=function(e,t){io(e,HA(),{value:t})},OT=function(e,t){xT(e,wT(QA(t),JA(t)))},ST=function(e,t){xT(e,_T(JA(t)))},CT=function(e,t){xT(e,wT(sT(t),JA(t)))},kT=function(e,t){xT(e,wT(nT(t),JA(t)))},ET=function(e,t){xT(e,bT(nT(t)))},AT=function(e,t){xT(e,wT(nT(t),lT(t)))},TT=function(e,t){xT(e,wT(nT(t),rT(t)))},DT=function(e,t){xT(e,_T(rT(t)))},MT=function(e,t){xT(e,wT(sT(t),rT(t)))},PT=function(e,t){xT(e,wT(QA(t),rT(t)))},IT=function(e,t){xT(e,bT(QA(t)))},jT=function(e,t){xT(e,wT(QA(t),lT(t)))},LT=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},NT=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},RT=function(e,t,n){return Math.max(t,Math.min(n,e))},BT=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return RT(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),l=Math.min(s,a+o),u=t+l*r;return Math.max(t,u)}))},$T=function(e,t,n){return Math.min(n,Math.max(e,t))-t},FT=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,l=e.rounded,u=e.hasMinEdge,c=e.hasMaxEdge,f=e.minBound,d=e.maxBound,h=e.screenRange,p=u?t-1:t,g=c?n+1:n;if(i<f)return p;if(i>d)return g;var m=$T(i,f,d),v=RT(m/h*r+t,p,g);return a&&v>=t&&v<=n?BT(v,t,n,o,s):l?Math.round(v):v},zT=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,l=e.maxOffset,u=e.centerMinEdge,c=e.centerMaxEdge;return i<t?o?0:u:i>n?a?s:c:(i-t)/r*l},qT="top",UT="right",HT="bottom",VT="left",WT="width",KT="height",GT=function(e){return e.element().dom().getBoundingClientRect()},YT=function(e,t){return e[t]},XT=function(e){var t=GT(e);return YT(t,VT)},ZT=function(e){var t=GT(e);return YT(t,UT)},QT=function(e){var t=GT(e);return YT(t,qT)},JT=function(e){var t=GT(e);return YT(t,HT)},eD=function(e){var t=GT(e);return YT(t,WT)},tD=function(e){var t=GT(e);return YT(t,KT)},nD=function(e,t,n){return(e+t)/2-n},rD=function(e,t){var n=GT(e),r=GT(t),i=YT(n,VT),o=YT(n,UT),a=YT(r,VT);return nD(i,o,a)},iD=function(e,t){var n=GT(e),r=GT(t),i=YT(n,qT),o=YT(n,HT),a=YT(r,qT);return nD(i,o,a)},oD=function(e,t){io(e,HA(),{value:t})},aD=function(e){return{x:o(e)}},sD=function(e,t,n){var r={min:XA(t),max:eT(t),range:oT(t),value:n,step:uT(t),snap:cT(t),snapStart:fT(t),rounded:dT(t),hasMinEdge:pT(t),hasMaxEdge:gT(t),minBound:XT(e),maxBound:ZT(e),screenRange:eD(e)};return FT(r)},lD=function(e,t,n){var r=sD(e,t,n),i=aD(r);return oD(e,i),r},uD=function(e,t){var n=XA(t);oD(e,aD(n))},cD=function(e,t){var n=eT(t);oD(e,aD(n))},fD=function(e,t,n){var r=e>0?NT:LT,i=r(yT(n).x(),XA(n),eT(n),uT(n));return oD(t,aD(i)),w.some(i)},dD=function(e){return function(t,n){return fD(e,t,n).map((function(){return!0}))}},hD=function(e){var t=VA(e);return t.map((function(e){return e.left()}))},pD=function(e,t,n,r,i){var o=0,a=eD(e),s=r.bind((function(t){return w.some(rD(t,e))})).getOr(o),l=i.bind((function(t){return w.some(rD(t,e))})).getOr(a),u={min:XA(t),max:eT(t),range:oT(t),value:n,hasMinEdge:pT(t),hasMaxEdge:gT(t),minBound:XT(e),minOffset:o,maxBound:ZT(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:l};return zT(u)},gD=function(e,t,n,r,i,o){var a=pD(t,o,n,r,i);return XT(t)-XT(e)+a},mD=function(e,t,n,r){var i=yT(n),o=gD(e,r.getSpectrum(e),i.x(),r.getLeftEdge(e),r.getRightEdge(e),n),a=Sl(t.element())/2;$s(t.element(),"left",o-a+"px")},vD=dD(-1),yD=dD(1),bD=w.none,_D=w.none,wD={"top-left":w.none(),top:w.none(),"top-right":w.none(),right:w.some(ET),"bottom-right":w.none(),bottom:w.none(),"bottom-left":w.none(),left:w.some(IT)},xD=Object.freeze({setValueFrom:lD,setToMin:uD,setToMax:cD,findValueOfOffset:sD,getValueFromEvent:hD,findPositionOfValue:gD,setPositionFromValue:mD,onLeft:vD,onRight:yD,onUp:bD,onDown:_D,edgeActions:wD}),OD=function(e,t){io(e,HA(),{value:t})},SD=function(e){return{y:o(e)}},CD=function(e,t,n){var r={min:ZA(t),max:tT(t),range:aT(t),value:n,step:uT(t),snap:cT(t),snapStart:fT(t),rounded:dT(t),hasMinEdge:mT(t),hasMaxEdge:vT(t),minBound:QT(e),maxBound:JT(e),screenRange:tD(e)};return FT(r)},kD=function(e,t,n){var r=CD(e,t,n),i=SD(r);return OD(e,i),r},ED=function(e,t){var n=ZA(t);OD(e,SD(n))},AD=function(e,t){var n=tT(t);OD(e,SD(n))},TD=function(e,t,n){var r=e>0?NT:LT,i=r(yT(n).y(),ZA(n),tT(n),uT(n));return OD(t,SD(i)),w.some(i)},DD=function(e){return function(t,n){return TD(e,t,n).map((function(){return!0}))}},MD=function(e){var t=VA(e);return t.map((function(e){return e.top()}))},PD=function(e,t,n,r,i){var o=0,a=tD(e),s=r.bind((function(t){return w.some(iD(t,e))})).getOr(o),l=i.bind((function(t){return w.some(iD(t,e))})).getOr(a),u={min:ZA(t),max:tT(t),range:aT(t),value:n,hasMinEdge:mT(t),hasMaxEdge:vT(t),minBound:QT(e),minOffset:o,maxBound:JT(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:l};return zT(u)},ID=function(e,t,n,r,i,o){var a=PD(t,o,n,r,i);return QT(t)-QT(e)+a},jD=function(e,t,n,r){var i=yT(n),o=ID(e,r.getSpectrum(e),i.y(),r.getTopEdge(e),r.getBottomEdge(e),n),a=hl(t.element())/2;$s(t.element(),"top",o-a+"px")},LD=w.none,ND=w.none,RD=DD(-1),BD=DD(1),$D={"top-left":w.none(),top:w.some(ST),"top-right":w.none(),right:w.none(),"bottom-right":w.none(),bottom:w.some(DT),"bottom-left":w.none(),left:w.none()},FD=Object.freeze({setValueFrom:kD,setToMin:ED,setToMax:AD,findValueOfOffset:CD,getValueFromEvent:MD,findPositionOfValue:ID,setPositionFromValue:jD,onLeft:LD,onRight:ND,onUp:RD,onDown:BD,edgeActions:$D}),zD=function(e,t){io(e,HA(),{value:t})},qD=function(e,t){return{x:o(e),y:o(t)}},UD=function(e,t,n){var r=sD(e,t,n.left()),i=CD(e,t,n.top()),o=qD(r,i);return zD(e,o),o},HD=function(e,t,n,r){var i=e>0?NT:LT,o=t?yT(r).x():i(yT(r).x(),XA(r),eT(r),uT(r)),a=t?i(yT(r).y(),ZA(r),tT(r),uT(r)):yT(r).y();return zD(n,qD(o,a)),w.some(o)},VD=function(e,t){return function(n,r){return HD(e,t,n,r).map((function(){return!0}))}},WD=function(e,t){var n=XA(t),r=ZA(t);zD(e,qD(n,r))},KD=function(e,t){var n=eT(t),r=tT(t);zD(e,qD(n,r))},GD=function(e){return VA(e)},YD=function(e,t,n,r){var i=yT(n),o=gD(e,r.getSpectrum(e),i.x(),r.getLeftEdge(e),r.getRightEdge(e),n),a=ID(e,r.getSpectrum(e),i.y(),r.getTopEdge(e),r.getBottomEdge(e),n),s=Sl(t.element())/2,l=hl(t.element())/2;$s(t.element(),"left",o-s+"px"),$s(t.element(),"top",a-l+"px")},XD=VD(-1,!1),ZD=VD(1,!1),QD=VD(-1,!0),JD=VD(1,!0),eM={"top-left":w.some(OT),top:w.some(CT),"top-right":w.some(kT),right:w.some(AT),"bottom-right":w.some(TT),bottom:w.some(MT),"bottom-left":w.some(PT),left:w.some(jT)},tM=Object.freeze({setValueFrom:UD,setToMin:WD,setToMax:KD,getValueFromEvent:GD,setPositionFromValue:YD,onLeft:XD,onRight:ZD,onUp:QD,onDown:JD,edgeActions:eM}),nM=Wr().deviceType.isTouch(),rM=[In("stepSize",1),In("onChange",n),In("onChoose",n),In("onInit",n),In("onDragStart",n),In("onDragEnd",n),In("snapToGrid",!1),In("rounded",!0),Cn("snapStart"),gn("model",rn("mode",{x:[In("minX",0),In("maxX",100),Un("value",(function(e){return Hn(e.mode.minX)})),pn("getInitialValue"),wu("manager",xD)],y:[In("minY",0),In("maxY",100),Un("value",(function(e){return Hn(e.mode.minY)})),pn("getInitialValue"),wu("manager",FD)],xy:[In("minX",0),In("maxX",100),In("minY",0),In("maxY",100),Un("value",(function(e){return Hn({x:o(e.mode.minX),y:o(e.mode.minY)})})),pn("getInitialValue"),wu("manager",tM)]})),zp("sliderBehaviours",[Xy,Fp])].concat(nM?[]:[Un("mouseIsDown",(function(){return Hn(!1)}))]),iM=Wr().deviceType.isTouch(),oM=function(e,t,n,r){var i=function(t){return jg(t,e,"thumb")},a=function(t){return jg(t,e,"spectrum")},s=function(t){return Ig(t,e,"left-edge")},l=function(t){return Ig(t,e,"right-edge")},u=function(t){return Ig(t,e,"top-edge")},c=function(t){return Ig(t,e,"bottom-edge")},f=e.model,d=f.manager,h=function(t,n){d.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:l,getTopEdge:u,getBottomEdge:c,getSpectrum:a})},p=function(t,n){f.value.set(n);var r=i(t);return h(t,r),e.onChange(t,r,n),w.some(!0)},g=function(t){d.setToMin(t,e)},m=function(t){d.setToMax(t,e)},v=[Eo(hi(),(function(t,n){e.onDragStart(t,i(t))})),Eo(gi(),(function(t,n){e.onDragEnd(t,i(t))}))],y=[Eo(mi(),(function(t,n){n.stop(),e.onDragStart(t,i(t)),e.mouseIsDown.set(!0)})),Eo(bi(),(function(t,n){e.onDragEnd(t,i(t))}))],b=iM?v:y;return{uid:e.uid,dom:e.dom,components:t,behaviours:Up(e.sliderBehaviours,J([iM?[]:[Xy.config({mode:"special",focusIn:function(t){return Ig(t,e,"spectrum").map(Xy.focusIn).map(o(!0))}})],[Fp.config({store:{mode:"manual",getValue:function(e){return f.value.get()}}}),_c.config({channels:{"mouse.released":{onReceive:function(t,n){var r=function(){Ig(t,e,"thumb").each((function(n){var r=f.value.get();e.onChoose(t,n,r)}))};if(iM)r();else{var i=e.mouseIsDown.get();e.mouseIsDown.set(!1),i&&r()}}}}})]])),events:Oo([Eo(HA(),(function(e,t){p(e,t.event().value())})),Ro((function(t,n){var r=f.getInitialValue();f.value.set(r);var o=i(t);h(t,o);var s=a(t);e.onInit(t,o,s,f.value.get())}))].concat(b)),apis:{resetToMin:g,resetToMax:m,changeValue:p,refresh:h},domModification:{styles:{position:"relative"}}}},aM=Qg({name:"Slider",configFields:rM,partFields:zA,factory:oM,apis:{resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),sM=function(e,t){var n=aM.parts().spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=aM.parts().thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return aM.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:o({y:o(0)})},components:[n,r],sliderBehaviours:cc([vb.config({})]),onChange:function(e,t,n){io(e,CA(),{value:n})}})},lM={sliderFactory:sM},uM="form",cM=[zp("formBehaviours",[Fp])],fM=function(e){return"<alloy.field."+e+">"},dM=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Ag(uM,fM(t),n)};return{field:t,record:function(){return e}}}(),n=e(t),r=t.record(),i=H(r,(function(e){return yg({name:e,pname:fM(e)})}));return Vg(uM,cM,i,pM,n)},hM=function(e,t){return e.fold((function(){return C.error(t)}),C.value)},pM=function(e,t,n){return{uid:e.uid,dom:e.dom,components:t,behaviours:Up(e.formBehaviours,[Fp.config({store:{mode:"manual",getValue:function(t){var n=Ng(t,e);return de(n,(function(e,t){return e().bind((function(e){var t=rm.getCurrent(e);return hM(t,"missing current")})).map(Fp.getValue)}))},setValue:function(t,n){fe(n,(function(n,r){Ig(t,e,r).each((function(e){rm.getCurrent(e).each((function(e){Fp.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Ig(t,e,n).bind(rm.getCurrent)}}}},gM={getField:Xa((function(e,t,n){return e.getField(t,n)})),sketch:dM},mM=Ma("valid-input"),vM=Ma("invalid-input"),yM=Ma("validating-input"),bM="colorcustom.rgb.",_M=function(e,t,r,i){var a=function(n,r){return ME.config({invalidClass:t("invalid"),notify:{onValidate:function(e){io(e,yM,{type:n})},onValid:function(e){io(e,mM,{type:n,value:Fp.getValue(e)})},onInvalid:function(e){io(e,vM,{type:n,value:Fp.getValue(e)})}},validator:{validate:function(t){var n=Fp.getValue(t),i=r(n)?C.value(!0):C.error(e("aria.input.invalid"));return bE.pure(i)},validateOnLoad:!1}})},s=function(r,i,o,s,l){var u=e(bM+"range"),c=tE.parts().label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":s}}}),f=tE.parts().field({data:l,factory:sE,inputAttributes:h({type:"text"},"hex"===i?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:cc([a(i,r),LE.config({})]),onSetValue:function(e){if(ME.isInvalid(e)){var t=ME.run(e);t.get(n)}}}),d=[c,f],p="hex"!==i?[tE.parts()["aria-descriptor"]({text:u})]:[],g=d.concat(p);return{dom:{tag:"div",attributes:{role:"presentation"}},components:g}},l=function(e,t){var n=zO(t);return gM.getField(e,"hex").each((function(t){vb.isFocused(t)||Fp.setValue(e,{hex:n.value()})})),n},u=function(e,t){var n=t.red(),r=t.green(),i=t.blue();Fp.setValue(e,{red:n,green:r,blue:i})},c=L_({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),f=function(e,t){c.getOpt(e).each((function(e){$s(e.element(),"background-color","#"+t.value())}))},d=function(){var n={red:o(Hn(w.some(255))),green:o(Hn(w.some(255))),blue:o(Hn(w.some(255))),hex:o(Hn(w.some("ffffff")))},a=function(e,t){var n=XO(t);u(e,n),g(n)},d=function(e){return n[e]().get()},h=function(e,t){n[e]().set(t)},p=function(){return d("red").bind((function(e){return d("green").bind((function(t){return d("blue").map((function(n){return KO(e,t,n,1)}))}))}))},g=function(e){var t=e.red(),n=e.green(),r=e.blue();h("red",w.some(t)),h("green",w.some(n)),h("blue",w.some(r))},m=function(e,t){var n=t.event();"hex"!==n.type()?h(n.type(),w.none()):i(e)},v=function(e,t){r(e);var n=jO(t);h("hex",w.some(t));var i=XO(n);u(e,i),g(i),io(e,SA(),{hex:n}),f(e,n)},y=function(e,t,n){var r=parseInt(n,10);h(t,w.some(r)),p().each((function(t){var n=l(e,t);f(e,n)}))},b=function(e){return"hex"===e.type()},_=function(e,t){var n=t.event();b(n)?v(e,n.value()):y(e,n.type(),n.value())},x=function(t){return{label:e(bM+t+".label"),description:e(bM+t+".description")}},O=x("red"),S=x("green"),C=x("blue"),k=x("hex");return Ce(gM.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",tE.sketch(s(GO,"red",O.label,O.description,255))),n.field("green",tE.sketch(s(GO,"green",S.label,S.description,255))),n.field("blue",tE.sketch(s(GO,"blue",C.label,C.description,255))),n.field("hex",tE.sketch(s(RO,"hex",k.label,k.description,"ffffff"))),c.asSpec()],formBehaviours:cc([ME.config({invalidClass:t("form-invalid")}),lb("rgb-form-events",[Eo(mM,_),Eo(vM,m),Eo(yM,m)])])}})),{apis:{updateHex:function(e,t){Fp.setValue(e,{hex:t.value()}),a(e,t),f(e,t)}}})},p=Zg({factory:d,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return p},wM={rgbFormFactory:_M},xM=function(e,t){var n=aM.parts().spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=aM.parts().thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},a=function(e,t){var n=e.components()[0].element().dom();i(n,JO(t))},s=function(e){var a=o({x:o(0),y:o(0)}),s=function(e,t,n){io(e,kA(),{value:n})},l=function(e,t,n,r){i(n.element().dom(),JO(eS()))},u=cc([rm.config({find:w.some}),vb.config({})]);return aM.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:a},rounded:!1,components:[n,r],onChange:s,onInit:l,sliderBehaviours:u})},l=Zg({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setRgba:function(e,t,n){a(t,n)}},extraApis:{}});return l},OM={paletteFactory:xM},SM=function(e,t){var r=function(n){var r=wM.rgbFormFactory(e,t,n.onValidHex,n.onInvalidHex),i=OM.paletteFactory(e,t),a={paletteRgba:o(Hn(eS()))},s=L_(i.sketch({})),l=L_(r.sketch({})),u=function(e,t){s.getOpt(e).each((function(e){var n=XO(t);a.paletteRgba().set(n),i.setRgba(e,n)}))},c=function(e,t){l.getOpt(e).each((function(e){r.updateHex(e,t)}))},f=function(e,t,n){V(n,(function(n){n(e,t)}))},d=function(){var e=[c];return function(t,n){var r=n.event().value(),i=a.paletteRgba().get(),o=xA(i),s=wA(o.hue(),r.x(),100-r.y()),l=YO(s),u=zO(l);f(t,u,e)}},h=function(){var e=[u,c];return function(t,n){var r=n.event().value(),i=OA(r.y());f(t,i,e)}};return{uid:n.uid,dom:n.dom,components:[s.asSpec(),lM.sliderFactory(e,t),l.asSpec()],behaviours:cc([lb("colour-picker-events",[Eo(kA(),d()),Eo(CA(),h())]),rm.config({find:function(e){return l.getOpt(e)}}),Xy.config({mode:"acyclic"})])}},i=Zg({name:"ColourPicker",configFields:[pn("dom"),In("onValidHex",n),In("onInvalidHex",n)],factory:r});return i},CM={makeFactory:SM},kM=function(){return rm.config({find:w.some})},EM=function(e){return rm.config({find:e.getOpt})},AM=function(e){return rm.config({find:function(t){return ta(t.element(),e).bind((function(e){return t.getSystem().getByDom(e).toOption()}))}})},TM={self:kM,memento:EM,childAt:AM},DM={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","colorcustom.sb.saturation":"Saturation","colorcustom.sb.brightness":"Brightness","colorcustom.sb.picker":"Saturation and Brightness Picker","colorcustom.sb.palette":"Saturation and Brightness Palette","colorcustom.sb.instructions":"Use arrow keys to select saturation and brightness, on x and y axes","colorcustom.hue.hue":"Hue","colorcustom.hue.slider":"Hue Slider","colorcustom.hue.palette":"Hue Palette","colorcustom.hue.instructions":"Use arrow keys to select a hue","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},MM=function(e){return DM[e]},PM=function(e){return MM(e)},IM=function(e){var n=function(e){return"tox-"+e},r=CM.makeFactory(PM,n),i=function(e){io(e,Hk,{name:"hex-valid",value:!0})},o=function(e){io(e,Hk,{name:"hex-valid",value:!1})},a=L_(r.sketch({dom:{tag:"div",classes:[n("color-picker-container")],attributes:{role:"presentation"}},onValidHex:i,onInvalidHex:o}));return{dom:{tag:"div"},components:[a.asSpec()],behaviours:cc([Fp.config({store:{mode:"manual",getValue:function(e){var t=a.get(e),n=rm.getCurrent(t),r=n.bind((function(e){var t=Fp.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,n){var r=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,i=r.exec(n),o=a.get(e),s=rm.getCurrent(o);s.fold((function(){t.console.log("Can not find form")}),(function(e){Fp.setValue(e,{hex:w.from(i[1]).getOr("")}),gM.getField(e,"hex").each((function(e){ro(e,Ci())}))}))}}}),TM.self()])}},jM=tinymce.util.Tools.resolve("tinymce.Resource"),LM=function(e){return Object.prototype.hasOwnProperty.call(e,"init")},NM=function(e){var t=Hn(w.none()),n=L_({dom:{tag:e.tag}}),r=Hn(w.none());return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:cc([lb("editor-foo-events",[Ro((function(i){n.getOpt(i).each((function(n){(LM(e)?e.init(n.element().dom()):jM.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element().dom(),e.settings)}))).then((function(e){r.get().each((function(t){e.setValue(t)})),r.set(w.none()),t.set(w.some(e))}))}))}))]),Fp.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(w.some(n))}),(function(e){return e.setValue(n)}))}}}),TM.self()]),components:[n.asSpec()]}},RM=Nt([In("preprocess",a),In("postprocess",a)]),BM=function(e,t){var n=en("RepresentingConfigs.memento processors",RM,t);return Fp.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=Fp.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);Fp.setValue(o,i)}}})},$M=function(e,t,n){return Fp.config(Ce({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},FM=function(e,t,n){return $M(e,(function(e){return t(e.element())}),(function(e,t){return n(e.element(),t)}))},zM=function(e){return FM(e,Gs,Ys)},qM=function(e){return FM(e,pa,ga)},UM=function(e){return Fp.config({store:{mode:"memory",initialValue:e}})},HM={memento:BM,withElement:FM,withComp:$M,domValue:zM,domHtml:qM,memory:UM},VM=".jpg,.jpeg,.png,.gif",WM=function(e){var t=new RegExp("("+VM.split(/\s*,\s*/).join("|")+")$","i");return G(le(e),(function(e){return t.test(e.name)}))},KM=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){V(e,(function(e){e(t,n)}))}},i=function(e,t){if(!rO.isDisabled(e)){var n=t.event().raw();a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event().raw().target.files;a(e,n)},a=function(t,n){Fp.setValue(t,WM(n)),io(t,zk,{name:e.name})},s=L_({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:cc([lb("input-file-events",[jo(Bi())])])}),l=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:cc([HM.memory([]),TM.self(),rO.config({}),Nb.config({toggleClass:"dragenter",toggleOnExecute:!1}),lb("dropzone-events",[Eo("dragenter",r([n,Nb.toggle])),Eo("dragleave",r([n,Nb.toggle])),Eo("dragover",n),Eo("drop",r([n,i])),Eo(ki(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},j_.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element().dom().click()},buttonBehaviours:cc([LE.config({})])})]}]}},u=e.label.map((function(e){return zE(e,t)})),c=tE.parts().field({factory:{sketch:l}});return NE(u,c,["tox-form__group--stretched"],[])},GM=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:H(e.items,t.interpreter)}},YM=Ma("alloy-fake-before-tabstop"),XM=Ma("alloy-fake-after-tabstop"),ZM=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:cc([vb.config({ignore:!0}),LE.config({})])}},QM=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[ZM([YM]),e,ZM([XM])],behaviours:cc([TM.childAt(1)])}},JM=function(e,t){io(e,Oi(),{raw:{which:9,shiftKey:t}})},eP=function(e,t){var n=t.element();Is(n,YM)?JM(e,!0):Is(n,XM)&&JM(e,!1)},tP=function(e){return FC(e,["."+YM,"."+XM].join(","),o(!1))},nP={isPseudoStop:tP,onFocus:eP,craft:QM},rP=!(Wr().browser.isIE()||Wr().browser.isEdge()),iP=function(e){var t=Hn("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)ya(n.element(),"srcdoc",r);else{ya(n.element(),"src","javascript:''");var i=n.element().dom().contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},oP=function(e,t){var n=rP&&e.sandboxed,r=h(h({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=iP(n),o=e.label.map((function(e){return zE(e,t)})),a=function(e){return nP.craft({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:cc([LE.config({}),vb.config({}),HM.withComp(w.none(),i.getValue,i.setValue)])})},s=tE.parts().field({factory:{sketch:a}});return NE(o,s,["tox-form__group--stretched"],[])};function aP(e,n){return uP(t.document.createElement("canvas"),e,n)}function sP(e){var t=aP(e.width,e.height),n=lP(t);return n.drawImage(e,0,0),t}function lP(e){return e.getContext("2d")}function uP(e,t,n){return e.width=t,e.height=n,e}function cP(e){return e.naturalWidth||e.width}function fP(e){return e.naturalHeight||e.height}var dP=function(){var e=function(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,r(a,this),r(s,this))},n=e.immediateFn||"function"===typeof window.setImmediate&&window.setImmediate||function(e){t.setTimeout(e,1)};function r(e,t){return function(){return e.apply(t,arguments)}}var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e){var t=this;null!==this._state?n((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function a(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var t=e.then;if("function"===typeof t)return void c(r(t,e),r(a,this),r(s,this))}this._state=!0,this._value=e,l.call(this)}catch(n){s.call(this,n)}}function s(e){this._state=!1,this._value=e,l.call(this)}function l(){for(var e=0,t=this._deferreds;e<t.length;e++){var n=t[e];o.call(this,n)}this._deferreds=[]}function u(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}function c(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(i){if(r)return;r=!0,n(i)}}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){o.call(r,new u(t,n,e,i))}))},e.all=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Array.prototype.slice.call(1===t.length&&i(t[0])?t[0]:t);return new e((function(e,t){if(0===r.length)return e([]);var n=r.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),t)}r[o]=a,0===--n&&e(r)}catch(l){t(l)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},e.resolve=function(t){return t&&"object"===typeof t&&t.constructor===e?t:new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];o.then(e,n)}}))},e},hP=window.Promise?window.Promise:dP();function pP(e){return new hP((function(n,r){var i=t.URL.createObjectURL(e),o=new t.Image,a=function(){o.removeEventListener("load",s),o.removeEventListener("error",l)};function s(){a(),n(o)}function l(){a(),r("Unable to load data of type "+e.type+": "+i)}o.addEventListener("load",s),o.addEventListener("error",l),o.src=i,o.complete&&s()}))}function gP(e){var n=e.split(","),r=/data:([^;]+)/.exec(n[0]);if(!r)return w.none();for(var i=r[1],o=n[1],a=1024,s=t.atob(o),l=s.length,u=Math.ceil(l/a),c=new Array(u),f=0;f<u;++f){for(var d=f*a,h=Math.min(d+a,l),p=new Array(h-d),g=d,m=0;g<h;++m,++g)p[m]=s[g].charCodeAt(0);c[f]=new Uint8Array(p)}return w.some(new t.Blob(c,{type:i}))}function mP(e){return new hP((function(t,n){gP(e).fold((function(){n("uri is not base64: "+e)}),t)}))}function vP(e,n,r){return n=n||"image/png",t.HTMLCanvasElement.prototype.toBlob?new hP((function(t,i){e.toBlob((function(e){e?t(e):i()}),n,r)})):mP(e.toDataURL(n,r))}function yP(e,t,n){return t=t||"image/png",e.toDataURL(t,n)}function bP(e){return pP(e).then((function(e){wP(e);var t=aP(cP(e),fP(e)),n=lP(t);return n.drawImage(e,0,0),t}))}function _P(e){return new hP((function(n){var r=new t.FileReader;r.onloadend=function(){n(r.result)},r.readAsDataURL(e)}))}function wP(e){t.URL.revokeObjectURL(e.src)}function xP(e,t,n){var r=t.type,i=o(r);function a(){return hP.resolve(t)}function s(){return n}function l(){return n.split(",")[1]}function u(t,n){return e.then((function(e){return vP(e,t,n)}))}function c(t,n){return e.then((function(e){return yP(e,t,n)}))}function f(e,t){return c(e,t).then((function(e){return e.split(",")[1]}))}function d(){return e.then(sP)}return{getType:i,toBlob:a,toDataURL:s,toBase64:l,toAdjustedBlob:u,toAdjustedDataURL:c,toAdjustedBase64:f,toCanvas:d}}function OP(e){return _P(e).then((function(t){return xP(bP(e),e,t)}))}function SP(e,t){return vP(e,t).then((function(t){return xP(hP.resolve(e),t,e.toDataURL())}))}var CP=function(e){return OP(e)};function kP(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r}function EP(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1]}var AP=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10];function TP(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i}function DP(e,t){var n;return t=kP(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?AP[t]:AP[Math.floor(t)]*(1-n)+AP[Math.floor(t)+1]*n,n=127*n+127),TP(e,[n/127,0,0,0,.5*(127-n),0,n/127,0,0,.5*(127-n),0,0,n/127,0,.5*(127-n),0,0,0,1,0,0,0,0,0,1])}function MP(e,t){return t=kP(255*t,-255,255),TP(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])}function PP(e,t,n,r){return t=kP(t,0,2),n=kP(n,0,2),r=kP(r,0,2),TP(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])}function IP(e,t){return e.toCanvas().then((function(n){return jP(n,e.getType(),t)}))}function jP(e,t,n){var r=lP(e);function i(e,t){for(var n,r,i,o,a=e.data,s=t[0],l=t[1],u=t[2],c=t[3],f=t[4],d=t[5],h=t[6],p=t[7],g=t[8],m=t[9],v=t[10],y=t[11],b=t[12],_=t[13],w=t[14],x=t[15],O=t[16],S=t[17],C=t[18],k=t[19],E=0;E<a.length;E+=4)n=a[E],r=a[E+1],i=a[E+2],o=a[E+3],a[E]=n*s+r*l+i*u+o*c+f,a[E+1]=n*d+r*h+i*p+o*g+m,a[E+2]=n*v+r*y+i*b+o*_+w,a[E+3]=n*x+r*O+i*S+o*C+k;return e}var o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),SP(e,t)}function LP(e,t){return e.toCanvas().then((function(n){return NP(n,e.getType(),t)}))}function NP(e,t,n){var r=lP(e);function i(e,t,n){function r(e,t,n){return e>n?e=n:e<t&&(e=t),e}for(var i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,l=e.width,u=e.height,c=0;c<u;c++)for(var f=0;f<l;f++){for(var d=0,h=0,p=0,g=0;g<i;g++)for(var m=0;m<i;m++){var v=r(f+m-o,0,l-1),y=r(c+g-o,0,u-1),b=4*(y*l+v),_=n[g*i+m];d+=a[b]*_,h+=a[b+1]*_,p+=a[b+2]*_}var w=4*(c*l+f);s[w]=r(d,0,255),s[w+1]=r(h,0,255),s[w+2]=r(p,0,255)}return t}var o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),SP(e,t)}function RP(e){var t=function(t,n,r){var i=lP(t),o=new Array(256);function a(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e}for(var s=0;s<o.length;s++)o[s]=e(s,r);var l=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(l,0,0),SP(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}}function BP(e){return function(t,n){return IP(t,e(EP(),n))}}function $P(e){return function(t){return IP(t,e)}}function FP(e){return function(t){return LP(t,e)}}var zP=$P([-1,0,0,0,255,0,-1,0,0,255,0,0,-1,0,255,0,0,0,1,0,0,0,0,0,1]),qP=BP(MP),UP=BP(DP),HP=function(e,t,n,r){return IP(e,PP(EP(),t,n,r))},VP=FP([0,-1,0,-1,5,-1,0,-1,0]),WP=RP((function(e,t){return 255*Math.pow(e/255,1-t)}));function KP(e,t,n){var r=cP(e),i=fP(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var l=GP(e,o,a);return s?l.then((function(e){return KP(e,t,n)})):l}function GP(e,t,n){return new hP((function(r){var i=cP(e),o=fP(e),a=Math.floor(i*t),s=Math.floor(o*n),l=aP(a,s),u=lP(l);u.drawImage(e,0,0,i,o,0,0,a,s),r(l)}))}function YP(e,t){return e.toCanvas().then((function(n){return XP(n,e.getType(),t)}))}function XP(e,t,n){var r=aP(e.width,e.height),i=lP(r),o=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||uP(r,r.height,r.width),90!==n&&180!==n||(o=r.width),270!==n&&180!==n||(a=r.height),i.translate(o,a),i.rotate(n*Math.PI/180),i.drawImage(e,0,0),SP(r,t)}function ZP(e,t){return e.toCanvas().then((function(n){return QP(n,e.getType(),t)}))}function QP(e,t,n){var r=aP(e.width,e.height),i=lP(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),SP(r,t)}function JP(e,t,n,r,i){return e.toCanvas().then((function(o){return eI(o,e.getType(),t,n,r,i)}))}function eI(e,t,n,r,i,o){var a=aP(i,o),s=lP(a);return s.drawImage(e,-n,-r),SP(a,t)}function tI(e,t,n){return e.toCanvas().then((function(r){return KP(r,t,n).then((function(t){return SP(t,e.getType())}))}))}var nI=function(e){return zP(e)},rI=function(e){return VP(e)},iI=function(e,t){return WP(e,t)},oI=function(e,t,n,r){return HP(e,t,n,r)},aI=function(e,t){return qP(e,t)},sI=function(e,t){return UP(e,t)},lI=function(e,t){return ZP(e,t)},uI=function(e,t,n,r,i){return JP(e,t,n,r,i)},cI=function(e,t,n){return tI(e,t,n)},fI=function(e,t){return YP(e,t)},dI=function(e,t){return h({dom:{tag:"span",innerHtml:e,classes:["tox-icon","tox-tbtn__icon-wrap"]}},t)},hI=function(e,t){return dI(R_(e,t),{})},pI=function(e,t){return dI(R_(e,t),{behaviours:cc([ab.config({})])})},gI=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:cc([ab.config({})])}},mI=Ma("toolbar.button.execute"),vI=function(e){return Fo((function(t,n){uO(e,t)((function(n){io(t,mI,{buttonApi:n}),e.onAction(n)}))}))},yI={"alloy.execute":["disabling","alloy.base.behaviour","toggling","toolbar-button-events"]},bI=Ma("update-menu-text"),_I=Ma("update-menu-icon"),wI=function(e,t,r){var i=Hn(n),o=e.text.map((function(e){return L_(gI(e,t,r.providers))})),a=e.icon.map((function(e){return L_(pI(e,r.providers.icons))})),s=function(e,t){var n=Fp.getValue(e);return vb.focus(n),io(n,"keydown",{raw:t.event().raw()}),fA.close(n),w.some(!0)},l=e.role.fold((function(){return{}}),(function(e){return{role:e}})),u=e.tooltip.fold((function(){return{}}),(function(e){var t=r.providers.translate(e);return{title:t,"aria-label":t}})),c=L_(fA.sketch(h(h({},l),{dom:{tag:"button",classes:[t,t+"--select"].concat(H(e.classes,(function(e){return t+"--"+e}))),attributes:h({},u)},components:gO([a.map((function(e){return e.asSpec()})),o.map((function(e){return e.asSpec()})),w.some({dom:{tag:"div",classes:[t+"__select-chevron"],innerHtml:R_("chevron-down",r.providers.icons)}})]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:cc(g(e.dropdownBehaviours,[lO.button(e.disabled),gA.config({}),ab.config({}),lb("dropdown-events",[cO(e,i),fO(e,i)]),lb("menubutton-update-display-text",[Eo(bI,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){ab.set(e,[ol(r.providers.translate(t.event().text()))])}))})),Eo(_I,(function(e,t){a.bind((function(t){return t.getOpt(e)})).each((function(e){ab.set(e,[pI(t.event().icon(),r.providers.icons)])}))}))])])),eventOrder:Ce(yI,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:cc([Xy.config({mode:"special",onLeft:s,onRight:s})]),lazySink:r.getSink,toggleClass:t+"--active",parts:{menu:YS(!1,e.columns,e.presets)},fetch:function(){return bE.nu(e.fetch)}})));return c.asSpec()},xI=function(e){return A(e)},OI=function(e){return"separator"===e.type},SI=function(e){return ye(e,"getSubmenuItems")},CI={type:"separator"},kI=function(e,t){var n=X(e,(function(e,n){return xI(n)?""===n?e:"|"===n?e.length>0&&!OI(e[e.length-1])?e.concat([CI]):e:ye(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&OI(n[n.length-1])&&n.pop(),n},EI=function(e,t){var n=e.getSubmenuItems(),r=DI(n,t),i=Ce(r.menus,Ke(e.value,r.items)),o=Ce(r.expansions,Ke(e.value,e.value));return{item:e,menus:i,expansions:o}},AI=function(e,t){return SI(e)?EI(e,t):{item:e,menus:{},expansions:{}}},TI=function(e){if(OI(e))return e;var t=We(e,"value").getOrThunk((function(){return Ma("generated-menu-item")}));return Ce({value:t},e)},DI=function(e,t){var n=kI(A(e)?e.split(" "):e,t);return Y(n,(function(e,n){var r=TI(n),i=AI(r,t);return{menus:Ce(e.menus,i.menus),items:[i.item].concat(e.items),expansions:Ce(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},MI=function(e,t,n,r){var i=Ma("primary-menu"),o=DI(e,n.shared.providers.menuItems());if(0===o.items.length)return w.none();var a=SC(i,o.items,t,n,r),s=de(o.menus,(function(e,r){return SC(r,e,t,n,!1)})),l=Ce(s,Ke(i,a));return w.from(v_.tieredData(i,l,o.expansions))},PI=function(e){return{isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)},setActive:function(t){var n=e.element();t?(Ds(n,"tox-tbtn--enabled"),ya(n,"aria-pressed",!0)):(Ps(n,"tox-tbtn--enabled"),xa(n,"aria-pressed"))},isActive:function(){return Is(e.element(),"tox-tbtn--enabled")}}},II=function(e,t,n,r){return wI({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t){e.fetch((function(e){t(MI(e,dO.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:PI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[LE.config({})]},t,n.shared)},jI=function(e,t,n){var r=function(e){return function(r){n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){Oc(t.element()),io(t,Hk,{name:e.name,value:e.storage.get()})}))}));var i=!r.isActive();r.setActive(i),e.storage.set(i)}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(H(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return h(h({type:e.type},t),{onAction:r(e),onSetup:i(e)})})))}},LI=function(e,t,n,r,i){void 0===n&&(n=[]);var o=t.fold((function(){return{}}),(function(e){return{action:e}})),a=h({buttonBehaviours:cc([lO.button(e.disabled),LE.config({}),lb("button press",[ko("click"),ko("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},o),s=Ce(a,{dom:r});return Ce(s,{components:i})},NI=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return hI(e,n.icons)})),s=gO([a]);return LI(e,t,r,o,s)},RI=function(e,t,n,r){void 0===r&&(r=[]);var i=NI(e,w.some(t),n,r);return j_.sketch(i)},BI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return hI(e,n.icons)})):w.none(),s=a.isSome()?gO([a]):[],l=a.isSome()?{}:{innerHtml:o},u=g(e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],a.isSome()?["tox-button--icon"]:[],e.borderless?["tox-button--naked"]:[],i),c=h(h({tag:"button",classes:u},l),{attributes:{title:o}});return LI(e,t,r,c,s)},$I=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=BI(e,w.some(t),n,r,i);return j_.sketch(o)},FI=function(e,n){return function(r){"custom"===n?io(r,Hk,{name:e,value:{}}):"submit"===n?ro(r,Vk):"cancel"===n?ro(r,Uk):t.console.error("Unknown button type: ",n)}},zI=function(e,t){return"menu"===t},qI=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},UI=function(e,n,r){if(zI(e,n)){var i=function(){return s},o=e,a=h(h({},e),{fetch:jI(o.items,i,r)}),s=L_(II(a,"tox-tbtn",r,w.none()));return s.asSpec()}if(qI(e,n)){var l=FI(e.name,n),u=h(h({},e),{borderless:!1});return $I(u,l,r.shared.providers,[])}t.console.error("Unknown footer button type: ",n)},HI=function(e,t){var n=FI(e.name,"custom");return RE(w.none(),tE.parts().field(h({factory:j_},BI(e,w.some(n),t,[HM.memory(""),TM.self()]))))},VI=o([In("field1Name","field1"),In("field2Name","field2"),bu("onLockedChange"),gu(["lockClass"]),In("locked",!1),Hp.field("coupledFieldBehaviours",[rm,Fp])]),WI=function(e,t,n){return Ig(e,t,n).bind(rm.getCurrent)},KI=function(e,t){return yg({factory:tE,name:e,overrides:function(e){return{fieldBehaviours:cc([lb("coupled-input-behaviour",[Eo(Ci(),(function(n){WI(n,e,t).each((function(t){Ig(n,e,"lock").each((function(r){Nb.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},GI=o([KI("field1","field2"),KI("field2","field1"),yg({factory:j_,schema:[pn("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:cc([Nb.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),YI=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Hp.augment(e.coupledFieldBehaviours,[rm.config({find:w.some}),Fp.config({store:{mode:"manual",getValue:function(t){var n,r=Bg(t,e,["field1","field2"]);return n={},n[e.field1Name]=Fp.getValue(r.field1()),n[e.field2Name]=Fp.getValue(r.field2()),n},setValue:function(t,n){var r=Bg(t,e,["field1","field2"]);Qe(n,e.field1Name)&&Fp.setValue(r.field1(),n[e.field1Name]),Qe(n,e.field2Name)&&Fp.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Ig(t,e,"field1")},getField2:function(t){return Ig(t,e,"field2")},getLock:function(t){return Ig(t,e,"lock")}}}},XI=Qg({name:"FormCoupledInputs",configFields:VI(),partFields:GI(),factory:YI,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),ZI=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},QI=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return C.value({value:r,unit:i})}return C.error(e)},JI=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Object.prototype.hasOwnProperty.call(n,e)};return e.unit===t?w.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?w.some(e.value):w.some(e.value/n[e.unit]*n[t]):w.none()},ej=function(e){return w.none()},tj=function(e,t){return function(n){return JI(n,t).map((function(n){return{value:n*e,unit:t}}))}},nj=function(e,t){var n=QI(e).toOption(),r=QI(t).toOption();return Jl(n,r,(function(e,t){return JI(e,t.unit).map((function(e){return t.value/e})).map((function(e){return tj(e,t.unit)})).getOr(ej)})).getOr(ej)},rj=function(e,t){var n=ej,r=Ma("ratio-event"),i=XI.parts().lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__lock"],innerHtml:R_("lock",t.icons)}},{dom:{tag:"span",classes:["tox-icon","tox-lock-icon__unlock"],innerHtml:R_("unlock",t.icons)}}],buttonBehaviours:cc([lO.button(e.disabled),LE.config({})])}),o=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},a=function(t){return tE.parts().field({factory:sE,inputClasses:["tox-textfield"],inputBehaviours:cc([rO.config({disabled:e.disabled}),LE.config({}),lb("size-input-events",[Eo(wi(),(function(e,n){io(e,r,{isField1:t})})),Eo(ki(),(function(t,n){io(t,zk,{name:e.name})}))])]),selectOnFocus:!1})},s=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},l=XI.parts().field1(o([tE.parts().label(s("Width")),a(!0)])),u=XI.parts().field2(o([tE.parts().label(s("Height")),a(!1)]));return XI.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[l,u,o([s("&nbsp;"),i])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){QI(Fp.getValue(e)).each((function(e){n(e).each((function(e){Fp.setValue(t,ZI(e))}))}))},coupledFieldBehaviours:cc([rO.config({disabled:e.disabled,onDisabled:function(e){XI.getField1(e).bind(tE.getField).each(rO.disable),XI.getField2(e).bind(tE.getField).each(rO.disable),XI.getLock(e).each(rO.disable)},onEnabled:function(e){XI.getField1(e).bind(tE.getField).each(rO.enable),XI.getField2(e).bind(tE.getField).each(rO.enable),XI.getLock(e).each(rO.enable)}}),lb("size-input-events2",[Eo(r,(function(e,t){var r=t.event().isField1(),i=r?XI.getField1(e):XI.getField2(e),o=r?XI.getField2(e):XI.getField1(e),a=i.map(Fp.getValue).getOr(""),s=o.map(Fp.getValue).getOr("");n=nj(a,s)}))])])})},ij=o(Ma("undo")),oj=o(Ma("redo")),aj=o(Ma("zoom")),sj=o(Ma("back")),lj=o(Ma("apply")),uj=o(Ma("swap")),cj=o(Ma("transform")),fj=o(Ma("temp-transform")),dj=o(Ma("transform-apply")),hj={undo:ij,redo:oj,zoom:aj,back:sj,apply:lj,swap:uj,transform:cj,tempTransform:fj,transformApply:dj},pj=o("save-state"),gj=o("disable"),mj=o("enable"),vj={formActionEvent:Hk,saveState:pj,disable:gj,enable:mj},yj=function(e,t){var r=function(e,n,r,i){return L_($I({name:e,text:e,disabled:r,primary:i,icon:w.none(),borderless:!1},n,t))},i=function(e,n,r,i){return L_(RI({name:e,icon:w.some(e),tooltip:w.some(n),disabled:i,primary:!1,borderless:!1},r,t))},a=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(rO)&&rO.disable(n)}))},s=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(rO)&&rO.enable(n)}))},l={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},u=n,c=function(e,t,n){io(e,t,n)},f=function(e){return ro(e,vj.disable())},d=function(e){return ro(e,vj.enable())},h=function(e,t){f(e),c(e,hj.transform(),{transform:t}),d(e)},p=function(e,t){f(e),c(e,hj.tempTransform(),{transform:t}),d(e)},g=function(e){return function(){ae.getOpt(e).each((function(e){ab.set(e,[ie])}))}},m=function(e,t){f(e),c(e,hj.transformApply(),{transform:t,swap:g(e)}),d(e)},v=function(){return r("Back",(function(e){return c(e,hj.back(),{swap:g(e)})}),!1,!1)},y=function(){return L_({dom:{tag:"div",classes:["tox-spacer"]},behaviours:cc([rO.config({})])})},b=function(){return r("Apply",(function(e){return c(e,hj.apply(),{swap:g(e)})}),!0,!0)},_=function(){return function(t){var n=e.getRect();return uI(t,n.x,n.y,n.w,n.h)}},x=[v(),y(),r("Apply",(function(t){var n=_();m(t,n),e.hideCrop()}),!1,!0)],O=gk.sketch({dom:l,components:x.map((function(e){return e.asSpec()})),containerBehaviours:cc([lb("image-tools-crop-buttons-events",[Eo(vj.disable(),(function(e,t){a(x,e)})),Eo(vj.enable(),(function(e,t){s(x,e)}))])])}),S=L_(rj({name:"size",label:w.none(),constrain:!0,disabled:!1},t)),C=function(e,t){return function(n){return cI(n,e,t)}},k=[v(),y(),S,y(),r("Apply",(function(e){S.getOpt(e).each((function(t){var n=Fp.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=C(r,i);m(e,o)}))}),!1,!0)],E=gk.sketch({dom:l,components:k.map((function(e){return e.asSpec()})),containerBehaviours:cc([lb("image-tools-resize-buttons-events",[Eo(vj.disable(),(function(e,t){a(k,e)})),Eo(vj.enable(),(function(e,t){s(k,e)}))])])}),A=function(e,t){return function(n){return e(n,t)}},T=A(lI,"h"),D=A(lI,"v"),M=A(fI,-90),P=A(fI,90),I=function(e,t){p(e,t)},j=[v(),y(),i("flip-horizontally","Flip horizontally",(function(e){I(e,T)}),!1),i("flip-vertically","Flip vertically",(function(e){I(e,D)}),!1),i("rotate-left","Rotate counterclockwise",(function(e){I(e,M)}),!1),i("rotate-right","Rotate clockwise",(function(e){I(e,P)}),!1),y(),b()],L=gk.sketch({dom:l,components:j.map((function(e){return e.asSpec()})),containerBehaviours:cc([lb("image-tools-fliprotate-buttons-events",[Eo(vj.disable(),(function(e,t){a(j,e)})),Eo(vj.enable(),(function(e,t){s(j,e)}))])])}),N=function(e,n,r,i,a){var s=aM.parts().label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),l=aM.parts().spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),u=aM.parts().thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return L_(aM.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:a,getInitialValue:o({x:o(i)})},components:[s,l,u],sliderBehaviours:cc([vb.config({})]),onChoose:n}))},R=function(e,t,n,r,i){var o=function(e,n,r){var i=A(t,r.x()/100);h(e,i)};return N(e,o,n,r,i)},B=function(e,t,n,r,i){return[v(),R(e,t,n,r,i),b()]},$=function(e,t,n,r,i){var o=B(e,t,n,r,i);return gk.sketch({dom:l,components:o.map((function(e){return e.asSpec()})),containerBehaviours:cc([lb("image-tools-filter-panel-buttons-events",[Eo(vj.disable(),(function(e,t){a(o,e)})),Eo(vj.enable(),(function(e,t){s(o,e)}))])])})},F=[v(),y(),b()],z=gk.sketch({dom:l,components:F.map((function(e){return e.asSpec()}))}),q=$("Brightness",aI,-100,0,100),U=$("Contrast",sI,-100,0,100),H=$("Gamma",iI,-100,0,100),V=function(e,t,n){return function(r){return oI(r,e,t,n)}},W=function(e){var t=function(e,t,n){var r=K.getOpt(e),i=Y.getOpt(e),o=G.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=Fp.getValue(t).x()/100,o=Fp.getValue(r).x()/100,a=Fp.getValue(n).x()/100,s=V(i,o,a);h(e,s)}))}))}))};return N(e,t,0,100,200)},K=W("R"),G=W("G"),Y=W("B"),X=[v(),K,G,Y,b()],Z=gk.sketch({dom:l,components:X.map((function(e){return e.asSpec()}))}),Q=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){ab.set(t,[e]),n(t)}))};c(r,hj.swap(),{transform:t,swap:i})}},J=function(t){e.showCrop()},ee=function(t){S.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;Fp.setValue(t,{width:r,height:i})}))},te=w.some(rI),ne=w.some(nI),re=[i("crop","Crop",Q(O,w.none(),J),!1),i("resize","Resize",Q(E,w.none(),ee),!1),i("orientation","Orientation",Q(L,w.none(),u),!1),i("brightness","Brightness",Q(q,w.none(),u),!1),i("sharpen","Sharpen",Q(z,te,u),!1),i("contrast","Contrast",Q(U,w.none(),u),!1),i("color-levels","Color levels",Q(Z,w.none(),u),!1),i("gamma","Gamma",Q(H,w.none(),u),!1),i("invert","Invert",Q(z,ne,u),!1)],ie=gk.sketch({dom:l,components:re.map((function(e){return e.asSpec()}))}),oe=gk.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:cc([ab.config({})])}),ae=L_(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},bj=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),_j=tinymce.util.Tools.resolve("tinymce.geom.Rect"),wj=tinymce.util.Tools.resolve("tinymce.util.Observable"),xj=tinymce.util.Tools.resolve("tinymce.util.Tools"),Oj=tinymce.util.Tools.resolve("tinymce.util.VK");function Sj(e){var t,n,r,i,o,a,s,l,u=Math.max;return t=e.documentElement,n=e.body,r=u(t.scrollWidth,n.scrollWidth),i=u(t.clientWidth,n.clientWidth),o=u(t.offsetWidth,n.offsetWidth),a=u(t.scrollHeight,n.scrollHeight),s=u(t.clientHeight,n.clientHeight),l=u(t.offsetHeight,n.offsetHeight),{width:r<o?i:r,height:a<l?s:a}}function Cj(e){var t,n;if(e.changedTouches)for(t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]}function kj(e,n){var r,i,o,a,s,l,u,c=n.document||t.document;n=n||{};var f=c.getElementById(n.handle||e);o=function(e){var o,d,h=Sj(c);Cj(e),e.preventDefault(),i=e.button,o=f,l=e.screenX,u=e.screenY,d=t.window.getComputedStyle?t.window.getComputedStyle(o,null).getPropertyValue("cursor"):o.runtimeStyle.cursor,r=bj("<div></div>").css({position:"absolute",top:0,left:0,width:h.width,height:h.height,zIndex:2147483647,opacity:1e-4,cursor:d}).appendTo(c.body),bj(c).on("mousemove touchmove",s).on("mouseup touchend",a),n.start(e)},s=function(e){if(Cj(e),e.button!==i)return a(e);e.deltaX=e.screenX-l,e.deltaY=e.screenY-u,e.preventDefault(),n.drag(e)},a=function(e){Cj(e),bj(c).off("mousemove touchmove",s).off("mouseup touchend",a),r.remove(),n.stop&&n.stop(e)},this.destroy=function(){bj(f).off()},bj(f).on("mousedown touchstart",o)}var Ej=0,Aj=function(e,t,n,r,i){var o,a,s,l="tox-",u=l+"crid-"+Ej++,c=[{name:"move",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:0,deltaH:0,label:"Crop Mask"},{name:"nw",xMul:0,yMul:0,deltaX:1,deltaY:1,deltaW:-1,deltaH:-1,label:"Top Left Crop Handle"},{name:"ne",xMul:1,yMul:0,deltaX:0,deltaY:1,deltaW:1,deltaH:-1,label:"Top Right Crop Handle"},{name:"sw",xMul:0,yMul:1,deltaX:1,deltaY:0,deltaW:-1,deltaH:1,label:"Bottom Left Crop Handle"},{name:"se",xMul:1,yMul:1,deltaX:0,deltaY:0,deltaW:1,deltaH:1,label:"Bottom Right Crop Handle"}];s=["top","right","bottom","left"];var f=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},d=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},h=function(){return d(n,e)};function p(t,r,i,a){var s,l,u,c,f;s=r.x,l=r.y,u=r.w,c=r.h,s+=i*t.deltaX,l+=a*t.deltaY,u+=i*t.deltaW,c+=a*t.deltaH,u<20&&(u=20),c<20&&(c=20),f=e=_j.clamp({x:s,y:l,w:u,h:c},n,"move"===t.name),f=d(n,f),o.fire("updateRect",{rect:f}),_(f)}function g(){function t(t){var n;return new kj(u,{document:r.ownerDocument,handle:u+"-"+t.name,start:function(){n=e},drag:function(e){p(t,n,e.deltaX,e.deltaY)}})}bj('<div id="'+u+'" class="'+l+'croprect-container" role="grid" aria-dropeffect="execute">').appendTo(r),xj.each(s,(function(e){bj("#"+u,r).append('<div id="'+u+"-"+e+'"class="'+l+'croprect-block" style="display: none" data-mce-bogus="all">')})),xj.each(c,(function(e){bj("#"+u,r).append('<div id="'+u+"-"+e.name+'" class="'+l+"croprect-handle "+l+"croprect-handle-"+e.name+'"style="display: none" data-mce-bogus="all" role="gridcell" tabindex="-1" aria-label="'+e.label+'" aria-grabbed="false" title="'+e.label+'">')})),a=xj.map(c,t),v(e),bj(r).on("focusin focusout",(function(e){bj(e.target).attr("aria-grabbed","focus"===e.type?"true":"false")})),bj(r).on("keydown",(function(t){var n;function r(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),p(n,r,i,o)}switch(xj.each(c,(function(e){if(t.target.id===u+"-"+e.name)return n=e,!1})),t.keyCode){case Oj.LEFT:r(t,n,e,-10,0);break;case Oj.RIGHT:r(t,n,e,10,0);break;case Oj.UP:r(t,n,e,0,-10);break;case Oj.DOWN:r(t,n,e,0,10);break;case Oj.ENTER:case Oj.SPACEBAR:t.preventDefault(),i();break}}))}function m(e){var t;t=xj.map(c,(function(e){return"#"+u+"-"+e.name})).concat(xj.map(s,(function(e){return"#"+u+"-"+e}))).join(","),e?bj(t,r).show():bj(t,r).hide()}function v(e){function n(e,t){t.h<0&&(t.h=0),t.w<0&&(t.w=0),bj("#"+u+"-"+e,r).css({left:t.x,top:t.y,width:t.w,height:t.h})}xj.each(c,(function(t){bj("#"+u+"-"+t.name,r).css({left:e.w*t.xMul+e.x,top:e.h*t.yMul+e.y})})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)}function y(t){e=t,v(e)}function b(n){t=n,v(e)}function _(e){y(f(n,e))}function w(t){n=t,v(e)}function x(){xj.each(a,(function(e){e.destroy()})),a=[]}return g(),o=xj.extend({toggleVisibility:m,setClampRect:w,setRect:y,getInnerRect:h,setInnerRect:_,setViewPortRect:b,destroy:x},wj),o},Tj={create:Aj},Dj=function(e){return new dw((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},Mj=function(e){var t=L_({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=Hn(1),r=Hn(w.none()),i=Hn({x:0,y:0,w:1,h:1}),o=Hn({x:0,y:0,w:1,h:1}),a=function(e,o){p.getOpt(e).each((function(e){var a=n.get(),s=Sl(e.element()),l=hl(e.element()),u=o.dom().naturalWidth*a,c=o.dom().naturalHeight*a,f=Math.max(0,s/2-u/2),d=Math.max(0,l/2-c/2),h={left:f.toString()+"px",top:d.toString()+"px",width:u.toString()+"px",height:c.toString()+"px",position:"absolute"};Fs(o,h),t.getOpt(e).each((function(e){Fs(e.element(),h)})),r.get().each((function(e){var t=i.get();e.setRect({x:t.x*a+f,y:t.y*a+d,w:t.w*a,h:t.h*a}),e.setClampRect({x:f,y:d,w:u,h:c}),e.setViewPortRect({x:0,y:0,w:s,h:l})}))}))},s=function(e,t){p.getOpt(e).each((function(e){var r=Sl(e.element()),i=hl(e.element()),o=t.dom().naturalWidth,a=t.dom().naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},l=function(e,t){var n=Xn.fromTag("img");return ya(n,"src",t),Dj(n.dom()).then((function(){return p.getOpt(e).map((function(e){var t=al({element:n});ab.replaceAt(e,1,w.some(t));var r=o.get(),l={x:0,y:0,w:n.dom().naturalWidth,h:n.dom().naturalHeight};o.set(l);var u=_j.inflate(l,-20,-20);return i.set(u),r.w===l.w&&r.h===l.h||s(e,n),a(e,n),n}))}))},u=function(e,t){var r=n.get(),i=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),p.getOpt(e).each((function(e){var t=e.components()[1].element();a(e,t)}))},c=function(){r.get().each((function(e){e.toggleVisibility(!0)}))},f=function(){r.get().each((function(e){e.toggleVisibility(!1)}))},d=function(){return i.get()},h=gk.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:cc([lb("image-panel-crop-events",[Ro((function(e){p.getOpt(e).each((function(e){var t=e.element().dom(),o=Tj.create({x:10,y:10,w:100,h:100},{x:0,y:0,w:200,h:200},{x:0,y:0,w:200,h:200},t,(function(){}));o.toggleVisibility(!1),o.on("updateRect",(function(e){var t=e.rect,r=n.get(),o={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};i.set(o)})),r.set(w.some(o))}))}))])])}],containerBehaviours:cc([ab.config({}),lb("image-panel-events",[Ro((function(t){l(t,e)}))])])}),p=L_(h),g=function(){var e=o.get();return{width:e.w,height:e.h}};return{memContainer:p,updateSrc:l,zoom:u,showCrop:c,hideCrop:f,getRect:d,getMeasurements:g}},Pj=function(e,t,n,r,i){return RI({name:e,icon:w.some(t),disabled:n,tooltip:w.some(e),primary:!1,borderless:!1},r,i)},Ij=function(e,t){t?rO.enable(e):rO.disable(e)},jj=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){Ij(e,t)})),r.getOpt(e).each((function(e){Ij(e,i)}))},n=L_(Pj("Undo","undo",!0,(function(e){io(e,hj.undo(),{direction:1})}),e)),r=L_(Pj("Redo","redo",!0,(function(e){io(e,hj.redo(),{direction:1})}),e)),i=gk.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),Pj("Zoom in","zoom-in",!1,(function(e){io(e,hj.zoom(),{direction:1})}),e),Pj("Zoom out","zoom-out",!1,(function(e){io(e,hj.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function Lj(){var e=[],t=-1;function n(n){var r;return r=e.splice(++t),e.push(n),{state:n,removed:r}}function r(){if(o())return e[--t]}function i(){if(a())return e[++t]}function o(){return t>0}function a(){return-1!==t&&t<e.length-1}return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var Nj,Rj=function(e){var n=Hn(e),r=Hn(w.none()),i=Lj();i.add(e);var o=function(){return n.get()},a=function(e){n.set(e)},s=function(){return r.get().fold((function(){return n.get()}),(function(e){return e}))},l=function(e){var t=u(e);return d(),r.set(w.some(t)),t.url},u=function(e){return{blob:e,url:t.URL.createObjectURL(e)}},c=function(e){t.URL.revokeObjectURL(e.url)},f=function(e){xj.each(e,c)},d=function(){r.get().each(c),r.set(w.none())},h=function(e){var t=u(e);a(t);var n=i.add(t).removed;return f(n),t.url},p=function(e){var t=u(e);return r.set(w.some(t)),t.url},g=function(e){return r.get().fold((function(){}),(function(t){h(t.blob),e()}))},m=function(){var e=i.undo();return a(e),e.url},v=function(){var e=i.redo();return a(e),e.url},y=function(){var e=i.canUndo(),t=i.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:o,setBlobState:a,addBlobState:h,getTempState:s,updateTempState:l,addTempState:p,applyTempState:g,destroyTempState:d,undo:m,redo:v,getHistoryStates:y}},Bj=function(e,r){var i=Rj(e.currentState),o=function(e,t){var n=t.event().direction();C.zoom(e,n)},a=function(e){var t=i.getHistoryStates();k.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),io(e,vj.formActionEvent,{name:vj.saveState(),value:t.undoEnabled})},s=function(e){k.updateButtonUndoStates(e,!1,!1)},l=function(e,t){var n=i.undo();h(e,n).then((function(t){d(e),a(e)}))},u=function(e,t){var n=i.redo();h(e,n).then((function(t){d(e),a(e)}))},c=function(e){return e.toBlob()},f=function(e){io(e,vj.formActionEvent,{name:vj.disable(),value:{}})},d=function(e){E.getApplyButton(e).each((function(e){rO.enable(e)})),io(e,vj.formActionEvent,{name:vj.enable(),value:{}})},h=function(e,t){return f(e),C.updateSrc(e,t)},p=function(e,n,r,i,o){return f(e),CP(n).then(r).then(c).then(i).then((function(t){return h(e,t).then((function(t){return a(e),o(),d(e),t}))})).catch((function(n){return t.console.log(n),d(e),n}))},g=function(e,t,n){var r=i.getBlobState().blob,o=function(e){return i.updateTempState(e)};p(e,r,t,o,n)},m=function(e,t){var r=i.getTempState().blob,o=function(e){return i.addTempState(e)};p(e,r,t,o,n)},v=function(e,t,n){var r=i.getBlobState().blob,o=function(t){var n=i.addBlobState(t);return b(e),n};p(e,r,t,o,n)},y=function(e,t){var n=function(){b(e);var n=t.event().swap();n()};i.applyTempState(n)},b=function(e){var t=i.getBlobState().url;return i.destroyTempState(),a(e),t},_=function(e){var t=b(e);h(e,t).then((function(t){d(e)}))},w=function(e,t){_(e);var n=t.event().swap();n(),C.hideCrop()},x=function(e,t){return g(e,t.event().transform(),n)},O=function(e,t){return m(e,t.event().transform())},S=function(e,t){return v(e,t.event().transform(),t.event().swap())},C=Mj(e.currentState.url),k=jj(r),E=yj(C,r),A=function(e,t){s(e);var n=t.event().transform(),r=t.event().swap();n.fold((function(){r()}),(function(t){g(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[E.memContainer.asSpec(),C.memContainer.asSpec(),k.container],behaviours:cc([Fp.config({store:{mode:"manual",getValue:function(){return i.getBlobState()}}}),lb("image-tools-events",[Eo(hj.undo(),l),Eo(hj.redo(),u),Eo(hj.zoom(),o),Eo(hj.back(),w),Eo(hj.apply(),y),Eo(hj.transform(),x),Eo(hj.tempTransform(),O),Eo(hj.transformApply(),S),Eo(hj.swap(),A)]),TM.self()])}},$j=function(e,t){var n=H(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return Ke("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:Up(e.selectBehaviours,[vb.config({}),Fp.config({store:h({mode:"manual",getValue:function(e){return Gs(e.element())},setValue:function(t,n){var r=Z(e.options,(function(e){return e.value===n}));r.isSome()&&Ys(t.element(),n)}},r)})])}},Fj=Zg({name:"HtmlSelect",configFields:[pn("options"),zp("selectBehaviours",[vb,Fp]),In("selectClasses",[]),In("selectAttributes",{}),Cn("data")],factory:$j}),zj=function(e,t){var n=H(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return zE(e,t)})),i=tE.parts().field({dom:{},selectAttributes:{size:e.size},options:n,factory:Fj,selectBehaviours:cc([rO.config({disabled:e.disabled}),LE.config({}),lb("selectbox-change",[Eo(ki(),(function(t,n){io(t,zk,{name:e.name})}))])])}),o=e.size>1?w.none():w.some({dom:{tag:"div",classes:["tox-selectfield__icon-js"],innerHtml:R_("chevron-down",t.icons)}}),a={dom:{tag:"div",classes:["tox-selectfield"]},components:J([[i],o.toArray()])};return tE.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:J([r.toArray(),[a]]),fieldBehaviours:cc([rO.config({disabled:e.disabled,onDisabled:function(e){tE.getField(e).each(rO.disable)},onEnabled:function(e){tE.getField(e).each(rO.enable)}})])})},qj=function(e,t){var n=e.label.map((function(e){return zE(e,t)})),r=[rO.config({disabled:e.disabled}),Xy.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return ro(e,Vk),w.some(!0)}}),lb("textfield-change",[Eo(Ci(),(function(t,n){io(t,zk,{name:e.name})})),Eo(Ii(),(function(t,n){io(t,zk,{name:e.name})}))]),LE.config({})],i=e.validation.map((function(e){return ME.config({getRoot:function(e){return Zo(e.element())},invalidClass:"tox-invalid",validator:{validate:function(t){var n=Fp.getValue(t),r=e.validator(n);return bE.pure(!0===r?C.value(n):C.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),a=e.placeholder.fold(o({}),(function(e){return{placeholder:t.translate(e)}})),s=e.inputMode.fold(o({}),(function(e){return{inputmode:e}})),l=h(h({},a),s),u=tE.parts().field({tag:!0===e.multiline?"textarea":"input",inputAttributes:l,inputClasses:[e.classname],inputBehaviours:cc(J([r,i])),selectOnFocus:!1,factory:sE}),c=e.flex?["tox-form__group--stretched"]:[],f=c.concat(e.maximized?["tox-form-group--maximize"]:[]),d=[rO.config({disabled:e.disabled,onDisabled:function(e){tE.getField(e).each(rO.disable)},onEnabled:function(e){tE.getField(e).each(rO.enable)}})];return NE(n,u,f,d)},Uj=function(e,t){return qj({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:w.none(),maximized:e.maximized},t)},Hj=function(e,t){return qj({name:e.name,multiline:!0,label:e.label,inputMode:w.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:w.none(),maximized:e.maximized},t)},Vj=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return Oo([Eo(e.event,r),Bo((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Eo(e,(function(){return t.cancel()}))]})).getOr([])))},Wj=Object.freeze({events:Vj}),Kj=function(e){var t=Hn(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return Qa({readState:n,setTimer:r,cancel:i})},Gj=function(e){return e.stream.streams.state(e)},Yj=Object.freeze({throttle:Kj,init:Gj}),Xj=function(e,t){var n=e.stream,r=K_(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},Zj=[gn("stream",rn("mode",{throttle:[pn("delay"),In("stopEvent",!0),wu("streams",{setup:Xj,state:Kj})]})),In("event","input"),Cn("cancelEvent"),bu("onStream")],Qj=dc({fields:Zj,name:"streaming",active:Wj,state:Yj}),Jj=function(e,t,n){var r=Fp.getValue(n);Fp.setValue(t,r),tL(t)},eL=function(e,t){var n=e.element(),r=Gs(n),i=n.dom();"number"!==_a(n,"type")&&t(i,r)},tL=function(e){eL(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},nL=function(e,t){eL(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},rL=function(e,t,n){if(e.selectsOver){var r=Fp.getValue(t),i=e.getDisplayText(r),o=Fp.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?w.some((function(){Jj(e,t,n),nL(t,i.length)})):w.none()}return w.none()},iL=o("alloy.typeahead.itemexecute"),oL=function(e,t,r,i){var o=function(t,r,o){e.previewing.set(!1);var a=KE.getCoupled(t,"sandbox");if(ip.isOpen(a))rm.getCurrent(a).each((function(e){Om.getHighlighted(e).fold((function(){o(e)}),(function(){lo(a,e.element(),"keydown",r)}))}));else{var l=function(e){rm.getCurrent(e).each(o)};JE(e,s(t),t,a,i,l,cE.HighlightFirst).get(n)}},a=rE(e),s=function(e){return function(t){return t.map((function(t){var n=me(t.menus),r=ee(n,(function(e){return G(e.items,(function(e){return"item"===e.type}))})),i=Fp.getState(e);return i.update(H(r,(function(e){return e.data}))),t}))}},l=[vb.config({}),Fp.config({onSetValue:e.onSetValue,store:h({mode:"dataset",getDataKey:function(e){return Gs(e.element())},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){Ys(t.element(),e.model.getDisplayText(n))}},e.initialData.map((function(e){return Ke("initialValue",e)})).getOr({}))}),Qj.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,r){var o=KE.getCoupled(t,"sandbox"),a=vb.isFocused(t);if(a&&Gs(t.element()).length>=e.minChars){var l=rm.getCurrent(o).bind((function(e){return Om.getHighlighted(e).map(Fp.getValue)}));e.previewing.set(!0);var u=function(t){rm.getCurrent(o).each((function(t){l.fold((function(){e.model.selectsOver&&Om.highlightFirst(t)}),(function(e){Om.highlightBy(t,(function(t){var n=Fp.getValue(t);return n.value===e.value})),Om.getHighlighted(t).orThunk((function(){return Om.highlightFirst(t),w.none()}))}))}))};JE(e,s(t),t,o,i,u,cE.HighlightFirst).get(n)}},cancelEvent:zi()}),Xy.config({mode:"special",onDown:function(e,t){return o(e,t,Om.highlightFirst),w.some(!0)},onEscape:function(e){var t=KE.getCoupled(e,"sandbox");return ip.isOpen(t)?(ip.close(t),w.some(!0)):w.none()},onUp:function(e,t){return o(e,t,Om.highlightLast),w.some(!0)},onEnter:function(t){var n=KE.getCoupled(t,"sandbox"),r=ip.isOpen(n);if(r&&!e.previewing.get())return rm.getCurrent(n).bind((function(e){return Om.getHighlighted(e)})).map((function(e){return io(t,iL(),{item:e}),!0}));var i=Fp.getValue(t);return ro(t,zi()),e.onExecute(n,t,i),r&&ip.close(n),w.some(!0)}}),Nb.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),KE.config({others:{sandbox:function(t){return oA(e,t,{onOpen:function(){return Nb.on(t)},onClose:function(){return Nb.off(t)}})}}}),lb("typeaheadevents",[Fo((function(t){var r=n;tA(e,s(t),t,i,r,cE.HighlightFirst).get(n)})),Eo(iL(),(function(t,n){var r=KE.getCoupled(t,"sandbox");Jj(e.model,t,n.event().item()),ro(t,zi()),e.onItemExecute(t,r,n.event().item(),Fp.getValue(t)),ip.close(r),tL(t)}))].concat(e.dismissOnBlur?[Eo(Pi(),(function(e){var t=KE.getCoupled(e,"sandbox");Ec(t.element()).isNone()&&ip.close(t)}))]:[]))];return{uid:e.uid,dom:oE(Ce(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:h(h({},a),Up(e.typeaheadBehaviours,l)),eventOrder:e.eventOrder}},aL=o([Cn("lazySink"),pn("fetch"),In("minChars",5),In("responseTime",1e3),vu("onOpen"),In("getHotspot",w.some),In("getAnchorOverrides",o({})),In("layouts",w.none()),In("eventOrder",{}),qn("model",{},[In("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),In("selectsOver",!0),In("populateFromBrowse",!0)]),vu("onSetValue"),yu("onExecute"),vu("onItemExecute"),In("inputClasses",[]),In("inputAttributes",{}),In("inputStyles",{}),In("matchWidth",!0),In("useMinWidth",!1),In("dismissOnBlur",!0),gu(["openClass"]),Cn("initialData"),zp("typeaheadBehaviours",[vb,Fp,Qj,Xy,Nb,KE]),Un("previewing",(function(){return Hn(!0)}))].concat(nE()).concat(sA())),sL=o([bg({schema:[pu()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){rL(e.model,r,n).fold((function(){return Om.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&Jj(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOption().map((function(e){return io(e,iL(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&Jj(e.model,t,n)}))}}}})]),lL=Qg({name:"Typeahead",configFields:aL(),partFields:sL(),factory:oL}),uL=function(e){var n=function(){return uL(e.toCached())},r=function(t){return uL(e.bind((function(e){return e.fold((function(e){return bE.pure(C.error(e))}),(function(e){return t(e)}))})))},i=function(t){return uL(e.map((function(e){return e.bind(t)})))},o=function(t){return uL(e.map((function(e){return e.map(t)})))},a=function(t){return uL(e.map((function(e){return e.mapError(t)})))},s=function(t,n){return e.map((function(e){return e.fold(t,n)}))},l=function(n,r){return uL(bE.nu((function(i){var o=!1,a=t.setTimeout((function(){o=!0,i(C.error(r()))}),n);e.get((function(e){o||(t.clearTimeout(a),i(e))}))})))};return h(h({},e),{toCached:n,bindFuture:r,bindResult:i,mapResult:o,mapError:a,foldResult:s,withTimeout:l})},cL=function(e){return uL(bE.nu(e))},fL=function(e){return uL(bE.pure(C.value(e)))},dL=function(e){return uL(bE.pure(C.error(e)))},hL=function(e){return uL(bE.pure(e))},pL=function(e){return uL(e.map(C.value))},gL=function(e){return cL((function(t){e.then((function(e){t(C.value(e))}),(function(e){t(C.error(e))}))}))},mL={nu:cL,wrap:uL,pure:fL,value:fL,error:dL,fromResult:hL,fromFuture:pL,fromPromise:gL},vL={type:"separator"},yL=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:function(){}}},bL=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:function(){}}},_L=function(e){return H(e,yL)},wL=function(e,t){return G(t,(function(t){return t.type===e}))},xL=function(e,t){return _L(wL(e,t))},OL=function(e){return xL("header",e.targets)},SL=function(e){return xL("anchor",e.targets)},CL=function(e){return w.from(e.anchorTop).map((function(e){return bL("<top>",e)})).toArray()},kL=function(e){return w.from(e.anchorBottom).map((function(e){return bL("<bottom>",e)})).toArray()},EL=function(e){return H(e,(function(e){return bL(e,e)}))},AL=function(e){return X(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(vL,t)}),[])},TL=function(e,t){var n=e.toLowerCase();return G(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return jr(t.toLowerCase(),n)||jr(e.value.toLowerCase(),n)}))},DL=function(e,t,n){var r=Fp.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=TL(i,EL(n.getHistory(e)));return"file"===e?AL([r,TL(i,OL(t)),TL(i,J([CL(t),SL(t),kL(t)]))]):r}))},ML=Ma("aria-invalid"),PL=function(e,t,r){var i,o=t.shared.providers,a=function(t){var n=Fp.getValue(t);r.addToHistory(n.value,e.filetype)},s=tE.parts().field({factory:lL,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":ML,type:"url"},minChars:0,responseTime:0,fetch:function(n){var i=DL(e.filetype,n,r),o=MI(i,dO.BUBBLE_TO_SANDBOX,t,!1);return bE.pure(o)},getHotspot:function(e){return g.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(ME)&&ME.run(e).get(n)},typeaheadBehaviours:cc(J([r.getValidationHandler().map((function(t){return ME.config({getRoot:function(e){return Zo(e.element())},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){c.getOpt(e).each((function(e){ya(e.element(),"title",o.translate(t))}))}},validator:{validate:function(n){var r=Fp.getValue(n);return mL.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=C.error(e.message);n(t)}else{var r=C.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[rO.config({disabled:e.disabled}),LE.config({}),lb("urlinput-events",J(["file"===e.filetype?[Eo(Ci(),(function(t){io(t,zk,{name:e.name})}))]:[],[Eo(ki(),(function(t){io(t,zk,{name:e.name}),a(t)})),Eo(Ii(),(function(t){io(t,zk,{name:e.name}),a(t)}))]]))]])),eventOrder:(i={},i[Ci()]=["streaming","urlinput-events","invalidating"],i),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:YS(!1,1,"normal")},onExecute:function(e,t,n){io(t,Vk,{})},onItemExecute:function(t,n,r,i){a(t),io(t,zk,{name:e.name})}}),l=e.label.map((function(e){return zE(e,o)})),u=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),{dom:{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],innerHtml:R_(n,o.icons),attributes:h({title:o.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))}}},c=L_(u("invalid",w.some(ML),"warning")),f=L_({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[c.asSpec()]}),d=r.getUrlPicker(e.filetype),p=Ma("browser.url.event"),g=L_({dom:{tag:"div",classes:["tox-control-wrap"]},components:[s,f.asSpec()],behaviours:cc([rO.config({disabled:e.disabled})])}),m=L_($I({name:e.name,icon:w.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return ro(e,p)}),o,[],["tox-browse-url"])),v=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:J([[g.asSpec()],d.map((function(){return m.asSpec()})).toArray()])}},y=function(t){rm.getCurrent(t).each((function(n){var r=Fp.getValue(n);d.each((function(i){i(r).get((function(r){Fp.setValue(n,r),io(t,zk,{name:e.name})}))}))}))};return tE.sketch({dom:$E(),components:l.toArray().concat([v()]),fieldBehaviours:cc([rO.config({disabled:e.disabled,onDisabled:function(e){tE.getField(e).each(rO.disable),m.getOpt(e).each(rO.disable)},onEnabled:function(e){tE.getField(e).each(rO.enable),m.getOpt(e).each(rO.enable)}}),lb("url-input-events",[Eo(p,y)])])})},IL=function(e,t){var n=Fp.config({store:{mode:"manual",getValue:function(e){var t=e.element().dom();return t.checked},setValue:function(e,t){var n=e.element().dom();n.checked=t}}}),r=function(e){return e.element().dom().click(),w.some(!0)},i=tE.parts().field({factory:{sketch:a},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:cc([TM.self(),rO.config({disabled:e.disabled}),LE.config({}),vb.config({}),n,Xy.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),lb("checkbox-events",[Eo(ki(),(function(t,n){io(t,zk,{name:e.name})}))])])}),o=tE.parts().label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:cc([gA.config({})])}),s=function(e){var n="checked"===e?"selected":"unselected";return{dom:{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e],innerHtml:R_(n,t.icons)}}},l=L_({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[s("checked"),s("unchecked")]});return tE.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,l.asSpec(),o],fieldBehaviours:cc([rO.config({disabled:e.disabled,disableClass:"tox-checkbox--disabled",onDisabled:function(e){tE.getField(e).each(rO.disable)},onEnabled:function(e){tE.getField(e).each(rO.enable)}})])})},jL=function(e){return"presentation"===e.presets?gk.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):gk.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:cc([LE.config({}),vb.config({})])})},LL=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=H(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:cc([TM.self(),ab.config({}),HM.domHtml(w.none()),Xy.config({mode:"acyclic"})])}},NL=function(e,t){var n=e.label.map((function(e){return zE(e,t)})),r=function(e){return function(t,n){Vl(n.event().target(),"[data-collection-item-value]").each((function(n){e(t,n,_a(n,"data-collection-item-value"))}))}},i=function(e){return'"'===e?"&quot;":e},o=function(t,n){var r=H(n,(function(t){var n=lx.translate(t.text),r=1===e.columns?'<div class="tox-collection__item-label">'+n+"</div>":"",o='<div class="tox-collection__item-icon">'+t.icon+"</div>",a={_:" "," - ":" ","-":" "},s=n.replace(/\_| \- |\-/g,(function(e){return a[e]}));return'<div class="tox-collection__item" tabindex="-1" data-collection-item-value="'+i(t.value)+'" title="'+s+'" aria-label="'+s+'">'+o+r+"</div>"})),o=e.columns>1&&"auto"!==e.columns?U(r,e.columns):[r],a=H(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));ga(t.element(),a.join(""))},s=[Eo(_i(),r((function(e,t){Oc(t)}))),Eo(Bi(),r((function(t,n,r){io(t,Hk,{name:e.name,value:r})}))),Eo(wi(),r((function(e,t,n){Hl(e.element(),"."+_x).each((function(e){Ps(e,_x)})),Ds(t,_x)}))),Eo(xi(),r((function(e,t,n){Hl(e.element(),"."+_x).each((function(e){Ps(e,_x)}))}))),Fo(r((function(t,n,r){io(t,Hk,{name:e.name,value:r})})))],l=tE.parts().field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:a},behaviours:cc([ab.config({}),Fp.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&Uw(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Xy.setGridSize(t,n,r)})),ro(t,Yk)}}),LE.config({}),Xy.config(iC(e.columns,"normal")),lb("collection-events",s)])}),u=["tox-form__group--collection"];return NE(n,l,u,[])},RL=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:H(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:H(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:H(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:cc([LE.config({}),vb.config({})])}},BL=function(e,t){return{dom:{tag:"div",classes:e.classes},components:H(e.items,t.shared.interpreter)}},$L=function(e){return function(t,n,r){return We(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},FL=function(e){return function(t,n,r){var i=Ce(n,{source:"dynamic"});return $L(e)(t,i,r)}},zL={bar:$L((function(e,t){return Zk(e,t.shared)})),collection:$L((function(e,t){return NL(e,t.shared.providers)})),alertbanner:$L((function(e,t){return Xk(e,t.shared.providers)})),input:$L((function(e,t){return Uj(e,t.shared.providers)})),textarea:$L((function(e,t){return Hj(e,t.shared.providers)})),label:$L((function(e,t){return LL(e,t.shared)})),iframe:FL((function(e,t){return oP(e,t.shared.providers)})),button:$L((function(e,t){return HI(e,t.shared.providers)})),checkbox:$L((function(e,t){return IL(e,t.shared.providers)})),colorinput:$L((function(e,t){return _A(e,t.shared,t.colorinput)})),colorpicker:$L(IM),dropzone:$L((function(e,t){return KM(e,t.shared.providers)})),grid:$L((function(e,t){return GM(e,t.shared)})),selectbox:$L((function(e,t){return zj(e,t.shared.providers)})),sizeinput:$L((function(e,t){return rj(e,t.shared.providers)})),urlinput:$L((function(e,t){return PL(e,t,t.urlinput)})),customeditor:$L(NM),htmlpanel:$L(jL),imagetools:$L((function(e,t){return Bj(e,t.shared.providers)})),table:$L((function(e,t){return RL(e,t.shared.providers)})),panel:$L((function(e,t){return BL(e,t)}))},qL={field:function(e,t){return t}},UL=function(e,t,n){var r=Ce(n,{shared:{interpreter:function(t){return HL(e,t,r)}}});return HL(e,t,r)},HL=function(e,n,r){return We(zL,n.type).fold((function(){return t.console.error('Unknown factory type "'+n.type+'", defaulting to container: ',n),n}),(function(t){return t(e,n,r)}))},VL=function(e,t){var n=qL;return HL(n,e,t)},WL=o((function(e,t){kl(e,Math.floor(t))})),KL={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},GL=function(e,t,n){var r=function(){return{anchor:"node",root:e(),node:w.from(e()),bubble:Dc(-12,-12,KL),layouts:{onRtl:function(){return[A_]},onLtr:function(){return[T_]}},overrides:{maxHeightFunction:ch()}}},i=function(){return{anchor:"hotspot",hotspot:t(),bubble:Dc(-12,12,KL),layouts:{onRtl:function(){return[Vu]},onLtr:function(){return[Wu]}},overrides:{maxHeightFunction:ch()}}};return n?r:i},YL=function(e,t,n){var r=function(){return{anchor:"node",root:e(),node:w.from(e()),layouts:{onRtl:function(){return[D_]},onLtr:function(){return[D_]}}}},i=function(){return{anchor:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[Xu]},onLtr:function(){return[Xu]}}}};return n?r:i},XL=function(e){return function(){return{anchor:"hotspot",hotspot:e(),overrides:{maxWidthFunction:WL()},layouts:{onRtl:function(){return[Vu,Wu]},onLtr:function(){return[Wu,Vu]}}}}},ZL=function(e,t){return function(){return{anchor:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return w.some(vf.range(Xn.fromDom(t.startContainer),t.startOffset,Xn.fromDom(t.endContainer),t.endOffset))}}}},QL=function(e){return function(t){return{anchor:"node",root:e(),node:t}}},JL=function(e,t,n){var r=Nk(e),i=function(){return Xn.fromDom(e.getBody())};return{toolbar:GL(i,t,r),toolbarOverflow:XL(n),banner:YL(i,t,r),cursor:ZL(e,i),node:QL(i)}},eN={getAnchors:JL},tN=function(e){return function(t,n){var r=RS.colorPickerDialog(e);r(t,n)}},nN=function(e){return function(){return pS.hasCustomColors(e)}},rN=function(e){return function(){return pS.getColors(e)}},iN=function(e){return function(){return RS.getColorCols(e)}},oN=function(e){return{colorPicker:tN(e),hasCustomColors:nN(e),getColors:rN(e),getColorCols:iN(e)}},aN=function(e){return function(){return Fk(e)}},sN=function(e){return{isDraggableModal:aN(e)}},lN=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strike-through",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}]}],uN=function(e){return ye(e,"items")},cN=function(e){return ye(e,"block")},fN=function(e){return ye(e,"inline")},dN=function(e){return ye(e,"selector")},hN=function(e){return X(e,(function(e,t){if(uN(t)){var n=hN(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(fN(t)||cN(t)||dN(t)){var r="custom-"+t.title.toLowerCase();return{customFormats:e.customFormats.concat([{name:r,format:t}]),formats:e.formats.concat([{title:t.title,format:r,icon:t.icon}])}}return h(h({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},pN=function(e,t){var n=hN(t),r=function(t){V(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},gN=function(e){return kk(e).map((function(t){var n=pN(e,t);return Ek(e)?lN.concat(n):n})).getOr(lN)},mN=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return Ce(e,r)},vN=function(e,t,n,r){var i=function(e){return mN(e,n,r)},a=function(e){var t={type:"submenu",isSelected:o(!1),getStylePreview:function(){return w.none()}};return Ce(e,t)},s=function(t){var i=Ma(t.title),o={type:"formatter",format:i,isSelected:n(i),getStylePreview:r(i)},a=Ce(t,o);return e.formatter.register(i,a),a},l=function(e){return H(e,(function(e){var t=ue(e);if(Qe(e,"items")){var n=l(e.items);return Ce(a(e),{getStyleItems:function(){return n}})}return Qe(e,"format")?i(e):1===t.length&&F(t,"title")?Ce(e,{type:"separator"}):s(e)}))};return l(t)},yN=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styleAttr:e.formatter.getCssText(t)}):w.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?ee(t,r):[e.format]},i=Hn([]),o=Hn([]),a=Hn([]),s=Hn([]),l=Hn(!1);e.on("init",(function(){var a=gN(e),s=vN(e,a,t,n);i.set(s),o.set(ee(s,r))})),e.on("addStyleModifications",(function(i){var o=vN(e,i.items,t,n);a.set(o),l.set(i.replace),s.set(ee(o,r))}));var u=function(){var e=l.get()?[]:i.get(),t=a.get();return e.concat(t)},c=function(){var e=l.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:u,getFlattenedKeys:c}},bN=xj.trim,_N=function(e){return function(t){if(t&&1===t.nodeType){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},wN=_N("true"),xN=_N("false"),ON=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},SN=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return wN(e)}return!1},CN=function(e,t){return H(ad(Xn.fromDom(t),e),(function(e){return e.dom()}))},kN=function(e){return e.innerText||e.textContent},EN=function(e){return e.id?e.id:Ma("h")},AN=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},TN=function(e){return AN(e)&&MN(e)},DN=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},MN=function(e){return SN(e)&&!xN(e)},PN=function(e){return DN(e)&&MN(e)},IN=function(e){return DN(e)?parseInt(e.nodeName.substr(1),10):0},jN=function(e){var t=EN(e),n=function(){e.id=t};return ON("header",kN(e),"#"+t,IN(e),n)},LN=function(e){var t=e.id||e.name,r=kN(e);return ON("anchor",r||"#"+t,"#"+t,0,n)},NN=function(e){return H(G(e,PN),jN)},RN=function(e){return H(G(e,TN),LN)},BN=function(e){var t=CN("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},$N=function(e){return bN(e.title).length>0},FN=function(e){var t=BN(e);return G(NN(t).concat(RN(t)),$N)},zN={find:FN},qN="tinymce-url-history",UN=5,HN=function(e){return A(e)&&/^https?/.test(e)},VN=function(e){return D(e)&&e.length<=UN&&te(e,HN)},WN=function(e){return T(e)&&ge(e,(function(e){return!VN(e)})).isNone()},KN=function(){var e,n=t.localStorage.getItem(qN);if(null===n)return{};try{e=JSON.parse(n)}catch(r){if(r instanceof SyntaxError)return t.console.log("Local storage "+qN+" was not valid JSON",r),{};throw r}return WN(e)?e:(t.console.log("Local storage "+qN+" was not valid format",e),{})},GN=function(e){if(!WN(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));t.localStorage.setItem(qN,JSON.stringify(e))},YN=function(e){var t=KN();return Object.prototype.hasOwnProperty.call(t,e)?t[e]:[]},XN=function(e,t){if(HN(e)){var n=KN(),r=Object.prototype.hasOwnProperty.call(n,t)?n[t]:[],i=G(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,UN),GN(n)}},ZN=Object.prototype.hasOwnProperty,QN=function(e){return!!e},JN=function(e){return de(xj.makeMap(e,/[, ]/),QN)},eR=function(e,t){return ZN.call(e,t)?w.some(e[t]):w.none()},tR=function(e,t,n){var r=eR(e,t).getOr(n);return A(r)?w.some(r):w.none()},nR=function(e){return w.some(e.file_picker_callback).filter(P)},rR=function(e){var t=w.some(e.file_picker_types).filter(QN),n=w.some(e.file_browser_callback_types).filter(QN),r=t.or(n).map(JN);return nR(e).fold((function(){return!1}),(function(e){return r.fold((function(){return!0}),(function(e){return ue(e).length>0&&e}))}))},iR=function(e,t){var n=rR(e);return M(n)?n?nR(e):w.none():n[t]?nR(e):w.none()},oR=function(e,t){return iR(e.settings,t).map((function(n){return function(r){return bE.nu((function(i){var o=function(e,t){if(!A(e))throw new Error("Expected value to be string");if(void 0!==t&&!T(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},a=xj.extend({filetype:t},w.from(r.meta).getOr({}));n.call(e,o,r.value,a)}))}}))},aR=function(e){return!1===e.settings.typeahead_urls?w.none():w.some({targets:zN.find(e.getBody()),anchorTop:tR(e.settings,"anchor_top","#top").getOrUndefined(),anchorBottom:tR(e.settings,"anchor_bottom","#bottom").getOrUndefined()})},sR=function(e){var t=w.from(e.settings.file_picker_validator_handler).filter(P);return t.orThunk((function(){return w.from(e.settings.filepicker_validator_handler).filter(P)}))},lR=function(e){return{getHistory:YN,addToHistory:XN,getLinkInformation:function(){return aR(e)},getValidationHandler:function(){return sR(e)},getUrlPicker:function(t){return oR(e,t)}}},uR=function(e,t,n,r){var i=Hn(!1),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:lx.translate},interpreter:function(e){return VL(e,o)},anchors:eN.getAnchors(t,n,r),getSink:function(){return C.value(e)}},urlinput:lR(t),styleselect:yN(t),colorinput:oN(t),dialog:sN(t),isContextMenuOpen:function(){return i.get()},setContextMenuState:function(e){return i.set(e)}};return o},cR="contexttoolbar-show",fR="contexttoolbar-hide",dR=o([pn("dom"),In("shell",!0),zp("toolbarBehaviours",[ab])]),hR=function(e){return{behaviours:cc([ab.config({})])}},pR=o([_g({name:"groups",overrides:hR})]),gR=function(e,n,r,i){var o=function(e,n){a(e).fold((function(){throw t.console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){ab.set(e,n)}))},a=function(t){return e.shell?w.some(t):Ig(t,e,"groups")},s=e.shell?{behaviours:[ab.config({})],components:[]}:{behaviours:[],components:n};return{uid:e.uid,dom:e.dom,components:s.components,behaviours:Up(e.toolbarBehaviours,s.behaviours),apis:{setGroups:o},domModification:{attributes:{role:"group"}}}},mR=Qg({name:"Toolbar",configFields:dR(),partFields:pR(),factory:gR,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),vR=function(e,t){var n={len:0,list:[]},r=X(e,(function(e,n){var r=t(n,e.len);return r.fold(o(e),(function(t){return{len:t.finish(),list:e.list.concat([t])}}))}),n);return r.list},yR=zo("within","extra","withinWidth"),bR=function(e,t,n){var r=vR(e,(function(e,t){var r=n(e);return w.some({element:o(e),start:o(t),finish:o(t+r),width:o(r)})})),i=G(r,(function(e){return e.finish()<=t})),a=Y(i,(function(e,t){return e+t.width()}),0),s=r.slice(i.length);return{within:o(i),extra:o(s),withinWidth:o(a)}},_R=function(e){return H(e,(function(e){return e.element()}))},wR=function(e,t,n){var r=_R(e.concat(t));return yR(r,[],n)},xR=function(e,t,n,r){var i=_R(e).concat([n]);return yR(i,_R(t),r)},OR=function(e,t,n){return yR(_R(e),[],n)},SR=function(e,t,n){var r=bR(t,e,n);return 0===r.extra().length?w.some(r):w.none()},CR=function(e,t,n,r){var i=SR(e,t,n).getOrThunk((function(){return bR(t,e-n(r),n)})),o=i.within(),a=i.extra(),s=i.withinWidth();return 1===a.length&&a[0].width()<=n(r)?wR(o,a,s):a.length>=1?xR(o,a,r,s):OR(o,a,s)},kR=function(e,t){var n=H(t,(function(e){return ul(e)}));mR.setGroups(e,n)},ER=function(e,t){return e.bind((function(e){return Ec(e.element()).bind((function(t){return e.getSystem().getByDom(t).toOption()}))})).orThunk((function(){return t.filter(vb.isFocused)}))},AR=function(e,t,n,r){var i=jg(e,t,"primary"),o=Ig(e,t,"overflow-button"),a=KE.getCoupled(e,"overflowGroup");$s(i.element(),"visibility","hidden");var s=ER(n,o);n.each((function(e){mR.setGroups(e,[])}));var l=t.builtGroups.get();kR(i,l.concat([a]));var u=Sl(i.element()),c=CR(u,l,(function(e){return Sl(e.element())}),a);0===c.extra().length?(ab.remove(i,a),n.each((function(e){mR.setGroups(e,[])}))):(kR(i,c.within()),n.each((function(e){kR(e,c.extra())}))),Ws(i.element(),"visibility"),Ks(i.element()),n.each((function(e){o.each((function(t){return Nb.set(t,r(e))})),s.each(vb.focus)}))},TR=o([pn("items"),gu(["itemSelector"]),zp("tgroupBehaviours",[Xy])]),DR=o([wg({name:"items",unit:"item"})]),MR=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:Up(e.tgroupBehaviours,[Xy.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},PR=Qg({name:"ToolbarGroup",configFields:TR(),partFields:DR(),factory:MR}),IR=o([zp("splitToolbarBehaviours",[KE]),Un("builtGroups",(function(){return Hn([])}))]),jR=function(e,t,n,r,i){var o="alloy.toolbar.toggle",a=function(t,n){var r=H(n,t.getSystem().build);e.builtGroups.set(r)},s=function(e,t){a(e,t),i.apis.refresh(e)},l=function(t){return Ig(t,e,"overflow-button")};return{uid:e.uid,dom:e.dom,components:t,behaviours:Up(e.splitToolbarBehaviours,[KE.config({others:h(h({},i.coupling),{overflowGroup:function(e){return PR.sketch(h(h({},r["overflow-group"]()),{items:[j_.sketch(h(h({},r["overflow-button"]()),{action:function(t){ro(e,o)}}))]}))}})}),lb("toolbar-toggle-events",[Eo(o,(function(e){i.apis.toggle(e)}))])]),apis:h({setGroups:s,getMoreButton:function(e){return l(e)}},i.apis),domModification:{attributes:{role:"group"}}}},LR=o([gu(["overflowToggledClass"]),pn("getAnchor"),Tn("getOverflowBounds"),pn("lazySink")].concat(IR())),NR=o([yg({factory:mR,schema:dR(),name:"primary"}),bg({factory:mR,schema:dR(),name:"overflow",overrides:function(e){return{toolbarBehaviours:cc([Xy.config({mode:"cyclic",onEscape:function(t){return Ig(t,e,"overflow-button").each(vb.focus),w.none()}})])}}}),bg({name:"overflow-button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:cc([Nb.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),bg({name:"overflow-group"})]),RR=function(e,t,n){var r=KE.getCoupled(e,"sandbox");ip.isOpen(r)?ip.close(r):ip.open(r,n.overflow())},BR=function(e){return e.getSystem().isConnected()},$R=function(e,t,n){var r=t.lazySink(e).getOrDie(),i=t.getAnchor(e),o=t.getOverflowBounds.map((function(e){return e()}));Sh.positionWithinBounds(r,i,n,o)},FR=function(e,t){var n=ip.getState(KE.getCoupled(e,"sandbox"));AR(e,t,n,BR),n.each((function(n){return $R(e,t,n)}))},zR=function(e,t){var n=ip.getState(KE.getCoupled(e,"sandbox"));n.each((function(n){return $R(e,t,n)}))},qR=function(e,t){var n=Kl(),r=function(r,i){FR(e,t),Ig(e,t,"overflow-button").each((function(e){Nb.on(e),n.link(e.element())})),Xy.focusIn(i)},i=function(){Ig(e,t,"overflow-button").each((function(e){Nb.off(e),vb.focus(e),n.unlink(e.element())}))};return{dom:{tag:"div",attributes:{id:n.id()}},behaviours:cc([Xy.config({mode:"special",onEscape:function(e){return ip.close(e),w.some(!0)}}),ip.config({onOpen:r,onClose:i,isPartOf:function(t,n,r){return Yl(n,r)||Yl(e,r)},getAttachPoint:function(){return t.lazySink(e).getOrDie()}}),_c.config({channels:h({},fp({isExtraPart:o(!1),doReposition:function(){return zR(e,t)}}))})])}},UR=function(e,t,n,r){return jR(e,t,n,r,{coupling:{sandbox:function(t){return qR(t,e)}},apis:{refresh:function(t){return FR(t,e)},toggle:function(t){return RR(t,e,r)},getOverflow:function(e){return ip.getState(KE.getCoupled(e,"sandbox"))},reposition:function(t){return zR(t,e)}}})},HR=Qg({name:"SplitFloatingToolbar",configFields:LR(),partFields:NR(),factory:UR,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},getMoreButton:function(e,t){return e.getMoreButton(t)},getOverflow:function(e,t){return e.getOverflow(t)},toggle:function(e,t){e.toggle(t)}}}),VR=function(e,t){return t.getAnimationRoot.fold((function(){return e.element()}),(function(t){return t(e)}))},WR=function(e){return e.dimension.property},KR=function(e,t){return e.dimension.getDimension(t)},GR=function(e,t){var n=VR(e,t);Ls(n,[t.shrinkingClass,t.growingClass])},YR=function(e,t){Ps(e.element(),t.openClass),Ds(e.element(),t.closedClass),$s(e.element(),WR(t),"0px"),Ks(e.element())},XR=function(e,t){Ps(e.element(),t.closedClass),Ds(e.element(),t.openClass),Ws(e.element(),WR(t))},ZR=function(e,t,n,r){n.setCollapsed(),$s(e.element(),WR(t),KR(t,e.element())),Ks(e.element()),GR(e,t),YR(e,t),t.onStartShrink(e),t.onShrunk(e)},QR=function(e,t,n,r){var i=r.getOrThunk((function(){return KR(t,e.element())}));n.setCollapsed(),$s(e.element(),WR(t),i),Ks(e.element());var o=VR(e,t);Ps(o,t.growingClass),Ds(o,t.shrinkingClass),YR(e,t),t.onStartShrink(e)},JR=function(e,t,n){var r=KR(t,e.element()),i="0px"===r?ZR:QR;i(e,t,n,w.some(r))},eB=function(e,t,n){var r=VR(e,t),i=Is(r,t.shrinkingClass),o=KR(t,e.element());XR(e,t);var a=KR(t,e.element()),s=function(){$s(e.element(),WR(t),o),Ks(e.element())},l=function(){YR(e,t)},u=i?s:l;u(),Ps(r,t.shrinkingClass),Ds(r,t.growingClass),XR(e,t),$s(e.element(),WR(t),a),n.setExpanded(),t.onStartGrow(e)},tB=function(e,t,n){if(n.isExpanded()){Ws(e.element(),WR(t));var r=KR(t,e.element());$s(e.element(),WR(t),r)}},nB=function(e,t,n){n.isExpanded()||eB(e,t,n)},rB=function(e,t,n){n.isExpanded()&&JR(e,t,n)},iB=function(e,t,n){n.isExpanded()&&ZR(e,t,n)},oB=function(e,t,n){return n.isExpanded()},aB=function(e,t,n){return n.isCollapsed()},sB=function(e,t,n){var r=VR(e,t);return!0===Is(r,t.growingClass)},lB=function(e,t,n){var r=VR(e,t);return!0===Is(r,t.shrinkingClass)},uB=function(e,t,n){return!0===sB(e,t)||!0===lB(e,t)},cB=function(e,t,n){var r=n.isExpanded()?JR:eB;r(e,t,n)},fB=Object.freeze({refresh:tB,grow:nB,shrink:rB,immediateShrink:iB,hasGrown:oB,hasShrunk:aB,isGrowing:sB,isShrinking:lB,isTransitioning:uB,toggleGrow:cB,disableTransitions:GR}),dB=function(e,t){var n=t.expanded;return rs(n?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:Ke(t.dimension.property,"0px")})},hB=function(e,t){return Oo([No(Ai(),(function(n,r){var i=r.event().raw();if(i.propertyName===e.dimension.property){GR(n,e),t.isExpanded()&&Ws(n.element(),e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},pB=Object.freeze({exhibit:dB,events:hB}),gB=[pn("closedClass"),pn("openClass"),pn("shrinkingClass"),pn("growingClass"),Cn("getAnimationRoot"),vu("onShrunk"),vu("onStartShrink"),vu("onGrown"),vu("onStartGrow"),In("expanded",!1),gn("dimension",rn("property",{width:[wu("property","width"),wu("getDimension",(function(e){return Sl(e)+"px"}))],height:[wu("property","height"),wu("getDimension",(function(e){return hl(e)+"px"}))]}))],mB=function(e){var t=Hn(e.expanded),n=function(){return"expanded: "+t.get()};return Qa({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:s(t.set,!1),setExpanded:s(t.set,!0),readState:n})},vB=Object.freeze({init:mB}),yB=dc({fields:gB,name:"sliding",active:pB,apis:fB,state:vB}),bB=o([gu(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),vu("onOpened"),vu("onClosed")].concat(IR())),_B=o([yg({factory:mR,schema:dR(),name:"primary"}),yg({factory:mR,schema:dR(),name:"overflow",overrides:function(e){return{toolbarBehaviours:cc([yB.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Ig(t,e,"overflow-button").each((function(e){Nb.off(e),vb.focus(e)})),e.onClosed(t)},onGrown:function(t){Xy.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Ig(t,e,"overflow-button").each(Nb.on)}}),Xy.config({mode:"acyclic",onEscape:function(t){return Ig(t,e,"overflow-button").each(vb.focus),w.some(!0)}})])}}}),bg({name:"overflow-button",overrides:function(e){return{buttonBehaviours:cc([Nb.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),bg({name:"overflow-group"})]),wB=function(e,t){Ig(e,t,"overflow").each((function(n){OB(e,t),yB.toggleGrow(n)}))},xB=function(e){return yB.hasGrown(e)},OB=function(e,t){var n=Ig(e,t,"overflow");AR(e,t,n,xB),n.each(yB.refresh)},SB=function(e,t,n,r){return jR(e,t,n,r,{coupling:{},apis:{refresh:function(t){return OB(t,e)},toggle:function(t){return wB(t,e)},getOverflow:function(t){return Ig(t,e,"overflow")}}})},CB=Qg({name:"SplitSlidingToolbar",configFields:bB(),partFields:_B(),factory:SB,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},getMoreButton:function(e,t){return e.getMoreButton(t)},getOverflow:function(e,t){return e.getOverflow(t)},toggle:function(e,t){e.toggle(t)}}}),kB="silver.readonly",EB=Nt([bn("readonly")]),AB=function(e,t){ei("*",e.element()).forEach((function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(rO)&&rO.set(e,t)}))}))},TB=function(e,t){var n=e.outerContainer,r=n.element();t&&(e.mothership.broadcastOn([op()],{target:r}),e.uiMothership.broadcastOn([op()],{target:r})),e.mothership.broadcastOn([kB],{readonly:t}),e.uiMothership.broadcastOn([kB],{readonly:t})},DB=function(e,t){var n=e.outerContainer;TB(e,t),ei("*",n.element()).forEach((function(e){n.getSystem().getByDom(e).each((function(e){e.hasConfigured(rO)&&rO.set(e,t)}))}))},MB=function(e,t){e.on("init",(function(){e.readonly&&DB(t,!0)})),e.on("SwitchMode",(function(){return DB(t,e.readonly)})),bk(e)&&e.setMode("readonly")},PB=function(e){var t;return _c.config({channels:(t={},t[kB]={schema:EB,onReceive:function(t,n){e(t).each((function(e){AB(e,n.readonly)}))}},t)})},IB=o(Ma("toolbar-height-change")),jB=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:h({tag:"div",classes:["tox-toolbar__group"]},t),components:[PR.parts().items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:cc([LE.config({}),vb.config({})])}},LB=function(e){return PR.sketch(jB(e))},NB=function(e,t,n){var r=Ro((function(t){var n=H(e.initGroups,LB);mR.setGroups(t,n)}));return cc([Xy.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),lb("toolbar-events",[r]),PB(n)])},RB=function(e,t){var n=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":jB({title:w.none(),items:[]}),"overflow-button":NI({name:"more",icon:w.some("more-drawer"),disabled:!1,tooltip:w.some("More..."),primary:!1,borderless:!1},w.none(),e.backstage.shared.providers)},splitToolbarBehaviours:NB(e,n,t)}},BB=function(e){var t=RB(e,HR.getOverflow),n=4,r=HR.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return HR.sketch(h(h({},t),{lazySink:e.getSink,getAnchor:function(){return e.backstage.shared.anchors.toolbarOverflow()},getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element(),r=Fl(t),i=Yo(t),o=Fl(i);return Bl(r.x()+n,o.y(),r.width()-2*n,o.height())},parts:h(h({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"]}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},$B=function(e){var t=CB.parts().primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=CB.parts().overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=RB(e,CB.getOverflow);return CB.sketch(h(h({},r),{components:[t,n],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:function(e){e.getSystem().broadcastOn([IB()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([IB()],{type:"closed"})}}))},FB=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return mR.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"]},components:[mR.parts().groups({})],toolbarBehaviours:NB(e,t,o(w.none()))})},zB=[Bn("disabled",!1),An("tooltip"),An("icon"),An("text"),$n("onSetup",(function(){return n}))],qB=Nt([vn("type"),_n("onAction")].concat(zB)),UB=function(e){return Qt("toolbarbutton",qB,e)},HB=[An("text"),An("tooltip"),An("icon"),_n("fetch"),$n("onSetup",(function(){return n}))],VB=Nt(g([vn("type")],HB)),WB=function(e){return Qt("menubutton",VB,e)},KB=Nt([vn("type"),An("tooltip"),An("icon"),An("text"),Tn("select"),_n("fetch"),$n("onSetup",(function(){return n})),Rn("presets","normal",["normal","color","listpreview"]),In("columns",1),_n("onAction"),_n("onItemAction")]),GB=function(e){return Qt("SplitButton",KB,e)},YB=[Bn("active",!1)].concat(zB),XB=Nt(YB.concat([vn("type"),_n("onAction")])),ZB=function(e){return Qt("ToggleButton",XB,e)},QB=[$n("predicate",(function(){return!1})),Rn("scope","node",["node","editor"]),Rn("position","selection",["node","selection","line"])],JB=zB.concat([In("type","contextformbutton"),In("primary",!1),_n("onAction"),Un("original",a)]),e$=YB.concat([In("type","contextformbutton"),In("primary",!1),_n("onAction"),Un("original",a)]),t$=zB.concat([In("type","contextformbutton")]),n$=YB.concat([In("type","contextformtogglebutton")]),r$=rn("type",{contextformbutton:JB,contextformtogglebutton:e$}),i$=Nt([In("type","contextform"),$n("initValue",(function(){return""})),An("label"),Sn("commands",r$),kn("launch",rn("type",{contextformbutton:t$,contextformtogglebutton:n$}))].concat(QB)),o$=Nt([In("type","contexttoolbar"),vn("items")].concat(QB)),a$=function(e){return Qt("ContextToolbar",o$,e)},s$=function(e){return Qt("ContextForm",i$,e)},l$=function(e,t,n){return n},u$=Object.freeze({getState:l$}),c$=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=H(i,n.getSystem().build);Th(n,o)}))};return Oo([Eo(ji(),(function(t,r){var i=e.channel;F(r.channels(),i)&&n(t,r.data())})),Ro((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},f$=Object.freeze({events:c$}),d$=function(e){var t=Hn(w.none()),n=function(e){return t.set(e)},r=function(){return t.set(w.none())},i=function(){return t.get()},o=function(){return t.get().fold((function(){return"none"}),(function(e){return e}))};return{readState:o,get:i,set:n,clear:r}},h$=Object.freeze({init:d$}),p$=[pn("channel"),Cn("renderComponents"),Cn("updateState"),Cn("initialData")],g$=dc({fields:p$,name:"reflecting",active:f$,apis:u$,state:h$}),m$=o([pn("toggleClass"),pn("fetch"),bu("onExecute"),In("getHotspot",w.some),In("getAnchorOverrides",o({})),In("layouts",w.none()),bu("onItemExecute"),Cn("lazySink"),pn("dom"),vu("onOpen"),zp("splitDropdownBehaviours",[KE,Xy,vb]),In("matchWidth",!1),In("useMinWidth",!1),In("eventOrder",{}),Cn("role")].concat(sA())),v$=yg({factory:j_,schema:[pn("dom")],name:"arrow",defaults:function(e){return{buttonBehaviours:cc([vb.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(oo)},buttonBehaviours:cc([Nb.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),y$=yg({factory:j_,schema:[pn("dom")],name:"button",defaults:function(e){return{buttonBehaviours:cc([vb.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),b$=o([v$,y$,_g({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[pn("text")],name:"aria-descriptor"}),bg({schema:[pu()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),YE()]),_$=function(e,t,r,i){var o=function(e){rm.getCurrent(e).each((function(e){Om.highlightFirst(e),Xy.focusIn(e)}))},a=function(t){var r=o;tA(e,(function(e){return e}),t,i,r,cE.HighlightFirst).get(n)},s=function(e){return a(e),w.some(!0)},l=function(t){var n=jg(t,e,"button");return oo(n),w.some(!0)},u=ke(Oo([Ro((function(t,n){var r=Ig(t,e,"aria-descriptor");r.each((function(e){var n=Ma("aria");ya(e.element(),"id",n),ya(t.element(),"aria-describedby",n)}))}))]),P_(w.some(a))),c={repositionMenus:function(e){Nb.isOn(e)&&aA(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:c,eventOrder:h(h({},e.eventOrder),{"alloy.execute":["disabling","toggling","alloy.base.behaviour"]}),events:u,behaviours:Up(e.splitDropdownBehaviours,[KE.config({others:{sandbox:function(t){var n=jg(t,e,"arrow"),r={onOpen:function(){Nb.on(n),Nb.on(t)},onClose:function(){Nb.off(n),Nb.off(t)}};return oA(e,t,r)}}}),Xy.config({mode:"special",onSpace:l,onEnter:l,onDown:s}),vb.config({}),Nb.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},w$=Qg({name:"SplitDropdown",configFields:m$(),partFields:b$(),factory:_$,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),x$=function(e){return{isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},O$=function(e){return{setActive:function(t){Nb.set(e,t)},isActive:function(){return Nb.isOn(e)},isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)}}},S$=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},C$=Ma("focus-button"),k$=["checklist","ordered-list"],E$=["indent","outdent","table-insert-column-after","table-insert-column-before","unordered-list"],A$=function(e,t,n,r,i,o){var a,s=function(e){return lx.isRtl()&&F(k$,e)?e+"-rtl":e},l=lx.isRtl()&&e.exists((function(e){return F(E$,e)}));return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]).concat(l?["tox-tbtn__icon-rtl"]:[]),attributes:S$(n,o)},components:gO([e.map((function(e){return hI(s(e),o.icons)})),t.map((function(e){return gI(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[mi()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:cc([lb("common-button-display-events",[Eo(mi(),(function(e,t){t.event().prevent(),ro(e,C$)}))])].concat(r.map((function(n){return g$.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return gO([e.icon.map((function(e){return hI(s(e),o.icons)})),e.text.map((function(e){return gI(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},T$=function(e,t,r){var i=Hn(n),o=A$(e.icon,e.text,e.tooltip,w.none(),w.none(),r);return j_.sketch({dom:o.dom,components:o.components,eventOrder:yI,buttonBehaviours:cc([lb("toolbar-button-events",[vI({onAction:e.onAction,getApi:t.getApi}),cO(t,i),fO(t,i)]),lO.toolbarButton(e.disabled)].concat(t.toolbarButtonBehaviours))})},D$=function(e,t){return M$(e,t,[])},M$=function(e,t,n){return T$(e,{toolbarButtonBehaviours:[].concat(n.length>0?[lb("toolbarButtonWith",n)]:[]),getApi:x$,onSetup:e.onSetup},t)},P$=function(e,t){return I$(e,t,[])},I$=function(e,t,n){return Ce(T$(e,{toolbarButtonBehaviours:[ab.config({}),Nb.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[lb("toolbarToggleButtonWith",n)]:[]),getApi:O$,onSetup:e.onSetup},t))},j$=function(e,t,n){return function(r){return bE.nu((function(e){return t.fetch(e)})).map((function(i){return w.from(CC(Ce(tC(Ma("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,dO.CLOSE_ON_EXECUTE,t.select.getOr((function(){return!1})),n),{movement:rC(t.columns,t.presets),menuBehaviours:Ww.unnamedEvents("auto"!==t.columns?[]:[Ro((function(e,n){Uw(e,4,xx(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Xy.setGridSize(e,n,r)}))}))])})))}))}},L$=function(e,t){var r,i=Ma("channel-update-split-dropdown-display"),o=function(e){return{isDisabled:function(){return rO.isDisabled(e)},setDisabled:function(t){return rO.set(e,t)},setIconFill:function(t,n){Hl(e.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ya(e,"fill",n)}))},setIconStroke:function(t,n){Hl(e.element(),'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){ya(e,"stroke",n)}))},setActive:function(t){ya(e.element(),"aria-pressed",t),Hl(e.element(),"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return Nb.set(e,t)}))}))},isActive:function(){return Hl(e.element(),"span").exists((function(t){return e.getSystem().getByDom(t).exists(Nb.isOn)}))}}},a=Hn(n),s={getApi:o,onSetup:e.onSetup};return w$.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:ke({"aria-pressed":!1},S$(e.tooltip,t.providers))},onExecute:function(t){e.onAction(o(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:cc([lO.splitButton(!1),lb("split-dropdown-events",[Eo(C$,vb.focus),cO(s,a),fO(s,a)]),gA.config({})]),eventOrder:(r={},r[Ki()]=["alloy.base.behaviour","split-dropdown-events"],r),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:j$(o,e,t.providers),parts:{menu:YS(!1,e.columns,e.presets)},components:[w$.parts().button(A$(e.icon,e.text,w.none(),w.some(i),w.some([Nb.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),w$.parts().arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:R_("chevron-down",t.providers.icons)}}),w$.parts()["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},N$=function(e){return{hide:function(){return ro(e,Fi())},getValue:function(){return Fp.getValue(e)}}},R$=function(e,t){return Eo(mI,(function(n,r){var i=e.get(n),o=N$(i);t.onAction(o,r.event().buttonApi())}))},B$=function(e,t,n){var r=t.original,i=(r.primary,p(r,["primary"])),o=Jt(UB(h(h({},i),{type:"button",onAction:function(){}})));return M$(o,n.backstage.shared.providers,[R$(e,t)])},$$=function(e,t,n){var r=t.original,i=(r.primary,p(r,["primary"])),o=Jt(ZB(h(h({},i),{type:"togglebutton",onAction:function(){}})));return I$(o,n.backstage.shared.providers,[R$(e,t)])},F$=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?$$(e,t,r):B$(e,t,r)},z$=function(e,t,n){var r=H(t,(function(t){return L_(F$(e,t,n))})),i=function(){return H(r,(function(e){return e.asSpec()}))},o=function(e){return Ql(t,(function(t,n){return t.primary?w.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(l(rO.isDisabled)):w.none()}))};return{asSpecs:i,findPrimary:o}},q$=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=L_(sE.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:cc([Xy.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return oo(e),!0}))},onLeft:function(e,t){return t.cut(),w.none()},onRight:function(e,t){return t.cut(),w.none()}})])})),i=z$(r,e.commands,t.shared.providers);return FB({uid:Ma("context-toolbar"),initGroups:[{title:w.none(),items:[r.asSpec()]},{title:w.none(),items:i.asSpecs()}],onEscape:w.none,cyclicKeying:!0,backstage:t,getSink:function(){return C.error("")}})},U$={renderContextForm:q$},H$=function(e,t){var n=Math.max(t.x(),e.x()),r=e.right()-n,i=t.width()-(n-t.x()),o=Math.min(r,i);return{x:n,width:o}},V$=function(e,t,n){var r=H$(t,n),i=r.x,o=r.width,a=Xn.fromDom(e.getContainer()),s=Hl(a,".tox-editor-header").getOr(a),l=$l(a),u=$l(s),c=Math.max(n.y(),t.y(),u.bottom()),f=l.bottom()-c,d=n.height()-(c-n.y()),h=Math.min(f,d);return Bl(i,c,o,h)},W$=function(e,t,n){var r=H$(t,n),i=r.x,o=r.width,a=Xn.fromDom(e.getContainer()),s=Hl(a,".tox-editor-header").getOr(a),l=$l(s),u=n.height(),c=n.y();if(l.y()>=t.bottom()){var f=Math.min(u+c,l.y()),d=f-c;return Bl(i,c,o,d)}var h=Math.max(c,l.bottom());d=u-(h-c);return Bl(i,h,o,d)},K$=function(e,t,n){var r=H$(t,n),i=r.x,o=r.width;return Bl(i,n.y(),o,n.height())},G$=function(e,n){var r=Tl(t.window),i=$l(Xn.fromDom(e.getContentAreaContainer()));return e.inline&&!n?w.some(K$(e,i,r)):e.inline?w.some(W$(e,i,r)):w.some(V$(e,i,r))},Y$=function(e,t,n){var r=e.dom(),i=P(n)?n:o(!1);while(r.parentNode){r=r.parentNode;var a=Xn.fromDom(r),s=t(a);if(s.isSome())return s;if(i(a))break}return w.none()},X$=function(e,t){return Ql(t,(function(t){return t.predicate(e.dom())?w.some({toolbarApi:t,elem:e}):w.none()}))},Z$=function(e,t){var n=function(e){return e.dom()===t.getBody()},r=Xn.fromDom(t.selection.getNode());return X$(r,e.inNodeScope).orThunk((function(){return X$(r,e.inEditorScope).orThunk((function(){return Y$(r,(function(t){return X$(t,e.inNodeScope)}),n)}))}))},Q$={lookup:Z$},J$=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var l=Jt(s$(s));n[e]=l,l.launch.map((function(n){o["form:"+e]=h(h({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(l)}})})),"editor"===l.scope?i.push(l):r.push(l),a[e]=l},l=function(e,t){a$(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},u=ue(e);return V(u,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&l(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},eF={categorise:J$},tF=Ma("forward-slide"),nF=Ma("backward-slide"),rF=Ma("change-slide-event"),iF="tox-pop--resizing",oF=function(e){var t=Hn([]);return __.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),__.getContent(e).each((function(e){Ws(e.element(),"visibility")})),Ps(e.element(),iF),Ws(e.element(),"width")},inlineBehaviours:cc([lb("context-toolbar-events",[No(Ai(),(function(e,t){__.getContent(e).each((function(e){})),Ps(e.element(),iF),Ws(e.element(),"width")})),Eo(rF,(function(e,t){Ws(e.element(),"width");var n=Sl(e.element());__.setContent(e,t.event().contents()),Ds(e.element(),iF);var r=Sl(e.element());$s(e.element(),"width",n+"px"),__.getContent(e).each((function(n){t.event().focus().bind((function(t){return Oc(t),Ec(e.element())})).orThunk((function(){return Xy.focusIn(n),kc()}))})),U_.setTimeout((function(){$s(e.element(),"width",r+"px")}),0)})),Eo(tF,(function(e,n){__.getContent(e).each((function(e){t.set(t.get().concat([{bar:e,focus:kc()}]))})),io(e,rF,{contents:n.event().forwardContents(),focus:w.none()})})),Eo(nF,(function(e,n){se(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),io(e,rF,{contents:ul(n.bar),focus:n.focus})}))}))]),Xy.config({mode:"special",onEscape:function(n){return se(t.get()).fold((function(){return e.onEscape()}),(function(e){return ro(n,nF),w.some(!0)}))}})]),lazySink:function(){return C.value(e.sink)}})},aF=function(e,t){return function(n){var r=Hn(w.none()),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive).unbind;r.set(w.some(i))};return e.initialized?i():e.on("init",i),function(){return r.get().each((function(e){return e()}))}}},sF=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},lF=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return w.some({type:"separator",text:s});if("submenu"===e.type){var l=ee(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&l.length<=0?w.none():w.some({type:"nestedmenuitem",text:s,disabled:l.length<=0,getSubmenuItems:function(){return ee(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return w.some(h({type:"togglemenuitem",text:s,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return ee(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n){var r=t(),i=o(r),a=MI(i,dO.CLOSE_ON_EXECUTE,e,!1);n(a)}};return{validateItems:o,getFetch:a}},uF=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return H(r.data,(function(e){return mN(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:lF(e,t,n),getStyleItems:i}},cF=function(e,t,r){var i=uF(e,t,r),o=i.items,a=i.getStyleItems,s=function(e){return{getComponent:function(){return e}}},l=function(t){return r.setInitialValue.each((function(e){return e(t.getComponent())})),r.nodeChangeHandler.map((function(n){var r=n(t.getComponent());return e.on("NodeChange",r),function(){e.off("NodeChange",r)}})).getOr(n)};return wI({text:r.icon.isSome()?w.none():w.some(""),icon:r.icon,tooltip:w.from(r.tooltip),role:w.none(),fetch:o.getFetch(t,a),onSetup:l,getApi:s,columns:1,presets:"normal",classes:r.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},fF=function(e){return H(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},dF=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(Nj||(Nj={}));var hF,pF=function(e,t){return t===Nj.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},gF=function(e,t,n,r){var i=We(e.settings,t).getOr(n),o=fF(pF(i,r));return{type:"basic",data:o}},mF=[{title:"Left",icon:"align-left",format:"alignleft"},{title:"Center",icon:"align-center",format:"aligncenter"},{title:"Right",icon:"align-right",format:"alignright"},{title:"Justify",icon:"align-justify",format:"alignjustify"}],vF=function(e){var t=function(){return Z(mF,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return function(){return w.none()}},i=function(e){var n=t(),r=n.fold((function(){return"left"}),(function(e){return e.title.toLowerCase()}));io(e,_I,{icon:"align-"+r})},a=w.some((function(e){return function(){return i(e)}})),s=w.some((function(e){return i(e)})),l=dF(mF);return{tooltip:"Align",icon:w.some("align-left"),isSelectedFor:n,getCurrentValue:o(w.none()),getPreviewFor:r,onAction:sF(e),setInitialValue:s,nodeChangeHandler:a,dataset:l,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},yF=function(e,t){return cF(e,t,vF(e))},bF=function(e,t){var n=uF(e,t,vF(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},_F="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",wF=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],xF=function(e){var t=e.split(/\s*,\s*/);return H(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},OF=function(e){var t=function(){var t=xF(e.toLowerCase());return te(wF,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},SF=function(e){var t=function(){var t=function(e){return e?xF(e)[0]:""},n=e.queryCommandValue("FontName"),r=u.data,i=n?n.toLowerCase():"",o=Z(r,(function(e){var n=e.format;return n.toLowerCase()===i||t(n).toLowerCase()===t(i).toLowerCase()})).orThunk((function(){return OF(i)?w.from({title:"System Font",format:i}):w.none()}));return{matchOpt:o,font:n}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=function(e){return function(){return w.some({tag:"div",styleAttr:-1===e.indexOf("dings")?"font-family:"+e:""})}},o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.font,o=r.fold((function(){return i}),(function(e){return e.title}));io(e,bI,{text:o})},s=w.some((function(e){return function(){return a(e)}})),l=w.some((function(e){return a(e)})),u=gF(e,"font_formats",_F,Nj.SemiColon);return{tooltip:"Fonts",icon:w.none(),isSelectedFor:n,getCurrentValue:r,getPreviewFor:i,onAction:o,setInitialValue:l,nodeChangeHandler:s,dataset:u,shouldHide:!1,isInvalid:function(){return!1}}},CF=function(e,t){return cF(e,t,SF(e))},kF=function(e,t){var n=uF(e,t,SF(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},EF="8pt 10pt 12pt 14pt 18pt 24pt 36pt",AF={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},TF=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},DF=function(e,t){return/[0-9.]+px$/.test(e)?TF(72*parseInt(e,10)/96,t||0)+"pt":e},MF=function(e){return ve(AF,e).getOr("")},PF=function(e){var t=function(){var t=w.none(),n=c.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=DF(r,e),o=MF(i);t=Z(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,px:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=o(o(w.none())),a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},s=function(e){var n=t(),r=n.matchOpt,i=n.px,o=r.fold((function(){return i}),(function(e){return e.title}));io(e,bI,{text:o})},l=w.some((function(e){return function(){return s(e)}})),u=w.some((function(e){return s(e)})),c=gF(e,"fontsize_formats",EF,Nj.Space);return{tooltip:"Font sizes",icon:w.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:a,setInitialValue:u,nodeChangeHandler:l,dataset:c,shouldHide:!1,isInvalid:function(){return!1}}},IF=function(e,t){return cF(e,t,PF(e))},jF=function(e,t){var n=uF(e,t,PF(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},LF=function(e,t,n){var r=t();return Ql(n,(function(t){return Z(r,(function(n){return e.formatter.matchNode(t,n.format)}))})).orThunk((function(){return e.formatter.match("p")?w.some({title:"Paragraph",format:"p"}):w.none()}))},NF=function(e){var t=e.selection.getStart(!0)||e.getBody();return e.dom.getParents(t,(function(){return!0}),e.getBody())},RF="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",BF=function(e){var t=function(t){return LF(e,(function(){return l.data}),t)},n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styleAttr:e.formatter.getCssText(t)})}},i=function(e,n){var r=t(e),i=r.fold((function(){return"Paragraph"}),(function(e){return e.title}));io(n,bI,{text:i})},a=w.some((function(e){return function(t){return i(t.parents,e)}})),s=w.some((function(t){var n=NF(e);i(n,t)})),l=gF(e,"block_formats",RF,Nj.SemiColon);return{tooltip:"Blocks",icon:w.none(),isSelectedFor:n,getCurrentValue:o(w.none()),getPreviewFor:r,onAction:sF(e),setInitialValue:s,nodeChangeHandler:a,dataset:l,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},$F=function(e,t){return cF(e,t,BF(e))},FF=function(e,t){var n=uF(e,t,BF(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},zF=function(e,t){var n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?w.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styleAttr:e.formatter.getCssText(t)}):w.none()}},i=function(t,n){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?ee(t,r):[{title:e.title,format:e.format}]},i=ee(gN(e),r),o=LF(e,(function(){return i}),t),a=o.fold((function(){return"Paragraph"}),(function(e){return e.title}));io(n,bI,{text:a})},a=w.some((function(e){return function(t){return i(t.parents,e)}})),s=w.some((function(t){var n=NF(e);i(n,t)}));return{tooltip:"Formats",icon:w.none(),isSelectedFor:n,getCurrentValue:o(w.none()),getPreviewFor:r,onAction:sF(e),setInitialValue:s,nodeChangeHandler:a,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},qF=function(e,t){var n=h({type:"advanced"},t.styleselect);return cF(e,t,zF(e,n))},UF=function(e,t){var n=h({type:"advanced"},t.styleselect),r=uF(e,t,zF(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},HF=[{name:"history",items:["undo","redo"]},{name:"styles",items:["styleselect"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],VF=function(e,t){return function(n,r){var i=e(n).mapError((function(e){return tn(e)})).getOrDie();return t(i,r)}},WF={button:VF(UB,(function(e,t){return D$(e,t.backstage.shared.providers)})),togglebutton:VF(ZB,(function(e,t){return P$(e,t.backstage.shared.providers)})),menubutton:VF(WB,(function(e,t){return II(e,"tox-tbtn",t.backstage,w.none())})),splitbutton:VF(GB,(function(e,t){return L$(e,t.backstage.shared)})),styleSelectButton:function(e,t){return qF(e,t.backstage)},fontsizeSelectButton:function(e,t){return IF(e,t.backstage)},fontSelectButton:function(e,t){return CF(e,t.backstage)},formatButton:function(e,t){return $F(e,t.backstage)},alignMenuButton:function(e,t){return yF(e,t.backstage)}},KF=function(e,n){return ve(WF,e.type).fold((function(){return t.console.error("skipping button defined by",e),w.none()}),(function(t){return w.some(t(e,n))}))},GF={styleselect:WF.styleSelectButton,fontsizeselect:WF.fontsizeSelectButton,fontselect:WF.fontSelectButton,formatselect:WF.formatButton,align:WF.alignMenuButton},YF=function(e){var t=H(HF,(function(t){var n=G(t.items,(function(t){return ye(e,t)||ye(GF,t)}));return{name:t.name,items:n}}));return G(t,(function(e){return e.items.length>0}))},XF=function(e){var t=e.split("|");return H(t,(function(e){return{items:e.trim().split(" ")}}))},ZF=function(e){return j(e,(function(e){return ye(e,"name")&&ye(e,"items")}))},QF=function(e){var n=e.toolbar,r=e.buttons;return!1===n?[]:void 0===n||!0===n?YF(r):A(n)?XF(n):ZF(n)?n:(t.console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},JF=function(e,t,n,r,i){return ve(t,n.toLowerCase()).orThunk((function(){return i.bind((function(e){return Ql(e,(function(e){return ve(t,e+n.toLowerCase())}))}))})).fold((function(){return ve(GF,n.toLowerCase()).map((function(t){return t(e,r)})).orThunk((function(){return w.none()}))}),(function(e){return KF(e,r)}))},ez=function(e,t,n,r){var i=QF(t),o=H(i,(function(i){var o=ee(i.items,(function(i){return 0===i.trim().length?[]:JF(e,t.buttons,i,n,r).toArray()}));return{title:w.from(e.translate(i.name)),items:o}}));return G(o,(function(e){return e.items.length>0}))},tz=12,nz={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},rz={maxHeightFunction:ch(),maxWidthFunction:WL()},iz={onLtr:function(){return[Yu,Xu,Ku,Vu,Gu,Wu,D_,M_,A_,k_,T_,E_]},onRtl:function(){return[Yu,Xu,Gu,Wu,Ku,Vu,D_,M_,T_,E_,A_,k_]}},oz={onLtr:function(){return[Xu,Vu,Wu,Ku,Gu,Yu,D_,M_,A_,k_,T_,E_]},onRtl:function(){return[Xu,Wu,Vu,Gu,Ku,Yu,D_,M_,T_,E_,A_,k_]}},az=function(e,t){return"line"===e?{bubble:Dc(tz,0,nz),layouts:{onLtr:function(){return[Zu]},onRtl:function(){return[Qu]}},overrides:rz}:{bubble:Dc(0,tz,nz),layouts:t?oz:iz,overrides:rz}},sz=function(e,t,n,r){var i=Wr().deviceType.isTouch,o=ll(oF({sink:n,onEscape:function(){return e.focus(),w.some(!0)}})),a=Tk(e)||Dk(e)||Pk(e),s=function(){return G$(e,a)},l=function(t){var n=Hl(Xn.fromDom(e.getContainer()),".tox-editor-header").getOrDie(),r="fixed"===qs(n,"position");if(a&&r){var i=n.dom().getBoundingClientRect();if(e.inline)return t.bottom<i.bottom;var o=El(),s=Fl(Xn.fromDom(e.getBody())),l=t.bottom+(s.y()-o.top());return l<i.bottom}return!1},u=function(){if(i()&&r.backstage.isContextMenuOpen())return!0;var t=h.get().map((function(e){return e.getBoundingClientRect()})).getOrThunk((function(){return e.selection.getRng().getBoundingClientRect()})),n=Xo(Xn.fromDom(e.getBody())).dom().innerHeight,o=t.bottom<0,a=t.top>n;return o||a||l(t)},c=function(){__.hide(o)},f=function(){d.get().each((function(e){var t=o.element();Ws(t,"display"),u()?$s(t,"display","none"):Sh.positionWithinBounds(n,e,o,s())}))},d=Hn(w.none()),h=Hn(w.none()),p=Hn(null),g=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:cc([Xy.config({mode:"acyclic"}),lb("pop-dialog-wrap-events",[Ro((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Xy.focusIn(t)}))})),Bo((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},m=Ee((function(){return eF.categorise(t,(function(e){var t=v(e);io(o,tF,{forwardContents:g(t)})}))})),v=function(t){var n=e.ui.registry.getAll().buttons,i=m();return"contexttoolbar"===t.type?function(){var o=ke(n,i.formNavigators),a=ez(e,{buttons:o,toolbar:t.items},r,w.some(["form:"]));return FB({uid:Ma("context-toolbar"),initGroups:a,onEscape:w.none,cyclicKeying:!0,backstage:r.backstage,getSink:function(){return C.error("")}})}():function(){return U$.renderContextForm(t,r.backstage)}()};e.on(cR,(function(t){var n=m();We(n.lookupTable,t.toolbarKey).each((function(n){b(n,t.target===e?w.none():w.some(t)),__.getContent(o).each(Xy.focusIn)}))}));var y=function(e,t){var n="node"===e?r.backstage.shared.anchors.node(t):r.backstage.shared.anchors.cursor();return Ce(n,az(e,i()))},b=function(e,t){if(x(),!i()||!r.backstage.isContextMenuOpen()){var n=v(e),a=t.map(Xn.fromDom),l=y(e.position,a);d.set(w.some(l)),h.set(t);var c=o.element();Ws(c,"display"),__.showWithinBounds(o,l,g(n),s),u()&&$s(c,"display","none")}},_=function(){var t=m();Q$.lookup(t,e).fold((function(){d.set(w.none()),__.hide(o)}),(function(e){b(e.toolbarApi,w.some(e.elem.dom()))}))},x=function(){var e=p.get();null!==e&&(U_.clearTimeout(e),p.set(null))},O=function(e){x(),p.set(e)};e.on("init",(function(){e.on(fR,c),e.on("ScrollContent ScrollWindow longpress",f),e.on("click keyup SetContent ObjectResized ResizeEditor",(function(t){O(U_.setEditorTimeout(e,_,0))})),e.on("focusout",(function(t){U_.setEditorTimeout(e,(function(){Ec(n.element()).isNone()&&Ec(o.element()).isNone()&&(d.set(w.none()),__.hide(o))}),0)})),e.on("SwitchMode",(function(){e.readonly&&(d.set(w.none()),__.hide(o))})),e.on("NodeChange",(function(t){Ec(o.element()).fold((function(){O(U_.setEditorTimeout(e,_,0))}),(function(e){}))}))}))},lz={register:sz},uz=function(e,n,r){var i=RC(Xn.fromDom(t.document),"mousedown",(function(e){V([n,r],(function(t){t.broadcastOn([op()],{target:e.target()})}))})),o=RC(Xn.fromDom(t.document),"touchstart",(function(e){V([n,r],(function(t){t.broadcastOn([op()],{target:e.target()})}))})),a=RC(Xn.fromDom(t.document),"touchmove",(function(e){V([n,r],(function(t){t.broadcastEvent(Ui(),e)}))})),s=RC(Xn.fromDom(t.document),"touchend",(function(e){V([n,r],(function(t){t.broadcastEvent(Hi(),e)}))})),l=RC(Xn.fromDom(t.document),"mouseup",(function(e){0===e.raw().button&&V([n,r],(function(t){t.broadcastOn([sp()],{target:e.target()})}))})),u=function(e){V([n,r],(function(t){t.broadcastOn([op()],{target:Xn.fromDom(e.target)})}))},c=function(e){0===e.button&&V([n,r],(function(t){t.broadcastOn([sp()],{target:Xn.fromDom(e.target)})}))},f=function(e){var t=$C(e);V([n,r],(function(e){e.broadcastEvent(Vi(),t)}))},d=function(e){var t=$C(e);V([n,r],(function(e){e.broadcastOn([ap()],{}),e.broadcastEvent(Wi(),t)}))},h=function(){V([n,r],(function(e){e.broadcastOn([ap()],{})}))};e.on("PostRender",(function(){e.on("mousedown",u),e.on("touchstart",u),e.on("mouseup",c),e.on("ScrollWindow",f),e.on("ResizeWindow",d),e.on("ResizeEditor",h)})),e.on("remove",(function(){e.off("mousedown",u),e.off("touchstart",u),e.off("mouseup",c),e.off("ScrollWindow",f),e.off("ResizeWindow",d),e.off("ResizeEditor",h),i.unbind(),o.unbind(),a.unbind(),s.unbind(),l.unbind()})),e.on("detach",(function(){Bh(n),Bh(r),n.destroy(),r.destroy()}))},cz={setup:uz},fz=o([In("shell",!1),pn("makeItem"),In("setupItem",n),Hp.field("listBehaviours",[ab])]),dz=function(e){return{behaviours:cc([ab.config({})])}},hz=_g({name:"items",overrides:dz}),pz=o([hz]),gz=o("CustomList"),mz=function(e,n,r,i){var o=function(n,r){s(n).fold((function(){throw t.console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(t){var i=ab.contents(t),o=r.length,a=o-i.length,s=a>0?q(a,(function(){return e.makeItem()})):[],l=i.slice(o);V(l,(function(e){return ab.remove(t,e)})),V(s,(function(e){return ab.append(t,e)}));var u=ab.contents(t);V(u,(function(t,i){e.setupItem(n,t,r[i],i)}))}))},a=e.shell?{behaviours:[ab.config({})],components:[]}:{behaviours:[],components:n},s=function(t){return e.shell?w.some(t):Ig(t,e,"items")};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:Up(e.listBehaviours,a.behaviours),apis:{setItems:o}}},vz=Qg({name:gz(),configFields:fz(),partFields:pz(),factory:mz,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),yz=zg,bz=Og,_z=function(e){var t=Hs(e,"position").is("fixed"),n=t?w.none():Qo(e);return n.orThunk((function(){var t=Xn.fromTag("span");ia(e,t);var n=Qo(t);return da(t),n})).map(_l).getOrThunk((function(){return vl(0,0)}))},wz=_e.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),xz=function(e){return function(t){return t.translate(-e.left(),-e.top())}},Oz=function(e){return function(t){return t.translate(e.left(),e.top())}},Sz=function(e){return function(t,n){return X(e,(function(e,t){return t(e)}),vl(t,n))}},Cz=function(e,t,n){return e.fold(Sz([Oz(n),xz(t)]),Sz([xz(t)]),Sz([]))},kz=function(e,t,n){return e.fold(Sz([Oz(n)]),Sz([]),Sz([Oz(t)]))},Ez=function(e,t,n){return e.fold(Sz([]),Sz([xz(n)]),Sz([Oz(t),xz(n)]))},Az=function(e,t,n,r,i,o){var a=kz(e,i,o),s=kz(t,i,o);return Math.abs(a.left()-s.left())<=n&&Math.abs(a.top()-s.top())<=r},Tz=function(e,t,n,r,i,o){var a=kz(e,i,o),s=kz(t,i,o),l=Math.abs(a.left()-s.left()),u=Math.abs(a.top()-s.top());return vl(l,u)},Dz=function(e,t,n){return e.fold((function(e,t){return{position:"absolute",left:e+"px",top:t+"px"}}),(function(e,t){return{position:"absolute",left:e-n.left()+"px",top:t-n.top()+"px"}}),(function(e,t){return{position:"fixed",left:e+"px",top:t+"px"}}))},Mz=function(e,t,n){return e.fold((function(e,r){return wz.offset(e+t,r+n)}),(function(e,r){return wz.absolute(e+t,r+n)}),(function(e,r){return wz.fixed(e+t,r+n)}))},Pz=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left()),a.getOr(s.top()))}};return e.fold(i(Ez,wz.offset),i(kz,wz.absolute),i(Cz,wz.fixed))},Iz=wz.offset,jz=wz.absolute,Lz=wz.fixed,Nz=_e.generate([{static:[]},{absolute:["x","y"]},{fixed:["x","y"]}]),Rz=function(e,t){var n=e.element();Ds(n,t.transitionClass),Ps(n,t.fadeOutClass),Ds(n,t.fadeInClass),t.onShow(e)},Bz=function(e,t){var n=e.element();Ds(n,t.transitionClass),Ps(n,t.fadeInClass),Ds(n,t.fadeOutClass),t.onHide(e)},$z=function(e,t){return e.y()<t.bottom()&&e.bottom()>t.y()},Fz=function(e,t){return e.y()>=t.y()},zz=function(e,t){return e.bottom()<=t.bottom()},qz=function(e,t,n){return te(e,(function(e){switch(e){case"bottom":return zz(t,n);case"top":return Fz(t,n)}}))},Uz=function(e,t){return wa(e,t)?w.some(parseInt(_a(e,t),10)):w.none()},Hz=function(e,t){return Uz(e,t.leftAttr).bind((function(n){return Uz(e,t.topAttr).map((function(t){var r=Sl(e),i=hl(e);return Bl(n,t,r,i)}))}))},Vz=function(e,t,n,r,i){ya(e,t.leftAttr,n),ya(e,t.topAttr,r),ya(e,t.positionAttr,i)},Wz=function(e,t){xa(e,t.leftAttr),xa(e,t.topAttr),xa(e,t.positionAttr)},Kz=function(e,t,n){var r=_a(e,t.positionAttr);switch(Wz(e,t),r){case"static":return w.some(Nz.static());case"absolute":return w.some(Nz.absolute(n.x(),n.y()));default:return w.none()}},Gz=function(e,t,n){return Hz(e,t).filter((function(e){return qz(t.modes,e,n)})).bind((function(n){return Kz(e,t,n)}))},Yz=function(e,t,n,r,i){var o=$l(e);if(qz(t.modes,o,n))return w.none();var a=qs(e,"position");Vz(e,t,o.x(),o.y(),a);var s=jz(o.x(),o.y()),l=Cz(s,r,i),u=jz(n.x(),n.y()),c=Cz(u,r,i),f=o.y()<=n.y()?c.top():c.top()+n.height()-o.height();return w.some(Nz.fixed(l.left(),f))},Xz=function(e,t,n,r,i){var o=e.element(),a=Hs(o,"position").is("fixed");return a?Gz(o,t,n):Yz(o,t,n,r,i)},Zz=function(e,t){var n=e.element();return Hz(n,t).bind((function(e){return Kz(n,t,e)}))},Qz=function(e,t){V(["left","top","position"],(function(t){return Ws(e.element(),t)})),t.onUndocked(e)},Jz=function(e,t,n,r,i){var o=Dz(i,n,r);Fs(e.element(),o);var a="fixed"===o.position?t.onDocked:t.onUndocked;a(e)},eq=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=$z(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)js(e.element(),[t.fadeOutClass]),t.onHide(e);else{var s=a?Rz:Bz;s(e,t)}}))}))},tq=function(e,t,n){var r=t.lazyViewport(e),i=e.element(),o=Go(i),a=El(o),s=_z(i),l=n.isDocked();l&&eq(e,t,n,r),Xz(e,t,r,a,s).each((function(i){n.setDocked(!l),i.fold((function(){return Qz(e,t)}),(function(n,r){return Jz(e,t,a,s,jz(n,r))}),(function(i,o){eq(e,t,n,r,!0),Jz(e,t,a,s,Lz(i,o))}))}))},nq=function(e,t,r){var i=e.element();r.setDocked(!1),Zz(e,t).each((function(r){r.fold((function(){return Qz(e,t)}),(function(n,r){var o=Go(i),a=El(o),s=_z(i);Jz(e,t,a,s,jz(n,r))}),n)})),r.setVisible(!0),t.contextual.each((function(t){Ls(i,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),rq(e,t,r)},rq=function(e,t,n){e.getSystem().isConnected()&&tq(e,t,n)},iq=function(e,t,n){n.isDocked()&&nq(e,t,n)},oq=function(e,t,n){return n.isDocked()},aq=Object.freeze({refresh:rq,reset:iq,isDocked:oq}),sq=function(e,t){return Oo([No(Ai(),(function(n,r){e.contextual.each((function(e){if(Is(n.element(),e.transitionClass)){Ls(n.element(),[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),Eo(Vi(),(function(n,r){rq(n,e,t)})),Eo(Wi(),(function(n,r){iq(n,e,t)}))])},lq=Object.freeze({events:sq}),uq=[Mn("contextual",[vn("fadeInClass"),vn("fadeOutClass"),vn("transitionClass"),_n("lazyContext"),vu("onShow"),vu("onShown"),vu("onHide"),vu("onHidden")]),$n("lazyViewport",zl),vn("leftAttr"),vn("topAttr"),vn("positionAttr"),zn("modes",["top","bottom"],ln),vu("onDocked"),vu("onUndocked")],cq=function(){var e=Hn(!1),t=Hn(!0),n=function(){return"docked:  "+e.get()+", visible: "+t.get()};return Qa({isDocked:function(){return e.get()},setDocked:function(t){return e.set(t)},isVisible:function(){return t.get()},setVisible:function(e){return t.set(e)},readState:n})},fq=Object.freeze({init:cq}),dq=dc({fields:uq,name:"docking",active:lq,apis:aq,state:fq}),hq={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},pq="tox-tinymce--toolbar-sticky-on",gq="tox-tinymce--toolbar-sticky-off",mq=function(e){var t=e.element();Zo(t).each((function(n){if(dq.isDocked(e)){var r=Sl(n);$s(t,"width",r+"px");var i=pl(t);$s(n,"padding-top",i+"px")}else Ws(t,"width"),Ws(n,"padding-top")}))},vq=function(e,t){t?(Ps(e,hq.fadeOutClass),js(e,[hq.transitionClass,hq.fadeInClass])):(Ps(e,hq.fadeInClass),js(e,[hq.fadeOutClass,hq.transitionClass]))},yq=function(e,t){var n=Xn.fromDom(e.getContainer());t?(Ds(n,pq),Ps(n,gq)):(Ds(n,gq),Ps(n,pq))},bq=function(e,t){var n=Go(t);kc(n).filter((function(e){return!ni(t,e)})).filter((function(t){return ni(t,Xn.fromDom(n.dom().body))||ai(e,t)})).each((function(){return Oc(t)}))},_q=function(e,t){return Ec(e).orThunk((function(){return t().toOption().bind((function(e){return Ec(e.element())}))}))},wq=function(e,t){e.inline||(e.on("ResizeWindow ResizeEditor ResizeContent",(function(){t().each(mq)})),e.on("SkinLoaded",(function(){t().each(dq.reset)}))),e.on("PostRender",(function(){yq(e,!1)}))},xq=function(e){return e().map(dq.isDocked).getOr(!1)},Oq=function(e,t){var n,r=Hn(w.none()),i=function(e){t().each((function(t){return e(t.element())}))},o=function(n){e.inline||mq(n),yq(e,dq.isDocked(n)),n.getSystem().broadcastOn([ap()],{}),t().each((function(e){return e.getSystem().broadcastOn([ap()],{})}))};return[dq.config({leftAttr:"data-dock-left",topAttr:"data-dock-top",positionAttr:"data-dock-pos",contextual:h({lazyContext:function(t){var n=pl(t.element()),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=$l(Xn.fromDom(r)),o=i.height()-n;return w.some(Bl(i.x(),i.y(),i.width(),o))},onShow:function(){i((function(e){return vq(e,!0)}))},onShown:function(e){i((function(e){return Ls(e,[hq.transitionClass,hq.fadeInClass])})),r.get().each((function(t){bq(e.element(),t),r.set(w.none())}))},onHide:function(e){r.set(_q(e.element(),t)),i((function(e){return vq(e,!1)}))},onHidden:function(){i((function(e){return Ls(e,[hq.transitionClass])}))}},hq),modes:["top"],onDocked:o,onUndocked:o}),vb.config({}),_c.config({channels:(n={},n[IB()]={onReceive:function(e){mq(e)}},n)})]},Sq=Object.freeze({setup:wq,isDocked:xq,getBehaviours:Oq}),Cq=n,kq=c,Eq=o([]),Aq=Object.freeze({setup:Cq,isDocked:kq,getBehaviours:Eq}),Tq=function(e){var t=e.editor,n=e.sticky?Oq:Eq;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:cc(n(t,e.getSink))}},Dq=function(e,t){var n=function(e,n){var r=H(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=WB(n).mapError((function(e){return tn(e)})).getOrDie();return II(r,"tox-mbtn",t.backstage,w.some("menuitem"))}));ab.set(e,r)},r={focus:Xy.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:cc([ab.config({}),lb("menubar-events",[Ro((function(t){e.onSetup(t)})),Eo(_i(),(function(e,t){Hl(e.element(),".tox-mbtn--active").each((function(n){Vl(t.event().target(),".tox-mbtn").each((function(t){ni(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){fA.expand(e),fA.close(n),vb.focus(e)}))}))}))}))})),Eo(Zi(),(function(e,t){t.event().prevFocus().bind((function(t){return e.getSystem().getByDom(t).toOption()})).each((function(n){t.event().newFocus().bind((function(t){return e.getSystem().getByDom(t).toOption()})).each((function(e){fA.isOpen(n)&&(fA.expand(e),fA.close(n))}))}))}))]),Xy.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),w.some(!0)}}),LE.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},Mq=Zg({factory:Dq,name:"silver.Menubar",configFields:[pn("dom"),pn("uid"),pn("onEscape"),pn("backstage"),In("onSetup",n)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),Pq="container",Iq=[zp("slotBehaviours",[])],jq=function(e){return"<alloy.field."+e+">"},Lq=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Ag(Pq,jq(t),n)};return{slot:t,record:function(){return e}}}(),n=e(t),r=t.record(),i=H(r,(function(e){return yg({name:e,pname:jq(e)})}));return Vg(Pq,Iq,i,Nq,n)},Nq=function(e,t,n){var r=function(t){return Rg(e)},i=function(t,n){return Ig(t,e,n)},o=function(t,n){return void 0===n&&(n=void 0),function(r,i){return Ig(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},a=function(e){return function(t,n){V(n,(function(n){return e(t,n)}))}},s=function(e,t){return"true"!==_a(e.element(),"aria-hidden")},l=function(e,t){if(!s(e)){var n=e.element();Ws(n,"display"),xa(n,"aria-hidden"),io(e,Qi(),{name:t,visible:!0})}},u=function(e,t){if(s(e)){var n=e.element();$s(n,"display","none"),ya(n,"aria-hidden","true"),io(e,Qi(),{name:t,visible:!1})}},c=o(s,!1),f=o(u),d=a(f),h=function(e){return d(e,r())},p=o(l),g={getSlotNames:r,getSlot:i,isShowing:c,hideSlot:f,hideAllSlots:h,showSlot:p};return{uid:e.uid,dom:e.dom,components:t,behaviours:qp(e.slotBehaviours),apis:g}},Rq=de({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},Xa),Bq=h(h({},Rq),{sketch:Lq}),$q=Nt([An("icon"),An("tooltip"),$n("onShow",n),$n("onHide",n),$n("onSetup",(function(){return n}))]),Fq=function(e){return Qt("sidebar",$q,e)},zq=function(e){var t=e.ui.registry.getAll().sidebars;V(ue(t),(function(n){var r=t[n],i=function(){return w.from(e.queryCommandValue("ToggleSidebar")).is(n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},qq=function(e){return{element:function(){return e.element().dom()}}},Uq=function(e,t){var r=H(ue(t),(function(e){var n=t[e],r=Jt(Fq(n));return{name:e,getApi:qq,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return H(r,(function(t){var i=Hn(n);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:Ww.unnamedEvents([cO(t,i),fO(t,i),Eo(Qi(),(function(e,t){var n=t.event(),i=Z(r,(function(e){return e.name===n.name()}));i.each((function(t){var r=n.visible()?t.onShow:t.onHide;r(t.getApi(e))}))}))])})}))},Hq=function(e){return Bq.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Uq(t,e),slotBehaviours:Ww.unnamedEvents([Ro((function(e){return Bq.hideAllSlots(e)}))])}}))},Vq=function(e,t){var n=rm.getCurrent(e);n.each((function(e){return ab.set(e,[Hq(t)])}))},Wq=function(e,t){var n=rm.getCurrent(e);n.each((function(e){var n=rm.getCurrent(e);n.each((function(n){yB.hasGrown(e)?Bq.isShowing(n,t)?yB.shrink(e):(Bq.hideAllSlots(n),Bq.showSlot(n,t)):(Bq.hideAllSlots(n),Bq.showSlot(n,t),yB.grow(e))}))}))},Kq=function(e){var t=rm.getCurrent(e);return t.bind((function(e){var t=yB.isGrowing(e)||yB.hasGrown(e);if(t){var n=rm.getCurrent(e);return n.bind((function(e){return Z(Bq.getSlotNames(e),(function(t){return Bq.isShowing(e,t)}))}))}return w.none()}))},Gq=Ma("FixSizeEvent"),Yq=Ma("AutoSizeEvent"),Xq=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:cc([LE.config({}),vb.config({}),yB.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:function(e){var t=rm.getCurrent(e);t.each(Bq.hideAllSlots),ro(e,Yq)},onGrown:function(e){ro(e,Yq)},onStartGrow:function(e){io(e,Gq,{width:Hs(e.element(),"width").getOr("")})},onStartShrink:function(e){io(e,Gq,{width:Sl(e.element())+"px"})}}),ab.config({}),rm.config({find:function(e){var t=ab.contents(e);return ae(t)}})])}],behaviours:cc([TM.childAt(0),lb("sidebar-sliding-events",[Eo(Gq,(function(e,t){$s(e.element(),"width",t.event().width())})),Eo(Yq,(function(e,t){Ws(e.element(),"width")}))])])}},Zq=function(e){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading...")},classes:["tox-throbber__busy-spinner"]},components:[{dom:sx('<div class="tox-spinner"><div></div><div></div><div></div></div>')}],behaviours:cc([Xy.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),vb.config({})])}},Qq=function(e,t,n){var r=e.element();!0===t?(ab.set(e,[Zq(n)]),Ws(r,"display"),xa(r,"aria-hidden")):(ab.set(e,[]),$s(r,"display","none"),ya(r,"aria-hidden","true"))},Jq=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:cc([ab.config({})]),components:[]}},eU=function(e,t,n){var r=Hn(!1),i=Hn(w.none()),o=function(e){e!==r.get()&&(Qq(t(),e,n.providers),r.set(e))};e.on("ProgressState",(function(t){if(i.get().each(U_.clearTimeout),I(t.time)){var n=U_.setEditorTimeout(e,(function(){return o(t.state)}),t.time);i.set(w.some(n))}else o(t.state),i.set(w.none())}))},tU=function(e,t,n){var r={getSocket:function(t){return yz.getPart(t,e,"socket")},setSidebar:function(t,n){yz.getPart(t,e,"sidebar").each((function(e){return Vq(e,n)}))},toggleSidebar:function(t,n){yz.getPart(t,e,"sidebar").each((function(e){return Wq(e,n)}))},whichSidebar:function(t){return yz.getPart(t,e,"sidebar").bind(Kq).getOrNull()},getHeader:function(t){return yz.getPart(t,e,"header")},getToolbar:function(t){return yz.getPart(t,e,"toolbar")},setToolbar:function(t,n){yz.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){yz.getPart(t,e,"multiple-toolbar").each((function(e){vz.setItems(e,n)}))},refreshToolbar:function(t){var n=yz.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},getMoreButton:function(t){var n=yz.getPart(t,e,"toolbar");return n.bind((function(e){return e.getApis().getMoreButton(e)}))},getThrobber:function(t){return yz.getPart(t,e,"throbber")},focusToolbar:function(t){var n=yz.getPart(t,e,"toolbar").orThunk((function(){return yz.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Xy.focusIn(e)}))},setMenubar:function(t,n){yz.getPart(t,e,"menubar").each((function(e){Mq.setMenus(e,n)}))},focusMenubar:function(t){yz.getPart(t,e,"menubar").each((function(e){Mq.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},nU=bz.optional({factory:Mq,name:"menubar",schema:[pn("backstage")]}),rU=function(e){return e.split===hk.sliding?$B:e.split===hk.floating?BB:FB},iU=bz.optional({factory:{sketch:function(e){return vz.sketch({uid:e.uid,dom:e.dom,listBehaviours:cc([Xy.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return FB({uid:Ma("multiple-toolbar-item"),backstage:e.backstage,cyclicKeying:!1,getSink:e.getSink,initGroups:[],onEscape:function(){return w.none()}})},setupItem:function(e,t,n,r){mR.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[pn("dom"),pn("onEscape")]}),oU=bz.optional({factory:{sketch:function(e){var t=rU(e),n={uid:e.uid,onEscape:function(){return e.onEscape(),w.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,backstage:e.backstage,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader}};return t(n)}},name:"toolbar",schema:[pn("dom"),pn("onEscape"),pn("getSink")]}),aU=bz.optional({factory:{sketch:Tq},name:"header",schema:[pn("dom")]}),sU=bz.optional({name:"socket",schema:[pn("dom")]}),lU=bz.optional({factory:{sketch:Xq},name:"sidebar",schema:[pn("dom")]}),uU=bz.optional({factory:{sketch:Jq},name:"throbber",schema:[pn("dom")]}),cU=Qg({name:"OuterContainer",factory:tU,configFields:[pn("dom"),pn("behaviours")],partFields:[aU,nU,oU,iU,sU,lU,uU],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=H(n,(function(e){return LB(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=H(n,(function(e){return H(e,LB)}));e.setToolbars(t,r)},getMoreButton:function(e,t){return e.getMoreButton(t)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),fU="file edit view insert format tools table help",dU={file:{title:"File",items:"newdocument restoredraft | preview | print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | formats blockformats fontformats fontsizes align | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck code wordcount"},table:{title:"Table",items:"inserttable tableprops deletetable row column cell"},help:{title:"Help",items:"help"}},hU=function(e,t,n){var r=Ak(n).split(/[ ,]/);return{text:e.title,getItems:function(){return ee(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||z(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},pU=function(e){return"string"===typeof e?e.split(" "):e},gU=function(e,t){var n=ke(dU,t.menus),r=ue(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?pU(fU):pU(!1===t.menubar?"":t.menubar),o=G(i,(function(e){return r&&t.menus.hasOwnProperty(e)&&t.menus[e].hasOwnProperty("items")||dU.hasOwnProperty(e)})),a=H(o,(function(r){var i=n[r];return hU({title:i.title,items:pU(i.items)},t,e)}));return G(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&z(e.getItems(),t)}))},mU=function(e){var t=function(){e._skinLoaded=!0,wS.fireSkinLoaded(e)};return function(){e.initialized?t():e.on("init",t)}},vU={fireSkinLoaded:mU},yU=function(e,t){var n,r=yk(t);r&&(n=r+"/skin.min.css",t.contentCSS.push(r+(e?"/content.inline":"/content")+".min.css")),!1===_k(t)&&n?yO.DOM.styleSheetLoader.load(n,vU.fireSkinLoaded(t)):vU.fireSkinLoaded(t)()},bU=s(yU,!1),_U=s(yU,!0),wU=function(e,t,n,r){var i=t.outerContainer,o=n.toolbar,a=n.buttons;if(j(o,A)){var s=o.map((function(t){var n={toolbar:t,buttons:a};return ez(e,n,{backstage:r},w.none())}));cU.setToolbars(i,s)}else cU.setToolbar(i,ez(e,n,{backstage:r},w.none()))},xU=yO.DOM,OU=Wr(),SU=OU.os.isiOS()&&OU.os.version.major<=12,CU=function(e){var t=e.getWin(),n=e.getDoc().documentElement,r=Hn(vl(t.innerWidth,t.innerHeight)),i=Hn(vl(n.offsetWidth,n.offsetHeight)),o=function(n){var o=e.getDoc().documentElement,a=r.get(),s=i.get();a.left()!==t.innerWidth||a.top()!==t.innerHeight?(r.set(vl(t.innerWidth,t.innerHeight)),wS.fireResizeContent(e,n)):s.left()===o.offsetWidth&&s.top()===o.offsetHeight||(i.set(vl(o.offsetWidth,o.offsetHeight)),wS.fireResizeContent(e,n))},a=function(t){return wS.fireScrollContent(e,t)};xU.bind(t,"resize",o),xU.bind(t,"scroll",a);var s=BC(Xn.fromDom(e.getBody()),"load",o);e.on("remove",(function(){s.unbind(),xU.unbind(t,"resize",o),xU.unbind(t,"scroll",a)}))},kU=function(e,t,n,r,i){var o=Hn(0);bU(e),Nh(Xn.fromDom(i.targetNode),t.mothership),Lh(vo(),t.uiMothership),e.on("PostRender",(function(){wU(e,t,n,r),o.set(e.getWin().innerWidth),cU.setMenubar(t.outerContainer,gU(e,n)),cU.setSidebar(t.outerContainer,n.sidebar),CU(e)}));var a=cU.getSocket(t.outerContainer).getOrDie("Could not find expected socket element");if(!0===SU){Fs(a.element(),{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var s=W_((function(){e.fire("ScrollContent")}),20);RC(a.element(),"scroll",s.throttle)}MB(e,t),e.addCommand("ToggleSidebar",(function(n,r){cU.toggleSidebar(t.outerContainer,r),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return cU.whichSidebar(t.outerContainer)}));var l=Ik(e),u=function(){cU.refreshToolbar(t.outerContainer)};return l!==hk.sliding&&l!==hk.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(u(),o.set(t))})),{iframeContainer:a.element().dom(),editorContainer:t.outerContainer.element().dom()}},EU={render:kU},AU=function(e,t,n,r,i){var o,a=yO.DOM,s=Nk(e),l=$k(e),u=Xn.fromDom(i.targetNode),c=Ik(e),f=c===hk.sliding||c===hk.floating;_U(e);var d=function(e){var n=f?e.fold((function(){return 0}),(function(e){return e.components().length>1?hl(e.components()[1].element()):0})):0,r=_l(u),i=r.top()-hl(o.element())+n;Fs(t.outerContainer.element(),{position:"absolute",top:Math.round(i)+"px",left:Math.round(r.left())+"px"})},h=function(e){if(void 0===e&&(e=!1),f&&cU.refreshToolbar(t.outerContainer),!s){var n=cU.getToolbar(t.outerContainer);d(n)}l&&(e?dq.reset(o):dq.refresh(o))},p=function(){$s(t.outerContainer.element(),"display","flex"),a.addClass(e.getBody(),"mce-edit-focus"),Ws(t.uiMothership.element(),"display"),h()},g=function(){t.outerContainer&&($s(t.outerContainer.element(),"display","none"),a.removeClass(e.getBody(),"mce-edit-focus")),$s(t.uiMothership.element(),"display","none")},m=function(){if(o)p();else{o=cU.getHeader(t.outerContainer).getOrDie();var i=Rk(e);Lh(i,t.mothership),Lh(i,t.uiMothership),wU(e,t,n,r),cU.setMenubar(t.outerContainer,gU(e,n)),p(),e.on("activate",p),e.on("deactivate",g),e.on("NodeChange SkinLoaded ResizeWindow",(function(){e.hidden||h(!0)})),e.nodeChanged()}};return e.on("focus",m),e.on("blur hide",g),e.on("init",(function(){e.hasFocus()&&m()})),MB(e,t),{editorContainer:t.outerContainer.element().dom()}},TU={render:AU},DU=function(e){var t=[{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}];xj.each(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,onAction:function(){return e.execCommand(t.cmd)},icon:t.icon,onSetup:aF(e,t.name)})}));var n={name:"alignnone",text:"No alignment",cmd:"JustifyNone",icon:"align-none"};e.ui.registry.addButton(n.name,{tooltip:n.text,onAction:function(){return e.execCommand(n.cmd)},icon:n.icon})},MU={register:DU},PU=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},IU=function(e){xj.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(function(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:aF(e,t.name),onAction:PU(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:aF(e,n),onAction:PU(e,n)})}},jU=function(e){xj.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"}],(function(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return e.execCommand(t.action)}})}))},LU=function(e){xj.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:function(){return e.execCommand(t.action)},onSetup:aF(e,t.name)})}))},NU=function(e){IU(e),jU(e),LU(e)},RU=function(e){xj.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through",shortcut:""},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript",shortcut:""},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript",shortcut:""},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting",shortcut:""},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document",shortcut:""},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"}],(function(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:function(){return e.execCommand(t.action)}})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:PU(e,"code")})},BU=function(e){NU(e),RU(e)},$U={register:BU},FU=function(e,t,n){var r=function(){return!!t.undoManager&&t.undoManager[n]()},i=function(){e.setDisabled(t.readonly||!r())};return e.setDisabled(!r()),t.on("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i),function(){return t.off("Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",i)}},zU=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:function(t){return FU(t,e,"hasUndo")},onAction:function(){return e.execCommand("undo")}}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:function(t){return FU(t,e,"hasRedo")},onAction:function(){return e.execCommand("redo")}})},qU=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",onSetup:function(t){return FU(t,e,"hasUndo")},onAction:function(){return e.execCommand("undo")}}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",onSetup:function(t){return FU(t,e,"hasRedo")},onAction:function(){return e.execCommand("redo")}})},UU=function(e){zU(e),qU(e)},HU={register:UU},VU=function(e,t){e.setActive(t.hasVisual);var n=function(t){e.setActive(t.hasVisual)};return t.on("VisualAid",n),function(){return t.off("VisualAid",n)}},WU=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:function(t){return VU(t,e)},onAction:function(){e.execCommand("mceToggleVisualAid")}})},KU=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:function(){return e.execCommand("mceToggleVisualAid")}})},GU=function(e){KU(e),WU(e)},YU={register:GU},XU=function(e,t){e.setDisabled(!t.queryCommandState("outdent"));var n=function(){e.setDisabled(!t.queryCommandState("outdent"))};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},ZU=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:function(t){return XU(t,e)},onAction:function(){return e.execCommand("outdent")}}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:function(){return e.execCommand("indent")}})},QU=function(e){ZU(e)},JU={register:QU},eH=function(e,t){bF(e,t),kF(e,t),UF(e,t),FF(e,t),jF(e,t)},tH={register:eH},nH=function(e,t){MU.register(e),$U.register(e),tH.register(e,t),HU.register(e),RS.register(e),YU.register(e),JU.register(e)},rH={setup:nH},iH=function(e,t){return{anchor:"makeshift",x:e,y:t}},oH=function(e,t,n){return iH(e.x+t,e.y+n)},aH=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},sH=function(e){if(aH(e)){var t=e.touches[0];return iH(t.pageX,t.pageY)}return iH(e.pageX,e.pageY)},lH=function(e){if(aH(e)){var t=e.touches[0];return iH(t.clientX,t.clientY)}return iH(e.clientX,e.clientY)},uH=function(e,t){var n=yO.DOM.getPos(e);return oH(t,n.x,n.y)},cH=function(e,t){return"contextmenu"===t.type?e.inline?sH(t):uH(e.getContentAreaContainer(),lH(t)):fH(e)},fH=function(e){return{anchor:"selection",root:Xn.fromDom(e.selection.getNode())}},dH=function(e){return{anchor:"node",node:w.some(Xn.fromDom(e.selection.getNode())),root:Xn.fromDom(e.getBody())}},hH=function(e,t,n){return n?dH(e):cH(e,t)},pH=function(e,t,n,r,i,o){var a=n(),s=hH(e,t,o);MI(a,dO.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),__.showMenuAt(i,s,{menu:{markers:WS("normal")},data:e})}))},gH={onLtr:function(){return[Xu,Vu,Wu,Ku,Gu,Yu,D_,M_,A_,k_,T_,E_]},onRtl:function(){return[Xu,Wu,Vu,Gu,Ku,Yu,D_,M_,T_,E_,A_,k_]}},mH=12,vH={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},yH=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=dd(e.getWin(),vf.domRange(i));return o.exists((function(e){return e.left()<=r.clientX&&e.right()>=r.clientX&&e.top()<=r.clientY&&e.bottom()>=r.clientY}))},bH=function(e,t){var n=t?dH(e):fH(e);return h({bubble:Dc(0,mH,vH),layouts:gH,overrides:{maxWidthFunction:WL(),maxHeightFunction:ch()}},n)},_H=function(e){var t=e.selection.getRng(),n=function(){U_.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},wH=function(e,t,n,r,i,o){var a=Tk(e)||Dk(e)||Pk(e),s=bH(e,o);MI(n,dO.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),__.showMenuWithinBounds(i,s,{menu:{markers:WS("normal")},data:n,type:"horizontal"},(function(){return G$(e,a)})),e.fire(fR)}))},xH=function(e,t,n,r,i,o){var a=Wr(),s=a.os.isiOS(),l=a.os.isOSX(),u=a.os.isAndroid(),c=function(){var a=n();wH(e,t,a,r,i,o)};if(!l&&!s||o)u&&!o&&e.selection.setCursorLocation(t.target,0),c();else{var f=function(){_H(e),c()};yH(e,t)?f():(e.once("selectionchange",f),e.once("touchend",(function(){return e.off("selectionchange",f)})))}},OH=function(e){return"string"===typeof e?e.split(/[ ,]/):e},SH=function(e){return e.settings.contextmenu_never_use_native||!1},CH=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return ve(e.settings,t).map(OH).getOrThunk((function(){return G(OH(n),(function(e){return ye(r,e)}))}))},kH=function(e){return!1===e.getParam("contextmenu")},EH=function(e){return CH(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},AH={shouldNeverUseNative:SH,getContextMenu:EH,isContextMenuDisabled:kH},TH=function(e){return A(e)?"|"===e:"separator"===e.type},DH={type:"separator"},MH=function(e){if(A(e))return e;switch(e.type){case"separator":return DH;case"submenu":return{type:"nestedmenuitem",text:e.text,icon:e.icon,getSubmenuItems:function(){var t=e.getSubmenuItems();return A(t)?t:H(t,MH)}};default:return{type:"menuitem",text:e.text,icon:e.icon,onAction:r(e.onAction)}}},PH=function(e,t){if(0===t.length)return e;var n=se(e).filter((function(e){return!TH(e)})),r=n.fold((function(){return[]}),(function(e){return[DH]}));return e.concat(r).concat(t).concat([DH])},IH=function(e,t,n){var r=X(t,(function(t,r){if(ye(e,r)){var i=e[r].update(n);if(A(i))return PH(t,i.split(" "));if(i.length>0){var o=H(i,MH);return PH(t,o)}return t}return t.concat([r])}),[]);return r.length>0&&TH(r[r.length-1])&&r.pop(),r},jH=function(e,t){return t.ctrlKey&&!AH.shouldNeverUseNative(e)},LH=function(e,t,n){var r=Wr(),i=r.deviceType.isTouch,o=ll(__.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:cc([lb("dismissContextMenu",[Eo(Yi(),(function(t,n){ip.close(t),e.focus()}))])])})),a=function(e){return __.hide(o)},s=function(t){var r="longpress"===t.type;if(AH.shouldNeverUseNative(e)&&t.preventDefault(),!jH(e,t)&&!AH.isContextMenuDisabled(e)){var a=!r&&(2!==t.button||t.target===e.getBody()),s=function(){var n=a?e.selection.getStart(!0):t.target,r=e.ui.registry.getAll(),i=AH.getContextMenu(e);return IH(r.contextMenus,i,n)},l=i()?xH:pH;l(e,t,s,n,o,a)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":"ResizeWindow");e.on(t,a),e.on(i()?"longpress":"longpress contextmenu",s)}))},NH=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?w.some(parseInt(e,10)):w.none()},RH=function(e){return I(e)?e+"px":e},BH={parseToInt:NH,numToPx:RH},$H="data-initial-z-index",FH=function(e){Zo(e.element()).filter(po).each((function(e){var t=_a(e,$H);wa(e,$H)?$s(e,"z-index",t):Ws(e,"z-index"),xa(e,$H)}))},zH=function(e){Zo(e.element()).filter(po).each((function(t){Hs(t,"z-index").each((function(e){ya(t,$H,e)})),$s(t,"z-index",qs(e.element(),"z-index"))}))},qH=function(e,t){e.getSystem().addToGui(t),zH(t)},UH=function(e){FH(e),e.getSystem().removeFromGui(e)},HH=function(e,t){var n=e.element(),r=parseInt(_a(n,t.leftAttr),10),i=parseInt(_a(n,t.topAttr),10);return isNaN(r)||isNaN(i)?w.none():w.some(vl(r,i))},VH=function(e,t,n){var r=e.element();ya(r,t.leftAttr,n.left()+"px"),ya(r,t.topAttr,n.top()+"px")},WH=function(e,t){var n=e.element();xa(n,t.leftAttr),xa(n,t.topAttr)},KH=function(e,t,n,r){return HH(e,t).fold((function(){return n}),(function(e){return Lz(e.left()+r.left(),e.top()+r.top())}))},GH=function(e,t,n,r,i,o){var a=KH(e,t,n,r),s=t.mustSnap?ZH(e,t,a,i,o):QH(e,t,a,i,o),l=Cz(a,i,o);return VH(e,t,l),s.fold((function(){return{coord:Lz(l.left(),l.top()),extra:w.none()}}),(function(e){return{coord:e.output(),extra:e.extra()}}))},YH=function(e,t){WH(e,t)},XH=function(e,t,n,r){return Ql(e,(function(e){var i=e.sensor(),a=Az(t,i,e.range().left(),e.range().top(),n,r);return a?w.some({output:o(Pz(e.output(),t,n,r)),extra:e.extra}):w.none()}))},ZH=function(e,t,n,r,i){var a=t.getSnapPoints(e),s=XH(a,n,r,i);return s.orThunk((function(){var e=X(a,(function(e,t){var o=t.sensor(),a=Tz(n,o,t.range().left(),t.range().top(),r,i);return e.deltas.fold((function(){return{deltas:w.some(a),snap:w.some(t)}}),(function(n){var r=(a.left()+a.top())/2,i=(n.left()+n.top())/2;return r<=i?{deltas:w.some(a),snap:w.some(t)}:e}))}),{deltas:w.none(),snap:w.none()});return e.snap.map((function(e){return{output:o(Pz(e.output(),n,r,i)),extra:e.extra}}))}))},QH=function(e,t,n,r,i){var o=t.getSnapPoints(e);return XH(o,n,r,i)},JH=function(e,t,n){return{coord:Pz(e.output(),e.output(),t,n),extra:e.extra()}},eV=function(e){return Hs(e,"left").bind((function(t){return Hs(e,"top").bind((function(n){return Hs(e,"position").map((function(e){var r="fixed"===e?Lz:Iz;return r(parseInt(t,10),parseInt(n,10))}))}))})).getOrThunk((function(){var t=_l(e);return jz(t.left(),t.top())}))},tV=function(e,t){return{bounds:e.getBounds(),height:pl(t.element()),width:Cl(t.element()),comp:t}},nV=function(e,t,n,r,i){var o=i.bounds,a=kz(t,n,r),s=Zd(a.left(),o.x(),o.x()+o.width()-i.width),l=Zd(a.top(),o.y(),o.y()+o.height()-i.height),u=jz(s,l);return t.fold((function(){var e=Ez(u,n,r);return Iz(e.left(),e.top())}),(function(){return u}),(function(){var e=Cz(u,n,r);return Lz(e.left(),e.top())}))},rV=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=Mz(n,o.left(),o.top()),t=Cz(e,r,i);return Lz(t.left(),t.top())}),(function(t){var a=GH(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return nV(e,s,r,i,a)},iV=function(e,t,n,r){var i=t.getTarget(e.element());if(t.repositionTarget){var o=Go(e.element()),a=El(o),s=_z(i),l=eV(i),u=rV(e,t.snaps,l,a,s,r,n),c=Dz(u,a,s);Fs(i,c)}t.onDrag(e,i,r)},oV=Mn("snaps",[pn("getSnapPoints"),vu("onSensor"),pn("leftAttr"),pn("topAttr"),In("lazyViewport",zl),In("mustSnap",!1)]),aV=function(e){return Oo([Eo(mi(),e.forceDrop),Eo(bi(),e.drop),Eo(vi(),(function(t,n){e.move(n.event())})),Eo(yi(),e.delayDrop)])},sV=function(e){return w.from(vl(e.x(),e.y()))},lV=function(e,t){return vl(t.left()-e.left(),t.top()-e.top())},uV=Object.freeze({getData:sV,getDelta:lV}),cV=function(e,t){var n=function(n){t.setStartData(tV(e,n))};return Oo([Eo(Vi(),n),Eo(mi(),(function(r,i){var o=i.event().raw();if(0===o.button){i.stop();var a={drop:function(){l()},delayDrop:function(){u.schedule()},forceDrop:function(){l()},move:function(n){u.cancel();var i=t.update(uV,n),o=t.getStartData().getOrThunk((function(){return tV(e,r)}));i.each((function(t){iV(r,e,o,t)}))}},s=r.getSystem().build(gk.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[e.blockerClass]},events:aV(a)})),l=function(){UH(s),e.snaps.each((function(e){YH(r,e)}));var n=e.getTarget(r.element());t.reset(),e.onDrop(r,n)},u=zC(l,200),c=function(){n(r),qH(r,s)};c()}}))])},fV=[In("useFixed",c),pn("blockerClass"),In("getTarget",a),In("onDrag",n),In("repositionTarget",!0),vu("onDrop"),$n("getBounds",zl),oV,wu("dragger",{handlers:cV})],dV=function(e){var t=e[0];return w.some(vl(t.clientX,t.clientY))},hV=function(e){var t=e.raw(),n=t.touches;return 1===n.length?dV(n):w.none()},pV=function(e,t){return vl(t.left()-e.left(),t.top()-e.top())},gV=Object.freeze({getData:hV,getDelta:pV}),mV=function(e,t){var n=function(n){t.setStartData(tV(e,n))};return Oo([Eo(Vi(),n),Eo(hi(),(function(e,t){n(e),t.stop()})),Eo(Ui(),(function(n,r){t.getStartData().each((function(i){if(ni(i.comp.element(),n.element())){r.stop();var o=t.update(gV,r.event()),a=t.getStartData().getOrThunk((function(){return tV(e,n)}));o.each((function(t){iV(n,e,a,t)}))}}))})),Eo(Hi(),(function(n,r){t.getStartData().each((function(r){if(ni(r.comp.element(),n.element())){e.snaps.each((function(e){YH(n,e)}));var i=e.getTarget(n.element());t.reset(),e.onDrop(n,i)}}))}))])},vV=[In("useFixed",c),In("getTarget",a),In("onDrag",n),In("repositionTarget",!0),In("onDrop",n),$n("getBounds",zl),oV,wu("dragger",{handlers:mV})],yV=fV,bV=vV,_V=Object.freeze({mouse:yV,touch:bV}),wV=function(){var e=w.none(),t=w.none(),n=function(){e=w.none(),t=w.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=w.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},a=function(e){t=w.some(e)},s=function(){return t},l=o({});return Qa({readState:l,reset:n,update:i,getStartData:s,setStartData:a})},xV=Object.freeze({init:wV}),OV=function(e,t,n,r){var i=t.getTarget(e.element());if(t.repositionTarget){var o=Go(e.element()),a=El(o),s=_z(i),l=JH(r,a,s),u=Dz(l.coord,a,s);Fs(i,u)}},SV=Object.freeze({snapTo:OV}),CV=pc({branchKey:"mode",branches:_V,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:Ko(["sensor","range","output"],["extra"])},state:xV,apis:SV});(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(hF||(hF={}));var kV=function(e,t,n,r){var i=e+t,o=n.filter((function(e){return i<e})),a=r.filter((function(e){return i>e}));return o.or(a).getOr(i)},EV=function(e,t,n,r,i){var o={};return o.height=kV(r,t.top(),Ok(e),Ck(e)),n===hF.Both&&(o.width=kV(i,t.left(),xk(e),Sk(e))),o},AV=function(e,t,n){var r=Xn.fromDom(e.getContainer()),i=EV(e,t,n,hl(r),Sl(r));fe(i,(function(e,t){return $s(r,t,BH.numToPx(e))})),wS.fireResizeEditor(e)},TV=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},DV=function(e,t){t.delimiter||(t.delimiter="»");var n=function(n){var r=n||[],i=H(r,(function(t,n){return j_.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":n,"tab-index":-1,"aria-level":n+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()}})})),o={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return X(i.slice(1),(function(e,t){var n=e;return n.push(o),n.push(t),n}),[i[0]])},r=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!TV(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:cc([Xy.config({mode:"flow",selector:"div[role=button]"}),LE.config({}),ab.config({}),lb("elementPathEvents",[Ro((function(t,i){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Xy.focusIn(t)})),e.on("NodeChange",(function(e){var i=r(e.parents);i.length>0&&ab.set(t,n(i))}))}))])]),components:[]}},MV={renderElementPath:DV},PV=function(e,t){var n,r=function(e,n,r){return ab.set(e,[ol(t.translate(["{0} "+r,n[r]]))])};return j_.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:cc([LE.config({}),ab.config({}),Fp.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),lb("wordcount-events",[Eo(Bi(),(function(e){var t=Fp.getValue(e),n="words"===t.mode?"characters":"words";Fp.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),Ro((function(t){e.on("wordCountUpdate",(function(e){var n=Fp.getValue(t).mode;Fp.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[Bi()]=["wordcount-events","alloy.base.behaviour"],n)})},IV=function(e,t){var n=function(n){return{dom:{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},innerHtml:R_("resize-handle",t.icons)},behaviours:cc([CV.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){AV(e,i,n)},blockerClass:"tox-blocker"})])}},r=function(){var e=lx.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},i=function(e){var t=!jr(e.settings.plugins,"autoresize"),n=e.getParam("resize",t);return!1===n?hF.None:"both"===n?hF.Both:hF.Vertical},o=function(){var n=[];return e.getParam("elementpath",!0,"boolean")&&n.push(MV.renderElementPath(e,{})),jr(e.settings.plugins,"wordcount")&&n.push(PV(e,t)),e.getParam("branding",!0,"boolean")&&n.push(r()),n.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:n}]:[]},a=function(){var t=o(),r=i(e);return r!==hF.None&&t.push(n(r)),t};return{dom:{tag:"div",classes:["tox-statusbar"]},components:a()}},jV=Wr(),LV=40,NV=LV/2,RV=function(e,t){var n=Hn([]),r=Hn([]),i=function(e){var n=Fl(e);return c.getOpt(t).fold((function(){return CV.snap({sensor:jz(n.x()-NV,n.y()-NV),range:vl(n.width(),n.height()),output:jz(w.some(n.x()),w.some(n.y())),extra:{td:e}})}),(function(t){var r=n.x()-NV,i=n.y()-NV,o=LV,a=LV,s=t.element().dom().getBoundingClientRect();return CV.snap({sensor:jz(r,i),range:vl(o,a),output:jz(w.some(n.x()-s.width/2),w.some(n.y()-s.height/2)),extra:{td:e}})}))},o=function(){return H(n.get(),(function(e){return i(e)}))},a=function(e){var n=Fl(e);return f.getOpt(t).fold((function(){return CV.snap({sensor:jz(n.x()-NV,n.y()-NV),range:vl(n.width(),n.height()),output:jz(w.some(n.right()),w.some(n.bottom())),extra:{td:e}})}),(function(t){var r=n.right()-NV,i=n.bottom()-NV,o=LV,a=LV,s=t.element().dom().getBoundingClientRect();return CV.snap({sensor:jz(r,i),range:vl(o,a),output:jz(w.some(n.right()-s.width/2),w.some(n.bottom()-s.height/2)),extra:{td:e}})}))},s=function(){return H(r.get(),(function(e){return a(e)}))},l={getSnapPoints:o,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,n){g.set(n.td),e.fire("tableselectorchange",{start:g.get(),finish:m.get()})},mustSnap:!0},u={getSnapPoints:s,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(t,n){m.set(n.td),e.fire("tableselectorchange",{start:g.get(),finish:m.get()})},mustSnap:!0},c=L_(j_.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:cc([CV.config(jV.deviceType.isTouch()?{mode:"touch",snaps:l}:{mode:"mouse",blockerClass:"blocker",snaps:l}),gA.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"]}})),f=L_(j_.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:cc([CV.config(jV.deviceType.isTouch()?{mode:"touch",snaps:u}:{mode:"mouse",blockerClass:"blocker",snaps:u}),gA.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"]}})),d=ll(c.asSpec()),h=ll(f.asSpec()),p=Hn(!1),g=Hn(null),m=Hn(null),v=function(t,n,r,i){var o=n.dom().getBoundingClientRect();Ws(t.element(),"display");var a=Xo(Xn.fromDom(e.getBody())).dom().innerHeight,s=r(o),l=i(o,a);(s||l)&&$s(t.element(),"display","none")},y=function(){var e=g.get();b(e)},b=function(e){var t=i(e);CV.snapTo(d,t);var n=function(e){return e.top<0},r=function(e,t){return e.top>t};v(d,e,n,r)},_=function(){var e=m.get();x(e)},x=function(e){var t=a(e);CV.snapTo(h,t);var n=function(e){return e.bottom<0},r=function(e,t){return e.bottom>t};v(h,e,n,r)};jV.deviceType.isTouch()&&(e.on("tableselectionchange",(function(e){p.get()||(Dh(t,d),Dh(t,h),p.set(!0)),g.set(e.start),m.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),b(e.start),x(e.finish)}))})),e.on("resize ScrollContent",(function(){y(),_()})),e.on("tableselectionclear",(function(){p.get()&&(Ih(d),Ih(h),p.set(!1))})))},BV={setup:RV},$V=5,FV=400,zV=function(e){return void 0===e.touches||1!==e.touches.length?w.none():w.some(e.touches[0])},qV=function(e,t){var n=Math.abs(e.clientX-t.x()),r=Math.abs(e.clientY-t.y());return n>$V||r>$V},UV=function(e){var t=Hn(w.none()),n=Hn(!1),r=K_((function(t){e.fire("longpress",h(h({},t),{type:"longpress"})),n.set(!0)}),FV);e.on("touchstart",(function(e){zV(e).each((function(i){r.cancel();var a={x:o(i.clientX),y:o(i.clientY),target:o(e.target)};r.throttle(e),n.set(!1),t.set(w.some(a))}))}),!0),e.on("touchmove",(function(i){r.cancel(),zV(i).each((function(r){t.get().each((function(i){qV(r,i)&&(t.set(w.none()),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(e){r.cancel(),"touchend"===e.type&&n.get()&&t.get().filter((function(t){return t.target().isEqualNode(e.target)})).map((function(){e.preventDefault()}))}),!0)},HV={setupLongpress:UV},VV=function(e){var n=e.inline,r=n?TU:EU,i=$k(e)?Sq:Aq,o=w.none(),a=Wr(),s=a.browser.isIE(),l=s?["tox-platform-ie"]:[],u=a.deviceType.isTouch(),c="tox-platform-touch",f=u?[c]:[],d=lx.isRtl()?{attributes:{dir:"rtl"}}:{},p=function(){return o.bind(cU.getHeader)},g=ll({dom:h({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(l).concat(f)},d),behaviours:cc([Sh.config({useFixed:function(){return i.isDocked(p)}})])}),m=function(){return C.value(g)},v=L_({dom:{tag:"div",classes:["tox-anchorbar"]}}),y=function(){return o.bind((function(e){return v.getOpt(e)})).getOrDie("Could not find a anchor bar element")},b=function(){return o.bind((function(e){return cU.getMoreButton(e)})).getOrDie("Could not find more button element")},_=function(){return o.bind((function(e){return cU.getToolbar(e)})).getOrDie("Could not find more toolbar element")},x=function(){return o.bind((function(e){return cU.getThrobber(e)})).getOrDie("Could not find throbber element")},O=uR(g,e,y,b),S=cU.parts().menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:O,onEscape:function(){e.focus()}}),k=function(e){return Ik(e)},E=cU.parts().toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:m,backstage:O,onEscape:function(){e.focus()},split:k(e),lazyToolbar:_,lazyMoreButton:b,lazyHeader:function(){return p().getOrDie("Could not find header element")}}),A=cU.parts()["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},onEscape:function(){}}),T=cU.parts().socket({dom:{tag:"div",classes:["tox-edit-area"]}}),D=cU.parts().sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),M=cU.parts().throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:O}),P=e.getParam("statusbar",!0,"boolean"),I=P&&!n?w.some(IV(e,O.shared.providers)):w.none(),j={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[T,D]},L=Pk(e),N=Dk(e),R=Tk(e),B=k(e)!==hk.default,$=function(){return L?(B&&t.console.warn("Toolbar drawer cannot be applied when multiple toolbars are active"),[A]):N?[E]:[]},F=cU.parts().header({dom:{tag:"div",classes:["tox-editor-header"]},components:J([R?[S]:[],$(),Nk(e)?[]:[v.asSpec()]]),sticky:$k(e),editor:e,getSink:m}),z=J([[F],n?[]:[j]]),q={dom:{tag:"div",classes:["tox-editor-container"]},components:z},U=J([[q],n?[]:I.toArray(),[M]]),H=Bk(e),V=h(h({role:"application"},lx.isRtl()?{dir:"rtl"}:{}),H?{"aria-hidden":"true"}:{}),W=ll(cU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(f).concat(l),styles:h({visibility:"hidden"},H?{opacity:"0",border:"0"}:{}),attributes:V},components:U,behaviours:cc([Xy.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a"})])}));o=w.some(W),e.shortcuts.add("alt+F9","focus menubar",(function(){cU.focusMenubar(W)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){cU.focusToolbar(W)}));var K=mk(W),G=mk(g);cz.setup(e,K,G),HV.setupLongpress(e);var Y=function(){var e={broadcastAll:G.broadcast,broadcastOn:G.broadcastOn,register:function(){}};return{channels:e}},X=function(t){var n=yO.DOM,r=e.getParam("width",n.getStyle(t,"width")),i=wk(e),o=xk(e),a=Ok(e),s=BH.parseToInt(r).bind((function(e){return BH.numToPx(o.map((function(t){return Math.max(e,t)})))})).getOr(BH.numToPx(r)),l=BH.parseToInt(i).bind((function(e){return a.map((function(t){return Math.max(e,t)}))})).getOr(i),u=BH.numToPx(s),c=e.inline?"max-width":"width";if(Vs("div",c,u)&&$s(W.element(),c,u),!e.inline){var f=BH.numToPx(l);Vs("div","height",f)?$s(W.element(),"height",f):$s(W.element(),"height","200px")}return l},Z=function(){i.setup(e,p),rH.setup(e,O),LH(e,m,O),zq(e),eU(e,x,O.shared);var t=e.ui.registry.getAll(),n=t.buttons,o=t.menuItems,a=t.contextToolbars,s=t.sidebars,l=Mk(e),u={menuItems:o,menus:e.settings.menu?de(e.settings.menu,(function(e){return ke(e,{items:e.items})})):{},menubar:e.settings.menubar,toolbar:l.getOrThunk((function(){return e.getParam("toolbar",!0)})),buttons:n,sidebar:s};lz.register(e,a,g,{backstage:O}),BV.setup(e,g);var c=e.getElement(),f=X(c),d={mothership:K,uiMothership:G,outerContainer:W},h={targetNode:c,height:f};return r.render(e,d,u,O,h)};return{mothership:K,uiMothership:G,backstage:O,renderUI:Z,getUi:Y}},WV={setup:VV},KV=function(e,t){var n=w.from(_a(e,"id")).fold((function(){var e=Ma("dialog-describe");return ya(t,"id",e),e}),a);ya(e,"aria-describedby",n)},GV={labelledBy:function(e,t){var n=w.from(_a(e,"id")).fold((function(){var e=Ma("dialog-label");return ya(t,"id",e),e}),a);ya(e,"aria-labelledby",n)}},YV=o([pn("lazySink"),Cn("dragBlockClass"),$n("getBounds",zl),In("useTabstopAt",o(!0)),In("eventOrder",{}),zp("modalBehaviours",[Xy]),yu("onExecute"),_u("onEscape")]),XV={sketch:a},ZV=o([_g({name:"draghandle",overrides:function(e,t){return{behaviours:cc([CV.config({mode:"mouse",getTarget:function(e){return Ul(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),yg({schema:[pn("dom")],name:"title"}),yg({factory:XV,schema:[pn("dom")],name:"close"}),yg({factory:XV,schema:[pn("dom")],name:"body"}),_g({factory:XV,schema:[pn("dom")],name:"footer"}),bg({factory:{sketch:function(e,t){return h(h({},e),{dom:t.dom,components:t.components})}},schema:[In("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),In("components",[])],name:"blocker"})]),QV=function(e,t,n,r){var i=Ma("alloy.dialog.busy"),o=Ma("alloy.dialog.idle"),a=cc([Xy.config({mode:"special",onTab:function(){return w.some(!0)},onShiftTab:function(){return w.some(!0)}}),vb.config({})]),s=function(t){var n=e.lazySink(t).getOrDie(),s=Hn(w.none()),l=r.blocker(),u=n.getSystem().build(h(h({},l),{components:l.components.concat([ul(t)]),behaviours:cc([lb("dialog-blocker-events",[Eo(o,(function(e,n){wa(t.element(),"aria-busy")&&(xa(t.element(),"aria-busy"),s.get().each((function(e){return ab.remove(t,e)})))})),Eo(i,(function(e,n){ya(t.element(),"aria-busy","true");var r=n.event().getBusySpec();s.get().each((function(e){ab.remove(t,e)}));var i=r(t,a),o=e.getSystem().build(i);s.set(w.some(o)),ab.append(t,ul(o)),o.hasConfigured(Xy)&&Xy.focusIn(o)}))])])}));Dh(n,u),Xy.focusIn(t)},l=function(e){Zo(e.element()).each((function(t){e.getSystem().getByDom(t).each((function(e){Ih(e)}))}))},u=function(t){return jg(t,e,"body")},c=function(t){return jg(t,e,"footer")},f=function(e,t){io(e,i,{getBusySpec:t})},d=function(e){ro(e,o)},p=Ma("modal-events"),g=h(h({},e.eventOrder),{"alloy.system.attached":[p].concat(e.eventOrder["alloy.system.attached"]||[])});return{uid:e.uid,dom:e.dom,components:t,apis:{show:s,hide:l,getBody:u,getFooter:c,setIdle:d,setBusy:f},eventOrder:g,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Up(e.modalBehaviours,[ab.config({}),Xy.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),lb(p,[Ro((function(t){GV.labelledBy(t.element(),jg(t,e,"title").element()),KV(t.element(),jg(t,e,"body").element())}))])])}},JV=Qg({name:"ModalDialog",configFields:YV(),partFields:ZV(),factory:QV,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),eW=[vn("type"),vn("text"),yn("level",["info","warn","error","success"]),vn("icon"),In("url","")],tW=Nt(eW),nW=function(e){return[vn("type"),e]},rW=[vn("type"),vn("text"),Bn("disabled",!1),Bn("primary",!1),qt("name","name",Ie((function(){return Ma("button-name")})),ln),An("icon"),Bn("borderless",!1)],iW=Nt(rW),oW=[vn("type"),vn("name"),vn("label"),Bn("disabled",!1)],aW=Nt(oW),sW=un,lW=[vn("type"),vn("name")],uW=lW.concat([An("label")]),cW=uW,fW=Nt(cW),dW=ln,hW=uW,pW=Nt(hW),gW=ln,mW=uW,vW=Nt(mW),yW=Kt(),bW=function(e){return[vn("type"),mn("columns"),e]},_W=uW.concat([Bn("sandboxed",!0)]),wW=Nt(_W),xW=ln,OW=uW.concat([An("inputMode"),An("placeholder"),Bn("maximized",!1),Bn("disabled",!1)]),SW=Nt(OW),CW=ln,kW=uW.concat([On("items",[vn("text"),vn("value")]),Ln("size",1),Bn("disabled",!1)]),EW=Nt(kW),AW=ln,TW=uW.concat([Bn("constrain",!0),Bn("disabled",!1)]),DW=Nt(TW),MW=Nt([vn("width"),vn("height")]),PW=uW.concat([An("placeholder"),Bn("maximized",!1),Bn("disabled",!1)]),IW=Nt(PW),jW=ln,LW=uW.concat([Rn("filetype","file",["image","media","file"]),In("disabled",!1)]),NW=Nt(LW),RW=Nt([vn("value"),In("meta",{})]),BW=lW.concat([Nn("tag","textarea"),vn("scriptId"),vn("scriptUrl"),Fn("settings",void 0)]),$W=lW.concat([Nn("tag","textarea"),_n("init")]),FW=Yt((function(e){return Qt("customeditor.old",Lt($W),e).orThunk((function(){return Qt("customeditor.new",Lt(BW),e)}))})),zW=ln,qW=[vn("type"),vn("html"),Rn("presets","presentation",["presentation","document"])],UW=Nt(qW),HW=uW.concat([gn("currentState",Nt([pn("blob"),vn("url")]))]),VW=Nt(HW),WW=uW.concat([In("columns","auto")]),KW=Nt(WW),GW=Wt([vn("value"),vn("text"),vn("icon")]),YW=function(e){return[vn("type"),vn("label"),e]},XW=[vn("type"),Sn("header",ln),Sn("cells",Rt(ln))],ZW=Nt(XW),QW=function(e){return qt("items","items",Me(),Rt(Yt((function(t){return Qt("Checking item of "+e,JW,t).fold((function(e){return C.error(tn(e))}),(function(e){return C.value(e)}))}))))},JW=Gt((function(){return nn("type",{alertbanner:tW,bar:Nt(nW(QW("bar"))),button:iW,checkbox:aW,colorinput:fW,colorpicker:pW,dropzone:vW,grid:Nt(bW(QW("grid"))),iframe:wW,input:SW,selectbox:EW,sizeinput:DW,textarea:IW,urlinput:NW,customeditor:FW,htmlpanel:UW,imagetools:VW,collection:KW,label:Nt(YW(QW("label"))),table:ZW,panel:tK})})),eK=[vn("type"),In("classes",[]),Sn("items",JW)],tK=Nt(eK),nK=[qt("name","name",Ie((function(){return Ma("tab-name")})),ln),vn("title"),Sn("items",JW)],rK=[vn("type"),On("tabs",nK)],iK=Nt(rK),oK=Nt([vn("type"),vn("name"),Bn("active",!1)].concat(Mw)),aK=un,sK=[qt("name","name",Ie((function(){return Ma("button-name")})),ln),An("icon"),Rn("align","end",["start","end"]),Bn("primary",!1),Bn("disabled",!1)],lK=g(sK,[vn("text")]),uK=g([yn("type",["submit","cancel","custom"])],lK),cK=g([yn("type",["menu"]),An("text"),An("tooltip"),An("icon"),Sn("items",oK),$n("onSetup",(function(){return n}))],sK),fK=rn("type",{submit:uK,cancel:uK,custom:uK,menu:cK}),dK=lK,hK=fK,pK=Nt([vn("title"),gn("body",nn("type",{panel:tK,tabpanel:iK})),Nn("size","normal"),Sn("buttons",hK),In("initialData",{}),$n("onAction",n),$n("onChange",n),$n("onSubmit",n),$n("onClose",n),$n("onCancel",n),In("onTabChange",n)]),gK=function(e){return Qt("dialog",pK,e)},mK=function(e){return T(e)?[e].concat(ee(me(e),mK)):D(e)?ee(e,mK):[]},vK=function(e){return A(e.type)&&A(e.name)},yK={checkbox:sW,colorinput:dW,colorpicker:gW,dropzone:yW,input:CW,iframe:xW,sizeinput:MW,selectbox:AW,size:MW,textarea:jW,urlinput:RW,customeditor:zW,collection:GW,togglemenuitem:aK},bK=function(e){return w.from(yK[e.type])},_K=function(e){return G(mK(e),vK)},wK=function(e){var t=_K(e),n=ee(t,(function(e){return bK(e).fold((function(){return[]}),(function(t){return[gn(e.name,t)]}))}));return Nt(n)},xK=Nt(g([yn("type",["cancel","custom"])],dK)),OK=Nt([vn("title"),vn("url"),En("height"),En("width"),Dn("buttons",xK),$n("onAction",n),$n("onCancel",n),$n("onClose",n),$n("onMessage",n)]),SK=function(e){return Qt("dialog",OK,e)},CK=function(e){var t=Jt(gK(e)),n=wK(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},kK={open:function(e,t){var n=CK(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=Jt(SK(t));return e(n)},redial:function(e){return CK(e)}},EK=function(){var e=Hn(w.none()),t=function(){e.set(w.none())},n=function(t){e.set(w.some(t))},r=function(t){e.get().each(t)},i=function(){return e.get().isSome()};return{clear:t,set:n,isSet:i,on:r}},AK=function(e){var t=[],n={};return fe(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?C.error(t):C.value(n)},TK=function(e,n){var r=L_(gM.sketch((function(t){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:H(e.items,(function(e){return UL(t,e,n)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[r.asSpec()]}],behaviours:cc([Xy.config({mode:"acyclic",useTabstopAt:l(nP.isPseudoStop)}),TM.memento(r),HM.memento(r,{postprocess:function(e){return AK(e).fold((function(e){return t.console.error(e),{}}),(function(e){return e}))}})])}},DK=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:P_(e.action),behaviours:Up(e.tabButtonBehaviours,[vb.config({}),Xy.config({mode:"execution",useSpace:!0,useEnter:!0}),Fp.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},MK=Zg({name:"TabButton",configFields:[In("uid",void 0),pn("value"),qt("dom","dom",je((function(e){return{attributes:{role:"tab",id:Ma("aria"),"aria-selected":"false"}}})),on()),Cn("action"),In("domModification",{}),zp("tabButtonBehaviours",[vb,Xy,Fp]),pn("view")],factory:DK}),PK=o([pn("tabs"),pn("dom"),In("clickToDismiss",!1),zp("tabbarBehaviours",[Om,Xy]),gu(["tabClass","selectedClass"])]),IK=wg({factory:MK,name:"tabs",unit:"tab",overrides:function(e,t){var r=function(e,t){Om.dehighlight(e,t),io(e,eo(),{tabbar:e,button:t})},i=function(e,t){Om.highlight(e,t),io(e,Ji(),{tabbar:e,button:t})};return{action:function(t){var o=t.getSystem().getByUid(e.uid).getOrDie(),a=Om.isHighlighted(o,t),s=function(){return a&&e.clickToDismiss?r:a?n:i}();s(o,t)},domModification:{classes:[e.markers.tabClass]}}}}),jK=o([IK]),LK=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Up(e.tabbarBehaviours,[Om.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){ya(t.element(),"aria-selected","true")},onDehighlight:function(e,t){ya(t.element(),"aria-selected","false")}}),Xy.config({mode:"flow",getInitial:function(e){return Om.getHighlighted(e).map((function(e){return e.element()}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},NK=Qg({name:"Tabbar",configFields:PK(),partFields:jK(),factory:LK}),RK=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:Up(e.tabviewBehaviours,[ab.config({})]),domModification:{attributes:{role:"tabpanel"}}}},BK=Zg({name:"Tabview",configFields:[zp("tabviewBehaviours",[ab])],factory:RK}),$K=o([In("selectFirst",!0),vu("onChangeTab"),vu("onDismissTab"),In("tabs",[]),zp("tabSectionBehaviours",[])]),FK=yg({factory:NK,schema:[pn("dom"),xn("markers",[pn("tabClass"),pn("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),zK=yg({factory:BK,name:"tabview"}),qK=o([FK,zK]),UK=function(e,t,n,r){var i=function(t){var n=Fp.getValue(t);Ig(t,e,"tabview").each((function(r){var i=Z(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();ya(r.element(),"aria-labelledby",_a(t.element(),"id")),ab.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Ig(t,e,"tabbar").each((function(e){n(e).each(oo)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:qp(e.tabSectionBehaviours),events:Oo(J([e.selectFirst?[Ro((function(e,t){o(e,Om.getFirst)}))]:[],[Eo(Ji(),(function(e,t){var n=t.event().button();i(n)})),Eo(eo(),(function(t,n){var r=n.event().button();e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Ig(t,e,"tabview").map((function(e){return ab.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=Om.getCandidates(e),r=Z(n,(function(e){return Fp.getValue(e)===t}));return r.filter((function(t){return!Om.isHighlighted(e,t)}))};o(e,n)}}}},HK=Qg({name:"TabSection",configFields:$K(),partFields:qK(),factory:UK,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),VK=function(e,t,n){return H(e,(function(r,i){ab.set(n,e[i].view());var o=t.dom().getBoundingClientRect();return ab.set(n,[]),o.height}))},WK=function(e){return ae(oe(e,(function(e,t){return e>t?-1:e<t?1:0})))},KK=function(e,n){var r,i=Ul(e,".tox-dialog-wrap").getOr(e),o="fixed"===qs(i,"position");r=o?Math.max(t.document.documentElement.clientHeight,t.window.innerHeight):Math.max(t.document.documentElement.offsetHeight,t.document.documentElement.scrollHeight);var a=e.dom().getBoundingClientRect().height-n.dom().getBoundingClientRect().height;return r-a},GK=function(e,t){ae(e).each((function(e){return HK.showTab(t,e.value)}))},YK=function(e,t,n){Ul(e,'[role="dialog"]').each((function(r){n.get().map((function(n){return $s(t,"height","0"),Math.min(n,KK(r,e))})).each((function(e){$s(t,"height",e+"px")}))}))},XK=function(e){var t=function(){var t=Hn(w.none()),n=[Ro((function(n){Hl(n.element(),'[role="tabpanel"]').each((function(r){$s(r,"visibility","hidden"),n.getSystem().getByDom(r).toOption().each((function(n){var i=VK(e,r,n),o=WK(i);t.set(o)})),YK(n.element(),r,t),Ws(r,"visibility"),GK(e,n),U_.requestAnimationFrame((function(){YK(n.element(),r,t)}))}))})),Eo(Wi(),(function(e){Hl(e.element(),'[role="tabpanel"]').each((function(n){YK(e.element(),n,t)}))})),Eo(Yk,(function(e,n){Hl(e.element(),'[role="tabpanel"]').each((function(n){var r=kc();$s(n,"visibility","hidden");var i=Hs(n,"height").map((function(e){return parseInt(e,10)}));Ws(n,"height");var o=n.dom().getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(w.from(o)),YK(e.element(),n,t)):i.each((function(e){$s(n,"height",e+"px")})),Ws(n,"visibility"),r.each(Oc)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},ZK="send-data-to-section",QK="send-data-to-view",JK=function(e,t){var n=Hn({}),r=function(e){var t=Fp.getValue(e),r=AK(t).getOr({}),i=n.get(),o=Ce(i,r);n.set(o)},i=function(e){var t=n.get();Fp.setValue(e,t)},o=Hn(null),a=H(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[gM.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:H(e.items,(function(e){return UL(n,e,t)})),formBehaviours:cc([Xy.config({mode:"acyclic",useTabstopAt:l(nP.isPseudoStop)}),lb("TabView.form.events",[Ro(i),Bo(r)]),_c.config({channels:Ge([{key:ZK,value:{onReceive:r}},{key:QK,value:{onReceive:i}}])})])}}))]}}})),s=XK(a).smartTabHeight;return HK.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=Fp.getValue(t);io(e,Gk,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[HK.parts().tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[NK.parts().tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:cc([LE.config({})])}),HK.parts().tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:cc([lb("tabpanel",s.extraEvents),Xy.config({mode:"acyclic"}),rm.config({find:function(e){return ae(HK.getViewItems(e))}}),Fp.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([ZK],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([QK],{})}}})])})},eG=Ma("update-dialog"),tG=Ma("update-title"),nG=Ma("update-body"),rG=Ma("update-footer"),iG=Ma("body-send-message"),oG=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[JK(e.body,n)];default:return[TK(e.body,n)]}},o=function(e,t){return w.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:h(h({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:cc([TM.childAt(0),g$.config({channel:nG,updateState:o,renderComponents:i,initialData:e})])}},aG=function(e,t,n,r){return oG(e,w.some(t),n,r)},sG=function(e,t){var n=oG(e,w.none(),t,!1);return JV.parts().body(n)},lG=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[nP.craft({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:cc([LE.config({}),vb.config({})])})]}],behaviours:cc([Xy.config({mode:"acyclic",useTabstopAt:l(nP.isPseudoStop)})])};return JV.parts().body(t)},uG=function(e,t){return[Io(wi(),nP.onFocus),e(qk,(function(e,n){t.onClose(),n.onClose()})),e(Uk,(function(e,t,n,r){t.onCancel(e),ro(r,qk)})),Eo(Kk,(function(e,n){return t.onUnblock()})),Eo(Wk,(function(e,n){return t.onBlock(n.event())}))]},cG=function(e,t){var n=function(t,n){return Eo(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event(),t)}))}))},r=function(e,t){g$.getState(e).get().each((function(n){t(n,e)}))};return g(uG(n,t),[n(Hk,(function(e,t,n){t.onAction(e,{name:n.name()})}))])},fG=function(e,t){var n=function(t,n){return Eo(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event(),t)}))}))},r=function(e,t){g$.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return g(uG(n,t),[n(Vk,(function(e,t){return t.onSubmit(e)})),n(zk,(function(e,t,n){t.onChange(e,{name:n.name()})})),n(Hk,(function(e,t,n,r){var i=function(){return Xy.focusIn(r)},o=kc();t.onAction(e,{name:n.name(),value:n.value()}),kc().fold((function(){i()}),(function(e){(!ai(r.element(),e)||wa(e,"disabled")||ai(e,o.getOrNull())&&wa(o.getOrDie(),"disabled"))&&i()}))})),n(Gk,(function(e,t,n){t.onTabChange(e,{newTabName:n.name(),oldTabName:n.oldName()})})),Bo((function(t){var n=e();Fp.setValue(t,n.getData())}))])},dG={initUrlDialog:cG,initDialog:fG},hG=function(e,t){return UI(e,e.type,t)},pG=function(e,t,n){return Z(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},gG=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=K(n,(function(e){return"start"===e.align})),i=function(e,t){return gk.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:H(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},mG=function(e,t){var n=function(e,n){var r=H(n.buttons,(function(e){var n=L_(hG(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return pG(e,r,t)};return w.some({lookupByName:i,footerButtons:r})};return{dom:sx('<div class="tox-dialog__footer"></div>'),components:[],behaviours:cc([g$.config({channel:rG,initialData:e,updateState:n,renderComponents:gG})])}},vG=function(e,t){return mG(e,t)},yG=function(e,t){return JV.parts().footer(mG(e,t))},bG=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=rm.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return gM.getField(r,t).fold((function(){var n=e.getFooter(),i=g$.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return w.some(e)}))}return w.none()},_G=function(e,t){var n=e.getRoot();return g$.getState(n).get().map((function(e){return Jt(Qt("data",e.dataValidator,t))})).getOr(t)},wG=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=Fp.getValue(r),o=de(n,(function(e){return e.get()}));return h(h({},i),o)},o=function(t){r((function(r){var i=g.getData(),o=ke(i,t),a=_G(e,o),s=e.getFormWrapper();Fp.setValue(s,a),fe(n,(function(e,t){ye(o,t)&&e.set(o[t])}))}))},a=function(t){bG(e,t).each(rO.disable)},s=function(t){bG(e,t).each(rO.enable)},l=function(t){bG(e,t).each(vb.focus)},u=function(e){if(!A(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){io(t,Wk,{message:e})}))},c=function(){r((function(e){ro(e,Kk)}))},f=function(t){r((function(n){var r=e.getBody(),i=g$.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&rm.getCurrent(r).each((function(e){HK.showTab(e,t)}))}))},d=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([eG],r),n.getSystem().broadcastOn([tG],r.internalDialog),n.getSystem().broadcastOn([nG],r.internalDialog),n.getSystem().broadcastOn([rG],r.internalDialog),g.setData(r.initialData)}))},p=function(){r((function(e){ro(e,qk)}))},g={getData:i,setData:o,disable:a,enable:s,focus:l,block:u,unblock:c,showTab:f,redial:d,close:p};return g},xG=function(e){return j_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[{dom:{tag:"div",classes:["tox-icon"],innerHtml:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M17.953 7.453L13.422 12l4.531 4.547-1.406 1.406L12 13.422l-4.547 4.531-1.406-1.406L10.578 12 6.047 7.453l1.406-1.406L12 10.578l4.547-4.531z" fill-rule="evenodd"></path></svg>'}}],action:function(e){ro(e,Uk)}})},OG=function(e,t,n){var r=function(e){return[ol(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:h({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:cc([g$.config({channel:tG,renderComponents:r})])}},SG=function(){return{dom:sx('<div class="tox-dialog__draghandle"></div>')}},CG=function(e,t,n){return gk.sketch({dom:sx('<div class="tox-dialog__header"></div>'),components:[OG(e,w.some(t),n),SG(),xG(n)],containerBehaviours:cc([CV.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return Vl(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},kG=function(e,t){var n=JV.parts().title(OG(e,w.none(),t)),r=JV.parts().draghandle(SG()),i=JV.parts().close(xG(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return gk.sketch({dom:sx('<div class="tox-dialog__header"></div>'),components:o})},EG=Ox.deviceType.isTouch(),AG=function(e,t){return kG({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},TG=function(e,t){return{onClose:function(){return t.closeWindow()},onBlock:function(t){JV.setBusy(e(),(function(e,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":t.message()},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:n,components:[{dom:sx('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}))},onUnblock:function(){JV.setIdle(e())}}},DG=function(e,t,n,r){var i,o=function(e,t){return w.some(t)};return ll(JV.sketch({lazySink:r.shared.getSink,onEscape:function(e){return ro(e,Uk),w.some(!0)},useTabstopAt:function(e){return!nP.isPseudoStop(e)},modalBehaviours:cc(g([g$.config({channel:eG,updateState:o,initialData:t}),HM.memory({}),vb.config({}),lb("execute-on-form",n.concat([No(wi(),(function(e,t){Xy.focusIn(e)}))])),lb("scroll-lock",[Ro((function(){Ds(vo(),"tox-dialog__disable-scroll")})),Bo((function(){Ps(vo(),"tox-dialog__disable-scroll")}))])],e.extraBehaviours)),eventOrder:(i={},i[Li()]=["execute-on-form"],i[ji()]=["reflecting","receiving"],i[Ki()]=["scroll-lock","reflecting","messages","execute-on-form","alloy.base.behaviour"],i[Gi()]=["alloy.base.behaviour","execute-on-form","messages","reflecting","scroll-lock"],i),dom:{tag:"div",classes:["tox-dialog"].concat(e.extraClasses),styles:h({position:"relative"},e.extraStyles)},components:g([e.header,e.body],e.footer.toArray()),dragBlockClass:"tox-dialog-wrap",parts:{blocker:{dom:sx('<div class="tox-dialog-wrap"></div>'),components:[{dom:{tag:"div",classes:EG?["tox-dialog-wrap__backdrop","tox-dialog-wrap__backdrop--opaque"]:["tox-dialog-wrap__backdrop"]}}]}}}))},MG=function(e){var t=function(e){var t=H(e.items,(function(e){var t=Hn(!1);return h(h({},e),{storage:t})}));return h(h({},e),{items:t})};return H(e,(function(e){return"menu"===e.type?t(e):e}))},PG=function(e){return X(e,(function(e,t){if("menu"===t.type){var n=t;return X(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},IG=function(e,t,n){var r=AG(e.internalDialog.title,n),i=sG({body:e.internalDialog.body},n),o=MG(e.internalDialog.buttons),a=PG(o),s=yG({buttons:o},n),l=dG.initDialog((function(){return h}),TG((function(){return f}),t)),u="normal"!==e.internalDialog.size?"large"===e.internalDialog.size?["tox-dialog--width-lg"]:["tox-dialog--width-md"]:[],c={header:r,body:i,footer:w.some(s),extraClasses:u,extraBehaviours:[],extraStyles:{}},f=DG(c,e,l,n),d=function(){var e=function(){var e=JV.getBody(f);return rm.getCurrent(e).getOr(e)};return{getRoot:function(){return f},getBody:function(){return JV.getBody(f)},getFooter:function(){return JV.getFooter(f)},getFormWrapper:e}}(),h=wG(d,t.redial,a);return{dialog:f,instanceApi:h}},jG=tinymce.util.Tools.resolve("tinymce.util.URI"),LG=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!A(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){io(t,Wk,{message:e})}))},r=function(){t((function(e){ro(e,Kk)}))},i=function(){t((function(e){ro(e,qk)}))},o=function(e){t((function(t){t.getSystem().broadcastOn([iG],e)}))};return{block:n,unblock:r,close:i,sendMessage:o}},NG=["insertContent","setContent","execCommand","close","block","unblock"],RG=function(e){return T(e)&&-1!==NG.indexOf(e.mceAction)},BG=function(e){return!RG(e)&&T(e)&&ye(e,"mceAction")},$G=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!M(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},FG=function(e,n,r,i){var o,a=AG(e.title,i),s=lG(e),l=e.buttons.bind((function(e){return 0===e.length?w.none():w.some(yG({buttons:e},i))})),u=dG.initUrlDialog((function(){return b}),TG((function(){return y}),n)),c=h(h({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),f=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],d=new jG(e.url,{base_uri:new jG(t.window.location.href)}),p=d.protocol+"://"+d.host+(d.port?":"+d.port:""),g=Hn(w.none()),m=[lb("messages",[Ro((function(){var n=RC(Xn.fromDom(t.window),"message",(function(t){if(d.isSameOrigin(new jG(t.raw().origin))){var n=t.raw().data;RG(n)?$G(r,b,n):BG(n)&&e.onMessage(b,n)}}));g.set(w.some(n))})),Bo((function(){g.get().each((function(e){return e.unbind()}))}))]),_c.config({channels:(o={},o[iG]={onReceive:function(e,t){Hl(e.element(),"iframe").each((function(e){var n=e.dom().contentWindow;n.postMessage(t,p)}))}},o)})],v={header:a,body:s,footer:l,extraClasses:f,extraBehaviours:m,extraStyles:c},y=DG(v,e,u,i),b=LG(y);return{dialog:y,instanceApi:b}},zG=function(e,t,n,r){var i,o,a=Ma("dialog-label"),s=Ma("dialog-content"),l=function(e,t){return w.some(t)},u=L_(CG({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),c=L_(aG({body:e.internalDialog.body},s,n,r)),f=MG(e.internalDialog.buttons),d=PG(f),h=L_(vG({buttons:f},n)),p=dG.initDialog((function(){return m}),{onBlock:function(){},onUnblock:function(){},onClose:function(){return t.closeWindow()}}),g=ll({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=""+s,i)},eventOrder:(o={},o[ji()]=[g$.name(),_c.name()],o[Li()]=["execute-on-form"],o[Ki()]=["reflecting","execute-on-form"],o),behaviours:cc([Xy.config({mode:"cyclic",onEscape:function(e){return ro(e,qk),w.some(!0)},useTabstopAt:function(e){return!nP.isPseudoStop(e)&&("button"!==co(e)||"disabled"!==_a(e,"disabled"))}}),g$.config({channel:eG,updateState:l,initialData:e}),vb.config({}),lb("execute-on-form",p.concat([No(wi(),(function(e,t){Xy.focusIn(e)}))])),HM.memory({})]),components:[u.asSpec(),c.asSpec(),h.asSpec()]}),m=wG({getRoot:function(){return g},getFooter:function(){return h.get(g)},getBody:function(){return c.get(g)},getFormWrapper:function(){var e=c.get(g);return rm.getCurrent(e).getOr(e)}},t.redial,d);return{dialog:g,instanceApi:m}},qG=Ox.deviceType.isTouch(),UG={dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]}},HG={dom:{tag:"div",classes:["tox-dialog__header"]}},VG=function(e,t){return JV.parts().close(j_.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:cc([LE.config({})])}))},WG=function(){return JV.parts().title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},KG=function(e,t){return JV.parts().body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:sx("<p>"+t.translate(e)+"</p>")}]}]})},GG=function(e){return JV.parts().footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},YG=function(e,t){return[gk.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),gk.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},XG=function(e){return JV.sketch({lazySink:e.lazySink,onEscape:function(){return e.onCancel(),w.some(!0)},dom:{tag:"div",classes:["tox-dialog"].concat(e.extraClasses)},components:[Ce(e.headerOverride.getOr(HG),{components:[e.partSpecs.title,e.partSpecs.close]}),e.partSpecs.body,e.partSpecs.footer],parts:{blocker:{dom:sx('<div class="tox-dialog-wrap"></div>'),components:[{dom:{tag:"div",classes:qG?["tox-dialog-wrap__backdrop","tox-dialog-wrap__backdrop--opaque"]:["tox-dialog-wrap__backdrop"]}}]}},modalBehaviours:cc([lb("basic-dialog-events",[Eo(Uk,(function(t,n){e.onCancel()})),Eo(Vk,(function(t,n){e.onSubmit()}))])])})},ZG=function(e){var t=e.backstage.shared,r=function(r,i){var o=function(){JV.hide(s),i()},a=L_(UI({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:w.none()},"cancel",e.backstage)),s=ll(XG({lazySink:function(){return t.getSink()},headerOverride:w.some(UG),partSpecs:{title:WG(),close:VG((function(){o()}),t.providers),body:KG(r,t.providers),footer:GG(YG([],[a.asSpec()]))},onCancel:function(){return o()},onSubmit:n,extraClasses:["tox-alert-dialog"]}));JV.show(s);var l=a.get(s);vb.focus(l)};return{open:r}},QG=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){JV.hide(s),r(e)},o=L_(UI({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:w.none()},"submit",e.backstage)),a=UI({name:"no",text:"No",primary:!0,align:"end",disabled:!1,icon:w.none()},"cancel",e.backstage),s=ll(XG({lazySink:function(){return t.getSink()},headerOverride:w.some(UG),partSpecs:{title:WG(),close:VG((function(){i(!1)}),t.providers),body:KG(n,t.providers),footer:GG(YG([],[a,o.asSpec()]))},onCancel:function(){return i(!1)},onSubmit:function(){return i(!0)},extraClasses:["tox-confirm-dialog"]}));JV.show(s);var l=o.get(s);vb.focus(l)};return{open:n}},JG=function(e,t){return Jt(Qt("data",t,e))},eY=function(e,t){return t?[]:[dq.config({contextual:{lazyContext:function(){return w.some($l(Xn.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},leftAttr:"data-dock-left",topAttr:"data-dock-top",positionAttr:"data-dock-pos",modes:["top"],lazyViewport:function(){var t=zl(),n=Hl(Xn.fromDom(e.getContainer()),".tox-editor-header").getOrDie(),r=Fl(n),i=Math.max(t.y(),r.bottom());return Bl(t.x(),i,t.width(),t.bottom()-i)}})]},tY=function(e){var t=e.backstage,n=e.editor,r=$k(n),i=ZG(e),o=QG(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?c(e,t.shared.anchors.toolbar(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?c(e,t.shared.anchors.cursor(),r,n.ariaAttrs):u(e,r)},s=function(e,t){return l(e,t)},l=function(e,r){var i=function(e){var i=FG(e,{closeWindow:function(){JV.hide(i.dialog),r(i.instanceApi)}},n,t);return JV.show(i.dialog),i.instanceApi};return kK.openUrl(i,e)},u=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=IG(a,{redial:kK.redial,closeWindow:function(){JV.hide(s.dialog),n(s.instanceApi)}},t);return JV.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return kK.open(r,e)},c=function(e,i,o,a){var s=function(e,s,l){var u=JG(s,l),c=EK(),f={dataValidator:l,initialData:u,internalDialog:e},d=function(){return c.on((function(e){dq.refresh(e)}))},h=zG(f,{redial:kK.redial,closeWindow:function(){c.on(__.hide),n.off("ResizeEditor",d),c.clear(),o(h.instanceApi)}},t,a),p=ll(__.sketch({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{},inlineBehaviours:cc(g([lb("window-manager-inline-events",[Eo(Yi(),(function(e,t){ro(h.dialog,Uk)}))])],eY(n,r)))}));return c.set(p),__.showWithin(p,i,ul(h.dialog),w.some(vo())),r||(dq.refresh(p),n.on("ResizeEditor",d)),h.instanceApi.setData(u),Xy.focusIn(h.dialog),h.instanceApi};return kK.open(s,e)},f=function(e,t){o.open(e,(function(e){t(e)}))},d=function(e,t){i.open(e,(function(){t()}))},h=function(e){e.close()};return{open:a,openUrl:s,alert:d,close:h,confirm:f}},nY={setup:tY};function rY(){d.add("silver",(function(e){var t=WV.setup(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,a=t.getUi;AC.register(e,r.shared);var s=nY.setup({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:o(s),getNotificationManagerImpl:function(){return H_(e,{backstage:r},n)},ui:a()}}))}rY()})(window)}).call(this,n("c8ba"))},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(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,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},"04f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=32,i=7;function o(e){var t=0;while(e>=r)t|=1&e,e>>=1;return e+t}function a(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i<n&&r(e[i],e[i-1])<0)i++;s(e,t,i)}else while(i<n&&r(e[i],e[i-1])>=0)i++;return i-t}function s(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function l(e,t,n,r,i){for(r===t&&r++;r<n;r++){var o,a=e[r],s=t,l=r;while(s<l)o=s+l>>>1,i(a,e[o])<0?l=o:s=o+1;var u=r-s;switch(u){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(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function u(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l<s&&o(e,t[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(e,t[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function c(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(l<s&&o(e,t[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(e,t[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function f(e,t){var n,r,o=i,a=0,s=[];function l(e,t){n[a]=e,r[a]=t,a+=1}function f(){while(a>1){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;h(e)}}function d(){while(a>1){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,h(e)}}function h(i){var o=n[i],s=r[i],l=n[i+1],f=r[i+1];r[i]=s+f,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),a--;var d=c(e[l],e,o,s,0,t);o+=d,s-=d,0!==s&&(f=u(e[o+s-1],e,l,f,f-1,t),0!==f&&(s<=f?p(o,s,l,f):g(o,s,l,f)))}function p(n,r,a,l){var f=0;for(f=0;f<r;f++)s[f]=e[n+f];var d=0,h=a,p=n;if(e[p++]=e[h++],0!==--l)if(1!==r){var g,m,v,y=o;while(1){g=0,m=0,v=!1;do{if(t(e[h],s[d])<0){if(e[p++]=e[h++],m++,g=0,0===--l){v=!0;break}}else if(e[p++]=s[d++],g++,m=0,1===--r){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=c(e[h],s,d,r,0,t),0!==g){for(f=0;f<g;f++)e[p+f]=s[d+f];if(p+=g,d+=g,r-=g,r<=1){v=!0;break}}if(e[p++]=e[h++],0===--l){v=!0;break}if(m=u(s[d],e,h,l,0,t),0!==m){for(f=0;f<m;f++)e[p+f]=e[h+f];if(p+=m,h+=m,l-=m,0===l){v=!0;break}}if(e[p++]=s[d++],1===--r){v=!0;break}y--}while(g>=i||m>=i);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(f=0;f<l;f++)e[p+f]=e[h+f];e[p+l]=s[d]}else{if(0===r)throw new Error;for(f=0;f<r;f++)e[p+f]=s[d+f]}}else{for(f=0;f<l;f++)e[p+f]=e[h+f];e[p+l]=s[d]}else for(f=0;f<r;f++)e[p+f]=s[d+f]}function g(n,r,a,l){var f=0;for(f=0;f<l;f++)s[f]=e[a+f];var d=n+r-1,h=l-1,p=a+l-1,g=0,m=0;if(e[p--]=e[d--],0!==--r)if(1!==l){var v=o;while(1){var y=0,b=0,_=!1;do{if(t(s[h],e[d])<0){if(e[p--]=e[d--],y++,b=0,0===--r){_=!0;break}}else if(e[p--]=s[h--],b++,y=0,1===--l){_=!0;break}}while((y|b)<v);if(_)break;do{if(y=r-c(s[h],e,n,r,r-1,t),0!==y){for(p-=y,d-=y,r-=y,m=p+1,g=d+1,f=y-1;f>=0;f--)e[m+f]=e[g+f];if(0===r){_=!0;break}}if(e[p--]=s[h--],1===--l){_=!0;break}if(b=l-u(e[d],s,0,l,l-1,t),0!==b){for(p-=b,h-=b,l-=b,m=p+1,g=h+1,f=0;f<b;f++)e[m+f]=s[g+f];if(l<=1){_=!0;break}}if(e[p--]=e[d--],0===--r){_=!0;break}v--}while(y>=i||b>=i);if(_)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===l){for(p-=r,d-=r,m=p+1,g=d+1,f=r-1;f>=0;f--)e[m+f]=e[g+f];e[p]=s[h]}else{if(0===l)throw new Error;for(g=p-(l-1),f=0;f<l;f++)e[g+f]=s[f]}}else{for(p-=r,d-=r,m=p+1,g=d+1,f=r-1;f>=0;f--)e[m+f]=e[g+f];e[p]=s[h]}else for(g=p-(l-1),f=0;f<l;f++)e[g+f]=s[f]}return n=[],r=[],{mergeRuns:f,forceMergeRuns:d,pushRun:l}}function d(e,t,n,i){n||(n=0),i||(i=e.length);var s=i-n;if(!(s<2)){var u=0;if(s<r)return u=a(e,n,i,t),void l(e,n,i,n+u,t);var c=f(e,t),d=o(s);do{if(u=a(e,n,i,t),u<d){var h=s;h>d&&(h=d),l(e,n,n+h,n+u,t),u=h}c.pushRun(n,u),c.mergeRuns(),s-=u,n+=u}while(0!==s);c.forceMergeRuns()}}},"04f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y}));var r=n("07fd"),i=n("e0d3"),o=n("6d8b"),a=n("2b17"),s=n("b7d9"),l=n("edae"),u=n("ec6f"),c=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 Object(s["d"])(e,t)},e}();function f(e,t){var n=new c,i=e.data,s=n.sourceFormat=e.sourceFormat,u=e.startIndex,f="";e.seriesLayoutBy!==r["a"]&&Object(l["c"])(f);var m=[],v={},y=e.dimensionsDefine;if(y)Object(o["each"])(y,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(m.push(r),null!=n){var i="";Object(o["hasOwn"])(v,n)&&Object(l["c"])(i),v[n]=r}}));else for(var b=0;b<e.dimensionsDetectedCount;b++)m.push({index:b});var _=Object(a["c"])(s,r["a"]);t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(i,u,m,e)},n.getRawData=Object(o["bind"])(d,null,e)),n.cloneRawData=Object(o["bind"])(h,null,e);var w=Object(a["b"])(s,r["a"]);n.count=Object(o["bind"])(w,null,i,u,m);var x=Object(a["d"])(s);n.retrieveValue=function(e,t){var n=_(i,u,m,e);return O(n,t)};var O=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=m[t];return n?x(e,t,n.name):void 0}};return n.getDimensionInfo=Object(o["bind"])(p,null,m,v),n.cloneAllDimensionInfo=Object(o["bind"])(g,null,m),n}function d(e){var t=e.sourceFormat;if(!_(t)){var n="";0,Object(l["c"])(n)}return e.data}function h(e){var t=e.sourceFormat,n=e.data;if(!_(t)){var i="";0,Object(l["c"])(i)}if(t===r["c"]){for(var a=[],s=0,u=n.length;s<u;s++)a.push(n[s].slice());return a}if(t===r["e"]){for(a=[],s=0,u=n.length;s<u;s++)a.push(Object(o["extend"])({},n[s]));return a}}function p(e,t,n){if(null!=n)return Object(o["isNumber"])(n)||!isNaN(n)&&!Object(o["hasOwn"])(t,n)?e[n]:Object(o["hasOwn"])(t,n)?t[n]:void 0}function g(e){return Object(o["clone"])(e)}var m=Object(o["createHashMap"])();function v(e){e=Object(o["clone"])(e);var t=e.type,n="";t||Object(l["c"])(n);var r=t.split(":");2!==r.length&&Object(l["c"])(n);var i=!1;"echarts"===r[0]&&(t=r[1],i=!0),e.__isBuiltIn=i,m.set(t,e)}function y(e,t,n){var r=Object(i["r"])(e),o=r.length,a="";o||Object(l["c"])(a);for(var s=0,u=o;s<u;s++){var c=r[s];t=b(c,t,n,1===o?null:s),s!==u-1&&(t.length=Math.max(t.length,1))}return t}function b(e,t,n,a){var s="";t.length||Object(l["c"])(s),Object(o["isObject"])(e)||Object(l["c"])(s);var c=e.type,d=m.get(c);d||Object(l["c"])(s);var h=Object(o["map"])(t,(function(e){return f(e,d)})),p=Object(i["r"])(d.transform({upstream:h[0],upstreamList:h,config:Object(o["clone"])(e.config)}));return Object(o["map"])(p,(function(e,n){var i="";Object(o["isObject"])(e)||Object(l["c"])(i),e.data||Object(l["c"])(i);var a,s=Object(u["d"])(e.data);_(s)||Object(l["c"])(i);var c=t[0];if(c&&0===n&&!e.dimensions){var f=c.startIndex;f&&(e.data=c.data.slice(0,f).concat(e.data)),a={seriesLayoutBy:r["a"],sourceHeader:f,dimensions:c.metaRawOption.dimensions}}else a={seriesLayoutBy:r["a"],sourceHeader:0,dimensions:e.dimensions};return Object(u["b"])(e.data,a,null)}))}function _(e){return e===r["c"]||e===r["e"]}},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"0643":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("19aa"),a=n("9112"),s=n("d039"),l=n("5135"),u=n("b622"),c=n("ae93").IteratorPrototype,f=n("c430"),d=u("iterator"),h=u("toStringTag"),p=i.Iterator,g=f||"function"!=typeof p||p.prototype!==c||!s((function(){p({})})),m=function(){o(this,m)};f&&(c={},a(c,d,(function(){return this}))),l(c,h)||a(c,h,"Iterator"),!g&&l(c,"constructor")&&c.constructor!==Object||a(c,"constructor",m),m.prototype=c,r({global:!0,forced:g},{Iterator:m})},"06ad":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r={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,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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-r.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*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,o=n("6d8b"),a=n("b362"),s=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||o["noop"],this.ondestroy=e.ondestroy||o["noop"],this.onrestart=e.onrestart||o["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,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%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(o["isFunction"])(e)?e:i[e]||Object(a["a"])(e)},e}(),l=s,u=n("41ef"),c=n("7a29"),f=Array.prototype.slice;function d(e,t,n){return(t-e)*n+e}function h(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=d(t[o],n[o],r);return e}function p(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=d(t[a][s],n[a][s],r)}return e}function g(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function m(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function v(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function y(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:f.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function b(e){if(Object(o["isArrayLike"])(e)){var t=e.length;if(Object(o["isArrayLike"])(e[0])){for(var n=[],r=0;r<t;r++)n.push(f.call(e[r]));return n}return f.call(e)}return e}function _(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 w(e){return Object(o["isArrayLike"])(e&&e[0])?2:1}var x=0,O=1,S=2,C=3,k=4,E=5,A=6;function T(e){return e===k||e===E}function D(e){return e===O||e===S}var M=[0,0,0,0],P=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 r=this.keyframes,s=r.length,l=!1,f=A,d=t;if(Object(o["isArrayLike"])(t)){var h=w(t);f=h,(1===h&&!Object(o["isNumber"])(t[0])||2===h&&!Object(o["isNumber"])(t[0][0]))&&(l=!0)}else if(Object(o["isNumber"])(t)&&!Object(o["eqNaN"])(t))f=x;else if(Object(o["isString"])(t))if(isNaN(+t)){var p=u["parse"](t);p&&(d=p,f=C)}else f=x;else if(Object(o["isGradientObject"])(t)){var g=Object(o["extend"])({},d);g.colorStops=Object(o["map"])(t.colorStops,(function(e){return{offset:e.offset,color:u["parse"](e.color)}})),Object(c["m"])(t)?f=k:Object(c["o"])(t)&&(f=E),d=g}0===s?this.valType=f:f===this.valType&&f!==A||(l=!0),this.discrete=this.discrete||l;var m={time:e,value:d,rawValue:t,percent:0};return n&&(m.easing=n,m.easingFunc=Object(o["isFunction"])(n)?n:i[n]||Object(a["a"])(n)),r.push(m),m},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=D(r),l=T(r),u=0;u<i;u++){var c=n[u],f=c.value,d=o.value;c.percent=c.time/e,a||(s&&u!==i-1?y(f,d,r):l&&v(f.colorStops,d.colorStops))}if(!a&&r!==E&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<i;u++)r===x?n[u].additiveValue=n[u].value-h:r===C?n[u].additiveValue=g([],n[u].value,h,-1):D(r)&&(n[u].additiveValue=r===O?g([],n[u].value,h,-1):m([],n[u].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,f=this.propName,g=l===C,m=this._lastFr,v=Math.min;if(1===c)r=i=u[0];else{if(t<0)n=0;else if(t<this._lastFrP){var y=v(m+1,c-1);for(n=y;n>=0;n--)if(u[n].percent<=t)break;n=v(n,c-2)}else{for(n=m;n<c;n++)if(u[n].percent>t)break;n=v(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var b=i.percent-r.percent,w=0===b?1:v((t-r.percent)/b,1);i.easingFunc&&(w=i.easingFunc(w));var x=a?this._additiveValue:g?M:e[f];if(!D(l)&&!g||x||(x=this._additiveValue=[]),this.discrete)e[f]=w<1?r.rawValue:i.rawValue;else if(D(l))l===O?h(x,r[s],i[s],w):p(x,r[s],i[s],w);else if(T(l)){var S=r[s],E=i[s],A=l===k;e[f]={type:A?"linear":"radial",x:d(S.x,E.x,w),y:d(S.y,E.y,w),colorStops:Object(o["map"])(S.colorStops,(function(e,t){var n=E.colorStops[t];return{offset:d(e.offset,n.offset,w),color:_(h([],e.color,n.color,w))}})),global:E.global},A?(e[f].x2=d(S.x2,E.x2,w),e[f].y2=d(S.y2,E.y2,w)):e[f].r=d(S.r,E.r,w)}else if(g)h(x,r[s],i[s],w),a||(e[f]=_(x));else{var P=d(r[s],i[s],w);a?this._additiveValue=P:e[f]=P}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===x?e[n]=e[n]+r:t===C?(u["parse"](e[n],M),g(M,M,r,1),e[n]=_(M)):t===O?g(e[n],e[n],r,1):t===S&&m(e[n],e[n],r,1)},e}(),I=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(o["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,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(o["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new P(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,f=c[c.length-1];l=f&&f.value,u.valType===C&&l&&(l=_(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,b(l),r),this._trackKeys.push(a)}s.addKeyframe(e,b(t[a]),r)}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 r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),u=a.keyframes,c=u.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var f=u[c-1];f&&(t._target[a.propName]=f.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new l({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(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(o["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,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=b(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(o["keys"])(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var s=a.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t["b"]=I},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var r=n("6b75");function i(e,t){if(e){if("string"==typeof e)return Object(r["a"])(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"072d":function(e,t,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;e.exports=!u||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=s(e),u=arguments.length,c=1,f=o.f,d=a.f;while(u>c){var h,p=l(arguments[c++]),g=f?i(p).concat(f(p)):i(p),m=g.length,v=0;while(m>v)h=g[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},"07d1":function(e,t,n){n("94ce")},"07d7":function(e,t,n){n("a8b8")},"07fd":function(e,t,n){"use strict";n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n("6d8b"),i=Object(r["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",f="column",d="row"},"0902":function(e,t,n){n("88b6")},"0924":function(e,t,n){"use strict";function r(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[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 i(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 o(e,t,n,r){switch(n){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}))},"0983":function(e,t,n){var r=n("c901");e.exports=function(e){return Object(r(e))}},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),l=n("848b"),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.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():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(e);while(c.length)i=i.then(c.shift(),c.shift());return i}var f=e;while(n.length){var d=n.shift(),h=n.shift();try{f=d(f)}catch(p){h(p);break}}try{i=a(f)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0a9d":function(e,t,n){n("69a4")},"0ae2":function(e,t,n){var r=n("9876"),i=n("fed5"),o=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,u=0;while(s.length>u)l.call(e,a=s[u++])&&t.push(a)}return t}},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(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=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c47":function(e,t,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");e.exports=!r((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,r){t["delete"]("b"),n+=r+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}))},"0da8":function(e,t,n){"use strict";var r=n("9ab4"),i=n("19eb"),o=n("9850"),a=n("6d8b"),s=Object(a["defaults"])({x:0,y:0},i["b"]),l={style:Object(a["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i["a"].style)};function u(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.createStyle=function(e){return Object(a["createObject"])(s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=u(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",o=t[i];return null==o?r[e]:r[e]/r[i]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new o["a"](e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(i["c"]);c.prototype.type="image",t["a"]=c},"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 r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0f99":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n("e0d3"),i=n("6d8b"),o=n("07fd"),a={Must:1,Might:2,Not:3},s=Object(r["o"])();function l(e){s(e).datasetMap=Object(i["createHashMap"])()}function u(e,t,n){var r={},o=f(t);if(!o||!e)return r;var a,l,u=[],c=[],d=t.ecModel,h=s(d).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i["each"])(e,(function(t,n){var o=Object(i["isObject"])(t)?t:e[n]={name:t};"ordinal"===o.type&&null==a&&(a=n,l=v(o)),r[o.name]=[]}));var g=h.get(p)||h.set(p,{categoryWayDim:l,valueWayDim:0});function m(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function v(e){var t=e.dimsDef;return t?t.length:1}return Object(i["each"])(e,(function(e,t){var n=e.name,i=v(e);if(null==a){var o=g.valueWayDim;m(r[n],o,i),m(c,o,i),g.valueWayDim+=i}else if(a===t)m(r[n],0,i),m(u,0,i);else{o=g.categoryWayDim;m(r[n],o,i),m(c,o,i),g.categoryWayDim+=i}})),u.length&&(r.itemName=u),c.length&&(r.seriesName=c),r}function c(e,t,n){var r={},s=f(e);if(!s)return r;var l,u=t.sourceFormat,c=t.dimensionsDefine;u!==o["e"]&&u!==o["d"]||Object(i["each"])(c,(function(e,t){"name"===(Object(i["isObject"])(e)?e.name:e)&&(l=t)}));var d=function(){for(var e={},r={},i=[],o=0,s=Math.min(5,n);o<s;o++){var f=p(t.data,u,t.seriesLayoutBy,c,t.startIndex,o);i.push(f);var d=f===a.Not;if(d&&null==e.v&&o!==l&&(e.v=o),(null==e.n||e.n===e.v||!d&&i[e.n]===a.Not)&&(e.n=o),h(e)&&i[e.n]!==a.Not)return e;d||(f===a.Might&&null==r.v&&o!==l&&(r.v=o),null!=r.n&&r.n!==r.v||(r.n=o))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(d){r.value=[d.v];var h=null!=l?l:d.n;r.itemName=[h],r.seriesName=[h]}return r}function f(e){var t=e.get("data",!0);if(!t)return Object(r["v"])(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},r["b"]).models[0]}function d(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Object(r["v"])(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},r["b"]).models:[]}function h(e,t){return p(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function p(e,t,n,s,l,u){var c,f,d,h=5;if(Object(i["isTypedArray"])(e))return a.Not;if(s){var p=s[u];Object(i["isObject"])(p)?(f=p.name,d=p.type):Object(i["isString"])(p)&&(f=p)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(t===o["c"]){var g=e;if(n===o["b"]){for(var m=g[u],v=0;v<(m||[]).length&&v<h;v++)if(null!=(c=S(m[l+v])))return c}else for(v=0;v<g.length&&v<h;v++){var y=g[l+v];if(y&&null!=(c=S(y[u])))return c}}else if(t===o["e"]){var b=e;if(!f)return a.Not;for(v=0;v<b.length&&v<h;v++){var _=b[v];if(_&&null!=(c=S(_[f])))return c}}else if(t===o["d"]){var w=e;if(!f)return a.Not;m=w[f];if(!m||Object(i["isTypedArray"])(m))return a.Not;for(v=0;v<m.length&&v<h;v++)if(null!=(c=S(m[v])))return c}else if(t===o["f"]){var x=e;for(v=0;v<x.length&&v<h;v++){_=x[v];var O=Object(r["h"])(_);if(!Object(i["isArray"])(O))return a.Not;if(null!=(c=S(O[u])))return c}}function S(e){var t=Object(i["isString"])(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?a.Might:a.Not:t&&"-"!==e?a.Must:void 0}return a.Not}},"0fae":function(e,t,n){},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.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(i.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)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1148:function(e,t,n){"use strict";var r=n("a691"),i=n("1d80");e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(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}},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"131a":function(e,t,n){var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("ae40"),s=o("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),i=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"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r=n(16),i=n(39),o=n.n(i),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 u(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={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,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},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,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*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]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*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)}},f={name:"ElScrollbar",components:{Bar:c},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 r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}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]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},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(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(f.name,f)}};t["default"]=f},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")}})},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in i){var l=r[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(c){u.forEach=o}}},"15fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("caad"),n("2532");function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1687:function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(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 a(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=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]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function s(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 l(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function c(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function f(e){var t=r();return o(t,e),t}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"identity",(function(){return i})),n.d(t,"copy",(function(){return o})),n.d(t,"mul",(function(){return a})),n.d(t,"translate",(function(){return s})),n.d(t,"rotate",(function(){return l})),n.d(t,"scale",(function(){return u})),n.d(t,"invert",(function(){return c})),n.d(t,"clone",(function(){return f}))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=n("ae40"),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},1917:function(e,t){t.f={}.propertyIsEnumerable},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19eb":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n("9ab4"),i=n("d5b7"),o=n("9850"),a=n("6d8b"),s=n("4bc4"),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var f=["z","z2","invisible"],d=["invisible"],h=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype._init=function(t){for(var n=Object(a["keys"])(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}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,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&m(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&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),r=this.getBoundingRect();return r.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(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,s=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new o["a"](0,0,0,0)),t?o["a"].applyTransform(e,n,t):e.copy(n),(i||a||s)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(s),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+s-i));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new o["a"](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(a["extend"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=s["c"],this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&s["c"])},t.prototype.styleUpdated=function(){this.__dirty&=~s["c"]},t.prototype.createStyle=function(e){return Object(a["createObject"])(u,e)},t.prototype.useStyle=function(e){e[l]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[l]},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,f)},t.prototype._applyStateObj=function(t,n,r,i,o,s){e.prototype._applyStateObj.call(this,t,n,r,i,o,s);var l,u=!(n&&i);if(n&&n.style?o?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):u&&(l=r.style),l)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var h=Object(a["keys"])(c),p=0;p<h.length;p++){var g=h[p];g in l&&(l[g]=l[g],this.style[g]=c[g])}var m=Object(a["keys"])(l);for(p=0;p<m.length;p++){g=m[p];this.style[g]=this.style[g]}this._transitionState(t,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var v=this.__inHover?d:f;for(p=0;p<v.length;p++){g=v[p];n&&null!=n[g]?this[g]=n[g]:u&&null!=r[g]&&(this[g]=r[g])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(a["extend"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return c},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=s["a"]|s["c"]}(),t}(i["a"]),p=new o["a"](0,0,0,0),g=new o["a"](0,0,0,0);function m(e,t,n){return p.copy(e.getBoundingRect()),e.transform&&p.applyTransform(e.transform),g.width=t,g.height=n,!p.intersect(g)}t["c"]=h},"19fa":function(e,t,n){var r=n("fc5e"),i=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(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)}}},"1a14":function(e,t,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)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}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1be7":function(e,t,n){"use strict";n.d(t,"B",(function(){return Mt})),n.d(t,"d",(function(){return Pt})),n.d(t,"a",(function(){return Yt})),n.d(t,"l",(function(){return Hn})),n.d(t,"b",(function(){return Vn})),n.d(t,"f",(function(){return Wn})),n.d(t,"e",(function(){return Kn})),n.d(t,"g",(function(){return Gn})),n.d(t,"i",(function(){return Yn})),n.d(t,"j",(function(){return Xn})),n.d(t,"w",(function(){return Zn})),n.d(t,"u",(function(){return Qn})),n.d(t,"v",(function(){return Jn})),n.d(t,"s",(function(){return er})),n.d(t,"t",(function(){return tr})),n.d(t,"y",(function(){return nr})),n.d(t,"m",(function(){return rr})),n.d(t,"n",(function(){return ir})),n.d(t,"h",(function(){return or})),n.d(t,"q",(function(){return Ot["e"]})),n.d(t,"o",(function(){return ar})),n.d(t,"z",(function(){return sr})),n.d(t,"p",(function(){return cr})),n.d(t,"A",(function(){return fr})),n.d(t,"r",(function(){return dr})),n.d(t,"k",(function(){return hr})),n.d(t,"x",(function(){return pr})),n.d(t,"c",(function(){return gr}));var r=n("9ab4"),i=n("697e"),o=n("6d8b"),a=n("22d1"),s=n("04f6"),l=n("6fd3"),u=n("e0d3"),c=n("4319"),f=n("6cb7"),d="";"undefined"!==typeof navigator&&(d=navigator.platform||"");var h,p,g,m="rgba(0, 0, 0, 0.2)",v={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:m,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:m,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.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},y=n("0f99"),b=n("2f1f"),_=n("4041"),w=n("edae"),x="\0_ec_inner",O=1;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new c["a"](r),this._locale=new c["a"](i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=T(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,T(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):g(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||"recreate"===e||"media"===e){var s=r.getMediaOption(this);s.length&&Object(o["each"])(s,(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,r=this._componentsMap,i=this._componentsCount,a=[],s=Object(o["createHashMap"])(),l=t&&t.replaceMergeMainTypeMap;function c(t){var a=Object(b["a"])(this,t,u["r"](e[t])),s=r.get(t),c=s?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=u["q"](s,a,c);u["x"](d,t,f["a"]),n[t]=null,r.set(t,null),i.set(t,0);var p,g=[],m=[],v=0;Object(o["each"])(d,(function(e,n){var r=e.existing,i=e.newOption;if(i){var a="series"===t,s=f["a"].getClass(t,e.keyInfo.subType,!a);if(!s)return;if("tooltip"===t){if(p)return void 0;p=!0}if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var l=Object(o["extend"])({componentIndex:n},e.keyInfo);r=new s(i,this,this,l),Object(o["extend"])(r,l),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(g.push(r.option),m.push(r),v++):(g.push(void 0),m.push(void 0))}),this),n[t]=g,r.set(t,m),i.set(t,v),"series"===t&&h(this)}Object(y["g"])(this),Object(o["each"])(e,(function(e,t){null!=e&&(f["a"].hasClass(t)?t&&(a.push(t),s.set(t,!0)):n[t]=null==n[t]?Object(o["clone"])(e):Object(o["merge"])(n[t],e,!0))})),l&&l.each((function(e,t){f["a"].hasClass(t)&&!s.get(t)&&(a.push(t),s.set(t,!0))})),f["a"].topologicalTravel(a,f["a"].getAllClassMainTypes(),c,this),this._seriesIndices||h(this)},t.prototype.getOption=function(){var e=Object(o["clone"])(this.option);return Object(o["each"])(e,(function(t,n){if(f["a"].hasClass(n)){for(var r=u["r"](t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!u["l"](r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e[x],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 r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,s=this._componentsMap.get(t);return s&&s.length?(null!=r?(n=[],Object(o["each"])(u["r"](r),(function(e){s[e]&&n.push(s[e])}))):n=null!=i?E("id",i,s):null!=a?E("name",a,s):Object(o["filter"])(s,(function(e){return!!e})),A(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=a(t),i=r?this.queryComponents(r):Object(o["filter"])(this._componentsMap.get(n),(function(e){return!!e}));return s(A(i,e));function a(e){var t=n+"Index",r=n+"Id",i=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[i]?null:{mainType:n,index:e[t],id:e[r],name:e[i]}}function s(t){return e.filter?Object(o["filter"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(o["isFunction"])(e)){var i=t,a=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}}))}else for(var s=Object(o["isString"])(e)?r.get(e):Object(o["isObject"])(e)?this.findComponents(e):null,l=0;s&&l<s.length;l++){var u=s[l];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=u["e"](e,null);return Object(o["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(o["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(o["filter"])(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){p(this),Object(o["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(o["each"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){p(this),Object(o["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(o["each"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return p(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){p(this);var n=[];Object(o["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(o["createHashMap"])(n)},t.prototype.restoreData=function(e){h(this);var t=this._componentsMap,n=[];t.each((function(e,t){f["a"].hasClass(t)&&n.push(t)})),f["a"].topologicalTravel(n,f["a"].getAllClassMainTypes(),(function(n){Object(o["each"])(t.get(n),(function(t){!t||"series"===n&&C(t,e)||t.restoreData()}))}))},t.internalField=function(){h=function(e){var t=e._seriesIndices=[];Object(o["each"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(o["createHashMap"])(t)},p=function(e){0},g=function(e,t){e.option={},e.option[x]=O,e._componentsMap=Object(o["createHashMap"])({series:[]}),e._componentsCount=Object(o["createHashMap"])();var n=t.aria;Object(o["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),k(t,e._theme.option),Object(o["merge"])(t,v,!1),e._mergeOption(t,null)}}(),t}(c["a"]);function C(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}function k(e,t){var n=e.color&&!e.colorLayer;Object(o["each"])(t,(function(t,r){"colorLayer"===r&&n||f["a"].hasClass(r)||("object"===typeof t?e[r]=e[r]?Object(o["merge"])(e[r],t,!1):Object(o["clone"])(t):null==e[r]&&(e[r]=t))}))}function E(e,t,n){if(Object(o["isArray"])(t)){var r=Object(o["createHashMap"])();return Object(o["each"])(t,(function(e){if(null!=e){var t=u["e"](e,null);null!=t&&r.set(e,!0)}})),Object(o["filter"])(n,(function(t){return t&&r.get(t[e])}))}var i=u["e"](t,null);return Object(o["filter"])(n,(function(t){return t&&null!=i&&t[e]===i}))}function A(e,t){return t.hasOwnProperty("subType")?Object(o["filter"])(e,(function(e){return e&&e.subType===t.subType})):e}function T(e){var t=Object(o["createHashMap"])();return e&&Object(o["each"])(u["r"](e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(o["mixin"])(S,_["a"]);var D=S,M=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],P=function(){function e(e){o["each"](M,(function(t){this[t]=o["bind"](e[t],e)}),this)}return e}(),I=P,j=n("1f39"),L=/^(min|max)?(.+)$/,N=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(o["each"])(Object(u["r"])(e.series),(function(e){e&&e.data&&Object(o["isTypedArray"])(e.data)&&Object(o["setAsPrimitive"])(e.data)})),Object(o["each"])(Object(u["r"])(e.dataset),(function(e){e&&e.source&&Object(o["isTypedArray"])(e.source)&&Object(o["setAsPrimitive"])(e.source)}))),e=Object(o["clone"])(e);var r=this._optionBackup,i=R(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},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(o["clone"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=Object(o["clone"])(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],s=[];if(!r.length&&!i)return s;for(var l=0,u=r.length;l<u;l++)B(r[l].query,t,n)&&a.push(l);return!a.length&&i&&(a=[-1]),a.length&&!F(a,this._currentMediaIndices)&&(s=Object(o["map"])(a,(function(e){return Object(o["clone"])(-1===e?i.option:r[e].option)}))),this._currentMediaIndices=a,s},e}();function R(e,t,n){var r,i,a=[],s=e.baseOption,l=e.timeline,u=e.options,c=e.media,f=!!e.media,d=!!(u||l||s&&s.timeline);function h(e){Object(o["each"])(t,(function(t){t(e,n)}))}return s?(i=s,i.timeline||(i.timeline=l)):((d||f)&&(e.options=e.media=null),i=e),f&&Object(o["isArray"])(c)&&Object(o["each"])(c,(function(e){e&&e.option&&(e.query?a.push(e):r||(r=e))})),h(i),Object(o["each"])(u,(function(e){return h(e)})),Object(o["each"])(a,(function(e){return h(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:a}}function B(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(o["each"])(e,(function(e,t){var n=t.match(L);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();$(r[a],e,o)||(i=!1)}})),i}function $(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function F(e,t){return e.join(",")===t.join(",")}var z=N,q=o["each"],U=o["isObject"],H=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function V(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=H.length;n<r;n++){var i=H[n],a=t.normal,s=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?o["merge"](e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),s&&s[i]&&(e[i]=e[i]||{},e[i].emphasis?o["merge"](e[i].emphasis,s[i]):e[i].emphasis=s[i],s[i]=null)}}function W(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,o["defaults"](e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function K(e){W(e,"itemStyle"),W(e,"lineStyle"),W(e,"areaStyle"),W(e,"label"),W(e,"labelLine"),W(e,"upperLabel"),W(e,"edgeLabel")}function G(e,t){var n=U(e)&&e[t],r=U(n)&&n.textStyle;if(r){0;for(var i=0,o=u["c"].length;i<o;i++){var a=u["c"][i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Y(e){e&&(K(e),G(e,"label"),e.emphasis&&G(e.emphasis,"label"))}function X(e){if(U(e)){V(e),K(e),G(e,"label"),G(e,"upperLabel"),G(e,"edgeLabel"),e.emphasis&&(G(e.emphasis,"label"),G(e.emphasis,"upperLabel"),G(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(V(t),Y(t));var n=e.markLine;n&&(V(n),Y(n));var r=e.markArea;r&&Y(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var a=e.links||e.edges;if(a&&!o["isTypedArray"](a))for(var s=0;s<a.length;s++)Y(a[s]);o["each"](e.categories,(function(e){K(e)}))}if(i&&!o["isTypedArray"](i))for(s=0;s<i.length;s++)Y(i[s]);if(t=e.markPoint,t&&t.data){var l=t.data;for(s=0;s<l.length;s++)Y(l[s])}if(n=e.markLine,n&&n.data){var u=n.data;for(s=0;s<u.length;s++)o["isArray"](u[s])?(Y(u[s][0]),Y(u[s][1])):Y(u[s])}"gauge"===e.type?(G(e,"axisLabel"),G(e,"title"),G(e,"detail")):"treemap"===e.type?(W(e.breadcrumb,"itemStyle"),o["each"](e.levels,(function(e){K(e)}))):"tree"===e.type&&K(e.leaves)}}function Z(e){return o["isArray"](e)?e:e?[e]:[]}function Q(e){return(o["isArray"](e)?e[0]:e)||{}}function J(e,t){q(Z(e.series),(function(e){U(e)&&X(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),q(n,(function(t){q(Z(e[t]),(function(e){e&&(G(e,"axisLabel"),G(e.axisPointer,"label"))}))})),q(Z(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;G(t,"axisLabel"),G(t&&t.axisPointer,"label")})),q(Z(e.calendar),(function(e){W(e,"itemStyle"),G(e,"dayLabel"),G(e,"monthLabel"),G(e,"yearLabel")})),q(Z(e.radar),(function(e){G(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)})),q(Z(e.geo),(function(e){U(e)&&(Y(e),q(Z(e.regions),(function(e){Y(e)})))})),q(Z(e.timeline),(function(e){Y(e),W(e,"label"),W(e,"itemStyle"),W(e,"controlStyle",!0);var t=e.data;o["isArray"](t)&&o["each"](t,(function(e){o["isObject"](e)&&(W(e,"label"),W(e,"itemStyle"))}))})),q(Z(e.toolbox),(function(e){W(e,"iconStyle"),q(e.feature,(function(e){W(e,"iconStyle")}))})),G(Q(e.axisPointer),"label"),G(Q(e.tooltip).axisPointer,"label")}function ee(e,t){for(var n=t.split(","),r=e,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function te(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function ne(e){e&&Object(o["each"])(re,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var re=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ie=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],oe=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ae(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<oe.length;n++){var r=oe[n][1],i=oe[n][0];null!=t[r]&&(t[i]=t[r])}}function se(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function le(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ue(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function ce(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ce(e[n].children,t)}function fe(e,t){J(e,t),e.series=Object(u["r"])(e.series),Object(o["each"])(e.series,(function(e){if(Object(o["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),se(e.label);var n=e.data;if(n&&!Object(o["isTypedArray"])(n))for(var r=0;r<n.length;r++)se(n[r]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var i=ee(e,"pointer.color");null!=i&&te(e,"itemStyle.color",i)}else if("bar"===t){ae(e),ae(e.backgroundStyle),ae(e.emphasis);n=e.data;if(n&&!Object(o["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(ae(n[r]),ae(n[r]&&n[r].emphasis))}else if("sunburst"===t){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),le(e),ce(e.data,le)}else"graph"===t||"sankey"===t?ue(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(o["defaults"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ne(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(o["each"])(ie,(function(t){var n=e[t];n&&(Object(o["isArray"])(n)||(n=[n]),Object(o["each"])(n,(function(e){ne(e)})))}))}var de=n("3842");function he(e){var t=Object(o["createHashMap"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(pe)}function pe(e){Object(o["each"])(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var f,d,h=a.get(t.stackedDimension,c);if(isNaN(h))return i;s?d=a.getRawIndex(c):f=a.get(t.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,f)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=Object(de["b"])(h,v),p=v;break}}}return r[0]=h,r[1]=p,r}))}))}var ge=n("4f85"),me=n("b12f"),ve=n("e887"),ye=n("c7a2"),be=n("0da8"),_e=n("deca"),we=n("cbe5"),xe=n("861c"),Oe=n("7d6c"),Se=n("88b3"),Ce=n("282b"),ke=n("551f"),Ee=n("3901"),Ae=Object(u["o"])(),Te={itemStyle:Object(Ce["a"])(ke["a"],!0),lineStyle:Object(Ce["a"])(Ee["a"],!0)},De={lineStyle:"stroke",itemStyle:"fill"};function Me(e,t){var n=e.visualStyleMapper||Te[t];return n||(console.warn("Unknown style type '"+t+"'."),Te.itemStyle)}function Pe(e,t){var n=e.visualDrawType||De[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ie={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),a=Me(e,r),s=a(i),l=i.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=Pe(e,r),c=s[u],f=Object(o["isFunction"])(c)?c:null,d="auto"===s.fill||"auto"===s.stroke;if(!s[u]||f||d){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[u]||(s[u]=h,n.setVisual("colorFromPalette",!0)),s.fill="auto"===s.fill||Object(o["isFunction"])(s.fill)?h:s.fill,s.stroke="auto"===s.stroke||Object(o["isFunction"])(s.stroke)?h:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(o["extend"])({},s);i[u]=f(r),t.setItemVisual(n,"style",i)}}}},je=new c["a"],Le={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Me(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){je.option=n[r];var s=i(je),l=e.ensureUniqueItemVisual(t,"style");Object(o["extend"])(l,s),je.option.decal&&(e.setItemVisual(t,"decal",je.option.decal),je.option.decal.dirty=!0),a in s&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Ne={performRawSeries:!0,overallReset:function(e){var t=Object(o["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Ae(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=Ae(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Pe(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",f=n.count();u[s]=t.getColorFromPalette(c,o,f)}}))}}))}},Re=n("2dc5"),Be=n("76a5"),$e=n("8d32"),Fe=Math.PI;function ze(e,t){t=t||{},o["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 Re["a"],r=new ye["a"]({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new Be["a"]({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),s=new ye["a"]({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(s),t.showSpinner&&(i=new $e["a"]({shape:{startAngle:-Fe/2,endAngle:-Fe/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Fe/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Fe/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),s.setShape({x:l-o,y:u-o,width:2*o,height:2*o}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var qe=n("9fbc"),Ue=n("8918"),He=function(){function e(e,t,n,r){this._stageTaskMap=Object(o["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}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),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.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),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(o["createHashMap"])();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(o["each"])(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a="";Object(o["assert"])(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},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,r){r=r||{};var i=!1,a=this;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(o["each"])(e,(function(e,o){if(!r.visualType||r.visualType===e.visualType){var l=a._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var f,d=c.agentStubMap;d.each((function(e){s(r,e)&&(e.dirty(),f=!0)})),f&&c.dirty(),a.updatePayload(c,n);var h=a.getPerformArgs(c,r.block);d.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(o,l){s(r,o)&&o.dirty();var u=a.getPerformArgs(o,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(u)&&(i=!0)}))}})),this.unfinished=i||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,r){var i=this,a=t.seriesTaskMap,s=t.seriesTaskMap=Object(o["createHashMap"])(),l=e.seriesType,u=e.getTargetSeries;function c(t){var o=t.uid,l=s.set(o,a&&a.get(o)||Object(qe["a"])({plan:Ye,reset:Xe,count:Je}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Object(qe["a"])({reset:Ve});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var s=a.agentStubMap,l=a.agentStubMap=Object(o["createHashMap"])(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";function p(e){var t=e.uid,n=l.set(t,s&&s.get(t)||(d=!0,Object(qe["a"])({reset:We,onDirty:Ge})));n.context={model:e,overallProgress:f},n.agent=a,n.__block=f,i._pipe(e,n)}Object(o["assert"])(!e.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,r).each(p):(f=!1,Object(o["each"])(n.getSeries(),p)),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(o["isFunction"])(e)&&(e={overallReset:e,seriesType:et(e)}),e.uid=Object(Ue["c"])("stageHandler"),t&&(e.visualType=t),e},e}();function Ve(e){e.overallReset(e.ecModel,e.api,e.payload)}function We(e){return e.overallProgress&&Ke}function Ke(){this.agent.dirty(),this.getDownstream().dirty()}function Ge(){this.agent&&this.agent.dirty()}function Ye(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Xe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(u["r"])(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(o["map"])(t,(function(e,t){return Qe(t)})):Ze}var Ze=Qe(0);function Qe(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Je(e){return e.data.count()}function et(e){tt=null;try{e(nt,rt)}catch(t){}return tt}var tt,nt={},rt={};function it(e,t){for(var n in t.prototype)e[n]=o["noop"]}it(nt,D),it(rt,I),nt.eachSeriesByType=nt.eachRawSeriesByType=function(e){tt=e},nt.eachComponent=function(e){"series"===e.mainType&&e.subType&&(tt=e.subType)};var ot=He,at=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],st={color:at,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],at]},lt="#B9B8CE",ut="#100C2A",ct=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ft=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dt={darkMode:!0,color:ft,backgroundColor:ut,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},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:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:ut},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:ct(),logAxis:ct(),valueAxis:ct(),categoryAxis:ct(),line:{symbol:"circle"},graph:{color:ft},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dt.categoryAxis.splitLine.show=!1;var ht=dt,pt=n("625e"),gt=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(o["isString"](e)){var i=Object(pt["f"])(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o["each"](e,(function(e,i){for(var o=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var f=i.slice(0,c);"data"!==f&&(t.mainType=f,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(i)&&(n[i]=e,o=!0),o||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),mt=["symbol","symbolSize","symbolRotate","symbolOffset"],vt=mt.concat(["symbolKeepAspect"]),yt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,s=0;s<mt.length;s++){var l=mt[s],u=e.get(l);Object(o["isFunction"])(u)?(a=!0,i[l]=u):r[l]=u}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Object(o["extend"])({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=Object(o["keys"])(i);return{dataEach:a?f:null}}}function f(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,i[s](r,o))}}}},bt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?r:null}}function r(e,t){for(var n=e.getItemModel(t),r=0;r<vt.length;r++){var i=vt[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}}},_t=n("0924"),wt=n("f3bb"),xt=n("04f7"),Ot=n("ef59"),St=n("fadd"),Ct=n("b3c1");function kt(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");if(n){var i=r.ensureUniqueItemVisual(e,"style");i.decal=Object(Ct["a"])(n,t)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=Object(Ct["a"])(i,t)}}}))}var Et=new l["a"],At=Et,Tt=n("726e"),Dt=n("58c9"),Mt="5.5.1",Pt={zrender:"5.6.0"},It=1,jt=800,Lt=900,Nt=1e3,Rt=2e3,Bt=5e3,$t=1e3,Ft=1100,zt=2e3,qt=3e3,Ut=4e3,Ht=4500,Vt=4600,Wt=5e3,Kt=6e3,Gt=7e3,Yt={PROCESSOR:{FILTER:Nt,SERIES_FILTER:jt,STATISTIC:Bt},VISUAL:{LAYOUT:$t,PROGRESSIVE_LAYOUT:Ft,GLOBAL:zt,CHART:qt,POST_CHART_LAYOUT:Vt,COMPONENT:Ut,BRUSH:Wt,CHART_ITEM:Ht,ARIA:Kt,DECAL:Gt}},Xt="__flagInMainProcess",Zt="__pendingUpdate",Qt="__needsUpdateStatus",Jt=/^[a-zA-Z0-9_]+$/,en="__connectUpdateStatus",tn=0,nn=1,rn=2;function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return sn(this,e,t);Mn(this.id)}}function an(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sn(this,e,t)}}function sn(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[t].apply(e,n)}var ln,un,cn,fn,dn,hn,pn,gn,mn,vn,yn,bn,_n,wn,xn,On,Sn,Cn,kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t}(l["a"]),En=kn.prototype;En.on=an("on"),En.off=an("off");var An=function(e){function t(t,n,r){var a=e.call(this,new gt)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],r=r||{},Object(o["isString"])(n)&&(n=Rn[n]),a._dom=t;var l="canvas",u="auto",c=!1;r.ssr&&i["registerSSRDataGetter"]((function(e){var t=Object(xe["a"])(e),n=t.dataIndex;if(null!=n){var r=Object(o["createHashMap"])();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}}));var f=a._zr=i["init"](t,{renderer:r.renderer||l,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(o["retrieve2"])(r.useDirtyRect,c),useCoarsePointer:Object(o["retrieve2"])(r.useCoarsePointer,u),pointerSize:r.pointerSize});a._ssr=r.ssr,a._throttledZrFlush=Object(Se["c"])(Object(o["bind"])(f.flush,f),17),n=Object(o["clone"])(n),n&&fe(n,!0),a._theme=n,a._locale=Object(Ot["b"])(r.locale||Ot["a"]),a._coordSysMgr=new j["a"];var d=a._api=xn(a);function h(e,t){return e.__prio-t.__prio}return Object(s["a"])(Nn,h),Object(s["a"])(jn,h),a._scheduler=new ot(a,d,jn,Nn),a._messageCenter=new kn,a._initEvents(),a.resize=Object(o["bind"])(a.resize,a),f.animation.on("frame",a._onframe,a),vn(f,a),yn(f,a),Object(o["setAsPrimitive"])(a),a}return Object(r["a"])(t,e),t.prototype._onframe=function(){if(!this._disposed){Cn(this);var e=this._scheduler;if(this[Zt]){var t=this[Zt].silent;this[Xt]=!0;try{ln(this),fn.update.call(this,null,this[Zt].updateParams)}catch(a){throw this[Xt]=!1,this[Zt]=null,a}this._zr.flush(),this[Xt]=!1,this[Zt]=null,gn.call(this,t),mn.call(this,t)}else if(e.unfinished){var n=It,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),hn(this,r),e.performVisualTasks(r),wn(this,this._model,i,"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[Xt])if(this._disposed)Mn(this.id);else{var r,i,a;if(Object(o["isObject"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Xt]=!0,!this._model||t){var s=new z(this._api),l=this._theme,u=this._model=new D;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:i},Ln);var c={seriesTransition:a,optionChanged:!0};if(n)this[Zt]={silent:r,updateParams:c},this[Xt]=!1,this.getZr().wakeUp();else{try{ln(this),fn.update.call(this,null,c)}catch(f){throw this[Zt]=null,this[Xt]=!1,f}this._ssr||this._zr.flush(),this[Zt]=null,this[Xt]=!1,gn.call(this,r),mn.call(this,r)}}},t.prototype.setTheme=function(){Object(w["a"])("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||a["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(a["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(o["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,r=[],i=this;Object(o["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(o["each"])(r,(function(e){e.group.ignore=!1})),a}Mn(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,a=Math.max,s=1/0;if(Fn[n]){var l=s,u=s,c=-s,f=-s,d=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();Object(o["each"])($n,(function(i,s){if(i.group===n){var h=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o["clone"])(e)),p=i.getDom().getBoundingClientRect();l=r(p.left,l),u=r(p.top,u),c=a(p.right,c),f=a(p.bottom,f),d.push({dom:h,left:p.left,top:p.top})}})),l*=h,u*=h,c*=h,f*=h;var p=c-l,g=f-u,m=Tt["d"].createCanvas(),v=i["init"](m,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:g}),t){var y="";return Object(o["each"])(d,(function(e){var t=e.left-l,n=e.top-u;y+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new ye["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),Object(o["each"])(d,(function(e){var t=new be["a"]({style:{x:e.left*h-l,y:e.top*h-u,image:e.dom}});v.add(t)})),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Mn(this.id)},t.prototype.convertToPixel=function(e,t){return dn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=u["s"](r,e);return Object(o["each"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(o["each"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Mn(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=u["s"](n,e,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Object(_t["a"])(o,a,t):Object(_t["b"])(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(o["each"])(Dn,(function(t){var n=function(n){var r,i=e.getModel(),a=n.target,s="globalout"===t;if(s?r={}:a&&Object(St["a"])(a,(function(e){var t=Object(xe["a"])(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=Object(o["extend"])({},t.eventData),!0}),!0),r){var l=r.componentType,u=r.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",u=r.seriesIndex);var c=l&&null!=u&&i.getComponent(l,u),f=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:f},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(o["each"])(In,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(o["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(wt["b"])(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Mn(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Mn(this.id);else{this._disposed=!0;var e=this.getDom();e&&u["w"](this.getDom(),Un,"");var t=this,n=t._api,r=t._model;Object(o["each"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(o["each"])(t._chartsViews,(function(e){e.dispose(r,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[Xt])if(this._disposed)Mn(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[Zt]&&(null==r&&(r=this[Zt].silent),n=!0,this[Zt]=null),this[Xt]=!0;try{n&&ln(this),fn.update.call(this,{type:"resize",animation:Object(o["extend"])({duration:0},e&&e.animation)})}catch(i){throw this[Xt]=!1,i}this[Xt]=!1,gn.call(this,r),mn.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Bn[e]){var n=Bn[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Mn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(o["extend"])({},e);return t.type=In[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(t)||(t={silent:!!t}),Pn[e.type]&&this._model)if(this[Xt])this._pendingActions.push(e);else{var n=t.silent;pn.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&a["a"].browser.weChat&&this._throttledZrFlush(),gn.call(this,n),mn.call(this,n)}},t.prototype.updateLabelLayout=function(){At.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Mn(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.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=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,a,l=t.concat(n);Object(s["a"])(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(o["each"])(l,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Oe["e"]&&e.states.emphasis?t.push("emphasis"):e.hoverState===Oe["d"]&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){e.isGroup||i++})),i>t.get("hoverLayerThreshold")&&!a["a"].node&&!a["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 l(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function c(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return f(e,n,r,-1/0),!0}))}}function f(e,t,n,r){var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(f(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}function d(e,t){t.eachRendered((function(e){if(!_e["d"](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 h(e,t){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(_e["d"](e))return;if(e instanceof we["b"]&&Object(Oe["E"])(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}ln=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),un(e,!0),un(e,!1),t.plan()},un=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var f=Object(pt["f"])(e.type),d=t?me["a"].getClass(f.main,f.sub):ve["a"].getClass(f.sub);0,c=new d,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},cn=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var c,f=n.excludeSeriesId;null!=f&&(c=Object(o["createHashMap"])(),Object(o["each"])(u["r"](f),(function(e){var t=u["e"](e,null);null!=t&&c.set(t,!0)}))),a&&a.eachComponent(l,(function(t){var r=c&&null!=c.get(t.id);if(!r)if(Object(Oe["z"])(n))if(t instanceof ge["b"])n.type!==Oe["c"]||n.notBlur||t.get(["emphasis","disabled"])||Object(Oe["m"])(t,n,e._api);else{var i=Object(Oe["t"])(t.mainType,t.componentIndex,n.name,e._api),a=i.focusSelf,s=i.dispatchers;n.type===Oe["c"]&&a&&!n.notBlur&&Object(Oe["l"])(t.mainType,t.componentIndex,e._api),s&&Object(o["each"])(s,(function(e){n.type===Oe["c"]?Object(Oe["r"])(e):Object(Oe["C"])(e)}))}else Object(Oe["A"])(n)&&t instanceof ge["b"]&&(Object(Oe["K"])(t,n,e._api),Object(Oe["L"])(t),Sn(e))}),e),a&&a.eachComponent(l,(function(t){var n=c&&null!=c.get(t.id);n||d(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(o["each"])([].concat(e._componentsViews).concat(e._chartsViews),d);function d(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},fn={prepareAndUpdate:function(e){ln(this),fn.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),hn(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),bn(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),At.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent((function(e,o){if("series"!==e){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,r,i,t);l&&l.update&&a.push(s)}else a.push(s)}}));var s=Object(o["createHashMap"])();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var a=o.updateTransform(e,r,i,t);a&&a.update&&s.set(e.uid,1)}else s.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:s}),wn(this,r,i,t,{},s),At.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ve["a"].markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),bn(this,n,this._api,t,{}),At.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),ve["a"].markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){var i=n._chartsMap[e.__viewId];i.updateVisual(e,r,n._api,t)})),At.trigger("afterupdate",r,this._api))},updateLayout:function(e){fn.update.call(this,e)}},dn=function(e,t,n,r){if(e._disposed)Mn(e.id);else{for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=u["s"](o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(i=c[t](o,s,r)))return i}0}},hn=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},pn=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,s=Pn[i],l=s.actionInfo,c=(l.update||"update").split(":"),f=c.pop(),d=null!=c[0]&&Object(pt["f"])(c[0]);this[Xt]=!0;var h=[e],p=!1;e.batch&&(p=!0,h=Object(o["map"])(e.batch,(function(t){return t=Object(o["defaults"])(Object(o["extend"])({},t),e),t.batch=null,t})));var g,m=[],v=Object(Oe["A"])(e),y=Object(Oe["z"])(e);if(y&&Object(Oe["k"])(this._api),Object(o["each"])(h,(function(t){if(g=s.action(t,n._model,n._api),g=g||Object(o["extend"])({},t),g.type=l.event||g.type,m.push(g),y){var r=u["t"](e),i=r.queryOptionMap,a=r.mainTypeSpecified,c=a?i.keys()[0]:"series";cn(n,f,t,c),Sn(n)}else v?(cn(n,f,t,"series"),Sn(n)):d&&cn(n,f,t,d.main,d.sub)})),"none"!==f&&!y&&!v&&!d)try{this[Zt]?(ln(this),fn.update.call(this,e),this[Zt]=null):fn[f].call(this,e)}catch(w){throw this[Xt]=!1,w}if(g=p?{type:l.event||i,escapeConnect:a,batch:m}:m[0],this[Xt]=!1,!t){var b=this._messageCenter;if(b.trigger(g.type,g),v){var _={type:"selectchanged",escapeConnect:a,selected:Object(Oe["u"])(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};b.trigger(_.type,_)}}},gn=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();pn.call(this,n,e)}},mn=function(e){!e&&this.trigger("updated")},vn=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Zt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},yn=function(e,t){e.on("mouseover",(function(e){var n=e.target,r=Object(St["a"])(n,Oe["y"]);r&&(Object(Oe["x"])(r,e,t._api),Sn(t))})).on("mouseout",(function(e){var n=e.target,r=Object(St["a"])(n,Oe["y"]);r&&(Object(Oe["w"])(r,e,t._api),Sn(t))})).on("click",(function(e){var n=e.target,r=Object(St["a"])(n,(function(e){return null!=Object(xe["a"])(e).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Object(xe["a"])(r);t._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},bn=function(e,n,r,i,a){t(n),_n(e,n,r,i,a),Object(o["each"])(e._chartsViews,(function(e){e.__alive=!1})),wn(e,n,r,i,a),Object(o["each"])(e._chartsViews,(function(e){e.__alive||e.remove(n,r)}))},_n=function(e,t,n,r,i,a){Object(o["each"])(a||e._componentsViews,(function(e){var i=e.__model;d(i,e),e.render(i,t,n,r),c(i,e),h(i,e)}))},wn=function(e,t,n,r,a,s){var u=e._scheduler;a=Object(o["extend"])(a||{},{updatedSeries:t.getSeries()}),At.trigger("series:beforeupdate",t,n,a);var f=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,r),d(t,n),s&&s.get(t.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get("silent"),l(t,n),Object(Oe["L"])(t)})),u.unfinished=f||u.unfinished,At.trigger("series:layoutlabels",t,n,a),At.trigger("series:transition",t,n,a),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];c(t,n),h(t,n)})),i(e,t),At.trigger("series:afterupdate",t,n,a)},Sn=function(e){e[Qt]=!0,e.getZr().wakeUp()},Cn=function(e){e[Qt]&&(e.getZr().storage.traverse((function(e){_e["d"](e)||n(e)})),e[Qt]=!1)},xn=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["a"])(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){Object(Oe["r"])(t,n),Sn(e)},n.prototype.leaveEmphasis=function(t,n){Object(Oe["C"])(t,n),Sn(e)},n.prototype.enterBlur=function(t){Object(Oe["q"])(t),Sn(e)},n.prototype.leaveBlur=function(t){Object(Oe["B"])(t),Sn(e)},n.prototype.enterSelect=function(t){Object(Oe["s"])(t),Sn(e)},n.prototype.leaveSelect=function(t){Object(Oe["D"])(t),Sn(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}(I))(e)},On=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[en]=t}}Object(o["each"])(In,(function(n,r){e._messageCenter.on(r,(function(n){if(Fn[e.group]&&e[en]!==tn){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Object(o["each"])($n,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,tn),Object(o["each"])(i,(function(e){e[en]!==nn&&e.dispatchAction(r)})),t(i,rn)}}))}))}}(),t}(l["a"]),Tn=An.prototype;Tn.on=on("on"),Tn.off=on("off"),Tn.one=function(e,t,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),r.off(e,i)}Object(w["a"])("ECharts#one is deprecated."),this.on.call(this,e,i,n)};var Dn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Mn(e){0}var Pn={},In={},jn=[],Ln=[],Nn=[],Rn={},Bn={},$n={},Fn={},zn=+new Date-0,qn=+new Date-0,Un="_echarts_instance_";function Hn(e,t,n){var r=!(n&&n.ssr);if(r){0;var i=Yn(e);if(i)return i;0}var o=new An(e,t,n);return o.id="ec_"+zn++,$n[o.id]=o,r&&u["w"](e,Un,o.id),On(o),At.trigger("afterinit",o),o}function Vn(e){if(Object(o["isArray"])(e)){var t=e;e=null,Object(o["each"])(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+qn++,Object(o["each"])(t,(function(t){t.group=e}))}return Fn[e]=!0,e}function Wn(e){Fn[e]=!1}var Kn=Wn;function Gn(e){Object(o["isString"])(e)?e=$n[e]:e instanceof An||(e=Yn(e)),e instanceof An&&!e.isDisposed()&&e.dispose()}function Yn(e){return $n[u["g"](e,Un)]}function Xn(e){return $n[e]}function Zn(e,t){Rn[e]=t}function Qn(e){Object(o["indexOf"])(Ln,e)<0&&Ln.push(e)}function Jn(e,t){ur(jn,e,t,Rt)}function er(e){nr("afterinit",e)}function tr(e){nr("afterupdate",e)}function nr(e,t){At.on(e,t)}function rr(e,t,n){Object(o["isFunction"])(t)&&(n=t,t="");var r=Object(o["isObject"])(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,In[t]||(Object(o["assert"])(Jt.test(r)&&Jt.test(t)),Pn[r]||(Pn[r]={action:n,actionInfo:e}),In[t]=r)}function ir(e,t){j["a"].register(e,t)}function or(e){var t=j["a"].get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function ar(e,t){ur(Nn,e,t,$t,"layout")}function sr(e,t){ur(Nn,e,t,qt,"visual")}var lr=[];function ur(e,t,n,r,i){if((Object(o["isFunction"])(t)||Object(o["isObject"])(t))&&(n=t,t=r),!(Object(o["indexOf"])(lr,n)>=0)){lr.push(n);var a=ot.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function cr(e,t){Bn[e]=t}function fr(e){Object(Tt["e"])({createCanvas:e})}function dr(e,t,n){var r=Object(Dt["a"])("registerMap");r&&r(e,t,n)}function hr(e){var t=Object(Dt["a"])("getMap");return t&&t(e)}var pr=xt["b"];sr(zt,Ie),sr(Ht,Le),sr(Ht,Ne),sr(zt,yt),sr(Ht,bt),sr(Gt,kt),Qn(fe),Jn(Lt,he),cr("default",ze),rr({type:Oe["c"],event:Oe["c"],update:Oe["c"]},o["noop"]),rr({type:Oe["b"],event:Oe["b"],update:Oe["b"]},o["noop"]),rr({type:Oe["f"],event:Oe["f"],update:Oe["f"]},o["noop"]),rr({type:Oe["i"],event:Oe["i"],update:Oe["i"]},o["noop"]),rr({type:Oe["h"],event:Oe["h"],update:Oe["h"]},o["noop"]),Zn("light",st),Zn("dark",ht);var gr={}},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c35":function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=n("1fb5"),i=n("9152"),o=n("bf74");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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){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,r):"string"===typeof t?p(e,t,n):v(e,t)}function f(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 d(e,t,n,r){return f(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function h(e,t){if(f(t),e=l(e,t<0?0:0|y(t)),!u.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"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=l(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|y(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function v(e,t){if(u.isBuffer(t)){var n=0|y(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 y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.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 r=!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(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!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 R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function O(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee(Z(t),e,n,r)}function A(e,t,n,r){return E(e,t,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function D(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return j(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return d(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.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},u.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},u.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},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return O(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return O(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=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===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function j(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Y(e[o]);return i}function B(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function $(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 F(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function q(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,o){return o||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||$(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||$(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||$(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||$(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||$(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||$(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||$(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||$(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||$(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||$(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||$(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,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},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}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},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}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},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===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(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}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=u.isBuffer(e)?e:X(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=G(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(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 r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function J(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},"1c3c":function(e,t,n){"use strict";n("a965")},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=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 r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(l){}return n}},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d3b7");function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1f39":function(e,t,n){"use strict";var r=n("6d8b"),i={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r["each"](i,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r["each"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();t["a"]=o},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(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 r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(f(e,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"20c8":function(e,t,n){"use strict";n.d(t,"b",(function(){return C}));var r=n("401b"),i=n("9850"),o=n("2cf4"),a=n("e263"),s=n("4a3f"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],f=[],d=[],h=[],p=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,b=Math.abs,_=Math.PI,w=2*_,x="undefined"!==typeof Float32Array,O=[];function S(e){var t=Math.round(e/_*1e8)/1e8;return t%2*_}function C(e,t){var n=S(e[0]);n<0&&(n+=w);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=w?i=n+w:t&&n-i>=w?i=n-w:!t&&n>i?i=n+(w-S(n-i)):t&&n<i&&(i=n-(w-S(i-n))),e[0]=n,e[1]=i}var k=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=b(n/o["e"]/e)||0,this._uy=b(n/o["e"]/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(l.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=b(e-this._xi),r=b(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(l.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),O[0]=r,O[1]=i,C(O,o),r=O[0],i=O[1];var a=i-r;return this.addData(l.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=v(i)*n+e,this._yi=y(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.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||!x||(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,r=this._len,i=0;i<t;i++)n+=e[i].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},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,x&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){f[0]=f[1]=h[0]=h[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,s=0,u=0;for(e=0;e<this._len;){var c=t[e++],g=1===e;switch(g&&(n=t[e],o=t[e+1],s=n,u=o),c){case l.M:n=s=t[e++],o=u=t[e++],h[0]=s,h[1]=u,p[0]=s,p[1]=u;break;case l.L:Object(a["c"])(n,o,t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.C:Object(a["b"])(n,o,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.Q:Object(a["e"])(n,o,t[e++],t[e++],t[e],t[e+1],h,p),n=t[e++],o=t[e++];break;case l.A:var m=t[e++],b=t[e++],_=t[e++],w=t[e++],x=t[e++],O=t[e++]+x;e+=1;var S=!t[e++];g&&(s=v(x)*_+m,u=y(x)*w+b),Object(a["a"])(m,b,_,w,x,O,S,h,p),n=v(O)*_+m,o=y(O)*w+b;break;case l.R:s=n=t[e++],u=o=t[e++];var C=t[e++],k=t[e++];Object(a["c"])(s,u,s+C,u+k,h,p);break;case l.Z:n=s,o=u;break}r["min"](f,f,h),r["max"](d,d,p)}return 0===e&&(f[0]=f[1]=d[0]=d[1]=0),new i["a"](f[0],f[1],d[0]-f[0],d[1]-f[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,f=0,d=0,h=0;h<t;){var p=e[h++],_=1===h;_&&(i=e[h],o=e[h+1],a=i,u=o);var x=-1;switch(p){case l.M:i=a=e[h++],o=u=e[h++];break;case l.L:var O=e[h++],S=e[h++],C=O-i,k=S-o;(b(C)>n||b(k)>r||h===t-1)&&(x=Math.sqrt(C*C+k*k),i=O,o=S);break;case l.C:var E=e[h++],A=e[h++],T=(O=e[h++],S=e[h++],e[h++]),D=e[h++];x=Object(s["d"])(i,o,E,A,O,S,T,D,10),i=T,o=D;break;case l.Q:E=e[h++],A=e[h++],O=e[h++],S=e[h++];x=Object(s["k"])(i,o,E,A,O,S,10),i=O,o=S;break;case l.A:var M=e[h++],P=e[h++],I=e[h++],j=e[h++],L=e[h++],N=e[h++],R=N+L;h+=1,_&&(a=v(L)*I+M,u=y(L)*j+P),x=m(I,j)*g(w,Math.abs(N)),i=v(R)*I+M,o=y(R)*j+P;break;case l.R:a=i=e[h++],u=o=e[h++];var B=e[h++],$=e[h++];x=2*B+2*$;break;case l.Z:C=a-i,k=u-o;x=Math.sqrt(C*C+k*k),i=a,o=u;break}x>=0&&(c[d++]=x,f+=x)}return this._pathLen=f,f},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,f,d,h,p,_,w,x=this.data,O=this._ux,S=this._uy,C=this._len,k=t<1,E=0,A=0,T=0;if(!k||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,h=this._pathLen,p=t*h,p))e:for(var D=0;D<C;){var M=x[D++],P=1===D;switch(P&&(i=x[D],o=x[D+1],n=i,r=o),M!==l.L&&T>0&&(e.lineTo(_,w),T=0),M){case l.M:n=i=x[D++],r=o=x[D++],e.moveTo(i,o);break;case l.L:a=x[D++],f=x[D++];var I=b(a-i),j=b(f-o);if(I>O||j>S){if(k){var L=d[A++];if(E+L>p){var N=(p-E)/L;e.lineTo(i*(1-N)+a*N,o*(1-N)+f*N);break e}E+=L}e.lineTo(a,f),i=a,o=f,T=0}else{var R=I*I+j*j;R>T&&(_=a,w=f,T=R)}break;case l.C:var B=x[D++],$=x[D++],F=x[D++],z=x[D++],q=x[D++],U=x[D++];if(k){L=d[A++];if(E+L>p){N=(p-E)/L;Object(s["g"])(i,B,F,q,N,u),Object(s["g"])(o,$,z,U,N,c),e.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break e}E+=L}e.bezierCurveTo(B,$,F,z,q,U),i=q,o=U;break;case l.Q:B=x[D++],$=x[D++],F=x[D++],z=x[D++];if(k){L=d[A++];if(E+L>p){N=(p-E)/L;Object(s["n"])(i,B,F,N,u),Object(s["n"])(o,$,z,N,c),e.quadraticCurveTo(u[1],c[1],u[2],c[2]);break e}E+=L}e.quadraticCurveTo(B,$,F,z),i=F,o=z;break;case l.A:var H=x[D++],V=x[D++],W=x[D++],K=x[D++],G=x[D++],Y=x[D++],X=x[D++],Z=!x[D++],Q=W>K?W:K,J=b(W-K)>.001,ee=G+Y,te=!1;if(k){L=d[A++];E+L>p&&(ee=G+Y*(p-E)/L,te=!0),E+=L}if(J&&e.ellipse?e.ellipse(H,V,W,K,X,G,ee,Z):e.arc(H,V,Q,G,ee,Z),te)break e;P&&(n=v(G)*W+H,r=y(G)*K+V),i=v(ee)*W+H,o=y(ee)*K+V;break;case l.R:n=i=x[D],r=o=x[D+1],a=x[D++],f=x[D++];var ne=x[D++],re=x[D++];if(k){L=d[A++];if(E+L>p){var ie=p-E;e.moveTo(a,f),e.lineTo(a+g(ie,ne),f),ie-=ne,ie>0&&e.lineTo(a+ne,f+g(ie,re)),ie-=re,ie>0&&e.lineTo(a+m(ne-ie,0),f+re),ie-=ne,ie>0&&e.lineTo(a,f+m(re-ie,0));break e}E+=L}e.rect(a,f,ne,re);break;case l.Z:if(k){L=d[A++];if(E+L>p){N=(p-E)/L;e.lineTo(i*(1-N)+n*N,o*(1-N)+r*N);break e}E+=L}e.closePath(),i=n,o=r}}},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=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=k},"217c":function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return y})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return k})),n.d(t,"a",(function(){return E}));var r=n("65ed"),i=n("eda2"),o=n("6d8b"),a=n("b7d9"),s=n("3842"),l="line-height:1";function u(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,o=e.fontWeight||"400",a=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(r["a"])(i+"")+"px;color:"+Object(r["a"])(n)+";font-weight:"+Object(r["a"])(o+""),valueStyle:"font-size:"+Object(r["a"])(s+"")+"px;color:"+Object(r["a"])(a)+";font-weight:"+Object(r["a"])(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],f=["","\n","\n\n","\n\n\n"];function d(e,t){return t.type=e,t}function h(e){return"section"===e.type}function p(e){return h(e)?m:v}function g(e){if(h(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Object(o["each"])(e.blocks,(function(e){var n=g(e);n>=t&&(t=n+ +(r&&(!n||h(e)&&!e.noHeader)))})),t}return 0}function m(e,t,n,s){var c=t.noHeader,f=b(g(t)),d=[],h=t.blocks||[];Object(o["assert"])(!h||Object(o["isArray"])(h)),h=h||[];var m=e.orderMode;if(t.sortBlocks&&m){h=h.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(Object(o["hasOwn"])(v,m)){var y=new a["a"](v[m],null);h.sort((function(e,t){return y.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===m&&h.reverse()}Object(o["each"])(h,(function(n,r){var i=t.valueFormatter,a=p(n)(i?Object(o["extend"])(Object(o["extend"])({},e),{valueFormatter:i}):e,n,r>0?f.html:0,s);null!=a&&d.push(a)}));var w="richText"===e.renderMode?d.join(f.richText):_(d.join(""),c?n:f.html);if(c)return w;var x=Object(i["h"])(t.header,"ordinal",e.useUTC),S=u(s,e.renderMode).nameStyle;return"richText"===e.renderMode?O(e,x,S)+f.richText+w:_('<div style="'+S+";"+l+';">'+Object(r["a"])(x)+"</div>"+w,n)}function v(e,t,n,r){var a=e.renderMode,s=t.noName,l=t.noValue,c=!t.markerType,f=t.name,d=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(e){return e=Object(o["isArray"])(e)?e:[e],Object(o["map"])(e,(function(e,t){return Object(i["h"])(e,Object(o["isArray"])(m)?m[t]:m,d)}))};if(!s||!l){var p=c?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),g=s?"":Object(i["h"])(f,"ordinal",d),m=t.valueType,v=l?[]:h(t.value,t.dataIndex),y=!c||!s,b=!c&&s,C=u(r,a),k=C.nameStyle,E=C.valueStyle;return"richText"===a?(c?"":p)+(s?"":O(e,g,k))+(l?"":S(e,v,y,b,E)):_((c?"":p)+(s?"":w(g,!c,k))+(l?"":x(v,y,b,E)),n)}}function y(e,t,n,r,i,o){if(e){var a=p(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function b(e){return{html:c[e],richText:f[e]}}function _(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+l+';">'+e+n+"</div>"}function w(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+Object(r["a"])(e)+"</span>"}function x(e,t,n,i){var a=n?"10px":"20px",s=t?"float:right;margin-left:"+a:"";return e=Object(o["isArray"])(e)?e:[e],'<span style="'+s+";"+i+'">'+Object(o["map"])(e,(function(e){return Object(r["a"])(e)})).join("&nbsp;&nbsp;")+"</span>"}function O(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function S(e,t,n,r,i){var a=[i],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(o["isArray"])(t)?t.join("  "):t,a)}function C(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Object(i["c"])(r)}function k(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var E=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(s["j"])()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,a=Object(i["g"])({color:t,type:e,renderMode:n,markerId:r});return Object(o["isString"])(a)?a:(this.richTextStyles[r]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(o["isArray"])(t)?Object(o["each"])(t,(function(e){return Object(o["extend"])(n,e)})):Object(o["extend"])(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(e)?l(e,t,o):n(t,o):i(e,t,o)}return o.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 o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(e,t){void 0===e&&(e="");var r=n(l,t||{}),i=o(r);return"<svg "+i+">"+e+"</svg>"},f=i.svg,d=i.xlink,h={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[f.name]=f.uri,u[d.name]=d.uri,u)},p=function(e){this.config=n(h,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return c(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var m=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return m(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},_={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},x=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},O=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){w(e,{oldUrl:r,newUrl:n})}))}])},C="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=C),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function E(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var A=i.xlink.uri,T="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function M(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function P(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(T);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(A,T,i)}})),e}var j,L=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],N=L.map((function(e){return"["+e+"]"})).join(","),R=function(e,t,n,r){var i=M(n),o=M(r),a=e.querySelectorAll(N),s=E(a,(function(e){var t=e.localName,n=e.value;return-1!==L.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(new RegExp(P(i),"g"),o)})),I(t,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},$=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(y,t));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&S(s.locationChangeEvent),o.on(B.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e)})),o.on(B.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e.parentNode),(_.isIE()||_.isEdge())&&x(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=_.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(B.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(B.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},t.prototype.render=function(){return m(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return R(this.node,n,O(e)+"#",O(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),F=e((function(e){
/*!
  * domready (c) Dustin Diaz 2014 - License MIT
  */
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),z="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",U=!!window[q];U?j=window[q]:(j=new $({attrs:{id:z,"aria-hidden":"true"}}),window[q]=j);var H=function(){var e=document.getElementById(z);e?j.attach(e):j.mount(document.body,!0)};document.body?H():F(H);var V=j;return V}))}).call(this,n("c8ba"))},2266:function(e,t,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),u=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,f){var d,h,p,g,m,v,y,b=a(t,n,c?2:1);if(f)d=e;else{if(h=s(e),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,g=o(e.length);g>p;p++)if(m=c?b(r(y=e[p])[0],y[1]):b(e[p]),m&&m instanceof u)return m;return new u(!1)}d=h.call(e)}v=d.next;while(!(y=v.call(d)).done)if(m=l(d,b,y.value,c),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};c.stop=function(e){return new u(!0,e)}},"22d1":function(e,t,n){"use strict";var r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),i=function(){function e(){this.browser=new r,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 i;function a(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[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||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},2306:function(e,t,n){"use strict";n.r(t),n.d(t,"extendShape",(function(){return L})),n.d(t,"extendPath",(function(){return R})),n.d(t,"registerShape",(function(){return B})),n.d(t,"getShapeClass",(function(){return $})),n.d(t,"makePath",(function(){return F})),n.d(t,"makeImage",(function(){return z})),n.d(t,"mergePath",(function(){return U})),n.d(t,"resizePath",(function(){return H})),n.d(t,"subPixelOptimizeLine",(function(){return V})),n.d(t,"subPixelOptimizeRect",(function(){return W})),n.d(t,"subPixelOptimize",(function(){return K})),n.d(t,"getTransform",(function(){return G})),n.d(t,"applyTransform",(function(){return Y})),n.d(t,"transformDirection",(function(){return X})),n.d(t,"groupTransition",(function(){return J})),n.d(t,"clipPointsByRect",(function(){return ee})),n.d(t,"clipRectByRect",(function(){return te})),n.d(t,"createIcon",(function(){return ne})),n.d(t,"linePolygonIntersect",(function(){return re})),n.d(t,"lineLineIntersect",(function(){return ie})),n.d(t,"setTooltipConfig",(function(){return se})),n.d(t,"traverseElements",(function(){return ue}));var r=n("342d"),i=n("1687"),o=n("401b"),a=n("cbe5");n.d(t,"Path",(function(){return a["b"]}));var s=n("8582"),l=n("0da8");n.d(t,"Image",(function(){return l["a"]}));var u=n("2dc5");n.d(t,"Group",(function(){return u["a"]}));var c=n("76a5");n.d(t,"Text",(function(){return c["a"]}));var f=n("d9fc");n.d(t,"Circle",(function(){return f["a"]}));var d=n("ae69");n.d(t,"Ellipse",(function(){return d["a"]}));var h=n("4aa2");n.d(t,"Sector",(function(){return h["a"]}));var p=n("4573");n.d(t,"Ring",(function(){return p["a"]}));var g=n("87b1");n.d(t,"Polygon",(function(){return g["a"]}));var m=n("d498");n.d(t,"Polyline",(function(){return m["a"]}));var v=n("c7a2");n.d(t,"Rect",(function(){return v["a"]}));var y=n("cb11");n.d(t,"Line",(function(){return y["a"]}));var b=n("ac0f");n.d(t,"BezierCurve",(function(){return b["a"]}));var _=n("8d32");n.d(t,"Arc",(function(){return _["a"]}));var w=n("d4c6");n.d(t,"CompoundPath",(function(){return w["a"]}));var x=n("48a9");n.d(t,"LinearGradient",(function(){return x["a"]}));var O=n("dded");n.d(t,"RadialGradient",(function(){return O["a"]}));var S=n("9850");n.d(t,"BoundingRect",(function(){return S["a"]}));var C=n("ca80");n.d(t,"OrientedBoundingRect",(function(){return C["a"]}));var k=n("dce8");n.d(t,"Point",(function(){return k["a"]}));var E=n("392f");n.d(t,"IncrementalDisplayable",(function(){return E["a"]}));var A=n("9cf9"),T=n("6d8b"),D=n("861c"),M=n("deca");n.d(t,"updateProps",(function(){return M["h"]})),n.d(t,"initProps",(function(){return M["c"]})),n.d(t,"removeElement",(function(){return M["e"]})),n.d(t,"removeElementWithFadeOut",(function(){return M["f"]})),n.d(t,"isElementRemoved",(function(){return M["d"]}));var P=Math.max,I=Math.min,j={};function L(e){return a["b"].extend(e)}var N=r["c"];function R(e,t){return N(e,t)}function B(e,t){j[e]=t}function $(e){if(j.hasOwnProperty(e))return j[e]}function F(e,t,n,i){var o=r["b"](e,t);return n&&("center"===i&&(n=q(n,o.getBoundingRect())),H(o,n)),o}function z(e,t,n){var r=new l["a"]({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(q(t,i))}}});return r}function q(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var U=r["d"];function H(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function V(e,t){return A["b"](e,e,{lineWidth:t}),e}function W(e){return A["c"](e.shape,e.shape,e.style),e}var K=A["a"];function G(e,t){var n=i["identity"]([]);while(e&&e!==t)i["mul"](n,e.getLocalTransform(),n),e=e.parent;return n}function Y(e,t,n){return t&&!Object(T["isArrayLike"])(t)&&(t=s["c"].getLocalTransform(t)),n&&(t=i["invert"]([],t)),o["applyTransform"]([],e,t)}function X(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Y(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Z(e){return!e.isGroup}function Q(e){return null!=e.shape}function J(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(Z(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),Object(M["h"])(e,i,n,Object(D["a"])(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){Z(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Q(e)&&(t.shape=Object(T["extend"])({},e.shape)),t}}function ee(e,t){return Object(T["map"])(e,(function(e){var n=e[0];n=P(n,t.x),n=I(n,t.x+t.width);var r=e[1];return r=P(r,t.y),r=I(r,t.y+t.height),[n,r]}))}function te(e,t){var n=P(e.x,t.x),r=I(e.x+e.width,t.x+t.width),i=P(e.y,t.y),o=I(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function ne(e,t,n){var r=Object(T["extend"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(T["defaults"])(i,n),new l["a"](r)):F(e.replace("path://",""),r,n,"center")}function re(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(ie(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function ie(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=oe(c,f,l,u);if(ae(d))return!1;var h=e-i,p=t-o,g=oe(h,p,l,u)/d;if(g<0||g>1)return!1;var m=oe(h,p,c,f)/d;return!(m<0||m>1)}function oe(e,t,n,r){return e*r-n*t}function ae(e){return e<=1e-6&&e>=-1e-6}function se(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(T["isString"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&Object(T["each"])(Object(T["keys"])(l),(function(e){Object(T["hasOwn"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Object(D["a"])(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(T["defaults"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function le(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ue(e,t){if(e)if(Object(T["isArray"])(e))for(var n=0;n<e.length;n++)le(e[n],t);else le(e,t)}B("circle",f["a"]),B("ellipse",d["a"]),B("sector",h["a"]),B("ring",p["a"]),B("polygon",g["a"]),B("polyline",m["a"]),B("rect",v["a"]),B("line",y["a"]),B("bezierCurve",b["a"]),B("arc",_["a"])},2382:function(e,t,n){"use strict";var r=n("23e7"),i=n("1c0b"),o=n("825a"),a=n("c5cc"),s=n("9bdd"),l=a((function(e){var t,n,r,i=this.iterator,a=this.filterer,l=this.next;while(1){if(t=o(l.call(i,e)),n=this.done=!!t.done,n)return;if(r=t.value,s(i,a,r))return r}}));r({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new l({iterator:o(this),filterer:i(e)})}})},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23dc":function(e,t,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,f,d,h,p,g=e.target,m=e.global,v=e.stat;if(c=m?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(f in t){if(h=t[f],e.noTargetGet?(p=i(c,f),d=p&&p.value):d=c[f],n=u(m?f:g+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(c,f,h,e)}}},2401:function(e,t){(function(e){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(){},r=function(e){return function(){return e}},i=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},o=r(!1),a=r(!0),s=function(){return l},l=function(){var e=function(e){return e.isNone()},t=function(e){return e()},i=function(e){return e},l={fold:function(e,t){return e()},is:o,isSome:o,isNone:a,getOr:i,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:r(null),getOrUndefined:r(void 0),or:i,orThunk:t,map:s,each:n,bind:s,exists:o,forall:a,filter:s,equals:e,equals_:e,toArray:function(){return[]},toString:r("none()")};return Object.freeze&&Object.freeze(l),l}(),u=function(e){var t=r(e),n=function(){return s},i=function(t){return t(e)},s={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:a,isNone:o,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return u(t(e))},each:function(t){t(e)},bind:i,exists:i,forall:i,filter:function(t){return t(e)?s:l},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(o,(function(t){return n(e,t)}))}};return s},c=function(e){return null===e||void 0===e?l:u(e)},f={some:u,none:s,from:c},d=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},h=function(e){return function(t){return d(t)===e}},p=h("string"),g=h("array"),m=h("boolean"),v=h("function"),y=h("number"),b=Array.prototype.slice,_=Array.prototype.push,w=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},x=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},O=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},S=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],l=t(s);l!==n&&(r.push(i),i=[]),n=l,i.push(s)}return 0!==i.length&&r.push(i),r},C=function(e,t,n){return x(e,(function(e){n=t(n,e)})),n},k=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return f.some(i)}return f.none()},E=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!g(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},A=function(e,t){var n=w(e,t);return E(n)},T=function(e){var t=b.call(e,0);return t.reverse(),t},D=function(e){return 0===e.length?f.none():f.some(e[0])},M=function(e){return 0===e.length?f.none():f.some(e[e.length-1])},P=(v(Array.from)&&Array.from,function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)}),I=function(t,n){return P(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},j=function(t,n){return P(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},L={documentPositionPreceding:I,documentPositionContainedBy:j},N=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return N(n())};return{get:n,set:r,clone:i}},R=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},B=function(e,t){var n=R(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return z(r(1),r(2))},$=function(e,t){var n=String(t).toLowerCase();return 0===e.length?F():B(e,n)},F=function(){return z(0,0)},z=function(e,t){return{major:e,minor:t}},q={nu:z,detect:$,unknown:F},U="Edge",H="Chrome",V="IE",W="Opera",K="Firefox",G="Safari",Y=function(e,t){return function(){return t===e}},X=function(){return Z({current:void 0,version:q.unknown()})},Z=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:Y(U,t),isChrome:Y(H,t),isIE:Y(V,t),isOpera:Y(W,t),isFirefox:Y(K,t),isSafari:Y(G,t)}},Q={unknown:X,nu:Z,edge:r(U),chrome:r(H),ie:r(V),opera:r(W),firefox:r(K),safari:r(G)},J="Windows",ee="iOS",te="Android",ne="Linux",re="OSX",ie="Solaris",oe="FreeBSD",ae=function(e,t){return function(){return t===e}},se=function(){return le({current:void 0,version:q.unknown()})},le=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:ae(J,t),isiOS:ae(ee,t),isAndroid:ae(te,t),isOSX:ae(re,t),isLinux:ae(ne,t),isSolaris:ae(ie,t),isFreeBSD:ae(oe,t)}},ue={unknown:se,nu:le,windows:r(J),ios:r(ee),android:r(te),linux:r(ne),osx:r(re),solaris:r(ie),freebsd:r(oe)},ce=function(e,t,n,i){var o=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!o,s=e.isiOS()||e.isAndroid(),l=s||i("(pointer:coarse)"),u=o||!a&&s&&i("(min-device-width:768px)"),c=a||s&&!u,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!f;return{isiPad:r(o),isiPhone:r(a),isTablet:r(u),isPhone:r(c),isTouch:r(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:r(f),isDesktop:r(d)}},fe=function(e,t){var n=String(t).toLowerCase();return k(e,(function(e){return e.search(n)}))},de=function(e,t){return fe(e,t).map((function(e){var n=q.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},he=function(e,t){return fe(e,t).map((function(e){var n=q.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},pe={detectBrowser:de,detectOs:he},ge=function(e,t){return-1!==e.indexOf(t)},me=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ve=function(e){return function(t){return ge(t,e)}},ye=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ge(e,"edge/")&&ge(e,"chrome")&&ge(e,"safari")&&ge(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,me],search:function(e){return ge(e,"chrome")&&!ge(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ge(e,"msie")||ge(e,"trident")}},{name:"Opera",versionRegexes:[me,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ve("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ve("firefox")},{name:"Safari",versionRegexes:[me,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ge(e,"safari")||ge(e,"mobile/"))&&ge(e,"applewebkit")}}],be=[{name:"Windows",search:ve("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ge(e,"iphone")||ge(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ve("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ve("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ve("linux"),versionRegexes:[]},{name:"Solaris",search:ve("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ve("freebsd"),versionRegexes:[]}],_e={browsers:r(ye),oses:r(be)},we=function(e,t){var n=_e.browsers(),r=_e.oses(),i=pe.detectBrowser(n,e).fold(Q.unknown,Q.nu),o=pe.detectOs(r,e).fold(ue.unknown,ue.nu),a=ce(o,i,e,t);return{browser:i,os:o,deviceType:a}},xe={detect:we},Oe=function(t){return e.window.matchMedia(t).matches},Se=N(xe.detect(e.navigator.userAgent,Oe)),Ce=function(){return Se.get()},ke=function(t,n){var r=n||e.document,i=r.createElement("div");if(i.innerHTML=t,!i.hasChildNodes()||i.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Te(i.childNodes[0])},Ee=function(t,n){var r=n||e.document,i=r.createElement(t);return Te(i)},Ae=function(t,n){var r=n||e.document,i=r.createTextNode(t);return Te(i)},Te=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:r(e)}},De=function(e,t,n){var r=e.dom();return f.from(r.elementFromPoint(t,n)).map(Te)},Me={fromHtml:ke,fromTag:Ee,fromText:Ae,fromDom:Te,fromPoint:De},Pe=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),Ie=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,Pe),je=function(e,t){var n=e.dom();if(n.nodeType!==Ie)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Le=function(e,t){return e.dom()===t.dom()},Ne=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Re=function(e,t){return L.documentPositionContainedBy(e.dom(),t.dom())},Be=Ce().browser,$e=Be.isIE()?Re:Ne,Fe=je,ze=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),qe=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Ue=tinymce.util.Tools.resolve("tinymce.util.VK"),He=function(e,t,n){return e.isSome()&&t.isSome()?f.some(n(e.getOrDie(),t.getOrDie())):f.none()},Ve=function(t,n){var r=n||e.document,i=r.createDocumentFragment();return x(t,(function(e){i.appendChild(e.dom())})),Me.fromDom(i)},We=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var i={};return x(e,(function(e,n){i[e]=r(t[n])})),i}},Ke=Object.keys,Ge=function(e,t){for(var n=Ke(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ye=function(e){return f.from(e.dom().parentNode).map(Me.fromDom)},Xe=function(e){return w(e.dom().childNodes,Me.fromDom)},Ze=function(e,t){var n=e.dom().childNodes;return f.from(n[t]).map(Me.fromDom)},Qe=function(e){return Ze(e,0)},Je=function(e){return Ze(e,e.dom().childNodes.length-1)},et=(We("element","offset"),function(e,t){var n=Ye(e);n.each((function(n){n.dom().insertBefore(t.dom(),e.dom())}))}),tt=function(e,t){e.dom().appendChild(t.dom())},nt=function(e,t){x(t,(function(t){et(e,t)}))},rt=function(e,t){x(t,(function(t){tt(e,t)}))},it=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ot=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},at="undefined"!==typeof e.window?e.window:Function("return this;")(),st=function(e,t){for(var n=void 0!==t&&null!==t?t:at,r=0;r<e.length&&void 0!==n&&null!==n;++r)n=n[e[r]];return n},lt=function(e,t){var n=e.split(".");return st(n,t)},ut=function(e,t){return lt(e,t)},ct=function(e,t){var n=ut(e,t);if(void 0===n||null===n)throw new Error(e+" not available on this browser");return n},ft={getOrDie:ct},dt=function(e){return ft.getOrDie("HTMLElement",e)},ht=function(e){var t=lt("ownerDocument.defaultView",e);return dt(t).prototype.isPrototypeOf(e)},pt={isPrototypeOf:ht},gt=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),mt=tinymce.util.Tools.resolve("tinymce.util.Tools"),vt=function(e){return e&&3===e.nodeType},yt=function(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)},bt=function(e){return e&&/^(OL|UL)$/.test(e.nodeName)},_t=function(e){return e&&/^(LI|DT|DD)$/.test(e.nodeName)},wt=function(e){return e&&/^(DT|DD)$/.test(e.nodeName)},xt=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},Ot=function(e){return e&&"BR"===e.nodeName},St=function(e){return e.parentNode.firstChild===e},Ct=function(e){return e.parentNode.lastChild===e},kt=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},Et=function(e,t){return e&&e.nodeName in t},At=function(e,t){return!!Ot(t)&&!(!e.isBlock(t.nextSibling)||Ot(t.previousSibling))},Tt=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},Dt=function(e,t){return e.isChildOf(t,e.getRoot())},Mt={isTextNode:vt,isListNode:yt,isOlUlNode:bt,isDlItemNode:wt,isListItemNode:_t,isTableCellNode:xt,isBr:Ot,isFirstChild:St,isLastChild:Ct,isTextBlock:kt,isBlock:Et,isBogusBr:At,isEmpty:Tt,isChildOfBody:Dt},Pt=function(e){var t=e.selection.getStart(!0);return e.dom.getParent(t,"OL,UL,DL",$t(e,t))},It=function(e,t){return e&&1===t.length&&t[0]===e},jt=function(e){return mt.grep(e.querySelectorAll("ol,ul,dl"),(function(e){return Mt.isListNode(e)}))},Lt=function(e){var t=Pt(e),n=e.selection.getSelectedBlocks();return It(t,n)?jt(t):mt.grep(n,(function(e){return Mt.isListNode(e)&&t!==e}))},Nt=function(e,t){var n=mt.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",$t(e,t));return n||t}));return gt.unique(n)},Rt=function(e){var t=e.selection.getSelectedBlocks();return mt.grep(Nt(e,t),(function(e){return Mt.isListItemNode(e)}))},Bt=function(e){return O(Rt(e),Mt.isDlItemNode)},$t=function(e,t){var n=e.dom.getParents(t,"TD,TH"),r=n.length>0?n[0]:e.getBody();return r},Ft=function(e,t){var n=e.dom.getParents(t,"ol,ul",$t(e,t));return M(n)},zt=function(e){var t=Ft(e,e.selection.getStart()),n=O(e.selection.getSelectedBlocks(),Mt.isOlUlNode);return t.toArray().concat(n)},qt=function(e){var t=zt(e);return Ut(e,t)},Ut=function(e,t){var n=w(t,(function(t){return Ft(e,t).getOr(t)}));return gt.unique(n)},Ht=function(e){var t=Pt(e);return pt.isPrototypeOf(t)},Vt={isList:Ht,getParentList:Pt,getSelectedSubLists:Lt,getSelectedListItems:Rt,getClosestListRootElm:$t,getSelectedDlItems:Bt,getSelectedListRoots:qt},Wt=function(e,t){var n,r,i,o,a=e.dom,s=e.schema.getBlockElements(),l=a.createFragment();if(e.settings.forced_root_block&&(i=e.settings.forced_root_block),i&&(r=a.create(i),r.tagName===e.settings.forced_root_block&&a.setAttribs(r,e.settings.forced_root_block_attrs),Mt.isBlock(t.firstChild,s)||l.appendChild(r)),t)while(n=t.firstChild){var u=n.nodeName;o||"SPAN"===u&&"bookmark"===n.getAttribute("data-mce-type")||(o=!0),Mt.isBlock(n,s)?(l.appendChild(n),r=null):i?(r||(r=a.create(i),l.appendChild(r)),r.appendChild(n)):l.appendChild(n)}return e.settings.forced_root_block?o||r.appendChild(a.create("br",{"data-mce-bogus":"1"})):l.appendChild(a.create("br")),l},Kt=function(e){var t=e.dom().nodeName;return t.toLowerCase()},Gt=function(e){return e.dom().nodeType},Yt=function(e){return function(t){return Gt(t)===e}},Xt=Yt(Pe),Zt=function(t,n,r){if(!(p(r)||m(r)||y(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},Qt=function(e,t){var n=e.dom();Ge(t,(function(e,t){Zt(n,t,e)}))},Jt=function(e){return C(e.dom().attributes,(function(e,t){return e[t.name]=t.value,e}),{})},en=function(e){return void 0!==e.style&&v(e.style.getPropertyValue)},tn=function(t,n,r){if(!p(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);en(t)&&t.style.setProperty(n,r)},nn=function(e,t,n){var r=e.dom();tn(r,t,n)},rn=function(e,t){return Me.fromDom(e.dom().cloneNode(t))},on=function(e){return rn(e,!0)},an=function(e,t){var n=Me.fromTag(t),r=Jt(e);return Qt(n,r),n},sn=function(e,t){var n=an(e,t);et(e,n);var r=Xe(e);return rt(n,r),it(e),n},ln=function(e,t){tt(e.item,t.list)},un=function(e){for(var t=1;t<e.length;t++)ln(e[t-1],e[t])},cn=function(e,t){He(M(e),D(t),ln)},fn=function(e,t){var n={list:Me.fromTag(t,e),item:Me.fromTag("li",e)};return tt(n.list,n.item),n},dn=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(fn(e,t.listType));return r},hn=function(e,t){for(var n=0;n<e.length-1;n++)nn(e[n].item,"list-style-type","none");M(e).each((function(e){Qt(e.list,t.listAttributes),Qt(e.item,t.itemAttributes),rt(e.item,t.content)}))},pn=function(e,t){Kt(e.list)!==t.listType&&(e.list=sn(e.list,t.listType)),Qt(e.list,t.listAttributes)},gn=function(e,t,n){var r=Me.fromTag("li",e);return Qt(r,t),rt(r,n),r},mn=function(e,t){tt(e.list,t),e.item=t},vn=function(e,t,n){var r=t.slice(0,n.depth);return M(r).each((function(t){var r=gn(e,n.itemAttributes,n.content);mn(t,r),pn(t,n)})),r},yn=function(e,t,n){var r=dn(e,n,n.depth-t.length);return un(r),hn(r,n),cn(t,r),t.concat(r)},bn=function(e,t){var n=C(t,(function(t,n){return n.depth>t.length?yn(e,t,n):vn(e,t,n)}),[]);return D(n).map((function(e){return e.list}))},_n=function(e){return Fe(e,"OL,UL")},wn=function(e){return Qe(e).map(_n).getOr(!1)},xn=function(e){return Je(e).map(_n).getOr(!1)},On=function(e){return e.depth>0},Sn=function(e){return e.isSelected},Cn=function(e){var t=Xe(e),n=xn(e)?t.slice(0,-1):t;return w(n,on)},kn=function(e,t,n){return Ye(e).filter(Xt).map((function(r){return{depth:t,isSelected:n,content:Cn(e),itemAttributes:Jt(e),listAttributes:Jt(r),listType:Kt(r)}}))},En=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}},An=Object.prototype.hasOwnProperty,Tn=function(e,t){return t},Dn=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)An.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},Mn=Dn(Tn),Pn=function(e,t){e.listType=t.listType,e.listAttributes=Mn({},t.listAttributes)},In=function(e,t){for(var n=e[t].depth,r=t-1;r>=0;r--){if(e[r].depth===n)return f.some(e[r]);if(e[r].depth<n)break}return f.none()},jn=function(e){x(e,(function(t,n){In(e,n).each((function(e){Pn(t,e)}))}))},Ln=function(e,t,n,r){return Qe(r).filter(_n).fold((function(){t.each((function(e){Le(e.start,r)&&n.set(!0)}));var i=kn(r,e,n.get());t.each((function(e){Le(e.end,r)&&n.set(!1)}));var o=Je(r).filter(_n).map((function(r){return Nn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Nn(e,t,n,r)}))},Nn=function(e,t,n,r){return A(Xe(r),(function(r){var i=_n(r)?Nn:Ln,o=e+1;return i(o,t,n,r)}))},Rn=function(e,t){var n=N(!1),r=0;return w(e,(function(e){return{sourceList:e,entries:Nn(r,t,n,e)}}))},Bn=function(e,t){return w(t,(function(t){var n=Ve(t.content);return Me.fromDom(Wt(e,n.dom()))}))},$n=function(e,t){return jn(t),bn(e.contentDocument,t).toArray()},Fn=function(e,t){return A(S(t,On),(function(t){var n=D(t).map(On).getOr(!1);return n?$n(e,t):Bn(e,t)}))},zn=function(e,t){x(O(e,Sn),(function(e){return En(t,e)}))},qn=function(e){var t=w(Vt.getSelectedListItems(e),Me.fromDom);return He(k(t,i(wn)),k(T(t),i(wn)),(function(e,t){return{start:e,end:t}}))},Un=function(e,t,n){var r=Rn(t,qn(e));x(r,(function(t){zn(t.entries,n);var r=Fn(e,t.entries);x(r,(function(t){ot(e,"Indent"===n?"IndentList":"OutdentList",t.dom())})),nt(t.sourceList,r),it(t.sourceList)}))},Hn=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),Vn=Hn.DOM,Wn=function(e,t,n){var r,i,o,a,s,l=function(e){mt.each(o,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),Vn.remove(e)};for(o=Vn.select('span[data-mce-type="bookmark"]',t),s=Wt(e,n),r=Vn.createRng(),r.setStartAfter(n),r.setEndAfter(t),i=r.extractContents(),a=i.firstChild;a;a=a.firstChild)if("LI"===a.nodeName&&e.dom.isEmpty(a)){Vn.remove(a);break}e.dom.isEmpty(i)||Vn.insertAfter(i,t),Vn.insertAfter(s,t),Mt.isEmpty(e.dom,n.parentNode)&&l(n.parentNode),Vn.remove(n),Mt.isEmpty(e.dom,t)&&Vn.remove(t)},Kn={splitList:Wn},Gn=function(e,t){Fe(t,"dd")?sn(t,"dt"):Fe(t,"dt")&&Ye(t).each((function(n){return Kn.splitList(e,n.dom(),t.dom())}))},Yn=function(e){Fe(e,"dt")&&sn(e,"dd")},Xn=function(e,t,n){x(n,"Indent"===t?Yn:function(t){return Gn(e,t)})},Zn=function(e,t){if(Mt.isTextNode(e))return{container:e,offset:t};var n=ze.getNode(e,t);return Mt.isTextNode(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Mt.isTextNode(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Mt.isTextNode(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},Qn=function(e){var t=e.cloneRange(),n=Zn(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Zn(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},Jn={getNormalizedPoint:Zn,normalizeRange:Qn},er=function(e,t){var n=w(Vt.getSelectedListRoots(e),Me.fromDom),r=w(Vt.getSelectedDlItems(e),Me.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();Un(e,n,t),Xn(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(Jn.normalizeRange(e.selection.getRng())),e.nodeChanged(),i=!0}return i},tr=function(e){return er(e,"Indent")},nr=function(e){return er(e,"Outdent")},rr=function(e){return er(e,"Flatten")},ir=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),or=Hn.DOM,ar=function(e){var t={},n=function(n){var r,i,o;i=e[n?"startContainer":"endContainer"],o=e[n?"startOffset":"endOffset"],1===i.nodeType&&(r=or.create("span",{"data-mce-type":"bookmark"}),i.hasChildNodes()?(o=Math.min(o,i.childNodes.length-1),n?i.insertBefore(r,i.childNodes[o]):or.insertAfter(r,i.childNodes[o])):i.appendChild(r),i=r,o=0),t[n?"startContainer":"endContainer"]=i,t[n?"startOffset":"endOffset"]=o};return n(!0),e.collapsed||n(),t},sr=function(e){function t(t){var n,r,i,o=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1};n=i=e[t?"startContainer":"endContainer"],r=e[t?"startOffset":"endOffset"],n&&(1===n.nodeType&&(r=o(n),n=n.parentNode,or.remove(i),!n.hasChildNodes()&&or.isBlock(n)&&n.appendChild(or.create("br"))),e[t?"startContainer":"endContainer"]=n,e[t?"startOffset":"endOffset"]=r)}t(!0),t();var n=or.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),Jn.normalizeRange(n)},lr={createBookmark:ar,resolveBookmark:sr},ur=function(e){return/\btox\-/.test(e.className)},cr=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},fr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},dr=function(e,t){mt.each(t,(function(t,n){e.setAttribute(n,t)}))},hr=function(e,t,n){dr(t,n["list-attributes"]),mt.each(e.select("li",t),(function(e){dr(e,n["list-item-attributes"])}))},pr=function(e,t,n){fr(e,t,n),hr(e,t,n)},gr=function(e,t,n){mt.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},mr=function(e,t,n,r){var i,o;i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&Mt.isBr(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(Mt.isTextBlock(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},vr=function(e,t,n){for(var r,i=[],o=e.dom,a=mr(e,t,!0,n),s=mr(e,t,!1,n),l=[],u=a;u;u=u.nextSibling)if(l.push(u),u===s)break;return mt.each(l,(function(t){if(Mt.isTextBlock(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||Mt.isBr(t))return Mt.isBr(t)&&o.remove(t),void(r=null);var a=t.nextSibling;ir.isBookmarkNode(t)&&(Mt.isTextBlock(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},yr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},br=function(e,t,n){void 0===n&&(n={});var r,i=e.selection.getRng(!0),o="LI",a=Vt.getClosestListRootElm(e,e.selection.getStart(!0)),s=e.dom;"false"!==s.getContentEditable(e.selection.getNode())&&(t=t.toUpperCase(),"DL"===t&&(o="DT"),r=lr.createBookmark(i),mt.each(vr(e,i,a),(function(r){var i,a;a=r.previousSibling,a&&Mt.isListNode(a)&&a.nodeName===t&&yr(s,a,n)?(i=a,r=s.rename(r,o),a.appendChild(r)):(i=s.create(t),r.parentNode.insertBefore(i,r),i.appendChild(r),r=s.rename(r,o)),gr(s,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),pr(s,i,n),Sr(e.dom,i)})),e.selection.setRng(lr.resolveBookmark(r)))},_r=function(e,t){return e&&t&&Mt.isListNode(e)&&e.nodeName===t.nodeName},wr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},xr=function(e,t){return e.className===t.className},Or=function(e,t,n){return _r(t,n)&&wr(e,t,n)&&xr(t,n)},Sr=function(e,t){var n,r;if(n=t.nextSibling,Or(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Or(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Cr=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);pr(e.dom,i,r),ot(e,cr(n),i)}else pr(e.dom,t,r),ot(e,cr(n),t)},kr=function(e,t,n,r,i){if(t.nodeName!==r||Er(i)){var o=lr.createBookmark(e.selection.getRng(!0));mt.each([t].concat(n),(function(t){Cr(e,t,r,i)})),e.selection.setRng(lr.resolveBookmark(o))}else rr(e)},Er=function(e){return"list-style-type"in e},Ar=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Er(r)||ur(t)){var i=lr.createBookmark(e.selection.getRng(!0));pr(e.dom,t,r);var o=e.dom.rename(t,n);Sr(e.dom,o),e.selection.setRng(lr.resolveBookmark(i)),ot(e,cr(n),o)}else rr(e);else br(e,n,r),ot(e,cr(n),t)},Tr=function(e,t,n){var r=Vt.getParentList(e),i=Vt.getSelectedSubLists(e);n=n||{},r&&i.length>0?kr(e,r,i,t,n):Ar(e,r,t,n)},Dr={toggleList:Tr,mergeWithAdjacentLists:Sr},Mr=Hn.DOM,Pr=function(e,t){var n,r=t.parentNode;"LI"===r.nodeName&&r.firstChild===t&&(n=r.previousSibling,n&&"LI"===n.nodeName?(n.appendChild(t),Mt.isEmpty(e,r)&&Mr.remove(r)):Mr.setStyle(r,"listStyleType","none")),Mt.isListNode(r)&&(n=r.previousSibling,n&&"LI"===n.nodeName&&n.appendChild(t))},Ir=function(e,t){mt.each(mt.grep(e.select("ol,ul",t)),(function(t){Pr(e,t)}))},jr={normalizeList:Pr,normalizeLists:Ir},Lr=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(Mt.isTextNode(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=ze.getNode(i,o));var s=new qe(i,r);n&&Mt.isBogusBr(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(Mt.isTextNode(i)&&i.data.length>0)return i}},Nr=function(e,t){var n=t.childNodes;return 1===n.length&&!Mt.isListNode(n[0])&&e.isBlock(n[0])},Rr=function(e,t){Nr(e,t)&&e.remove(t.firstChild,!0)},Br=function(e,t,n){var r,i;if(i=Nr(e,n)?n.firstChild:n,Rr(e,t),!Mt.isEmpty(e,t,!0))while(r=t.firstChild)i.appendChild(r)},$r=function(e,t,n){var r,i,o=t.parentNode;if(Mt.isChildOfBody(e,t)&&Mt.isChildOfBody(e,n)){Mt.isListNode(n.lastChild)&&(i=n.lastChild),o===n.lastChild&&Mt.isBr(o.previousSibling)&&e.remove(o.previousSibling),r=n.lastChild,r&&Mt.isBr(r)&&t.hasChildNodes()&&e.remove(r),Mt.isEmpty(e,n,!0)&&e.$(n).empty(),Br(e,t,n),i&&n.appendChild(i);var a=$e(Me.fromDom(n),Me.fromDom(t)),s=a?e.getParents(t,Mt.isListNode,n):[];e.remove(t),x(s,(function(t){Mt.isEmpty(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},Fr=function(e,t,n){e.dom.$(n).empty(),$r(e.dom,t,n),e.selection.setCursorLocation(n)},zr=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))Fr(e,n,r);else{var o=lr.createBookmark(t);$r(i,n,r),e.selection.setRng(lr.resolveBookmark(o))}},qr=function(e,t,n,r){var i=lr.createBookmark(t);$r(e.dom,n,r);var o=lr.resolveBookmark(i);e.selection.setRng(o)},Ur=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=Vt.getClosestListRootElm(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&Mt.isEmpty(n,s))return!0;var l=Jn.normalizeRange(r.getRng()),u=n.getParent(Lr(e,l,t,o),"LI",o);if(u&&u!==a)return e.undoManager.transact((function(){t?zr(e,l,u,a):Mt.isFirstChild(a)?nr(e):qr(e,l,a,u)})),!0;if(!u&&!t&&0===l.startOffset&&0===l.endOffset)return e.undoManager.transact((function(){rr(e)})),!0}return!1},Hr=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Vr=function(e,t){var n=e.dom,r=e.selection.getStart(),i=Vt.getClosestListRootElm(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=Jn.normalizeRange(e.selection.getRng()),s=n.getParent(Lr(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){Hr(n,o,i),Dr.mergeWithAdjacentLists(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},Wr=function(e,t){return Ur(e,t)||Vr(e,t)},Kr=function(e){var t=e.selection.getStart(),n=Vt.getClosestListRootElm(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||Vt.getSelectedListItems(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),jr.normalizeLists(e.dom,e.getBody())})),!0)},Gr=function(e,t){return e.selection.isCollapsed()?Wr(e,t):Kr(e)},Yr=function(e){e.on("keydown",(function(t){t.keyCode===Ue.BACKSPACE?Gr(e,!1)&&t.preventDefault():t.keyCode===Ue.DELETE&&Gr(e,!0)&&t.preventDefault()}))},Xr={setup:Yr,backspaceDelete:Gr},Zr=function(e){return{backspaceDelete:function(t){Xr.backspaceDelete(e,t)}}},Qr={get:Zr},Jr=function(e,t){return function(){var n=e.dom.getParent(e.selection.getStart(),"UL,OL,DL");return n&&n.nodeName===t}},ei=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?tr(e):"outdent"===n&&nr(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Dr.toggleList(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Dr.toggleList(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Dr.toggleList(e,"DL",n)})),e.addCommand("RemoveList",(function(){rr(e)})),e.addQueryStateHandler("InsertUnorderedList",Jr(e,"UL")),e.addQueryStateHandler("InsertOrderedList",Jr(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",Jr(e,"DL"))},ti={register:ei},ni=function(e){return e.getParam("lists_indent_on_tab",!0)},ri={shouldIndentOnTab:ni},ii=function(e){e.on("keydown",(function(t){t.keyCode!==Ue.TAB||Ue.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?nr(e):tr(e))&&t.preventDefault()}))}))},oi=function(e){ri.shouldIndentOnTab(e)&&ii(e),Xr.setup(e)},ai={setup:oi},si=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},li=function(e,t){return function(n){var r=function(e){var r=si(e.parents,Mt.isTableCellNode),i=-1!==r?e.parents.slice(0,r):e.parents,o=mt.grep(i,Mt.isListNode);n.setActive(o.length>0&&o[0].nodeName===t&&!ur(o[0]))};return e.on("NodeChange",r),function(){return e.off("NodeChange",r)}}},ui=function(e){var t=function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return-1!==mt.inArray(n.split(/[ ,]/),t)},n=function(t){return function(){return e.execCommand(t)}};t(e,"advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:n("InsertOrderedList"),onSetup:li(e,"OL")}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:n("InsertUnorderedList"),onSetup:li(e,"UL")}))},ci={register:ui};function fi(){t.add("lists",(function(e){return ai.setup(e),ci.register(e),ti.register(e),Qr.get(e)}))}fi()})(window)},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c}).call(this,n("4362"))},"24e8":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.Env"),n=function(e){return e.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i)},r=function(e){return e.getParam("default_link_target",!1)},i={getAutoLinkPattern:n,getDefaultLinkTarget:r},o=function(e,t){return e===t||" "===e||160===e.charCodeAt(0)},a=function(e){d(e,-1,"(")},s=function(e){d(e,0,"")},l=function(e){d(e,-1,"")},u=function(e,t){if(t<0&&(t=0),3===e.nodeType){var n=e.data.length;t>n&&(t=n)}return t},c=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,u(t,n)):e.setStartBefore(t)},f=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setEnd(t,u(t,n)):e.setEndAfter(t)},d=function(e,t,n){var r,a,s,l,u,d,h,p,g,m,v=i.getAutoLinkPattern(e),y=i.getDefaultLinkTarget(e);if("A"!==e.selection.getNode().tagName){if(r=e.selection.getRng(!0).cloneRange(),r.startOffset<5){if(p=r.endContainer.previousSibling,!p){if(!r.endContainer.firstChild||!r.endContainer.firstChild.nextSibling)return;p=r.endContainer.firstChild.nextSibling}if(g=p.length,c(r,p,g),f(r,p,g),r.endOffset<5)return;a=r.endOffset,l=p}else{if(l=r.endContainer,3!==l.nodeType&&l.firstChild){while(3!==l.nodeType&&l.firstChild)l=l.firstChild;3===l.nodeType&&(c(r,l,0),f(r,l,l.nodeValue.length))}a=1===r.endOffset?2:r.endOffset-1-t}s=a;do{c(r,l,a>=2?a-2:0),f(r,l,a>=1?a-1:0),a-=1,m=r.toString()}while(" "!==m&&""!==m&&160!==m.charCodeAt(0)&&a-2>=0&&m!==n);o(r.toString(),n)?(c(r,l,a),f(r,l,s),a+=1):0===r.startOffset?(c(r,l,0),f(r,l,s)):(c(r,l,a),f(r,l,s)),d=r.toString(),"."===d.charAt(d.length-1)&&f(r,l,s-1),d=r.toString().trim(),h=d.match(v),h&&("www."===h[1]?h[1]="http://www.":/@$/.test(h[1])&&!/^mailto:/.test(h[1])&&(h[1]="mailto:"+h[1]),u=e.selection.getBookmark(),e.selection.setRng(r),e.execCommand("createlink",!1,h[1]+h[2]),!1!==y&&e.dom.setAttrib(e.selection.getNode(),"target",y),e.selection.moveToBookmark(u),e.nodeChanged())}},h=function(e){var n;e.on("keydown",(function(t){if(13===t.keyCode)return l(e)})),t.browser.isIE()?e.on("focus",(function(){if(!n){n=!0;try{e.execCommand("AutoUrlDetect",!1,!0)}catch(t){}}})):(e.on("keypress",(function(t){if(41===t.keyCode)return a(e)})),e.on("keyup",(function(t){if(32===t.keyCode)return s(e)})))},p={setup:h};function g(){e.add("autolink",(function(e){p.setup(e)}))}g()})()},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("5a34"),o=n("1d80"),a=n("ab13");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,u=l[s],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=s;(c||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26dd":function(e,t,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"282b":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("6d8b");function i(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,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&r["indexOf"](i,l)>=0||o&&r["indexOf"](o,l)<0)){var u=n.getShallow(l,t);null!=u&&(a[e[s][0]]=u)}}return a}}},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");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 i(e)||o(e)||Object(a["a"])(e)||s()}},"299c":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r=n(5),i=n.n(r),o=n(19),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),f={name:"ElTooltip",mixins:[i.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 c.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 r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.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(f.name,f)}};t["default"]=f},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")}})},"2a5e":function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.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}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
/*!
 * Vue.js v2.6.14
 * (c) 2014-2021 Evan You
 * Released under the MIT License.
 */
var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var v=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(e,t){return b.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,O=w((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),S=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,k=w((function(e){return e.replace(C,"-$1").toLowerCase()}));function E(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var T=Function.prototype.bind?A:E;function D(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function M(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]&&M(t,e[n]);return t}function I(e,t,n){}var j=function(e,t,n){return!1},L=function(e){return e};function N(e,t){if(e===t)return!0;var n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return N(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return N(e[n],t[n])}))}catch(u){return!1}}function R(e,t){for(var n=0;n<e.length;n++)if(N(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var $="data-server-rendered",F=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:I,parsePlatformTagName:L,mustUseProp:j,async:!0,_lifecycleHooks:z},U=/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 H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+U.source+".$_\\d]");function K(e){if(!W.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 G,Y="__proto__"in{},X="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=Z&&WXEnvironment.platform.toLowerCase(),J=X&&window.navigator.userAgent.toLowerCase(),ee=J&&/msie|trident/.test(J),te=J&&J.indexOf("msie 9.0")>0,ne=J&&J.indexOf("edge/")>0,re=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===Q),ie=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Sa){}var le=function(){return void 0===G&&(G=!X&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},ue=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,de="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);fe="undefined"!==typeof Set&&ce(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 he=I,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){y(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.target=null;var me=[];function ve(e){me.push(e),ge.target=e}function ye(){me.pop(),ge.target=me[me.length-1]}var be=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,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},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(be.prototype,_e);var we=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function xe(e){return new be(void 0,void 0,void 0,String(e))}function Oe(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 Se=Array.prototype,Ce=Object.create(Se),ke=["push","pop","shift","unshift","splice","sort","reverse"];ke.forEach((function(e){var t=Se[e];V(Ce,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(Ce),Ae=!0;function Te(e){Ae=e}var De=function(e){this.value=e,this.dep=new ge,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(Y?Me(e,Ce):Pe(e,Ce,Ee),this.observeArray(e)):this.walk(e)};function Me(e,t){e.__proto__=t}function Pe(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];V(e,o,t[o])}}function Ie(e,t){var n;if(l(e)&&!(e instanceof be))return _(e,"__ob__")&&e.__ob__ instanceof De?n=e.__ob__:Ae&&!le()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new De(e)),t&&n&&n.vmCount++,n}function je(e,t,n,r,i){var o=new ge,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=e[t]);var u=!i&&Ie(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ge.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Re(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!l||(l?l.call(e,t):n=t,u=!i&&Ie(t),o.notify())}})}}function Le(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(je(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ne(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}function Re(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Re(t)}De.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)je(e,t[n])},De.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ie(e[t])};var Be=q.optionMergeStrategies;function $e(e,t){if(!t)return e;for(var n,r,i,o=de?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],_(e,n)?r!==i&&c(r)&&c(i)&&$e(r,i):Le(e,n,i));return e}function Fe(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?$e(r,i):i}:t?e?function(){return $e("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function ze(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?qe(n):n}function qe(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ue(e,t,n,r){var i=Object.create(e||null);return t?M(i,t):i}Be.data=function(e,t,n){return n?Fe(e,t,n):t&&"function"!==typeof t?e:Fe(e,t)},z.forEach((function(e){Be[e]=ze})),F.forEach((function(e){Be[e+"s"]=Ue})),Be.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in M(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return M(i,e),t&&M(i,t),i},Be.provide=Fe;var He=function(e,t){return void 0===t?e:t};function Ve(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=O(i),a[o]={type:null})}else if(c(n))for(var s in n)i=n[s],o=O(s),a[o]=c(i)?i:{type:i};else 0;e.props=a}}function We(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?M({from:o},a):{from:a}}else 0}}function Ke(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ge(e,t,n){if("function"===typeof t&&(t=t.options),Ve(t,n),We(t,n),Ke(t),!t._base&&(t.extends&&(e=Ge(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ge(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)_(e,o)||s(o);function s(r){var i=Be[r]||He;a[r]=i(e[r],t[r],n,r)}return a}function Ye(e,t,n,r){if("string"===typeof n){var i=e[t];if(_(i,n))return i[n];var o=O(n);if(_(i,o))return i[o];var a=S(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Xe(e,t,n,r){var i=t[e],o=!_(n,e),a=n[e],s=tt(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===k(e)){var l=tt(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Ze(r,i,e);var u=Ae;Te(!0),Ie(a),Te(u)}return a}function Ze(e,t,n){if(_(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}var Qe=/^\s*function (\w+)/;function Je(e){var t=e&&e.toString().match(Qe);return t?t[1]:""}function et(e,t){return Je(e)===Je(t)}function tt(e,t){if(!Array.isArray(t))return et(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(et(t[n],e))return n;return-1}function nt(e,t,n){ve();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(Sa){it(Sa,r,"errorCaptured hook")}}}it(e,t,n)}finally{ye()}}function rt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(e){return nt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Sa){nt(Sa,r,i)}return o}function it(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(Sa){Sa!==e&&ot(Sa,null,"config.errorHandler")}ot(e,t,n)}function ot(e,t,n){if(!X&&!Z||"undefined"===typeof console)throw e;console.error(e)}var at,st=!1,lt=[],ut=!1;function ct(){ut=!1;var e=lt.slice(0);lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ce(Promise)){var ft=Promise.resolve();at=function(){ft.then(ct),re&&setTimeout(I)},st=!0}else if(ee||"undefined"===typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())at="undefined"!==typeof setImmediate&&ce(setImmediate)?function(){setImmediate(ct)}:function(){setTimeout(ct,0)};else{var dt=1,ht=new MutationObserver(ct),pt=document.createTextNode(String(dt));ht.observe(pt,{characterData:!0}),at=function(){dt=(dt+1)%2,pt.data=String(dt)},st=!0}function gt(e,t){var n;if(lt.push((function(){if(e)try{e.call(t)}catch(Sa){nt(Sa,t,"nextTick")}else n&&n(t)})),ut||(ut=!0,at()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var mt=new fe;function vt(e){yt(e,mt),mt.clear()}function yt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!l(e)||Object.isFrozen(e)||e instanceof be)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)yt(e[r[n]],t)}}}var bt=w((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 r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function _t(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return rt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)rt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function wt(e,t,n,i,a,s){var l,u,c,f;for(l in e)u=e[l],c=t[l],f=bt(l),r(u)||(r(c)?(r(u.fns)&&(u=e[l]=_t(u,s)),o(f.once)&&(u=e[l]=a(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==c&&(c.fns=u,e[l]=c));for(l in t)r(e[l])&&(f=bt(l),i(f.name,t[l],f.capture))}function xt(e,t,n){var a;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function l(){n.apply(this,arguments),y(a.fns,l)}r(s)?a=_t([l]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(l)):a=_t([s,l]),a.merged=!0,e[t]=a}function Ot(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,l=e.props;if(i(s)||i(l))for(var u in o){var c=k(u);St(a,l,u,c,!0)||St(a,s,u,c,!1)}return a}}function St(e,t,n,r,o){if(i(t)){if(_(t,n))return e[n]=t[n],o||delete t[n],!0;if(_(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function kt(e){return s(e)?[xe(e)]:Array.isArray(e)?At(e):void 0}function Et(e){return i(e)&&i(e.text)&&a(e.isComment)}function At(e,t){var n,a,l,u,c=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(l=c.length-1,u=c[l],Array.isArray(a)?a.length>0&&(a=At(a,(t||"")+"_"+n),Et(a[0])&&Et(u)&&(c[l]=xe(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Et(u)?c[l]=xe(u.text+a):""!==a&&c.push(xe(a)):Et(a)&&Et(u)?c[l]=xe(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Dt(e){var t=Mt(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Te(!0))}function Mt(e,t){if(e){for(var n=Object.create(null),r=de?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var l=e[o].default;n[o]="function"===typeof l?l.call(t):l}else 0}}return n}}function Pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],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 u in n)n[u].every(It)&&delete n[u];return n}function It(e){return e.isComment&&!e.asyncFactory||" "===e.text}function jt(e){return e.isComment&&e.asyncFactory}function Lt(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=Nt(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=Rt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function Nt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:kt(e);var t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!jt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Rt(e,t){return function(){return e[t]}}function Bt(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(l(e))if(de&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),c=u.next();while(!c.done)n.push(t(c.value,n.length)),c=u.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function $t(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=M(M({},r),n)),i=o(n)||("function"===typeof t?t():t)):i=this.$slots[e]||("function"===typeof t?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Ft(e){return Ye(this.$options,"filters",e,!0)||L}function zt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function qt(e,t,n,r,i){var o=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?zt(i,r):o?zt(o,e):r?k(r)!==t:void 0===e}function Ut(e,t,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=P(n));var a=function(a){if("class"===a||"style"===a||v(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=O(a),u=k(a);if(!(l in o)&&!(u in o)&&(o[a]=n[a],i)){var c=e.on||(e.on={});c["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function Ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Wt(r,"__static__"+e,!1)),r}function Vt(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Wt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Kt(e[r],t+"_"+r,n);else Kt(e,t,n)}function Kt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Gt(e,t){if(t)if(c(t)){var n=e.on=e.on?M({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Yt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Yt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Xt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Zt(e,t){return"string"===typeof e?t+e:e}function Qt(e){e._o=Vt,e._n=g,e._s=p,e._l=Bt,e._t=$t,e._q=N,e._i=R,e._m=Ht,e._f=Ft,e._k=qt,e._b=Ut,e._v=xe,e._e=we,e._u=Yt,e._g=Gt,e._d=Xt,e._p=Zt}function Jt(e,t,r,i,a){var s,l=this,u=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(u._compiled),f=!c;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Mt(u.inject,i),this.slots=function(){return l.$slots||Lt(e.scopedSlots,l.$slots=Pt(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Lt(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Lt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=hn(s,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return hn(s,e,t,n,r,f)}}function en(e,t,r,o,a){var s=e.options,l={},u=s.props;if(i(u))for(var c in u)l[c]=Xe(c,u,t||n);else i(r.attrs)&&nn(l,r.attrs),i(r.props)&&nn(l,r.props);var f=new Jt(r,l,a,o,e),d=s.render.call(null,f._c,f);if(d instanceof be)return tn(d,r,f.parent,s,f);if(Array.isArray(d)){for(var h=kt(d)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=tn(h[g],r,f.parent,s,f);return p}}function tn(e,t,n,r,i){var o=Oe(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function nn(e,t){for(var n in t)e[O(n)]=t[n]}Qt(Jt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var r=e.componentInstance=sn(e,Mn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Nn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):Bn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?$n(t,!0):t.$destroy())}},on=Object.keys(rn);function an(e,t,n,a,s){if(!r(e)){var u=n.$options._base;if(l(e)&&(e=u.extend(e)),"function"===typeof e){var c;if(r(e.cid)&&(c=e,e=On(c,u),void 0===e))return xn(c,t,n,a,s);t=t||{},xr(e),i(t.model)&&cn(e.options,t);var f=Ot(t,e,s);if(o(e.options.functional))return en(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}ln(t);var p=e.options.name||s,g=new be("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},c);return g}}}function sn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function ln(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var r=on[n],i=t[r],o=rn[r];i===o||i&&i._merged||(t[r]=i?un(o,i):o)}}function un(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var fn=1,dn=2;function hn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=dn),pn(e,t,n,r,i)}function pn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return we();if(i(n)&&i(n.is)&&(t=n.is),!t)return we();var a,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===dn?r=kt(r):o===fn&&(r=Ct(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),a=q.isReservedTag(t)?new be(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(l=Ye(e.$options,"components",t))?new be(t,n,r,void 0,void 0,e):an(l,n,e,r,t)):a=an(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&gn(a,s),i(n)&&mn(n),a):we()}function gn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var l=e.children[a];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&gn(l,t,n)}}function mn(e){l(e.style)&&vt(e.style),l(e.class)&&vt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Pt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return hn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return hn(e,t,n,r,i,!0)};var o=r&&r.data;je(e,"$attrs",o&&o.attrs||n,null,!0),je(e,"$listeners",t._parentListeners||n,null,!0)}var yn,bn=null;function _n(e){Qt(e.prototype),e.prototype.$nextTick=function(e){return gt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Lt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{bn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Sa){nt(Sa,t,"render"),e=t._vnode}finally{bn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof be||(e=we()),e.parent=i,e}}function wn(e,t){return(e.__esModule||de&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function xn(e,t,n,r,i){var o=we();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function On(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=bn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},d=B((function(n){e.resolved=wn(n,t),s?a.length=0:f(!0)})),p=B((function(t){i(e.errorComp)&&(e.error=!0,f(!0))})),g=e(d,p);return l(g)&&(h(g)?r(e.resolved)&&g.then(d,p):h(g.component)&&(g.component.then(d,p),i(g.error)&&(e.errorComp=wn(g.error,t)),i(g.loading)&&(e.loadingComp=wn(g.loading,t),0===g.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),g.delay||200)),i(g.timeout)&&(c=setTimeout((function(){c=null,r(e.resolved)&&p(null)}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Sn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||jt(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Tn(e,t)}function kn(e,t){yn.$on(e,t)}function En(e,t){yn.$off(e,t)}function An(e,t){var n=yn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Tn(e,t,n){yn=e,wt(t,n||{},kn,En,An,e),yn=void 0}function Dn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?D(n):n;for(var r=D(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)rt(n[o],t,r,t,i)}return t}}var Mn=null;function Pn(e){var t=Mn;return Mn=e,function(){Mn=t}}function In(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._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function jn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Pn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Fn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Ln(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=we),Fn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new rr(e,r,I,{before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Fn(e,"mounted")),e}function Nn(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),u=!!(o||e.$options._renderChildren||l);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Te(!1);for(var c=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=e.$options.props;c[h]=Xe(h,p,t,e)}Te(!0),e.$options.propsData=t}r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,Tn(e,r,g),u&&(e.$slots=Pt(o,i.context),e.$forceUpdate())}function Rn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Bn(e,t){if(t){if(e._directInactive=!1,Rn(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++)Bn(e.$children[n]);Fn(e,"activated")}}function $n(e,t){if((!t||(e._directInactive=!0,!Rn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)$n(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t){ve();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)rt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ye()}var zn=[],qn=[],Un={},Hn=!1,Vn=!1,Wn=0;function Kn(){Wn=zn.length=qn.length=0,Un={},Hn=Vn=!1}var Gn=0,Yn=Date.now;if(X&&!ee){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Zn(){var e,t;for(Gn=Yn(),Vn=!0,zn.sort((function(e,t){return e.id-t.id})),Wn=0;Wn<zn.length;Wn++)e=zn[Wn],e.before&&e.before(),t=e.id,Un[t]=null,e.run();var n=qn.slice(),r=zn.slice();Kn(),er(n),Qn(r),ue&&q.devtools&&ue.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Jn(e){e._inactive=!1,qn.push(e)}function er(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Bn(e[t],!0)}function tr(e){var t=e.id;if(null==Un[t]){if(Un[t]=!0,Vn){var n=zn.length-1;while(n>Wn&&zn[n].id>e.id)n--;zn.splice(n+1,0,e)}else zn.push(e);Hn||(Hn=!0,gt(Zn))}}var nr=0,rr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=K(t),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};rr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Sa){if(!this.user)throw Sa;nt(Sa,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),ye(),this.cleanupDeps()}return e},rr.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))},rr.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},rr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},rr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';rt(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},rr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ir={enumerable:!0,configurable:!0,get:I,set:I};function or(e,t,n){ir.get=function(){return this[t][n]},ir.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ir)}function ar(e){e._watchers=[];var t=e.$options;t.props&&sr(e,t.props),t.methods&&gr(e,t.methods),t.data?lr(e):Ie(e._data={},!0),t.computed&&fr(e,t.computed),t.watch&&t.watch!==oe&&mr(e,t.watch)}function sr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Te(!1);var a=function(o){i.push(o);var a=Xe(o,t,n,e);je(r,o,a),o in e||or(e,"_props",o)};for(var s in t)a(s);Te(!0)}function lr(e){var t=e.$options.data;t=e._data="function"===typeof t?ur(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||H(o)||or(e,"_data",o)}Ie(t,!0)}function ur(e,t){ve();try{return e.call(t,t)}catch(Sa){return nt(Sa,t,"data()"),{}}finally{ye()}}var cr={lazy:!0};function fr(e,t){var n=e._computedWatchers=Object.create(null),r=le();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rr(e,a||I,I,cr)),i in e||dr(e,i,o)}}function dr(e,t,n){var r=!le();"function"===typeof n?(ir.get=r?hr(t):pr(n),ir.set=I):(ir.get=n.get?r&&!1!==n.cache?hr(t):pr(n.get):I,ir.set=n.set||I),Object.defineProperty(e,t,ir)}function hr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function pr(e){return function(){return e.call(this,this)}}function gr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?I:T(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(e,n,r[i]);else vr(e,n,r)}}function vr(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function yr(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=Le,e.prototype.$delete=Ne,e.prototype.$watch=function(e,t,n){var r=this;if(c(t))return vr(r,e,t,n);n=n||{},n.user=!0;var i=new rr(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'+i.expression+'"';ve(),rt(t,r,[i.value],r,o),ye()}return function(){i.teardown()}}}var br=0;function _r(e){e.prototype._init=function(e){var t=this;t._uid=br++,t._isVue=!0,e&&e._isComponent?wr(t,e):t.$options=Ge(xr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,In(t),Cn(t),vn(t),Fn(t,"beforeCreate"),Dt(t),ar(t),Tt(t),Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function wr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function xr(e){var t=e.options;if(e.super){var n=xr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Or(e);i&&M(e.extendOptions,i),t=e.options=Ge(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Or(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Sr(e){this._init(e)}function Cr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=D(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function kr(e){e.mixin=function(e){return this.options=Ge(this.options,e),this}}function Er(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ge(n.options,e),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Tr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,F.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=M({},a.options),i[r]=a,a}}function Ar(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function Tr(e){var t=e.options.computed;for(var n in t)dr(e.prototype,n,t[n])}function Dr(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Mr(e){return e&&(e.Ctor.options.name||e.tag)}function Pr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Ir(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&jr(n,o,r,i)}}}function jr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}_r(Sr),yr(Sr),Dn(Sr),jn(Sr),_n(Sr);var Lr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Lr,exclude:Lr,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:Mr(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&jr(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)jr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Ir(e,(function(e){return Pr(t,e)}))})),this.$watch("exclude",(function(t){Ir(e,(function(e){return!Pr(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Sn(e),n=t&&t.componentOptions;if(n){var r=Mr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Pr(o,r))||a&&r&&Pr(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,y(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},Rr={KeepAlive:Nr};function Br(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:M,mergeOptions:Ge,defineReactive:je},e.set=Le,e.delete=Ne,e.nextTick=gt,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,M(e.options.components,Rr),Cr(e),kr(e),Er(e),Dr(e)}Br(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:le}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Jt}),Sr.version="2.6.14";var $r=m("style,class"),Fr=m("input,textarea,option,select,progress"),zr=function(e,t,n){return"value"===n&&Fr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},qr=m("contenteditable,draggable,spellcheck"),Ur=m("events,caret,typing,plaintext-only"),Hr=function(e,t){return Yr(t)||"false"===t?"false":"contenteditable"===e&&Ur(t)?t:"true"},Vr=m("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"),Wr="http://www.w3.org/1999/xlink",Kr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gr=function(e){return Kr(e)?e.slice(6,e.length):""},Yr=function(e){return null==e||!1===e};function Xr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Zr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Zr(t,n.data));return Qr(t.staticClass,t.class)}function Zr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return i(e)||i(t)?Jr(e,ei(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function ei(e){return Array.isArray(e)?ti(e):l(e)?ni(e):"string"===typeof e?e:""}function ti(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=ei(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ni(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ri={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ii=m("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"),oi=m("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),ai=function(e){return ii(e)||oi(e)};function si(e){return oi(e)?"svg":"math"===e?"math":void 0}var li=Object.create(null);function ui(e){if(!X)return!0;if(ai(e))return!1;if(e=e.toLowerCase(),null!=li[e])return li[e];var t=document.createElement(e);return e.indexOf("-")>-1?li[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:li[e]=/HTMLUnknownElement/.test(t.toString())}var ci=m("text,number,password,search,email,tel,url");function fi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function di(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 hi(e,t){return document.createElementNS(ri[e],t)}function pi(e){return document.createTextNode(e)}function gi(e){return document.createComment(e)}function mi(e,t,n){e.insertBefore(t,n)}function vi(e,t){e.removeChild(t)}function yi(e,t){e.appendChild(t)}function bi(e){return e.parentNode}function _i(e){return e.nextSibling}function wi(e){return e.tagName}function xi(e,t){e.textContent=t}function Oi(e,t){e.setAttribute(t,"")}var Si=Object.freeze({createElement:di,createElementNS:hi,createTextNode:pi,createComment:gi,insertBefore:mi,removeChild:vi,appendChild:yi,parentNode:bi,nextSibling:_i,tagName:wi,setTextContent:xi,setStyleScope:Oi}),Ci={create:function(e,t){ki(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ki(e,!0),ki(t))},destroy:function(e){ki(e,!0)}};function ki(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ei=new be("",{},[]),Ai=["create","activate","update","remove","destroy"];function Ti(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Di(e,t)||o(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Di(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Mi(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Pi(e){var t,n,a={},l=e.modules,u=e.nodeOps;for(t=0;t<Ai.length;++t)for(a[Ai[t]]=[],n=0;n<l.length;++n)i(l[n][Ai[t]])&&a[Ai[t]].push(l[n][Ai[t]]);function c(e){return new be(u.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&d(e)}return n.listeners=t,n}function d(e){var t=u.parentNode(e);i(t)&&u.removeChild(t,e)}function h(e,t,n,r,a,s,l){if(i(e.elm)&&i(s)&&(e=s[l]=Oe(e)),e.isRootInsert=!a,!p(e,t,n,r)){var c=e.data,f=e.children,d=e.tag;i(d)?(e.elm=e.ns?u.createElementNS(e.ns,d):u.createElement(d,e),x(e),b(e,f,t),i(c)&&w(e,t),y(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,r)):(e.elm=u.createTextNode(e.text),y(n,e.elm,r))}}function p(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return g(e,t),y(n,e.elm,r),o(s)&&v(e,t,n,r),!0}}function g(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(w(e,t),x(e)):(ki(e),t.push(e))}function v(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Ei,s);t.push(s);break}y(n,e.elm,r)}function y(e,t,n){i(e)&&(i(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function w(e,n){for(var r=0;r<a.create.length;++r)a.create[r](Ei,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Ei,e),i(t.insert)&&n.push(e))}function x(e){var t;if(i(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}i(t=Mn)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function O(e,t,n,r,i,o){for(;r<=i;++r)h(n[r],o,e,t,!1,n,r)}function S(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function C(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(k(r),S(r)):d(r.elm))}}function k(e,t){if(i(t)||i(e.data)){var n,r=a.remove.length+1;for(i(t)?t.listeners+=r:t=f(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&k(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else d(e.elm)}function E(e,t,n,o,a){var s,l,c,f,d=0,p=0,g=t.length-1,m=t[0],v=t[g],y=n.length-1,b=n[0],_=n[y],w=!a;while(d<=g&&p<=y)r(m)?m=t[++d]:r(v)?v=t[--g]:Ti(m,b)?(T(m,b,o,n,p),m=t[++d],b=n[++p]):Ti(v,_)?(T(v,_,o,n,y),v=t[--g],_=n[--y]):Ti(m,_)?(T(m,_,o,n,y),w&&u.insertBefore(e,m.elm,u.nextSibling(v.elm)),m=t[++d],_=n[--y]):Ti(v,b)?(T(v,b,o,n,p),w&&u.insertBefore(e,v.elm,m.elm),v=t[--g],b=n[++p]):(r(s)&&(s=Mi(t,d,g)),l=i(b.key)?s[b.key]:A(b,t,d,g),r(l)?h(b,o,e,m.elm,!1,n,p):(c=t[l],Ti(c,b)?(T(c,b,o,n,p),t[l]=void 0,w&&u.insertBefore(e,c.elm,m.elm)):h(b,o,e,m.elm,!1,n,p)),b=n[++p]);d>g?(f=r(n[y+1])?null:n[y+1].elm,O(e,f,n,p,y,o)):p>y&&C(t,d,g)}function A(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&Ti(e,a))return o}}function T(e,t,n,s,l,c){if(e!==t){i(t.elm)&&i(s)&&(t=s[l]=Oe(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,h=t.data;i(h)&&i(d=h.hook)&&i(d=d.prepatch)&&d(e,t);var p=e.children,g=t.children;if(i(h)&&_(t)){for(d=0;d<a.update.length;++d)a.update[d](e,t);i(d=h.hook)&&i(d=d.update)&&d(e,t)}r(t.text)?i(p)&&i(g)?p!==g&&E(f,p,g,n,c):i(g)?(i(e.text)&&u.setTextContent(f,""),O(f,null,g,0,g.length-1,n)):i(p)?C(p,0,p.length-1):i(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),i(h)&&i(d=h.hook)&&i(d=d.postpatch)&&d(e,t)}}}function D(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var M=m("attrs,class,staticClass,staticStyle,key");function P(e,t,n,r){var a,s=t.tag,l=t.data,u=t.children;if(r=r||l&&l.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return g(t,n),!0;if(i(s)){if(i(u))if(e.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var c=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!P(f,u[d],n,r)){c=!1;break}f=f.nextSibling}if(!c||f)return!1}else b(t,u,n);if(i(l)){var h=!1;for(var p in l)if(!M(p)){h=!0,w(t,n);break}!h&&l["class"]&&vt(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var l=!1,f=[];if(r(e))l=!0,h(t,f);else{var d=i(e.nodeType);if(!d&&Ti(e,t))T(e,t,f,null,null,s);else{if(d){if(1===e.nodeType&&e.hasAttribute($)&&(e.removeAttribute($),n=!0),o(n)&&P(e,t,f))return D(t,f,!0),e;e=c(e)}var p=e.elm,g=u.parentNode(p);if(h(t,f,p._leaveCb?null:g,u.nextSibling(p)),i(t.parent)){var m=t.parent,v=_(t);while(m){for(var y=0;y<a.destroy.length;++y)a.destroy[y](m);if(m.elm=t.elm,v){for(var b=0;b<a.create.length;++b)a.create[b](Ei,m);var w=m.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}else ki(m);m=m.parent}}i(g)?C([e],0,0):i(e.tag)&&S(e)}}return D(t,f,l),t.elm}i(e)&&S(e)}}var Ii={create:ji,update:ji,destroy:function(e){ji(e,Ei)}};function ji(e,t){(e.data.directives||t.data.directives)&&Li(e,t)}function Li(e,t){var n,r,i,o=e===Ei,a=t===Ei,s=Ri(e.data.directives,e.context),l=Ri(t.data.directives,t.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,$i(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):($i(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)$i(u[n],"inserted",t,e)};o?xt(t,"insert",f):f()}if(c.length&&xt(t,"postpatch",(function(){for(var n=0;n<c.length;n++)$i(c[n],"componentUpdated",t,e)})),!o)for(n in s)l[n]||$i(s[n],"unbind",e,e,a)}var Ni=Object.create(null);function Ri(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Ni),i[Bi(r)]=r,r.def=Ye(t.$options,"directives",r.name,!0);return i}function Bi(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function $i(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Sa){nt(Sa,n.context,"directive "+e.name+" "+t+" hook")}}var Fi=[Ci,Ii];function zi(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,a,s,l=t.elm,u=e.data.attrs||{},c=t.data.attrs||{};for(o in i(c.__ob__)&&(c=t.data.attrs=M({},c)),c)a=c[o],s=u[o],s!==a&&qi(l,o,a,t.data.pre);for(o in(ee||ne)&&c.value!==u.value&&qi(l,"value",c.value),u)r(c[o])&&(Kr(o)?l.removeAttributeNS(Wr,Gr(o)):qr(o)||l.removeAttribute(o))}}function qi(e,t,n,r){r||e.tagName.indexOf("-")>-1?Ui(e,t,n):Vr(t)?Yr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):qr(t)?e.setAttribute(t,Hr(t,n)):Kr(t)?Yr(n)?e.removeAttributeNS(Wr,Gr(t)):e.setAttributeNS(Wr,t,n):Ui(e,t,n)}function Ui(e,t,n){if(Yr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Hi={create:zi,update:zi};function Vi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(t),l=n._transitionClasses;i(l)&&(s=Jr(s,ei(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,Ki={create:Vi,update:Vi},Gi="__r",Yi="__c";function Xi(e){if(i(e[Gi])){var t=ee?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}i(e[Yi])&&(e.change=[].concat(e[Yi],e.change||[]),delete e[Yi])}function Zi(e,t,n){var r=Wi;return function i(){var o=t.apply(null,arguments);null!==o&&eo(e,i,n,r)}}var Qi=st&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(Qi){var i=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function eo(e,t,n,r){(r||Wi).removeEventListener(e,t._wrapper||t,n)}function to(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Wi=t.elm,Xi(n),wt(n,i,Ji,eo,Zi,t.context),Wi=void 0}}var no,ro={create:to,update:to};function io(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in i(l.__ob__)&&(l=t.data.domProps=M({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);oo(a,u)&&(a.value=u)}else if("innerHTML"===n&&oi(a.tagName)&&r(a.innerHTML)){no=no||document.createElement("div"),no.innerHTML="<svg>"+o+"</svg>";var c=no.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function oo(e,t){return!e.composing&&("OPTION"===e.tagName||ao(e,t)||so(e,t))}function ao(e,t){var n=!0;try{n=document.activeElement!==e}catch(Sa){}return n&&e.value!==t}function so(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var lo={create:io,update:io},uo=w((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function co(e){var t=fo(e.style);return e.staticStyle?M(e.staticStyle,t):t}function fo(e){return Array.isArray(e)?P(e):"string"===typeof e?uo(e):e}function ho(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&M(r,n)}(n=co(e.data))&&M(r,n);var o=e;while(o=o.parent)o.data&&(n=co(o.data))&&M(r,n);return r}var po,go=/^--/,mo=/\s*!important$/,vo=function(e,t,n){if(go.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(k(t),n.replace(mo,""),"important");else{var r=bo(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},yo=["Webkit","Moz","ms"],bo=w((function(e){if(po=po||document.createElement("div").style,e=O(e),"filter"!==e&&e in po)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yo.length;n++){var r=yo[n]+t;if(r in po)return r}}));function _o(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,l=t.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},f=u||c,d=fo(t.data.style)||{};t.data.normalizedStyle=i(d.__ob__)?M({},d):d;var h=ho(t,!0);for(s in f)r(h[s])&&vo(l,s,"");for(s in h)a=h[s],a!==f[s]&&vo(l,s,null==a?"":a)}}var wo={create:_o,update:_o},xo=/\s+/;function Oo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function So(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Co(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&M(t,ko(e.name||"v")),M(t,e),t}return"string"===typeof e?ko(e):void 0}}var ko=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Eo=X&&!te,Ao="transition",To="animation",Do="transition",Mo="transitionend",Po="animation",Io="animationend";Eo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Do="WebkitTransition",Mo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Io="webkitAnimationEnd"));var jo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Lo(e){jo((function(){jo(e)}))}function No(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Oo(e,t))}function Ro(e,t){e._transitionClasses&&y(e._transitionClasses,t),So(e,t)}function Bo(e,t,n){var r=Fo(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Mo:Io,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),e.addEventListener(s,c)}var $o=/\b(transform|all)(,|$)/;function Fo(e,t){var n,r=window.getComputedStyle(e),i=(r[Do+"Delay"]||"").split(", "),o=(r[Do+"Duration"]||"").split(", "),a=zo(i,o),s=(r[Po+"Delay"]||"").split(", "),l=(r[Po+"Duration"]||"").split(", "),u=zo(s,l),c=0,f=0;t===Ao?a>0&&(n=Ao,c=a,f=o.length):t===To?u>0&&(n=To,c=u,f=l.length):(c=Math.max(a,u),n=c>0?a>u?Ao:To:null,f=n?n===Ao?o.length:l.length:0);var d=n===Ao&&$o.test(r[Do+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:d}}function zo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return qo(t)+qo(e[n])})))}function qo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Uo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,u=o.enterClass,c=o.enterToClass,f=o.enterActiveClass,d=o.appearClass,h=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,v=o.enter,y=o.afterEnter,b=o.enterCancelled,_=o.beforeAppear,w=o.appear,x=o.afterAppear,O=o.appearCancelled,S=o.duration,C=Mn,k=Mn.$vnode;while(k&&k.parent)C=k.context,k=k.parent;var E=!C._isMounted||!e.isRootInsert;if(!E||w||""===w){var A=E&&d?d:u,T=E&&p?p:f,D=E&&h?h:c,M=E&&_||m,P=E&&"function"===typeof w?w:v,I=E&&x||y,j=E&&O||b,L=g(l(S)?S.enter:S);0;var N=!1!==a&&!te,R=Wo(P),$=n._enterCb=B((function(){N&&(Ro(n,D),Ro(n,T)),$.cancelled?(N&&Ro(n,A),j&&j(n)):I&&I(n),n._enterCb=null}));e.data.show||xt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,$)})),M&&M(n),N&&(No(n,A),No(n,T),Lo((function(){Ro(n,A),$.cancelled||(No(n,D),R||(Vo(L)?setTimeout($,L):Bo(n,s,$)))}))),e.data.show&&(t&&t(),P&&P(n,$)),N||R||$()}}}function Ho(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,c=o.leaveToClass,f=o.leaveActiveClass,d=o.beforeLeave,h=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,y=o.duration,b=!1!==a&&!te,_=Wo(h),w=g(l(y)?y.leave:y);0;var x=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Ro(n,c),Ro(n,f)),x.cancelled?(b&&Ro(n,u),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(O):O()}function O(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),b&&(No(n,u),No(n,f),Lo((function(){Ro(n,u),x.cancelled||(No(n,c),_||(Vo(w)?setTimeout(x,w):Bo(n,s,x)))}))),h&&h(n,x),b||_||x())}}function Vo(e){return"number"===typeof e&&!isNaN(e)}function Wo(e){if(r(e))return!1;var t=e.fns;return i(t)?Wo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ko(e,t){!0!==t.data.show&&Uo(t)}var Go=X?{create:Ko,activate:Ko,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Yo=[Hi,Ki,ro,lo,wo,Go],Xo=Yo.concat(Fi),Zo=Pi({nodeOps:Si,modules:Xo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&oa(e,"input")}));var Qo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xt(n,"postpatch",(function(){Qo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,na)):("textarea"===n.tag||ci(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ra),e.addEventListener("compositionend",ia),e.addEventListener("change",ia),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,na);if(i.some((function(e,t){return!N(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ta(e,i)})):t.value!==t.oldValue&&ta(t.value,i);o&&oa(e,"change")}}}};function Jo(e,t,n){ea(e,t,n),(ee||ne)&&setTimeout((function(){ea(e,t,n)}),0)}function ea(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],i)o=R(r,na(a))>-1,a.selected!==o&&(a.selected=o);else if(N(na(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ta(e,t){return t.every((function(t){return!N(t,e)}))}function na(e){return"_value"in e?e._value:e.value}function ra(e){e.target.composing=!0}function ia(e){e.target.composing&&(e.target.composing=!1,oa(e.target,"input"))}function oa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function aa(e){return!e.componentInstance||e.data&&e.data.transition?e:aa(e.componentInstance._vnode)}var sa={bind:function(e,t,n){var r=t.value;n=aa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Uo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=aa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Uo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},la={model:Qo,show:sa},ua={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 ca(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ca(Sn(t.children)):e}function fa(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[O(o)]=i[o];return t}function da(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function ha(e){while(e=e.parent)if(e.data.transition)return!0}function pa(e,t){return t.key===e.key&&t.tag===e.tag}var ga=function(e){return e.tag||jt(e)},ma=function(e){return"show"===e.name},va={name:"transition",props:ua,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ga),n.length)){0;var r=this.mode;0;var i=n[0];if(ha(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return da(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=fa(this),u=this._vnode,c=ca(u);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),c&&c.data&&!pa(o,c)&&!jt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=M({},l);if("out-in"===r)return this._leaving=!0,xt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),da(e,i);if("in-out"===r){if(jt(o))return u;var d,h=function(){d()};xt(l,"afterEnter",h),xt(l,"enterCancelled",h),xt(f,"delayLeave",(function(e){d=e}))}}return i}}},ya=M({tag:String,moveClass:String},ua);delete ya.mode;var ba={props:ya,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Pn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=fa(this),s=0;s<i.length;s++){var l=i[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(r){for(var u=[],c=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):c.push(d)}this.kept=e(t,null,u),this.removed=c}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(_a),e.forEach(wa),e.forEach(xa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;No(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Mo,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Mo,e),n._moveCb=null,Ro(n,t))})}})))},methods:{hasMove:function(e,t){if(!Eo)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){So(n,e)})),Oo(n,t),n.style.display="none",this.$el.appendChild(n);var r=Fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function _a(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function wa(e){e.data.newPos=e.elm.getBoundingClientRect()}function xa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var Oa={Transition:va,TransitionGroup:ba};Sr.config.mustUseProp=zr,Sr.config.isReservedTag=ai,Sr.config.isReservedAttr=$r,Sr.config.getTagNamespace=si,Sr.config.isUnknownElement=ui,M(Sr.options.directives,la),M(Sr.options.components,Oa),Sr.prototype.__patch__=X?Zo:I,Sr.prototype.$mount=function(e,t){return e=e&&X?fi(e):void 0,Ln(this,e,t)},X&&setTimeout((function(){q.devtools&&ue&&ue.emit("init",Sr)}),0),t["default"]=Sr}.call(this,n("c8ba"))},"2b17":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return O}));var r,i,o,a,s,l=n("6d8b"),u=n("e0d3"),c=n("ec6f"),f=n("07fd"),d=function(){function e(e,t){var n=Object(c["e"])(e)?e:Object(c["c"])(e);this._source=n;var r=this._data=n.data;n.sourceFormat===f["g"]&&(this._offset=0,this._dimSize=t,this._data=r),s(this,r,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;s=function(e,i,o){var s=o.sourceFormat,u=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,h=a[x(s,u)];if(Object(l["extend"])(e,h),s===f["g"])e.getItem=t,e.count=r,e.fillStorage=n;else{var p=g(s,u);e.getItem=Object(l["bind"])(p,null,i,c,d);var m=y(s,u);e.count=Object(l["bind"])(m,null,i,c,d)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,f=n[a],d=0;d<c;d++){var h=i[d*o+a];f[e+d]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[f["c"]+"_"+f["a"]]={pure:!0,appendData:i},e[f["c"]+"_"+f["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[f["e"]]={pure:!0,appendData:i},e[f["d"]]={pure:!0,appendData:function(e){var t=this._data;Object(l["each"])(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[f["f"]]={appendData:i},e[f["g"]]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},a=e}(),e}(),h=function(e,t,n,r){return e[r]},p=(r={},r[f["c"]+"_"+f["a"]]=function(e,t,n,r){return e[r+t]},r[f["c"]+"_"+f["b"]]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},r[f["e"]]=h,r[f["d"]]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[r]:null}return o},r[f["f"]]=h,r);function g(e,t){var n=p[x(e,t)];return n}var m=function(e,t,n){return e.length},v=(i={},i[f["c"]+"_"+f["a"]]=function(e,t,n){return Math.max(0,e.length-t)},i[f["c"]+"_"+f["b"]]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},i[f["e"]]=m,i[f["d"]]=function(e,t,n){var r=n[0].name;var i=e[r];return i?i.length:0},i[f["f"]]=m,i);function y(e,t){var n=v[x(e,t)];return n}var b=function(e,t,n){return e[t]},_=(o={},o[f["c"]]=b,o[f["e"]]=function(e,t,n){return e[n]},o[f["d"]]=b,o[f["f"]]=function(e,t,n){var r=Object(u["h"])(e);return r instanceof Array?r[t]:r},o[f["g"]]=b,o);function w(e){var t=_[e];return t}function x(e,t){return e===f["c"]?e+"_"+t:e}function O(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return w(o)(r,a,s)}var l=r;return o===f["f"]&&(l=Object(u["h"])(r)),l}}}},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),l=n("37e8"),u=n("6eeb"),c=n("19aa"),f=n("5135"),d=n("60da"),h=n("4df4"),p=n("6547").codeAt,g=n("5fb2"),m=n("d44e"),v=n("9861"),y=n("69f3"),b=s.URL,_=v.URLSearchParams,w=v.getState,x=y.set,O=y.getterFor("URL"),S=Math.floor,C=Math.pow,k="Invalid authority",E="Invalid scheme",A="Invalid host",T="Invalid port",D=/[A-Za-z]/,M=/[\d+-.A-Za-z]/,P=/\d/,I=/^(0x|0X)/,j=/^[0-7]+$/,L=/^\d+$/,N=/^[\dA-Fa-f]+$/,R=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,B=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,$=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,F=/[\u0009\u000A\u000D]/g,z=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(n=U(t.slice(1,-1)),!n)return A;e.host=n}else if(Q(e)){if(t=g(t),R.test(t))return A;if(n=q(t),null===n)return A;e.host=n}else{if(B.test(t))return A;for(n="",r=h(t),i=0;i<r.length;i++)n+=X(r[i],W);e.host=n}},q=function(e){var t,n,r,i,o,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=l[r],""==i)return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=I.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?L:8==o?j:N).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=C(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*C(256,3-r);return s},U=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,d=function(){return e.charAt(f)};if(":"==d()){if(":"!=e.charAt(1))return;f+=2,u++,c=u}while(d()){if(8==u)return;if(":"!=d()){t=n=0;while(n<4&&N.test(d()))t=16*t+parseInt(d(),16),f++,n++;if("."==d()){if(0==n)return;if(f-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;f++}if(!P.test(d()))return;while(P.test(d())){if(o=parseInt(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[u]=256*l[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;f++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},H=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},V=function(e){var t,n,r,i;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="",r=H(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},K=d({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),G=d({},K,{"#":1,"?":1,"{":1,"}":1}),Y=d({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return f(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&&D.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)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ie=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={},ue={},ce={},fe={},de={},he={},pe={},ge={},me={},ve={},ye={},be={},_e={},we={},xe={},Oe={},Se={},Ce={},ke={},Ee=function(e,t,n,i){var o,a,s,l,u=n||ae,c=0,d="",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($,"")),t=t.replace(F,""),o=h(t);while(c<=o.length){switch(a=o[c],u){case ae:if(!a||!D.test(a)){if(n)return E;u=le;continue}d+=a.toLowerCase(),u=se;break;case se:if(a&&(M.test(a)||"+"==a||"-"==a||"."==a))d+=a.toLowerCase();else{if(":"!=a){if(n)return E;d="",u=le,c=0;continue}if(n&&(Q(e)!=f(Z,d)||"file"==d&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(Q(e)&&Z[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=be:Q(e)&&i&&i.scheme==e.scheme?u=ue:Q(e)?u=he:"/"==o[c+1]?(u=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Se)}break;case le:if(!i||i.cannotBeABaseURL&&"#"!=a)return E;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=ke;break}u="file"==i.scheme?be:fe;continue;case ue:if("/"!=a||"/"!=o[c+1]){u=fe;continue}u=pe,c++;break;case ce:if("/"==a){u=ge;break}u=Oe;continue;case fe:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&Q(e))u=de;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=Ce;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=Oe;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=ke}break;case de:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=Oe;continue}u=ge}else u=pe;break;case he:if(u=pe,"/"!=a||"/"!=d.charAt(c+1))continue;c++;break;case pe:if("/"!=a&&"\\"!=a){u=ge;continue}break;case ge:if("@"==a){p&&(d="%40"+d),p=!0,s=h(d);for(var v=0;v<s.length;v++){var y=s[v];if(":"!=y||m){var b=X(y,Y);m?e.password+=b:e.username+=b}else m=!0}d=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(p&&""==d)return k;c-=h(d).length+1,d="",u=me}else d+=a;break;case me:case ve:if(n&&"file"==e.scheme){u=we;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==d)return A;if(n&&""==d&&(J(e)||null!==e.port))return;if(l=z(e,d),l)return l;if(d="",u=xe,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),d+=a}else{if(""==d)return A;if(l=z(e,d),l)return l;if(d="",u=ye,n==ve)return}break;case ye:if(!P.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=d){var _=parseInt(d,10);if(_>65535)return T;e.port=Q(e)&&_===Z[e.scheme]?null:_,d=""}if(n)return;u=xe;continue}return T}d+=a;break;case be:if(e.scheme="file","/"==a||"\\"==a)u=_e;else{if(!i||"file"!=i.scheme){u=Oe;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",u=Ce;else{if("#"!=a){ne(o.slice(c).join(""))||(e.host=i.host,e.path=i.path.slice(),re(e)),u=Oe;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=ke}}break;case _e:if("/"==a||"\\"==a){u=we;break}i&&"file"==i.scheme&&!ne(o.slice(c).join(""))&&(te(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=Oe;continue;case we:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(d))u=Oe;else if(""==d){if(e.host="",n)return;u=xe}else{if(l=z(e,d),l)return l;if("localhost"==e.host&&(e.host=""),n)return;d="",u=xe}continue}d+=a;break;case xe:if(Q(e)){if(u=Oe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=Oe,"/"!=a))continue}else e.fragment="",u=ke;else e.query="",u=Ce;break;case Oe:if(a==r||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(oe(d)?(re(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):ie(d)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(a==r||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",u=Ce):"#"==a&&(e.fragment="",u=ke)}else d+=X(a,G);break;case Se:"?"==a?(e.query="",u=Ce):"#"==a?(e.fragment="",u=ke):a!=r&&(e.path[0]+=X(a,W));break;case Ce:n||"#"!=a?a!=r&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,W)):(e.fragment="",u=ke);break;case ke:a!=r&&(e.fragment+=X(a,K));break}c++}},Ae=function(e){var t,n,r=c(this,Ae,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(r,{type:"URL"});if(void 0!==i)if(i instanceof Ae)t=O(i);else if(n=Ee(t={},String(i)),n)throw TypeError(n);if(n=Ee(s,a,null,t),n)throw TypeError(n);var l=s.searchParams=new _,u=w(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(r.href=De.call(r),r.origin=Me.call(r),r.protocol=Pe.call(r),r.username=Ie.call(r),r.password=je.call(r),r.host=Le.call(r),r.hostname=Ne.call(r),r.port=Re.call(r),r.pathname=Be.call(r),r.search=$e.call(r),r.searchParams=Fe.call(r),r.hash=ze.call(r))},Te=Ae.prototype,De=function(){var e=O(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",J(e)&&(u+=n+(r?":"+r:"")+"@"),u+=V(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},Me=function(){var e=O(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Q(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Pe=function(){return O(this).scheme+":"},Ie=function(){return O(this).username},je=function(){return O(this).password},Le=function(){var e=O(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},Ne=function(){var e=O(this).host;return null===e?"":V(e)},Re=function(){var e=O(this).port;return null===e?"":String(e)},Be=function(){var e=O(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$e=function(){var e=O(this).query;return e?"?"+e:""},Fe=function(){return O(this).searchParams},ze=function(){var e=O(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(Te,{href:qe(De,(function(e){var t=O(this),n=String(e),r=Ee(t,n);if(r)throw TypeError(r);w(t.searchParams).updateSearchParams(t.query)})),origin:qe(Me),protocol:qe(Pe,(function(e){var t=O(this);Ee(t,String(e)+":",ae)})),username:qe(Ie,(function(e){var t=O(this),n=h(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],Y)}})),password:qe(je,(function(e){var t=O(this),n=h(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],Y)}})),host:qe(Le,(function(e){var t=O(this);t.cannotBeABaseURL||Ee(t,String(e),me)})),hostname:qe(Ne,(function(e){var t=O(this);t.cannotBeABaseURL||Ee(t,String(e),ve)})),port:qe(Re,(function(e){var t=O(this);ee(t)||(e=String(e),""==e?t.port=null:Ee(t,e,ye))})),pathname:qe(Be,(function(e){var t=O(this);t.cannotBeABaseURL||(t.path=[],Ee(t,e+"",xe))})),search:qe($e,(function(e){var t=O(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Ee(t,e,Ce)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Fe),hash:qe(ze,(function(e){var t=O(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Ee(t,e,ke)):t.fragment=null}))}),u(Te,"toJSON",(function(){return De.call(this)}),{enumerable:!0}),u(Te,"toString",(function(){return De.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,He=b.revokeObjectURL;Ue&&u(Ae,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),He&&u(Ae,"revokeObjectURL",(function(e){return He.apply(b,arguments)}))}m(Ae,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Ae})},"2bb5":function(e,t,n){"use strict";t.__esModule=!0;n("8122");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},"2c3e":function(e,t,n){var r=n("83ab"),i=n("9f7f").UNSUPPORTED_Y,o=n("9bf2").f,a=n("69f3").get,s=RegExp.prototype;r&&i&&o(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),s=n("1d80"),l=n("ab13"),u=n("c430"),c="".startsWith,f=Math.min,d=l("startsWith"),h=!u&&!d&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!h&&!d},{startsWith:function(e){var t=String(s(this));a(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n("22d1"),i=1;r["a"].hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=i,a=.4,s="#333",l="#ccc",u="#eee"},"2cf49":function(e,t,n){var r,i,o,a=n("da84"),s=n("d039"),l=n("c6b6"),u=n("0366"),c=n("1be4"),f=n("cc12"),d=n("1cdc"),h=a.location,p=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},w="onreadystatechange",x=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},O=function(e){return function(){x(e)}},S=function(e){x(e.data)},C=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&g||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},g=function(e){delete _[e]},"process"==l(m)?r=function(e){m.nextTick(O(e))}:y&&y.now?r=function(e){y.now(O(e))}:v&&!d?(i=new v,o=i.port2,i.port1.onmessage=S,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(C)||"file:"===h.protocol?r=w in f("script")?function(e){c.appendChild(f("script"))[w]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(O(e),0)}:(r=C,a.addEventListener("message",S,!1))),e.exports={set:p,clear:g}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2dc5":function(e,t,n){"use strict";var r=n("9ab4"),i=n("6d8b"),o=n("d5b7"),a=n("9850"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r["a"])(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,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),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,r=i["indexOf"](n,e);return r<0||(n.splice(r,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 r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.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 r=this._children[n];r.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new a["a"](0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(a["a"].applyTransform(t,l,u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}}return i||t},t}(o["a"]);s.prototype.type="group",t["a"]=s},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f1f":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n("6d8b"),i=Object(r["createHashMap"])();function o(e,t){Object(r["assert"])(null==i.get(e)&&t),i.set(e,t)}function a(e,t,n){var r=i.get(t);if(!r)return n;var o=r(e);return o?n.concat(o):n}},"2f62":function(e,t,n){"use strict";(function(e){
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){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 L})),n.d(t,"c",(function(){return I}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__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 r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=l(e[n],t)})),r}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=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},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.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)},h.prototype.forEachChild=function(e){u(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;m(e.concat(r),t.getChild(r),n.modules[r])}}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 r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&u(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.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 y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!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 i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;O(this,u,[],this._modules.root),x(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&a(this)},b={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;O(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};u(i,(function(t,n){o[n]=d(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&&T(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function O(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=D(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(s,l,r.state)}))}var u=r.context=S(e,a,n);r.forEachMutation((function(t,n){var r=a+n;k(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;E(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;A(e,r,t,u)})),r.forEachChild((function(r,o){O(e,t,n.concat(o),r,i)}))}function S(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=M(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=M(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return D(e.state,n)}}}),i}function C(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function T(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function M(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){v&&e===v||(v=e,r(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=M(e,t,n),o=i.type,a=i.payload,s=(i.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,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=M(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){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(u){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(u){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),O(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=D(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var I=F((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=z(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),j=F((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=z(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),L=F((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||z(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=F((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=z(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),R=function(e){return{mapState:I.bind(null,e),mapGetters:L.bind(null,e),mapMutations:j.bind(null,e),mapActions:N.bind(null,e)}};function B(e){return $(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 $(e){return Array.isArray(e)||c(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function z(e,t,n){var r=e._modulesNamespaceMap[n];return r}function q(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 r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=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 u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=l(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=l(o);if(n(e,f,a)){var s=V(),u=i(e),d="mutation "+e.type+s;U(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(c)}f=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=a(e),s="action "+e.type+r;U(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}function U(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+K(e.getHours(),2)+":"+K(e.getMinutes(),2)+":"+K(e.getSeconds(),2)+"."+K(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function K(e,t){return W("0",t-e.toString().length)+e}var G={Store:y,install:P,version:"3.6.2",mapState:I,mapMutations:j,mapGetters:L,mapActions:N,createNamespacedHelpers:R,createLogger:q};t["a"]=G}).call(this,n("c8ba"))},"2f7b":function(e,t,n){"use strict";n("6dd8"),n("9619")},"2f9a":function(e,t){e.exports=function(){}},"2fec":function(e,t,n){n("24e8")},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).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(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return u["B"]})),n.d(t,"dependencies",(function(){return u["d"]})),n.d(t,"PRIORITY",(function(){return u["a"]})),n.d(t,"init",(function(){return u["l"]})),n.d(t,"connect",(function(){return u["b"]})),n.d(t,"disconnect",(function(){return u["f"]})),n.d(t,"disConnect",(function(){return u["e"]})),n.d(t,"dispose",(function(){return u["g"]})),n.d(t,"getInstanceByDom",(function(){return u["i"]})),n.d(t,"getInstanceById",(function(){return u["j"]})),n.d(t,"registerTheme",(function(){return u["w"]})),n.d(t,"registerPreprocessor",(function(){return u["u"]})),n.d(t,"registerProcessor",(function(){return u["v"]})),n.d(t,"registerPostInit",(function(){return u["s"]})),n.d(t,"registerPostUpdate",(function(){return u["t"]})),n.d(t,"registerUpdateLifecycle",(function(){return u["y"]})),n.d(t,"registerAction",(function(){return u["m"]})),n.d(t,"registerCoordinateSystem",(function(){return u["n"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return u["h"]})),n.d(t,"registerLocale",(function(){return u["q"]})),n.d(t,"registerLayout",(function(){return u["o"]})),n.d(t,"registerVisual",(function(){return u["z"]})),n.d(t,"registerLoading",(function(){return u["p"]})),n.d(t,"setCanvasCreator",(function(){return u["A"]})),n.d(t,"registerMap",(function(){return u["r"]})),n.d(t,"getMap",(function(){return u["k"]})),n.d(t,"registerTransform",(function(){return u["x"]})),n.d(t,"dataTool",(function(){return u["c"]})),n.d(t,"zrender",(function(){return m})),n.d(t,"matrix",(function(){return se})),n.d(t,"vector",(function(){return le})),n.d(t,"zrUtil",(function(){return p})),n.d(t,"color",(function(){return ue})),n.d(t,"throttle",(function(){return ce["c"]})),n.d(t,"helper",(function(){return r})),n.d(t,"use",(function(){return b})),n.d(t,"setPlatformAPI",(function(){return wn["e"]})),n.d(t,"parseGeoJSON",(function(){return Bn})),n.d(t,"parseGeoJson",(function(){return Bn})),n.d(t,"number",(function(){return i})),n.d(t,"time",(function(){return o})),n.d(t,"graphic",(function(){return a})),n.d(t,"format",(function(){return s})),n.d(t,"util",(function(){return l})),n.d(t,"env",(function(){return sr["a"]})),n.d(t,"List",(function(){return ae})),n.d(t,"Model",(function(){return _["a"]})),n.d(t,"Axis",(function(){return Ar})),n.d(t,"ComponentModel",(function(){return d["a"]})),n.d(t,"ComponentView",(function(){return c["a"]})),n.d(t,"SeriesModel",(function(){return h["b"]})),n.d(t,"ChartView",(function(){return f["a"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return Tr["b"]})),n.d(t,"extendComponentModel",(function(){return Dr})),n.d(t,"extendComponentView",(function(){return Mr})),n.d(t,"extendSeriesModel",(function(){return Pr})),n.d(t,"extendChartView",(function(){return Ir}));var r={};n.r(r),n.d(r,"createList",(function(){return mn})),n.d(r,"getLayoutRect",(function(){return dn["g"]})),n.d(r,"createDimensions",(function(){return de})),n.d(r,"dataStack",(function(){return vn})),n.d(r,"createSymbol",(function(){return pn["a"]})),n.d(r,"createScale",(function(){return yn})),n.d(r,"mixinAxisModelCommonMethods",(function(){return bn})),n.d(r,"getECData",(function(){return L["a"]})),n.d(r,"enableHoverEmphasis",(function(){return gn["o"]})),n.d(r,"createTextStyle",(function(){return _n}));var i={};n.r(i),n.d(i,"linearMap",(function(){return Fe["m"]})),n.d(i,"round",(function(){return Fe["w"]})),n.d(i,"asc",(function(){return Fe["c"]})),n.d(i,"getPrecision",(function(){return Fe["h"]})),n.d(i,"getPrecisionSafe",(function(){return Fe["i"]})),n.d(i,"getPixelPrecision",(function(){return Fe["g"]})),n.d(i,"getPercentWithPrecision",(function(){return Fe["f"]})),n.d(i,"MAX_SAFE_INTEGER",(function(){return Fe["a"]})),n.d(i,"remRadian",(function(){return Fe["v"]})),n.d(i,"isRadianAroundZero",(function(){return Fe["l"]})),n.d(i,"parseDate",(function(){return Fe["p"]})),n.d(i,"quantity",(function(){return Fe["s"]})),n.d(i,"quantityExponent",(function(){return Fe["t"]})),n.d(i,"nice",(function(){return Fe["n"]})),n.d(i,"quantile",(function(){return Fe["r"]})),n.d(i,"reformIntervals",(function(){return Fe["u"]})),n.d(i,"isNumeric",(function(){return Fe["k"]})),n.d(i,"numericToNumber",(function(){return Fe["o"]}));var o={};n.r(o),n.d(o,"parse",(function(){return Fe["p"]})),n.d(o,"format",(function(){return wt["h"]}));var a={};n.r(a),n.d(a,"extendShape",(function(){return $n["extendShape"]})),n.d(a,"extendPath",(function(){return $n["extendPath"]})),n.d(a,"makePath",(function(){return $n["makePath"]})),n.d(a,"makeImage",(function(){return $n["makeImage"]})),n.d(a,"mergePath",(function(){return $n["mergePath"]})),n.d(a,"resizePath",(function(){return $n["resizePath"]})),n.d(a,"createIcon",(function(){return $n["createIcon"]})),n.d(a,"updateProps",(function(){return Fn["h"]})),n.d(a,"initProps",(function(){return Fn["c"]})),n.d(a,"getTransform",(function(){return $n["getTransform"]})),n.d(a,"clipPointsByRect",(function(){return $n["clipPointsByRect"]})),n.d(a,"clipRectByRect",(function(){return $n["clipRectByRect"]})),n.d(a,"registerShape",(function(){return $n["registerShape"]})),n.d(a,"getShapeClass",(function(){return $n["getShapeClass"]})),n.d(a,"Group",(function(){return zn["a"]})),n.d(a,"Image",(function(){return qn["a"]})),n.d(a,"Text",(function(){return Un["a"]})),n.d(a,"Circle",(function(){return Hn["a"]})),n.d(a,"Ellipse",(function(){return Vn["a"]})),n.d(a,"Sector",(function(){return Wn["a"]})),n.d(a,"Ring",(function(){return Kn["a"]})),n.d(a,"Polygon",(function(){return Gn["a"]})),n.d(a,"Polyline",(function(){return Yn["a"]})),n.d(a,"Rect",(function(){return Xn["a"]})),n.d(a,"Line",(function(){return Zn["a"]})),n.d(a,"BezierCurve",(function(){return Qn["a"]})),n.d(a,"Arc",(function(){return Jn["a"]})),n.d(a,"IncrementalDisplayable",(function(){return er["a"]})),n.d(a,"CompoundPath",(function(){return tr["a"]})),n.d(a,"LinearGradient",(function(){return nr["a"]})),n.d(a,"RadialGradient",(function(){return rr["a"]})),n.d(a,"BoundingRect",(function(){return _t["a"]}));var s={};n.r(s),n.d(s,"addCommas",(function(){return Qe["a"]})),n.d(s,"toCamelCase",(function(){return Qe["j"]})),n.d(s,"normalizeCssArray",(function(){return Qe["i"]})),n.d(s,"encodeHTML",(function(){return ir["a"]})),n.d(s,"formatTpl",(function(){return Qe["e"]})),n.d(s,"getTooltipMarker",(function(){return Qe["g"]})),n.d(s,"formatTime",(function(){return Qe["d"]})),n.d(s,"capitalFirst",(function(){return Qe["b"]})),n.d(s,"truncateText",(function(){return or["c"]})),n.d(s,"getTextRect",(function(){return ar["a"]}));var l={};n.r(l),n.d(l,"map",(function(){return p["map"]})),n.d(l,"each",(function(){return p["each"]})),n.d(l,"indexOf",(function(){return p["indexOf"]})),n.d(l,"inherits",(function(){return p["inherits"]})),n.d(l,"reduce",(function(){return p["reduce"]})),n.d(l,"filter",(function(){return p["filter"]})),n.d(l,"bind",(function(){return p["bind"]})),n.d(l,"curry",(function(){return p["curry"]})),n.d(l,"isArray",(function(){return p["isArray"]})),n.d(l,"isString",(function(){return p["isString"]})),n.d(l,"isObject",(function(){return p["isObject"]})),n.d(l,"isFunction",(function(){return p["isFunction"]})),n.d(l,"extend",(function(){return p["extend"]})),n.d(l,"defaults",(function(){return p["defaults"]})),n.d(l,"clone",(function(){return p["clone"]})),n.d(l,"merge",(function(){return p["merge"]}));var u=n("1be7"),c=n("b12f"),f=n("e887"),d=n("6cb7"),h=n("4f85"),p=n("6d8b"),g=n("58c9"),m=n("697e"),v=[],y={registerPreprocessor:u["u"],registerProcessor:u["v"],registerPostInit:u["s"],registerPostUpdate:u["t"],registerUpdateLifecycle:u["y"],registerAction:u["m"],registerCoordinateSystem:u["n"],registerLayout:u["o"],registerVisual:u["z"],registerTransform:u["x"],registerLoading:u["p"],registerMap:u["r"],registerImpl:g["b"],PRIORITY:u["a"],ComponentModel:d["a"],ComponentView:c["a"],SeriesModel:h["b"],ChartView:f["a"],registerComponentModel:function(e){d["a"].registerClass(e)},registerComponentView:function(e){c["a"].registerClass(e)},registerSeriesModel:function(e){h["b"].registerClass(e)},registerChartView:function(e){f["a"].registerClass(e)},registerSubTypeDefaulter:function(e,t){d["a"].registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(m["registerPainter"])(e,t)}};function b(e){Object(p["isArray"])(e)?Object(p["each"])(e,(function(e){b(e)})):Object(p["indexOf"])(v,e)>=0||(v.push(e),Object(p["isFunction"])(e)&&(e={install:e}),e.install(y))}var _=n("4319");function w(e){return null==e?0:e.length||1}function x(e){return e}var O=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||x,this._newKeyGetter=r||x,this.context=i,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={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=w(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=w(l),f=w(u);if(c>1&&1===f)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===f)this._update&&this._update(u,l),r[s]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=w(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=w(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),S=O,C=n("2b17"),k=n("07fd"),E=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 A(e,t){var n={},r=n.encode={},i=Object(p["createHashMap"])(),o=[],a=[],s={};Object(p["each"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var u=n.coordDimIndex;T(r,l)[u]=t,n.isExtraCoord||(i.set(l,1),M(n.type)&&(o[0]=t),T(s,l)[u]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}k["i"].each((function(e,t){var i=T(r,t),o=n.otherDims[t];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(p["map"])(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new E(s,t),n}function T(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function D(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function M(e){return!("ordinal"===e||"time"===e)}var P=function(){function e(e){this.otherDims={},null!=e&&p["extend"](this,e)}return e}(),I=P,j=n("e0d3"),L=n("861c"),N=n("ec6f"),R=n("d0ce"),B=Object(j["o"])(),$={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},F=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=U(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(p["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=Object(N["f"])(this.source),n=!H(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var f=this.getSourceDimension(o);f&&(s=t?f.name:null,l=f.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=$[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source,h=[d.seriesLayoutBy,d.startIndex,r].join("$$");return{dimensions:i,hash:h}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function z(e){return e instanceof F}function q(e){for(var t=Object(p["createHashMap"])(),n=0;n<(e||[]).length;n++){var r=e[n],i=Object(p["isObject"])(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function U(e){var t=B(e);return t.dimNameMap||(t.dimNameMap=q(e.dimensionsDefine))}function H(e){return e>30}var V,W,K,G,Y,X,Z,Q=p["isObject"],J=p["map"],ee="undefined"===typeof Int32Array?Array:Int32Array,te="e\0\0",ne=-1,re=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ie=["_approximateExtent"],oe=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 r=!1;z(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],f=p["isString"](c)?new I({name:c}):c instanceof I?c:new I(c),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var h=f.otherDims=f.otherDims||{};o.push(d),i[d]=f,null!=l[d]&&(s=!0),f.createInvertedIndices&&(a[d]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),r&&(f.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=p["createHashMap"]();p["each"](o,(function(e){g.set(i[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 r=this._schema.getSourceDimension(t);return r?r.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(p["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 r=n.encode[e];return r?r[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 r,i=this;if(e instanceof R["b"]&&(r=e),!r){var o=this.dimensions,a=Object(N["e"])(e)||p["isArrayLike"](e)?new C["a"](e,o.length):e;r=new R["b"];var s=J(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=A(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),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&Z(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==k["g"]&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===k["f"];if(s&&!r.pure)for(var l=[],u=e;u<t;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Object(j["m"])(c)&&(this.hasItemOption=!0),c){var f=c.name;null==i[u]&&null!=f&&(i[u]=Object(j["e"])(f,null));var d=c.id;null==o[u]&&null!=d&&(o[u]=Object(j["e"])(d,null))}}if(this._shouldMakeIdFromName())for(u=e;u<t;u++)Z(this,u);V(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){Q(e)?p["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=K(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return W(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.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,r=this._store;return p["isArray"](e)?r.getValues(J(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;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 r=n[t];return null==r||isNaN(r)?ne:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){p["isFunction"](e)&&(n=t,t=e,e=[]);var r=n||this,i=J(G(e),this._getStoreDimIndex,this);this._store.each(i,r?p["bind"](t,r):t)},e.prototype.filterSelf=function(e,t,n){p["isFunction"](e)&&(n=t,t=e,e=[]);var r=n||this,i=J(G(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?p["bind"](t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=p["keys"](e),i=[];return p["each"](r,(function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){p["isFunction"](e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=J(G(e),this._getStoreDimIndex,this),a=X(this);return a._store=this._store.map(o,i?p["bind"](t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this;var o=J(G(e),this._getStoreDimIndex,this);this._store.modify(o,i?p["bind"](t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=X(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=X(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 _["a"](n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new S(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return W(e,t)}),(function(e){return W(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||{},Q(e)?p["extend"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),p["isArray"](i)?i=i.slice():Q(i)&&(i=p["extend"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Q(t)?p["extend"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Q(e)?p["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?p["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;Object(L["b"])(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){p["each"](this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:J(this.dimensions,this._getDimInfo,this),this.hostModel)),Y(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];p["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(p["slice"](arguments)))})},e.internalField=function(){V=function(e){var t=e._invertedIndicesMap;p["each"](t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new ee(o.categories.length);for(var s=0;s<n.length;s++)n[s]=ne;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},K=function(e,t,n){return Object(j["e"])(e._getCategory(t,n),null)},W=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=K(e,e._idDimIdx,t)),null==n&&(n=te+t),n},G=function(e){return p["isArray"](e)||(e=null!=e?[e]:[]),e},X=function(t){var n=new e(t._schema?t._schema:J(t.dimensions,t._getDimInfo,t),t.hostModel);return Y(n,t),n},Y=function(e,t){p["each"](re.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,p["each"](ie,(function(n){e[n]=p["clone"](t[n])})),e._calculationInfo=p["extend"]({},t._calculationInfo)},Z=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=K(e,i,t)),null==s&&null!=o&&(r[t]=s=K(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),ae=oe,se=n("1687"),le=n("401b"),ue=n("41ef"),ce=n("88b3"),fe=n("0f99");function de(e,t){return he(e,t).dimensions}function he(e,t){Object(N["e"])(e)||(e=Object(N["c"])(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(p["createHashMap"])(),o=[],a=ge(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&H(a),l=r===e.dimensionsDefine,u=l?U(e):q(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Object(p["createHashMap"])(c),d=new R["a"](a),h=0;h<d.length;h++)d[h]=-1;function g(e){var t=d[e];if(t<0){var n=r[e],i=Object(p["isObject"])(n)?n:{name:n},a=new I,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(h=0;h<a;h++)g(h);f.each((function(e,t){var n=Object(j["r"])(e).slice();if(1===n.length&&!Object(p["isString"])(n[0])&&n[0]<0)f.set(t,!1);else{var r=f.set(t,[]);Object(p["each"])(n,(function(e,n){var i=Object(p["isString"])(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,v(g(i),t,n))}))}}));var m=0;function v(e,t,n){null!=k["i"].get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}Object(p["each"])(n,(function(e){var t,n,r,i;if(Object(p["isString"])(e))t=e,i={};else{i=e,t=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Object(p["extend"])({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=f.get(t);if(!1!==s){if(s=Object(j["r"])(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(m<a&&null!=g(m).coordDim)m++;m<a&&s.push(m++)}Object(p["each"])(s,(function(e,o){var a=g(e);if(l&&null!=i.type&&(a.type=i.type),v(Object(p["defaults"])(a,i),t,o),null==a.name&&n){var s=n[o];!Object(p["isObject"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(p["defaults"])(a.otherDims,r)}))}}));var y=t.generateCoord,b=t.generateCoordCount,_=null!=b;b=y?b||1:0;var w=y||"value";function x(e){null==e.name&&(e.name=e.coordDim)}if(s)Object(p["each"])(o,(function(e){x(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var O=0;O<a;O++){var S=g(O),C=S.coordDim;null==C&&(S.coordDim=me(w,i,_),S.coordDimIndex=0,(!y||b<=0)&&(S.isExtraCoord=!0),b--),x(S),null!=S.type||Object(fe["b"])(e,O)!==fe["a"].Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return pe(o),new F({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function pe(e){for(var t=Object(p["createHashMap"])(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function ge(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(p["each"])(t,(function(e){var t;Object(p["isObject"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function me(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var ve=n("1f39"),ye=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(p["createHashMap"])(),this.categoryAxisMap=Object(p["createHashMap"])(),this.coordSysName=e}return e}();function be(e){var t=e.get("coordinateSystem"),n=new ye(t),r=_e[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var _e={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",j["b"]).models[0],o=e.getReferringComponents("yAxis",j["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),we(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),we(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",j["b"]).models[0];t.coordSysDims=["single"],n.set("single",i),we(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",j["b"]).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),we(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),we(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(p["each"])(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),we(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function we(e){return"category"===e.get("type")}function xe(e,t,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Oe(t)?r=t:(i=t.schema,r=i.dimensions,o=t.store);var l,u,c,f,d=!(!e||!e.get("stack"));if(Object(p["each"])(r,(function(e,t){Object(p["isString"])(e)&&(r[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,m=0;Object(p["each"])(r,(function(e){e.coordDim===h&&m++}));var v={name:c,coordDim:h,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:f,coordDim:f,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(f,g),y.storeDimIndex=o.ensureCalculationDimension(c,g)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:c}}function Oe(e){return!z(e.schema)}function Se(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Ce(e,t){return Se(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ke(e,t){var n,r=e.get("coordinateSystem"),i=ve["a"].get(r);return t&&t.coordSysDims&&(n=p["map"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=D(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Ee(e,t,n){var r,i;return n&&p["each"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function Ae(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Object(N["c"])(e)):(r=i.getSource(),o=r.sourceFormat===k["f"]);var a=be(t),s=ke(t,a),l=n.useEncodeDefaulter,u=p["isFunction"](l)?l:l?p["curry"](fe["c"],s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=he(r,c),d=Ee(f.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(f),g=xe(t,{schema:f,store:h}),m=new ae(f,t);m.setCalculationInfo(g);var v=null!=d&&Te(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return m.hasItemOption=!1,m.initData(o?r:h,null,v),m}function Te(e){if(e.sourceFormat===k["f"]){var t=De(e.data||[]);return!p["isArray"](Object(j["h"])(t))}}function De(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var Me=Ae,Pe=n("9ab4"),Ie=n("625e"),je=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}();Ie["c"](je);var Le=je,Ne=0,Re=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Ne}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(p["map"])(r,Be);return new e({categories:i,needCollect:!i,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(p["isString"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(p["createHashMap"])(this.categories))},e}();function Be(e){return Object(p["isObject"])(e)&&null!=e.value?e.value:e+""}var $e=Re,Fe=n("3842");function ze(e){return"interval"===e.type||"log"===e.type}function qe(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Object(Fe["n"])(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=He(a),l=i.niceTickExtent=[Object(Fe["w"])(Math.ceil(e[0]/a)*a,s),Object(Fe["w"])(Math.floor(e[1]/a)*a,s)];return We(l,e),i}function Ue(e){var t=Math.pow(10,Object(Fe["t"])(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(Fe["w"])(n*t)}function He(e){return Object(Fe["h"])(e)+2}function Ve(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function We(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ve(e,0,t),Ve(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ke(e,t){return e>=t[0]&&e<=t[1]}function Ge(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Ye(e,t){return e*(t[1]-t[0])+t[0]}var Xe=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new $e({})),Object(p["isArray"])(r)&&(r=new $e({categories:Object(p["map"])(r,(function(e){return Object(p["isObject"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(Pe["a"])(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(p["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ke(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ge(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ye(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=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}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}(Le);Le.registerClass(Xe);var Ze=Xe,Qe=n("eda2"),Je=Fe["w"],et=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 Object(Pe["a"])(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ke(e,this._extent)},t.prototype.normalize=function(e){return Ge(e,this._extent)},t.prototype.scale=function(e){return Ye(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=He(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<r[0]&&(e?o.push({value:Je(r[0]-t,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=Je(s+t,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(e?o.push({value:Je(l+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){var o=t[i],a=t[i-1],s=0,l=[],u=o.value-a.value,c=u/e;while(s<e-1){var f=Je(a.value+(s+1)*c);f>r[0]&&f<r[1]&&l.push(f),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=Fe["h"](e.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=Je(e.value,n,!0);return Qe["a"](r)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=qe(r,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 r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Je(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=Je(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(Le);Le.registerClass(et);var tt=et,nt=n("cccd"),rt="undefined"!==typeof Float32Array,it=rt?Float32Array:Array;function ot(e){return Object(p["isArray"])(e)?rt?new Float32Array(e):e:new it(e)}var at="__ec_stack_";function st(e){return e.get("stack")||at+e.seriesIndex}function lt(e){return e.dim+e.index}function ut(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<e.count;o++)t.push(Object(p["defaults"])({bandWidth:i,axisKey:r,stackId:at+o},e));var a=ht(t),s=[];for(o=0;o<e.count;o++){var l=a[r][at+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function ct(e,t){var n=[];return t.eachSeriesByType(e,(function(e){vt(e)&&n.push(e)})),n}function ft(e){var t={};Object(p["each"])(e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=e.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);t[o]?t[o].push(c):t[o]=[c]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function dt(e){var t=ft(e),n=[];return Object(p["each"])(e,(function(e){var r,i=e.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),f=Math.abs(c[1]-c[0]);r=l?u/f*l:u}else{var d=e.getData();r=Math.abs(a[1]-a[0])/d.count()}var h=Object(Fe["q"])(e.get("barWidth"),r),p=Object(Fe["q"])(e.get("barMaxWidth"),r),g=Object(Fe["q"])(e.get("barMinWidth")||(yt(e)?.5:1),r),m=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:lt(o),stackId:st(e)})})),ht(n)}function ht(e){var t={};Object(p["each"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=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 u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var f=e.barGap;null!=f&&(o.gap=f);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(p["each"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(p["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Object(Fe["q"])(o,i),l=Object(Fe["q"])(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),Object(p["each"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=f;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==f&&(e.width=r,u-=r+l*r,c--)}})),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d,h=0;Object(p["each"])(r,(function(e,t){e.width||(e.width=f),d=e,h+=e.width*(1+l)})),d&&(h-=d.width*l);var g=-h/2;Object(p["each"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:g,width:e.width},g+=e.width*(1+l)}))})),n}function pt(e,t,n){if(e&&t){var r=e[lt(t)];return null!=r&&null!=n?r[st(n)]:r}}function gt(e,t){var n=ct(e,t),r=dt(n);Object(p["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=st(e),a=r[lt(i)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function mt(e){return{seriesType:e,plan:Object(nt["a"])(),reset:function(e){if(vt(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=Se(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),d=bt(r,i),h=yt(e),p=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=h&&ot(3*i),u=h&&s&&ot(3*i),y=h&&ot(i),b=n.master.getRect(),_=f?b.width:b.height,w=t.getStore(),x=0;while(null!=(r=e.next())){var O=w.get(c?g:o,r),S=w.get(a,r),C=d,k=void 0;c&&(k=+O-w.get(o,r));var E=void 0,A=void 0,T=void 0,D=void 0;if(f){var M=n.dataToPoint([O,S]);if(c){var P=n.dataToPoint([k,S]);C=P[0]}E=C,A=M[1]+v,T=M[0]-C,D=m,Math.abs(T)<p&&(T=(T<0?-1:1)*p)}else{M=n.dataToPoint([S,O]);if(c){P=n.dataToPoint([S,k]);C=P[1]}E=M[0]+v,A=C,T=m,D=M[1]-C,Math.abs(D)<p&&(D=(D<=0?-1:1)*p)}h?(l[x]=E,l[x+1]=A,l[x+2]=f?T:D,u&&(u[x]=f?b.x:E,u[x+1]=f?A:b.y,u[x+2]=_),y[r]=r):t.setItemLayout(r,{x:E,y:A,width:T,height:D}),x+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:f})}}}}}}function vt(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function yt(e){return e.pipelineContext&&e.pipelineContext.large}function bt(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}var _t=n("9850"),wt=n("f876"),xt=function(e,t,n,r){while(n<r){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Ot=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Object(Pe["a"])(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Object(wt["h"])(e.value,wt["i"][Object(wt["l"])(Object(wt["m"])(this._minLevelUnit))]||wt["i"].second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(wt["r"])(e,t,n,i,r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=Pt(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(i),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=wt["a"],t[1]+=wt["a"]),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]-wt["a"]}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=St.length,a=Math.min(xt(St,this._approxInterval,0,o),o-1);this._interval=St[a][1],this._minLevelUnit=St[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(p["isNumber"])(e)?e:+Fe["p"](e)},t.prototype.contain=function(e){return Ke(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ge(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ye(e,this._extent)},t.type="time",t}(tt),St=[["second",wt["d"]],["minute",wt["c"]],["hour",wt["b"]],["quarter-day",6*wt["b"]],["half-day",12*wt["b"]],["day",1.2*wt["a"]],["half-week",3.5*wt["a"]],["week",7*wt["a"]],["month",31*wt["a"]],["quarter",95*wt["a"]],["half-year",wt["e"]/2],["year",wt["e"]]];function Ct(e,t,n,r){var i=Fe["p"](t),o=Fe["p"](n),a=function(e){return Object(wt["n"])(i,e,r)===Object(wt["n"])(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},h=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function kt(e,t){return e/=wt["a"],e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Et(e){var t=30*wt["a"];return e/=t,e>6?6:e>3?3:e>2?2:1}function At(e){return e/=wt["b"],e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Tt(e,t){return e/=t?wt["c"]:wt["d"],e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Dt(e){return Fe["n"](e,!0)}function Mt(e,t,n){var r=new Date(e);switch(Object(wt["m"])(t)){case"year":case"month":r[Object(wt["x"])(n)](0);case"day":r[Object(wt["g"])(n)](1);case"hour":r[Object(wt["p"])(n)](0);case"minute":r[Object(wt["v"])(n)](0);case"second":r[Object(wt["A"])(n)](0),r[Object(wt["t"])(n)](0)}return r.getTime()}function Pt(e,t,n,r){var i=1e4,o=wt["B"],a=0;function s(e,t,n,i,o,a,s){var l=new Date(t),u=t,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!Ct(Object(wt["m"])(e),r[0],r[1],n)){l&&(i=[{value:Mt(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,f=i[u+1].value;if(c!==f){var d=void 0,h=void 0,p=void 0,g=!1;switch(e){case"year":d=Math.max(1,Math.round(t/wt["a"]/365)),h=Object(wt["j"])(n),p=Object(wt["k"])(n);break;case"half-year":case"quarter":case"month":d=Et(t),h=Object(wt["w"])(n),p=Object(wt["x"])(n);break;case"week":case"half-week":case"day":d=kt(t,31),h=Object(wt["f"])(n),p=Object(wt["g"])(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=At(t),h=Object(wt["o"])(n),p=Object(wt["p"])(n);break;case"minute":d=Tt(t,!0),h=Object(wt["u"])(n),p=Object(wt["v"])(n);break;case"second":d=Tt(t,!1),h=Object(wt["z"])(n),p=Object(wt["A"])(n);break;case"millisecond":d=Dt(t),h=Object(wt["s"])(n),p=Object(wt["t"])(n);break}s(d,c,f,h,p,g,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&a++<i;++h){var g=Object(wt["m"])(o[h]);if(Object(wt["q"])(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Object(wt["m"])(o[h+1]):null;if(g!==m){if(c.length){d=f,c.sort((function(e,t){return e.value-t.value}));for(var v=[],y=0;y<c.length;++y){var b=c[y].value;0!==y&&c[y-1].value===b||(v.push(c[y]),b>=r[0]&&b<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>1.5*_&&d>_/1.5)break;if(u.push(v),f>_||e===o[h])break}c=[]}}}var w=Object(p["filter"])(Object(p["map"])(u,(function(e){return Object(p["filter"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],O=w.length-1;for(h=0;h<w.length;++h)for(var S=w[h],C=0;C<S.length;++C)x.push({value:S[C].value,level:O-h});x.sort((function(e,t){return e.value-t.value}));var k=[];for(h=0;h<x.length;++h)0!==h&&x[h].value===x[h-1].value||k.push(x[h]);return k}Le.registerClass(Ot);var It=Ot,jt=Le.prototype,Lt=tt.prototype,Nt=Fe["w"],Rt=Math.floor,Bt=Math.ceil,$t=Math.pow,Ft=Math.log,zt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new tt,t._interval=0,t}return Object(Pe["a"])(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),i=Lt.getTicks.call(this,e);return p["map"](i,(function(e){var t=e.value,i=Fe["w"]($t(this.base,t));return i=t===n[0]&&this._fixMin?Ut(i,r[0]):i,i=t===n[1]&&this._fixMax?Ut(i,r[1]):i,{value:i}}),this)},t.prototype.setExtent=function(e,t){var n=Ft(this.base);e=Ft(Math.max(0,e))/n,t=Ft(Math.max(0,t))/n,Lt.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=jt.getExtent.call(this);t[0]=$t(e,t[0]),t[1]=$t(e,t[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(t[0]=Ut(t[0],r[0])),this._fixMax&&(t[1]=Ut(t[1],r[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Ft(e[0])/Ft(t),e[1]=Ft(e[1])/Ft(t),jt.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 r=Fe["s"](n),i=e/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[Fe["w"](Bt(t[0]/r)*r),Fe["w"](Rt(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Lt.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=Ft(e)/Ft(this.base),Ke(e,this._extent)},t.prototype.normalize=function(e){return e=Ft(e)/Ft(this.base),Ge(e,this._extent)},t.prototype.scale=function(e){return e=Ye(e,this._extent),$t(this.base,e)},t.type="log",t}(Le),qt=zt.prototype;function Ut(e,t){return Nt(e,Fe["h"](t))}qt.getMinorTicks=Lt.getMinorTicks,qt.getLabel=Lt.getLabel,Le.registerClass(zt);var Ht=zt,Vt=n("e86a"),Wt=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 r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);null==i&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;Object(p["isFunction"])(o)?this._modelMinNum=Xt(e,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Xt(e,o));var a=this._modelMaxRaw=t.get("max",!0);if(Object(p["isFunction"])(a)?this._modelMaxNum=Xt(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=Xt(e,a)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=Object(p["isArray"])(s)?s:[s||0,s||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(Vt["g"])(l[0],1),Object(Vt["g"])(l[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=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,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(p["eqNaN"])(a)||Object(p["eqNaN"])(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(a=f,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[Gt[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Kt[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Kt={min:"_determinedMin",max:"_determinedMax"},Gt={min:"_dataMin",max:"_dataMax"};function Yt(e,t,n){var r=e.rawExtentInfo;return r||(r=new Wt(e,t,n),e.rawExtentInfo=r,r)}function Xt(e,t){return null==t?null:Object(p["eqNaN"])(t)?NaN:e.parse(t)}function Zt(e,t){var n=e.type,r=Yt(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=ct("bar",a),l=!1;if(p["each"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=dt(s),c=Qt(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Qt(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=pt(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;p["each"](a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;p["each"](a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Jt(e,t){var n=t,r=Zt(e,n),i=r.extent,o=n.get("splitNumber");e instanceof Ht&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function en(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ze({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new It({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Le.getClass(t)||tt)}}function tn(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function nn(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,r){return e.scale.getFormattedLabel(n,r,t)}}(t):p["isString"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):p["isFunction"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(rn(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function rn(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function on(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof Ze?i=n.count():(r=n.getTicks(),i=r.length);var a,s=e.getLabelModel(),l=nn(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=l(f,c),h=s.getTextRect(d),p=an(h,s.get("rotate")||0);a?a.union(p):a=p}return a}}function an(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new _t["a"](e.x,e.y,o,a);return s}function sn(e){var t=e.get("interval");return null==t?"auto":t}function ln(e){return"category"===e.type&&0===sn(e.getLabelModel())}function un(e,t){var n={};return p["each"](e.mapDimensionsAll(t),(function(t){n[Ce(e,t)]=!0})),p["keys"](n)}function cn(e,t,n){t&&p["each"](un(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}var fn=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}(),dn=n("f934"),hn=n("7837"),pn=n("a15a"),gn=n("7d6c");function mn(e){return Me(null,e)}var vn={isDimensionStacked:Se,enableDataStack:xe,getStackedDimension:Ce};function yn(e,t){var n=t;t instanceof _["a"]||(n=new _["a"](t));var r=en(n);return r.setExtent(e[0],e[1]),Jt(r,n),r}function bn(e){p["mixin"](e,fn)}function _n(e,t){return t=t||{},Object(hn["c"])(e,null,null,"normal"!==t.state)}var wn=n("726e"),xn=n("8728"),On=1e-8;function Sn(e,t){return Math.abs(e-t)<On}function Cn(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=Object(xn["a"])(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return Sn(i[0],s[0])&&Sn(i[1],s[1])||(r+=Object(xn["a"])(i[0],i[1],s[0],s[1],t,n)),0!==r}var kn=[];function En(e,t){for(var n=0;n<e.length;n++)le["applyTransform"](e[n],e[n],t)}function An(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(le["min"](t,t,o),le["max"](n,n,o))}}function Tn(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=o*u-l*a;t+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Dn=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}(),Mn=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),Pn=function(){function e(e){this.type="linestring",this.points=e}return e}(),In=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return Object(Pe["a"])(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior,a=o&&o.length;a>n&&(e=i,n=a)}if(e)return Tn(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],r=[-1/0,-1/0],i=this.geometries;return Object(p["each"])(i,(function(t){"polygon"===t.type?An(t.exterior,n,r,e):Object(p["each"])(t.points,(function(t){An(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new _t["a"](n[0],n[1],r[0]-n[0],r[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 r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(Cn(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(Cn(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new _t["a"](e,t,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(En(c.exterior,s),Object(p["each"])(c.interiors,(function(e){En(e,s)}))):Object(p["each"])(c.points,(function(e){En(e,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.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}(Dn),jn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return Object(Pe["a"])(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=se["identity"](kn),i=e;while(i&&!i.isGeoSVGGraphicRoot)se["mul"](r,i.getLocalTransform(),r),i=i.parent;return se["invert"](r,r),le["applyTransform"](n,n,r),n},t}(Dn);function Ln(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return p["each"](r,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=Rn(i,r,n);break;case"Polygon":Nn(i,r,n);break;case"MultiLineString":Nn(i,r,n);break;case"MultiPolygon":p["each"](i,(function(e,t){return Nn(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}function Nn(e,t,n){for(var r=0;r<e.length;r++)e[r]=Rn(e[r],t[r],n)}function Rn(e,t,n){for(var r=[],i=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+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function Bn(e,t){return e=Ln(e),p["map"](p["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new Mn(o[0],o.slice(1)));break;case"MultiPolygon":p["each"](r.coordinates,(function(e){e[0]&&i.push(new Mn(e[0],e.slice(1)))}));break;case"LineString":i.push(new Pn([r.coordinates]));break;case"MultiLineString":i.push(new Pn(r.coordinates))}var a=new In(n[t||"name"],i,n.cp);return a.properties=n,a}))}var $n=n("2306"),Fn=n("deca"),zn=n("2dc5"),qn=n("0da8"),Un=n("76a5"),Hn=n("d9fc"),Vn=n("ae69"),Wn=n("4aa2"),Kn=n("4573"),Gn=n("87b1"),Yn=n("d498"),Xn=n("c7a2"),Zn=n("cb11"),Qn=n("ac0f"),Jn=n("8d32"),er=n("392f"),tr=n("d4c6"),nr=n("48a9"),rr=n("dded"),ir=n("65ed"),or=n("d409"),ar=n("998a"),sr=n("22d1"),lr=Object(j["o"])();function ur(e,t){var n=p["map"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function cr(e){var t=e.getLabelModel().get("customValues");if(t){var n=nn(e);return{labels:ur(e,t).map((function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?dr(e):gr(e)}function fr(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:ur(e,n)}:"category"===e.type?pr(e,t):{ticks:p["map"](e.scale.getTicks(),(function(e){return e.value}))}}function dr(e){var t=e.getLabelModel(),n=hr(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hr(e,t){var n,r,i=mr(e,"labels"),o=sn(t),a=vr(i,o);return a||(p["isFunction"](o)?n=Or(e,o):(r="auto"===o?br(e):o,n=xr(e,r)),yr(i,o,{labels:n,labelCategoryInterval:r}))}function pr(e,t){var n,r,i=mr(e,"ticks"),o=sn(t),a=vr(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),p["isFunction"](o))n=Or(e,o,!0);else if("auto"===o){var s=hr(e,e.getLabelModel());r=s.labelCategoryInterval,n=p["map"](s.labels,(function(e){return e.tickValue}))}else r=o,n=xr(e,r,!0);return yr(i,o,{ticks:n,tickCategoryInterval:r})}function gr(e){var t=e.scale.getTicks(),n=nn(e);return{labels:p["map"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function mr(e,t){return lr(e)[t]||(lr(e)[t]=[])}function vr(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function yr(e,t,n){return e.push({key:t,value:n}),n}function br(e){var t=lr(e).autoInterval;return null!=t?t:lr(e).autoInterval=e.calculateCategoryInterval()}function _r(e){var t=wr(e),n=nn(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.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],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=o[1];l+=s){var p=0,g=0,m=Vt["d"](n({value:l}),t.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),h=Math.max(h,g,7)}var v=d/c,y=h/f;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=lr(e.model),w=e.getExtent(),x=_.lastAutoInterval,O=_.lastTickCount;return null!=x&&null!=O&&Math.abs(x-b)<=1&&Math.abs(O-a)<=1&&x>b&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?b=x:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=w[0],_.axisExtent1=w[1]),b}function wr(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 xr(e,t,n){var r=nn(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=ln(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-l!==o[1]&&g(o[1]),s}function Or(e,t,n){var r=e.scale,i=nn(e),o=[];return p["each"](r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var Sr=[0,1],Cr=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]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(Fe["g"])(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,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),kr(n,r.count())),Object(Fe["m"])(e,Sr,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),kr(n,r.count()));var i=Object(Fe["m"])(e,n,Sr,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=fr(this,t),r=n.ticks,i=Object(p["map"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return Er(this,i,o,e.clamp),i},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),r=Object(p["map"])(n,(function(e){return Object(p["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return cr(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 r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return _r(this)},e}();function kr(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Er(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Object(p["each"])(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var f=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]}),d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&d(o.coord,s[1])&&t.push({coord:s[1]})}function d(e,t){return e=Object(Fe["w"])(e),t=Object(Fe["w"])(t),f?e>t:e<t}}var Ar=Cr,Tr=n("5210");function Dr(e){var t=d["a"].extend(e);return d["a"].registerClass(t),t}function Mr(e){var t=c["a"].extend(e);return c["a"].registerClass(t),t}function Pr(e){var t=h["b"].extend(e);return h["b"].registerClass(t),t}function Ir(e){var t=f["a"].extend(e);return f["a"].registerClass(t),t}var jr=n("8582"),Lr=n("dce8"),Nr=n("cbe5"),Rr=n("20c8"),Br=n("857d"),$r=n("4a3f"),Fr=2*Math.PI,zr=Rr["a"].CMD,qr=["top","right","bottom","left"];function Ur(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0);break}}function Hr(e,t,n,r,i,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+e,f=s*n+t;if(Math.abs(r-i)%Fr<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var d=r;r=Object(Br["a"])(i),i=Object(Br["a"])(d)}else r=Object(Br["a"])(r),i=Object(Br["a"])(i);r>i&&(i+=Fr);var h=Math.atan2(s,a);if(h<0&&(h+=Fr),h>=r&&h<=i||h+Fr>=r&&h+Fr<=i)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+e,g=n*Math.sin(r)+t,m=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(p-a)*(p-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y<b?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(b))}function Vr(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=a[0]=e+p*c,m=a[1]=t+p*f;return Math.sqrt((g-i)*(g-i)+(m-o)*(m-o))}function Wr(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=a[0]=Math.min(Math.max(i,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var Kr=[];function Gr(e,t,n){var r=Wr(t.x,t.y,t.width,t.height,e.x,e.y,Kr);return n.set(Kr[0],Kr[1]),r}function Yr(e,t,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var p=c[h++];1===h&&(o=c[h],a=c[h+1],s=o,l=a);var g=u;switch(p){case zr.M:s=c[h++],l=c[h++],o=s,a=l;break;case zr.L:g=Vr(o,a,c[h],c[h+1],f,d,Kr,!0),o=c[h++],a=c[h++];break;case zr.C:g=Object($r["e"])(o,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Kr),o=c[h++],a=c[h++];break;case zr.Q:g=Object($r["l"])(o,a,c[h++],c[h++],c[h],c[h+1],f,d,Kr),o=c[h++],a=c[h++];break;case zr.A:var m=c[h++],v=c[h++],y=c[h++],b=c[h++],_=c[h++],w=c[h++];h+=1;var x=!!(1-c[h++]);r=Math.cos(_)*y+m,i=Math.sin(_)*b+v,h<=1&&(s=r,l=i);var O=(f-m)*b/y+m;g=Hr(m,v,b,_,_+w,x,O,d,Kr),o=Math.cos(_+w)*y+m,a=Math.sin(_+w)*b+v;break;case zr.R:s=o=c[h++],l=a=c[h++];var S=c[h++],C=c[h++];g=Wr(s,l,S,C,f,d,Kr);break;case zr.Z:g=Vr(o,a,s,l,f,d,Kr,!0),o=s,a=l;break}g<u&&(u=g,n.set(Kr[0],Kr[1]))}return u}var Xr=new Lr["a"],Zr=new Lr["a"],Qr=new Lr["a"],Jr=new Lr["a"],ei=new Lr["a"];function ti(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||qr,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Object(se["invert"])([],c),d=t.get("length2")||0;u&&Qr.copy(u);for(var h=0;h<a.length;h++){var p=a[h];Ur(p,0,s,Xr,Jr),Lr["a"].scaleAndAdd(Zr,Xr,Jr,d),Zr.transform(f);var g=e.getBoundingRect(),m=u?u.distance(Zr):e instanceof Nr["b"]?Yr(Zr,e.path,Qr):Gr(Zr,g,Qr);m<l&&(l=m,Zr.transform(c),Qr.transform(c),Qr.toArray(o[0]),Zr.toArray(o[1]),Xr.toArray(o[2]))}ii(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var ni=[],ri=new Lr["a"];function ii(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Xr.fromArray(e[0]),Zr.fromArray(e[1]),Qr.fromArray(e[2]),Lr["a"].sub(Jr,Xr,Zr),Lr["a"].sub(ei,Qr,Zr);var n=Jr.len(),r=ei.len();if(!(n<.001||r<.001)){Jr.scale(1/n),ei.scale(1/r);var i=Jr.dot(ei),o=Math.cos(t);if(o<i){var a=Vr(Zr.x,Zr.y,Qr.x,Qr.y,Xr.x,Xr.y,ni,!1);ri.fromArray(ni),ri.scaleAndAdd(ei,a/Math.tan(Math.PI-t));var s=Qr.x!==Zr.x?(ri.x-Zr.x)/(Qr.x-Zr.x):(ri.y-Zr.y)/(Qr.y-Zr.y);if(isNaN(s))return;s<0?Lr["a"].copy(ri,Zr):s>1&&Lr["a"].copy(ri,Qr),ri.toArray(e[1])}}}}function oi(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xr.fromArray(e[0]),Zr.fromArray(e[1]),Qr.fromArray(e[2]),Lr["a"].sub(Jr,Zr,Xr),Lr["a"].sub(ei,Qr,Zr);var r=Jr.len(),i=ei.len();if(!(r<.001||i<.001)){Jr.scale(1/r),ei.scale(1/i);var o=Jr.dot(t),a=Math.cos(n);if(o<a){var s=Vr(Zr.x,Zr.y,Qr.x,Qr.y,Xr.x,Xr.y,ni,!1);ri.fromArray(ni);var l=Math.PI/2,u=Math.acos(ei.dot(t)),c=l+u-n;if(c>=l)Lr["a"].copy(ri,Qr);else{ri.scaleAndAdd(ei,s/Math.tan(Math.PI/2-c));var f=Qr.x!==Zr.x?(ri.x-Zr.x)/(Qr.x-Zr.x):(ri.y-Zr.y)/(Qr.y-Zr.y);if(isNaN(f))return;f<0?Lr["a"].copy(ri,Zr):f>1&&Lr["a"].copy(ri,Qr)}ri.toArray(e[1])}}}}function ai(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function si(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=le["dist"](r[0],r[1]),o=le["dist"](r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=le["lerp"]([],r[1],r[0],a/i),l=le["lerp"]([],r[1],r[2],a/o),u=le["lerp"]([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function li(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<gn["a"].length;l++){var u=gn["a"][l],c=t[u],f="normal"===u;if(c){var d=c.get("show"),h=f?s:Object(p["retrieve2"])(i.states[u]&&i.states[u].ignore,s);if(h||!Object(p["retrieve2"])(d,a)){var g=f?r:r&&r.states[u];g&&(g.ignore=!0),r&&ai(r,!0,u,c);continue}r||(r=new Yn["a"],e.setTextGuideLine(r),f||!s&&a||ai(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),ai(r,!1,u,c)}}if(r){Object(p["defaults"])(r.style,n),r.style.fill=null;var m=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=m||!1,r.buildPath=si}}else r&&e.removeTextGuideLine()}function ui(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<gn["g"].length;r++){var i=gn["g"][r];n[i]=e.getModel([i,t])}return n}var ci=n("ca80");function fi(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new ci["a"](a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function di(e,t,n,r,i,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,u=!1,c=[],f=0,d=0;d<a;d++){var h=e[d],p=h.rect;s=p[t]-l,s<0&&(p[t]-=s,h.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),f+=g,l=p[t]+p[n]}f>0&&o&&x(-f/a,0,a);var m,v,y=e[0],b=e[a-1];return _(),m<0&&O(-m,.8),v<0&&O(v,.8),_(),w(m,v,1),w(v,m,-1),_(),m<0&&S(-m),v<0&&S(v),u}function _(){m=y.rect[t]-r,v=i-b.rect[t]-b.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,a);var i=r+e;i<0&&O(-i*n,1)}else O(-e*n,1)}}function x(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function O(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var f=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var d=o[l]*f;x(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*f;x(-d,l,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?x(n,0,r+1):x(-n,a-r-1,a),e-=n,e<=0)return}}function hi(e,t,n,r){return di(e,"x","width",t,n,r)}function pi(e,t,n,r){return di(e,"y","height",t,n,r)}function gi(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new _t["a"](0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new ci["a"](p.localRect,p.transform)),f||(f=new ci["a"](s,l)),f.intersect(p.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function mi(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function vi(e,t){var n=e.label,r=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:mi(r&&r.shape.points)}}var yi=["align","verticalAlign","width","height","fontSize"],bi=new jr["c"],_i=Object(j["o"])(),wi=Object(j["o"])();function xi(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var Oi=["x","y","rotation"],Si=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();_t["a"].applyTransform(u,u,l),l?bi.setLocalTransform(l):(bi.x=bi.y=bi.rotation=bi.originX=bi.originY=0,bi.scaleX=bi.scaleY=1),bi.rotation=Object(Br["a"])(bi.rotation);var c,f=r.__hostTarget;if(f){c=f.getBoundingRect().plain();var d=f.getComputedTransform();_t["a"].applyTransform(c,c,d)}var h=c&&f.getTextGuideLine();this._labelList.push({label:r,labelLine:h,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:h&&h.ignore,x:bi.x,y:bi.y,scaleX:bi.scaleX,scaleY:bi.scaleY,rotation:bi.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(p["isFunction"])(r)||Object(p["keys"])(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),o=Object(L["a"])(e);i&&!i.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){ti(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Object(p["isFunction"])(o.layoutOption)?o.layoutOption(vi(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var f=!1;if(null!=u.x?(a.x=Object(Fe["q"])(u.x,t),a.setStyle("x",0),f=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Object(Fe["q"])(u.y,n),a.setStyle("y",0),f=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),f=!1)}var h=_i(a);h.needsUpdateLabelLine=f,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var g=0;g<yi.length;g++){var m=yi[g];a.setStyle(m,null!=u[m]?u[m]:l.style[m])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=fi(this._labelList),i=Object(p["filter"])(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=Object(p["filter"])(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));hi(i,0,t),pi(o,0,n);var a=Object(p["filter"])(r,(function(e){return e.layoutOption.hideOverlap}));gi(a)},e.prototype.processLabelsOverall=function(){var e=this;Object(p["each"])(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!r,a=t.getTextContent();!o&&a&&(o=_i(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Object(L["a"])(e),i=r.dataIndex;if(n&&null!=i){var o=t.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style");if(l){var u=o.getVisual("drawType");s.stroke=l[u]}var c=a.getModel("labelLine");li(e,ui(a),s),ti(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Object(Fn["d"])(e))){var i=_i(n),o=i.oldLayout,a=Object(L["a"])(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(a.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(Object(p["indexOf"])(c,"select")>=0&&n.attr(i.oldLayoutSelect),Object(p["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Object(Fn["h"])(n,l,t,s)}else if(n.attr(l),!Object(hn["f"])(n).valueAnimation){var f=Object(p["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Object(Fn["c"])(n,{style:{opacity:f}},t,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};xi(d,l,Oi),xi(d,n.states.select,Oi)}if(n.states.emphasis){var h=i.oldLayoutEmphasis={};xi(h,l,Oi),xi(h,n.states.emphasis,Oi)}Object(hn["a"])(n,s,u,t,t)}if(r&&!r.ignore&&!r.invisible){i=wi(r),o=i.oldLayout;var g={points:r.shape.points};o?(r.attr({shape:o}),Object(Fn["h"])(r,{shape:g},t)):(r.setShape(g),r.style.strokePercent=0,Object(Fn["c"])(r,{style:{strokePercent:1}},t)),i.oldLayout=g}},e}(),Ci=Si,ki=Object(j["o"])();function Ei(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=ki(t).labelManager;r||(r=ki(t).labelManager=new Ci),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=ki(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}b(Ei);var Ai=n("2cf4"),Ti=n("6fd3"),Di=n("3437"),Mi=n("4bc4");function Pi(e,t,n){var r=wn["d"].createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var Ii=function(e){function t(t,n,r){var i,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,r=r||Ai["e"],"string"===typeof t?i=Pi(t,n,r):p["isObject"](t)&&(i=t,t=i.id),o.id=t,o.dom=i;var a=i.style;return a&&(p["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return Object(Pe["a"])(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=Pi("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,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new _t["a"](0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new _t["a"](0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var f=new _t["a"](0,0,0,0);f.copy(c),f.union(e),o[u]=f,n=!0;break}if(s){l.copy(e),l.union(c);var d=e.width*e.height,h=c.width*c.height,p=l.width*l.height,g=p-d-h;g<r&&(r=g,i=u)}}if(s&&(o[i].union(e),n=!0),!n){t=new _t["a"](0,0,0,0);t.copy(e),o.push(t)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var f=e[c];if(f){var d=f.shouldBePainted(n,r,!0,!0),h=f.__isRendered&&(f.__dirty&Mi["a"]||!d)?f.getPrevPaintRect():null;h&&u(h);var p=d&&(f.__dirty&Mi["a"]||!f.__isRendered)?f.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){f=t[c],d=f&&f.shouldBePainted(n,r,!0,!0);if(f&&(!d||!f.__zr)&&f.__isRendered){h=f.getPrevPaintRect();h&&u(h)}}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.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 r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var f=this.domBack;function d(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;if(p["isGradientObject"](t)){var d=t.global||t.__width===r&&t.__height===o;a=d&&t.__canvasGradient||Object(Di["a"])(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a,t.__width=r,t.__height=o}else p["isImagePatternObject"](t)&&(t.scaleX=t.scaleX||u,t.scaleY=t.scaleY||u,a=Object(Tr["c"])(i,t,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(f,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&p["each"](n,(function(e){d(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(Ti["a"]),ji=Ii,Li=n("98b7"),Ni=1e5,Ri=314159,Bi=.01,$i=.001;function Fi(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function zi(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 qi=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=p["extend"]({},n||{}),this.dpr=n.devicePixelRatio||Ai["e"],this._singleCanvas=i,this.root=e;var o=e.style;o&&(p["disableUserSelect"](e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=e,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var f=new ji(l,this,this.dpr);f.__builtin__=!0,f.initContext(),s[Ri]=f,f.zlevel=Ri,a.push(Ri),this._domRoot=e}else{this._width=Object(Di["b"])(e,0,n),this._height=Object(Di["b"])(e,1,n);var d=this._domRoot=zi(this._width,this._height);e.appendChild(d)}}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,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?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 r,i={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(Ni)),r||(r=n.ctx,r.save()),Object(Tr["a"])(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Ni)},e.prototype.paintOne=function(e,t){Object(Tr["b"])(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;Object(Li["a"])((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(Ri).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],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)&&i.push(l)}for(var u=!0,c=!1,f=function(a){var s,l=i[a],f=l.ctx,h=o&&l.createRepaintRects(e,t,d._width,d._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,h);else if(p===l.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||l.clear(!1,v,h)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&f.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var _=d.dpr,w=0;w<h.length;++w){var x=h[w];f.save(),f.beginPath(),f.rect(x.x*_,x.y*_,x.width*_,x.height*_),f.clip(),b(x),f.restore()}else f.save(),b(),f.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,h=0;h<i.length;h++)f(h);return sr["a"].wxa&&p["each"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:c}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Object(Tr["a"])(a,e,i,o),e.setPrevPaintRect(s))}else Object(Tr["a"])(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Ri);var n=this._layers[e];return n||(n=new ji("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?p["merge"](n,this._layerConfig[e],!0):this._layerConfig[e-Bi]&&p["merge"](n,this._layerConfig[e-Bi],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&Fi(t)){if(i>0&&e>r[0]){for(s=0;s<i-1;s++)if(r[s]<e&&r[s+1]>e)break;a=n[r[s]]}if(r.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||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},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 r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<e.length;o++){r=e[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+$i,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?Bi:0),this._needsManuallyCompositing),u.__builtin__||p["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),r.__dirty&Mi["a"]&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__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,p["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?p["merge"](n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+Bi){var o=this._layers[i];p["merge"](o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(p["indexOf"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Object(Di["b"])(i,0,r),t=Object(Di["b"])(i,1,r),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(Ri).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[Ri].dom;var t=new ji("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 r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):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 u=a[s];Object(Tr["a"])(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),Ui=qi;function Hi(e){e.registerPainter("canvas",Ui)}var Vi=n("7a29"),Wi=n("dd4f"),Ki=Math.sin,Gi=Math.cos,Yi=Math.PI,Xi=2*Math.PI,Zi=180/Yi,Qi=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,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),f=Object(Vi["j"])(c-Xi)||(u?l>=Xi:-l>=Xi),d=l>0?l%Xi:l%Xi+Xi,h=!1;h=!!f||!Object(Vi["j"])(c)&&d>=Yi===!!u;var p=e+n*Gi(o),g=t+r*Ki(o);this._start&&this._add("M",p,g);var m=Math.round(i*Zi);if(f){var v=1/this._p,y=(u?1:-1)*(Xi-v);this._add("A",n,r,m,1,+u,e+n*Gi(o+y),t+r*Ki(o+y)),v>.01&&this._add("A",n,r,m,0,+u,p,g)}else{var b=e+n*Gi(a),_=t+r*Ki(a);this._add("A",n,r,m,+h,+u,b,_)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),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,r,i,o,a,s,l){for(var u=[],c=this._p,f=1;f<arguments.length;f++){var d=arguments[f];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(e+u.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}(),Ji=Qi,eo=n("8d1d"),to="none",no=Math.round;function ro(e){var t=e.fill;return null!=t&&t!==to}function io(e){var t=e.stroke;return null!=t&&t!==to}var oo=["lineCap","miterLimit","lineJoin"],ao=Object(p["map"])(oo,(function(e){return"stroke-"+e.toLowerCase()}));function so(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof qn["a"])e("opacity",i);else{if(ro(t)){var o=Object(Vi["p"])(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&e("fill-opacity",a)}else e("fill",to);if(io(t)){var s=Object(Vi["p"])(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if((r||1!==u)&&e("stroke-width",u),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var d=Object(eo["a"])(n),h=d[0],p=d[1];h&&(p=no(p||0),e("stroke-dasharray",h.join(",")),(p||r)&&e("stroke-dashoffset",p))}else r&&e("stroke-dasharray",to);for(var g=0;g<oo.length;g++){var m=oo[g];if(r||t[m]!==Nr["a"][m]){var v=t[m]||Nr["a"][m];v&&e(ao[g],v)}}}else r&&e("stroke",to)}}var lo="http://www.w3.org/2000/svg",uo="http://www.w3.org/1999/xlink",co="http://www.w3.org/2000/xmlns/",fo="http://www.w3.org/XML/1998/namespace",ho="ecmeta_";function po(e){return document.createElementNS(lo,e)}function go(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function mo(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function vo(e){return"</"+e+">"}function yo(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs,a=e.text;return mo(i,o)+("style"!==i?Object(ir["a"])(a):a||"")+(t?""+n+Object(p["map"])(t,(function(e){return r(e)})).join(n)+n:"")+vo(i)}return r(e)}function bo(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(p["map"])(Object(p["keys"])(e),(function(t){return t+i+Object(p["map"])(Object(p["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=Object(p["map"])(Object(p["keys"])(t),(function(e){return"@keyframes "+e+i+Object(p["map"])(Object(p["keys"])(t[e]),(function(n){return n+i+Object(p["map"])(Object(p["keys"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function _o(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function wo(e,t,n,r){return go("svg","root",{width:e,height:t,xmlns:lo,"xmlns:xlink":uo,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var xo=n("5e76"),Oo=n("b362"),So=0;function Co(){return So++}var ko={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"},Eo="transform-origin";function Ao(e,t,n){var r=Object(p["extend"])({},e.shape);Object(p["extend"])(r,t),e.buildPath(n,r);var i=new Ji;return i.reset(Object(Vi["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function To(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Eo]=n+"px "+r+"px")}var Do={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Mo(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Po(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(p["each"])(o,(function(e){var t=_o(n.zrId);t.animation=!0,jo(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(p["keys"])(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var f in c){var d=c[f];a[f]=a[f]||{d:""},a[f].d+=d.d||""}for(var h in s){var g=s[h].animation;g.indexOf(i)>=0&&(r=g)}}})),r){t.d=!1;var s=Mo(a,n);return r.replace(i,s)}}function Io(e){return Object(p["isString"])(e)?ko[e]?"cubic-bezier("+ko[e]+")":Object(Oo["a"])(e)?e:"":""}function jo(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof tr["a"]){var s=Po(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=Io(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var g=f.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function m(i){var o,a=i[1],s=a.length,l={},u={},c={},f="animation-timing-function";function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",h=Io(c.easing),g=c.rawValue;(Object(p["isString"])(g)||Object(p["isNumber"])(g))&&(t[d]=t[d]||{},t[d][l]=c.rawValue,h&&(t[d][f]=h))}}}}for(var h=0;h<s;h++){var g=a[h],m=g.targetName;m?"shape"===m&&d(g,u):!r&&d(g,l)}for(var v in l){var y={};Object(jr["b"])(y,e),Object(p["extend"])(y,l[v]);var b=Object(Vi["g"])(y),_=l[v][f];c[v]=b?{transform:b}:{},To(c[v],y),_&&(c[v][f]=_)}var w=!0;for(var v in u){c[v]=c[v]||{};var x=!o;_=u[v][f];x&&(o=new Rr["a"]);var O=o.len();o.reset(),c[v].d=Ao(e,u[v],o);var S=o.len();if(!x&&O!==S){w=!1;break}_&&(c[v][f]=_)}if(!w)for(var v in c)delete c[v].d;if(!r)for(h=0;h<s;h++){g=a[h],m=g.targetName;"style"===m&&d(g,c,(function(e){return Do[e]}))}var C,k=Object(p["keys"])(c),E=!0;for(h=1;h<k.length;h++){var A=k[h-1],T=k[h];if(c[A][Eo]!==c[T][Eo]){E=!1;break}C=c[A][Eo]}if(E&&C){for(var v in c)c[v][Eo]&&delete c[v][Eo];t[Eo]=C}if(Object(p["filter"])(k,(function(e){return Object(p["keys"])(c[e]).length>0})).length){var D=Mo(c,n);return D+" "+i[0]+" both"}}for(var v in l){s=m(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+Co();n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}function Lo(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};No(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=Object(ue["liftColor"])(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u/=c}r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),No(r,t,n,!0)}}function No(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Co(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var Ro=Math.round;function Bo(e){return e&&Object(p["isString"])(e.src)}function $o(e){return e&&Object(p["isFunction"])(e.toDataURL)}function Fo(e,t,n,r){so((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Vi["k"])(o)?ta(t,e,i,r):a&&Object(Vi["n"])(o)?na(n,e,i,r):e[i]=a&&"none"===o?"transparent":o}),t,n,!1),ea(n,e,r)}function zo(e,t){var n=Object(m["getElementSSRData"])(t);n&&(n.each((function(t,n){null!=t&&(e[(ho+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[ho+"silent"]="true"))}function qo(e){return Object(Vi["j"])(e[0]-1)&&Object(Vi["j"])(e[1])&&Object(Vi["j"])(e[2])&&Object(Vi["j"])(e[3]-1)}function Uo(e){return Object(Vi["j"])(e[4])&&Object(Vi["j"])(e[5])}function Ho(e,t,n){if(t&&(!Uo(t)||!qo(t))){var r=n?10:1e4;e.transform=qo(t)?"translate("+Ro(t[4]*r)/r+" "+Ro(t[5]*r)/r+")":Object(Vi["e"])(t)}}function Vo(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(Ro(r[o][0]*n)/n),i.push(Ro(r[o][1]*n)/n);t.points=i.join(" ")}function Wo(e){return!e.smooth}function Ko(e){var t=Object(p["map"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,r){for(var i=0;i<t.length;i++){var o=t[i],a=e[o[0]];null!=a&&(n[o[1]]=Ro(a*r)/r)}}}var Go={circle:[Ko(["cx","cy","r"])],polyline:[Vo,Wo],polygon:[Vo,Wo]};function Yo(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,r=e.shape,i=Go[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&Object(Vi["f"])(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||a&&Yo(e)||l<1){var c=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;c&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var d=f.getVersion(),h=e,p=h.__svgPathBuilder;h.__svgPathVersion===d&&p&&l===h.__svgPathStrokePercent||(p||(p=h.__svgPathBuilder=new Ji),p.reset(u),f.rebuildPath(p,l),p.generateStr(),h.__svgPathVersion=d,h.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=e.type;var g=Math.pow(10,u);i[0](r,o,g)}return Ho(o,e.transform),Fo(o,n,e,t),zo(o,e),t.animation&&jo(e,o,t),t.emphasis&&Lo(e,o,t),go(s,e.id+"",o)}function Zo(e,t){var n=e.style,r=n.image;if(r&&!Object(p["isString"])(r)&&(Bo(r)?r=r.src:$o(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),Ho(l,e.transform),Fo(l,n,e,t),zo(l,e),t.animation&&jo(e,l,t),go("image",e.id+"",l)}}function Qo(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||wn["a"],o=n.x||0,a=Object(Vi["b"])(n.y||0,Object(Vt["e"])(i),n.textBaseline),s=Vi["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Object(Un["b"])(n)){var u="",c=n.fontStyle,f=Object(Un["c"])(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||wn["b"],h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),h&&"normal"!==h&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),Ho(l,e.transform),Fo(l,n,e,t),zo(l,e),t.animation&&jo(e,l,t),go("text",e.id+"",l,void 0,r)}}function Jo(e,t){return e instanceof Nr["b"]?Xo(e,t):e instanceof qn["a"]?Zo(e,t):e instanceof Wi["a"]?Qo(e,t):void 0}function ea(e,t,n){var r=e.style;if(Object(Vi["i"])(r)){var i=Object(Vi["h"])(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=Object(Vi["p"])(r.shadowColor),p=h.opacity,g=h.color,m=d/2/l,v=d/2/u,y=m+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=go("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[go("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":g,"flood-opacity":p})]),o[i]=a}t.filter=Object(Vi["d"])(a)}}function ta(e,t,n,r){var i,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Vi["m"])(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Vi["o"])(o))return void 0;i="radialGradient",a.cx=Object(p["retrieve2"])(o.x,.5),a.cy=Object(p["retrieve2"])(o.y,.5),a.r=Object(p["retrieve2"])(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=100*Object(Vi["q"])(s[u].offset)+"%",d=s[u].color,h=Object(Vi["p"])(d),g=h.color,m=h.opacity,v={offset:f};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),l.push(go("stop",u+"",v))}var y=go(i,"",a,l),b=yo(y),_=r.gradientCache,w=_[b];w||(w=r.zrId+"-g"+r.gradientIdx++,_[b]=w,a.id=w,r.defs[w]=go(i,w,a,l)),t[n]=Object(Vi["d"])(w)}function na(e,t,n,r){var i,o=e.style[n],a=e.getBoundingRect(),s={},l=o.repeat,u="no-repeat"===l,c="repeat-x"===l,f="repeat-y"===l;if(Object(Vi["l"])(o)){var d=o.imageWidth,h=o.imageHeight,g=void 0,m=o.image;if(Object(p["isString"])(m)?g=m:Bo(m)?g=m.src:$o(m)&&(g=m.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(p["assert"])(d,v),Object(p["assert"])(h,v)}else if(null==d||null==h){var y=function(e,t){if(e){var n=e.elm,r=d||t.width,i=h||t.height;"pattern"===e.tag&&(c?(i=1,r/=a.width):f&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},b=Object(xo["a"])(g,null,e,(function(e){u||y(O,e),y(i,e)}));b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}i=go("image","img",{href:g,width:d,height:h}),s.width=d,s.height=h}else o.svgElement&&(i=Object(p["clone"])(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(i){var _,w;u?_=w=1:c?(w=1,_=s.width/a.width):f?(_=1,w=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==w||isNaN(w)||(s.height=w);var x=Object(Vi["g"])(o);x&&(s.patternTransform=x);var O=go("pattern","",s,[i]),S=yo(O),C=r.patternCache,k=C[S];k||(k=r.zrId+"-p"+r.patternIdx++,C[S]=k,s.id=k,O=r.defs[k]=go("pattern",k,s,[i])),t[n]=Object(Vi["d"])(k)}}function ra(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[e.id]=o,i[o]=go("clipPath",o,a,[Xo(e,n)])}t["clip-path"]=Object(Vi["d"])(o)}function ia(e){return document.createTextNode(e)}function oa(e,t,n){e.insertBefore(t,n)}function aa(e,t){e.removeChild(t)}function sa(e,t){e.appendChild(t)}function la(e){return e.parentNode}function ua(e){return e.nextSibling}function ca(e,t){e.textContent=t}var fa=58,da=120,ha=go("","");function pa(e){return void 0===e}function ga(e){return void 0!==e}function ma(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;void 0!==o&&(r[o]=i)}return r}function va(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function ya(e){var t,n=e.children,r=e.tag;if(ga(r)){var i=e.elm=po(r);if(wa(ha,e),Object(p["isArray"])(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&sa(i,ya(o))}else ga(e.text)&&!Object(p["isObject"])(e.text)&&sa(i,ia(e.text))}else e.elm=ia(e.text);return e.elm}function ba(e,t,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&oa(e,ya(o),t)}}function _a(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(ga(i.tag)){var o=la(i.elm);aa(o,i.elm)}else aa(e,i.elm)}}function wa(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:n.charCodeAt(0)!==da?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(co,n,a):n.charCodeAt(3)===fa?r.setAttributeNS(fo,n,a):n.charCodeAt(5)===fa?r.setAttributeNS(uo,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function xa(e,t,n){var r,i,o,a,s=0,l=0,u=t.length-1,c=t[0],f=t[u],d=n.length-1,h=n[0],p=n[d];while(s<=u&&l<=d)null==c?c=t[++s]:null==f?f=t[--u]:null==h?h=n[++l]:null==p?p=n[--d]:va(c,h)?(Oa(c,h),c=t[++s],h=n[++l]):va(f,p)?(Oa(f,p),f=t[--u],p=n[--d]):va(c,p)?(Oa(c,p),oa(e,c.elm,ua(f.elm)),c=t[++s],p=n[--d]):va(f,h)?(Oa(f,h),oa(e,f.elm,c.elm),f=t[--u],h=n[++l]):(pa(r)&&(r=ma(t,s,u)),i=r[h.key],pa(i)?oa(e,ya(h),c.elm):(o=t[i],o.tag!==h.tag?oa(e,ya(h),c.elm):(Oa(o,h),t[i]=void 0,oa(e,o.elm,c.elm))),h=n[++l]);(s<=u||l<=d)&&(s>u?(a=null==n[d+1]?null:n[d+1].elm,ba(e,a,n,l,d)):_a(e,t,s,u))}function Oa(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(wa(e,t),pa(t.text)?ga(r)&&ga(i)?r!==i&&xa(n,r,i):ga(i)?(ga(e.text)&&ca(n,""),ba(n,null,i,0,i.length-1)):ga(r)?_a(n,r,0,r.length-1):ga(e.text)&&ca(n,""):e.text!==t.text&&(ga(r)&&_a(n,r,0,r.length-1),ca(n,t.text)))}function Sa(e,t){if(va(e,t))Oa(e,t);else{var n=e.elm,r=la(n);ya(t),null!==r&&(oa(r,t.elm,ua(n)),_a(r,[e],0,0))}return t}var Ca=0,ka=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=Ea("refreshHover"),this.configLayer=Ea("configLayer"),this.storage=t,this._opts=n=Object(p["extend"])({},n),this.root=e,this._id="zr"+Ca++,this._oldVNode=wo(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=po("svg");wa(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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",Sa(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Jo(e,_o(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=_o(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis;var o=[],a=this._bgVNode=Aa(n,r,this._backgroundColor,i);a&&o.push(a);var s=e.compress?null:this._mainVNode=go("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var l=Object(p["map"])(Object(p["keys"])(i.defs),(function(e){return i.defs[e]}));if(l.length&&o.push(go("defs","defs",{},l)),e.animation){var u=bo(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=go("style","stl",{},[],u);o.push(c)}}return wo(n,r,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},yo(this.renderToVNode({animation:Object(p["retrieve2"])(e.cssAnimation,!0),emphasis:Object(p["retrieve2"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(p["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 r,i,o=e.length,a=[],s=0,l=0,u=0;u<o;u++){var c=e[u];if(!c.invisible){var f=c.__clipPaths,d=f&&f.length||0,h=i&&i.length||0,p=void 0;for(p=Math.max(d-1,h-1);p>=0;p--)if(f&&i&&f[p]===i[p])break;for(var g=h-1;g>p;g--)s--,r=a[s-1];for(var m=p+1;m<d;m++){var v={};ra(f[m],v,t);var y=go("g","clip-g-"+l++,v,[]);(r?r.children:n).push(y),a[s++]=y,r=y}i=f;var b=Jo(c,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=Object(Di["b"])(r,0,n),t=Object(Di["b"])(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Object(Vi["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(Vi["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function Ea(e){return function(){0}}function Aa(e,t,n,r){var i;if(n&&"none"!==n)if(i=go("rect","bg",{width:e,height:t,x:"0",y:"0"}),Object(Vi["k"])(n))ta({fill:n},i.attrs,"fill",r);else if(Object(Vi["n"])(n))na({style:{fill:n},dirty:p["noop"],getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",r);else{var o=Object(Vi["p"])(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}var Ta=ka;function Da(e){e.registerPainter("svg",Ta)}var Ma=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e){return Me(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new zn["a"],n=Object(pn["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=Object(pn["a"])(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?i: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}(h["b"]),Pa=Ma;function Ia(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Object(C["e"])(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Object(C["e"])(e,t,n[a]));return o.join(" ")}}function ja(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(p["isArray"])(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var La=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return Object(Pe["a"])(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=Object(pn["a"])(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Na,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(){Object(gn["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(gn["C"])(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,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(d):Fn["h"](f,d,a,n),Object(Fn["g"])(f)}if(this._updateCommon(e,n,s,r,i),l){f=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Fn["c"](f,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,g=this.childAt(0),m=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,f=r.labelStatesModels,d=r.hoverScale,h=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),f=Object(hn["e"])(v),d=y.getShallow("scale"),h=v.getShallow("cursor")}var b=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var _=Object(pn["b"])(e.getItemVisual(t,"symbolOffset"),n);_&&(g.x=_[0],g.y=_[1]),h&&g.attr("cursor",h);var w=e.getItemVisual(t,"style"),x=w.fill;if(g instanceof qn["a"]){var O=g.style;g.useStyle(Object(p["extend"])({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},w))}else g.__isEmptyBrush?g.useStyle(Object(p["extend"])({},w)):g.useStyle(w),g.style.decal=null,g.setColor(x,i&&i.symbolInnerColor),g.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=g.z2,g.z2+=S):null!=C&&(g.z2=C,this._z2=null);var k=i&&i.useNameLabel;function E(t){return k?e.getName(t):Ia(e,t)}Object(hn["g"])(g,f,{labelFetcher:m,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var A=g.ensureState("emphasis");A.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;A.scaleX=this._sizeX*T,A.scaleY=this._sizeY*T,this.setSymbolScale(1),Object(gn["J"])(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Object(L["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&Fn["e"](a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Fn["e"](r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(pn["c"])(e.getItemVisual(t,"symbolSize"))},t}(zn["a"]);function Na(e,t){this.parent.drift(e,t)}var Ra=La;function Ba(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function $a(e){return null==e||Object(p["isObject"])(e)||(e={isIgnore:e}),e||{}}function Fa(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:Object(hn["e"])(t),cursorStyle:t.get("cursor")}}var za=function(){function e(e){this.group=new zn["a"],this._SymbolCtor=e||Ra}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=$a(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=Fa(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(Ba(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,f){var d=i.getItemGraphicEl(f),h=u(c);if(Ba(e,h,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(e,c,s,l),d.setPosition(h);else{d.updateData(e,c,s,l);var m={x:h[0],y:h[1]};a?d.attr(m):Fn["h"](d,m,r)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Fa(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=$a(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Ba(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){$n["traverseElements"](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}(),qa=za;function Ua(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=Ha(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,f=Object(p["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,h=t.getCalculationInfo("stackResultDimension");return Se(t,f[0])&&(d=!0,f[0]=h),Se(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Ha(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:Object(p["isNumber"])(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Va(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}function Wa(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 Ka(e,t,n,r,i,o,a,s){for(var l=Wa(e,t),u=[],c=[],f=[],d=[],h=[],p=[],g=[],m=Ua(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],w=!0,x=void 0,O=void 0;switch(_.cmd){case"=":x=2*_.idx,O=2*_.idx1;var S=v[x],C=v[x+1],k=y[O],E=y[O+1];(isNaN(S)||isNaN(C))&&(S=k,C=E),u.push(S,C),c.push(k,E),f.push(n[x],n[x+1]),d.push(r[O],r[O+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var A=_.idx,T=m.dataDimsForPoint,D=i.dataToPoint([t.get(T[0],A),t.get(T[1],A)]);O=2*A,u.push(D[0],D[1]),c.push(y[O],y[O+1]);var M=Va(m,i,t,A);f.push(M[0],M[1]),d.push(r[O],r[O+1]),g.push(t.getRawIndex(A));break;case"-":w=!1}w&&(h.push(_),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var P=u.length,I=ot(P),j=ot(P),L=ot(P),N=ot(P),R=[];for(b=0;b<p.length;b++){var B=p[b],$=2*b,F=2*B;I[$]=u[F],I[$+1]=u[F+1],j[$]=c[F],j[$+1]=c[F+1],L[$]=f[F],L[$+1]=f[F+1],N[$]=d[F],N[$+1]=d[F+1],R[b]=h[B]}return{current:I,next:j,stackedOnCurrent:L,stackedOnNext:N,status:R}}var Ga=Math.min,Ya=Math.max;function Xa(e,t){return isNaN(e)||isNaN(t)}function Za(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,h,p,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(Xa(v,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,y),f=v,d=y;else{var b=v-u,_=y-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var w=g+o,x=t[2*w],O=t[2*w+1];while(x===v&&O===y&&m<r)m++,w+=o,g+=o,x=t[2*w],O=t[2*w+1],v=t[2*g],y=t[2*g+1],b=v-u,_=y-c;var S=m+1;if(l)while(Xa(x,O)&&S<r)S++,w+=o,x=t[2*w],O=t[2*w+1];var C=.5,k=0,E=0,A=void 0,T=void 0;if(S>=r||Xa(x,O))h=v,p=y;else{k=x-u,E=O-c;var D=v-u,M=x-v,P=y-c,I=O-y,j=void 0,L=void 0;if("x"===s){j=Math.abs(D),L=Math.abs(M);var N=k>0?1:-1;h=v-N*j*a,p=y,A=v+N*L*a,T=y}else if("y"===s){j=Math.abs(P),L=Math.abs(I);var R=E>0?1:-1;h=v,p=y-R*j*a,A=v,T=y+R*L*a}else j=Math.sqrt(D*D+P*P),L=Math.sqrt(M*M+I*I),C=L/(L+j),h=v-k*a*(1-C),p=y-E*a*(1-C),A=v+k*a*C,T=y+E*a*C,A=Ga(A,Ya(x,v)),T=Ga(T,Ya(O,y)),A=Ya(A,Ga(x,v)),T=Ya(T,Ga(O,y)),k=A-v,E=T-y,h=v-k*j/L,p=y-E*j/L,h=Ga(h,Ya(u,v)),p=Ga(p,Ya(c,y)),h=Ya(h,Ga(u,v)),p=Ya(p,Ga(c,y)),k=v-h,E=y-p,A=v+k*L/j,T=y+E*L/j}e.bezierCurveTo(f,d,h,p,v,y),f=A,d=T}else e.lineTo(v,y)}u=v,c=y,g+=o}return m}var Qa=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ja=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qa},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!Xa(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!Xa(n[2*r],n[2*r+1]))break}while(r<i)r+=Za(e,n,r,i,i,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,r,i=this.path,o=i.data,a=Rr["a"].CMD,s="x"===t,l=[],u=0;u<o.length;){var c=o[u++],f=void 0,d=void 0,h=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(c){case a.M:n=o[u++],r=o[u++];break;case a.L:if(f=o[u++],d=o[u++],v=s?(e-n)/(f-n):(e-r)/(d-r),v<=1&&v>=0){var y=s?(d-r)*v+r:(f-n)*v+n;return s?[e,y]:[y,e]}n=f,r=d;break;case a.C:f=o[u++],d=o[u++],h=o[u++],p=o[u++],g=o[u++],m=o[u++];var b=s?Object($r["f"])(n,f,h,g,e,l):Object($r["f"])(r,d,p,m,e,l);if(b>0)for(var _=0;_<b;_++){var w=l[_];if(w<=1&&w>=0){y=s?Object($r["a"])(r,d,p,m,w):Object($r["a"])(n,f,h,g,w);return s?[e,y]:[y,e]}}n=g,r=m;break}}},t}(Nr["b"]),es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t}(Qa),ts=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new es},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!Xa(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!Xa(n[2*i],n[2*i+1]))break}while(i<o){var s=Za(e,n,i,o,o,1,t.smooth,a,t.connectNulls);Za(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(Nr["b"]);function ns(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new Xn["a"]({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),g=d.inverse;h?(g&&(f.shape.x+=l),f.shape.width=0):(g||(f.shape.y+=u),f.shape.height=0);var m=Object(p["isFunction"])(i)?function(e){i(e,f)}:null;Fn["c"](f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function rs(e,t,n){var r=e.getArea(),i=Object(Fe["w"])(r.r0,1),o=Object(Fe["w"])(r.r,1),a=new Wn["a"]({shape:{cx:Object(Fe["w"])(e.cx,1),cy:Object(Fe["w"])(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,Fn["c"](a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function is(e,t,n,r,i){return e?"polar"===e.type?rs(e,t,n):"cartesian2d"===e.type?ns(e,t,n,r,i):null:null}function os(e,t){return e.type===t}function as(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function ss(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function ls(e,t){var n=ss(e),r=n[0],i=n[1],o=ss(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function us(e){return p["isNumber"](e)?e:e?.5:0}function cs(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=ot(2*r),o=0;o<r;o++){var a=Va(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function fs(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,h=[];l[o]=h[o]=d,l[1-o]=u[1-o],h[1-o]=c[1-o],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function ds(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r),o=Object(ue["lerp"])(i,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function hs(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=p["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=ds(u,"x"===i?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var g=10,m=d[0].coord-g,v=d[h-1].coord+g,y=v-m;if(y<.001)return"transparent";p["each"](d,(function(e){e.offset=(e.coord-m)/y})),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new nr["a"](0,0,0,0,d,!0);return b[i]=m,b[i+"2"]=v,b}}}function ps(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!gs(o,t))){var a=t.mapDimension(o.dim),s={};return p["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 gs(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Ra.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}function ms(e,t){return isNaN(e)||isNaN(t)}function vs(e){for(var t=e.length/2;t>0;t--)if(!ms(e[2*t-2],e[2*t-1]))break;return t-1}function ys(e,t){return[e[2*t],e[2*t+1]]}function bs(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function _s(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<gn["g"].length;t++)if(e.get([gn["g"][t],"endLabel","show"]))return!0;return!1}function ws(e,t,n,r){if(os(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=_s(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=ns(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=2*d):(f.x-=d,f.width+=2*d)}return l&&l(1,c),c}return rs(t,n,r)}function xs(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.init=function(){var e=new zn["a"],t=new qa;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,f=this._coordSys,d=this._symbolDraw,h=this._polyline,g=this._polygon,m=this._lineGroup,v=!t.ssr&&e.get("animation"),y=!l.isEmpty(),b=l.get("origin"),_=Ua(i,a,b),w=y&&cs(i,a,_),x=e.get("showSymbol"),O=e.get("connectNulls"),S=x&&!c&&ps(e,a,i),C=this._data;C&&C.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),C.setItemGraphicEl(t,null))})),x||d.remove(),o.add(m);var k,E=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(k=i.getArea(),null!=k.width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var A=hs(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&f.type===i.type&&E===this._step){y&&!g?g=this._newPolygon(u,w):g&&!y&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Object(Qe["c"])(A));var T=m.getClipPath();if(T){var D=ws(this,i,!1,e);Fn["c"](T,{shape:D.shape},e)}else m.setClipPath(ws(this,i,!0,e));x&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),as(this._stackedOnPoints,w)&&as(this._points,u)||(v?this._doUpdateAnimation(a,w,i,n,E,b,O):(E&&(u=fs(u,i,E,O),w&&(w=fs(w,i,E,O))),h.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:w})))}else x&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,i,k),E&&(u=fs(u,i,E,O),w&&(w=fs(w,i,E,O))),h=this._newPolyline(u),y?g=this._newPolygon(u,w):g&&(m.remove(g),g=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Object(Qe["c"])(A)),m.setClipPath(ws(this,i,!0,e));var M=e.getModel("emphasis"),P=M.get("focus"),I=M.get("blurScope"),j=M.get("disabled");if(h.useStyle(p["defaults"](s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Object(gn["I"])(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var N=h.getState("emphasis").style;N.lineWidth=+h.style.lineWidth+1}Object(L["a"])(h).seriesIndex=e.seriesIndex,Object(gn["J"])(h,P,I,j);var R=us(e.get("smooth")),B=e.get("smoothMonotone");if(h.setShape({smooth:R,smoothMonotone:B,connectNulls:O}),g){var $=a.getCalculationInfo("stackedOnSeries"),F=0;g.useStyle(p["defaults"](l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),$&&(F=us($.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:B,connectNulls:O}),Object(gn["I"])(g,e,"areaStyle"),Object(L["a"])(g).seriesIndex=e.seriesIndex,Object(gn["J"])(g,P,I,j)}var z=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=w,this._points=u,this._step=E,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,h),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,t){Object(L["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=j["u"](i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new Ra(i,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else f["a"].prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=j["u"](i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else f["a"].prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(gn["H"])(this._polyline,e),t&&Object(gn["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Ja({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 ts({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");p["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=p["isFunction"](u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var f=[e.x,e.y],d=void 0,h=void 0,g=void 0;if(n)if(i){var m=n,v=t.pointToCoord(f);r?(d=m.startAngle,h=m.endAngle,g=-v[1]/180*Math.PI):(d=m.r0,h=m.r,g=v[0])}else{var y=n;r?(d=y.x,h=y.x+y.width,g=e.x):(d=y.y+y.height,h=y.y,g=e.y)}var b=h===d?0:(g-d)/(h-d);a&&(b=1-b);var _=p["isFunction"](u)?u(o):l*b+c,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 r=e.getModel("endLabel");if(_s(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Un["a"]({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=vs(a);l>=0&&(Object(hn["g"])(o,Object(hn["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?ja(i,n):Ia(i,e)},enableTextSetter:!0},xs(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,f=c.get("connectNulls"),d=o.get("precision"),h=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?h:0)*(m?-1:1),_=(g?0:-h)*(m?-1:1),w=g?"x":"y",x=bs(u,y,w),O=x.range,S=O[1]-O[0],C=void 0;if(S>=1){if(S>1&&!f){var k=ys(u,O[0]);s.attr({x:k[0]+b,y:k[1]+_}),i&&(C=c.getRawValue(O[0]))}else{k=l.getPointOn(y,w);k&&s.attr({x:k[0]+b,y:k[1]+_});var E=c.getRawValue(O[0]),A=c.getRawValue(O[1]);i&&(C=j["k"](n,d,E,A,x.t))}r.lastFrameIndex=O[0]}else{var T=1===e||r.lastFrameIndex>0?O[0]:0;k=ys(u,T);i&&(C=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+_})}if(i){var D=Object(hn["f"])(s);"function"===typeof D.setLabelText&&D.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=Ka(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),f=c.current,d=c.stackedOnCurrent,h=c.next,p=c.stackedOnNext;if(i&&(f=fs(c.current,n,i,a),d=fs(c.stackedOnCurrent,n,i,a),h=fs(c.next,n,i,a),p=fs(c.stackedOnNext,n,i,a)),ls(f,h)>3e3||l&&ls(d,p)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=f;var g={shape:{points:h}};c.current!==f&&(g.shape.__points=c.next),s.stopAnimation(),Fn["h"](s,g,u),l&&(l.setShape({points:f,stackedOnPoints:d}),l.stopAnimation(),Fn["h"](l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){var b=v[y].cmd;if("="===b){var _=e.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}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,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+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,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(f["a"]),Ss=Os;function Cs(e,t){return{seriesType:e,plan:Object(nt["a"])(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=Object(p["map"])(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Se(n,a[0])&&(a[0]=l),Se(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&ot(n*s),a=[],l=[],d=e.start,h=0;d<e.end;d++){var p=void 0;if(1===s){var g=u.get(c,d);p=r.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(f,d),p=r.dataToPoint(a,null,l);o?(i[h++]=p[0],i[h++]=p[1]):t.setItemLayout(d,p.slice())}o&&t.setLayout("points",i)}}}}}}var ks={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],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},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var i=e[r],o=Math.abs(i);o>t&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Es=function(e){return Math.round(e.length/2)};function As(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/f);if(isFinite(d)&&d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var h=void 0;Object(p["isString"])(i)?h=ks[i]:Object(p["isFunction"])(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,h,Es))}}}}}function Ts(e){e.registerChartView(Ss),e.registerSeriesModel(Pa),e.registerLayout(Cs("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,As("line"))}var Ds=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Me(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),o=r.dataToPoint(i);if(n)Object(p["each"])(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,f=1,d=0;d<r.length;d++){var h=r[d].coord,p=d===r.length-1?r[d-1].tickValue+f:r[d].tickValue;if(p===s){c=h;break}if(p<s)u=h;else if(null!=u&&p>s){c=(h+u)/2;break}1===d&&(f=p-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=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}(h["b"]);h["b"].registerClass(Ds);var Ms=Ds,Ps=n("8918"),Is=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(){return Me(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=Object(Ps["d"])(Ms.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}(Ms),js=Is,Ls=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}(),Ns=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ls},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,f=2*Math.PI,d=c?u-l<f:l-u<f;d||(l=u-(c?f:-f));var h=Math.cos(l),p=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(e.moveTo(h*i+n,p*i+r),e.arc(h*s+n,p*s+r,a,-Math.PI+l,l,!c)):e.moveTo(h*o+n,p*o+r),e.arc(n,r,o,l,u,!c),e.arc(g*s+n,m*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(Nr["b"]),Rs=Ns;function Bs(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,i){var o=r.position;if(!o||o instanceof Array)return Object(Vt["c"])(t,r,i);var a=e(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,f=l.r,d=l.r0,h=(f+d)/2,p=l.startAngle,g=l.endAngle,m=(p+g)/2,v=n?Math.abs(f-d)/2:0,y=Math.cos,b=Math.sin,_=u+f*y(p),w=c+f*b(p),x="left",O="top";switch(a){case"startArc":_=u+(d-s)*y(m),w=c+(d-s)*b(m),x="center",O="top";break;case"insideStartArc":_=u+(d+s)*y(m),w=c+(d+s)*b(m),x="center",O="bottom";break;case"startAngle":_=u+h*y(p)+Fs(p,s+v,!1),w=c+h*b(p)+zs(p,s+v,!1),x="right",O="middle";break;case"insideStartAngle":_=u+h*y(p)+Fs(p,-s+v,!1),w=c+h*b(p)+zs(p,-s+v,!1),x="left",O="middle";break;case"middle":_=u+h*y(m),w=c+h*b(m),x="center",O="middle";break;case"endArc":_=u+(f+s)*y(m),w=c+(f+s)*b(m),x="center",O="bottom";break;case"insideEndArc":_=u+(f-s)*y(m),w=c+(f-s)*b(m),x="center",O="top";break;case"endAngle":_=u+h*y(g)+Fs(g,s+v,!0),w=c+h*b(g)+zs(g,s+v,!0),x="left",O="middle";break;case"insideEndAngle":_=u+h*y(g)+Fs(g,-s+v,!0),w=c+h*b(g)+zs(g,-s+v,!0),x="right",O="middle";break;default:return Object(Vt["c"])(t,r,i)}return t=t||{},t.x=_,t.y=w,t.align=x,t.verticalAlign=O,t}}function $s(e,t,n,r){if(Object(p["isNumber"])(r))e.setTextConfig({rotation:r});else if(Object(p["isArray"])(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function Fs(e,t,n){return t*Math.sin(e)*(n?-1:1)}function zs(e,t,n){return t*Math.cos(e)*(n?1:-1)}function qs(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(p["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(p["map"])(r,(function(e){return Object(Vt["g"])(e,i)}))}}var Us=Math.max,Hs=Math.min;function Vs(e,t){var n=e.getArea&&e.getArea();if(os(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var Ws=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},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){Object($n["traverseElements"])(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,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,f=Ys(e,l);f&&this._enableRealtimeSort(f,a,n);var d=e.get("clip",!0)||f,h=Vs(l,a);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,_=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function x(e){var t=tl[l.type](a,e),n=dl(l,i,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=tl[l.type](a,t,n);if(g&&x(t),a.hasValue(t)&&el[l.type](r)){var s=!1;d&&(s=Ks[l.type](h,r));var m=Gs[l.type](e,a,t,r,i,c,u.model,!1,p);f&&(m.forceLabelAnimation=!0),il(m,a,t,n,r,e,i,"polar"===l.type),_?m.attr({shape:r}):f?Xs(f,c,m,r,t,i,!1,!1):Object(Fn["c"])(m,{shape:r},e,t),a.setItemGraphicEl(t,m),o.add(m),m.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),O=tl[l.type](a,t,r);if(g){var S=void 0;0===b.length?S=x(n):(S=b[n],S.useStyle(m.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),y[t]=S);var C=tl[l.type](a,t),k=fl(i,C,l);Object(Fn["h"])(S,{shape:k},c,t)}var E=s.getItemGraphicEl(n);if(a.hasValue(t)&&el[l.type](O)){var A=!1;if(d&&(A=Ks[l.type](h,O),A&&o.remove(E)),E?Object(Fn["g"])(E):E=Gs[l.type](e,a,t,O,i,c,u.model,!!E,p),f&&(E.forceLabelAnimation=!0),w){var T=E.getTextContent();if(T){var D=Object(hn["f"])(T);null!=D.prevValue&&(D.prevValue=D.value)}}else il(E,a,t,r,O,e,i,"polar"===l.type);_?E.attr({shape:O}):f?Xs(f,c,E,O,t,i,!0,w):Object(Fn["h"])(E,{shape:O},e,t,null),a.setItemGraphicEl(t,E),E.ignore=A,o.add(E)}else o.remove(E)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Object(Fn["f"])(n,e,t)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new zn["a"]);O.removeAll();for(var S=0;S<y.length;++S)O.add(y[S]);o.add(O),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),ll(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),ll(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&is(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(p["map"])(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},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){Object(Fn["f"])(t,e,Object(L["a"])(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}(f["a"]),Ks={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=Us(t.x,e.x),s=Hs(t.x+t.width,i),l=Us(t.y,e.y),u=Hs(t.y+t.height,o),c=s<a,f=u<l;return t.x=c&&a>i?s:a,t.y=f&&l>o?u:l,t.width=c?0:s-a,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Hs(t.r,e.r),o=Us(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},Gs={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new Xn["a"]({shape:Object(p["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?Rs:Wn["a"],c=new u({shape:r,z2:1});c.name="item";var f=rl(i);if(c.calculateTextPosition=Bs(f,{isRoundCap:u===Rs}),o){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?r.r0:r.startAngle,p[h]=r[h],(s?Fn["h"]:Fn["c"])(c,{shape:p},o)}return c}};function Ys(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Xs(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Fn["h"]:Fn["c"])(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?Fn["h"]:Fn["c"])(n,{shape:u},c,i)}function Zs(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Qs=["x","y","width","height"],Js=["cx","cy","r","startAngle","endAngle"],el={cartesian2d:function(e){return!Zs(e,Qs)},polar:function(e){return!Zs(e,Js)}},tl={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?ol(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function nl(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function rl(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 il(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,c=qs(r.getModel("itemStyle"),u,!0);Object(p["extend"])(u,c),e.setShape(u)}}else{var f=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",f)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var h=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Object(hn["e"])(r);Object(hn["g"])(e,g,{labelFetcher:o,labelDataIndex:n,defaultText:Ia(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var v=r.get(["label","position"]);e.textConfig.inside="middle"===v||null,$s(e,"outside"===v?h:v,rl(a),r.get(["label","rotate"]))}Object(hn["h"])(m,g,o.getRawValue(n),(function(e){return ja(t,e)}));var y=r.getModel(["emphasis"]);Object(gn["J"])(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Object(gn["I"])(e,r),nl(i)&&(e.style.fill="none",e.style.stroke="none",Object(p["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ol(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var al=function(){function e(){}return e}(),sl=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new al},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],e.rect(o[0],o[1],a[0],a[1])},t}(Nr["b"]);function ll(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new sl({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var f=new sl({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Object(L["a"])(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",ul),f.on("mousemove",ul)),n&&n.push(f)}var ul=Object(ce["c"])((function(e){var t=this,n=cl(t,e.offsetX,e.offsetY);Object(L["a"])(t).dataIndex=n>=0?n:null}),30,!1);function cl(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function fl(e,t,n){if(os(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function dl(e,t,n){var r="polar"===e.type?Wn["a"]:Xn["a"];return new r({shape:fl(t,n,e),silent:!0,z2:0})}var hl=Ws;function pl(e){e.registerChartView(hl),e.registerSeriesModel(js),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,p["curry"](gt,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,mt("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,As("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 gl=n("f3bb"),ml=2*Math.PI,vl=Math.PI/180;function yl(e,t){return dn["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bl(e,t){var n=yl(e,t),r=e.get("center"),i=e.get("radius");p["isArray"](i)||(i=[0,i]);var o,a,s=Object(Fe["q"])(n.width,t.getWidth()),l=Object(Fe["q"])(n.height,t.getHeight()),u=Math.min(s,l),c=Object(Fe["q"])(i[0],u/2),f=Object(Fe["q"])(i[1],u/2),d=e.coordinateSystem;if(d){var h=d.dataToPoint(r);o=h[0]||0,a=h[1]||0}else p["isArray"](r)||(r=[r,r]),o=Object(Fe["q"])(r[0],s)+n.x,a=Object(Fe["q"])(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:f}}function _l(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=yl(e,n),o=bl(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*vl,f=e.get("endAngle"),d=e.get("padAngle")*vl;f="auto"===f?c-ml:-f*vl;var h=e.get("minAngle")*vl,p=h+d,g=0;t.each(r,(function(e){!isNaN(e)&&g++}));var m=t.getSum(r),v=Math.PI/(m||g)*2,y=e.get("clockwise"),b=e.get("roseType"),_=e.get("stillShowZeroSum"),w=t.getDataExtent(r);w[0]=0;var x=y?1:-1,O=[c,f],S=x*d/2;Object(Rr["b"])(O,!y),c=O[0],f=O[1];var C=wl(e);C.startAngle=c,C.endAngle=f,C.clockwise=y;var k=Math.abs(f-c),E=k,A=0,T=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:b?NaN:l});else{r="area"!==b?0===m&&_?v:e*v:k/g,r<p?(r=p,E-=p):A+=e;var i=T+x*r,o=0,c=0;d>r?(o=T+x*r/2,c=o):(o=T+S,c=i-S),t.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:b?Object(Fe["m"])(e,w,[u,l]):l}),T=i}})),E<ml&&g)if(E<=.001){var D=k/g;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=D;var i=0,o=0;D<d?(i=c+x*(n+.5)*D,o=i):(i=c+x*n*D+S,o=c+x*(n+1)*D-S),r.startAngle=i,r.endAngle=o}}))}else v=E/A,T=c,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*v,o=0,a=0;i<d?(o=T+x*i/2,a=o):(o=T+S,a=T+x*i-S),r.startAngle=o,r.endAngle=a,T+=x*i}}))}))}var wl=Object(j["o"])();function xl(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var Ol=Math.PI/180;function Sl(e,t,n,r,i,o,a,s,l,u){if(!(e.length<2)){for(var c=e.length,f=0;f<c;f++)if("outer"===e[f].position&&"labelLine"===e[f].labelAlignTo){var d=e[f].label.x-u;e[f].linePoints[1][0]+=d,e[f].label.x=u}pi(e,l,l+a)&&p(e)}function h(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],u=Math.abs(l.label.y-n),c=r+l.len,f=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*f),h=t+(d+l.len2)*i,p=h-l.label.x,g=l.targetTextWidth-p*i;kl(l,g,!0),l.label.x=h}}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],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var f=l.label.x-t-l.len2*i,d=r+l.len,p=Math.abs(f)<d?Math.sqrt(c*c/(1-f*f/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}h(o),h(a)}}function Cl(e,t,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;El(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(d=0;d<e.length;d++){var p=e[d];if(!El(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;h=p.label;var g=p.linePoints,m=void 0;m="edge"===p.labelAlignTo?h.x<t?g[2][0]-p.labelDistance-a-p.edgeDistance:a+i-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?h.x<t?c-a-p.bleedMargin:a+i-f-p.bleedMargin:h.x<t?h.x-a-p.bleedMargin:a+i-h.x-p.bleedMargin,p.targetTextWidth=m,kl(p,m)}}Sl(u,t,n,r,1,i,o,a,s,f),Sl(l,t,n,r,-1,i,o,a,s,c);for(d=0;d<e.length;d++){p=e[d];if(!El(p)&&p.linePoints){h=p.label,g=p.linePoints;var v="edge"===p.labelAlignTo,y=h.style.padding,b=y?y[1]+y[3]:0,_=h.style.backgroundColor?0:b,w=p.rect.width+_,x=g[1][0]-g[2][0];v?h.x<t?g[2][0]=a+p.edgeDistance+w+p.labelDistance:g[2][0]=a+i-p.edgeDistance-w-p.labelDistance:(h.x<t?g[2][0]=h.x+p.labelDistance:g[2][0]=h.x-p.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=h.y}}}function kl(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(t<c||n){var f=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var h=t-l,p=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var m=(r.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-f)/2}}}function El(e){return"center"===e.position}function Al(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*Ol,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(e){e.ignore=!0}function g(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),f=s.shape,d=s.getTextContent(),m=s.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),w=y.get("alignTo"),x=Object(Fe["q"])(y.get("edgeDistance"),u),O=y.get("bleedMargin"),S=v.getModel("labelLine"),C=S.get("length");C=Object(Fe["q"])(C,u);var k=S.get("length2");if(k=Object(Fe["q"])(k,u),Math.abs(f.endAngle-f.startAngle)<a)return Object(p["each"])(d.states,h),d.ignore=!0,void(m&&(Object(p["each"])(m.states,h),m.ignore=!0));if(g(d)){var E,A,T,D,M=(f.startAngle+f.endAngle)/2,P=Math.cos(M),I=Math.sin(M);t=f.cx,n=f.cy;var j="inside"===b||"inner"===b;if("center"===b)E=f.cx,A=f.cy,D="center";else{var L=(j?(f.r+f.r0)/2*P:f.r*P)+t,N=(j?(f.r+f.r0)/2*I:f.r*I)+n;if(E=L+3*P,A=N+3*I,!j){var R=L+P*(C+l-f.r),B=N+I*(C+l-f.r),$=R+(P<0?-1:1)*k,F=B;E="edge"===w?P<0?c+x:c+u-x:$+(P<0?-_:_),A=F,T=[[L,N],[R,B],[$,F]]}D=j?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var z=Math.PI,q=0,U=y.get("rotate");if(Object(p["isNumber"])(U))q=U*(z/180);else if("center"===b)q=0;else if("radial"===U||!0===U){var H=P<0?-M+z:-M;q=H}else if("tangential"===U&&"outside"!==b&&"outer"!==b){var V=Math.atan2(P,I);V<0&&(V=2*z+V);var W=I>0;W&&(V=z+V),q=V-z}if(o=!!q,d.x=E,d.y=A,d.rotation=q,d.setStyle({verticalAlign:"middle"}),j){d.setStyle({align:D});var K=d.states.select;K&&(K.x+=d.x,K.y+=d.y)}else{var G=d.getBoundingRect().clone();G.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;G.y-=Y/2,G.height+=Y,i.push({label:d,labelLine:m,position:b,len:C,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Lr["a"](P,I),linePoints:T,textAlign:D,labelDistance:_,labelAlignTo:w,edgeDistance:x,bleedMargin:O,rect:G,unconstrainedWidth:G.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:j})}})),!o&&e.get("avoidLabelOverlap")&&Cl(i,t,n,l,u,d,c,f);for(var m=0;m<i.length;m++){var v=i[m],y=v.label,b=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(Object(p["each"])(y.states,h),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(b){var x=v.linePoints;_||!x?(Object(p["each"])(b.states,h),b.ignore=!0):(ii(x,v.minTurnAngle),oi(x,v.surfaceNormal,v.maxSurfaceAngle),b.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new Lr["a"](x[0][0],x[0][1])})}}}var Tl=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new Un["a"];return i.setTextContent(o),i.updateData(t,n,r,!0),i}return Object(Pe["a"])(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),u=Object(p["extend"])(qs(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(Fn["c"](i,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,Fn["c"](i,{shape:{r:l.r}},o,t)):null!=n?(i.setShape({startAngle:n,endAngle:n}),Fn["c"](i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(i.shape.endAngle=l.startAngle,Fn["h"](i,{shape:{endAngle:l.endAngle}},o,t))}else Object(Fn["g"])(i),Fn["h"](i,{shape:u},o,t);i.useStyle(e.getItemVisual(t,"style")),Object(gn["I"])(i,a);var f=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),h=Math.cos(f)*d,g=Math.sin(f)*d,m=a.getShallow("cursor");m&&i.attr("cursor",m),this._updateLabel(o,e,t),i.ensureState("emphasis").shape=Object(p["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},qs(s.getModel("itemStyle"),l)),Object(p["extend"])(i.ensureState("select"),{x:h,y:g,shape:qs(a.getModel(["select","itemStyle"]),l)}),Object(p["extend"])(i.ensureState("blur"),{shape:qs(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&Object(p["extend"])(v.ensureState("select"),{x:h,y:g}),Object(p["extend"])(y.ensureState("select"),{x:h,y:g}),Object(gn["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),o=i.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;Object(hn["g"])(r,Object(hn["e"])(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new Yn["a"],this.setTextGuideLine(f)),li(this,ui(i),{stroke:s,opacity:Object(p["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},t}(Wn["a"]),Dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var c=wl(e),f=new Wn["a"]({shape:Object(p["extend"])(bl(e,n),c)});f.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,s.add(f)}o.diff(a).add((function(e){var t=new Tl(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);Fn["f"](n,e,t)})).execute(),Al(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="pie",t}(f["a"]),Ml=Dl;function Pl(e,t,n){t=Object(p["isArray"])(t)&&{coordDimensions:t}||Object(p["extend"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=he(r,t).dimensions,o=new ae(i,e);return o.initData(r,n),o}var Il=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}(),jl=Il,Ll=j["o"](),Nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jl(p["bind"](this.getData,this),p["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Pl(this,{coordDimensions:["value"],encodeDefaulter:p["curry"](fe["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=Ll(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),i=r.seats=Object(Fe["e"])(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=i[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){j["f"](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,endAngle:"auto",padAngle:0,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}(h["b"]),Rl=Nl;function Bl(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(p["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function $l(e){e.registerChartView(Ml),e.registerSeriesModel(Rl),Object(gl["a"])("pie",e.registerAction),e.registerLayout(Object(p["curry"])(_l,"pie")),e.registerProcessor(xl("pie")),e.registerProcessor(Bl("pie"))}var Fl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Me(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}(h["b"]),zl=Fl,ql=4,Ul=function(){function e(){}return e}(),Hl=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ul},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]<ql,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],f=r[n++];isNaN(c)||isNaN(f)||(u&&!u.contain(c,f)||(a.x=c-i[0]/2,a.y=f-i[1]/2,a.width=i[0],a.height=i[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,r=t.size,i=this._ctx,o=this.softClipShape;if(i){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var f=n[c++],d=n[c++];a=Math.min(f,a),l=Math.max(f,l),s=Math.min(d,s),u=Math.max(d,u)}e=this._rect=new _t["a"](a-i/2,s-o/2,l-a+i,u-s+o)}return e},t}(Nr["b"]),Vl=function(){function e(){this.group=new zn["a"]}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),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Hl({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(pn["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<ql;e.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Object(L["a"])(e);l.seriesIndex=r.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}(),Wl=Vl,Kl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),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 r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=Cs("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new Wl:new qa,this._isLargeDraw=i,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}(f["a"]),Gl=Kl,Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(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}(d["a"]),Xl=Yl,Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",j["b"]).models[0]},t.type="cartesian2dAxis",t}(d["a"]);p["mixin"](Zl,fn);var Ql={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)"]}}},Jl=p["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ql),eu=p["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}}},Ql),tu=p["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},eu),nu=p["defaults"]({logBase:10},eu),ru={category:Jl,value:eu,time:tu,log:nu},iu={value:1,category:1,time:1,log:1};function ou(e,t,n,r){Object(p["each"])(iu,(function(i,o){var a=Object(p["merge"])(Object(p["merge"])({},ru[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Object(Pe["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(dn["d"])(this),r=n?Object(dn["f"])(e):{},i=t.getTheme();Object(p["merge"])(e,i.get(o+"Axis")),Object(p["merge"])(e,this.getDefaultOption()),e.type=au(e),n&&Object(dn["h"])(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=$e.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",au)}function au(e){return e.type||(e.data?"category":"value")}var su=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 p["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),p["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}(),lu=su,uu=["x","y"];function cu(e){return"interval"===e.type||"time"===e.type}var fu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=uu,t}return Object(Pe["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(cu(e)&&cu(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,f=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,f];this._invTransform=Object(se["invert"])([],d)}}},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),r=this.dataToPoint(t),i=this.getArea(),o=new _t["a"](n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(le["applyTransform"])(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[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 Object(le["applyTransform"])(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new _t["a"](r,i,o,a)},t}(lu),du=fu,hu=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return Object(Pe["a"])(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}(Ar),pu=hu;function gu(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,g="x"===u?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[d.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===u?g[d[l]]:f[0],"x"===u?g[d[l]]:f[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?g[d[s]]-g[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),p["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function mu(e){return"cartesian2d"===e.get("coordinateSystem")}function vu(e){var t={xAxisModel:null,yAxisModel:null};return p["each"](t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,j["b"]).models[0];t[r]=o})),t}var yu=Math.log;function bu(e,t,n){var r=tt.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Zt(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if("log"===e.type){var d=yu(e.base);u=[yu(u[0])/d,yu(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(e),g=u[0],m=u[1];if(c&&f)p=(m-g)/a;else if(c){m=u[0]+p*a;while(m<u[1]&&isFinite(m)&&isFinite(u[1]))p=Ue(p),m=u[0]+p*a}else if(f){g=u[1]-p*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))p=Ue(p),g=u[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=Ue(p));var y=p*a;m=Math.ceil(u[1]/p)*p,g=Object(Fe["w"])(m-y),g<0&&u[0]>=0?(g=0,m=Object(Fe["w"])(y)):m>0&&u[1]<=0&&(m=0,g=-Object(Fe["w"])(y))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+p*b,m+p*_),r.setInterval.call(e,p),(b||_)&&r.setNiceExtent.call(e,g+p,m-p)}var _u=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uu,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 r(e){var t,n=Object(p["keys"])(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;ze(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(Jt(u,l),ze(u)&&(t=s))}i.length&&(t||(t=i.pop(),Jt(t.scale,t.model)),Object(p["each"])(i,(function(e){bu(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(p["each"])(n.x,(function(e){xu(n,"y",e,i)})),Object(p["each"])(n.y,(function(e){xu(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Object(dn["g"])(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(p["each"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),Su(e,t?o.x:o.y)}))}s(),i&&(Object(p["each"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=on(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),Object(p["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(p["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",j["b"]).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",j["b"]).models[0],a=e.gridModel,s=this._coordsList;if(r)t=r.coordinateSystem,Object(p["indexOf"])(s,t)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.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 r=this,i=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,r){if(wu(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 u=new pu(t,en(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,Object(p["each"])(a.x,(function(t,n){Object(p["each"])(a.y,(function(i,o){var a="x"+n+"y"+o,s=new du(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(p["each"])(un(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(p["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(mu(e)){var r=vu(e),i=r.xAxisModel,o=r.yAxisModel;if(!wu(i,t)||!wu(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(p["each"])(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);Object(p["indexOf"])(t,i)<0&&t.push(i),Object(p["indexOf"])(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(mu(e)){var t=vu(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=uu,e}();function wu(e,t){return e.getCoordSysModel()===t}function xu(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Ou(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Ou(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function Ou(e){return e&&"category"!==e.type&&"time"!==e.type&&tn(e)}function Su(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}var Cu=_u,ku=Math.PI,Eu=function(){function e(e,t){this.group=new zn["a"],this.opt=t,this.axisModel=e,Object(p["defaults"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new zn["a"]({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!Au[e]},e.prototype.add=function(e){Au[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Object(Fe["v"])(t-e);return Object(Fe["l"])(o)?(i=n>0?"top":"bottom",r="center"):Object(Fe["l"])(o-ku)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<ku?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},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}(),Au={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Object(le["applyTransform"])(s,s,a),Object(le["applyTransform"])(l,l,a));var c=Object(p["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Zn["a"]({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});$n["subPixelOptimizeLine"](f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(null!=d){var h=t.get(["axisLine","symbolSize"]);Object(p["isString"])(d)&&(d=[d,d]),(Object(p["isString"])(h)||Object(p["isNumber"])(h))&&(h=[h,h]);var g=Object(pn["b"])(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],v=h[1];Object(p["each"])([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==d[r]&&null!=d[r]){var i=Object(pn["a"])(d[r],-m/2,-v/2,m,v,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.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(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=Lu(n,r,t,e),o=Ru(n,r,t,e);if(Du(t,o,i),Nu(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=fi(Object(p["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));gi(a)}},axisName:function(e,t,n,r){var i=Object(p["retrieve"])(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,f=t.axis.getExtent(),d=f[0]>f[1]?-1:1,h=["start"===s?f[0]-d*c:"end"===s?f[1]+d*c:(f[0]+f[1])/2,Iu(s)?e.labelOffset+l*c:0],g=t.get("nameRotate");null!=g&&(g=g*ku/180),Iu(s)?o=Eu.innerTextLayout(e.rotation,null!=g?g:e.rotation,l):(o=Tu(e.rotation,s,g||0,f),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(p["retrieve"])(e.nameTruncateMaxWidth,v.maxWidth,a),_=new Un["a"]({x:h[0],y:h[1],rotation:o.rotation,silent:Eu.isLabelSilent(t),style:Object(hn["c"])(u,{text:i,font:m,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if($n["setTooltipConfig"]({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var w=Eu.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Object(L["a"])(_).eventData=w}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Tu(e,t,n,r){var i,o,a=Object(Fe["v"])(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return Object(Fe["l"])(a-ku/2)?(o=l?"bottom":"top",i="center"):Object(Fe["l"])(a-1.5*ku)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*ku&&a>ku/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Du(e,t,n){if(!ln(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=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],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];!1===r?(Mu(o),Mu(u)):Pu(o,a)&&(r?(Mu(a),Mu(c)):(Mu(o),Mu(u))),!1===i?(Mu(s),Mu(f)):Pu(l,s)&&(i?(Mu(l),Mu(d)):(Mu(s),Mu(f)))}}function Mu(e){e&&(e.ignore=!0)}function Pu(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=se["identity"]([]);return se["rotate"](i,i,-e.rotation),n.applyTransform(se["mul"]([],i,e.getLocalTransform())),r.applyTransform(se["mul"]([],i,t.getLocalTransform())),n.intersect(r)}}function Iu(e){return"middle"===e||"center"===e}function ju(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(Object(le["applyTransform"])(a,a,t),Object(le["applyTransform"])(s,s,t));var c=new Zn["a"]({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});$n["subPixelOptimizeLine"](c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function Lu(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=ju(u,t.transform,l,Object(p["defaults"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function Nu(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(p["defaults"])(s.getLineStyle(),Object(p["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=ju(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function Ru(e,t,n,r){var i=n.axis,o=Object(p["retrieve"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Object(p["retrieve"])(r.labelRotate,a.get("rotate"))||0)*ku/180,c=Eu.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Eu.isLabelSilent(n),g=n.get("triggerEvent");return Object(p["each"])(l,(function(o,u){var m="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,y=o.rawLabel,b=a;if(f&&f[m]){var w=f[m];Object(p["isObject"])(w)&&w.textStyle&&(b=new _["a"](w.textStyle,a,n.ecModel))}var x=b.getTextColor()||n.get(["axisLine","lineStyle","color"]),O=i.dataToCoord(m),S=b.getShallow("align",!0)||c.textAlign,C=Object(p["retrieve2"])(b.getShallow("alignMinLabel",!0),S),k=Object(p["retrieve2"])(b.getShallow("alignMaxLabel",!0),S),E=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,A=Object(p["retrieve2"])(b.getShallow("verticalAlignMinLabel",!0),E),T=Object(p["retrieve2"])(b.getShallow("verticalAlignMaxLabel",!0),E),D=new Un["a"]({x:O,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(o.level||0),style:Object(hn["c"])(b,{text:v,align:0===u?C:u===l.length-1?k:S,verticalAlign:0===u?A:u===l.length-1?T:E,fill:Object(p["isFunction"])(x)?x("category"===i.type?y:"value"===i.type?m+"":m,u):x})});if(D.anid="label_"+m,g){var M=Eu.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=y,M.tickIndex=u,"category"===i.type&&(M.dataIndex=m),Object(L["a"])(D).eventData=M}t.add(D),D.updateTransform(),d.push(D),e.add(D),D.decomposeTransform()})),d}}var Bu=Eu;function $u(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Fu(n,e,t),n.seriesInvolved&&qu(n,e),n}function Fu(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(p["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Yu(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(p["each"])(n.getAxes(),Object(p["curry"])(g,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var f="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),h=n.getTooltipAxes(c.get(["axisPointer","axis"]));(f||d)&&Object(p["each"])(h.baseAxes,Object(p["curry"])(g,!d||"cross",f)),d&&Object(p["each"])(h.otherAxes,Object(p["curry"])(g,"cross",!1))}}function g(r,s,u){var f=u.model.getModel("axisPointer",i),d=f.get("show");if(d&&("auto"!==d||r||Gu(f))){null==s&&(s=f.get("triggerTooltip")),f=r?zu(u,c,i,t,r,s):f;var h=f.get("snap"),p=f.get("triggerEmphasis"),g=Yu(u.model),m=s||h||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:f,triggerTooltip:s,triggerEmphasis:p,involveSeries:m,snap:h,useHandle:Gu(f),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=Uu(o,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=o[y].mapper,v.linkGroup=b}}}}))}function zu(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(p["each"])(s,(function(e){l[e]=Object(p["clone"])(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var f=l.lineStyle=a.get("crossStyle");f&&Object(p["defaults"])(u,f.textStyle)}}return e.model.getModel("axisPointer",new _["a"](l,n,r))}function qu(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(p["each"])(e.coordSysAxesInfo[Yu(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function Uu(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Hu(o[r+"AxisId"],n.id)||Hu(o[r+"AxisIndex"],n.componentIndex)||Hu(o[r+"AxisName"],n.name))return i}}function Hu(e,t){return"all"===e||Object(p["isArray"])(e)&&Object(p["indexOf"])(e,t)>=0||e===t}function Vu(e){var t=Wu(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=Gu(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Wu(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Yu(e)]}function Ku(e){var t=Wu(e);return t&&t.axisPointerModel}function Gu(e){return!!e.get(["handle","show"])}function Yu(e){return e.type+"||"+e.id}var Xu={},Zu=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&Vu(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){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,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=Ku(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){Xu[e]=t},t.getAxisPointerClass=function(e){return e&&Xu[e]},t.type="axis",t}(c["a"]),Qu=Zu,Ju=Object(j["o"])();function ec(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=Ju(e).splitAreaColors,d=p["createHashMap"](),h=0;if(f)for(var g=0;g<u.length;g++){var m=f.get(u[g].tickValue);if(null!=m){h=(m+(c-1)*g)%c;break}}var v=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=p["isArray"](s)?s:[s];for(g=1;g<u.length;g++){var b=i.toGlobalCoord(u[g].coord),_=void 0,w=void 0,x=void 0,O=void 0;i.isHorizontal()?(_=v,w=l.y,x=b-_,O=l.height,v=_+x):(_=l.x,w=v,x=l.width,O=b-w,v=w+O);var S=u[g-1].tickValue;null!=S&&d.set(S,h),t.add(new Xn["a"]({anid:null!=S?"area_"+S:null,shape:{x:_,y:w,width:x,height:O},style:p["defaults"]({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Ju(e).splitAreaColors=d}}}function tc(e){Ju(e).splitAreaColors=null}var nc=["axisLine","axisTickLabel","axisName"],rc=["splitArea","splitLine","minorSplitLine"],ic=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(Pe["a"])(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zn["a"],this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=gu(a,t),l=new Bu(t,p["extend"]({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(ze(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));p["each"](nc,l.add,l),this._axisGroup.add(l.getGroup()),p["each"](rc,(function(e){t.get([e,"show"])&&oc[e](this,this._axisGroup,t,a)}),this);var u=i&&"changeAxisOrder"===i.type&&i.isInitSort;u||$n["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){tc(this)},t.type="cartesianAxis",t}(Qu),oc={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=p["isArray"](s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:o}),d=[],h=[],g=a.getLineStyle(),m=0;m<f.length;m++){var v=i.toGlobalCoord(f[m].coord);u?(d[0]=v,d[1]=l.y,h[0]=v,h[1]=l.y+l.height):(d[0]=l.x,d[1]=v,h[0]=l.x+l.width,h[1]=v);var y=c++%s.length,b=f[m].tickValue,_=new Zn["a"]({anid:null!=b?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:p["defaults"]({stroke:s[y]},g),silent:!0});$n["subPixelOptimizeLine"](_.shape,g.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var g=i.toGlobalCoord(u[h][p].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var m=new Zn["a"]({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});$n["subPixelOptimizeLine"](m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,n,r){ec(e,t,n,r)}},ac=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="xAxis",t}(ic),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ac.type,t}return Object(Pe["a"])(t,e),t.type="yAxis",t}(ic),lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Xn["a"]({shape:e.coordinateSystem.getRect(),style:Object(p["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(c["a"]),uc={offset:0};function cc(e){e.registerComponentView(lc),e.registerComponentModel(Xl),e.registerCoordinateSystem("cartesian2d",Cu),ou(e,"x",Zl,uc),ou(e,"y",Zl,uc),e.registerComponentView(ac),e.registerComponentView(sc),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function fc(e){b(cc),e.registerSeriesModel(zl),e.registerChartView(Gl),e.registerLayout(Cs("scatter"))}function dc(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();p["each"](i,(function(e,o){t.each(t.mapDimension(i[o].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,o);n[t][o]=hc(i)?i:pc(r)}))})),t.each((function(e){var i=p["find"](n[e],(function(e){return hc(e)}))||pc(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function hc(e){return!isNaN(e[0])&&!isNaN(e[1])}function pc(e){return[e.cx,e.cy]}function gc(e){var t=e.polar;if(t){p["isArray"](t)||(t=[t]);var n=[];p["each"](t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],p["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}p["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var mc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,o=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=pn["c"](e.getItemVisual(t,"symbolSize")),i=pn["a"](n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function l(t,n,r,i,o,a){r.removeAll();for(var l=0;l<n.length-1;l++){var u=s(i,o);u&&(u.__dimIdx=l,t[l]?(u.setPosition(t[l]),$n[a?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},e,o)):u.setPosition(n[l]),r.add(u))}}function u(e){return p["map"](e,(function(e){return[r.cx,r.cy]}))}o.diff(a).add((function(t){var n=o.getItemLayout(t);if(n){var r=new Gn["a"],i=new Yn["a"],a={shape:{points:n}};r.shape.points=u(n),i.shape.points=u(n),Fn["c"](r,a,e,t),Fn["c"](i,a,e,t);var s=new zn["a"],c=new zn["a"];s.add(i),s.add(r),s.add(c),l(i.shape.points,n,c,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var r=a.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),u=r.childAt(2),c={shape:{points:o.getItemLayout(t)}};c.shape.points&&(l(i.shape.points,c.shape.points,u,o,t,!1),Object(Fn["g"])(s),Object(Fn["g"])(i),Fn["h"](i,c,e),Fn["h"](s,c,e),o.setItemGraphicEl(t,r))})).remove((function(e){i.remove(a.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),r=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),u=l.fill;i.add(e),r.useStyle(p["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(gn["I"])(r,n,"lineStyle"),Object(gn["I"])(a,n,"areaStyle");var c=n.getModel("areaStyle"),f=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=f,p["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=r&&f})),a.useStyle(p["defaults"](c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis"),h=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof qn["a"]){var r=e.style;e.useStyle(p["extend"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else e.useStyle(l),e.setColor(u),e.style.strokeNoScale=!0;var i=e.ensureState("emphasis");i.style=p["clone"](h);var a=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),Object(hn["g"])(e,Object(hn["e"])(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),Object(gn["J"])(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(f["a"]),vc=mc,yc=n("217c"),bc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jl(p["bind"](this.getData,this),p["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Pl(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem,o=i.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=Object(yc["e"])(this,e);return Object(yc["c"])("section",{header:s,sortBlocks:!0,blocks:p["map"](o,(function(t){var n=r.get(r.mapDimension(t.dim),e);return Object(yc["c"])("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,r=t.getValues(p["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},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}(h["b"]),_c=bc,wc=ru.value;function xc(e,t){return p["defaults"]({show:t},e)}var Oc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),f=p["map"](this.get("indicator")||[],(function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var d=a;null!=f.color&&(d=p["defaults"]({color:f.color},a));var h=p["merge"](p["clone"](f),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:f.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(p["isString"](l)){var g=h.name;h.name=l.replace("{value}",null!=g?g:"")}else p["isFunction"](l)&&(h.name=l(h.name,h));var m=new _["a"](h,null,this.ecModel);return p["mixin"](m,fn.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=f},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:p["merge"]({lineStyle:{color:"#bbb"}},wc.axisLine),axisLabel:xc(wc.axisLabel,!1),axisTick:xc(wc.axisTick,!1),splitLine:xc(wc.splitLine,!0),splitArea:xc(wc.splitArea,!0),indicator:[]},t}(d["a"]),Sc=Oc,Cc=["axisLine","axisTickLabel","axisName"],kc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=p["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new Bu(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));p["each"](r,(function(e){p["each"](Cc,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 r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),f=s.get("color"),d=p["isArray"](c)?c:[c],h=p["isArray"](f)?f:[f],g=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,b=t.cy,_=0;_<v.length;_++){if(l){var w=T(g,d,_);g[w].push(new Hn["a"]({shape:{cx:y,cy:b,r:v[_].coord}}))}if(u&&_<v.length-1){w=T(m,h,_);m[w].push(new Kn["a"]({shape:{cx:y,cy:b,r0:v[_].coord,r:v[_+1].coord}}))}}else{var x,O=p["map"](n,(function(e,n){var r=e.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),p["map"](r,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(_=0;_<=x;_++){for(var C=[],k=0;k<n.length;k++)C.push(O[k][_]);if(C[0]&&C.push(C[0].slice()),l){w=T(g,d,_);g[w].push(new Yn["a"]({shape:{points:C}}))}if(u&&S){w=T(m,h,_-1);m[w].push(new Gn["a"]({shape:{points:C.concat(S)}}))}S=C.slice().reverse()}}var E=a.getLineStyle(),A=s.getAreaStyle();p["each"](m,(function(e,t){this.group.add($n["mergePath"](e,{style:p["defaults"]({stroke:"none",fill:h[t%h.length]},A),silent:!0}))}),this),p["each"](g,(function(e,t){this.group.add($n["mergePath"](e,{style:p["defaults"]({fill:"none",stroke:d[t%d.length]},E),silent:!0}))}),this)}function T(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(c["a"]),Ec=kc,Ac=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return Object(Pe["a"])(t,e),t}(Ar),Tc=Ac,Dc=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(p["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new Tc(n,new tt);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),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],r=n.angle,i=this.cx+e*Math.cos(r),o=this.cy-e*Math.sin(r);return[i,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i)/2;this.cx=Fe["q"](n[0],r),this.cy=Fe["q"](n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Object(p["isString"])(a)||Object(p["isNumber"])(a))&&(a=[0,a]),this.r0=Fe["q"](a[0],o),this.r=Fe["q"](a[1],o),Object(p["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,r=this._model;Object(p["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var o=t.getData();Object(p["each"])(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber"),o=new tt;o.setExtent(0,i),o.setInterval(1),Object(p["each"])(n,(function(e,t){bu(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 r=[];return t.eachComponent("radar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}(),Mc=Dc;function Pc(e){e.registerCoordinateSystem("radar",Mc),e.registerComponentModel(Sc),e.registerComponentView(Ec),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 Ic(e){b(Pc),e.registerChartView(vc),e.registerSeriesModel(_c),e.registerLayout(dc),e.registerProcessor(xl("radar")),e.registerPreprocessor(gc)}var jc=n("607d"),Lc="\0_ec_interaction_mutex";function Nc(e,t,n){var r=$c(e);r[t]=n}function Rc(e,t,n){var r=$c(e),i=r[t];i===n&&(r[t]=null)}function Bc(e,t){return!!$c(e)[t]}function $c(e){return e[Lc]||(e[Lc]={})}u["m"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},p["noop"]);var Fc=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(p["bind"])(n._mousedownHandler,n),i=Object(p["bind"])(n._mousemoveHandler,n),o=Object(p["bind"])(n._mouseupHandler,n),a=Object(p["bind"])(n._mousewheelHandler,n),s=Object(p["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(p["defaults"])(Object(p["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return Object(Pe["a"])(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(!jc["d"](e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Uc("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Bc(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&jc["g"](e.event),qc(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){jc["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Uc("zoomOnMouseWheel",e,this._opt),n=Uc("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;zc(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);zc(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Bc(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;zc(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Ti["a"]);function zc(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(jc["g"](r.event),qc(e,t,n,r,i))}function qc(e,t,n,r,i){i.isAvailableBehavior=Object(p["bind"])(Uc,null,n,r),e.trigger(t,i)}function Uc(e,t,n){var r=n[e];return!e||r&&(!Object(p["isString"])(r)||t.event[r+"Key"])}var Hc=Fc;function Vc(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Wc(e,t,n,r){var i=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 u=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Kc={axisPointer:1,tooltip:1,brush:1};function Gc(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!Kc.hasOwnProperty(r.mainType)&&i&&i.model!==n}var Yc,Xc=n("342d");function Zc(e){if(Object(p["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 Qc={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"},Jc=Object(p["keys"])(Qc),ef={"alignment-baseline":"textBaseline","stop-color":"stopColor"},tf=Object(p["keys"])(ef),nf=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Zc(e);this._defsUsePending=[];var r=new zn["a"];this._root=r;var i=[],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),uf(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(hf(this._defs,this._defsUsePending),this._defsUsePending=[],o){var f=gf(o);f.length>=4&&(l={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(l&&null!=a&&null!=s&&(u=xf(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=r;r=new zn["a"],r.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Xn["a"]({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=Yc[s];if(u&&Object(p["hasOwn"])(Yc,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var f={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(f),"g"===s&&(l=f)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var d=rf[s];if(d&&Object(p["hasOwn"])(rf,s)){var h=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=h)}}if(a&&a.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,l,i,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new Wi["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});sf(t,n),uf(e,n,this._defsUsePending,!1,!1),cf(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){Yc={g:function(e,t){var n=new zn["a"];return sf(t,n),uf(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Xn["a"];return sf(t,n),uf(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 Hn["a"];return sf(t,n),uf(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 Zn["a"];return sf(t,n),uf(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 Vn["a"];return sf(t,n),uf(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,r=e.getAttribute("points");r&&(n=lf(r));var i=new Gn["a"]({shape:{points:n||[]},silent:!0});return sf(t,i),uf(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=lf(r));var i=new Yn["a"]({shape:{points:n||[]},silent:!0});return sf(t,i),uf(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new qn["a"];return sf(t,n),uf(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",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new zn["a"];return sf(t,a),uf(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new zn["a"];return sf(t,a),uf(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",r=Object(Xc["b"])(n);return sf(t,r),uf(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),rf={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new nr["a"](t,n,r,i);return of(e,o),af(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new rr["a"](t,n,r);return of(e,i),af(e,i),i}};function of(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function af(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};_f(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function sf(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(p["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function lf(e){for(var t=gf(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function uf(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(yf(e,t),_f(e,a,s),r||wf(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=df(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=df(o,"stroke",a.stroke,n)),Object(p["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),Object(p["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(p["map"])(gf(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function cf(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var ff=/^url\(\s*#(.*?)\)/;function df(e,t,n,r){var i=n&&n.match(ff);if(!i)return"none"===n&&(n=null),n;var o=Object(p["trim"])(i[1]);r.push([e,t,o])}function hf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var pf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gf(e){return e.match(pf)||[]}var mf=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,vf=Math.PI/180;function yf(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(mf,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=gf(a);switch(i=i||se["create"](),s){case"translate":se["translate"](i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":se["scale"](i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":se["rotate"](i,i,-parseFloat(l[0])*vf,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*vf);se["mul"](i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*vf);se["mul"](i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var bf=/([^\s:;]+)\s*:\s*([^:;]+)/g;function _f(e,t,n){var r=e.getAttribute("style");if(r){var i;bf.lastIndex=0;while(null!=(i=bf.exec(r))){var o=i[1],a=Object(p["hasOwn"])(Qc,o)?Qc[o]:null;a&&(t[a]=i[2]);var s=Object(p["hasOwn"])(ef,o)?ef[o]:null;s&&(n[s]=i[2])}}}function wf(e,t,n){for(var r=0;r<Jc.length;r++){var i=Jc[r],o=e.getAttribute(i);null!=o&&(t[Qc[i]]=o)}for(r=0;r<tf.length;r++){i=tf[r],o=e.getAttribute(i);null!=o&&(n[ef[i]]=o)}}function xf(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Of(e,t){var n=new nf;return n.parse(e,t)}var Sf=Object(p["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Cf=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(p["createHashMap"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Zc(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=Ef(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Of(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(p["assert"])(null!=n)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var r=new zn["a"];r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,f=void 0;if(null!=i?(l=0,c=i):a&&(l=a.x,c=a.width),null!=o?(u=0,f=o):a&&(u=a.y,f=a.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,f=d.height)}s=this._boundingRect=new _t["a"](l,u,c,f)}if(a){var h=xf(a,s);n.scaleX=n.scaleY=h.scale,n.x=h.x,n.y=h.y}r.setClipPath(new Xn["a"]({shape:s.plain()}));var g=[];return Object(p["each"])(t.named,(function(e){null!=Sf.get(e.svgNodeTagLower)&&(g.push(e),kf(e.el))})),{root:r,boundingRect:s,named:g}},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 kf(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function Ef(e){var t=[],n=Object(p["createHashMap"])();return Object(p["each"])(e,(function(e){if(null==e.namedFrom){var r=new jn(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}for(var Af=[126,25],Tf="南海诸岛",Df=[[[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]]],Mf=0;Mf<Df.length;Mf++)for(var Pf=0;Pf<Df[Mf].length;Pf++)Df[Mf][Pf][0]/=10.5,Df[Mf][Pf][1]/=-14,Df[Mf][Pf][0]+=Af[0],Df[Mf][Pf][1]+=Af[1];function If(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===Tf)return;t.push(new In(Tf,p["map"](Df,(function(e){return{type:"polygon",exterior:e}})),Af))}}var jf={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function Lf(e,t){if("china"===e){var n=jf[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var Nf=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Rf(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:Nf[0]})}var Bf="name",$f=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(p["createHashMap"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=zf(t)}return e.prototype.load=function(e,t){t=t||Bf;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:Ff(r)})}var i=Object(p["createHashMap"])(),o=[];return Object(p["each"])(n.regions,(function(t){var n=t.name;e&&Object(p["hasOwn"])(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new _t["a"](0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?Bn(r,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return If(n,t),Object(p["each"])(t,(function(e){var t=e.name;Lf(n,e),Rf(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function Ff(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function zf(e){return Object(p["isString"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var qf=Object(p["createHashMap"])(),Uf={registerMap:function(e,t,n){if(t.svg){var r=new Cf(e,t.svg);qf.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new $f(e,i,n);qf.set(e,r)}},getGeoResource:function(e){return qf.get(e)},getMapForUser:function(e){var t=qf.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=qf.get(e);if(r)return r.load(t,n)}},Hf=n("b3c1"),Vf=n("19eb"),Wf=["rect","circle","line","ellipse","polygon","polyline","path"],Kf=p["createHashMap"](Wf),Gf=p["createHashMap"](Wf.concat(["g"])),Yf=p["createHashMap"](Wf.concat(["g"])),Xf=Object(j["o"])();function Zf(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function Qf(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Jf=function(){function e(e){var t=new zn["a"];this.uid=Object(Ps["c"])("ec_map_draw"),this._controller=new Hc(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new zn["a"]),t.add(this._svgGroup=new zn["a"])}return e.prototype.draw=function(e,t,n,r,i){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,u=this.group,c=s.getTransformInfo(),f=c.raw,d=c.roam,h=!l.childAt(0)||i;h?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):Fn["h"](u,d,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:f};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=p["createHashMap"](),n=p["createHashMap"](),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r<e.length;++r){var i=u(e[r],n);i&&t.push(i)}return t}function f(e){return{shape:{points:c(e)}}}r.removeAll(),p["each"](e.geo.regions,(function(i){var c=i.name,d=t.get(c),h=n.get(c)||{},g=h.dataIdx,m=h.regionModel;d||(d=t.set(c,new zn["a"]),r.add(d),g=a?a.indexOfName(c):null,m=e.isGeo?o.getRegionModel(c):a?a.getItemModel(g):null,n.set(c,{dataIdx:g,regionModel:m}));var v=[],y=[];p["each"](i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=od(t,l)),p["each"](t,(function(e){v.push(new Gn["a"](f(e)))}))}else{var n=e.points;l&&(n=od(n,l,!0)),p["each"](n,(function(e){y.push(new Yn["a"](f(e)))}))}}));var b=u(i.getCenter(),s&&s.project);function _(t,n){if(t.length){var r=new tr["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(r),ed(e,r,g,m),td(e,r,c,m,o,g,b),n&&(Qf(r),p["each"](r.states,Qf))}}_(v),_(y,!0)})),t.each((function(t,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;nd(e,t,r,s,o,a),rd(e,t,r,s,o),id(e,t,r,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 r=this._svgDispatcherMap=p["createHashMap"](),i=!1;p["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=Kf.get(s)&&l instanceof Vf["c"]&&ed(e,l,u,c),l instanceof Vf["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=Yf.get(s)&&td(e,l,n,c,o,u,null),nd(e,l,n,c,o,u),rd(e,l,n,c,o),null!=Gf.get(s))){var f=id(e,l,n,c,o);"self"===f&&(i=!0);var d=r.get(n)||r.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Object(gn["G"])(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=r&&(t.opacity=r),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 r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}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=Uf.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=Uf.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 r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,Vc(o,e.dx,e.dy),n.dispatchAction(p["extend"](s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,Wc(o,e.scale,e.originX,e.originY),n.dispatchAction(p["extend"](s(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!Gc(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=Xf(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}();function ed(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=Zf(i),u=Zf(o),c=Zf(s),f=Zf(a),d=e.data;if(d){var h=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=Object(Hf["a"])(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Object(gn["G"])(t)}function td(e,t,n,r,i,o,a){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var f=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(hn["g"])(t,Object(hn["e"])(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=t.getTextContent();if(p&&(Xf(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 nd(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Object(L["a"])(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function rd(e,t,n,r,i){e.data||$n["setTooltipConfig"]({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function id(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Object(gn["J"])(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&Object(gn["n"])(t,i,n),a}function od(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),p["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(),i}var ad=Jf,sd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){o=this._mapDraw;o&&i.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new ad(n);i.add(o.group),o.draw(e,t,n,this,r),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 r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Hn["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:gn["j"]+1)});if(!s){var u=e.mainSeries.getData(),c=r.getName(n),f=u.indexOfName(c),d=r.getItemModel(n),h=d.getModel("label"),p=u.getItemGraphicEl(f);Object(hn["g"])(l,Object(hn["e"])(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(f,n)}},defaultText:c}),l.disableLabelAnimation=!0,h.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){Object(gn["H"])(l,e)}}i.add(l)}}}))},t.type="map",t}(f["a"]),ld=sd,ud=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,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e){for(var t=Pl(this,{coordDimensions:["value"],encodeDefaulter:p["curry"](fe["d"],this)}),n=p["createHashMap"](),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}var s=Uf.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return p["each"](s.regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),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 r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return Object(yc["c"])("section",{header:s.join(", "),noHeader:!s.length,blocks:[Object(yc["c"])("nameValue",{name:o,value:i})]})},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=Object(pn["a"])(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}(h["b"]),cd=ud;function fd(e,t){var n={};return p["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,f=0;f<c;f++)l=Math.min(l,n[a][f]),u=Math.max(u,n[a][f]),s+=n[a][f];return o="min"===t?l:"max"===t?u:"average"===t?s/c:s,0===c?NaN:o}))}function dd(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),p["each"](t,(function(e,t){for(var n=fd(p["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]}))}function hd(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};p["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.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=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var pd=le["applyTransform"],gd=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new jr["c"],n._rawTransformable=new jr["c"],n.name=t,n}return Object(Pe["a"])(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new _t["a"](e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new _t["a"](e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new _t["a"](e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Object(Fe["q"])(e[0],t.getWidth()),Object(Fe["q"])(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(),r=this.getCenter(),i=this.getZoom();r=le["applyTransform"]([],r,e),n=le["applyTransform"]([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),se["copy"](this.transform||(this.transform=[]),t.transform||se["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],se["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new jr["c"];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 r=t?this._rawTransform:this.transform;return n=n||[],r?pd(n,e,r):le["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?pd([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=md(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=md(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(jr["c"]);function md(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var vd=gd,yd={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},bd=["lng","lat"],_d=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=bd,i.type="geo",i._nameCoordMap=p["createHashMap"](),i.map=n;var o,a=r.projection,s=Uf.load(n,r.nameMap,r.nameProperty),l=Uf.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=yd[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var f=0;f<u.length;f++){var d=u[f].getBoundingRect(a);o=o||d.clone(),o.union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:p["retrieve2"](r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return Object(Pe["a"])(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new _t["a"](e,t,n,r));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 r=t[n];if("geoJSON"===r.type&&r.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(p["isString"](e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.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,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=wd(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=wd(t);return r===this?r.pointToData(n):null},t}(vd);function wd(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",j["b"]).models[0]||{}).coordinateSystem:null}p["mixin"](_d,vd);var xd=_d;function Od(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(e,t,n,a){for(var s=n-e,l=a-t,u=0;u<=100;u++){var c=u/100,f=o.project([e+s*c,t+l*c]);le["min"](r,r,f),le["max"](i,i,f)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var f,d,h,p=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),b=p.width/p.height*this.aspectScale,_=!1;if(g&&m&&(f=[Fe["q"](g[0],v),Fe["q"](g[1],y)],d=Fe["q"](m,Math.min(v,y)),isNaN(f[0])||isNaN(f[1])||isNaN(d)||(_=!0)),_)h={},b>1?(h.width=d,h.height=d/b):(h.height=d,h.width=d*b),h.y=f[1]-h.height/2,h.x=f[0]-h.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,h=dn["g"](w,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Sd(e,t){p["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Cd=function(){function e(){this.dimensions=bd}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new xd(o+i,o,p["extend"]({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=Od,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),p["each"](i,(function(e,i){var o=p["map"](e,(function(e){return e.get("nameMap")})),a=new xd(i,i,p["extend"]({nameMap:p["mergeAll"](o)},r(e[0])));a.zoomLimit=p["retrieve"].apply(null,p["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=Od,a.resize(e[0],t),p["each"](e,(function(e){e.coordinateSystem=a,Sd(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=p["createHashMap"](),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=Uf.load(t,n,r);return p["each"](s.regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}(),kd=new Cd,Ed=kd,Ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t,n){var r=Uf.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),j["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=Ed.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=p["reduce"](t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new _["a"](r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),p["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new _["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return p["isFunction"](r)?(i.status=t,r(i)):p["isString"](r)?r.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 r=t.selectedMap||(t.selectedMap={});r[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}(d["a"]),Td=Ad;function Dd(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function Md(e,t,n,r){var i=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(Dd(e,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}e.scaleX*=a,e.scaleY*=a;var c=(t.originX-e.x)*(a-1),f=(t.originY-e.y)*(a-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(Dd(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var Pd=n("fadd"),Id=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new ad(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object(Pd["a"])(e.target,(function(e){return null!=(t=Object(L["a"])(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Object(L["a"])(e).eventData;if(t)return r._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}(c["a"]),jd=Id;function Ld(e,t,n){Uf.registerMap(e,t,n)}function Nd(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(p["each"])(o.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var a=[];Object(p["each"])(r,(function(e,t){r[t]&&a.push(t)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",Ed),e.registerComponentModel(Td),e.registerComponentView(jd),e.registerImpl("registerMap",Ld),e.registerImpl("getMap",(function(e){return Uf.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 r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var o=Md(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===r&&Object(p["each"])(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function Rd(e){b(Nd),e.registerChartView(ld),e.registerSeriesModel(cd),e.registerLayout(hd),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,dd),Object(gl["a"])("map",e.registerAction)}function Bd(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[t];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var o=r.length,a=o-1;a>=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function $d(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Hd(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=Vd(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Fd(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function zd(e){return arguments.length?e:Xd}function qd(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Ud(e,t){return dn["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Hd(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function Vd(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;while(s=Wd(s),o=Kd(o),s&&o){i=Wd(i),a=Kd(a),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);d>0&&(Yd(Gd(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!Wd(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),o&&!Kd(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function Wd(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Kd(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Gd(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Yd(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Xd(e,t){return e.parentNode===t.parentNode?1:2}var Zd=n("e263"),Qd=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Jd=function(e){function t(t){return e.call(this,t)||this}return Object(Pe["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qd},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Object(Fe["q"])(t.forkPosition,1),f=[];f[l]=i[l],f[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[1]),e.lineTo(f[0],f[1]),e.moveTo(o[0],o[1]),f[l]=o[l],e.lineTo(f[0],f[1]),f[l]=a[l],e.lineTo(f[0],f[1]),e.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var h=n[d];e.moveTo(h[0],h[1]),f[l]=h[l],e.lineTo(f[0],f[1])}},t}(Nr["b"]),eh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new zn["a"],n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){this._controller=new Hc(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;r.diff(s).add((function(t){th(r,t)&&nh(r,t,null,o,e)})).update((function(t,n){var i=s.getItemGraphicEl(n);th(r,t)?nh(r,t,i,o,e):i&&ah(s,n,i,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&ah(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var i=[],o=[];Zd["d"](r,i,o);var a=this._min,s=this._max;o[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new vd;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[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=i,this._max=o},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Gc(t,n,e)})),i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Vc(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Wc(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._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,r=t.scaleX||1,i=t.getZoom(),o=(i-1)*n+1;return o/r},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}(f["a"]);function th(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function nh(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=e.tree.root,f=a.parentNode===c?a:a.parentNode||a,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,m=a.getLayout();o?(n=new Ra(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Fn["h"](n,{x:m.x,y:m.y},i);var v=n.getSymbolPath();if("radial"===i.get("layout")){var y=c.children[0],b=y.getLayout(),_=y.children.length,w=void 0,x=void 0;if(m.x===b.x&&!0===a.isExpand&&y.children.length){var O={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};w=Math.atan2(O.y-b.y,O.x-b.x),w<0&&(w=2*Math.PI+w),x=O.x<b.x,x&&(w-=Math.PI)}else w=Math.atan2(m.y-b.y,m.x-b.x),w<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(x=m.x<b.x,x&&(w-=Math.PI)):(x=m.x>b.x,x||(w-=Math.PI));var S=x?"left":"right",C=s.getModel("label"),k=C.get("rotate"),E=k*(Math.PI/180),A=v.getTextContent();A&&(v.setTextConfig({position:C.get("position")||S,rotation:null==k?-w:E,origin:"center"}),A.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),D="relative"===T?p["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;D&&(Object(L["a"])(n).focus=D),rh(i,a,c,n,g,h,m,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===gn["d"]||Object(gn["H"])(n.__edge,t)}})}function rh(e,t,n,r,i,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new Qn["a"]({shape:sh(c,f,d,i,i)})),Fn["h"](m,{shape:sh(c,f,d,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],b=0;b<v.length;b++){var _=v[b].getLayout();y.push([_.x,_.y])}m||(m=r.__edge=new Jd({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:h}})),Fn["h"](m,{shape:{parentPoint:[a.x,a.y],childPoints:y}},e)}}else 0;m&&("polyline"!==u||t.isExpand)&&(m.useStyle(p["defaults"]({strokeNoScale:!0,fill:null},g)),Object(gn["I"])(m,l,"lineStyle"),Object(gn["G"])(m),s.add(m))}function ih(e,t,n,r,i){var o=t.tree.root,a=oh(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?f:void 0),h=r.get("edgeShape"),p=r.get("layout"),g=r.get("orient"),m=r.get(["lineStyle","curveness"]);d&&("curve"===h?Fn["e"](d,{shape:sh(p,g,m,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):"polyline"===h&&"orthogonal"===r.get("layout")&&Fn["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function oh(e,t){var n,r=t.parentNode===e?t:t.parentNode||t;while(n=r.getLayout(),null==n)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function ah(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=oh(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Fn["e"](n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){ih(t,e,r,i,l)})),ih(o,e,r,i,l)}function sh(e,t,n,r,i){var o,a,s,l,u,c,f,d;if("radial"===e){u=r.rawX,f=r.rawY,c=i.rawX,d=i.rawY;var h=qd(u,f),p=qd(u,f+(d-f)*n),g=qd(c,d+(f-d)*n),m=qd(c,d);return{x1:h.x||0,y1:h.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 u=r.x,f=r.y,c=i.x,d=i.y,"LR"!==t&&"RL"!==t||(o=u+(c-u)*n,a=f,s=c+(u-c)*n,l=d),"TB"!==t&&"BT"!==t||(o=u,a=f+(d-f)*n,s=c,l=d+(f-d)*n),{x1:u,y1:f,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var lh=eh,uh=Object(j["o"])();function ch(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,vh(t,n,e),Object(p["each"])(n,(function(n){Object(p["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(p["curry"])(fh,e))}))})),t.wrapMethod("cloneShallow",Object(p["curry"])(hh,e)),Object(p["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(p["curry"])(dh,e))})),Object(p["assert"])(n[t.dataType]===t)}function fh(e,t){if(mh(this)){var n=Object(p["extend"])({},uh(this).datas);n[this.dataType]=t,vh(t,n,e)}else yh(t,this.dataType,uh(this).mainData,e);return t}function dh(e,t){return e.struct&&e.struct.update(),t}function hh(e,t){return Object(p["each"])(uh(t).datas,(function(n,r){n!==t&&yh(n.cloneShallow(),r,t,e)})),t}function ph(e){var t=uh(this).mainData;return null==e||null==t?t:uh(t).datas[e]}function gh(){var e=uh(this).mainData;return null==e?[{data:e}]:Object(p["map"])(Object(p["keys"])(uh(e).datas),(function(t){return{type:t,data:uh(e).datas[t]}}))}function mh(e){return uh(e).mainData===e}function vh(e,t,n){uh(e).datas={},Object(p["each"])(t,(function(t,r){yh(t,r,e,n)}))}function yh(e,t,n,r){uh(n).datas[t]=e,uh(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=ph,e.getLinkedDataAll=gh}var bh=ch,_h=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){p["isFunction"](e)&&(n=t,t=e,e=null),e=e||{},p["isString"](e)&&(e={order:e});var r,i=e.order||"preorder",o=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===i&&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 r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},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}(),wh=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,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,p["isArray"](n)?n.length:1),o.push(e);var r=new _h(Object(j["e"])(e.name,""),i);t?xh(r,t):i.root=r,i._nodes.push(r);var l=e.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(t),i.root.updateDepthAndHeight(0);var l=he(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new ae(l,n);return u.initData(o),r&&r(u),bh({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function xh(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var Oh=wh;function Sh(e,t,n){if(e&&p["indexOf"](t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(p["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Ch(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function kh(e,t){var n=Ch(e);return p["indexOf"](n,t)>=0}function Eh(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new _["a"](n,this,this.ecModel),i=Oh.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.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 r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return Object(yc["c"])("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Eh(r,this),n.collapsed=!r.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}(h["b"]),Th=Ah;function Dh(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}while(r=o.pop())t(r,n)}function Mh(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function Ph(e,t){e.eachSeriesByType("tree",(function(e){Ih(e,t)}))}function Ih(e,t){var n=Ud(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=zd((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=zd());var s=e.getData().tree.root,l=s.children[0];if(l){Bd(s),Dh(l,$d,a),s.hierNode.modifier=-l.hierNode.prelim,Mh(l,Fd);var u=l,c=l,f=l;Mh(l,(function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>c.getLayout().x&&(c=e),e.depth>f.depth&&(f=e)}));var d=u===c?1:a(u,c)/2,h=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===r)p=i/(c.getLayout().x+d+h),g=o/(f.depth-1||1),Mh(l,(function(e){m=(e.getLayout().x+h)*p,v=(e.depth-1)*g;var t=qd(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Mh(l,(function(e){v=(e.getLayout().x+h)*g,m="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+d+h),g=o/(f.depth-1||1),Mh(l,(function(e){m=(e.getLayout().x+h)*p,v="TB"===y?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function jh(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(p["extend"])(i,r)}))}))}function Lh(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,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=Md(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function Nh(e){e.registerChartView(lh),e.registerSeriesModel(Th),e.registerLayout(Ph),e.registerVisual(jh),Lh(e)}var Rh=["treemapZoomToNode","treemapRender","treemapMove"];function Bh(e){for(var t=0;t<Rh.length;t++)e.registerAction({type:Rh[t],update:"updateView"},p["noop"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],i=Sh(e,r,t);if(i){var o=t.getViewRoot();o&&(e.direction=kh(o,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var $h=n("4041");function Fh(e){var t=e.getData(),n=t.tree,r={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var i=Object($h["b"])(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var zh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};qh(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new _["a"]({itemStyle:i},this,t);r=e.levels=Uh(r,t);var a=p["map"](r||[],(function(e){return new _["a"](e,o,t)}),this),s=Oh.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return Object(yc["c"])("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Eh(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},p["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=p["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(){Fh(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,scaleLimit:null,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}(h["b"]);function qh(e){var t=0;p["each"](e.children,(function(e){qh(e);var n=e.value;p["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;p["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),p["isArray"](e.value)?e.value[0]=n:e.value=n}function Uh(e,t){var n=Object(j["r"])(t.get("color")),r=Object(j["r"])(t.get(["aria","decal","decals"]));if(n){var i,o;e=e||[],p["each"](e,(function(e){var t=new _["a"](e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var Hh=zh,Vh=8,Wh=8,Kh=5,Gh=function(){function e(e){this.group=new zn["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,r),dn["i"](o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Object(j["e"])(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*Vh,t.emptyItemWidth);t.totalWidth+=a+Wh,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=dn["e"](t.pos,t.box),f=t.totalWidth,d=t.renderList,h=r.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var m=d[g],v=m.node,y=m.width,b=m.text;f>c.width&&(f-=y-l,y=l,b=null);var _=new Gn["a"]({shape:{points:Yh(s,0,y,u,g===d.length-1,0===g)},style:Object(p["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Un["a"]({style:Object(hn["c"])(i,{text:b})}),textConfig:{position:"inside"},z2:1e4*gn["j"],onclick:Object(p["curry"])(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Object(hn["c"])(o,{text:b}),_.ensureState("emphasis").style=h,Object(gn["J"])(_,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(_),Xh(_,e,v),s+=y+Wh}},e.prototype.remove=function(){this.group.removeAll()},e}();function Yh(e,t,n,r,i,o){var a=[[i?e:e-Kh,t],[e+n,t],[e+n,t+r],[i?e:e-Kh,t+r]];return!o&&a.splice(2,0,[e+n+Kh,t+r/2]),!i&&a.push([e,t+r/2]),a}function Xh(e,t,n){Object(L["a"])(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&&Eh(n,t)}}var Zh=Gh,Qh=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!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())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Jh(){return new Qh}var ep=n("282b"),tp=zn["a"],np=Xn["a"],rp=3,ip="label",op="upperLabel",ap=10*gn["j"],sp=2*gn["j"],lp=3*gn["j"],up=Object(ep["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cp=function(e){var t=up(e);return t.stroke=t.fill=t.lineWidth=null,t},fp=Object(j["o"])(),dp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=hp(),n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(p["indexOf"])(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=Sh(r,o,e),s=r&&r.type,l=e.layoutInfo,u=!this._oldTree,c=this._storage,f="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,d=this._giveContainerGroup(l),h=e.get("animation"),g=this._doRender(d,e,f);!h||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?g.renderFinally():this._doAnimation(d,g,e,f),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new tp,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,o=hp(),a=hp(),s=this._storage,l=[];function u(e,r,i,u){return pp(t,a,s,n,o,l,e,r,i,u)}h(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var c=g(s);if(this._oldTree=r,this._storage=a,this._controllerHost){var f=this.seriesModel.layoutInfo,d=r.root.getLayout();d.width===f.width&&d.height===f.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:m};function h(e,t,n,r,i){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,c=u(s,l,n,i);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(t=e,Object(p["each"])(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new S(t,e,o,o).add(a).update(a).remove(Object(p["curry"])(a,null)).execute()}function g(e){var t=hp();return e&&Object(p["each"])(e,(function(e,n){var r=t[n];Object(p["each"])(e,(function(e){e&&(r.push(e),fp(e).willDelete=!0)}))})),t}function m(){Object(p["each"])(c,(function(e){Object(p["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(p["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(p["isFunction"])(i)?0:i)||0,s=(Object(p["isFunction"])(o)?null:o)||"cubicOut",l=Jh();Object(p["each"])(t.willDeleteEls,(function(e,t){Object(p["each"])(e,(function(e,n){if(!e.invisible){var i,o=e.parent,u=fp(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,f=0;u.willDelete||(c=u.nodeWidth/2,f=u.nodeHeight/2),i="nodeGroup"===t?{x:c,y:f,style:{opacity:0}}:{shape:{x:c,y:f,width:0,height:0},style:{opacity:0}}}i&&l.add(e,i,a,0,s)}}))})),Object(p["each"])(this._storage,(function(e,n){Object(p["each"])(e,(function(e,r){var i=t.lastsForAnimation[n][r],o={};i&&(e instanceof zn["a"]?null!=i.oldX&&(o.x=e.x,o.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(o.shape=Object(p["extend"])({},e.shape),e.setShape(i.oldShape)),i.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(p["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||(t=this._controller=new Hc(e.getZr()),t.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",Object(p["bind"])(this._onPan,this)),t.on("zoom",Object(p["bind"])(this._onZoom,this)));var r=new _t["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return r.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>rp||Math.abs(e.dy)>rp)){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,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new _t["a"](o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,f=s.max||1/0;u=Math.max(Math.min(f,u),c)}var d=u/l.zoom;l.zoom=u;var h=this.seriesModel.layoutInfo;t-=h.x,n-=h.y;var p=se["create"]();se["translate"](p,p,[-t,-n]),se["scale"](p,p,[d,d]),se["translate"](p,p,[t,n]),a.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.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 r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Object(Qe["k"])(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=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 Zh(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(kh(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hp(),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,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.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:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(f["a"]);function hp(){return{nodeGroup:[],background:[],content:[]}}function pp(e,t,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),f=e.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var h=c.width,g=c.height,m=c.borderWidth,v=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),_=a.viewChildren,w=c.upperHeight,x=_&&_.length,O=d.getModel("itemStyle"),S=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),E=O.get("borderRadius")||0,A=U("nodeGroup",tp);if(A){if(l.add(A),A.x=c.x||0,A.y=c.y||0,A.markRedraw(),fp(A).nodeWidth=h,fp(A).nodeHeight=g,c.isAboveViewRoot)return A;var T=U("background",np,u,sp);T&&B(A,T,x&&c.upperLabelHeight);var D=d.getModel("emphasis"),M=D.get("focus"),P=D.get("blurScope"),I=D.get("disabled"),N="ancestor"===M?a.getAncestorsIndices():"descendant"===M?a.getDescendantIndices():M;if(x)Object(gn["y"])(A)&&Object(gn["F"])(A,!1),T&&(Object(gn["F"])(T,!I),f.setItemGraphicEl(a.dataIndex,T),Object(gn["p"])(T,N,P));else{var R=U("content",np,u,lp);R&&$(A,R),T.disableMorphing=!0,T&&Object(gn["y"])(T)&&Object(gn["F"])(T,!1),Object(gn["F"])(A,!I),f.setItemGraphicEl(a.dataIndex,A),Object(gn["p"])(A,N,P)}return A}}}function B(t,n,r){var i=Object(L["a"])(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:g,r:E}),v)F(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=cp(O);l.fill=s;var u=up(S);u.fill=S.get("borderColor");var c=up(C);c.fill=C.get("borderColor");var f=up(k);if(f.fill=k.get("borderColor"),r){var d=h-2*m;z(n,s,o.opacity,{x:m,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=f,Object(gn["G"])(n)}t.add(n)}function $(t,n){var r=Object(L["a"])(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*m,0),o=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:o,r:E}),v)F(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=cp(O);u.fill=l,u.decal=s.decal;var c=up(S),f=up(C),d=up(k);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=f,n.ensureState("select").style=d,Object(gn["G"])(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function z(t,n,r,i){var o=d.getModel(i?op:ip),s=Object(j["e"])(d.get("name"),null),l=o.getShallow("show");Object(hn["g"])(t,Object(hn["e"])(d,i?op:ip),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var f=u.style,h=Object(p["normalizeCssArray"])(f.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);f.width===e&&f.height===n||u.setStyle({width:e,height:n})},f.truncateMinChar=2,f.lineOverflow="truncate",q(f,i,c);var g=u.getState("emphasis");q(g?g.style:null,i,c)}}function q(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function U(e,r,o,a){var s=null!=b&&n[e][b],l=i[e];return s?(n[e][b]=null,H(l,s)):v||(s=new r,s instanceof Vf["c"]&&(s.z2=gp(o,a)),V(l,s)),t[e][y]=s}function H(e,t){var n=e[y]={};t instanceof tp?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(p["extend"])({},t.shape)}function V(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof zn["a"];if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function gp(e,t){return e*ap+t}var mp=dp,vp=n("edae"),yp=p["each"],bp=p["isObject"],_p=-1,wp=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=p["clone"](t);this.type=r,this.mappingMethod=n,this._normalizeData=Ip[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Sp(i),xp(i)):"category"===n?i.categories?Op(i):Sp(i,!0):(p["assert"]("linear"!==n||i.dataExtent),Sp(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return p["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return p["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){p["isObject"](e)?p["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=p["isArray"](t)?[]:p["isObject"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&yp(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(p["isArray"](e))e=e.slice();else{if(!bp(e))return[];var t=[];yp(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 r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||p["isString"](s)&&s===e+"")return o;n&&f(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(jp(c[1],e,u[1]))return o}else if(u[1]===1/0){if(jp(c[0],u[0],e))return o}else if(jp(c[0],u[0],e)&&jp(c[1],e,u[1]))return o;n&&f(u[0],o),n&&f(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function f(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:Ep("color"),getColorMapper:function(){var e=this.option;return p["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Ap.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=ue["fastLerp"](t,e.parsedVisual,r),i?r:ue["stringify"](r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ue["stringify"](ue["fastLerp"](e,this.option.parsedVisual),"rgba")},category:Ap,piecewise:function(e,t){var n=Mp.call(this,t);return null==n&&(n=ue["stringify"](ue["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:Tp}},colorHue:Cp((function(e,t){return ue["modifyHSL"](e,t)})),colorSaturation:Cp((function(e,t){return ue["modifyHSL"](e,null,t)})),colorLightness:Cp((function(e,t){return ue["modifyHSL"](e,null,null,t)})),colorAlpha:Cp((function(e,t){return ue["modifyAlpha"](e,t)})),decal:{applyVisual:Ep("decal"),_normalizedToVisual:{linear:null,category:Ap,piecewise:null,fixed:null}},opacity:{applyVisual:Ep("opacity"),_normalizedToVisual:Dp([0,1])},liftZ:{applyVisual:Ep("liftZ"),_normalizedToVisual:{linear:Tp,category:Tp,piecewise:Tp,fixed:Tp}},symbol:{applyVisual:function(e,t,n){var r=this.mapValueToVisual(e);n("symbol",r)},_normalizedToVisual:{linear:kp,category:Ap,piecewise:function(e,t){var n=Mp.call(this,t);return null==n&&(n=kp.call(this,e)),n},fixed:Tp}},symbolSize:{applyVisual:Ep("symbolSize"),_normalizedToVisual:Dp([0,1])}},e}();function xp(e){var t=e.pieceList;e.hasSpecialVisual=!1,p["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function Op(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(yp(t,(function(e,t){n[e]=t})),!p["isArray"](r)){var i=[];p["isObject"](r)?yp(r,(function(e,t){var r=n[t];i[null!=r?r:_p]=e})):i[_p]=r,r=Pp(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}function Sp(e,t){var n=e.visual,r=[];p["isObject"](n)?yp(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),Pp(e,r)}function Cp(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:Dp([0,1])}}function kp(e){var t=this.option.visual;return t[Math.round(Object(Fe["m"])(e,[0,1],[0,t.length-1],!0))]||{}}function Ep(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Ap(e){var t=this.option.visual;return t[this.option.loop&&e!==_p?e%t.length:e]}function Tp(){return this.option.visual[0]}function Dp(e){return{linear:function(t){return Object(Fe["m"])(t,e,this.option.visual,!0)},category:Ap,piecewise:function(t,n){var r=Mp.call(this,n);return null==r&&(r=Object(Fe["m"])(t,e,this.option.visual,!0)),r},fixed:Tp}}function Mp(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=wp.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function Pp(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=p["map"](t,(function(e){var t=ue["parse"](e);return t||[0,0,0,1]}))),t}var Ip={linear:function(e){return Object(Fe["m"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=wp.findPieceIndex(e,t,!0);if(null!=n)return Object(Fe["m"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?_p:t},fixed:p["noop"]};function jp(e,t,n){return e?t<=n:t<n}var Lp=wp,Np="itemStyle",Rp=Object(j["o"])(),Bp={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||$p(n,{},e.getViewRoot().getAncestors(),e)}};function $p(e,t,n,r){var i=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel(Np),u=Fp(l,t,r),c=a.ensureUniqueItemVisual(e.dataIndex,"style"),f=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=zp(u),f=qp(d,s)),c.stroke=f;var h=e.viewChildren;if(h&&h.length){var g=Hp(e,i,o,l,u,h);Object(p["each"])(h,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=Wp(i,u,e,t,g,r);$p(e,o,n,r)}}))}else s=zp(u),c.fill=s}}function Fp(e,t,n){var r=Object(p["extend"])({},t),i=n.designatedVisualItemStyle;return Object(p["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function zp(e){var t=Up(e,"color");if(t){var n=Up(e,"colorAlpha"),r=Up(e,"colorSaturation");return r&&(t=Object(ue["modifyHSL"])(t,null,null,r)),n&&(t=Object(ue["modifyAlpha"])(t,n)),t}}function qp(e,t){return null!=t?Object(ue["modifyHSL"])(t,null,null,e):null}function Up(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function Hp(e,t,n,r,i,o){if(o&&o.length){var a=Vp(t,"color")||null!=i.color&&"none"!==i.color&&(Vp(t,"colorAlpha")||Vp(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:a.name,dataExtent:u,visual:a.range};"color"!==f.type||"index"!==c&&"id"!==c?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var d=new Lp(f);return Rp(d).drColorMappingBy=c,d}}}function Vp(e,t){var n=e.get(t);return Object(p["isArray"])(n)&&n.length?{name:t,range:n}:null}function Wp(e,t,n,r,i,o){var a=Object(p["extend"])({},t);if(i){var s=i.type,l="color"===s&&Rp(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var Kp=Math.max,Gp=Math.min,Yp=p["retrieve"],Xp=p["each"],Zp=["itemStyle","borderWidth"],Qp=["itemStyle","gapWidth"],Jp=["upperLabel","show"],eg=["upperLabel","height"],tg={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=dn["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Object(Fe["q"])(Yp(s.width,l[0]),i),c=Object(Fe["q"])(Yp(s.height,l[1]),o),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Sh(r,d,e),g="treemapRender"===f||"treemapMove"===f?r.rootRect:null,m=e.getViewRoot(),v=Ch(m);if("treemapMove"!==f){var y="treemapZoomToNode"===f?ug(e,h,m,u,c):g?[g.width,g.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(w),ng(m,_,!1,0),w=m.getLayout(),Xp(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(p["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var x=e.getData().tree.root;x.setLayout(cg(s,g,h),!0),e.setLayoutInfo(s),fg(x,new _t["a"](-s.x,-s.y,i,o),v,m,0)}};function ng(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(Zp),u=s.get(Qp)/2,c=dg(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Kp(i-2*d,0),o=Kp(o-d-h,0);var p=i*o,g=rg(e,s,p,t,n,r);if(g.length){var m={x:d,y:h,width:i,height:o},v=Gp(i,o),y=1/0,b=[];b.area=0;for(var _=0,w=g.length;_<w;){var x=g[_];b.push(x),b.area+=x.getLayout().area;var O=sg(b,v,t.squareRatio);O<=y?(_++,y=O):(b.area-=b.pop().getLayout().area,lg(b,v,m,u,!1),v=Gp(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&lg(b,v,m,u,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&p<S&&(n=!0)}for(_=0,w=g.length;_<w;_++)ng(g[_],t,n,r+1)}}}function rg(e,t,n,r,i,o){var a=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return e.viewChildren=[];a=p["filter"](a,(function(e){return!e.isRemoved()})),og(a,s);var u=ag(t,a,s);if(0===u.sum)return e.viewChildren=[];if(u.sum=ig(t,n,u.sum,s,a),0===u.sum)return e.viewChildren=[];for(var c=0,f=a.length;c<f;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:u.dataExtent},!0),a}function ig(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*t<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}function og(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function ag(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].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],Xp(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function sg(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=e.area*e.area,u=t*t*n;return l?Kp(u*r/l,l/(u*i)):1/0}function lg(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],p={},g=c?h.getLayout().area/c:0,m=p[l[a]]=Kp(c-2*r,0),v=n[s[o]]+n[l[o]]-u,y=f===d-1||v<g?v:g,b=p[l[o]]=Kp(y-2*r,0);p[s[a]]=n[s[a]]+Gp(r,m/2),p[s[o]]=u+Gp(r,b/2),u+=y,h.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function ug(e,t,n,r,i){var o,a=(t||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,f=o.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var p=a.getValue();if(0===p)return s;u*=c/p;var g=o.getModel(),m=g.get(Zp),v=Math.max(m,dg(g));u+=4*m*m+(3*m+v)*Math.pow(u,.5),u>Fe["a"]&&(u=Fe["a"]),a=o}u<l&&(u=l);var y=Math.pow(u/l,.5);return[r*y,i*y]}function cg(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;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 fg(e,t,n,r,i){var o=e.getLayout(),a=n[i],s=a&&a===e;if(!(a&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new _t["a"](t.x-o.x,t.y-o.y,t.width,t.height);Xp(e.viewChildren||[],(function(e){fg(e,l,n,r,i+1)}))}}function dg(e){return e.get(Jp)?e.get(eg):0}function hg(e){e.registerSeriesModel(Hh),e.registerChartView(mp),e.registerVisual(Bp),e.registerLayout(tg),Bh(e)}function pg(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){Object(p["isNumber"])(r)&&(r=o[r]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(r))return!1}return!0}))}))}function gg(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),o=t.getShallow("category");if(null!=o){Object(p["isString"])(o)&&(o=i["ec-"+o]);var a=n.getItemVisual(o,"style"),s=r.ensureUniqueItemVisual(e,"style");Object(p["extend"])(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(e,l[u],n.getItemVisual(o,l[u]))}}))}))}function mg(e){return e instanceof Array||(e=[e,e]),e}function vg(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=mg(e.get("edgeSymbol")),i=mg(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),o=mg(r.getShallow("symbol",!0)),a=mg(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(p["extend"])(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var yg="--\x3e",bg=function(e){return e.get("autoCurveness")||null},_g=function(e,t){var n=bg(e),r=20,i=[];if(p["isNumber"](n))r=n;else if(p["isArray"](n))return void(e.__curvenessList=n);t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},wg=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join(yg)},xg=function(e){var t=e.split(yg);return[t[0],t[2],t[1]].join(yg)},Og=function(e,t){var n=wg(e.node1,e.node2,t);return t.__edgeMap[n]},Sg=function(e,t){var n=Cg(wg(e.node1,e.node2,t),t),r=Cg(wg(e.node2,e.node1,t),t);return n+r},Cg=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function kg(e){bg(e)&&(e.__curvenessList=[],e.__edgeMap={},_g(e))}function Eg(e,t,n,r){if(bg(n)){var i=wg(e,t,n),o=n.__edgeMap,a=o[xg(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function Ag(e,t,n,r){var i=bg(t),o=p["isArray"](i);if(!i)return null;var a=Og(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=Sg(e,t);_g(t,u),e.lineStyle=e.lineStyle||{};var c=wg(e.node1,e.node2,t),f=t.__curvenessList,d=o||u%2?0:1;if(a.isForward)return f[d+s];var h=xg(c),g=Cg(h,t),m=f[s+g+d];return r?o?i&&0===i[0]?(g+d)%2?m:-m:((g%2?0:1)+d)%2?m:-m:(g+d)%2?m:-m:f[s+g+d]}function Tg(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")])})),Dg(n,e)}}function Dg(e,t){e.eachEdge((function(e,n){var r=p["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-Ag(e,t,n,!0),0),i=le["clone"](e.node1.getLayout()),o=le["clone"](e.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),e.setLayout(a)}))}function Mg(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(p["each"])(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}Dg(r.graph,e)}else t&&"none"!==t||Tg(e)}))}function Pg(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,i=t.getZoom(),o=(i-1)*n+1;return o/r}function Ig(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var jg=Math.PI,Lg=[];function Ng(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,f=a.count();if(a.setLayout({cx:l,cy:u}),f){if(n){var d=i.pointToData(r),h=d[0],g=d[1],m=[h-l,g-u];le["normalize"](m,m),le["scale"](m,m,c),n.setLayout([l+m[0],u+m[1]],!0);var v=e.get(["circular","rotateLabel"]);Bg(n,v,l,u)}Rg[t](e,s,a,c,l,u,f),s.eachEdge((function(t,n){var r,i=p["retrieve3"](t.getModel().get(["lineStyle","curveness"]),Ag(t,e,n),0),o=le["clone"](t.node1.getLayout()),a=le["clone"](t.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(i*=3,r=[l*i+s*(1-i),u*i+c*(1-i)]),t.setLayout([o,a,r])}))}}}var Rg={value:function(e,t,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=u*(l?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,r,i,o,a){var s=0;Lg.length=a;var l=Pg(e);t.eachNode((function(e){var t=Ig(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/r);isNaN(n)&&(n=jg/2),Lg[e.dataIndex]=n,s+=2*n}));var u=(2*jg-s)/a/2,c=0;t.eachNode((function(e){var t=u+Lg[e.dataIndex];c+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=t}))}};function Bg(e,t,n,r){var i=e.getGraphicEl();if(i){var o=e.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");p["extend"](d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function $g(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&Ng(e,"symbolSize")}))}var Fg=le["scaleAndAdd"];function zg(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=le["create"](a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=le["clone"](f.p),f.edges=null}var d,h,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){h=e},step:function(e){d&&d(r,i);for(var t=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;le["sub"](t,c.p,s.p);var f=le["len"](t)-a.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),le["normalize"](t,t),!s.fixed&&Fg(s.p,s.p,t,p*f*g),!c.fixed&&Fg(c.p,c.p,t,-(1-p)*f*g)}}for(o=0;o<n;o++){var m=r[o];m.fixed||(le["sub"](t,l,m.p),Fg(m.p,m.p,t,u*g))}for(o=0;o<n;o++){s=r[o];for(var v=o+1;v<n;v++){c=r[v];le["sub"](t,c.p,s.p);f=le["len"](t);0===f&&(le["set"](t,Math.random()-.5,Math.random()-.5),f=1);var y=(s.rep+c.rep)/f/f;!s.fixed&&Fg(s.pp,s.pp,t,y),!c.fixed&&Fg(c.pp,c.pp,t,-y)}}var b=[];for(o=0;o<n;o++){m=r[o];m.fixed||(le["sub"](b,m.p,m.pp),Fg(m.p,m.p,b,g),le["copy"](m.pp,m.p))}g*=.992;var _=g<.01;h&&h(r,i,_),e&&e(_)}}}function qg(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,o=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Ng(e,"value"):Tg(e);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),f=a.get("edgeLength"),d=p["isArray"](c)?c:[c,c],h=p["isArray"](f)?f:[f,f];h=[h[1],h[0]];var g=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=Object(Fe["m"])(e,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),m=o.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=Object(Fe["m"])(t,u,h);isNaN(o)&&(o=(h[0]+h[1])/2);var a=i.getModel(),s=p["retrieve3"](i.getModel().get(["lineStyle","curveness"]),-Ag(i,e,n,!0),0);return{n1:g[i.node1.dataIndex],n2:g[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),y=zg(g,m,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&le["copy"](e[n].p,r.getNodeByIndex(n).getLayout())})),y.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[i.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],u=r.getEdgeByIndex(a),c=l.n1.p,f=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],le["copy"](d[0],c),le["copy"](d[1],f),+l.curveness&&(d[2]=[(c[0]+f[0])/2-(c[1]-f[1])*l.curveness,(c[1]+f[1])/2-(f[0]-c[0])*l.curveness]),u.setLayout(d)}})),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null}))}function Ug(e,t,n){var r=Object(p["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(dn["g"])(r,{width:t.getWidth(),height:t.getHeight()})}function Hg(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),o=i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];Zd["d"](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]),u=Ug(e,t,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],f=s[1]-a[1],d=u.width,h=u.height,p=e.coordinateSystem=new vd;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(a[0],a[1],c,f),p.setViewRect(u.x,u.y,d,h),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var Vg=Zn["a"].prototype,Wg=Qn["a"].prototype,Kg=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}Object(Pe["a"])(t,e)})(Kg);function Gg(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Yg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kg},t.prototype.buildPath=function(e,t){Gg(t)?Vg.buildPath.call(this,e,t):Wg.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Gg(this.shape)?Vg.pointAt.call(this,e):Wg.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Gg(t)?[t.x2-t.x1,t.y2-t.y1]:Wg.tangentAt.call(this,e);return le["normalize"](n,n)},t}(Nr["b"]),Xg=Yg,Zg=["fromSymbol","toSymbol"];function Qg(e){return"_"+e+"Type"}function Jg(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=pn["c"](i),u=pn["b"](a||0,l);return r+l+u+(o||"")+(s||"")}function em(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=pn["c"](i),u=pn["b"](a||0,l),c=pn["a"](r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function tm(e){var t=new Xg({name:"line",subPixelOptimize:!0});return nm(t.shape,e),t}function nm(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 rm=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return Object(Pe["a"])(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),o=tm(i);o.shape.percent=0,Fn["c"](o,{shape:{percent:1}},r,t),this.add(o),Object(p["each"])(Zg,(function(n){var r=em(n,e,t);this.add(r),this[Qg(n)]=Jg(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};nm(a.shape,o),Fn["h"](i,a,r,t),Object(p["each"])(Zg,(function(n){var r=Jg(n,e,t),i=Qg(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=em(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,f=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),h=d.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=h.get("disabled"),c=h.get("focus"),f=h.get("blurScope"),l=Object(hn["e"])(d)}var g=e.getItemVisual(t,"style"),m=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(p["each"])(Zg,(function(e){var t=this.childOfName(e);if(t){t.setColor(m),t.style.opacity=g.opacity;for(var n=0;n<gn["g"].length;n++){var r=gn["g"][n],o=i.getState(r);if(o){var a=o.style||{},s=t.ensureState(r),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=r.getRawValue(t);Object(hn["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?Object(Fe["w"])(v):v)+""});var y=this.getTextContent();if(y){var b=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var _=b.get("distance");Object(p["isArray"])(_)||(_=[_,_]),y.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Object(gn["J"])(this,c,f,u)},t.prototype.highlight=function(){Object(gn["r"])(this)},t.prototype.downplay=function(){Object(gn["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");nm(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){var i=1,o=this.parent;while(o)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=le["sub"]([],u,l);if(le["normalize"](c,c),t&&(t.setPosition(l),O(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(u),O(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,d=void 0,h=r.__labelDistance,p=h[0]*i,g=h[1]*i,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],b=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var _=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var w=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(w=Math.PI+w),r.rotation=w}var x=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=g,d="top";break;default:x=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*g+u[1],f=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*g+l[1],f=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*_+l[0],r.y=l[1]+x,f=v[0]<0?"right":"left",r.originX=-p*_,r.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+x,f="center",r.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*_+u[0],r.y=u[1]+x,f=v[0]>=0?"right":"left",r.originX=p*_,r.originY=-x;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||f})}}}function O(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(zn["a"]),im=rm,om=function(){function e(e){this.group=new zn["a"],this._LineCtor=e||im}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=sm(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.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=sm(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||am(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(um(i)){var o=new this._LineCtor(t,r,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){$n["traverseElements"](this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var r=e.getItemLayout(t);if(um(r)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},e.prototype._doUpdate=function(e,t,n,r,i){var o=e.getItemGraphicEl(n);um(t.getItemLayout(r))?(o?o.updateData(t,r,i):o=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},e}();function am(e){return e.animators&&e.animators.length>0}function sm(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:Object(hn["e"])(t)}}function lm(e){return isNaN(e[0])||isNaN(e[1])}function um(e){return e&&!lm(e[0])&&!lm(e[1])}var cm=om,fm=[],dm=[],hm=[],pm=$r["h"],gm=le["distSquare"],mm=Math.abs;function vm(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){fm[0]=pm(i[0],o[0],a[0],c),fm[1]=pm(i[1],o[1],a[1],c);var f=mm(gm(fm,t)-l);f<s&&(s=f,r=c)}for(var d=0;d<32;d++){var h=r+u;dm[0]=pm(i[0],o[0],a[0],r),dm[1]=pm(i[1],o[1],a[1],r),hm[0]=pm(i[0],o[0],a[0],h),hm[1]=pm(i[1],o[1],a[1],h);f=gm(dm,t)-l;if(mm(f)<.01)break;var p=gm(hm,t)-l;u/=2,f<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function ym(e,t){var n=[],r=$r["n"],i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[le["clone"](l[0]),le["clone"](l[1])],l[2]&&l.__original.push(le["clone"](l[2])));var f=l.__original;if(null!=l[2]){if(le["copy"](i[0],f[0]),le["copy"](i[1],f[2]),le["copy"](i[2],f[1]),u&&"none"!==u){var d=Ig(e.node1),h=vm(i,f[0],d*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=Ig(e.node2),h=vm(i,f[1],d*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}le["copy"](l[0],i[0]),le["copy"](l[1],i[2]),le["copy"](l[2],i[1])}else{if(le["copy"](o[0],f[0]),le["copy"](o[1],f[1]),le["sub"](a,o[1],o[0]),le["normalize"](a,a),u&&"none"!==u){d=Ig(e.node1);le["scaleAndAdd"](o[0],o[0],a,d*t)}if(c&&"none"!==c){d=Ig(e.node2);le["scaleAndAdd"](o[1],o[1],a,-d*t)}le["copy"](l[0],o[0]),le["copy"](l[1],o[1])}}))}function bm(e){return"view"===e.type}var _m=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){var n=new qa,r=new cm,i=this.group;this._controller=new Hc(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(bm(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Fn["h"](s,l,e)}ym(e.getGraph(),Pg(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,d=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,d);var h=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(h){case"force":f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,d),f.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),Ng(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),Dg(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){f&&f.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Object(L["a"])(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(L["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=u.getLayout("cx"),m=u.getLayout("cy");u.graph.eachNode((function(e){Bg(e,p,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!Gc(t,n,e)})),bm(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){Vc(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){Wc(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),ym(e.getGraph(),Pg(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Pg(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){ym(e.getGraph(),Pg(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(f["a"]),wm=_m;function xm(e){return"_EC_"+e}var Om=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[xm(e)]){var r=new Sm(e,t);return r.hostGraph=this,this.nodes.push(r),n[xm(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[xm(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(p["isNumber"](e)&&(e=this.nodes[e]),p["isNumber"](t)&&(t=this.nodes[t]),e instanceof Sm||(e=r[xm(e)]),t instanceof Sm||(t=r[xm(t)]),e&&t){var o=e.id+"-"+t.id,a=new Cm(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),i[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 Sm&&(e=e.id),t instanceof Sm&&(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,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof Sm||(t=this._nodesMap[xm(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(e.call(r,c,s))return;a.push(c),c.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),Sm=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.prototype.getTrajectoryDataIndices=function(){for(var e=p["createHashMap"](),t=p["createHashMap"](),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);var i=[r.node1],o=[r.node2],a=0;while(a<i.length){var s=i[a];a++,t.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)e.set(s.inEdges[l].dataIndex,!0),i.push(s.inEdges[l].node1)}a=0;while(a<o.length){var u=o[a];a++,t.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)e.set(u.outEdges[l].dataIndex,!0),o.push(u.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),Cm=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.prototype.getTrajectoryDataIndices=function(){var e=p["createHashMap"](),t=p["createHashMap"]();e.set(this.dataIndex,!0);var n=[this.node1],r=[this.node2],i=0;while(i<n.length){var o=n[i];i++,t.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)e.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}i=0;while(i<r.length){var s=r[i];i++,t.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)e.set(s.outEdges[a].dataIndex,!0),r.push(s.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function km(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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)}}}p["mixin"](Sm,km("hostGraph","data")),p["mixin"](Cm,km("hostGraph","edgeData"));var Em=Om;function Am(e,t,n,r,i){for(var o=new Em(r),a=0;a<e.length;a++)o.addNode(p["retrieve"](e[a].id,e[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<t.length;a++){var c=t[a],f=c.source,d=c.target;o.addEdge(f,d,u)&&(l.push(c),s.push(p["retrieve"](Object(j["e"])(c.id,null),f+" > "+d)),u++)}var h,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)h=Me(e,n);else{var m=ve["a"].get(g),v=m&&m.dimensions||[];p["indexOf"](v,"value")<0&&v.concat(["value"]);var y=he(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;h=new ae(y,n),h.initData(e)}var b=new ae(["value"],n);return b.initData(l,s),i&&i(h,b),bh({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Tm=n("f6d8"),Dm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new jl(r,r),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),Object(j["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){kg(this);var o=Am(r,n,this,!0,a);return p["each"](o.edges,(function(e){Eg(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=_["a"].prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=o,r}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=r,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 r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(yc["c"])("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Object(Tm["a"])({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=p["map"](this.option.categories||[],(function(e){return null!=e.value?e:p["extend"]({value:0},e)})),t=new ae(["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}(h["b"]),Mm=Dm,Pm={type:"graphRoam",event:"graphRoam",update:"none"};function Im(e){e.registerChartView(wm),e.registerSeriesModel(Mm),e.registerProcessor(pg),e.registerVisual(gg),e.registerVisual(vg),e.registerLayout(Mg),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,$g),e.registerLayout(qg),e.registerCoordinateSystem("graphView",{dimensions:vd.dimensions,create:Hg}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},p["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},p["noop"]),e.registerAction(Pm,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=Md(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var jm=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),Lm=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new jm},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)},t}(Nr["b"]),Nm=Lm;function Rm(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=Object(Fe["q"])(n[0],t.getWidth()),s=Object(Fe["q"])(n[1],t.getHeight()),l=Object(Fe["q"])(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function Bm(e,t){var n=null==e?"":e+"";return t&&(Object(p["isString"])(t)?n=t.replace("{value}",n):Object(p["isFunction"])(t)&&(n=t(e))),n}var $m=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=Rm(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),f=c?Rs:Wn["a"],d=u.get("show"),h=u.getModel("lineStyle"),g=h.get("width"),m=[s,l];Object(Rr["b"])(m,!a),s=m[0],l=m[1];for(var v=l-s,y=s,b=[],_=0;d&&_<r.length;_++){var w=Math.min(Math.max(r[_][0],0),1);l=s+v*w;var x=new f({shape:{startAngle:y,endAngle:l,cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-g,r:i.r},silent:!0});x.setStyle({fill:r[_][1]}),x.setStyle(h.getLineStyle(["color","width"])),b.push(x),y=l}b.reverse(),Object(p["each"])(b,(function(e){return o.add(e)}));var O=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,O,i,s,l,a,g),this._renderTitleAndDetail(e,t,n,O,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,O,i,s,l,a,g)},t.prototype._renderTicks=function(e,t,n,r,i,o,a,s,l){for(var u,c,f=this.group,d=i.cx,h=i.cy,g=i.r,m=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),b=e.getModel("axisTick"),_=e.getModel("axisLabel"),w=e.get("splitNumber"),x=b.get("splitNumber"),O=Object(Fe["q"])(y.get("length"),g),S=Object(Fe["q"])(b.get("length"),g),C=o,k=(a-o)/w,E=k/x,A=y.getModel("lineStyle").getLineStyle(),T=b.getModel("lineStyle").getLineStyle(),D=y.get("distance"),M=0;M<=w;M++){if(u=Math.cos(C),c=Math.sin(C),y.get("show")){var P=D?D+l:l,I=new Zn["a"]({shape:{x1:u*(g-P)+d,y1:c*(g-P)+h,x2:u*(g-O-P)+d,y2:c*(g-O-P)+h},style:A,silent:!0});"auto"===A.stroke&&I.setStyle({stroke:r(M/w)}),f.add(I)}if(_.get("show")){P=_.get("distance")+D;var j=Bm(Object(Fe["w"])(M/w*(v-m)+m),_.get("formatter")),L=r(M/w),N=u*(g-O-P)+d,R=c*(g-O-P)+h,B=_.get("rotate"),$=0;"radial"===B?($=-C+2*Math.PI,$>Math.PI/2&&($+=Math.PI)):"tangential"===B?$=-C-Math.PI/2:Object(p["isNumber"])(B)&&($=B*Math.PI/180),0===$?f.add(new Un["a"]({style:Object(hn["c"])(_,{text:j,x:N,y:R,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new Un["a"]({style:Object(hn["c"])(_,{text:j,x:N,y:R,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:N,originY:R,rotation:$}))}if(b.get("show")&&M!==w){P=b.get("distance");P=P?P+l:l;for(var F=0;F<=x;F++){u=Math.cos(C),c=Math.sin(C);var z=new Zn["a"]({shape:{x1:u*(g-P)+d,y1:c*(g-P)+h,x2:u*(g-S-P)+d,y2:c*(g-S-P)+h},silent:!0,style:T});"auto"===T.stroke&&z.setStyle({stroke:r((M+F/x)/w)}),f.add(z),C+=E}C-=E}else C+=k}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,l){var u=this.group,c=this._data,f=this._progressEls,d=[],h=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),v=e.getData(),y=v.mapDimension("value"),b=+e.get("min"),_=+e.get("max"),w=[b,_],x=[o,a];function O(t,n){var r,o=v.getItemModel(t),a=o.getModel("pointer"),s=Object(Fe["q"])(a.get("width"),i.r),l=Object(Fe["q"])(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),f=Object(Fe["q"])(c[0],i.r),d=Object(Fe["q"])(c[1],i.r),h=a.get("keepAspect");return r=u?Object(pn["a"])(u,f-s/2,d-l,s,l,null,h):new Nm({shape:{angle:-Math.PI/2,width:s,r:l,x:f,y:d}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function S(e,t){var n=g.get("roundCap"),r=n?Rs:Wn["a"],a=g.get("overlap"),u=a?g.get("width"):l/v.count(),c=a?i.r-u:i.r-(e+1)*u,f=a?i.r:i.r-e*u,d=new r({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:f}});return a&&(d.z2=_-v.get(y,e)%_),d}(m||h)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(h){var r=O(t,o);Fn["c"](r,{rotation:-((isNaN(+n)?x[0]:Object(Fe["m"])(n,w,x,!0))+Math.PI/2)},e),u.add(r),v.setItemGraphicEl(t,r)}if(m){var i=S(t,o),a=g.get("clip");Fn["c"](i,{shape:{endAngle:Object(Fe["m"])(n,w,x,a)}},e),u.add(i),Object(L["b"])(e.seriesIndex,v.dataType,t,i),d[t]=i}})).update((function(t,n){var r=v.get(y,t);if(h){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=O(t,a);s.rotation=a,Fn["h"](s,{rotation:-((isNaN(+r)?x[0]:Object(Fe["m"])(r,w,x,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=f[n],p=l?l.shape.endAngle:o,b=S(t,p),_=g.get("clip");Fn["h"](b,{shape:{endAngle:Object(Fe["m"])(r,w,x,_)}},e),u.add(b),Object(L["b"])(e.seriesIndex,v.dataType,t,b),d[t]=b}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(h){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof qn["a"]){var c=s.style;s.useStyle(Object(p["extend"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Object(Fe["m"])(v.get(y,e),w,[0,1],!0))),s.z2EmphasisLift=0,Object(gn["I"])(s,t),Object(gn["J"])(s,i,o,a)}if(m){var f=d[e];f.useStyle(v.getItemVisual(e,"style")),f.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,Object(gn["I"])(f,t),Object(gn["J"])(f,i,o,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Object(pn["a"])(o,t.cx-i/2+Object(Fe["q"])(a[0],t.r),t.cy-i/2+Object(Fe["q"])(a[1],t.r),i,i,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,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new zn["a"],f=[],d=[],h=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){f[e]=new Un["a"]({silent:!0}),d[e]=new Un["a"]({silent:!0})})).update((function(e,t){f[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new zn["a"],m=r(Object(Fe["m"])(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=i.cx+Object(Fe["q"])(y[0],i.r),_=i.cy+Object(Fe["q"])(y[1],i.r),w=f[t];w.attr({z2:p?0:2,style:Object(hn["c"])(v,{x:b,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(w)}var x=n.getModel("detail");if(x.get("show")){var O=x.get("offsetCenter"),S=i.cx+Object(Fe["q"])(O[0],i.r),C=i.cy+Object(Fe["q"])(O[1],i.r),k=Object(Fe["q"])(x.get("width"),i.r),E=Object(Fe["q"])(x.get("height"),i.r),A=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,T=(w=d[t],x.get("formatter"));w.attr({z2:p?0:2,style:Object(hn["c"])(x,{x:S,y:C,text:Bm(o,T),width:isNaN(k)?null:k,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:A})}),Object(hn["h"])(w,{normal:x},o,(function(e){return Bm(e,T)})),h&&Object(hn["a"])(w,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return Bm(a?a.interpolatedValue:o,T)}}),g.add(w)}c.add(g)})),this.group.add(c),this._titleEls=f,this._detailEls=d},t.type="gauge",t}(f["a"]),Fm=$m,zm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Pl(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}(h["b"]),qm=zm;function Um(e){e.registerChartView(Fm),e.registerSeriesModel(qm)}var Hm=["itemStyle","opacity"],Vm=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new Yn["a"],a=new Un["a"];return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return Object(Pe["a"])(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(Hm);l=null==l?1:l,n||Object(Fn["g"])(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,Fn["c"](r,{style:{opacity:l}},i,t)):Fn["h"](r,{style:{opacity:l},shape:{points:a.points}},i,t),Object(gn["I"])(r,o),this._updateLabel(e,t),Object(gn["J"])(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;Object(hn["g"])(i,Object(hn["e"])(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var f=l.linePoints;r.setShape({points:f}),n.textGuideLineConfig={anchor:f?new Lr["a"](f[0][0],f[0][1]):null},Fn["h"](i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),li(n,ui(a),{stroke:c})},t}(Gn["a"]),Wm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new Vm(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);Fn["f"](n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(f["a"]),Km=Wm,Gm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jl(p["bind"](this.getData,this),p["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Pl(this,{coordDimensions:["value"],encodeDefaulter:p["curry"](fe["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(j["f"])(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(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},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}(h["b"]),Ym=Gm;function Xm(e,t){return dn["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Zm(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return Object(p["isFunction"])(t)?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}function Qm(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var r,i,o,a,s=e.getItemModel(t),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),f=e.getItemLayout(t),d=f.points,h="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(h)"insideLeft"===u?(i=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===u?(i=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,r="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var p=void 0,g=void 0,m=void 0,v=void 0,y=c.get("length");0,"left"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-y,i=m-5,r="right"):"right"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+y,i=m+5,r="left"):"top"===u?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,o=v-5,r="center"):"bottom"===u?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,o=v+5,r="center"):"rightTop"===u?(p="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-y,o=v-5,r="center"):(m=p+y,i=m+5,r="top")):"rightBottom"===u?(p=d[2][0],g=d[2][1],"horizontal"===n?(v=g+y,o=v+5,r="center"):(m=p+y,i=m+5,r="bottom")):"leftTop"===u?(p=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-y,o=v-5,r="center"):(m=p-y,i=m-5,r="right")):"leftBottom"===u?(p="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+y,o=v+5,r="center"):(m=p-y,i=m-5,r="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+y,o=v+5,r="center"):(m=p+y,i=m+5,r="left")),"horizontal"===n?(m=p,i=m):(v=g,o=v),a=[[p,g],[m,v]]}f.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:h}}))}function Jm(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),o=Xm(e,t),a=e.get("orient"),s=o.width,l=o.height,u=Zm(n,i),c=o.x,f=o.y,d="horizontal"===a?[Object(Fe["q"])(e.get("minSize"),l),Object(Fe["q"])(e.get("maxSize"),l)]:[Object(Fe["q"])(e.get("minSize"),s),Object(Fe["q"])(e.get("maxSize"),s)],h=n.getDataExtent(r),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(h[0],0)),null==g&&(g=h[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y="horizontal"===a?s:l,b=(y-v*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var i=n.get(r,e)||0,o=Object(Fe["m"])(i,[p,g],d,!0),u=void 0;switch(m){case"top":u=f;break;case"center":u=f+(l-o)/2;break;case"bottom":u=f+(l-o);break}return[[t,u],[t,u+o]]}var h,v=n.get(r,e)||0,y=Object(Fe["m"])(v,[p,g],d,!0);switch(m){case"left":h=c;break;case"center":h=c+(s-y)/2;break;case"right":h=c+s-y;break}return[[h,t],[h+y,t]]};"ascending"===i&&(b=-b,v=-v,"horizontal"===a?c+=s:f+=l,u=u.reverse());for(var w=0;w<u.length;w++){var x=u[w],O=u[w+1],S=n.getItemModel(x);if("horizontal"===a){var C=S.get(["itemStyle","width"]);null==C?C=b:(C=Object(Fe["q"])(C,s),"ascending"===i&&(C=-C));var k=_(x,c),E=_(O,c+C);c+=C+v,n.setItemLayout(x,{points:k.concat(E.slice().reverse())})}else{var A=S.get(["itemStyle","height"]);null==A?A=b:(A=Object(Fe["q"])(A,l),"ascending"===i&&(A=-A));k=_(x,f),E=_(O,f+A);f+=A+v,n.setItemLayout(x,{points:k.concat(E.slice().reverse())})}}Qm(n)}))}function ev(e){e.registerChartView(Km),e.registerSeriesModel(Ym),e.registerLayout(Jm),e.registerProcessor(xl("funnel"))}var tv=.3,nv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new zn["a"],n._initialized=!1,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,u=av(e);function c(e){var t=ov(o,i,e,l,s);sv(t,o,e,u)}function f(t,n){var r=a.getItemGraphicEl(n),i=iv(o,t,l,s);o.setItemGraphicEl(t,r),Fn["h"](r,{shape:{points:i}},e,t),Object(Fn["g"])(r),sv(r,o,t,u)}function d(e){var t=a.getItemGraphicEl(e);i.remove(t)}if(o.diff(a).add(c).update(f).remove(d).execute(),!this._initialized){this._initialized=!0;var h=rv(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(h)}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 r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=av(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=ov(r,this._dataGroup,l,o,i);u.incremental=!0,sv(u,r,l,a),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(f["a"]);function rv(e,t,n){var r=e.model,i=e.getRect(),o=new Xn["a"]({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),Fn["c"](o,{shape:{width:i.width,height:i.height}},t,n),o}function iv(e,t,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);lv(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function ov(e,t,n,r,i){var o=iv(e,n,r,i),a=new Yn["a"]({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function av(e){var t=e.get("smooth",!0);return!0===t&&(t=tv),t=Object(Fe["o"])(t),Object(p["eqNaN"])(t)&&(t=0),{smooth:t}}function sv(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Object(gn["I"])(e,i,"lineStyle"),Object(gn["J"])(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function lv(e,t){return"category"===t?null==e:null==e||isNaN(e)}var uv=nv,cv=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 Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Me(null,this,{useEncodeDefaulter:Object(p["bind"])(fv,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},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}(h["b"]);function fv(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(p["each"])(t.dimensions,(function(e){var t=dv(e);n[e]=t})),n}}function dv(e){return+e.replace("dim","")}var hv=cv,pv=["lineStyle","opacity"],gv={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={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 i=r[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(pv,!0);null!=o&&(i=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=i}),e.start,e.end)}}}},mv=gv;function vv(e){yv(e),bv(e)}function yv(e){if(!e.parallel){var t=!1;p["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function bv(e){var t=j["r"](e.parallelAxis);p["each"](t,(function(t){if(p["isObject"](t)){var n=t.parallelIndex||0,r=j["r"](e.parallel)[n];r&&r.parallelAxisDefault&&p["merge"](t,r.parallelAxisDefault,!1)}}))}var _v=5,wv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(p["each"])(xv,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(p["bind"])(e,this))}),this)),Object(ce["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(ce["a"])(this,"_throttledDispatchExpand"),Object(p["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(p["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(c["a"]),xv={mousedown:function(e){Ov(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Ov(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>_v)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&Ov(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function Ov(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var Sv=wv,Cv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&p["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){p["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=p["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);p["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}(d["a"]),kv=Cv,Ev=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return Object(Pe["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ar),Av=Ev;function Tv(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=Mv(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=Mv(s,[0,a]),i=o=Mv(s,[i,o]),r=0}t[0]=Mv(t[0],n),t[1]=Mv(t[1],n);var l=Dv(t,r);t[r]+=e;var u,c=i||0,f=n.slice();return l.sign<0?f[0]+=c:f[1]-=c,t[r]=Mv(t[r],f),u=Dv(t,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(t[1-r]=t[r]+l.sign*i),u=Dv(t,r),null!=o&&u.span>o&&(t[1-r]=t[r]+u.sign*o),t}function Dv(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 Mv(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var Pv=p["each"],Iv=Math.min,jv=Math.max,Lv=Math.floor,Nv=Math.ceil,Rv=Fe["w"],Bv=Math.PI,$v=function(){function e(e,t,n){this.type="parallel",this._axesMap=p["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;Pv(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new Av(e,en(o),[0,0],o.get("type"),r)),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,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+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 r=n.getData();Pv(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Jt(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=dn["g"](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,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=Fv(t.get("axisExpandWidth"),l),f=Fv(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow");if(h)e=Fv(h[1]-h[0],l),h[1]=h[0]+e;else{e=Fv(c*(f-1),l);var p=t.get("axisExpandCenter")||Lv(u/2);h=[c*p-e/2],h[1]=h[0]+e}var g=(s-e)/(u-f);g<3&&(g=0);var m=[Lv(Rv(h[0]/c,1))+1,Nv(Rv(h[1]/c,1))-1],v=g/c*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),Pv(n,(function(t,n){var o=(r.axisExpandable?qv:zv)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:Bv/2,vertical:0},l=[a[i].x+e.x,a[i].y+e.y],u=s[i],c=se["create"]();se["rotate"](c,c,u),se["translate"](c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,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,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];p["each"](o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var f=e.getValues(a,u),d=0,h=o.length;d<h;d++){var g=s[d].getActiveState(f[d]);if("inactive"===g){c="inactive";break}}}else c="normal";t(c,u)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return $n["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return p["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",u=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),f=null!=c[0];if(u)f&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):f&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?Tv(a,r,o,"all"):l="none";else{var d=r[1]-r[0],h=o[1]*s/d;r=[jv(0,h-d/2)],r[1]=Iv(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},e}();function Fv(e,t){return Iv(jv(e,t[0]),t[1])}function zv(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function qv(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e<l[0]?(n=e*s,r=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var Uv=$v;function Hv(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var o=new Uv(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",j["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var Vv={create:Hv},Wv=Vv,Kv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(Pe["a"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(ep["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=p["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)Fe["c"](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 r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(d["a"]);p["mixin"](Kv,fn);var Gv=Kv,Yv=!0,Xv=Math.min,Zv=Math.max,Qv=Math.pow,Jv=1e4,ey=6,ty=6,ny="globalPan",ry={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},iy={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},oy={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},ay=0,sy=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new zn["a"],n._uid="brushController_"+ay++,Object(p["each"])($y,(function(e,t){this._handlers[t]=Object(p["bind"])(e,this)}),n),n}return Object(Pe["a"])(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||Nc(t,ny,this._uid),Object(p["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(p["merge"])(Object(p["clone"])(oy),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Rc(e,ny,this._uid),Object(p["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(p["each"])(e,(function(e){t[e.panelId]=Object(p["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(p["map"])(e,(function(e){return Object(p["merge"])(Object(p["clone"])(oy),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new S(n,e,s,a).add(l).update(l).remove(u).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)r[t]=n[a];else{var l=r[t]=null!=a?(n[a].__brushOption=s,n[a]):uy(i,ly(i,s));dy(i,l)}}function u(e){n[e]!==o&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),my(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ti["a"]);function ly(e,t){var n=qy[t.brushType].createCover(e,t);return n.__brushOption=t,fy(n,t),e.group.add(n),n}function uy(e,t){var n=hy(t);return n.endCreating&&(n.endCreating(e,t),fy(t,t.__brushOption)),t}function cy(e,t){var n=t.__brushOption;hy(t).updateCoverShape(e,t,n.range,n)}function fy(e,t){var n=t.z;null==n&&(n=Jv),e.traverse((function(e){e.z=n,e.z2=n}))}function dy(e,t){hy(t).updateCommon(e,t),cy(e,t)}function hy(e){return qy[e.__brushOption.brushType]}function py(e,t,n){var r,i=e._panels;if(!i)return Yv;var o=e._transform;return Object(p["each"])(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function gy(e,t){var n=e._panels;if(!n)return Yv;var r=t.__brushOption.panelId;return null!=r?n[r]:Yv}function my(e){var t=e._covers,n=t.length;return Object(p["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function vy(e,t){var n=Object(p["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(p["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function yy(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1],a=Qv(i*i+o*o,.5);return a>ey}function by(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function _y(e,t,n,r){var i=new zn["a"];return i.add(new Xn["a"]({name:"main",style:Sy(n),silent:!0,draggable:!0,cursor:"move",drift:Object(p["curry"])(Ty,e,t,i,["n","s","w","e"]),ondragend:Object(p["curry"])(vy,t,{isEnd:!0})})),Object(p["each"])(r,(function(n){i.add(new Xn["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(p["curry"])(Ty,e,t,i,n),ondragend:Object(p["curry"])(vy,t,{isEnd:!0})}))})),i}function wy(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=Zv(i,ty),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],f=n[1][1],d=c-o+i/2,h=f-o+i/2,p=c-a,g=f-s,m=p+i,v=g+i;Oy(e,t,"main",a,s,p,g),r.transformable&&(Oy(e,t,"w",l,u,o,v),Oy(e,t,"e",d,u,o,v),Oy(e,t,"n",l,u,m,o),Oy(e,t,"s",l,h,m,o),Oy(e,t,"nw",l,u,o,o),Oy(e,t,"ne",d,u,o,o),Oy(e,t,"sw",l,h,o,o),Oy(e,t,"se",d,h,o,o))}function xy(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Sy(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(p["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?Ey(e,n[0]):Ay(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?iy[o]+"-resize":null})}))}function Oy(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(Iy(Py(e,t,[[r,i],[r+o,i+a]])))}function Sy(e){return Object(p["defaults"])({strokeNoScale:!0},e.brushStyle)}function Cy(e,t,n,r){var i=[Xv(e,n),Xv(t,r)],o=[Zv(e,n),Zv(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function ky(e){return $n["getTransform"](e.group)}function Ey(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=$n["transformDirection"](n[t],ky(e));return r[i]}function Ay(e,t){var n=[Ey(e,t[0]),Ey(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Ty(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=My(t,i,o);Object(p["each"])(r,(function(e){var t=ry[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(Cy(s[0][0],s[1][0],s[0][1],s[1][1])),dy(t,n),vy(t,{isEnd:!1})}function Dy(e,t,n,r){var i=t.__brushOption.range,o=My(e,n,r);Object(p["each"])(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),dy(e,t),vy(e,{isEnd:!1})}function My(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Py(e,t,n){var r=gy(e,t);return r&&r!==Yv?r.clipPath(n,e._transform):Object(p["clone"])(n)}function Iy(e){var t=Xv(e[0][0],e[1][0]),n=Xv(e[0][1],e[1][1]),r=Zv(e[0][0],e[1][0]),i=Zv(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function jy(e,t,n){if(e._brushType&&!zy(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=py(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===Yv||s.panelId===o.panelId)&&qy[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function Ly(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Ny(e,t,n){return e.childOfName("main").contain(t,n)}function Ry(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),yy(e)||o){if(a&&!o){"single"===s.brushMode&&my(e);var l=Object(p["clone"])(s);l.brushType=By(l.brushType,a),l.panelId=a===Yv?null:a.panelId,o=e._creatingCover=ly(e,l),e._covers.push(o)}if(o){var u=qy[By(e._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(Py(e,o,e._track)),r&&(uy(e,o),u.updateCommon(e,o)),cy(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&py(e,t,n)&&my(e)&&(i={isEnd:r,removeOnClick:!0});return i}function By(e,t){return"auto"===e?t.defaultBrushType:e}var $y={mousedown:function(e){if(this._dragging)Fy(this,e);else if(!e.target||!e.target.draggable){Ly(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=py(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(jy(this,e,r),this._dragging){Ly(e);var i=Ry(this,e,r,!1);i&&vy(this,i)}},mouseup:function(e){Fy(this,e)}};function Fy(e,t){if(e._dragging){Ly(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=Ry(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&vy(e,o)}}function zy(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var qy={lineX:Uy(0),lineY:Uy(1),rect:{createCover:function(e,t){function n(e){return e}return _y({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=by(e);return Cy(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){wy(e,t,n,r)},updateCommon:xy,contain:Ny},polygon:{createCover:function(e,t){var n=new zn["a"];return n.add(new Yn["a"]({name:"main",style:Sy(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Gn["a"]({name:"main",draggable:!0,drift:Object(p["curry"])(Dy,e,t),ondragend:Object(p["curry"])(vy,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Py(e,t,n)})},updateCommon:xy,contain:Ny}};function Uy(e){return{createCover:function(t,n){return _y({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=by(t),r=Xv(n[0][e],n[1][e]),i=Zv(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=gy(t,n);if(a!==Yv&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),wy(t,n,l,i)},updateCommon:xy,contain:Ny}}var Hy=sy;function Vy(e){return e=Gy(e),function(t){return $n["clipPointsByRect"](t,e)}}function Wy(e,t){return e=Gy(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function Ky(e,t,n){var r=Gy(e);return function(e,i){return r.contain(i[0],i[1])&&!Gc(e,t,n)}}function Gy(e){return _t["a"].create(e)}var Yy=["axisLine","axisTickLabel","axisName"],Xy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Hy(n.getZr())).on("brush",p["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!Zy(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new zn["a"],this.group.add(this._axisGroup),e.get("show")){var o=Jy(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),f=p["extend"]({strokeContainThreshold:l},c),d=new Bu(e,f);p["each"](Yy,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(f,s,e,o,l,n),$n["groupTransition"](i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=_t["a"].create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Vy(u),isTargetByCursor:Ky(u,o,r),getLinearBrushOtherExtent:Wy(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Qy(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=p["map"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(c["a"]);function Zy(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Qy(e){var t=e.axis;return p["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Jy(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var eb=Xy,tb={type:"axisAreaSelect",event:"axisAreaSelected"};function nb(e){e.registerAction(tb,(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 rb={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ib(e){e.registerComponentView(Sv),e.registerComponentModel(kv),e.registerCoordinateSystem("parallel",Wv),e.registerPreprocessor(vv),e.registerComponentModel(Gv),e.registerComponentView(eb),ou(e,"parallel",Gv,rb),nb(e)}function ob(e){b(ib),e.registerChartView(uv),e.registerSeriesModel(hv),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,mv)}var ab=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}(),sb=function(e){function t(t){return e.call(this,t)||this}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new ab},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(){Object(gn["r"])(this)},t.prototype.downplay=function(){Object(gn["C"])(this)},t}(Nr["b"]),lb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),f=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(t){var n=new sb,r=Object(L["a"])(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,u,d,h,g,m,v,y=t.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),O=x.get("localX"),S=x.get("localY"),C=t.node2.getLayout(),k=t.node2.getModel(),E=k.get("localX"),A=k.get("localY"),T=t.getLayout();n.shape.extent=Math.max(1,T.dy),n.shape.orient=f,"vertical"===f?(i=(null!=O?O*s:w.x)+T.sy,a=(null!=S?S*l:w.y)+w.dy,u=(null!=E?E*s:C.x)+T.ty,d=null!=A?A*l:C.y,h=i,g=a*(1-_)+d*_,m=u,v=a*_+d*(1-_)):(i=(null!=O?O*s:w.x)+w.dx,a=(null!=S?S*l:w.y)+T.sy,u=null!=E?E*s:C.x,d=(null!=A?A*l:C.y)+T.ty,h=i*(1-_)+u*_,g=a,m=i*_+u*(1-_),v=d),n.setShape({x1:i,y1:a,x2:u,y2:d,cpx1:h,cpy1:g,cpx2:m,cpy2:v}),n.useStyle(b.getItemStyle()),ub(n.style,f,t);var D=""+y.get("value"),M=Object(hn["e"])(y,"edgeLabel");Object(hn["g"])(n,M,{labelFetcher:{getFormattedLabel:function(t,n,r,i,o,a){return e.getFormattedLabel(t,n,"edge",i,Object(p["retrieve3"])(o,M.normal&&M.normal.get("formatter"),D),a)}},labelDataIndex:t.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var P=y.getModel("emphasis");Object(gn["I"])(n,y,"lineStyle",(function(e){var n=e.getItemStyle();return ub(n,f,t),n})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var I=P.get("focus");Object(gn["J"])(n,"adjacency"===I?t.getAdjacentDataIndices():"trajectory"===I?t.getTrajectoryDataIndices():I,P.get("blurScope"),P.get("disabled"))})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),f=r.get(["itemStyle","borderRadius"])||0,d=new Xn["a"]({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:f},style:r.getModel("itemStyle").getItemStyle(),z2:10});Object(hn["g"])(d,Object(hn["e"])(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Object(gn["I"])(d,r),o.add(d),u.setItemGraphicEl(t.dataIndex,d),Object(L["a"])(d).dataType="node";var h=c.get("focus");Object(gn["J"])(d,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,i){var o=u.getItemModel(i);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(cb(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(f["a"]);function ub(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(p["isString"])(r)&&Object(p["isString"])(i)&&(e.fill=new nr["a"](0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}function cb(e,t,n){var r=new Xn["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Fn["c"](r,{shape:{width:e.width+20}},t,n),r}var fb=lb,db=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new _["a"](i[a],this,t));if(r&&n){var s=Am(r,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var o=i.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,r=n[e];r.localX=t[0],r.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 r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return Object(yc["c"])("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return Object(yc["c"])("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;r.value=o}return r},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}(h["b"]),hb=db;function pb(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=gb(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;vb(l);var c=p["filter"](l,(function(e){return 0===e.getLayout().value})),f=0!==c.length?0:e.get("layoutIterations"),d=e.get("orient"),h=e.get("nodeAlign");mb(l,u,n,r,o,a,f,d,h)}))}function gb(e,t){return dn["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mb(e,t,n,r,i,o,a,s,l){yb(e,t,n,i,o,s,l),Ob(e,t,o,i,r,a,s),Nb(e,s)}function vb(e){p["each"](e,(function(e){var t=jb(e.outEdges,Ib),n=jb(e.inEdges,Ib),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function yb(e,t,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&u.push(e[d]);var h=-1;while(u.length){for(var p=0;p<u.length;p++){var g=u[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>h&&(h=m.depth),g.setLayout({depth:v?m.depth:f},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],_=t.indexOf(b);s[_]=0;var w=b.node2,x=e.indexOf(w);0===--l[x]&&c.indexOf(w)<0&&c.push(w)}}++f,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var O=h>f-1?h:f-1;a&&"left"!==a&&_b(e,a,o,O);var S="vertical"===o?(i-n)/O:(r-n)/O;xb(e,S,o)}function bb(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function _b(e,t,n,r){if("right"===t){var i=[],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 u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}p["each"](e,(function(e){bb(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&wb(e,r)}function wb(e,t){p["each"](e,(function(e){bb(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function xb(e,t,n){p["each"](e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function Ob(e,t,n,r,i,o,a){var s=Sb(e,a);Cb(s,t,n,r,i,a),kb(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,Eb(s,l,a),kb(s,i,n,r,a),Lb(s,l,a),kb(s,i,n,r,a)}function Sb(e,t){var n=[],r="vertical"===t?"y":"x",i=Object(j["j"])(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),p["each"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function Cb(e,t,n,r,i,o){var a=1/0;p["each"](e,(function(e){var t=e.length,s=0;p["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l<a&&(a=l)})),p["each"](e,(function(e){p["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))}))})),p["each"](t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function kb(e,t,n,r,i){var o="vertical"===i?"x":"y";p["each"](e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var u=0,c=e.length,f="vertical"===i?"dx":"dy",d=0;d<c;d++)s=e[d],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[f]+t;var h="vertical"===i?r:n;if(l=u-t-h,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(d=c-2;d>=0;--d)s=e[d],l=s.getLayout()[o]+s.getLayout()[f]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function Eb(e,t,n){p["each"](e.slice().reverse(),(function(e){p["each"](e,(function(e){if(e.outEdges.length){var r=jb(e.outEdges,Ab,n)/jb(e.outEdges,Ib);if(isNaN(r)){var i=e.outEdges.length;r=i?jb(e.outEdges,Tb,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-Pb(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-Pb(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Ab(e,t){return Pb(e.node2,t)*e.getValue()}function Tb(e,t){return Pb(e.node2,t)}function Db(e,t){return Pb(e.node1,t)*e.getValue()}function Mb(e,t){return Pb(e.node1,t)}function Pb(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Ib(e){return e.getValue()}function jb(e,t,n){var r=0,i=e.length,o=-1;while(++o<i){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function Lb(e,t,n){p["each"](e,(function(e){p["each"](e,(function(e){if(e.inEdges.length){var r=jb(e.inEdges,Db,n)/jb(e.inEdges,Ib);if(isNaN(r)){var i=e.inEdges.length;r=i?jb(e.inEdges,Mb,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-Pb(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-Pb(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function Nb(e,t){var n="vertical"===t?"x":"y";p["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]}))})),p["each"](e,(function(e){var t=0,n=0;p["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),p["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function Rb(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,o=-1/0;p["each"](n,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>o&&(o=t)})),p["each"](n,(function(t){var n=new Lp({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),r=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",r),t.setVisual("style",{fill:r}))}))}r.length&&p["each"](r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function Bb(e){e.registerChartView(fb),e.registerSeriesModel(hb),e.registerLayout(pb),e.registerVisual(Rb),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 $b=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],f=l[1-u],d=[i,o],h=d[u].get("type"),g=d[1-u].get("type"),m=e.data;if(m&&r){var v=[];p["each"](m,(function(e,t){var n;p["isArray"](e)?(n=e.slice(),e.unshift(t)):p["isArray"](e.value)?(n=p["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,b=[{name:c,type:D(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:D(g),dimsDef:y.slice()}];return Pl(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:p["curry"](fe["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Fb=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 Object(Pe["a"])(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}(h["b"]);Object(p["mixin"])(Fb,$b,!0);var zb=Fb,qb=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=Vb(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Object(Fn["g"])(n),Wb(s,n,r,e)):n=Vb(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},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}(f["a"]),Ub=function(){function e(){}return e}(),Hb=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ub},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(Nr["b"]);function Vb(e,t,n,r,i){var o=e.ends,a=new Hb({shape:{points:i?Kb(o,r,e):o}});return Wb(e,a,t,n,i),a}function Wb(e,t,n,r,i){var o=n.hostModel,a=$n[i?"initProps":"updateProps"];a(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Object(gn["I"])(t,s),Object(gn["J"])(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Kb(e,t,n){return p["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var Gb=qb,Yb=p["each"];function Xb(e){var t=Zb(e);Yb(t,(function(e){var t=e.seriesModels;t.length&&(Qb(e),Yb(t,(function(t,n){Jb(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Zb(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=p["indexOf"](n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}function Qb(e){var t,n=e.axis,r=e.seriesModels,i=r.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;Yb(r,(function(e){l=Math.max(l,e.getData().count())}));var u=n.getExtent();t=Math.abs(u[1]-u[0])/l}Yb(r,(function(e){var n=e.get("boxWidth");p["isArray"](n)||(n=[n,n]),s.push([Object(Fe["q"])(n[0],t)||0,Object(Fe["q"])(n[1],t)||0])}));var c=.8*t-2,f=c/i*.3,d=(c-f*(i-1))/i,h=d/2-c/2;Yb(r,(function(e,t){a.push(h),h+=f+d,o.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}function Jb(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var f=0;f<i.count();f++){var d=i.get(u,f),h=b(d,c[2],f),p=b(d,c[0],f),g=b(d,c[1],f),m=b(d,c[3],f),v=b(d,c[4],f),y=[];_(y,g,!1),_(y,m,!0),y.push(p,g,v,m),w(y,p),w(y,v),w(y,h),i.setItemLayout(f,{initBaseline:h[s],ends:y})}function b(e,n,o){var l,u=i.get(n,o),c=[];return c[a]=e,c[s]=u,isNaN(e)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[a]+=t),l}function _(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function w(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}function e_(e,t){t=t||{};for(var n=[],r=[],i=t.boundIQR,o="none"===i||0===i,a=0;a<e.length;a++){var s=Object(Fe["c"])(e[a].slice()),l=Object(Fe["r"])(s,.25),u=Object(Fe["r"])(s,.5),c=Object(Fe["r"])(s,.75),f=s[0],d=s[s.length-1],h=(null==i?1.5:i)*(c-l),g=o?f:Math.max(f,l-h),m=o?d:Math.min(d,c+h),v=t.itemNameFormatter,y=Object(p["isFunction"])(v)?v({value:a}):Object(p["isString"])(v)?v.replace("{value}",a+""):a+"";n.push([y,g,l,u,c,m]);for(var b=0;b<s.length;b++){var _=s[b];if(_<g||_>m){var w=[y,_];r.push(w)}}}return{boxData:n,outliers:r}}var t_={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==k["c"]){var n="";0,Object(vp["c"])(n)}var r=e_(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function n_(e){e.registerSeriesModel(zb),e.registerChartView(Gb),e.registerLayout(Xb),e.registerTransform(t_)}var r_=["color","borderColor"],i_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){$n["traverseElements"](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,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&l_(s,a))return;var l=s_(a,n,!0);Fn["c"](l,{shape:{points:a.ends}},e,n),u_(l,t,n,i),r.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&l_(s,c)?r.remove(u):(u?(Fn["h"](u,{shape:{points:c.ends}},e,a),Object(Fn["g"])(u)):u=s_(c,a),u_(u,t,a,i),r.add(u),t.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),h_(e,this.group);var t=e.get("clip",!0)?is(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=r.getItemLayout(n),a=s_(o,n);u_(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){h_(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}(f["a"]),o_=function(){function e(){}return e}(),a_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new o_},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}(Nr["b"]);function s_(e,t,n){var r=e.ends;return new a_({shape:{points:n?c_(r,e):r},z2:100})}function l_(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function u_(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Object(gn["I"])(e,i)}function c_(e,t){return p["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var f_=function(){function e(){}return e}(),d_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(Pe["a"])(t,e),t.prototype.getDefaultShape=function(){return new f_},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(Nr["b"]);function h_(e,t,n,r){var i=e.getData(),o=i.getLayout("largePoints"),a=new d_({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new d_({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new d_({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),p_(1,a,e,i),p_(-1,s,e,i),p_(0,l,e,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function p_(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(r_);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var g_=i_,m_=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 Object(Pe["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.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}(h["b"]);Object(p["mixin"])(m_,$b,!0);var v_=m_;function y_(e){e&&p["isArray"](e.series)&&p["each"](e.series,(function(e){p["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var b_=["itemStyle","borderColor"],__=["itemStyle","borderColor0"],w_=["itemStyle","borderColorDoji"],x_=["itemStyle","color"],O_=["itemStyle","color0"],S_={seriesType:"candlestick",plan:Object(nt["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?x_:O_)}function r(e,t){return t.get(0===e?w_:e>0?b_:__)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(e,t){var i;while(null!=(i=e.next())){var o=t.getItemModel(i),a=t.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=t.ensureUniqueItemVisual(i,"style");Object(p["extend"])(l,s)}}}}}},C_=S_,k_={seriesType:"candlestick",plan:Object(nt["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=A_(e,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Object(p["map"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?g:h};function h(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var h=l.get(s,a),p=l.get(u,a),g=l.get(c,a),m=l.get(f,a),v=l.get(d,a),y=Math.min(p,g),b=Math.max(p,g),_=E(y,h),w=E(b,h),x=E(m,h),O=E(v,h),S=[];A(S,w,0),A(S,_,1),S.push(D(O),D(w),D(x),D(_));var C=n.getItemModel(a),k=!!C.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:E_(l,a,p,g,c,k),initBaseline:p>g?w[o]:_[o],ends:S,brushRect:T(m,v,h)})}function E(e,n){var r=[];return r[i]=n,r[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function A(e,t,n){var o=t.slice(),a=t.slice();o[i]=Object($n["subPixelOptimize"])(o[i]+r/2,1,!1),a[i]=Object($n["subPixelOptimize"])(a[i]-r/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=E(e,n),s=E(t,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function D(e){return e[i]=Object($n["subPixelOptimize"])(e[i],1),e}}function g(n,r){var a,l,h=ot(4*n.count),p=0,g=[],m=[],v=r.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),_=v.get(u,l),w=v.get(c,l),x=v.get(f,l),O=v.get(d,l);isNaN(b)||isNaN(x)||isNaN(O)?(h[p++]=NaN,p+=3):(h[p++]=E_(v,l,_,w,c,y),g[i]=b,g[o]=x,a=t.dataToPoint(g,null,m),h[p++]=a?a[0]:NaN,h[p++]=a?a[1]:NaN,g[o]=O,a=t.dataToPoint(g,null,m),h[p++]=a?a[1]:NaN)}r.setLayout("largePoints",h)}}};function E_(e,t,n,r,i,o){var a;return a=n>r?-1:n<r?1:o?0:t>0?e.get(i,t-1)<=r?1:-1:1,a}function A_(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Object(Fe["q"])(Object(p["retrieve2"])(e.get("barMaxWidth"),i),i),a=Object(Fe["q"])(Object(p["retrieve2"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?Object(Fe["q"])(s,i):Math.max(Math.min(i/2,o),a)}var T_=k_;function D_(e){e.registerChartView(g_),e.registerSeriesModel(v_),e.registerPreprocessor(y_),e.registerVisual(C_),e.registerLayout(T_)}function M_(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 P_=function(e){function t(t,n){var r=e.call(this)||this,i=new Ra(t,n),o=new zn["a"];return r.add(i),r.add(o),r.updateData(t,n),r}return Object(Pe["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=Object(pn["a"])(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*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(),i.add(a)}M_(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}M_(n,e)},t.prototype.highlight=function(){Object(gn["r"])(this)},t.prototype.downplay=function(){Object(gn["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=Object(pn["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(e){e.setStyle("fill",u)}));var f=Object(pn["b"])(e.getItemVisual(t,"symbolOffset"),s);f&&(i.x=f[0],i.y=f[1]);var d=e.getItemVisual(t,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var h={};h.showEffectOn=r.get("showEffectOn"),h.rippleScale=o.get(["rippleEffect","scale"]),h.brushType=o.get(["rippleEffect","brushType"]),h.period=1e3*o.get(["rippleEffect","period"]),h.effectOffset=t/e.count(),h.z=r.getShallow("z")||0,h.zlevel=r.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=o.get(["rippleEffect","color"]),h.rippleNumber=o.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===e&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,Object(gn["J"])(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(zn["a"]),I_=P_,j_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){this._symbolDraw=new qa(I_)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.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 r=e.getData();this.group.dirty();var i=Cs("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=se["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(f["a"]),L_=j_,N_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Me(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}(h["b"]),R_=N_;function B_(e){e.registerChartView(L_),e.registerSeriesModel(R_),e.registerLayout(Cs("effectScatter"))}var $_=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return Object(Pe["a"])(t,e),t.prototype.createLine=function(e,t,n){return new im(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),i=r.get("symbolSize"),o=r.get("symbol");p["isArray"](i)||(i=[i,i]);var a=e.getItemVisual(t,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(pn["a"])(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(e,r,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),u=p["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=p["isFunction"](u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var o=this,a=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));r||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return le["dist"](e.__p1,e.__cp1)+le["dist"](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,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=$r["h"],l=$r["i"];o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var u=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),c=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*le["dist"](a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*le["dist"](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}(zn["a"]),F_=$_,z_=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return Object(Pe["a"])(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new Yn["a"]({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};Fn["h"](i,o,r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=o,Object(gn["J"])(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(zn["a"]),q_=z_,U_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(Pe["a"])(t,e),t.prototype.createLine=function(e,t,n){return new q_(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],a=t[i];r+=le["dist"](o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}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,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,i-1);for(o=s;o>=0;o--)if(r[o]<=t)break;o=Math.min(o,i-2)}else{for(o=a;o<i;o++)if(r[o]>t)break;o=Math.min(o-1,i-2)}var l=(t-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var f=e.__t<1?c[0]-u[0]:u[0]-c[0],d=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(d,f)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(F_),H_=U_,V_=n("9680"),W_=n("68ab"),K_=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),G_=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(Pe["a"])(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 K_},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){e.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(e.moveTo(s,l),i>0){var f=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;e.quadraticCurveTo(f,d,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],f=1;f<l;f++){var d=r[s++],h=r[s++];if(V_["a"](u,c,d,h,o,e,t))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],d=r[s++],h=r[s++];if(i>0){var p=(u+d)/2-(c-h)*i,g=(c+h)/2-(d-u)*i;if(W_["a"](u,c,p,g,d,h,o,e,t))return a}else if(V_["a"](u,c,d,h,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),o=Math.max(l,o),i=Math.min(u,i),a=Math.max(u,a)}e=this._rect=new _t["a"](r,i,o,a)}return e},t}(Nr["b"]),Y_=function(){function e(){this.group=new zn["a"]}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],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),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 G_({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Object(L["a"])(e);o.seriesIndex=r.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}(),X_=Y_,Z_={seriesType:"lines",plan:Object(nt["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var f=0,d=[];for(c=i.start;c<i.end;c++){var h=e.getLineCoords(c,a);n&&(s[f++]=h);for(var p=0;p<h;p++)d=t.dataToPoint(a[p],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),m=(h=e.getLineCoords(c,a),[]);if(n)for(var v=0;v<h;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(c,m)}}}}}},Q_=Z_,J_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,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)})),i.updateData(r);var u=e.get("clip",!0)&&is(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),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 r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=Q_.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new X_:new cm(i?r?H_:q_:r?F_:im),this._hasEffet=r,this._isPolyline=i,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}(f["a"]),ew=J_,tw="undefined"===typeof Uint32Array?Array:Uint32Array,nw="undefined"===typeof Float64Array?Array:Float64Array;function rw(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(p["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(p["mergeAll"])([n,e[0],e[1]])})))}var iw=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 Object(Pe["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],rw(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(rw(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(p["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(p["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],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(p["isNumber"])(e[0])){for(var n=e.length,r=new tw(n),i=new nw(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=e[l++];r[a++]=o+t,r[a++]=u;for(var c=0;c<u;c++){var f=e[l++],d=e[l++];i[o++]=f,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new ae(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getItemModel(e),o=i.get("name");if(o)return o;var a=i.get("fromName"),s=i.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Object(yc["c"])("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}(h["b"]),ow=iw;function aw(e){return e instanceof Array||(e=[e,e]),e}var sw={seriesType:"lines",reset:function(e){var t=aw(e.get("symbol")),n=aw(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=aw(n.getShallow("symbol",!0)),i=aw(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},lw=sw;function uw(e){e.registerChartView(ew),e.registerSeriesModel(ow),e.registerLayout(Q_),e.registerVisual(lw)}var cw=256,fw=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=wn["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,f=c.getContext("2d"),d=e.length;c.width=t,c.height=n;for(var h=0;h<d;++h){var p=e[h],g=p[0],m=p[1],v=p[2],y=r(v);f.globalAlpha=y,f.drawImage(a,g-u,m-u)}if(!c.width||!c.height)return c;var b=f.getImageData(0,0,c.width,c.height),_=b.data,w=0,x=_.length,O=this.minOpacity,S=this.maxOpacity,C=S-O;while(w<x){y=_[w+3]/256;var k=4*Math.floor(y*(cw-1));if(y>0){var E=o(y)?s:l;y>0&&(y=y*C+O),_[w++]=E[k],_[w++]=E[k+1],_[w++]=E[k+2],_[w++]=E[k+3]*y*256}else w+=4}return f.putImageData(b,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=wn["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}(),dw=fw;function hw(e,t,n){var r=e[1]-e[0];t=p["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){var r;for(r=o;r<i;r++){var a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function pw(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 gw(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var mw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):gw(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(gw(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){$n["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,l,u=e.coordinateSystem,c=os(u,"cartesian2d");if(c){var f=u.getAxis("x"),d=u.getAxis("y");0,o=f.getBandWidth()+.5,a=d.getBandWidth()+.5,s=f.scale.getExtent(),l=d.scale.getExtent()}for(var h=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=Object(hn["e"])(e),_=e.getModel("emphasis"),w=_.get("focus"),x=_.get("blurScope"),O=_.get("disabled"),S=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],C=n;C<r;C++){var k=void 0,E=p.getItemVisual(C,"style");if(c){var A=p.get(S[0],C),T=p.get(S[1],C);if(isNaN(p.get(S[2],C))||isNaN(A)||isNaN(T)||A<s[0]||A>s[1]||T<l[0]||T>l[1])continue;var D=u.dataToPoint([A,T]);k=new Xn["a"]({shape:{x:D[0]-o/2,y:D[1]-a/2,width:o,height:a},style:E})}else{if(isNaN(p.get(S[1],C)))continue;k=new Xn["a"]({z2:1,shape:u.dataToRect([p.get(S[0],C)]).contentShape,style:E})}if(p.hasItemOption){var M=p.getItemModel(C),P=M.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),m=M.getModel(["blur","itemStyle"]).getItemStyle(),v=M.getModel(["select","itemStyle"]).getItemStyle(),y=M.get(["itemStyle","borderRadius"]),w=P.get("focus"),x=P.get("blurScope"),O=P.get("disabled"),b=Object(hn["e"])(M)}k.shape.r=y;var I=e.getRawValue(C),j="-";I&&null!=I[2]&&(j=I[2]+""),Object(hn["g"])(k,b,{labelFetcher:e,labelDataIndex:C,defaultOpacity:E.opacity,defaultText:j}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=m,k.ensureState("select").style=v,Object(gn["J"])(k,w,x,O),k.incremental=i,i&&(k.states.emphasis.hoverLayer=!0),h.add(k),p.setItemGraphicEl(C,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new dw;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(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),f=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),h=Math.min(l.height+l.y,r.getHeight()),p=d-c,g=h-f,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=f,i.push(r),i})),y=n.getExtent(),b="visualMap.continuous"===n.type?pw(y,n.option.range):hw(y,n.getPieceList(),n.option.selected);s.update(v,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new qn["a"]({style:{width:p,height:g,x:c,y:f,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(f["a"]),vw=mw,yw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){return Me(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ve["a"].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}(h["b"]),bw=yw;function _w(e){e.registerChartView(vw),e.registerSeriesModel(bw)}var ww=["itemStyle","borderWidth"],xw=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ow=new Hn["a"],Sw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:xw[+l],categoryDim:xw[1-+l]};i.diff(o).add((function(e){if(i.hasValue(e)){var t=Nw(i,e),n=Cw(i,e,t,c),o=$w(i,c,n);i.setItemGraphicEl(e,o),r.add(o),Vw(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=Nw(i,e),s=Cw(i,e,a,c),l=qw(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?Fw(n,c,s):n=$w(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),Vw(n,c,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&zw(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var f=e.get("clip",!0)?is(e.coordinateSystem,!1,e):null;return f?r.setClipPath(f):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){zw(r,Object(L["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(f["a"]);function Cw(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};kw(n,o,i,r,d),Aw(e,t,i,o,a,d.boundingLength,d.pxSign,c,r,d),Tw(n,d.symbolScale,u,r,d);var h=d.symbolSize,p=Object(pn["b"])(n.get("symbolOffset"),h);return Dw(n,h,i,o,a,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function kw(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(p["isArray"](s)){var f=[Ew(l,s[0])-u,Ew(l,s[1])-u];f[1]<f[0]&&f.reverse(),o=f[c]}else o=null!=s?Ew(l,s)-u:t?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,t&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:-1}function Ew(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Aw(e,t,n,r,i,o,a,s,l,u){var c,f=l.valueDim,d=l.categoryDim,h=Math.abs(n[d.wh]),g=e.getItemVisual(t,"symbolSize");c=p["isArray"](g)?g.slice():null==g?["100%","100%"]:[g,g],c[d.index]=Object(Fe["q"])(c[d.index],h),c[f.index]=Object(Fe["q"])(c[f.index],r?h:Math.abs(o)),u.symbolSize=c;var m=u.symbolScale=[c[0]/s,c[1]/s];m[f.index]*=(l.isHorizontal?-1:1)*a}function Tw(e,t,n,r,i){var o=e.get(ww)||0;o&&(Ow.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Ow.updateTransform(),o/=Ow.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function Dw(e,t,n,r,i,o,a,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,g=f.pxSign,m=Math.max(t[h.index]+s,0),v=m;if(r){var y=Math.abs(l),b=p["retrieve"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=Object(Fe["q"])(b,t[h.index]),x=Math.max(m+2*w,0),O=_?0:2*w,S=Object(Fe["k"])(r),C=S?r:Ww((y+O)/x),k=y-C*m;w=k/2/(_?C:Math.max(C-1,1)),x=m+2*w,O=_?0:2*w,S||"fixed"===r||(C=u?Ww((Math.abs(u)+O)/x):0),v=C*x-O,f.repeatTimes=C,f.symbolMargin=w}var E=g*(v/2),A=f.pathPosition=[];A[d.index]=n[d.wh]/2,A[h.index]="start"===a?E:"end"===a?l-E:l/2,o&&(A[0]+=o[0],A[1]+=o[1]);var T=f.bundlePosition=[];T[d.index]=n[d.xy],T[h.index]=n[h.xy];var D=f.barRectShape=p["extend"]({},n);D[h.wh]=g*Math.max(Math.abs(n[h.wh]),Math.abs(A[h.index]+E)),D[d.wh]=n[d.wh];var M=f.clipShape={};M[d.xy]=-n[d.xy],M[d.wh]=c.ecSize[d.wh],M[h.xy]=0,M[h.wh]=n[h.wh]}function Mw(e){var t=e.symbolPatternSize,n=Object(pn["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Pw(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=o[t.valueDim.index]+a+2*n.symbolMargin;for(Uw(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c<u?Hw(e,null,p(c),n,r):Hw(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),c++}));c<u;c++){var d=Mw(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var h=p(c);Hw(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[l.index]=f*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Iw(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?Hw(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=Mw(n),i.add(o),Hw(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,r))}function jw(e,t,n){var r=p["extend"]({},t.barRectShape),i=e.__pictorialBarRect;i?Hw(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Xn["a"]({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function Lw(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=p["extend"]({},n.clipShape),a=t.valueDim,s=n.animationModel,l=n.dataIndex;if(i)Fn["h"](i,{shape:o},s,l);else{o[a.wh]=0,i=new Xn["a"]({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],$n[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function Nw(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Rw,n.isAnimationEnabled=Bw,n}function Rw(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Bw(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $w(e,t,n,r){var i=new zn["a"],o=new zn["a"];return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Pw(i,t,n):Iw(i,t,n),jw(i,n,r),Lw(i,t,n,r),i.__pictorialShapeStr=qw(e,n),i.__pictorialSymbolMeta=n,i}function Fw(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;Fn["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Pw(e,t,n,!0):Iw(e,t,n,!0),jw(e,n,!0),Lw(e,t,n,!0)}function zw(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];Uw(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),p["each"](o,(function(e){Fn["e"](e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function qw(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Uw(e,t,n){p["each"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function Hw(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&$n[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function Vw(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");Uw(e,(function(e){if(e instanceof qn["a"]){var t=e.style;e.useStyle(p["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,Object(hn["g"])(g,Object(hn["e"])(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:Ia(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Object(gn["J"])(e,c,f,o.get("disabled"))}function Ww(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Kw=Sw,Gw=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 Object(Pe["a"])(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=Object(Ps["d"])(Ms.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ms),Yw=Gw;function Xw(e){e.registerChartView(Kw),e.registerSeriesModel(Yw),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(p["curry"])(gt,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,mt("pictorialBar"))}var Zw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var f=new S(this._layersSeries||[],a,c,c),d=[];function h(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,f=[],h=[],p=a[n].indices,g=0;g<p.length;g++){var m=r.getItemLayout(p[g]),v=m.x,y=m.y0,b=m.y;f.push(v,y),h.push(v,y+b),u=r.getItemVisual(p[g],"style")}var _=r.getItemLayout(p[0]),w=e.getModel("label"),x=w.get("margin"),O=e.getModel("emphasis");if("add"===t){var S=d[n]=new zn["a"];c=new ts({shape:{points:f,stackedOnPoints:h,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),e.isAnimationEnabled()&&c.setClipPath(Qw(c.getBoundingRect(),e,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),d[n]=S,Fn["h"](c,{shape:{points:f,stackedOnPoints:h}},e),Object(Fn["g"])(c)}Object(hn["g"])(c,Object(hn["e"])(e),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-x,C.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Object(gn["I"])(c,e),Object(gn["J"])(c,O.get("focus"),O.get("blurScope"),O.get("disabled"))}else o.remove(l[n])}f.add(Object(p["bind"])(h,this,"add")).update(Object(p["bind"])(h,this,"update")).remove(Object(p["bind"])(h,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(f["a"]);function Qw(e,t,n){var r=new Xn["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Fn["c"](r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var Jw=Zw,ex=2,tx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jl(p["bind"](this.getData,this),p["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=Object(j["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[u,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",j["b"]).models[0],r=n.get("type"),i=p["filter"](e.data,(function(e){return void 0!==e[2]})),o=this.fixData(i||[]),a=[],s=this.nameMap=p["createHashMap"](),l=0,u=0;u<o.length;++u)a.push(o[u][ex]),s.get(o[u][ex])||(s.set(o[u][ex],l),l++);var c=he(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:D(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,f=new ae(c,this);return f.initData(o),f},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=Object(j["j"])(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){p["isArray"](e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,f=o[l].indices.length,d=0;d<f;++d){var h=i.get(e[0],o[l].indices[d]),g=Math.abs(h-t);g<=u&&(r=h,u=g,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=r.getName(e),o=r.get(r.mapDimension("value"),e);return Object(yc["c"])("nameValue",{name:i,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}(h["b"]),nx=tx;function rx(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=e.get("boundaryGap"),a=n.getAxis();if(r.boundaryGap=o,"horizontal"===a.orient){o[0]=Fe["q"](o[0],i.height),o[1]=Fe["q"](o[1],i.height);var s=i.height-o[0]-o[1];ix(t,e,s)}else{o[0]=Fe["q"](o[0],i.width),o[1]=Fe["q"](o[1],i.width);var l=i.width-o[0]-o[1];ix(t,e,l)}t.setLayout("layoutInfo",r)}))}function ix(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=p["map"](o,(function(t){return p["map"](t.indices,(function(t){var n=i.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),u=ox(l),c=u.y0,f=n/u.max,d=o.length,h=o[0].indices.length,g=0;g<h;++g){r=c[g]*f,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:l[0][g][0],y0:r,y:l[0][g][1]*f});for(var m=1;m<d;++m)r+=l[m-1][g][1]*f,e.setItemLayout(o[m].indices[g],{layerIndex:m,x:l[m][g][0],y0:r,y:l[m][g][1]*f})}}function ox(e){for(var t=e.length,n=e[0].length,r=[],i=[],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),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var f=r[c]+i[c];f>o&&(o=f)}return{y0:i,max:o}}function ax(e){e.registerChartView(Jw),e.registerSeriesModel(nx),e.registerLayout(rx),e.registerProcessor(xl("themeRiver"))}var sx=2,lx=4,ux=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=sx,o.textConfig={inside:!0},Object(L["a"])(o).seriesIndex=n.seriesIndex;var a=new Un["a"]({z2:lx,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return Object(Pe["a"])(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Object(L["a"])(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=p["extend"]({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var f=t.getVisual("decal");f&&(c.decal=Object(Hf["a"])(f,i));var d=qs(a.getModel("itemStyle"),u,!0);p["extend"](u,d),p["each"](gn["g"],(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=qs(n,u);r&&(t.shape=r)})),e?(o.setShape(u),o.shape.r=l.r0,Fn["c"](o,{shape:{r:l.r}},n,t.dataIndex)):(Fn["h"](o,{shape:u},n),Object(Fn["g"])(o)),o.useStyle(c),this._updateLabel(n);var h=a.getShallow("cursor");h&&o.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var g=s.get("focus"),m="ancestor"===g?t.getAncestorsIndices():"descendant"===g?t.getDescendantIndices():g;Object(gn["J"])(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),f=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,h=r.get("show")&&!(null!=d&&Math.abs(o)<d);function g(e,t){var n=e.get(t);return null==n?r.get(t):n}c.ignore=!h,p["each"](gn["a"],(function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),h="normal"===r,m=h?c:c.ensureState(r),v=e.getFormattedLabel(f,r);h&&(v=v||t.node.name),m.style=Object(hn["c"])(d,{},null,"normal"!==r,!0),v&&(m.style.text=v);var y=d.get("show");null==y||h||(m.ignore=!y);var b,_=g(d,"position"),w=h?u:u.states[r],x=w.style.fill;w.textConfig={outsideFill:"inherit"===d.get("color")?x:null,inside:"outside"!==_};var O=g(d,"distance")||0,S=g(d,"align"),C=g(d,"rotate"),k=.5*Math.PI,E=1.5*Math.PI,A=Object(Br["a"])("tangential"===C?Math.PI/2-a:a),T=A>k&&!Object(Fe["l"])(A-k)&&A<E;"outside"===_?(b=i.r+O,S=T?"right":"left"):S&&"center"!==S?"left"===S?(b=i.r0+O,S=T?"right":"left"):"right"===S&&(b=i.r-O,S=T?"left":"right"):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,S="center"),m.style.align=S,m.style.verticalAlign=g(d,"verticalAlign")||"middle",m.x=b*s+i.cx,m.y=b*l+i.cy;var D=0;"radial"===C?D=Object(Br["a"])(-a)+(T?Math.PI:0):"tangential"===C?D=Object(Br["a"])(Math.PI/2-a)+(T?Math.PI:0):p["isNumber"](C)&&(D=C*Math.PI/180),m.rotation=Object(Br["a"])(D)})),c.dirtyStyle()},t}(Wn["a"]),cx=ux,fx="sunburstRootToNode",dx="sunburstHighlight",hx="sunburstUnhighlight";function px(e){e.registerAction({type:fx,update:"updateView"},(function(e,t){function n(t,n){var r=Sh(e,[fx],t);if(r){var i=t.getViewRoot();i&&(e.direction=kh(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:dx,update:"none"},(function(e,t,n){function r(t){var n=Sh(e,[dx],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(p["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},r),n.dispatchAction(Object(p["extend"])(e,{type:"highlight"}))})),e.registerAction({type:hx,update:"updateView"},(function(e,t,n){e=Object(p["extend"])({},e),n.dispatchAction(Object(p["extend"])(e,{type:"downplay"}))}))}var gx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var f=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function r(n,r){var i=null==n?null:e[n],o=null==r?null:t[r];h(i,o)}0===e.length&&0===t.length||new S(t,e,n,n).add(r).update(r).remove(p["curry"](r,null)).execute()}function h(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),o.setItemGraphicEl(r.dataIndex,i.piece)):g(i);else if(r){var s=new cx(r,e,t,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function g(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function m(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new cx(r,e,t,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}d(c,f),m(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Object(Qe["k"])(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:fx,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="sunburst",t}(f["a"]),mx=gx,vx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(Pe["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};yx(n);var r=this._levelModels=p["map"](e.levels||[],(function(e){return new _["a"](e,this,t)}),this),i=Oh.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=Eh(r,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(){Fh(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}(h["b"]);function yx(e){var t=0;p["each"](e.children,(function(e){yx(e);var n=e.value;p["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;p["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),p["isArray"](e.value)?e.value[0]=n:e.value=n}var bx=vx,_x=Math.PI/180;function wx(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");p["isArray"](r)||(r=[0,r]),p["isArray"](t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Object(Fe["q"])(t[0],i),l=Object(Fe["q"])(t[1],o),u=Object(Fe["q"])(r[0],a/2),c=Object(Fe["q"])(r[1],a/2),f=-e.get("startAngle")*_x,d=e.get("minAngle")*_x,h=e.getData().tree.root,g=e.getViewRoot(),m=g.depth,v=e.get("sort");null!=v&&xx(g,v);var y=0;p["each"](g.children,(function(e){!isNaN(e.getValue())&&y++}));var b=g.getValue(),_=Math.PI/(b||y)*2,w=g.depth>0,x=g.height-(w?-1:1),O=(c-u)/(x||1),S=e.get("clockwise"),C=e.get("stillShowZeroSum"),k=S?1:-1,E=function(t,n){if(t){var r=n;if(t!==h){var i=t.getValue(),o=0===b&&C?_:i*_;o<d&&(o=d),r=n+k*o;var c=t.depth-m-(w?-1:1),f=u+O*c,g=u+O*(c+1),v=e.getLevelModel(t);if(v){var y=v.get("r0",!0),x=v.get("r",!0),A=v.get("radius",!0);null!=A&&(y=A[0],x=A[1]),null!=y&&(f=Object(Fe["q"])(y,a/2)),null!=x&&(g=Object(Fe["q"])(x,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:S,cx:s,cy:l,r0:f,r:g})}if(t.children&&t.children.length){var T=0;p["each"](t.children,(function(e){T+=E(e,n+T)}))}return r-n}};if(w){var A=u,T=u+O,D=2*Math.PI;h.setLayout({angle:D,startAngle:f,endAngle:f+D,clockwise:S,cx:s,cy:l,r0:A,r:T})}E(g,f)}))}function xx(e,t){var n=e.children||[];e.children=Ox(n,t),n.length&&p["each"](e.children,(function(e){xx(e,t)}))}function Ox(e,t){if(p["isFunction"](t)){var n=p["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)})),p["map"](n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}function Sx(e){var t={};function n(e,n,r){var i=e;while(i&&i.depth>1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(p["isString"])(o)&&(o=Object(ue["lift"])(o,(e.depth-1)/(r-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,e,r.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(p["extend"])(s,a)}))}))}function Cx(e){e.registerChartView(mx),e.registerSeriesModel(bx),e.registerLayout(Object(p["curry"])(wx,"sunburst")),e.registerProcessor(Object(p["curry"])(xl,"sunburst")),e.registerVisual(Sx),px(e)}var kx={color:"fill",borderColor:"stroke"},Ex={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ax=Object(j["o"])(),Tx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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 Me(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=Ax(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(h["b"]),Dx=Tx;function Mx(e,t){return t=t||[0,0],p["map"](["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function Px(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:p["bind"](Mx,e)}}}function Ix(e,t){return t=t||[0,0],p["map"]([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function jx(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:p["bind"](Ix,e)}}}function Lx(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function Nx(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(p["bind"])(Lx,e)}}}function Rx(e,t){return t=t||[0,0],p["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/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 Bx(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:p["bind"](Rx,e)}}}function $x(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 Fx(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(p["hasOwn"])(e,"text")))}function zx(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},Object(p["hasOwn"])(a,"text")&&(o.text=a.text),Object(p["hasOwn"])(a,"rich")&&(o.rich=a.rich),Object(p["hasOwn"])(a,"textFill")&&(o.fill=a.textFill),Object(p["hasOwn"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(p["hasOwn"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(p["hasOwn"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(p["hasOwn"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(p["hasOwn"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(p["hasOwn"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(p["hasOwn"])(a,"textPosition")&&(r.position=a.textPosition),Object(p["hasOwn"])(a,"textOffset")&&(r.offset=a.textOffset),Object(p["hasOwn"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(p["hasOwn"])(a,"textDistance")&&(r.distance=a.textDistance)}return qx(o,e),Object(p["each"])(o.rich,(function(e){qx(e,e)})),{textConfig:r,textContent:i}}function qx(e,t){t&&(t.font=t.textFont||t.font,Object(p["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(p["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(p["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(p["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(p["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(p["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(p["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(p["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(p["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(p["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(p["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(p["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(p["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(p["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(p["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Ux(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";Hx(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(p["each"])(t.rich,(function(e){Hx(e,e)})),r}function Hx(e,t){t&&(Object(p["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(p["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(p["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(p["hasOwn"])(t,"font")&&(e.font=t.font),Object(p["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(p["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(p["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(p["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(p["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(p["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(p["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(p["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(p["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(p["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(p["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(p["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(p["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(p["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(p["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(p["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(p["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(p["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(p["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(p["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(p["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(p["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Vx=n("06ad"),Wx={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Kx=Object(p["keys"])(Wx),Gx=(Object(p["reduce"])(jr["a"],(function(e,t){return e[t]=1,e}),{}),jr["a"].join(", "),["","style","shape","extra"]),Yx=Object(j["o"])();function Xx(e,t,n,r,i){var o=e+"Animation",a=Object(Fn["a"])(e,r,i)||{},s=Yx(t).userDuring;return a.duration>0&&(a.during=s?Object(p["bind"])(aO,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(p["extend"])(a,n[o]),a}function Zx(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=Yx(e),u=t.style;l.userDuring=t.during;var c={},f={};if(cO(e,t,f),lO("shape",t,f),lO("extra",t,f),!o&&s&&(uO(e,t,c),sO("shape",e,t,c),sO("extra",e,t,c),fO(e,t,u,c)),f.style=u,tO(e,f,a),rO(e,t),s)if(o){var d={};Object(p["each"])(Gx,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(p["extend"])(e?d[e]:d,n.enterFrom))}));var h=Xx("enter",e,t,n,i);h.duration>0&&e.animateFrom(d,h)}else nO(e,t,i||0,n,c);Qx(e,t),u?e.dirty():e.markRedraw()}function Qx(e,t){for(var n=Yx(e).leaveToProps,r=0;r<Gx.length;r++){var i=Gx[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=Yx(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(p["extend"])(i?n[i]:n,o.leaveTo))}}function Jx(e,t,n,r){if(e){var i=e.parent,o=Yx(e).leaveToProps;if(o){var a=Xx("update",e,t,n,0);a.done=function(){i.remove(e),r&&r()},e.animateTo(o,a)}else i.remove(e),r&&r()}}function eO(e){return"all"===e}function tO(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function nO(e,t,n,r,i){if(i){var o=Xx("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}function rO(e,t){Object(p["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(p["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof Vf["c"]&&Object(p["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof Nr["b"]&&Object(p["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var iO={},oO={setTransform:function(e,t){return iO.el[e]=t,this},getTransform:function(e){return iO.el[e]},setShape:function(e,t){var n=iO.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=iO.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=iO.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=iO.el.style;if(t)return t[e]},setExtra:function(e,t){var n=iO.el.extra||(iO.el.extra={});return n[e]=t,this},getExtra:function(e){var t=iO.el.extra;if(t)return t[e]}};function aO(){var e=this,t=e.el;if(t){var n=Yx(t).userDuring,r=e.userDuring;n===r?(iO.el=t,r(oO)):e.el=e.userDuring=null}}function sO(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[e]={}),eO(l))Object(p["extend"])(o,a);else for(var u=Object(j["r"])(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(eO(s)||Object(p["indexOf"])(s,e)>=0){!o&&(o=r[e]={});var h=Object(p["keys"])(a);for(c=0;c<h.length;c++){f=h[c],d=a[f];dO(i[f],d)&&(o[f]=d)}}}}}function lO(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=Object(p["keys"])(r),a=0;a<o.length;a++){var s=o[a];i[s]=Object(Vx["a"])(r[s])}}function uO(e,t,n){for(var r=t.transition,i=eO(r)?jr["a"]:Object(j["r"])(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function cO(e,t,n){for(var r=0;r<Kx.length;r++){var i=Kx[r],o=Wx[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<jr["a"].length;r++){var s=jr["a"][r];null!=t[s]&&(n[s]=t[s])}}function fO(e,t,n,r){if(n){var i,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!eO(a)){var l=Object(j["r"])(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=o[c];i[c]=f}}else if(e.getAnimationStyleProps&&(eO(s)||eO(a)||Object(p["indexOf"])(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});var g=Object(p["keys"])(n);for(u=0;u<g.length;u++){c=g[u];if(h[c]){f=o[c];i[c]=f}}}}}}}function dO(e,t){return Object(p["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}var hO=Object(j["o"])(),pO=["percent","easing","shape","style","extra"];function gO(e){e.stopAnimation("keyframe"),e.attr(hO(e))}function mO(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(p["isArray"])(t))Object(p["each"])(t,(function(t){mO(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){var o=Object(Fn["a"])("enter",n,0);i=o&&o.duration}if(r&&i){var a=hO(e);Object(p["each"])(Gx,(function(n){if(!n||e[n]){var o;r.sort((function(e,t){return e.percent-t.percent})),Object(p["each"])(r,(function(r){var s=e.animators,l=n?r[n]:r;if(l){var u=Object(p["keys"])(l);if(n||(u=Object(p["filter"])(u,(function(e){return Object(p["indexOf"])(pO,e)<0}))),u.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var f=n?a[n]:a;Object(p["each"])(u,(function(t){f[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(t.delay||0).duration(i).start(t.easing)}}))}}}var vO="emphasis",yO="normal",bO="blur",_O="select",wO=[yO,vO,bO,_O],xO={normal:["itemStyle"],emphasis:[vO,"itemStyle"],blur:[bO,"itemStyle"],select:[_O,"itemStyle"]},OO={normal:["label"],emphasis:[vO,"label"],blur:[bO,"label"],select:[_O,"label"]},SO=["x","y"],CO="e\0\0",kO={normal:{},emphasis:{},blur:{},select:{}},EO={cartesian2d:Px,geo:jx,single:Nx,polar:Bx,calendar:$x};function AO(e){return e instanceof Nr["b"]}function TO(e){return e instanceof Vf["c"]}function DO(e,t){t.copyTransform(e),TO(t)&&TO(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,AO(t)&&AO(e)&&t.setShape(e.shape))}var MO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,o=e.getData(),a=this.group,s=BO(e,o,t,n);i||a.removeAll(),o.diff(i).add((function(t){FO(n,null,t,s(t,r),e,a,o)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&Jx(n,Ax(n).option,e)})).update((function(t,l){var u=i.getItemGraphicEl(l);FO(n,u,t,s(t,r),e,a,o)})).execute();var l=e.get("clip",!0)?is(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,r,i){var o=t.getData(),a=BO(t,o,n,r),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var c=FO(null,null,u,a(u,i),t,this.group,o);c&&(c.traverse(l),s.push(c))}},t.prototype.eachRendered=function(e){$n["traverseElements"](this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},t.type="custom",t}(f["a"]),PO=MO;function IO(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=eS(r);t=$n["makePath"](o,null,i,r.layout||"center"),Ax(t).customPathData=o}else if("image"===n)t=new qn["a"]({}),Ax(t).customImagePath=e.style.image;else if("text"===n)t=new Un["a"]({});else if("group"===n)t=new zn["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=$n["getShapeClass"](n);if(!a){var s="";0,Object(vp["c"])(s)}t=new a}return Ax(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function jO(e,t,n,r,i,o,a){gO(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&null==r.transition&&(r.transition=SO);var l=r&&r.style;if(l){if("text"===t.type){var u=l;Object(p["hasOwn"])(u,"textFill")&&(u.fill=u.textFill),Object(p["hasOwn"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=AO(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Object(Hf["a"])(f,e)),l.__decalPattern=c}if(TO(t)&&l){c=l.__decalPattern;c&&(l.decal=c)}Zx(t,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),mO(t,r.keyframeAnimation,o)}function LO(e,t,n,r,i){var o=t.isGroup?null:t,a=i&&i[e].cfg;if(o){var s=o.ensureState(e);if(!1===r){var l=o.getState(e);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Object(gn["G"])(o)}}function NO(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=t.z2;null!=a&&(r.z2=a||0);for(var s=0;s<wO.length;s++)RO(r,t,wO[s])}}function RO(e,t,n){var r,i=n===yO,o=i?t:WO(t,n),a=o?o.z2:null;null!=a&&(r=i?e:e.ensureState(n),r.z2=a||0)}function BO(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):EO[o.type](o));for(var s,l,u=Object(p["defaults"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:O,ordinalRawValue:x,styleEmphasis:S,visual:E,barLayout:A,currentSeriesIndices:T,font:D},a.api||{}),c={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:$O(e.getData())},f={},d={},h={},g={},m=0;m<wO.length;m++){var v=wO[m];h[v]=e.getModel(xO[v]),g[v]=e.getModel(OO[v])}function y(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function b(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=y(e).getModel(xO[n])):y(e).getModel(xO[n]):h[n]}function _(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=y(e).getModel(OO[n])):y(e).getModel(OO[n]):g[n]}return function(e,n){return s=e,l=null,f={},d={},i&&i(Object(p["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},c),u)};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 r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var o=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function O(n,r){null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=b(r,yO).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(p["isString"])(o)?o:"#000"},c=_(r,yO),f=hn["c"](c,null,u,!1,!0);f.text=c.getShallow("show")?Object(p["retrieve2"])(e.getFormattedLabel(r,yO),Ia(t,r)):null;var d=hn["b"](c,u,!1);return k(n,l),l=Ux(l,f,d),n&&C(l,n),l.legacy=!0,l}function S(n,r){null==r&&(r=s);var i=b(r,vO).getItemStyle(),o=_(r,vO),a=hn["c"](o,null,null,!0,!0);a.text=o.getShallow("show")?Object(p["retrieve3"])(e.getFormattedLabel(r,vO),e.getFormattedLabel(r,yO),Ia(t,r)):null;var l=hn["b"](o,null,!0);return k(n,i),i=Ux(i,a,l),n&&C(i,n),i.legacy=!0,i}function C(e,t){for(var n in t)Object(p["hasOwn"])(t,n)&&(e[n]=t[n])}function k(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function E(e,n){if(null==n&&(n=s),Object(p["hasOwn"])(kx,e)){var r=t.getItemVisual(n,"style");return r?r[kx[e]]:null}if(Object(p["hasOwn"])(Ex,e))return t.getItemVisual(n,e)}function A(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return ut(Object(p["defaults"])({axis:t},e))}}function T(){return n.getCurrentSeriesIndices()}function D(e){return hn["d"](e,n)}}function $O(e){var t={};return Object(p["each"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function FO(e,t,n,r,i,o,a){if(r){var s=zO(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Object(gn["J"])(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(t)}function zO(e,t,n,r,i,o){var a=-1,s=t;t&&qO(t,r,i)&&(a=Object(p["indexOf"])(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=IO(r),s&&DO(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),kO.normal.cfg=kO.normal.conOpt=kO.emphasis.cfg=kO.emphasis.conOpt=kO.blur.cfg=kO.blur.conOpt=kO.select.cfg=kO.select.conOpt=null,kO.isLegacy=!1,HO(u,n,r,i,l,kO),UO(u,n,r,i,l),jO(e,u,n,r,kO,i,l),Object(p["hasOwn"])(r,"info")&&(Ax(u).info=r.info);for(var c=0;c<wO.length;c++){var f=wO[c];if(f!==yO){var d=WO(r,f),h=KO(r,d,f);LO(f,u,d,h,kO)}}return NO(u,r,i),"group"===r.type&&GO(e,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function qO(e,t,n){var r=Ax(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&tS(o)&&eS(o)!==r.customPathData||"image"===i&&Object(p["hasOwn"])(a,"image")&&a.image!==r.customImagePath}function UO(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&qO(a,o,r)&&(a=null),a||(a=IO(o),e.setClipPath(a)),jO(null,a,t,o,null,r,i)}}function HO(e,t,n,r,i,o){if(!e.isGroup){VO(n,null,o),VO(n,vO,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=IO(a),e.setTextContent(c)),jO(null,c,t,a,null,r,i);for(var f=a&&a.style,d=0;d<wO.length;d++){var h=wO[d];if(h!==yO){var p=o[h].conOpt;LO(h,c,p,KO(a,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function VO(e,t,n){var r=t?WO(e,t):e,i=t?KO(e,r,vO):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,l=s?t?WO(s,t):s:null;if(i&&(n.isLegacy||Fx(i,o,!!a,!!l))){n.isLegacy=!0;var u=zx(i,o,!t);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?n[t]:n.normal;f.cfg=a,f.conOpt=l}function WO(e,t){return t?e?e[t]:null:e}function KO(e,t,n){var r=t&&t.style;return null==r&&n===vO&&e&&(r=e.styleEmphasis),r}function GO(e,t,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u)if(l)XO({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t});else{u&&t.removeAll();for(var c=0;c<a;c++){var f=o[c],d=t.childAt(c);f?(null==f.ignore&&(f.ignore=!1),zO(e,d,n,f,i,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);YO(t,p,i)}}}function YO(e,t,n){t&&Jx(t,Ax(e).option,n)}function XO(e){new S(e.oldChildren,e.newChildren,ZO,ZO,e).add(QO).update(QO).remove(JO).execute()}function ZO(e,t){var n=e&&e.name;return null!=n?n:CO+t}function QO(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;zO(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function JO(e){var t=this.context,n=t.oldChildren[e];n&&Jx(n,Ax(n).option,t.seriesModel)}function eS(e){return e&&(e.pathData||e.d)}function tS(e){return e&&(Object(p["hasOwn"])(e,"pathData")||Object(p["hasOwn"])(e,"d"))}function nS(e){e.registerChartView(PO),e.registerSeriesModel(Dx)}var rS=Object(j["o"])(),iS=p["clone"],oS=p["bind"],aS=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,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,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var f=p["curry"](sS,t,c);this.updatePointerEl(a,l,f),this.updateLabelEl(a,l,f,t)}else a=this._group=new zn["a"],this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);fS(a,t,!0),this._renderHandle(i)}},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"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=Wu(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=rS(e).pointerEl=new $n[i.type](iS(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=rS(e).labelEl=new Un["a"](iS(t.label));e.add(i),uS(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=rS(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=rS(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),uS(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=$n["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){jc["g"](e.event)},onmousedown:oS(this._onHandleDragMove,this,0,0),drift:oS(this._onHandleDragMove,this),ondragend:oS(this._onHandleDragEnd,this)}),r.add(i)),fS(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");p["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,ce["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){sS(this._axisPointerModel,!t&&this._moveAnimation,this._handle,cS(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(cS(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(cS(r)),rS(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,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),ce["a"](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 sS(e,t,n,r){lS(rS(n).lastProp,r)||(rS(n).lastProp=r,t?Fn["h"](n,r,e):(n.stopAnimation(),n.attr(r)))}function lS(e,t){if(p["isObject"](e)&&p["isObject"](t)){var n=!0;return p["each"](t,(function(t,r){n=n&&lS(e[r],t)})),!!n}return e===t}function uS(e,t){e[t.get(["label","show"])?"show":"hide"]()}function cS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function fS(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var dS=aS;function hS(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function pS(e,t,n,r,i){var o=n.get("value"),a=mS(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Qe["i"](s.get("padding")||0),u=s.getFont(),c=Vt["d"](a,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;"right"===p&&(f[0]-=d),"center"===p&&(f[0]-=d/2);var g=i.verticalAlign;"bottom"===g&&(f[1]-=h),"middle"===g&&(f[1]-=h/2),gS(f,d,h,r);var m=s.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Object(hn["c"])(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function gS(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-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 mS(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:rn(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};p["each"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),p["isString"](a)?o=a.replace("{value}",o):p["isFunction"](a)&&(o=a(s))}return o}function vS(e,t,n){var r=se["create"]();return se["rotate"](r,r,n.rotation),se["translate"](r,r,n.position),$n["applyTransform"]([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function yS(e,t,n,r,i,o){var a=Bu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),pS(t,r,i,o,{position:vS(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function bS(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function _S(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function wS(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var xS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=OS(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=hS(r),f=SS[s](o,u,l);f.style=c,e.graphicKey=f.type,e.pointer=f}var d=gu(a.model,n);yS(t,e,d,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=gu(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=vS(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=OS(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,f=[c,c];f[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:f,tooltipOption:d[l]}},t}(dS);function OS(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var SS={line:function(e,t,n){var r=bS([t,n[0]],[t,n[1]],CS(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:_S([t-r/2,n[0]],[r,i],CS(e))}}};function CS(e){return"x"===e.dim?0:1}var kS=xS,ES=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(d["a"]),AS=ES,TS=Object(j["o"])(),DS=p["each"];function MS(e,t,n){if(!sr["a"].node){var r=t.getZr();TS(r).records||(TS(r).records={}),PS(r,t);var i=TS(r).records[e]||(TS(r).records[e]={});i.handler=n}}function PS(e,t){function n(n,r){e.on(n,(function(n){var i=NS(t);DS(TS(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),IS(i.pendings,t)}))}TS(e).initialized||(TS(e).initialized=!0,n("click",p["curry"](LS,"click")),n("mousemove",p["curry"](LS,"mousemove")),n("globalout",jS))}function IS(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function jS(e,t,n){e.handler("leave",null,n)}function LS(e,t,n,r){t.handler(e,n,r)}function NS(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function RS(e,t){if(!sr["a"].node){var n=t.getZr(),r=(TS(n).records||{})[e];r&&(TS(n).records[e]=null)}}var BS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";MS("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){RS("axisPointer",t)},t.prototype.dispose=function(e,t){RS("axisPointer",t)},t.type="axisPointer",t}(c["a"]),$S=BS;function FS(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=j["u"](o,e);if(null==a||a<0||p["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h="x"===f||"radius"===f?1:0,g=o.mapDimension(d),m=[];m[h]=o.get(g,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(o.getValues(p["map"](l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var zS=Object(j["o"])();function qS(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(p["bind"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){QS(i)&&(i=FS({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=QS(i),u=o.axesInfo,c=s.axesInfo,f="leave"===r||QS(i),d={},h={},g={list:[],map:{}},m={showPointer:Object(p["curry"])(VS,h),showTooltip:Object(p["curry"])(WS,g)};Object(p["each"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);Object(p["each"])(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=XS(u,e);if(!f&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&US(e,a,m,!1,d)}}))}));var v={};return Object(p["each"])(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&Object(p["each"])(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,ZS(t),ZS(e)))),v[e.key]=o}}))})),Object(p["each"])(v,(function(e,t){US(c[t],e,m,!0,d)})),KS(h,c,d),GS(g,i,e,a),YS(c,a,n),d}}function US(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=HS(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(p["extend"])(i,s[0]),!r&&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 HS(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(p["each"])(t.seriesModels,(function(t,l){var u,c,f=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(f,e,n);c=d.dataIndices,u=d.nestestValue}else{if(c=t.getData().indicesOfNearest(f[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(f[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,g=Math.abs(h);g<=a&&((g<a||h>=0&&s<0)&&(a=g,s=h,i=u,o.length=0),Object(p["each"])(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}function VS(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function WS(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=Yu(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function KS(e,t,n){var r=n.axesInfo=[];Object(p["each"])(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function GS(e,t,n,r){if(!QS(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function YS(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=zS(r)[i]||{},a=zS(r)[i]={};Object(p["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(p["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Object(p["each"])(o,(function(e,t){!a[t]&&l.push(e)})),Object(p["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 XS(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function ZS(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function QS(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function JS(e){Qu.registerAxisPointerClass("CartesianAxisPointer",kS),e.registerComponentModel(AS),e.registerComponentView($S),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(p["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=$u(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},qS)}function eC(e){b(cc),b(JS)}var tC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var f=hS(r),d=rC[c](o,a,u,l);d.style=f,e.graphicKey=d.type,e.pointer=d}var h=r.get(["label","margin"]),p=nC(t,n,r,a,h);pS(e,n,r,i,p)},t}(dS);function nC(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,f=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=se["create"]();se["rotate"](d,d,s),se["translate"](d,d,[r.cx,r.cy]),l=$n["applyTransform"]([a,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=Bu.innerTextLayout(s,h*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=f[1];l=r.coordToPoint([g+i,a]);var m=r.cx,v=r.cy;u=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var rC={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:bS(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:wS(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:wS(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},iC=tC,oC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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}(d["a"]),aC=oC,sC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",j["b"]).models[0]},t.type="polarAxis",t}(d["a"]);p["mixin"](sC,fn);var lC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="angleAxis",t}(sC),uC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="radiusAxis",t}(sC),cC=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(Pe["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ar);cC.prototype.dataToRadius=Ar.prototype.dataToCoord,cC.prototype.radiusToData=Ar.prototype.coordToData;var fC=cC,dC=Object(j["o"])(),hC=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(Pe["a"])(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,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=Vt["d"](null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var f=Math.max(0,Math.floor(c)),d=dC(e.model),h=d.lastAutoInterval,p=d.lastTickCount;return null!=h&&null!=p&&Math.abs(h-f)<=1&&Math.abs(p-i)<=1&&h>f?f=h:(d.lastTickCount=i,d.lastAutoInterval=f),f},t}(Ar);hC.prototype.dataToAngle=Ar.prototype.dataToCoord,hC.prototype.angleToData=Ar.prototype.coordToData;var pC=hC,gC=["radius","angle"],mC=function(){function e(e){this.dimensions=gC,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fC,this._angleAxis=new pC,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,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),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,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.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,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var r=vC(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=vC(t);return r===this?this.pointToData(n):null},e}();function vC(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var yC=mC;function bC(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=Object(Fe["q"])(r[0],i),e.cy=Object(Fe["q"])(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:p["isArray"](l)||(l=[0,l]);var u=[Object(Fe["q"])(l[0],s),Object(Fe["q"])(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function _C(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();p["each"](un(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),p["each"](un(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Jt(r.scale,r.model),Jt(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function wC(e){return"angleAxis"===e.mainType}function xC(e,t){var n;if(e.type=t.get("type"),e.scale=en(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),wC(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var OC={dimensions:gC,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new yC(r+"");i.update=_C;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");xC(o,s),xC(a,l),bC(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",j["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},SC=OC,CC=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function kC(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function EC(e){var t=e.getRadiusAxis();return t.inverse?0:1}function AC(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 TC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=p["map"](n.getViewLabels(),(function(e){e=p["clone"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));AC(s),AC(o),p["each"](CC,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||DC[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(Qu),DC={axisLine:function(e,t,n,r,i,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),u=Math.PI/180,c=l.getExtent(),f=EC(n),d=f?0:1,h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";a=0===o[d]?new $n[h]({shape:{cx:n.cx,cy:n.cy,r:o[f],startAngle:-c[0]*u,endAngle:-c[1]*u,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Kn["a"]({shape:{cx:n.cx,cy:n.cy,r:o[f],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[EC(n)],u=p["map"](r,(function(e){return new Zn["a"]({shape:kC(n,[l,l+s],e.coord)})}));e.add($n["mergePath"](u,{style:p["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[EC(n)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Zn["a"]({shape:kC(n,[u,u+l],i[f][d].coord)}));e.add($n["mergePath"](c,{style:p["defaults"](s.getModel("lineStyle").getLineStyle(),p["defaults"](a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");p["each"](a,(function(r,i){var a=l,f=r.tickValue,d=o[EC(n)],h=n.coordToPoint([d+u,r.coord]),g=n.cx,m=n.cy,v=Math.abs(h[0]-g)/d<.3?"center":h[0]>g?"left":"right",y=Math.abs(h[1]-m)/d<.3?"middle":h[1]>m?"top":"bottom";if(s&&s[f]){var b=s[f];p["isObject"](b)&&b.textStyle&&(a=new _["a"](b.textStyle,l,l.ecModel))}var w=new Un["a"]({silent:Bu.isLabelSilent(t),style:Object(hn["c"])(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(e.add(w),c){var x=Bu.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,Object(L["a"])(w).eventData=x}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Zn["a"]({shape:kC(n,o,r[f].coord)}))}for(f=0;f<c.length;f++)e.add($n["mergePath"](c[f],{style:p["defaults"]({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Zn["a"]({shape:kC(n,o,i[u][c].coord)}));e.add($n["mergePath"](l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),m=t.get("clockwise"),v=1,y=r.length;v<=y;v++){var b=v===y?r[0].coord:r[v].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new Wn["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:g,startAngle:d,endAngle:-b*f,clockwise:m},silent:!0})),d=-b*f}for(v=0;v<c.length;v++)e.add($n["mergePath"](c[v],{style:p["defaults"]({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},MC=TC,PC=["axisLine","axisTickLabel","axisName"],IC=["splitLine","splitArea","minorSplitLine"],jC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new zn["a"];this.group.add(r);var i=e.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),f=NC(o,e,u),d=new Bu(e,f);p["each"](PC,d.add,d),r.add(d.getGroup()),$n["groupTransition"](n,r,e),p["each"](IC,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&LC[t](this.group,e,o,u,c,s,l)}),this)}},t.type="radiusAxis",t}(Qu),LC={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=360===Math.abs(d[1]-d[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],m=0;m<o.length;m++){var v=u++%l.length;g[v]=g[v]||[],g[v].push(new $n[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[m].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(m=0;m<g.length;m++)e.add($n["mergePath"](g[m],{style:p["defaults"]({stroke:l[m%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var f=0;f<a[c].length;f++)u.push(new Hn["a"]({shape:{cx:n.cx,cy:n.cy,r:a[c][f].coord}}));e.add($n["mergePath"](u,{style:p["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=o[0].coord,d=1;d<o.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Wn["a"]({shape:{cx:n.cx,cy:n.cy,r0:f,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),f=o[d].coord}for(d=0;d<c.length;d++)e.add($n["mergePath"](c[d],{style:p["defaults"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function NC(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 RC=jC;function BC(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function $C(e,t){return t.dim+e.model.componentIndex}function FC(e,t,n){var r={},i=zC(p["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=$C(n,o),s=BC(e),l=i[a][s],u=l.offset,c=l.width,f=n.getOtherAxis(o),d=e.coordinateSystem.cx,h=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var m=t.mapDimension(f.dim),v=t.mapDimension(o.dim),y=Se(t,m),b="radius"!==o.dim||!e.get("roundCap",!0),_=f.model,w=_.get("startValue"),x=f.dataToCoord(w||0),O=0,S=t.count();O<S;O++){var C=t.get(m,O),k=t.get(v,O),E=C>=0?"p":"n",A=x;y&&(r[s][k]||(r[s][k]={p:x,n:x}),A=r[s][k][E]);var T=void 0,D=void 0,M=void 0,P=void 0;if("radius"===f.dim){var I=f.dataToCoord(C)-x,j=o.dataToCoord(k);Math.abs(I)<p&&(I=(I<0?-1:1)*p),T=A,D=A+I,M=j-u,P=M-c,y&&(r[s][k][E]=D)}else{var L=f.dataToCoord(C,b)-x,N=o.dataToCoord(k);Math.abs(L)<g&&(L=(L<0?-1:1)*g),T=N+u,D=T+c,M=A,P=A+L,y&&(r[s][k][E]=P)}t.setItemLayout(O,{cx:d,cy:h,r0:T,r:D,startAngle:-M*Math.PI/180,endAngle:-P*Math.PI/180,clockwise:M>=P})}}}))}function zC(e){var t={};p["each"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=$C(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var f=BC(e);c[f]||u.autoWidthCount++,c[f]=c[f]||{width:0,maxWidth:0};var d=Object(Fe["q"])(e.get("barWidth"),l),h=Object(Fe["q"])(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");d&&!c[f].width&&(d=Math.min(u.remainedWidth,d),c[f].width=d,u.remainedWidth-=d),h&&(c[f].maxWidth=h),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return p["each"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=Object(Fe["q"])(e.categoryGap,i),a=Object(Fe["q"])(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),p["each"](r,(function(e,t){var n=e.maxWidth;n&&n<u&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,f=0;p["each"](r,(function(e,t){e.width||(e.width=u),c=e,f+=e.width*(1+a)})),c&&(f-=c.width*a);var d=-f/2;p["each"](r,(function(e,r){n[t][r]=n[t][r]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}var qC=FC,UC={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},HC={splitNumber:5},VC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="polar",t}(c["a"]);function WC(e){b(JS),Qu.registerAxisPointerClass("PolarAxisPointer",iC),e.registerCoordinateSystem("polar",SC),e.registerComponentModel(aC),e.registerComponentView(VC),ou(e,"angle",lC,UC),ou(e,"radius",uC,HC),e.registerComponentView(MC),e.registerComponentView(RC),e.registerLayout(Object(p["curry"])(qC,"bar"))}function KC(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),p["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-d:d,i.z2=1,i}var GC=["axisLine","axisTickLabel","axisName"],YC=["splitArea","splitLine"],XC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(Pe["a"])(t,e),t.prototype.render=function(t,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new zn["a"];var s=KC(t),l=new Bu(t,s);p["each"](GC,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),p["each"](YC,(function(e){t.get([e,"show"])&&ZC[e](this,this.group,this._axisGroup,t)}),this),$n["groupTransition"](a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){tc(this)},t.type="singleAxis",t}(Qu),ZC={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,h=i.getTicksCoords({tickModel:o}),g=[],m=[],v=0;v<h.length;++v){var y=i.toGlobalCoord(h[v].coord);c?(g[0]=y,g[1]=u.y,m[0]=y,m[1]=u.y+u.height):(g[0]=u.x,g[1]=y,m[0]=u.x+u.width,m[1]=y);var b=new Zn["a"]({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});$n["subPixelOptimizeLine"](b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}var w=a.getLineStyle(["color"]);for(v=0;v<f.length;++v)t.add($n["mergePath"](f[v],{style:p["defaults"]({stroke:s[v%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){ec(e,n,r,r)}},QC=XC,JC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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}(d["a"]);Object(p["mixin"])(JC,fn.prototype);var ek=JC,tk=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return Object(Pe["a"])(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}(Ar),nk=tk,rk=["single"],ik=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=rk,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new nk(r,en(e),[0,0],e.get("type"),e.get("position")),o="category"===i.type;i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(p["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Jt(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(dn["g"])({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(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-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(),r=n.orient;return"horizontal"===r?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(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=ok(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=ok(t);return r===this?this.pointToData(n):null},e}();function ok(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var ak=ik;function sk(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new ak(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",j["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var lk={create:sk,dimensions:rk},uk=lk,ck=["x","y"],fk=["width","height"],dk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=gk(a,1-pk(o)),l=a.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=hS(r),f=hk[u](o,l,s);f.style=c,e.graphicKey=f.type,e.pointer=f}var d=KC(n);yS(t,e,d,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=KC(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=vS(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=pk(i),s=gk(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 u=gk(o,1-a),c=(u[1]+u[0])/2,f=[c,c];return f[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(dS),hk={line:function(e,t,n){var r=bS([t,n[0]],[t,n[1]],pk(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:_S([t-r/2,n[0]],[r,i],pk(e))}}};function pk(e){return e.isHorizontal()?0:1}function gk(e,t){var n=e.getRect();return[n[ck[t]],n[ck[t]]+n[fk[t]]]}var mk=dk,vk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="single",t}(c["a"]);function yk(e){b(JS),Qu.registerAxisPointerClass("SingleAxisPointer",mk),e.registerComponentView(vk),e.registerComponentView(QC),e.registerComponentModel(ek),ou(e,"single",ek,ek.defaultOption),e.registerCoordinateSystem("single",uk)}var bk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(t,n,r){var i=Object(dn["f"])(t);e.prototype.init.apply(this,arguments),_k(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),_k(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}(d["a"]);function _k(e,t){var n,r=e.cellSize;n=p["isArray"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=p["map"]([0,1],(function(e){return Object(dn["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(dn["h"])(e,t,{type:"box",ignoreSize:i})}var wk=bk,xk=n("ef59"),Ok=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Xn["a"]({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=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 u=t.start,c=0;u.time<=t.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var f=u.date;f.setMonth(f.getMonth()+1),u=o.getDateInfo(f)}function d(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new Yn["a"]({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.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(p["isString"])(e)&&e?Object(Qe["f"])(e,t):Object(p["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.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,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,f={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var h=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(h,p),m=new Un["a"]({z2:30,style:Object(hn["c"])(i,{text:g})});m.attr(this._yearTextPositionControl(m,f[a],n,a,o)),r.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(p["isString"])(o)||(o&&(t=Object(xk["d"])(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,f="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,h=0;h<u[c].length-1;h++){var g=u[c][h].slice(),m=this._firstDayOfMonth[h];if(d){var v=this._firstDayPoints[h];g[f]=(v[f]+u[0][h+1][f])/2}var y=i.get("formatter"),b=o[+m.m-1],_={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(y,_),x=new Un["a"]({z2:30,style:Object(p["extend"])(Object(hn["c"])(i,{text:w}),this._monthTextPositionControl(g,d,n,s,a))});r.add(x)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var o="center",a="middle",s=e[0],l=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r,i){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Object(p["isString"])(l)){l&&(t=Object(xk["d"])(l)||t);var f=t.get(["time","dayOfWeekShort"]);l=f||Object(p["map"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=a.getNextNDay(n.end.time,7-n.lweek).time,h=[a.getCellWidth(),a.getCellHeight()];u=Object(Fe["q"])(u,Math.min(h[1],h[0])),"start"===s&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var g=0;g<7;g++){var m=a.getNextNDay(d,g),v=a.dataToRect([m.time],!1).center,y=g;y=Math.abs((g+c)%7);var b=new Un["a"]({z2:30,style:Object(p["extend"])(Object(hn["c"])(o,{text:l[y]}),this._weekTextPositionControl(v,r,s,u,h))});i.add(b)}}},t.type="calendar",t}(c["a"]),Sk=Ok,Ck=864e5,kk=function(){function e(t,n,r){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=Fe["p"](e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:r,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+r+"-"+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,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];p["each"]([0,1],(function(e){u(i,e)&&(o[r[e]]=i[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=dn["g"](o,s);function u(e,t){return null!=e[t]&&"auto"!==e[t]}p["each"]([0,1],(function(e){u(i,e)||(i[e]=l[r[e]]/a[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){p["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+Ck))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).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,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=Ek(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=Ek(t);return r===this?r.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(p["isArray"](t)&&1===t.length&&(t=t[0]),p["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 r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[r.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 r=Math.floor(n[1].time/Ck)-Math.floor(n[0].time/Ck)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function Ek(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var Ak=kk;function Tk(e){e.registerComponentModel(wk),e.registerComponentView(Sk),e.registerCoordinateSystem("calendar",Ak)}function Dk(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Mk(e,t){var n;return p["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Pk(e,t,n){var r=p["extend"]({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(p["merge"](i,r,!0),Object(dn["h"])(i,r,{ignoreSize:!0}),Object(dn["c"])(n,i),Lk(n,i),Lk(n,i,"shape"),Lk(n,i,"style"),Lk(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}var Ik=["transition","enterFrom","leaveTo"],jk=Ik.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Lk(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Ik:jk,i=0;i<r.length;i++){var o=r[i];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function Nk(e,t){if(e&&(e.hv=t.hv=[Mk(t,["left","right"]),Mk(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var Rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(Pe["a"])(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,o=[];this._flatten(r,o,null);var a=j["q"](i,o,"normalMerge"),s=this._elOptionsToUpdate=[];p["each"](a,(function(e,t){var n=e.newOption;n&&(s.push(n),Dk(e,n),Pk(i,t,n),Nk(i[t],n))}),this),n.elements=p["filter"](i,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){p["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,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}(d["a"]),Bk={path:null,compoundPath:null,group:zn["a"],image:qn["a"],text:Un["a"]},$k=j["o"](),Fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){this._elMap=p["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,r=this.group,i=e.get("z"),o=e.get("zlevel");p["each"](t,(function(t){var a=j["e"](t.id,null),s=null!=a?n.get(a):null,l=j["e"](t.parentId,null),u=null!=l?n.get(l):r,c=t.type,f=t.style;"text"===c&&f&&t.hv&&t.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var d=t.textContent,h=t.textConfig;if(f&&Fx(f,c,!!h,!!d)){var p=zx(f,c,!0);!h&&p.textConfig&&(h=t.textConfig=p.textConfig),!d&&p.textContent&&(d=p.textContent)}var g=Vk(t);var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=!s,_=s;b?_=qk(a,u,t.type,n):(_&&($k(_).isNew=!1),gO(_)),_&&(Zx(_,g,e,{isInit:b}),Hk(_,t,i,o))}else if(y){Uk(s,t,n,e);var w=qk(a,u,t.type,n);w&&(Zx(w,g,e,{isInit:!0}),Hk(w,t,i,o))}else"remove"===m&&(Qx(s,t),Uk(s,t,n,e));var x=n.get(a);if(x&&d)if(v){var O=x.getTextContent();O?O.attr(d):x.setTextContent(new Un["a"](d))}else y&&x.setTextContent(new Un["a"](d));if(x){var S=t.clipPath;if(S){var C=S.type,k=void 0;b=!1;if(v){var E=x.getClipPath();b=!E||$k(E).type!==C,k=b?zk(C):E}else y&&(b=!0,k=zk(C));x.setClipPath(k),Zx(k,S,e,{isInit:b}),mO(k,S.keyframeAnimation,e)}var A=$k(x);x.setTextConfig(h),A.option=t,Wk(x,e,t),$n["setTooltipConfig"]({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),mO(x,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=j["e"](u.id,null),f=null!=c?i.get(c):null;if(f&&f.isGroup){var d=f.parent,h=d===r,g=$k(f),m=$k(d);g.width=Object(Fe["q"])(g.option.width,h?o:m.width)||0,g.height=Object(Fe["q"])(g.option.height,h?a:m.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=j["e"](u.id,null),f=null!=c?i.get(c):null;if(f){d=f.parent,m=$k(d);var v=d===r?{width:o,height:a}:{width:m.width,height:m.height},y={},b=dn["i"](f,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!$k(f).isNew&&b){for(var _=u.transition,w={},x=0;x<s.length;x++){var O=s[x],S=y[O];_&&(eO(_)||p["indexOf"](_,O)>=0)?w[O]=S:f[O]=S}Object(Fn["h"])(f,w,e,0)}else f.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){Uk(n,$k(n).option,t,e._lastGraphicModel)})),this._elMap=p["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(c["a"]);function zk(e){var t=p["hasOwn"](Bk,e)?Bk[e]:$n["getShapeClass"](e);var n=new t({});return $k(n).type=e,n}function qk(e,t,n,r){var i=zk(n);return t.add(i),r.set(e,i),$k(i).id=e,$k(i).isNew=!0,i}function Uk(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){Uk(e,t,n,r)})),Jx(e,t,r),n.removeKey($k(e).id))}function Hk(e,t,n,r){e.isGroup||p["each"]([["cursor",Vf["c"].prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];p["hasOwn"](t,r)?e[r]=p["retrieve2"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),p["each"](p["keys"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=p["isFunction"](r)?r:null}})),p["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function Vk(e){return e=p["extend"]({},e),p["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dn["a"]),(function(t){delete e[t]})),e}function Wk(e,t,n){var r=Object(L["a"])(e).eventData;e.silent||e.ignore||r||(r=Object(L["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Kk(e){e.registerComponentModel(Rk),e.registerComponentView(Fk),e.registerPreprocessor((function(e){var t=e.graphic;Object(p["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var Gk=["x","y","radius","angle","single"],Yk=["cartesian2d","polar","singleAxis"];function Xk(e){var t=e.get("coordinateSystem");return Object(p["indexOf"])(Yk,t)>=0}function Zk(e){return e+"Axis"}function Qk(e,t){var n,r=Object(p["createHashMap"])(),i=[],o=Object(p["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),i.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function Jk(e){var t=e.ecModel,n={infoList:[],infoMap:Object(p["createHashMap"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(Zk(e),r);if(i){var o=i.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(i)}}})),n}var eE=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}(),tE=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 Object(Pe["a"])(t,e),t.prototype.init=function(e,t,n){var r=nE(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=nE(e);Object(p["merge"])(this.option,e,!0),Object(p["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(p["each"])([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(p["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(p["each"])(Gk,(function(n){var r=this.getReferringComponents(Zk(n),j["a"]);if(r.specified){t=!0;var i=new eE;Object(p["each"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var i=t[0];if(i){var o=new eE;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",j["b"]).models[0];a&&Object(p["each"])(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",j["b"]).models[0]&&o.add(e.componentIndex)}))}}}r&&Object(p["each"])(Gk,(function(t){if(r){var i=n.findComponents({mainType:Zk(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new eE;o.add(i[0].componentIndex),e.set(t,o),r=!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(p["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="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(Zk(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(p["each"])(n.indexList,(function(n){e.call(t,r,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(Zk(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(p["each"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(p["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(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,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}(d["a"]);function nE(e){var t={};return Object(p["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var rE=tE,iE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="dataZoom.select",t}(rE),oE=iE,aE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(c["a"]),sE=aE,lE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="dataZoom.select",t}(sE),uE=lE,cE=p["each"],fE=Fe["c"],dE=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,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(Xk(t)){var n=Zk(this._dimName),r=t.getReferringComponents(n,j["b"]).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return p["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];cE(["start","end"],(function(r,u){var c=e[r],f=e[r+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),f=i.parse(Fe["m"](c,a,n))):(t=!0,f=null==f?n[u]:i.parse(f),c=Fe["m"](f,n,a)),l[u]=null==f||isNaN(f)?n[u]:f,s[u]=null==c||isNaN(c)?a[u]:c})),fE(l),fE(s);var u=this._minMaxSpan;function c(e,t,n,r,o){var a=o?"Span":"ValueSpan";Tv(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=Fe["m"](e[s],n,r,!0),o&&(t[s]=i.parse(t[s]))}return t?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=hE(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,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&cE(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var s=t.getStore(),l=p["map"](r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,a=0;a<r.length;a++){var u=s.get(l[a],e),c=!isNaN(u),f=u<o[0],d=u>o[1];if(c&&!f&&!d)return!0;c&&(i=!0),f&&(t=!0),d&&(n=!0)}return i&&t&&n}))}else cE(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));cE(r,(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;cE(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Fe["m"](n[0]+o,n,[0,100],!0):null!=i&&(o=Fe["m"](i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Fe["g"](n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function hE(e,t,n){var r=[1/0,-1/0];cE(n,(function(e){cn(r,e.getData(),t)}));var i=e.getAxisModel(),o=Yt(i.axis.scale,i,r).calculate();return[o.min,o.max]}var pE=dE,gE={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(Zk(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new pE(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=Object(p["createHashMap"])();return Object(p["each"])(n,(function(e){Object(p["each"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},mE=gE;function vE(e){e.registerAction("dataZoom",(function(e,t){var n=Qk(t,e);Object(p["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var yE=!1;function bE(e){yE||(yE=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,mE),vE(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function _E(e){e.registerComponentModel(oE),e.registerComponentView(uE),bE(e)}var wE=function(){function e(){}return e}(),xE={};function OE(e,t){xE[e]=t}function SE(e){return xE[e]}var CE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;p["each"](this.option.feature,(function(e,n){var r=SE(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),p["merge"](e,r.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}(d["a"]),kE=CE;function EE(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Object(dn["g"])(r,o,i);Object(dn["b"])(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Object(dn["i"])(e,r,o,i)}function AE(e,t){var n=Qe["i"](t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Xn["a"]({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:r,silent:!0,z2:-1}),e}var TE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];p["each"](s,(function(e,t){u.push(t)})),new S(this._featureNames||[],u).add(c).update(c).remove(p["curry"](c,null)).execute(),this._featureNames=u,EE(i,e,n),i.add(AE(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!p["isFunction"](l)&&t){var u=l.style||(l.style={}),c=Vt["d"](t,Un["a"].makeFont(u)),f=e.x+i.x,d=e.y+i.y+o,h=!1;d+c.height>n.getHeight()&&(a.position="top",h=!0);var g=h?-5-c.height:o+10;f+c.width/2>n.getWidth()?(a.position=["100%",g],u.align="right"):f-c.width/2<0&&(a.position=[0,g],u.align="left")}}))}function c(i,o){var a,c=u[i],d=u[o],h=s[c],p=new _["a"](h,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(h.title=r.newTitle),c&&!d){if(DE(c))a={onclick:p.option.onclick,featureName:c};else{var g=SE(c);if(!g)return;a=new g}l[c]=a}else if(a=l[d],!a)return;a.uid=Object(Ps["c"])("toolbox-feature"),a.model=p,a.ecModel=t,a.api=n;var m=a instanceof wE;c||!d?!p.get("show")||m&&a.unusable?m&&a.remove&&a.remove(t,n):(f(p,a,c),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?gn["r"]:gn["C"])(r[e])},a instanceof wE&&a.render&&a.render(p,t,n,r)):m&&a.dispose&&a.dispose(t,n)}function f(r,s,l){var u,c,f=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),h=s instanceof wE&&s.getIcons?s.getIcons():r.get("icon"),g=r.get("title")||{};p["isString"](h)?(u={},u[l]=h):u=h,p["isString"](g)?(c={},c[l]=g):c=g;var m=r.iconPaths={};p["each"](u,(function(l,u){var h=$n["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});h.setStyle(f.getItemStyle());var g=h.ensureState("emphasis");g.style=d.getItemStyle();var v=new Un["a"]({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Object(hn["d"])({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});h.setTextContent(v),$n["setTooltipConfig"]({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var t=d.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),h.setTextConfig({position:d.get("textPosition")||r}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===r.get(["iconStatus",u])?gn["r"]:gn["C"])(h),i.add(h),h.on("click",p["bind"](s.onclick,s,t,n,u)),m[u]=h}))}},t.prototype.updateView=function(e,t,n,r){p["each"](this._features,(function(e){e instanceof wE&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){p["each"](this._features,(function(n){n instanceof wE&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){p["each"](this._features,(function(n){n instanceof wE&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(c["a"]);function DE(e){return 0===e.indexOf("my")}var ME=TE,PE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"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=sr["a"].browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var f=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var d=c.length,h=new Uint8Array(d);while(d--)h[d]=c.charCodeAt(d);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,f)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),m.focus(),v.execCommand("SaveAs",!0,f),document.body.removeChild(g)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',_=window.open();_.document.write(b),_.document.title=r}else{var w=document.createElement("a");w.download=r+"."+o,w.target="_blank",w.href=a;var x=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(x)}},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}(wE),IE=PE,jE="__ec_magicType_stack__",LE=[["line","bar"],["stack"]],NE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return p["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 r=this.model,i=r.get(["seriesIndex",n]);if(RE[n]){var o,a={series:[]},s=function(e){var t=e.subType,i=e.id,o=RE[n](t,i,e,r);o&&(p["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 u=l.dim,c=u+"Axis",f=e.getReferringComponents(c,j["b"]).models[0],d=f.componentIndex;a[c]=a[c]||[];for(var h=0;h<=d;h++)a[c][d]=a[c][d]||{};a[c][d].boundaryGap="bar"===n}}};p["each"](LE,(function(e){p["indexOf"](e,n)>=0&&p["each"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=p["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(wE),RE={line:function(e,t,n,r){if("bar"===e)return p["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return p["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===jE;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),p["merge"]({id:t,stack:i?"":jE},r.get(["option","stack"])||{},!0)}};u["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var BE=NE,$E=new Array(60).join("-"),FE="\t";function zE(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function qE(e){var t=[];return p["each"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,o=i.dim,a=[" "].concat(p["map"](e.series,(function(e){return e.name}))),s=[r.model.getCategories()];p["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(FE)],u=0;u<s[0].length;u++){for(var c=[],f=0;f<s.length;f++)c.push(s[f][u]);l.push(c.join(FE))}t.push(l.join("\n"))})),t.join("\n\n"+$E+"\n\n")}function UE(e){return p["map"](e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+FE:"")+r.join(FE))})),n.join("\n")})).join("\n\n"+$E+"\n\n")}function HE(e){var t=zE(e);return{value:p["filter"]([qE(t.seriesGroupByCategoryAxis),UE(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+$E+"\n\n"),meta:t.meta}}function VE(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function WE(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(FE)>=0)return!0}var KE=new RegExp("["+FE+"]+","g");function GE(e){for(var t=e.split(/\n+/g),n=VE(t.shift()).split(KE),r=[],i=p["map"](n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=VE(t[o]).split(KE);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function YE(e){for(var t=e.split(/\n+/g),n=VE(t.shift()),r=[],i=0;i<t.length;i++){var o=VE(t[i]);if(o){var a=o.split(KE),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function XE(e,t){var n=e.split(new RegExp("\n*"+$E+"\n*","g")),r={series:[]};return p["each"](n,(function(e,n){if(WE(e)){var i=GE(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=YE(e);r.series.push(i)}})),r}var ZE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),f=HE(e);if(p["isFunction"](u)){var d=u(t.getOption());p["isString"](d)?s.innerHTML=d:p["isDom"](d)&&s.appendChild(d)}else{l.readOnly=r.get("readOnly");var h=l.style;h.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",h.color=r.get("textColor"),h.borderColor=r.get("textareaBorderColor"),h.backgroundColor=r.get("textareaColor"),l.value=f.value,s.appendChild(l)}var g=f.meta,m=document.createElement("div");m.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",y=document.createElement("div"),b=document.createElement("div");v+=";background-color:"+r.get("buttonColor"),v+=";color:"+r.get("buttonTextColor");var _=this;function w(){n.removeChild(i),_._dom=null}Object(jc["a"])(y,"click",w),Object(jc["a"])(b,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)w();else{var e;try{e=p["isFunction"](c)?c(s,t.getOption()):XE(l.value,g)}catch(n){throw w(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}})),y.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=y.style.cssText=v,!r.get("readOnly")&&m.appendChild(b),m.appendChild(y),i.appendChild(o),i.appendChild(s),i.appendChild(m),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},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}(wE);function QE(e,t){return p["map"](e,(function(e,n){var r=t&&t[n];if(p["isObject"](r)&&!p["isArray"](r)){var i=p["isObject"](e)&&!p["isArray"](e);i||(e={value:e});var o=null!=r.name&&null==e.name;return e=p["defaults"](e,r),o&&delete e.name,e}return e}))}u["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];p["each"](e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:QE(e.data,i)})}else n.push(p["extend"]({type:"scatter"},e))})),t.mergeOption(p["defaults"]({series:n},e.newOption))}));var JE=ZE,eA=p["each"],tA=Object(j["o"])();function nA(e,t){var n=aA(e);eA(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function rA(e){var t=aA(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return eA(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function iA(e){tA(e).snapshots=null}function oA(e){return aA(e).length}function aA(e){var t=tA(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var sA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.onclick=function(e,t){iA(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}(wE);u["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var lA=sA,uA=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],cA=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=dA(t,e);Object(p["each"])(hA,(function(e,t){(!n||!n.include||Object(p["indexOf"])(n.include,t)>=0)&&e(i,r._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 r=mA[e.brushType](0,n,t);e.__rangeOffset={offset:yA[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(p["each"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(p["each"])(r.coordSyses,(function(r){var i=mA[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(p["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=mA[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?yA[e.brushType](r.values,i.offset,_A(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(p["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Vy(r),isTargetByCursor:Ky(r,e,n.coordSysModel),getLinearBrushOtherExtent:Wy(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(p["indexOf"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=dA(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<pA.length;s++)if(pA[s](r,o))return o}return!0},e}();function fA(e){return e[0]>e[1]&&e.reverse(),e}function dA(e,t){return Object(j["s"])(e,t,{includeMainTypes:uA})}var hA={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Object(p["createHashMap"])(),a={},s={};(n||r||i)&&(Object(p["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(p["each"])(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(p["each"])(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];Object(p["each"])(i.getCartesians(),(function(e,t){(Object(p["indexOf"])(n,e.getAxis("x").model)>=0||Object(p["indexOf"])(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:gA.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(p["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:gA.geo})}))}},pA=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],gA={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform($n["getTransform"](e)),t}},mA={lineX:Object(p["curry"])(vA,0),lineY:Object(p["curry"])(vA,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[fA([i[0],o[0]]),fA([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(p["map"])(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function vA(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=fA(Object(p["map"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var yA={lineX:Object(p["curry"])(bA,0),lineY:Object(p["curry"])(bA,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(p["map"])(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function bA(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function _A(e,t){var n=wA(e),r=wA(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function wA(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var xA=cA,OA=n("2f1f"),SA=p["each"],CA=Object(j["p"])("toolbox-dataZoom_"),kA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Hy(n.getZr()),this._brushController.on("brush",p["bind"](this._onBrush,this)).mount()),DA(e,t,this,r,n),TA(e,t)},t.prototype.onclick=function(e,t,n){EA[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={},r=this.ecModel;this._brushController.updateCovers([]);var i=new xA(AA(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[r],n,t)}})),nA(r,n),this._dispatchZoomAction(n)}function o(e,t,i){var o=t.getAxis(e),s=o.model,l=a(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=Tv(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];SA(e,(function(e,n){t.push(p["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}(wE),EA={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(rA(this.ecModel))}};function AA(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 TA(e,t){e.setIconStatus("back",oA(t)>1?"emphasis":"normal")}function DA(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new xA(AA(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(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()})}Object(OA["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=AA(r),a=Object(j["s"])(e,o);return SA(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),SA(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:CA+t+o};a[n]=o,i.push(a)}}));var MA=kA;function PA(e){e.registerComponentModel(kE),e.registerComponentView(ME),OE("saveAsImage",IE),OE("magicType",BE),OE("dataView",JE),OE("dataZoom",MA),OE("restore",lA),b(_E)}var IA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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}(d["a"]),jA=IA;function LA(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function NA(e){if(sr["a"].domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var RA=NA(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),BA=NA(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function $A(e,t){if(!e)return t;t=Object(Qe["j"])(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function FA(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var zA=$A(BA,"transition"),qA=$A(RA,"transform"),UA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(sr["a"].transform3dSupported?"will-change:transform;":"");function HA(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function VA(e,t,n){if(!Object(p["isString"])(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Object(Qe["c"])(t);var o,a=HA(n),s=Math.max(1.5*Math.round(i),6),l="",u=qA+":";Object(p["indexOf"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,f=s+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2))/100;l+=";"+a+":-"+h+"px";var g=t+" solid "+i+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+m.join("")+'"></div>'}function WA(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=sr["a"].transformSupported?","+qA+r:",left"+r+",top"+r),zA+":"+i}function KA(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!sr["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=sr["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+qA+":"+a+";":[["top",0],["left",0],[RA,a]]}function GA(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(p["each"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function YA(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Object(yc["d"])(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(WA(i,n)),o&&r.push("background-color:"+o),Object(p["each"])(["width","color","radius"],(function(t){var n="border-"+t,i=Object(Qe["j"])(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(GA(c)),null!=f&&r.push("padding:"+Object(Qe["i"])(f).join("px ")+"px"),r.join(";")+";"}function XA(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Object(ir["d"])(e,a,n,r,i)}else{e[0]=r,e[1]=i;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 ZA=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,sr["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(Object(p["isString"])(i)?document.querySelector(i):Object(p["isDom"])(i)?i:Object(p["isFunction"])(i)&&i(e.getDom()));XA(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();Object(jc["e"])(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=FA(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=UA+YA(e,!this._firstShow,this._longHide)+KA(i[0],i[1],!0)+"border-color:"+Object(Qe["c"])(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Object(p["isString"])(i)&&"item"===n.get("trigger")&&!LA(n)&&(a=VA(n,r,i)),Object(p["isString"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(p["isArray"])(e)||(e=[e]);for(var s=0;s<e.length;s++)Object(p["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(XA(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,i=KA(n[0],n[1]);Object(p["each"])(i,(function(e){r[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",sr["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(p["bind"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),QA=ZA,JA=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),nT(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,r,i){var o=this;p["isObject"](e)&&Object(vp["c"])(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Un["a"]({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(yc["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),p["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),p["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=tT(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 r=this._styleCoord;nT(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=eT(i.borderWidth||0),a=tT(i);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(p["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 eT(e){return Math.max(0,e)}function tT(e){var t=eT(e.shadowBlur||0),n=eT(e.shadowOffsetX||0),r=eT(e.shadowOffsetY||0);return{left:eT(t-n),right:eT(t+n),top:eT(t-r),bottom:eT(t+r)}}function nT(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var rT=JA,iT=n("38a2"),oT=new Xn["a"]({shape:{x:-1,y:-1,width:2,height:2}}),aT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){if(!sr["a"].node&&t.getDom()){var n=e.getComponent("tooltip"),r=this._renderMode=Object(j["i"])(n.get("renderMode"));this._tooltipContent="richText"===r?new rT(t):new QA(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!sr["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Object(ce["b"])(this,"_updatePosition",50,"fixRate"):Object(ce["a"])(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");MS("itemTooltip",this._api,Object(p["bind"])((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!sr["a"].node&&n.getDom()){var i=lT(r,n);this._ticket="";var o=r.dataByCoordSys,a=hT(r,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:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=oT;l.x=r.x,l.y=r.y,l.update(),Object(L["a"])(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=FS(r,t),c=u.point[0],f=u.point[1];null!=c&&null!=f&&this._tryShow({offsetX:c,offsetY:f,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(lT(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=sT([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,a,s=Object(L["a"])(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Object(Pd["a"])(n,(function(e){return null!=Object(L["a"])(e).dataIndex?(o=e,!0):null!=Object(L["a"])(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(p["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=sT([t.tooltipOption],r),a=this._renderMode,s=[],l=Object(yc["c"])("section",{blocks:[],noHeader:!0}),u=[],c=new yc["a"];Object(p["each"])(e,(function(e){Object(p["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=mS(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),f=Object(yc["c"])("section",{header:o,noHeader:!Object(p["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(f),Object(p["each"])(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,g=d.getDataParams(h);if(!(g.dataIndex<0)){g.axisDim=e.axisDim,g.axisIndex=e.axisIndex,g.axisType=e.axisType,g.axisId=e.axisId,g.axisValue=rn(t.axis,{value:i}),g.axisValueLabel=o,g.marker=c.makeTooltipMarker("item",Object(Qe["c"])(g.color),a);var m=Object(iT["b"])(d.formatTooltip(h,!0,null)),v=m.frag;if(v){var y=sT([d],r).get("valueFormatter");f.blocks.push(y?Object(p["extend"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),s.push(g)}}))}}))})),l.blocks.reverse(),u.reverse();var f=t.position,d=o.get("order"),h=Object(yc["b"])(l,c,a,d,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var g="richText"===a?"\n\n":"<br/>",m=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,f,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,m,s,Math.random()+"",i[0],i[1],f,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Object(L["a"])(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),f=this._renderMode,d=e.positionDefault,h=sT([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=h.get("trigger");if(null==g||"item"===g){var m=s.getDataParams(l,u),v=new yc["a"];m.marker=v.makeTooltipMarker("item",Object(Qe["c"])(m.color),f);var y=Object(iT["b"])(s.formatTooltip(l,!1,u)),b=h.get("order"),_=h.get("valueFormatter"),w=y.frag,x=w?Object(yc["b"])(_?Object(p["extend"])({valueFormatter:_},w):w,v,f,b,r.get("useUTC"),h.get("textStyle")):y.text,O="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,x,m,O,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,i=Object(L["a"])(t),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(p["isString"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=Object(p["clone"])(a),a.content=Object(ir["a"])(a.content));var u=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:a.content});var f=e.positionDefault,d=sT(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),g=Math.random()+"",m=new yc["a"];this._showOrMove(d,(function(){var n=Object(p["clone"])(d.get("formatterParams")||{});this._showTooltipContent(d,h,n,g,e.offsetX,e.offsetY,e.position,t,m)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var f=t,d=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")),h=d.color;if(c)if(Object(p["isString"])(c)){var g=e.ecModel.get("useUTC"),m=Object(p["isArray"])(n)?n[0]:n,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;f=c,v&&(f=Object(wt["h"])(m.axisValue,f,g)),f=Object(Qe["e"])(f,n,!0)}else if(Object(p["isFunction"])(c)){var y=Object(p["bind"])((function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,f=c(n,r,y)}else f=c;u.setContent(f,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(p["isArray"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(p["isArray"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),f=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(p["isFunction"])(t)&&(t=t([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(p["isArray"])(t))n=Object(Fe["q"])(t[0],s),r=Object(Fe["q"])(t[1],l);else if(Object(p["isObject"])(t)){var h=t;h.width=u[0],h.height=u[1];var g=Object(dn["g"])(h,{width:s,height:l});n=g.x,r=g.y,c=null,f=null}else if(Object(p["isString"])(t)&&a){var m=fT(t,d,u,e.get("borderWidth"));n=m[0],r=m[1]}else{m=uT(n,r,i,s,l,c?null:20,f?null:20);n=m[0],r=m[1]}if(c&&(n-=dT(c)?u[0]/2:"right"===c?u[0]:0),f&&(r-=dT(f)?u[1]/2:"bottom"===f?u[1]:0),LA(e)){m=cT(n,r,i,s,l);n=m[0],r=m[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(p["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(p["each"])(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,i&&Object(p["each"])(a,(function(e,t){var n=s[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(p["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!sr["a"].node&&t.getDom()&&(Object(ce["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),RS("itemTooltip",t))},t.type="tooltip",t}(c["a"]);function sT(e,t,n){var r,i=t.ecModel;n?(r=new _["a"](n,i,i),r=new _["a"](t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof _["a"]&&(a=a.get("tooltip",!0)),Object(p["isString"])(a)&&(a={formatter:a}),a&&(r=new _["a"](a,r,i)))}return r}function lT(e,t){return e.dispatchAction||Object(p["bind"])(t.dispatchAction,t)}function uT(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function cT(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function fT(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function dT(e){return"center"===e||"middle"===e}function hT(e,t,n){var r=Object(j["t"])(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Object(j["v"])(t,i,r.get(i),{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=Object(L["a"])(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var pT=aT;function gT(e){b(JS),e.registerComponentModel(jA),e.registerComponentView(pT),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},p["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},p["noop"])}var mT=["rect","polygon","keep","clear"];function vT(e,t){var n=Object(j["r"])(e?e.brush:[]);if(n.length){var r=[];p["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;p["isArray"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),yT(s),t&&!s.length&&s.push.apply(s,mT)}}function yT(e){var t={};p["each"](e,(function(e){t[e]=1})),e.length=0,p["each"](t,(function(t,n){e.push(n)}))}var bT=n("0924"),_T=p["each"];function wT(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function xT(e,t,n){var r={};return _T(t,(function(t){var o=r[t]=i();_T(e[t],(function(e,r){if(Lp.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new Lp(i),"opacity"===r&&(i=p["clone"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new Lp(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function OT(e,t,n){var r;p["each"](n,(function(e){t.hasOwnProperty(e)&&wT(t[e])&&(r=!0)})),r&&p["each"](n,(function(n){t.hasOwnProperty(n)&&wT(t[n])?e[n]=p["clone"](t[n]):delete e[n]}))}function ST(e,t,n,r,i,o){var a,s={};function l(e){return Object(bT["a"])(n,a,e)}function u(e,t){Object(bT["c"])(n,a,e,t)}function c(e,c){a=null==o?e:c;var f=n.getRawDataItem(a);if(!f||!1!==f.visualMap)for(var d=r.call(i,e),h=t[d],p=s[d],g=0,m=p.length;g<m;g++){var v=p[g];h[v]&&h[v].applyVisual(e,l,u)}}p["each"](e,(function(e){var n=Lp.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(c):n.each([o],c)}function CT(e,t,n,r){var i={};return p["each"](e,(function(e){var n=Lp.prepareVisualTypes(t[e]);i[e]=n})),{progress:function(e,o){var a,s;function l(e){return Object(bT["a"])(o,s,e)}function u(e,t){Object(bT["c"])(o,s,e,t)}null!=r&&(a=o.getDimensionIndex(r));var c=o.getStore();while(null!=(s=e.next())){var f=o.getRawDataItem(s);if(!f||!1!==f.visualMap)for(var d=null!=r?c.get(a,s):s,h=n(d),p=t[h],g=i[h],m=0,v=g.length;m<v;m++){var y=g[m];p[y]&&p[y].applyVisual(d,l,u)}}}}}function kT(e){var t=e.brushType,n={point:function(r){return ET[t].point(r,n,e)},rect:function(r){return ET[t].rect(r,n,e)}};return n}var ET={lineX:AT(0),lineY:AT(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])&&Cn(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,l=r[0];return!!(Cn(r,i,o)||Cn(r,i+a,o)||Cn(r,i,o+s)||Cn(r,i+a,o+s)||_t["a"].create(e).contain(l[0],l[1])||Object($n["linePolygonIntersect"])(i,o,i+a,o,r)||Object($n["linePolygonIntersect"])(i,o,i,o+s,r)||Object($n["linePolygonIntersect"])(i+a,o,i+a,o+s,r)||Object($n["linePolygonIntersect"])(i,o+s,i+a,o+s,r))||void 0}}};function AT(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range,o=t[e];return TT(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),TT(s[0],a)||TT(s[1],a)||TT(a[0],s)||TT(a[1],s)}}}}function TT(e,t){return t[0]<=e&&e<=t[1]}var DT=["inBrush","outOfBrush"],MT="__ecBrushSelect",PT="__ecInBrushSelectEvent";function IT(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new xA(t.option,e);n.setInputRanges(t.areas,e)}))}function jT(e,t,n){var r,i,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),IT(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:p["clone"](t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,u=[],c=[],f=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var h=p["map"](t.areas,(function(e){var t=$T[e.brushType],n=p["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=kT(n),n})),g=xT(t.option,DT,(function(e){e.mappingMethod="fixed"}));function m(e){return"all"===l||!!u[e]}function v(e){return!!e.length}function y(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),m(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(c[t]=1)}))}function b(n,r,i){if(n.brushSelector&&!BT(t,r)&&(p["each"](h,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),d=d||v(i)})),m(r)&&v(i))){var o=n.getData();o.each((function(e){RT(n,i,o,e)&&(c[e]=1)}))}}p["isArray"](l)&&p["each"](l,(function(e){u[e]=1})),e.eachSeries((function(e,t){var n=f[t]=[];"parallel"===e.subType?y(e,t):b(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=f[t],i=e.getData(),o=m(t)?function(e){return c[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return RT(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(m(t)?d:v(r))&&ST(DT,g,i,o)}))})),LT(t,r,i,o,n)}function LT(e,t,n,r,i){if(i){var o=e.getZr();if(!o[PT]){o[MT]||(o[MT]=NT);var a=ce["b"](o,MT,n,t);a(e,r)}}}function NT(e,t){if(!e.isDisposed()){var n=e.getZr();n[PT]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[PT]=!1}}function RT(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}function BT(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(p["isArray"](n)?p["indexOf"](n,t)<0:t!==n)}var $T={rect:function(e){return FT(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];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&&FT(t)}};function FT(e){return new _t["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var zT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Hy(t.getZr())).on("brush",p["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){IT(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$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:p["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:p["clone"](n),$from:t})},t.type="brush",t}(c["a"]),qT=zT,UT="#ddd",HT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(Pe["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&OT(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:UT},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=p["map"](e,(function(e){return VT(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=VT(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}(d["a"]);function VT(e,t){return p["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var WT=HT,KT=["rect","polygon","lineX","lineY","keep","clear"],GT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,p["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"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 p["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=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?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:KT.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}(wE),YT=GT;function XT(e){e.registerComponentView(qT),e.registerComponentModel(WT),e.registerPreprocessor(vT),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,jT),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"},p["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},p["noop"]),OE("brush",YT)}var ZT=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 Object(Pe["a"])(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}(d["a"]),QT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=p["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new Un["a"]({style:Object(hn["c"])(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),f=new Un["a"]({style:Object(hn["c"])(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),h=e.get("sublink"),g=e.get("triggerEvent",!0);l.silent=!d&&!g,f.silent=!h&&!g,d&&l.on("click",(function(){Object(Qe["k"])(d,"_"+e.get("target"))})),h&&f.on("click",(function(){Object(Qe["k"])(h,"_"+e.get("subtarget"))})),Object(L["a"])(l).eventData=Object(L["a"])(f).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(f);var m=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Object(dn["g"])(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:a,verticalAlign:s};l.setStyle(b),f.setStyle(b),m=r.getBoundingRect();var _=y.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new Xn["a"]({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type="title",t}(c["a"]);function JT(e){e.registerComponentModel(ZT),e.registerComponentView(QT)}var eD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(Pe["a"])(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||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(p["each"])(n,(function(t,n){var r,o=Object(j["e"])(Object(j["h"])(t),"");Object(p["isObject"])(t)?(r=Object(p["clone"])(t),r.value=n):r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new ae([{name:"value",type:o}],this);a.initData(e,i)},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}(d["a"]),tD=eD,nD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(Ps["d"])(tD.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}(tD);Object(p["mixin"])(nD,iT["a"].prototype);var rD=nD,iD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="timeline",t}(c["a"]),oD=iD,aD=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return Object(Pe["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ar),sD=aD,lD=Math.PI,uD=Object(j["o"])(),cD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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 r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return Object(yc["c"])("nameValue",{noName:!0,value:t})},Object(p["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,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,r=e.get(["label","position"]),i=e.get("orient"),o=dD(e,t);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":Object(p["isString"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:lD/2},d="vertical"===i?o.height:o.width,h=e.getModel("controlStyle"),g=h.get("show",!0),m=g?h.get("itemSize"):0,v=g?h.get("itemGap"):0,y=m+v,b=e.get(["label","rotate"])||0;b=b*lD/180;var _=h.get("position",!0),w=g&&h.get("showPlayBtn",!0),x=g&&h.get("showPrevBtn",!0),O=g&&h.get("showNextBtn",!0),S=0,C=d;"left"===_||"bottom"===_?(w&&(a=[0,0],S+=y),x&&(s=[S,0],S+=y),O&&(l=[C-m,0],C-=y)):(w&&(a=[C-m,0],C-=y),x&&(s=[0,0],S+=y),O&&(l=[C-m,0],C-=y));var k=[S,C];return e.get("inverse")&&k.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:f[i],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:k,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=se["create"](),a=i.x,s=i.y+i.height;se["translate"](o,o,[-a,-s]),se["rotate"](o,o,-lD/2),se["translate"](o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),f=[n.x,n.y],d=[r.x,r.y];d[0]=f[0]=l[0][0];var h=e.labelPosOpt;if(null==h||Object(p["isString"])(h)){var g="+"===h?0:1;y(f,u,l,1,g),y(d,c,l,1,1-g)}else{g=h>=0?0:1;y(f,u,l,1,g),d[1]=f[1]+h}function m(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 y(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(f),r.setPosition(d),n.rotation=r.rotation=e.rotation,m(n),m(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=fD(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new sD("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new zn["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Zn["a"]({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(p["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Zn["a"]({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(p["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(p["each"])(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),f={x:a,y:0,onclick:Object(p["bind"])(i._changeTimeline,i,e.value)},d=pD(s,l,t,f);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Object(gn["o"])(d);var h=Object(L["a"])(d);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,i._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(p["each"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),f=n.dataToCoord(r.tickValue),d=new Un["a"]({x:f,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(p["bind"])(i._changeTimeline,i,o),silent:!1,style:Object(hn["c"])(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(hn["c"])(u),d.ensureState("progress").style=Object(hn["c"])(c),t.add(d),Object(gn["o"])(d),uD(d).dataIndex=o,i._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(e,n,l,u){if(e){var c=Object(Vt["g"])(Object(p["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),f=[0,-c/2,c,c],d=hD(r,n+"Icon",f,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,t.add(d),Object(gn["o"])(d)}}c(e.nextBtnPosition,"next",Object(p["bind"])(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",Object(p["bind"])(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",Object(p["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(p["bind"])(s._handlePointerDrag,s),e.ondragend=Object(p["bind"])(s._handlePointerDragend,s),gD(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){gD(e,s._progressLine,o,n,r)}};this._currentPointer=pD(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],r=this._axis,i=Fe["c"](r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[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 $n["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=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 r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",uD(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(oD);function fD(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ze({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new It({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new tt}}function dD(e,t){return dn["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function hD(e,t,n,r){var i=r.style,o=$n["createIcon"](e.get(["controlStyle",t]),r||{},new _t["a"](n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function pD(e,t,n,r,i,o){var a=t.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=e.get("symbol");i=Object(pn["a"])(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),r=Object(p["merge"])({rectHover:!0,z2:100},r,!0);var u=Object(pn["c"])(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Object(pn["b"])(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function gD(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.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 mD=cD;function vD(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(p["defaults"])({currentIndex:r.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 yD(e){var t=e&&e.timeline;p["isArray"](t)||(t=t?[t]:[]),p["each"](t,(function(e){e&&bD(e)}))}function bD(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),_D(e),wD(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});wD(r,"position")||(r.position=e.controlPosition),"none"!==r.position||wD(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}p["each"](e.data||[],(function(e){p["isObject"](e)&&!p["isArray"](e)&&(!wD(e,"value")&&wD(e,"name")&&(e.value=e.name),_D(e))}))}function _D(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};p["each"](r,(function(e,t){o[t]||wD(i,t)||(i[t]=e)})),n.label&&!wD(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function wD(e,t){return e.hasOwnProperty(t)}function xD(e){e.registerComponentModel(rD),e.registerComponentView(mD),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),vD(e),e.registerPreprocessor(yD)}function OD(e,t){if(!e)return!1;for(var n=Object(p["isArray"])(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function SD(e){Object(j["f"])(e,"label",["show"])}var CD=Object(j["o"])(),kD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(sr["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,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=CD(e)[i];n&&n.data?(o?o._mergeOption(n,t,!0):(r&&SD(n),p["each"](n.data,(function(e){e instanceof Array?(SD(e[0]),SD(e[1])):SD(e)})),o=this.createMarkerModelFromSeries(n,this,t),p["extend"](o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),CD(e)[i]=o):CD(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return Object(yc["c"])("section",{header:this.name,blocks:[Object(yc["c"])("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=iT["a"].prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return CD(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(d["a"]);p["mixin"](kD,iT["a"].prototype);var ED=kD,AD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(ED),TD=AD,DD=n("b7d9");function MD(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function PD(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function ID(e,t,n,r,i,o){var a=[],s=Se(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=zD(t,l,e),c=t.indicesOfNearest(l,u)[0];a[i]=t.get(n,c),a[o]=t.get(l,c);var f=t.get(r,c),d=Fe["h"](t.get(r,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,f]}var jD={min:Object(p["curry"])(ID,"min"),max:Object(p["curry"])(ID,"max"),average:Object(p["curry"])(ID,"average"),median:Object(p["curry"])(ID,"median")};function LD(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!PD(t)&&!Object(p["isArray"])(t.coord)&&Object(p["isArray"])(i)){var o=ND(t,n,r,e);if(t=Object(p["clone"])(t),t.type&&jD[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(p["indexOf"])(i,o.baseAxis.dim),s=Object(p["indexOf"])(i,o.valueAxis.dim),l=jD[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(p["isArray"])(i))for(var u=t.coord,c=0;c<2;c++)jD[u[c]]&&(u[c]=zD(n,n.mapDimension(i[c]),u[c]));else t.coord=[];return t}}function ND(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(RD(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function RD(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function BD(e,t){return!(e&&e.containData&&t.coord&&!MD(t))||e.containData(t.coord)}function $D(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!MD(t)&&!MD(n))||e.containZone(t.coord,n.coord)}function FD(e,t){return e?function(e,n,r,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Object(DD["d"])(o,t[i])}:function(e,n,r,i){return Object(DD["d"])(e.value,t[i])}}function zD(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var qD=Object(j["o"])(),UD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(p["createHashMap"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){qD(e).keep=!1})),t.eachSeries((function(e){var i=ED.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!qD(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){qD(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(p["each"])(e,(function(e){var r=ED.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?Object(gn["q"])(e):Object(gn["B"])(e))}))}}))},t.type="marker",t}(c["a"]),HD=UD;function VD(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=Fe["q"](a.get("x"),n.getWidth()),l=Fe["q"](a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)}))}var WD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ED.getMarkerModelFromSeries(e,"markPoint");t&&(VD(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new qa),u=KD(i,e,t);t.setData(u),VD(t.getData(),e,r),u.each((function(e){var n=u.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(p["isFunction"])(r)||Object(p["isFunction"])(i)||Object(p["isFunction"])(o)||Object(p["isFunction"])(s)){var c=t.getRawValue(e),f=t.getDataParams(e);Object(p["isFunction"])(r)&&(r=r(c,f)),Object(p["isFunction"])(i)&&(i=i(c,f)),Object(p["isFunction"])(o)&&(o=o(c,f)),Object(p["isFunction"])(s)&&(s=s(c,f))}var d=n.getModel("itemStyle").getItemStyle(),h=Object(bT["b"])(a,"color");d.fill||(d.fill=h),u.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Object(L["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(HD);function KD(e,t,n){var r;r=e?Object(p["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(p["extend"])(Object(p["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new ae(r,n),o=Object(p["map"])(n.get("data"),Object(p["curry"])(LD,t));e&&(o=Object(p["filter"])(o,Object(p["curry"])(BD,e)));var a=FD(!!e,r);return i.initData(o,null,a),i}var GD=WD;function YD(e){e.registerComponentModel(TD),e.registerComponentView(GD),e.registerPreprocessor((function(e){OD(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var XD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(ED),ZD=XD,QD=Object(j["o"])(),JD=function(e,t,n,r){var i,o=e.getData();if(Object(p["isArray"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=Object(p["retrieve"])(r.yAxis,r.xAxis);else{var u=ND(r,o,t,e);s=u.valueAxis;var c=Ce(o,u.valueDataDim);l=zD(o,c,a)}var f="x"===s.dim?0:1,d=1-f,h=Object(p["clone"])(r),g={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,g.coord[d]=1/0;var m=n.get("precision");m>=0&&Object(p["isNumber"])(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=g.coord[f]=l,i=[h,g,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[LD(e,i[0]),LD(e,i[1]),Object(p["extend"])({},i[2])];return v[2].type=v[2].type||null,Object(p["merge"])(v[2],v[0]),Object(p["merge"])(v[2],v[1]),v};function eM(e){return!isNaN(e)&&!isFinite(e)}function tM(e,t,n,r){var i=1-e,o=r.dimensions[e];return eM(t[i])&&eM(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function nM(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(tM(1,n,r,e)||tM(0,n,r,e)))return!0}return BD(e,t[0])&&BD(e,t[1])}function rM(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Fe["q"](s.get("x"),i.getWidth()),u=Fe["q"](s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);o=a.dataToPoint([f,d])}if(os(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;eM(e.get(c[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):eM(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var iM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ED.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=QD(t).from,o=QD(t).to;i.each((function(t){rM(i,t,!0,e,n),rM(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new cm);this.group.add(l.group);var u=oM(i,e,t),c=u.from,f=u.to,d=u.line;QD(t).from=c,QD(t).to=f,t.setData(d);var h=t.get("symbol"),g=t.get("symbolSize"),m=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,i){var o=t.getItemModel(n);rM(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Object(bT["b"])(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(p["retrieve2"])(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Object(p["retrieve2"])(o.get("symbolRotate",!0),m[i?0:1]),symbolSize:Object(p["retrieve2"])(o.get("symbolSize"),g[i?0:1]),symbol:Object(p["retrieve2"])(o.get("symbol",!0),h[i?0:1]),style:s})}Object(p["isArray"])(h)||(h=[h,h]),Object(p["isArray"])(g)||(g=[g,g]),Object(p["isArray"])(m)||(m=[m,m]),Object(p["isArray"])(v)||(v=[v,v]),u.from.each((function(e){y(c,e,!0),y(f,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[c.getItemLayout(e),f.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:f.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(e,"symbolOffset"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),u.line.eachItemGraphicEl((function(e){Object(L["a"])(e).dataModel=t,e.traverse((function(e){Object(L["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(HD);function oM(e,t,n){var r;r=e?Object(p["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(p["extend"])(Object(p["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new ae(r,n),o=new ae(r,n),a=new ae([],n),s=Object(p["map"])(n.get("data"),Object(p["curry"])(JD,t,e,n));e&&(s=Object(p["filter"])(s,Object(p["curry"])(nM,e)));var l=FD(!!e,r);return i.initData(Object(p["map"])(s,(function(e){return e[0]})),null,l),o.initData(Object(p["map"])(s,(function(e){return e[1]})),null,l),a.initData(Object(p["map"])(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var aM=iM;function sM(e){e.registerComponentModel(ZD),e.registerComponentView(aM),e.registerPreprocessor((function(e){OD(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var lM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}(ED),uM=lM,cM=Object(j["o"])(),fM=function(e,t,n,r){var i=r[0],o=r[1];if(i&&o){var a=LD(e,i),s=LD(e,o),l=a.coord,u=s.coord;l[0]=Object(p["retrieve"])(l[0],-1/0),l[1]=Object(p["retrieve"])(l[1],-1/0),u[0]=Object(p["retrieve"])(u[0],1/0),u[1]=Object(p["retrieve"])(u[1],1/0);var c=Object(p["mergeAll"])([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function dM(e){return!isNaN(e)&&!isFinite(e)}function hM(e,t,n,r){var i=1-e;return dM(t[i])&&dM(n[i])}function pM(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return os(e,"cartesian2d")?!(!n||!r||!hM(1,n,r,e)&&!hM(0,n,r,e))||$D(e,i,o):BD(e,i)||BD(e,o)}function gM(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=Fe["q"](s.get(n[0]),i.getWidth()),u=Fe["q"](s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];"x0"===n[0]?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],"y0"===n[1]?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],o=r.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(os(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);dM(g)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):dM(m)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var mM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=ED.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(p["map"])(mM,(function(i){return gM(r,t,i,e,n)}));r.setItemLayout(t,i);var o=r.getItemGraphicEl(t);o.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new zn["a"]});this.group.add(l.group),this.markKeep(l);var u=yM(i,e,t);t.setData(u),u.each((function(t){var n=Object(p["map"])(mM,(function(n){return gM(u,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),f=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],d=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];Fe["c"](f),Fe["c"](d);var h=!(l[0]>f[1]||l[1]<f[0]||c[0]>d[1]||c[1]<d[0]),g=!h;u.setItemLayout(t,{points:n,allClipped:g});var m=u.getItemModel(t).getModel("itemStyle").getItemStyle(),v=Object(bT["b"])(a,"color");m.fill||(m.fill=v,Object(p["isString"])(m.fill)&&(m.fill=ue["modifyAlpha"](m.fill,.4))),m.stroke||(m.stroke=v),u.setItemVisual(t,"style",m)})),u.diff(cM(l).data).add((function(e){var t=u.getItemLayout(e);if(!t.allClipped){var n=new Gn["a"]({shape:{points:t.points}});u.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var r=cM(l).data.getItemGraphicEl(n),i=u.getItemLayout(e);i.allClipped?r&&l.group.remove(r):(r?Fn["h"](r,{shape:{points:i.points}},t,e):r=new Gn["a"]({shape:{points:i.points}}),u.setItemGraphicEl(e,r),l.group.add(r))})).remove((function(e){var t=cM(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),u.eachItemGraphicEl((function(e,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");e.useStyle(u.getItemVisual(n,"style")),Object(hn["g"])(e,Object(hn["e"])(r),{labelFetcher:t,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(p["isString"])(i.fill)?ue["modifyAlpha"](i.fill,1):"#000"}),Object(gn["I"])(e,r),Object(gn["J"])(e,null,null,r.get(["emphasis","disabled"])),Object(L["a"])(e).dataModel=t})),cM(l).data=u,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(HD);function yM(e,t,n){var r,i,o=["x0","y0","x1","y1"];if(e){var a=Object(p["map"])(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return Object(p["extend"])(Object(p["extend"])({},r),{name:e,ordinalMeta:null})}));i=Object(p["map"])(o,(function(e,t){return{name:e,type:a[t%2].type}})),r=new ae(i,n)}else i=[{name:"value",type:"float"}],r=new ae(i,n);var s=Object(p["map"])(n.get("data"),Object(p["curry"])(fM,t,e,n));e&&(s=Object(p["filter"])(s,Object(p["curry"])(pM,e)));var l=e?function(e,t,n,r){var o=e.coord[Math.floor(r/2)][r%2];return Object(DD["d"])(o,i[r])}:function(e,t,n,r){return Object(DD["d"])(e.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var bM=vM;function _M(e){e.registerComponentModel(uM),e.registerComponentView(bM),e.registerPreprocessor((function(e){OD(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var wM=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},xM=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 Object(Pe["a"])(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"]),p["isArray"](t)&&p["each"](t,(function(e,r){p["isString"](e)&&(e={type:e}),t[r]=p["merge"](e,wM(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 r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(s)),s.length?t=t.concat(s):i=!0}else i=!0;i&&Object(j["n"])(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=p["createHashMap"](),o=p["map"](r,(function(e){return(p["isString"](e)||p["isNumber"](e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new _["a"](e,this,this.ecModel))}),this);this._data=p["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 r=this._data;p["each"](r,(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;p["each"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;p["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])&&p["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}(d["a"]),OM=xM,SM=p["curry"],CM=p["each"],kM=zn["a"],EM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(Pe["a"])(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new kM),this.group.add(this._selectorGroup=new kM),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 r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="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(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),f=dn["g"](l,u,c),d=this.layoutInner(e,i,f,r,a,s),h=dn["g"](p["defaults"]({width:d.width,height:d.height},l),u,c);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AE(d,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,r,i,o,a){var s=this.getContentGroup(),l=p["createHashMap"](),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),CM(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var f=new kM;return f.newline=!0,void s.add(f)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var h=d.getData(),g=h.getVisual("legendLineStyle")||{},m=h.getVisual("legendIcon"),v=h.getVisual("style"),y=this._createItem(d,a,o,i,t,e,g,v,m,u,r);y.on("click",SM(DM,a,null,r,c)).on("mouseover",SM(PM,d.name,null,r,c)).on("mouseout",SM(IM,d.name,null,r,c)),n.ssr&&y.eachChild((function(e){var t=Object(L["a"])(e);t.seriesIndex=d.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var f=s.legendVisualProvider;if(!f.containName(a))return;var d=f.indexOfName(a),h=f.getItemVisual(d,"style"),g=f.getItemVisual(d,"legendIcon"),m=Object(ue["parse"])(h.fill);m&&0===m[3]&&(m[3]=.2,h=p["extend"](p["extend"]({},h),{fill:Object(ue["stringify"])(m,"rgba")}));var v=this._createItem(s,a,o,i,t,e,{},h,g,u,r);v.on("click",SM(DM,null,a,r,c)).on("mouseover",SM(PM,null,a,r,c)).on("mouseout",SM(IM,null,a,r,c)),n.ssr&&v.eachChild((function(e){var t=Object(L["a"])(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();CM(e,(function(e){var r=e.type,i=new Un["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Object(hn["g"])(i,{normal:a,emphasis:s},{defaultText:e.title}),Object(gn["o"])(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var f=e.visualDrawType,d=i.get("itemWidth"),h=i.get("itemHeight"),g=i.isSelected(t),m=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var b=AM(l,r,a,s,f,g,c),_=new kM,w=r.getModel("textStyle");if(!p["isFunction"](e.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;_.add(TM({itemWidth:d,itemHeight:h,icon:l,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else _.add(e.getLegendIcon({itemWidth:d,itemHeight:h,icon:l,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var O="left"===o?d+5:-5,S=o,C=i.get("formatter"),k=t;p["isString"](C)&&C?k=C.replace("{name}",null!=t?t:""):p["isFunction"](C)&&(k=C(t));var E=g?w.getTextColor():r.get("inactiveColor");_.add(new Un["a"]({style:Object(hn["c"])(w,{text:k,x:O,y:h/2,fill:E,align:S,verticalAlign:"middle"},{inheritColor:E})}));var A=new Xn["a"]({shape:_.getBoundingRect(),style:{fill:"transparent"}}),T=r.getModel("tooltip");return T.get("show")&&$n["setTooltipConfig"]({el:A,componentModel:i,itemName:t,itemTooltipOption:T.option}),_.add(A),_.eachChild((function(e){e.silent=!0})),A.silent=!u,this.getContentGroup().add(_),Object(gn["o"])(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();dn["b"](e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){dn["b"]("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",g=0===h?"height":"width",m=0===h?"y":"x";"end"===o?f[h]+=l[p]+d:u[h]+=c[p]+d,f[1-h]+=l[g]/2-c[g]/2,s.x=f[0],s.y=f[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+f[1-h]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(c["a"]);function AM(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),CM(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",f=l.getShallow("decal");u.decal=f&&"inherit"!==f?Object(Hf["a"])(f,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function TM(e){var t=e.icon||"roundRect",n=Object(pn["a"])(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 DM(e,t,n,r){IM(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),PM(e,t,n,r)}function MM(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(t=n[r].states.emphasis))r++;return t&&t.hoverLayer}function PM(e,t,n,r){MM(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function IM(e,t,n,r){MM(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var jM=EM;function LM(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 NM(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var a=n.getData();Object(p["each"])(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function RM(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(p["curry"])(NM,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(p["curry"])(NM,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(p["curry"])(NM,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(p["curry"])(NM,"select")),e.registerAction("legendUnSelect","legendunselected",Object(p["curry"])(NM,"unSelect"))}function BM(e){e.registerComponentModel(OM),e.registerComponentView(jM),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,LM),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),RM(e)}var $M=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Object(dn["f"])(t);e.prototype.init.call(this,t,n,r),FM(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),FM(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Object(Ps["d"])(OM.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}(OM);function FM(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Object(dn["h"])(t,n,{type:"box",ignoreSize:!!i})}var zM=$M,qM=zn["a"],UM=["width","height"],HM=["x","y"],VM=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 Object(Pe["a"])(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new qM),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qM)},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,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),f=p["isArray"](c)?c:[c,c];h("pagePrev",0);var d=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",o=$n["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:p["bind"](l._pageGo,l,r,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});o.name=e,u.add(o)}u.add(new Un["a"]({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=UM[s],u=HM[s],c=UM[1-s],f=HM[1-s];i&&dn["b"]("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),g=[-h.x,-h.y],m=p["clone"](n);i&&(m[l]=n[l]-h[l]-d);var v=this._layoutContentAndController(e,r,m,s,l,c,f,u);if(i){if("end"===o)g[s]+=v[l]+d;else{var y=h[l]+d;g[s]-=y,v[u]-=y}v[l]+=h[l]+d,g[1-s]+=v[f]+v[c]/2-h[c]/2,v[c]=Math.max(v[c],h[c]),v[f]=Math.min(v[f],h[f]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;dn["b"](e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),dn["b"]("horizontal",c,e.get("pageButtonItemGap",!0));var f=l.getBoundingRect(),d=c.getBoundingRect(),h=this._showController=f[i]>n[i],g=[-f.x,-f.y];t||(g[r]=l[s]);var m=[0,0],v=[-d.x,-d.y],y=p["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var b=e.get("pageButtonPosition",!0);"end"===b?v[r]+=n[i]-d[i]:m[r]+=d[i]+y}v[1-r]+=f[o]/2-d[o]/2,l.setPosition(g),u.setPosition(m),c.setPosition(v);var _={x:0,y:0};if(_[i]=h?n[i]:f[i],_[o]=Math.max(f[o],d[o]),_[a]=Math.min(0,d[a]+v[1-r]),u.__rectSize=n[i],h){var w={x:0,y:0};w[i]=Math.max(n[i]-d[i]-y,0),w[o]=_[o],u.setClipPath(new Xn["a"]({shape:w})),u.__rectSize=w[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&Fn["h"](l,{x:x.contentPosition[0],y:x.contentPosition[1]},h?e:null),this._updatePageInfoView(e,x),_},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;p["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=t[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",p["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=UM[i],a=HM[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,f=c?1:0,d={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var h=y(u);d.contentPosition[i]=-h.s;for(var p=s+1,g=h,m=h,v=null;p<=c;++p)v=y(l[p]),(!v&&m.e>g.s+r||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=s-1,g=h,m=h,v=null;p>=-1;--p)v=y(l[p]),v&&b(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(jM),WM=VM;function KM(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 GM(e){b(BM),e.registerComponentModel(zM),e.registerComponentView(WM),KM(e)}function YM(e){b(BM),b(GM)}var XM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(Ps["d"])(rE.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(rE),ZM=XM,QM=Object(j["o"])();function JM(e,t,n){QM(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function eP(e,t){for(var n=QM(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||tP(n,a))}}}function tP(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function nP(e,t){var n={model:t,containsPoint:Object(p["curry"])(iP,t),dispatchAction:Object(p["curry"])(rP,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Hc(e.getZr());return Object(p["each"])(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function rP(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function iP(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function oP(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function aP(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=QM(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(p["createHashMap"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=Jk(e);Object(p["each"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,nP(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(p["createHashMap"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=oP(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),ce["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else tP(r,e)}))}))}var sP=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(Pe["a"])(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),JM(r,t,{pan:Object(p["bind"])(lP.pan,this),zoom:Object(p["bind"])(lP.zoom,this),scrollMove:Object(p["bind"])(lP.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eP(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(sE),lP={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=cP[t](null,[r.originX,r.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],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Tv(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:uP((function(e,t,n,r,i,o){var a=cP[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:uP((function(e,t,n,r,i,o){var a=cP[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function uP(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);return Tv(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var cP={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.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,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=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=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.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}},fP=sP;function dP(e){bE(e),e.registerComponentModel(ZM),e.registerComponentView(fP),aP(e)}var hP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(Ps["d"])(rE.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}(rE),pP=hP,gP=Xn["a"],mP=7,vP=1,yP=30,bP=7,_P="horizontal",wP="vertical",xP=5,OP=["line","bar","candlestick","scatter"],SP={easing:"cubicOut",duration:100,delay:0},CP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(Pe["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(p["bind"])(this._onBrush,this),this._onBrushEnd=Object(p["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),ce["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.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(){ce["a"](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 zn["a"];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"),r=n?bP:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===_P?{right:o.width-i.x-i.width,top:o.height-yP-mP-r,width:i.width,height:yP}:{right:mP,top:i.y,width:yP,height:i.height},s=dn["f"](e.option);Object(p["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=dn["g"](s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===wP&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_P||i?n===_P&&i?{scaleY:a?1:-1,scaleX:-1}:n!==wP||i?{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,r=e.get("brushSelect");n.add(new gP({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new gP({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(p["bind"])(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var f,d=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],g=[],m=h[1]/(i.count()-1),v=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:Object(Fe["m"])(e,u,d,!0);n&&!f&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&f&&(p.push([v,0]),g.push([v,0])),p.push([v,r]),g.push([v,r]),v+=m,f=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var w=x(1===_);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function x(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new zn["a"],r=new Gn["a"]({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Yn["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(p["each"])(a,(function(e){if(!n&&!(!0!==t&&Object(p["indexOf"])(OP,e.get("type"))<0)){var a,s=r.getComponent(Zk(i),o).axis,l=kP(i),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new gP({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new gP({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:vP,fill:"rgba(0,0,0,0)"}})),Object(p["each"])([0,1],(function(t){var o=a.get("handleIcon");!pn["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Object(pn["a"])(o,-1,0,2,2,null,!0);s.attr({cursor:EP(this._orient),draggable:!0,drift:Object(p["bind"])(this._onDragMove,this,t),ondragend:Object(p["bind"])(this._onDragEnd,this),onmouseover:Object(p["bind"])(this._showDataInfo,this,!0),onmouseout:Object(p["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Object(Fe["q"])(u,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(),Object(gn["o"])(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var f=a.getModel("textStyle");e.add(r[t]=new Un["a"]({silent:!0,invisible:!0,style:Object(hn["c"])(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var f=c;if(u){var d=Object(Fe["q"])(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new Xn["a"]({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),g=.8*d,m=t.moveHandleIcon=Object(pn["a"])(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=o[1]+d/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(d,10));f=t.moveZone=new Xn["a"]({invisible:!0,shape:{y:o[1]-v,height:d+v}}),f.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(m),i.add(f)}f.attr({draggable:!0,cursor:EP(this._orient),drift:Object(p["bind"])(this._onDragMove,this,"all"),ondragstart:Object(p["bind"])(this._showDataInfo,this,!0),ondragend:Object(p["bind"])(this._onDragEnd,this),onmouseover:Object(p["bind"])(this._showDataInfo,this,!0),onmouseout:Object(p["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Fe["m"])(e[0],[0,100],t,!0),Object(Fe["m"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Tv(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?Object(Fe["m"])(o.minSpan,a,i,!0):null,null!=o.maxSpan?Object(Fe["m"])(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Object(Fe["c"])([Object(Fe["m"])(r[0],i,a,!0),Object(Fe["m"])(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Object(Fe["c"])(n.slice()),i=this._size;Object(p["each"])([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[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,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Xn["a"],u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=Object(Fe["c"])(this._handleEnds.slice());function f(e){var t=$n["getTransform"](n.handles[e].parent,this.group),a=$n["transformDirection"](0===e?"right":"left",t),s=this._handleWidth/2+xP,l=$n["applyTransform"]([c[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:l[0],y:l[1],verticalAlign:i===_P?"middle":a,align:i===_P?a:"center",text:o[e]})}f.call(this,0),f.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=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(i,20));return Object(p["isFunction"])(r)?r(e,o):Object(p["isString"])(r)?r.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,r){this._dragging=!0,jc["g"](r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=$n["applyTransform"]([t,n],i,!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 r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Lr["a"](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,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=Object(Fe["c"])([Object(Fe["m"])(n.x,i,o,!0),Object(Fe["m"])(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(jc["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new gP({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?SP:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=Jk(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(sE);function kP(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function EP(e){return"vertical"===e?"ns-resize":"ew-resize"}var AP=CP;function TP(e){e.registerComponentModel(pP),e.registerComponentView(AP),bE(e)}function DP(e){b(dP),b(TP)}var MP={get:function(e,t,n){var r=p["clone"]((PP[e]||{})[t]);return n&&p["isArray"](r)?r[r.length-1]:r}},PP={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]}},IP=MP,jP=Lp.mapVisual,LP=Lp.eachVisual,NP=p["isArray"],RP=p["each"],BP=Fe["c"],$P=Fe["m"],FP=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 Object(Pe["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&OT(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=p["bind"](e,this),this.controllerVisuals=xT(this.option.controller,t,e),this.targetVisuals=xT(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=j["r"](e),t},t.prototype.eachTargetSeries=function(e,t){p["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),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 r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],p["isArray"](e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return p["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):p["isFunction"](s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(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=BP([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,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);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},r=t.target||(t.target={}),i=t.controller||(t.controller={});p["merge"](r,n),p["merge"](i,n);var o=this.isCategory();function a(n){NP(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 r=e[t],i=e[n];r&&!i&&(i=e[n]={},RP(r,(function(e,t){if(Lp.isValidType(t)){var n=IP.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";RP(this.stateList,(function(i){var s=this.itemSize,l=e[i];l||(l=e[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=t&&p["clone"](t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&p["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=jP(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;LP(u,(function(e){e>c&&(c=e)})),l.symbolSize=jP(u,(function(e){return $P(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},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}(d["a"]),zP=FP,qP=[20,140],UP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(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]=qP[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=qP[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):p["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),p["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=Fe["c"]((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 r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=HP(this,"outOfRange",this.getExtent()),n=HP(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.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]&&i(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(t[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(Ps["d"])(zP.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}(zP);function HP(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var VP=UP,WP=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 Object(Pe["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Qe["i"](t.get("padding")||0),r=e.getBoundingRect();e.add(new Xn["a"]({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.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 r=n.forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var u=i.controllerVisuals[r||i.getValueState(e)],c=Lp.prepareVisualTypes(u);return p["each"](c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),Lp.dependsOn(r,t)&&i&&i.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;dn["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(c["a"]),KP=WP,GP=[["left","right","width"],["top","bottom","height"]];function YP(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=GP[a],l=[0,null,10],u={},c=0;c<3;c++)u[GP[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][a],d=Object(dn["g"])(u,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+.5*d[f[1]]<.5*o[f[1]]?0:1]}function XP(e,t){return p["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var ZP=Fe["m"],QP=p["each"],JP=Math.min,eI=Math.max,tI=12,nI=6,rI=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 Object(Pe["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=p["bind"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=p["bind"](this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.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 r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new Un["a"]({style:Object(hn["c"])(f,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=YP(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new zn["a"];s.add(l),l.add(n.outOfRange=iI()),l.add(n.inRange=iI(null,o?sI(this._orient):null,p["bind"](this._dragHandle,this,"all",!1),p["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Xn["a"]({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=t.textStyleModel.getTextRect("国"),c=eI(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,c,i),this._createHandle(t,s,1,r,c,i)),this._createIndicator(t,s,r,c,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=p["bind"](this._dragHandle,this,n,!1),s=p["bind"](this._dragHandle,this,n,!0),l=Object(Vt["g"])(e.get("handleSize"),r[0]),u=Object(pn["a"])(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=sI(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){jc["g"](e.event)}}),u.x=r[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(gn["F"])(u,!0),t.add(u);var f=this.visualMapModel.textStyleModel,d=new Un["a"]({cursor:c,draggable:!0,drift:a,onmousemove:function(e){jc["g"](e.event)},ondragend:s,style:Object(hn["c"])(f,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var h=[l,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=h,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,r,i){var o=Object(Vt["g"])(e.get("indicatorSize"),n[0]),a=Object(pn["a"])(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 qn["a"]){var l=a.style;a.useStyle(p["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 u=this.visualMapModel.textStyleModel,c=new Un["a"]({silent:!0,invisible:!0,style:Object(hn["c"])(u,{x:0,y:0,text:""})});this.group.add(c);var f=[("horizontal"===i?r/2:nI)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=c,d.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[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():aI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[ZP(t[0],n,r,!0),ZP(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];Tv(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[ZP(r[0],i,o,!0),ZP(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new nr["a"](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,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+i*o;if(a>e[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},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 zn["a"]("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,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();QP([0,1],(function(l){var u=i[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=ZP(e[l],[0,a[1]],s,!0),f=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=f/a[0],u.x=a[0]-f/2;var d=$n["applyTransform"](n.handleLabelPoints[l],$n["getTransform"](u,this.group));o[l].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},f=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),h=ZP(e,o,s,!0),p=a[0]-d/2,g={x:u.x,y:u.y};u.y=h,u.x=p;var m=$n["applyTransform"](l.indicatorLabelPoint,$n["getTransform"](u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;v.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:_?y:"middle",align:_?"center":y});var w={x:p,y:h,style:{fill:f}},x={style:{x:m[0],y:m[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(w,O),v.animateTo(x,O)}else u.attr(w),v.attr(x);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},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,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=JP(eI(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[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,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=JP(eI(i[0],e),i[1]);var a=oI(n,o,i),s=[e-a,e+a],l=ZP(e,i,o,!0),u=[ZP(s[0],i,o,!0),ZP(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,f=[];(t||aI(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=j["d"](c,f);this._dispatchHighDown("downplay",XP(d[0],n)),this._dispatchHighDown("highlight",XP(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object(Pd["a"])(e.target,(function(e){var n=Object(L["a"])(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),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",XP(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,r){var i=$n["getTransform"](t,r?null:this.group);return p["isArray"](e)?$n["applyTransform"](e,i,n):$n["transformDirection"](e,i,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.type="visualMap.continuous",t}(KP);function iI(e,t,n,r){return new Gn["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){jc["g"](e.event)},ondragend:r})}function oI(e,t,n){var r=tI/2,i=e.get("hoverLinkDataSize");return i&&(r=ZP(i,t,n,!0)/2),r}function aI(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function sI(e){return"vertical"===e?"ns-resize":"ew-resize"}var lI=rI,uI={type:"selectDataRange",event:"dataRangeSelected",update:"update"},cI=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},fI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(CT(t.stateList,t.targetVisuals,p["bind"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(p["bind"](dI,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function dI(e,t,n,r){for(var i=t.targetVisuals[r],o=Lp.prepareVisualTypes(i),a={color:Object(bT["b"])(e.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return a.color;function f(e){return a[e]}function d(e,t){a[e]=t}}var hI=p["each"];function pI(e){var t=e&&e.visualMap;p["isArray"](t)||(t=t?[t]:[]),hI(t,(function(e){if(e){gI(e,"splitList")&&!gI(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&p["isArray"](t)&&hI(t,(function(e){p["isObject"](e)&&(gI(e,"start")&&!gI(e,"min")&&(e.min=e.start),gI(e,"end")&&!gI(e,"max")&&(e.max=e.end))}))}}))}function gI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var mI=!1;function vI(e){mI||(mI=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(uI,cI),Object(p["each"])(fI,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(pI))}function yI(e){e.registerComponentModel(VP),e.registerComponentView(lI),vI(e)}var bI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(Pe["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],_I[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=p["clone"](i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=p["map"](this._pieceList,(function(e){return e=p["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=Lp.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}p["each"](t.pieces,(function(e){p["each"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),p["each"](n,(function(e,n){var r=!1;p["each"](this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&p["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=IP.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,p["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;p["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[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=p["clone"](e)},t.prototype.getValueState=function(e){var t=Lp.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(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){var o=Lp.findPieceIndex(t,n);o===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),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=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return p["each"](i,(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(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Object(Ps["d"])(zP.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}(zP),_I={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Object(Fe["u"])(e),p["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;p["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),wI(t,e)},pieces:function(e){var t=this.option;p["each"](t.pieces,(function(t,n){p["isObject"](t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var f=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=t[f[d]],a[c]=s[d],u[c]=2===d;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=Lp.retrieveVisuals(t),e.push(r)}),this),wI(t,e),Object(Fe["u"])(e),p["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 wI(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var xI=bI,OI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(Pe["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=p["retrieve"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),p["each"](l.viewPieceList,(function(r){var l=r.piece,u=new zn["a"];u.onclick=p["bind"](this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var f=t.getRepresentValue(l);if(this._createItemSymbol(u,f,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(f);u.add(new Un["a"]({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),dn["b"](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 r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:XP(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return YP(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new zn["a"],a=this.visualMapModel.textStyleModel;o.add(new Un["a"]({style:Object(hn["c"])(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=p["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(pn["a"])(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,r=n.selectedMode;if(r){var i=p["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,p["each"](i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(KP),SI=OI;function CI(e){e.registerComponentModel(xI),e.registerComponentView(SI),vI(e)}function kI(e){b(yI),b(CI)}var EI={label:{enabled:!0},decal:{show:!1}},AI=Object(j["o"])(),TI={};function DI(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=p["clone"](EI);p["merge"](r.label,e.getLocaleModel().get("aria"),!1),p["merge"](n.option,r,!1),i(),o()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=p["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),AI(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(p["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=Object($h["b"])(t.ecModel,t.name,TI,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=t.getRawData(),a={},s=AI(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var r=a[e],i=o.getName(e)||e+"",c=Object($h["b"])(t.ecModel,i,s,l),f=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(f,c))}))}}function u(e,t){var n=e?p["extend"](p["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=p["defaults"](o.option,i),o.get("enabled"))if(o.get("description"))r.setAttribute("aria-label",o.get("description"));else{var u,c=e.getSeriesCount(),f=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,h=Math.min(c,d);if(!(c<1)){var g=s();if(g){var m=o.get(["general","withTitle"]);u=a(m,{title:g})}else u=o.get(["general","withoutTitle"]);var v=[],y=c>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t<h){var n=void 0,r=e.get("name"),i=r?"withName":"withoutName";n=c>1?o.get(["series","multiple",i]):o.get(["series","single",i]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>f){var u=o.get(["data","partialData"]);n+=a(u,{displayCnt:f})}else n+=o.get(["data","allData"]);for(var d=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),g=[],m=0;m<s.count();m++)if(m<f){var y=s.getName(m),b=s.getValues(m),_=o.get(["data",y?"withName":"withoutName"]);g.push(a(_,{name:y,value:b.join(d)}))}n+=g.join(d)+p,v.push(n)}}));var b=o.getModel(["series","multiple","separator"]),_=b.get("middle"),w=b.get("end");u+=v.join(_)+w,r.setAttribute("aria-label",u)}}}}function a(e,t){if(!p["isString"](e))return e;var n=e;return p["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){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function MI(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},p["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function PI(e){e.registerPreprocessor(MI),e.registerVisual(e.PRIORITY.VISUAL.ARIA,DI)}var II={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jI=function(){function e(e){var t=this._condVal=Object(p["isString"])(e)?new RegExp(e):Object(p["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(vp["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(p["isString"])(t)?this._condVal.test(e):!!Object(p["isNumber"])(t)&&this._condVal.test(e+"")},e}(),LI=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),NI=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}(),RI=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}(),BI=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),$I=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function FI(e,t){if(!0===e||!1===e){var n=new LI;return n.value=e,n}var r="";return HI(e)||Object(vp["c"])(r),e.and?zI("and",e,t):e.or?zI("or",e,t):e.not?qI(e,t):UI(e,t)}function zI(e,t,n){var r=t[e],i="";Object(p["isArray"])(r)||Object(vp["c"])(i),r.length||Object(vp["c"])(i);var o="and"===e?new NI:new RI;return o.children=Object(p["map"])(r,(function(e){return FI(e,n)})),o.children.length||Object(vp["c"])(i),o}function qI(e,t){var n=e.not,r="";HI(n)||Object(vp["c"])(r);var i=new BI;return i.child=FI(n,t),i.child||Object(vp["c"])(r),i}function UI(e,t){for(var n="",r=t.prepareGetValue(e),i=[],o=Object(p["keys"])(e),a=e.parser,s=a?Object(DD["c"])(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Object(p["hasOwn"])(II,u)?II[u]:u,f=e[u],d=s?s(f):f,h=Object(DD["b"])(c,d)||"reg"===c&&new jI(d);h||Object(vp["c"])(n),i.push(h)}}i.length||Object(vp["c"])(n);var g=new $I;return g.valueGetterParam=r,g.valueParser=s,g.getValue=t.getValue,g.subCondList=i,g}function HI(e){return Object(p["isObject"])(e)&&!Object(p["isArrayLike"])(e)}var VI=function(){function e(e,t){this._cond=FI(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function WI(e,t){return new VI(e,t)}var KI={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=WI(e.config,{valueGetterAttrMap:Object(p["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",r=e.dimension;Object(p["hasOwn"])(e,"dimension")||Object(vp["c"])(t);var i=n.getDimensionInfo(r);return i||Object(vp["c"])(t),{dimIdx:i.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),r.evaluate()&&i.push(t);return{data:i}}};var GI={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",i=Object(j["r"])(n);i.length||Object(vp["c"])(r);var o=[];Object(p["each"])(i,(function(e){var n=e.dimension,i=e.order,a=e.parser,s=e.incomparable;if(null==n&&Object(vp["c"])(r),"asc"!==i&&"desc"!==i&&Object(vp["c"])(r),s&&"min"!==s&&"max"!==s){var l="";0,Object(vp["c"])(l)}if("asc"!==i&&"desc"!==i){var u="";0,Object(vp["c"])(u)}var c=t.getDimensionInfo(n);c||Object(vp["c"])(r);var f=a?Object(DD["c"])(a):null;a&&!f&&Object(vp["c"])(r),o.push({dimIdx:c.index,parser:f,comparator:new DD["a"](i,s)})}));var a=t.sourceFormat;a!==k["c"]&&a!==k["e"]&&Object(vp["c"])(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var r=0;r<o.length;r++){var i=o[r],a=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function YI(e){e.registerTransform(KI),e.registerTransform(GI)}var XI=n("f72b"),ZI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(Pe["a"])(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new XI["a"](this),Object(XI["b"])(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(XI["b"])(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:k["a"]},t}(d["a"]),QI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(Pe["a"])(t,e),t.type="dataset",t}(c["a"]);function JI(e){e.registerComponentModel(ZI),e.registerComponentView(QI)}var ej=Rr["a"].CMD;function tj(e,t){return Math.abs(e-t)<1e-5}function nj(e){var t,n,r,i,o,a=e.data,s=e.len(),l=[],u=0,c=0,f=0,d=0;function h(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,r,i){tj(e,r)&&tj(n,i)||t.push(e,n,r,i,r,i)}function g(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=n<e?-1:1,c=Math.cos(e),f=Math.sin(e),d=Math.cos(n),h=Math.sin(n),p=c*o+r,g=f*a+i,m=d*o+r,v=h*a+i,y=o*l*u,b=a*l*u;t.push(p-y*f,g+b*c,m+y*h,v-b*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(u=a[m],c=a[m+1],f=u,d=c,v!==ej.L&&v!==ej.C&&v!==ej.Q||(t=[f,d])),v){case ej.M:u=f=a[m++],c=d=a[m++],h(f,d);break;case ej.L:n=a[m++],r=a[m++],p(u,c,n,r),u=n,c=r;break;case ej.C:t.push(a[m++],a[m++],a[m++],a[m++],u=a[m++],c=a[m++]);break;case ej.Q:n=a[m++],r=a[m++],i=a[m++],o=a[m++],t.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case ej.A:var b=a[m++],_=a[m++],w=a[m++],x=a[m++],O=a[m++],S=a[m++]+O;m+=1;var C=!a[m++];n=Math.cos(O)*w+b,r=Math.sin(O)*x+_,y?(f=n,d=r,h(f,d)):p(u,c,n,r),u=Math.cos(S)*w+b,c=Math.sin(S)*x+_;for(var k=(C?-1:1)*Math.PI/2,E=O;C?E>S:E<S;E+=k){var A=C?Math.max(E+k,S):Math.min(E+k,S);g(E,A,b,_,w,x)}break;case ej.R:f=u=a[m++],d=c=a[m++],n=f+a[m++],r=d+a[m++],h(n,d),p(n,d,n,r),p(n,r,f,r),p(f,r,f,d),p(f,d,n,d);break;case ej.Z:t&&p(u,c,f,d),u=f,c=d;break}}return t&&t.length>2&&l.push(t),l}function rj(e,t,n,r,i,o,a,s,l,u){if(tj(e,n)&&tj(t,r)&&tj(i,a)&&tj(o,s))l.push(a,s);else{var c=2/u,f=c*c,d=a-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var g=n-e,m=r-t,v=i-a,y=o-s,b=g*g+m*m,_=v*v+y*y;if(b<f&&_<f)l.push(a,s);else{var w=d*g+h*m,x=-d*v-h*y,O=b-w*w,S=_-x*x;if(O<f&&w>=0&&S<f&&x>=0)l.push(a,s);else{var C=[],k=[];Object($r["g"])(e,n,i,a,.5,C),Object($r["g"])(t,r,o,s,.5,k),rj(C[0],k[0],C[1],k[1],C[2],k[2],C[3],k[3],l,u),rj(C[4],k[4],C[5],k[5],C[6],k[6],C[7],k[7],l,u)}}}}function ij(e,t){var n=nj(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],f=o[u++],d=o[u++],h=o[u++],p=o[u++],g=o[u++];rj(s,l,c,f,d,h,p,g,a,t),s=p,l=g}r.push(a)}return r}function oj(e,t,n){var r=e[t],i=e[1-t],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,f=n-c;if(f>0)for(u=0;u<f;u++)l[u%a]+=1;return l}function aj(e,t,n){for(var r=e.r0,i=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),f=oj([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],g=0;g<f[h];g++){var m={};c?(m.startAngle=o+d*h,m.endAngle=o+d*(h+1),m.r0=r+p*g,m.r=r+p*(g+1)):(m.startAngle=o+p*g,m.endAngle=o+p*(g+1),m.r0=r+d*h,m.r=r+d*(h+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function sj(e,t,n){for(var r=e.width,i=e.height,o=r>i,a=oj([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",f=e[s]/a.length,d=0;d<a.length;d++)for(var h=e[l]/a[d],p=0;p<a[d];p++){var g={};g[u]=d*f,g[c]=p*h,g[s]=f,g[l]=h,g.x+=e.x,g.y+=e.y,n.push(g)}}function lj(e,t,n,r){return e*r-n*t}function uj(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=lj(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,p=t-o,g=lj(h,p,c,f)/d;return g<0||g>1?null:new Lr["a"](g*l+e,g*u+t)}function cj(e,t,n){var r=new Lr["a"];Lr["a"].sub(r,n,t),r.normalize();var i=new Lr["a"];Lr["a"].sub(i,e,t);var o=i.dot(r);return o}function fj(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function dj(e,t,n){for(var r=e.length,i=[],o=0;o<r;o++){var a=e[o],s=e[(o+1)%r],l=uj(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&i.push({projPt:cj(l,t,n),pt:l,idx:o})}if(i.length<2)return[{points:e},{points:e}];i.sort((function(e,t){return e.projPt-t.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],g=[h];for(o=u.idx+1;o<=c.idx;o++)fj(p,e[o].slice());fj(p,h),fj(p,d);for(o=c.idx+1;o<=u.idx+r;o++)fj(g,e[o%r].slice());return fj(g,d),fj(g,h),[{points:p},{points:g}]}function hj(e){var t=e.points,n=[],r=[];Object(Zd["d"])(t,n,r);var i=new _t["a"](n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new Lr["a"],c=new Lr["a"];return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),dj(t,u,c)}function pj(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);pj(e,o[0],i,r),pj(e,o[1],n-i,r)}return r}function gj(e,t){for(var n=[],r=0;r<t;r++)n.push(Object(Xc["a"])(e));return n}function mj(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function vj(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function yj(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":sj(i,t,r),n=Xn["a"];break;case"sector":aj(i,t,r),n=Wn["a"];break;case"circle":aj({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=Wn["a"];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(p["map"])(ij(e.getUpdatedPathProxy(),a),(function(e){return vj(e)})),l=s.length;if(0===l)pj(hj,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=Object(p["map"])(s,(function(e){var t=[],n=[];Object(Zd["d"])(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return c+=r,{poly:e,area:r}}));f.sort((function(e,t){return t.area-e.area}));var d=t;for(u=0;u<l;u++){var h=f[u];if(d<=0)break;var g=u===l-1?d:Math.ceil(h.area/c*t);g<0||(pj(hj,{points:h.poly},g,r),d-=g)}}n=Gn["a"];break}if(!n)return gj(e,t);var m=[];for(u=0;u<r.length;u++){var v=new n;v.setShape(r[u]),mj(e,v),m.push(v)}return m}function bj(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],o=[],a=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[a[0],a[1]],d=l,h=2;h<s;){var p=a[h-2],g=a[h-1],m=a[h++],v=a[h++],y=a[h++],b=a[h++],_=a[h++],w=a[h++];if(d<=0)f.push(m,v,y,b,_,w);else{for(var x=Math.min(d,c-1)+1,O=1;O<=x;O++){var S=O/x;Object($r["g"])(p,m,y,_,S,i),Object($r["g"])(g,v,b,w,S,o),p=i[3],g=o[3],f.push(i[1],o[1],i[2],o[2],p,g),m=i[5],v=o[5],y=i[6],b=o[6]}d-=x-1}}return a===e?[f,t]:[e,f]}function _j(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function wj(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(n=bj(l,u),c=n[0],f=n[1],r=c,i=f):(f=_j(i||l,l),c=l):(c=_j(r||u,u),f=u),o.push(c),a.push(f)}return[o,a]}function xj(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],l=e[a+1],u=e[o],c=e[o+1],f=s*c-u*l;t+=f,n+=(s+u)*f,r+=(l+c)*f}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function Oj(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=6*u,f=0,d=0;d<s;d+=2){var h=0===d?c:(c+d-2)%l+2,p=e[h]-n[0],g=e[h+1]-n[1],m=t[d]-r[0],v=t[d+1]-r[1],y=m-p,b=v-g;f+=y*y+b*b}f<o&&(o=f,a=u)}return a}function Sj(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function Cj(e,t,n,r){for(var i,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],u=xj(s),c=xj(l);null==i&&(i=u[2]<0!==c[2]<0);var f=[],d=[],h=0,p=1/0,g=[],m=s.length;i&&(s=Sj(s));for(var v=6*Oj(s,l,u,c),y=m-2,b=0;b<y;b+=2){var _=(v+b)%y+2;f[b+2]=s[_]-u[0],f[b+3]=s[_+1]-u[1]}if(f[0]=s[v]-u[0],f[1]=s[v+1]-u[1],n>0)for(var w=r/n,x=-r/2;x<=r/2;x+=w){var O=Math.sin(x),S=Math.cos(x),C=0;for(b=0;b<s.length;b+=2){var k=f[b],E=f[b+1],A=l[b]-c[0],T=l[b+1]-c[1],D=A*S-T*O,M=A*O+T*S;g[b]=D,g[b+1]=M;var P=D-k,I=M-E;C+=P*P+I*I}if(C<p){p=C,h=x;for(var j=0;j<g.length;j++)d[j]=g[j]}}else for(var L=0;L<m;L+=2)d[L]=l[L]-c[0],d[L+1]=l[L+1]-c[1];o.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return o}function kj(e){return e.__isCombineMorphing}var Ej="__mOriginal_";function Aj(e,t,n){var r=Ej+t,i=e[r]||e[t];e[r]||(e[r]=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):i.apply(this,t),a&&a.apply(this,t),e}}function Tj(e,t){var n=Ej+t;e[n]&&(e[t]=e[n],e[n]=null)}function Dj(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=t[0]*o+t[2]*a+t[4],r[i++]=t[1]*o+t[3]*a+t[5]}}function Mj(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=wj(nj(n),nj(r)),o=i[0],a=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&Dj(o,s),l&&Dj(a,l),Aj(t,"updateTransform",{replace:u}),t.transform=null;var c=Cj(o,a,10,Math.PI),f=[];Aj(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,d=a.fromCp,h=a.toCp,p=Math.sin(u),g=Math.cos(u);Object(le["lerp"])(i,d,h,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],b=l[m],_=l[m+1],w=v*r+b*n,x=y*r+_*n;f[m]=w*g-x*p+i[0],f[m+1]=w*p+x*g+i[1]}var O=f[0],S=f[1];e.moveTo(O,S);for(m=2;m<s.length;){b=f[m++],_=f[m++];var C=f[m++],k=f[m++],E=f[m++],A=f[m++];O===b&&S===_&&C===E&&k===A?e.lineTo(E,A):e.bezierCurveTo(b,_,C,k,E,A),O=E,S=A}}}})}function Pj(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;function o(){Tj(t,"buildPath"),Tj(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return Mj(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(p["defaults"])({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){o(),r&&r()}},n)),t}function Ij(e,t,n,r,i,o){var a=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),l+=u*u*(3*c^f),0===f&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function jj(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(p["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),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(p["map"])(o,(function(o,a){return{cp:o,z:Ij(o[0],o[1],t,n,r,i),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Lj(e){return yj(e.path,e.count)}function Nj(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Rj(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];kj(n)?i(n.childrenRef()):n instanceof Nr["b"]&&r.push(n)}}i(e);var o=r.length;if(!o)return Nj();var a=n.dividePath||Lj,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Nj();r=jj(r),s=jj(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new jr["c"],d=0;d<o;d++){var h=r[d],g=s[d];g.parent=t,g.copyTransform(f),c||Mj(h,g)}function m(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Tj(t,"addSelfToZr"),Tj(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},Aj(t,"addSelfToZr",{after:function(e){m(e)}}),Aj(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var y=s.length;if(c){var b=y,_=function(){b--,0===b&&(v(),l&&l())};for(d=0;d<y;d++){var w=c?Object(p["defaults"])({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:_},n):n;Pj(r[d],s[d],w)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(p["defaults"])({during:function(e){for(var n=0;n<y;n++){var r=s[n];r.__morphT=t.__morphT,r.dirtyShape()}u&&u(e)},done:function(){v();for(var t=0;t<e.length;t++)Tj(e[t],"updateTransform");l&&l()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function Bj(e,t,n){var r=t.length,i=[],o=n.dividePath||Lj;function a(e){for(var t=0;t<e.length;t++){var n=e[t];kj(n)?a(n.childrenRef()):n instanceof Nr["b"]&&i.push(n)}}if(kj(e)){a(e.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(Object(Xc["a"])(i[l++%s]));i.length=r}else{i=o({path:e,count:r});var c=e.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Nj()}i=jj(i),t=jj(t);var f=n.individualDelay;for(u=0;u<r;u++){var d=f?Object(p["defaults"])({delay:(n.delay||0)+f(u,r,i[u],t[u])},n):n;Pj(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function $j(e){return Object(p["isArray"])(e[0])}function Fj(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var o=t[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(t[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var zj={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=Object(Xc["a"])(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function qj(e,t,n,r,i,o){if(e.length&&t.length){var a=Object(Fn["a"])("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);$j(e)&&(s=e,l=t),$j(t)&&(s=t,l=e);for(var f=s?s===e:e.length>t.length,d=s?Fj(l,s):Fj(f?t:e,[f?e:t]),h=0,g=0;g<d.length;g++)h+=d[g].many.length;var m=0;for(g=0;g<d.length;g++)v(d[g],f,m,h),m+=d[g].many.length}}function v(e,t,r,i,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var f=Object(p["defaults"])({dividePath:zj[n],individualDelay:u&&function(e,t,n,o){return u(e+r,i)}},c),d=t?Rj(s,l,f):Bj(l,s,f),h=d.fromIndividuals,g=d.toIndividuals,m=h.length,y=0;y<m;y++){w=u?Object(p["defaults"])({delay:u(y,m)},c):c;o(h[y],g[y],t?s[y]:e.one,t?e.one:s[y],w)}else{var b=t?s[0]:l,_=t?l:s[0];if(kj(b))v({many:[b],one:_},!0,r,i,!0);else{var w=u?Object(p["defaults"])({delay:u(r,i)},c):c;Pj(b,_,w),o(b,_,b,_,w)}}}}function Uj(e){if(!e)return[];if(Object(p["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(Uj(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof Nr["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}var Hj=1e4,Vj=0,Wj=1,Kj=2,Gj=Object(j["o"])();function Yj(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&0===i.otherDims[t])return n[r]}}function Xj(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=e.get(r.name,t);return i&&i.categories[o]||o+""}}function Zj(e,t,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=Yj(e,i);if(o){var a=Xj(e,t,o);return a}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";return s&&s[l]?s[l]+"":r?void 0:n||e.getId(t)}function Qj(e){var t=[];return Object(p["each"])(e,(function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>Hj))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:Zj(n,o,r,!1),childGroupId:Zj(n,o,r,!0),divide:e.divide,dataIndex:o})})),t}function Jj(e,t,n){e.traverse((function(e){e instanceof Nr["b"]&&Object(Fn["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function eL(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function tL(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function nL(e,t,n){var r=Object(Fn["a"])("update",n,t);r&&e.traverse((function(e){if(e instanceof Vf["c"]){var t=Object(Fn["b"])(e);t&&e.animateFrom({style:t},r)}}))}function rL(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],o=t[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function iL(e,t,n){var r=Qj(e),i=Qj(t);function o(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Object(p["extend"])(Object(p["extend"])({},n.style),e.style):e.style},i)}var a=!1,s=Vj,l=Object(p["createHashMap"])(),u=Object(p["createHashMap"])();r.forEach((function(e){e.groupId&&l.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=Wj;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=Kj;break}}function h(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===Wj?n.childGroupId:n.groupId:s===Kj?n.childGroupId:n.groupId}}var g=rL(r,i),m={};if(!g)for(c=0;c<i.length;c++){var v=i[c],y=v.data.getItemGraphicEl(v.dataIndex);y&&(m[y.id]=!0)}function b(e,t){var n=r[t],s=i[e],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&m[u.id]||c&&(tL(c),u?(tL(u),eL(u),a=!0,qj(Uj(u),Uj(c),s.divide,l,e,o)):Jj(c,l,e)):c&&nL(c,s.dataIndex,l)}new S(r,i,h(!0,g),h(!1,g),null,"multiple").update(b).updateManyToOne((function(e,t){var n=i[e],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Object(p["filter"])(Object(p["map"])(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==u&&!m[e.id]}));u&&(tL(u),c.length?(Object(p["each"])(c,(function(e){tL(e),eL(e)})),a=!0,qj(Uj(c),Uj(u),n.divide,l,e,o)):Jj(u,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!m[s.id]){var l=Object(p["filter"])(Object(p["map"])(e,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==s})),u=i[e[0]].data.hostModel;l.length&&(Object(p["each"])(l,(function(e){return tL(e)})),s?(tL(s),eL(s),a=!0,qj(Uj(s),Uj(l),n.divide,u,e[0],o)):Object(p["each"])(l,(function(t){return Jj(t,u,e[0])})))}})).updateManyToMany((function(e,t){new S(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return i[e].data.getId(i[e].dataIndex)})).update((function(n,r){b(e[n],t[r])})).execute()})).execute(),a&&Object(p["each"])(t,(function(e){var t=e.data,r=t.hostModel,i=r&&n.getViewOfSeriesModel(r),o=Object(Fn["a"])("update",r,0);i&&r.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(e){e instanceof Nr["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function oL(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function aL(e){return Object(p["isArray"])(e)?e.sort().join(","):e}function sL(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function lL(e,t){var n=Object(p["createHashMap"])(),r=Object(p["createHashMap"])(),i=Object(p["createHashMap"])();return Object(p["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=oL(t),l=aL(s);r.set(l,{dataGroupId:o,data:a}),Object(p["isArray"])(s)&&Object(p["each"])(s,(function(e){i.set(e,{key:l,dataGroupId:o,data:a})}))})),Object(p["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=oL(e),s=aL(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:sL(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:sL(o),data:o}]});else if(Object(p["isArray"])(a)){0;var u=[];Object(p["each"])(a,(function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:sL(t.data),data:t.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:sL(o)}]})}else{var c=i.get(a);if(c){var f=n.get(c.key);f||(f={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:sL(c.data)}],newSeries:[]},n.set(c.key,f)),f.newSeries.push({dataGroupId:t,data:o,divide:sL(o)})}}}})),n}function uL(e,t){for(var n=0;n<e.length;n++){var r=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(r)return n}}function cL(e,t,n,r){var i=[],o=[];Object(p["each"])(Object(j["r"])(e.from),(function(e){var n=uL(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:sL(t.oldData[n]),groupIdDim:e.dimension})})),Object(p["each"])(Object(j["r"])(e.to),(function(e){var r=uL(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:sL(i),groupIdDim:e.dimension})}})),i.length>0&&o.length>0&&iL(i,o,r)}function fL(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(p["each"])(Object(j["r"])(n.seriesTransition),(function(e){Object(p["each"])(Object(j["r"])(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][h["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=Gj(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(p["each"])(Object(j["r"])(i),(function(e){cL(e,r,n,t)}));else{var o=lL(r,n);Object(p["each"])(o.keys(),(function(e){var n=o.get(e);iL(n.oldSeries,n.newSeries,t)}))}Object(p["each"])(n.updatedSeries,(function(e){e[h["a"]]&&(e[h["a"]]=!1)}))}for(var a=e.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<a.length;c++){var f=a[c].getData();f.count()<Hj&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),u.push(f))}}))}b([Hi]),b([Da]),b([Ts,pl,$l,fc,Ic,Rd,Nh,hg,Im,Um,ev,ob,Bb,n_,D_,B_,uw,_w,Xw,ax,Cx,nS]),b(eC),b(WC),b(Nd),b(yk),b(ib),b(Tk),b(Kk),b(PA),b(gT),b(JS),b(XT),b(JT),b(xD),b(YD),b(sM),b(_M),b(YM),b(DP),b(dP),b(TP),b(kI),b(yI),b(CI),b(PI),b(YI),b(JI),b(fL),b(Ei)},"323e":function(e,t,n){var r,i;
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
 * @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(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 r(e){return 100*(-1+e)}function i(e,n,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},o.transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var l=e.render(!s),u=l.querySelector(t.barSelector),c=t.speed,f=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(u,i(r,c,f)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),c)}),c)):setTimeout(n,c)})),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 r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.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 i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,s=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),c=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector),o&&f(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(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 r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+o,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function s(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=c(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=c(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},3397:function(e,t,n){var r=n("7a41");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),l=i((function(){a(1)}));r({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"342d":function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return T})),n.d(t,"a",(function(){return D}));var r=n("9ab4"),i=n("cbe5"),o=n("20c8"),a=n("401b"),s=o["a"].CMD,l=[[],[],[]],u=Math.sqrt,c=Math.atan2;function f(e,t){if(t){var n,r,i,o,f,d,h=e.data,p=e.len(),g=s.M,m=s.C,v=s.L,y=s.R,b=s.A,_=s.Q;for(i=0,o=0;i<p;){switch(n=h[i++],o=i,r=0,n){case g:r=1;break;case v:r=1;break;case m:r=3;break;case _:r=2;break;case b:var w=t[4],x=t[5],O=u(t[0]*t[0]+t[1]*t[1]),S=u(t[2]*t[2]+t[3]*t[3]),C=c(-t[1]/S,t[0]/O);h[i]*=O,h[i++]+=w,h[i]*=S,h[i++]+=x,h[i++]*=O,h[i++]*=S,h[i++]+=C,h[i++]+=C,i+=2,o=i;break;case y:d[0]=h[i++],d[1]=h[i++],Object(a["applyTransform"])(d,d,t),h[o++]=d[0],h[o++]=d[1],d[0]+=h[i++],d[1]+=h[i++],Object(a["applyTransform"])(d,d,t),h[o++]=d[0],h[o++]=d[1]}for(f=0;f<r;f++){var k=l[f];k[0]=h[i++],k[1]=h[i++],Object(a["applyTransform"])(k,k,t),h[o++]=k[0],h[o++]=k[1]}}e.increaseVersion()}}var d=n("6d8b"),h=Math.sqrt,p=Math.sin,g=Math.cos,m=Math.PI;function v(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function y(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))}function b(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(y(e,t))}function _(e,t,n,r,i,o,a,s,l,u,c){var f=l*(m/180),d=g(f)*(e-n)/2+p(f)*(t-r)/2,v=-1*p(f)*(e-n)/2+g(f)*(t-r)/2,_=d*d/(a*a)+v*v/(s*s);_>1&&(a*=h(_),s*=h(_));var w=(i===o?-1:1)*h((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,x=w*a*v/s,O=w*-s*d/a,S=(e+n)/2+g(f)*x-p(f)*O,C=(t+r)/2+p(f)*x+g(f)*O,k=b([1,0],[(d-x)/a,(v-O)/s]),E=[(d-x)/a,(v-O)/s],A=[(-1*d-x)/a,(-1*v-O)/s],T=b(E,A);if(y(E,A)<=-1&&(T=m),y(E,A)>=1&&(T=0),T<0){var D=Math.round(T/m*1e6)/1e6;T=2*m+D%2*m}c.addData(u,S,C,a,s,k,T,f,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,x=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function O(e){var t=new o["a"];if(!e)return t;var n,r=0,i=0,a=r,s=i,l=o["a"].CMD,u=e.match(w);if(!u)return t;for(var c=0;c<u.length;c++){for(var f=u[c],d=f.charAt(0),h=void 0,p=f.match(x)||[],g=p.length,m=0;m<g;m++)p[m]=parseFloat(p[m]);var v=0;while(v<g){var y=void 0,b=void 0,O=void 0,S=void 0,C=void 0,k=void 0,E=void 0,A=r,T=i,D=void 0,M=void 0;switch(d){case"l":r+=p[v++],i+=p[v++],h=l.L,t.addData(h,r,i);break;case"L":r=p[v++],i=p[v++],h=l.L,t.addData(h,r,i);break;case"m":r+=p[v++],i+=p[v++],h=l.M,t.addData(h,r,i),a=r,s=i,d="l";break;case"M":r=p[v++],i=p[v++],h=l.M,t.addData(h,r,i),a=r,s=i,d="L";break;case"h":r+=p[v++],h=l.L,t.addData(h,r,i);break;case"H":r=p[v++],h=l.L,t.addData(h,r,i);break;case"v":i+=p[v++],h=l.L,t.addData(h,r,i);break;case"V":i=p[v++],h=l.L,t.addData(h,r,i);break;case"C":h=l.C,t.addData(h,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),r=p[v-2],i=p[v-1];break;case"c":h=l.C,t.addData(h,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i),r+=p[v-2],i+=p[v-1];break;case"S":y=r,b=i,D=t.len(),M=t.data,n===l.C&&(y+=r-M[D-4],b+=i-M[D-3]),h=l.C,A=p[v++],T=p[v++],r=p[v++],i=p[v++],t.addData(h,y,b,A,T,r,i);break;case"s":y=r,b=i,D=t.len(),M=t.data,n===l.C&&(y+=r-M[D-4],b+=i-M[D-3]),h=l.C,A=r+p[v++],T=i+p[v++],r+=p[v++],i+=p[v++],t.addData(h,y,b,A,T,r,i);break;case"Q":A=p[v++],T=p[v++],r=p[v++],i=p[v++],h=l.Q,t.addData(h,A,T,r,i);break;case"q":A=p[v++]+r,T=p[v++]+i,r+=p[v++],i+=p[v++],h=l.Q,t.addData(h,A,T,r,i);break;case"T":y=r,b=i,D=t.len(),M=t.data,n===l.Q&&(y+=r-M[D-4],b+=i-M[D-3]),r=p[v++],i=p[v++],h=l.Q,t.addData(h,y,b,r,i);break;case"t":y=r,b=i,D=t.len(),M=t.data,n===l.Q&&(y+=r-M[D-4],b+=i-M[D-3]),r+=p[v++],i+=p[v++],h=l.Q,t.addData(h,y,b,r,i);break;case"A":O=p[v++],S=p[v++],C=p[v++],k=p[v++],E=p[v++],A=r,T=i,r=p[v++],i=p[v++],h=l.A,_(A,T,r,i,k,E,O,S,C,h,t);break;case"a":O=p[v++],S=p[v++],C=p[v++],k=p[v++],E=p[v++],A=r,T=i,r+=p[v++],i+=p[v++],h=l.A,_(A,T,r,i,k,E,O,S,C,h,t);break}}"z"!==d&&"Z"!==d||(h=l.Z,t.addData(h),r=a,i=s),n=h}return t.toStatic(),t}var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(t,e),t.prototype.applyTransform=function(e){},t}(i["b"]);function C(e){return null!=e.setData}function k(e,t){var n=O(e),r=Object(d["extend"])({},t);return r.buildPath=function(e){if(C(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){f(n,e),this.dirtyShape()},r}function E(e,t){return new S(k(e,t))}function A(e,t){var n=k(e,t),i=function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return Object(r["a"])(t,e),t}(S);return i}function T(e,t){for(var n=[],r=e.length,o=0;o<r;o++){var a=e[o];n.push(a.getUpdatedPathProxy(!0))}var s=new i["b"](t);return s.createPathProxy(),s.buildPath=function(e){if(C(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},s}function D(e,t){t=t||{};var n=new i["b"];return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?f(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}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},3437:function(e,t,n){"use strict";function r(e){return isFinite(e)}function i(e,t,n){var i=null==t.x?0:t.x,o=null==t.x2?1:t.x2,a=null==t.y?0:t.y,s=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),i=r(i)?i:0,o=r(o)?o:1,a=r(a)?a:0,s=r(s)?s:0;var l=e.createLinearGradient(i,a,o,s);return l}function o(e,t,n){var i=n.width,o=n.height,a=Math.min(i,o),s=null==t.x?.5:t.x,l=null==t.y?.5:t.y,u=null==t.r?.5:t.r;t.global||(s=s*i+n.x,l=l*o+n.y,u*=a),s=r(s)?s:.5,l=r(l)?l:.5,u=u>=0&&r(u)?u:.5;var c=e.createRadialGradient(s,l,0,s,l,u);return c}function a(e,t,n){for(var r="radial"===t.type?o(e,t,n):i(e,t,n),a=t.colorStops,s=0;s<a.length;s++)r.addColorStop(a[s].offset,a[s].color);return r}function s(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 l(e){return parseInt(e,10)}function u(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||l(s[r])||l(e.style[r]))-(l(s[o])||0)-(l(s[a])||0)|0}n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return u}))},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=n("06c5");function a(){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 s(e,t){return r(e)||i(e,t)||Object(o["a"])(e,t)||a()}},3842:function(e,t,n){"use strict";n.d(t,"m",(function(){return s})),n.d(t,"q",(function(){return l})),n.d(t,"w",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"h",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"v",(function(){return y})),n.d(t,"l",(function(){return b})),n.d(t,"p",(function(){return w})),n.d(t,"s",(function(){return x})),n.d(t,"t",(function(){return O})),n.d(t,"n",(function(){return S})),n.d(t,"r",(function(){return C})),n.d(t,"u",(function(){return k})),n.d(t,"o",(function(){return E})),n.d(t,"k",(function(){return A})),n.d(t,"j",(function(){return T})),n.d(t,"d",(function(){return M}));var r=n("6d8b"),i=1e-4,o=20;function a(e){return e.replace(/^\s+|\s+$/g,"")}function s(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function l(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 r["isString"](e)?a(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function u(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function f(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 d(e)}function d(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function h(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function p(e,t,n){if(!e[t])return 0;var r=g(e,n);return r[t]||0}function g(e,t){var n=r["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var i=Math.pow(10,t),o=r["map"](e,(function(e){return(isNaN(e)?0:e)/n*i*100})),a=100*i,s=r["map"](o,(function(e){return Math.floor(e)})),l=r["reduce"](s,(function(e,t){return e+t}),0),u=r["map"](o,(function(e,t){return e-s[t]}));while(l<a){for(var c=Number.NEGATIVE_INFINITY,f=null,d=0,h=u.length;d<h;++d)u[d]>c&&(c=u[d],f=d);++s[f],u[f]=0,++l}return r["map"](s,(function(e){return e/i}))}function m(e,t){var n=Math.max(f(e),f(t)),r=e+t;return n>o?r:u(r,n)}var v=9007199254740991;function y(e){var t=2*Math.PI;return(e%t+t)%t}function b(e){return e>-i&&e<i}var _=/^(?:(\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 w(e){if(e instanceof Date)return e;if(r["isString"](e)){var t=_.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 x(e){return Math.pow(10,O(e))}function O(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 S(e,t){var n,r=O(e),i=Math.pow(10,r),o=e/i;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*i,r>=-20?+e.toFixed(r<0?-r:0):e}function C(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function k(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}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 E(e){var t=parseFloat(e);return t==e&&(0!==t||!r["isString"](e)||e.indexOf("x")<=0)?t:NaN}function A(e){return!isNaN(E(e))}function T(){return Math.round(9*Math.random())}function D(e,t){return 0===t?e:D(t,e%t)}function M(e,t){return null==e?t:null==t?e:e*t/D(e,t)}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}},"38a2":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("6d8b"),i=n("2b17"),o=n("eda2"),a=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,f="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),f=this.getDataParams(e,n);if(u&&(f.value=u.interpolatedValue),null!=s&&r["isArray"](f.value)&&(f.value=f.value[s]),!l){var d=c.getItemModel(e);l=d.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(r["isFunction"](l))return f.status=t,f.dimensionIndex=s,l(f);if(r["isString"](l)){var h=Object(o["e"])(l,f);return h.replace(a,(function(t,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(i["e"])(c,e,a);if(u&&r["isArray"](u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return Object(i["e"])(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}},3901:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("282b"),i=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(r["a"])(i),a=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},"392f":function(e,t,n){"use strict";var r=n("9ab4"),i=n("19eb"),o=n("9850"),a=[],s=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 Object(r["a"])(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 o["a"](1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(a)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(e,t))return!0}return!1},t}(i["c"]);t["a"]=s},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"393a":function(e,t,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),u=n("92f0"),c=n("ce7a"),f=n("cc15")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var w,x,O,S=function(e){if(!d&&e in A)return A[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)}},C=t+" Iterator",k=y==g,E=!1,A=e.prototype,T=A[f]||A[h]||y&&A[y],D=T||S(y),M=y?k?S("entries"):D:void 0,P="Array"==t&&A.entries||T;if(P&&(O=c(P.call(new e)),O!==Object.prototype&&O.next&&(u(O,C,!0),r||"function"==typeof O[f]||a(O,f,m))),k&&T&&T.name!==g&&(E=!0,D=function(){return T.call(this)}),r&&!_||!d&&!E&&A[f]||a(A,f,D),s[t]=D,s[C]=m,y)if(w={values:k?D:S(g),keys:b?D:S(p),entries:M},_)for(x in w)x in A||o(A,x,w[x]);else i(i.P+i.F*(d||E),t,w);return w}},"39ad":function(e,t,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(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 u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(u(e),e,t):e}function f(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=c(t,n):r(t)?i[o]=h(e[o],t,n):-1===e.indexOf(t)&&i.push(c(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=h(e[o],t[o],n):i[o]=c(t[o],n)})),i}function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(e,t,n)}return d(e,t,n)}return c(t,n)}h.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 h(e,n,t)}))};var p=h;e.exports=p},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,l=i.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,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r=n("6dd8"),i=a(r),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),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){s||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.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())}},"401b":function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){return[e[0],e[1]]}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(d(e))}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"copy",(function(){return i})),n.d(t,"clone",(function(){return o})),n.d(t,"set",(function(){return a})),n.d(t,"add",(function(){return s})),n.d(t,"scaleAndAdd",(function(){return l})),n.d(t,"sub",(function(){return u})),n.d(t,"len",(function(){return c})),n.d(t,"length",(function(){return f})),n.d(t,"lenSquare",(function(){return d})),n.d(t,"lengthSquare",(function(){return h})),n.d(t,"mul",(function(){return p})),n.d(t,"div",(function(){return g})),n.d(t,"dot",(function(){return m})),n.d(t,"scale",(function(){return v})),n.d(t,"normalize",(function(){return y})),n.d(t,"distance",(function(){return b})),n.d(t,"dist",(function(){return _})),n.d(t,"distanceSquare",(function(){return w})),n.d(t,"distSquare",(function(){return x})),n.d(t,"negate",(function(){return O})),n.d(t,"lerp",(function(){return S})),n.d(t,"applyTransform",(function(){return C})),n.d(t,"min",(function(){return k})),n.d(t,"max",(function(){return E}));var f=c;function d(e){return e[0]*e[0]+e[1]*e[1]}var h=d;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function y(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function b(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _=b;function w(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var x=w;function O(e,t){return e[0]=-t[0],e[1]=-t[1],e}function S(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function C(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function k(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function E(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},4041:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=n("e0d3"),i=Object(r["o"])(),o=Object(r["o"])(),a=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var o=Object(r["r"])(this.get("color",!0)),a=this.get("colorLayer",!0);return u(this,i,o,a,e,t,n)},e.prototype.clearColorPalette=function(){c(this,i)},e}();function s(e,t,n,i){var a=Object(r["r"])(e.get(["aria","decal","decals"]));return u(e,o,a,null,t,n,i)}function l(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function u(e,t,n,r,i,o,a){o=o||e;var s=t(o),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var f=null!=a&&r?l(r,a):n;if(f=f||n,f&&f.length){var d=f[u];return i&&(c[i]=d),s.paletteIdx=(u+1)%f.length,d}}function c(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},4127:function(e,t,n){"use strict";var r=n("d233"),i=n("b313"),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,l=String.prototype.split,u=Array.prototype.push,c=function(e,t){u.apply(e,s(t)?t:[t])},f=Date.prototype.toISOString,d=i["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g=function e(t,n,i,o,a,u,f,d,g,m,v,y,b,_){var w=t;if("function"===typeof f?w=f(n,w):w instanceof Date?w=m(w):"comma"===i&&s(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(o)return u&&!b?u(n,h.encoder,_,"key",v):n;w=""}if(p(w)||r.isBuffer(w)){if(u){var x=b?n:u(n,h.encoder,_,"key",v);if("comma"===i&&b){for(var O=l.call(String(w),","),S="",C=0;C<O.length;++C)S+=(0===C?"":",")+y(u(O[C],h.encoder,_,"value",v));return[y(x)+"="+S]}return[y(x)+"="+y(u(w,h.encoder,_,"value",v))]}return[y(n)+"="+y(String(w))]}var k,E=[];if("undefined"===typeof w)return E;if("comma"===i&&s(w))k=[{value:w.length>0?w.join(",")||null:void 0}];else if(s(f))k=f;else{var A=Object.keys(w);k=d?A.sort(d):A}for(var T=0;T<k.length;++T){var D=k[T],M="object"===typeof D&&"undefined"!==typeof D.value?D.value:w[D];if(!a||null!==M){var P=s(w)?"function"===typeof i?i(n,D):n:n+(g?"."+D:"["+D+"]");c(E,e(M,P,i,o,a,u,f,d,g,m,v,y,b,_))}}return E},m=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i["default"];if("undefined"!==typeof e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],a=h.filter;return("function"===typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,r,i=e,o=m(t);"function"===typeof o.filter?(r=o.filter,i=r("",i)):s(o.filter)&&(r=o.filter,n=r);var l,u=[];if("object"!==typeof i||null===i)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[l];n||(n=Object.keys(i)),o.sort&&n.sort(o.sort);for(var d=0;d<n.length;++d){var h=n[d];o.skipNulls&&null===i[h]||c(u,g(i[h],h,f,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset))}var p=u.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),p.length>0?v+p:""}},"417f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",u=void 0,c=0;function f(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!i.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return u=e})),!i.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,u)}))})),t.default={bind:function(e,t,n){s.push(e);var r=c++;e[l]={id:r,documentHandler:f(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=f(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]}}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},"41ef":function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return y})),n.d(t,"lift",(function(){return w})),n.d(t,"toHex",(function(){return x})),n.d(t,"fastLerp",(function(){return O})),n.d(t,"fastMapToColor",(function(){return S})),n.d(t,"lerp",(function(){return C})),n.d(t,"mapToColor",(function(){return k})),n.d(t,"modifyHSL",(function(){return E})),n.d(t,"modifyAlpha",(function(){return A})),n.d(t,"stringify",(function(){return T})),n.d(t,"lum",(function(){return D})),n.d(t,"random",(function(){return M})),n.d(t,"liftColor",(function(){return I}));var r=n("d51b"),i=n("6d8b"),o={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 a(e){return e=Math.round(e),e<0?0:e>255?255:e}function s(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function f(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,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var g=new r["a"](20),m=null;function v(e,t){m&&p(m,t),m=g.put(e,m||t.slice())}function y(e,t){if(e){t=t||[];var n=g.get(e);if(n)return p(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in o)return p(t,o[r]),v(e,t),t;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),f=r.substr(a+1,s-(a+1)).split(","),d=1;switch(l){case"rgba":if(4!==f.length)return 3===f.length?h(t,+f[0],+f[1],+f[2],1):h(t,0,0,0,1);d=c(f.pop());case"rgb":return f.length>=3?(h(t,u(f[0]),u(f[1]),u(f[2]),3===f.length?d:c(f[3])),v(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==f.length?void h(t,0,0,0,1):(f[3]=c(f[3]),b(f,t),v(e,t),t);case"hsl":return 3!==f.length?void h(t,0,0,0,1):(b(f,t),v(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===i||5===i){var m=parseInt(r.slice(1,4),16);return m>=0&&m<=4095?(h(t,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,5===i?parseInt(r.slice(4),16)/15:1),v(e,t),t):void h(t,0,0,0,1)}if(7===i||9===i){m=parseInt(r.slice(1,7),16);return m>=0&&m<=16777215?(h(t,(16711680&m)>>16,(65280&m)>>8,255&m,9===i?parseInt(r.slice(7),16)/255:1),v(e,t),t):void h(t,0,0,0,1)}}}}function b(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=c(e[1]),i=c(e[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return t=t||[],h(t,a(255*f(s,o,n+1/3)),a(255*f(s,o,n)),a(255*f(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,f=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?t=d-f:i===s?t=1/3+c-d:o===s&&(t=2/3+f-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}function w(e,t){var n=y(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return T(n,4===n.length?"rgba":"rgb")}}function x(e){var t=y(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function O(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),s=t[i],u=t[o],c=r-i;return n[0]=a(d(s[0],u[0],c)),n[1]=a(d(s[1],u[1],c)),n[2]=a(d(s[2],u[2],c)),n[3]=l(d(s[3],u[3],c)),n}}var S=O;function C(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),s=y(t[i]),u=y(t[o]),c=r-i,f=T([a(d(s[0],u[0],c)),a(d(s[1],u[1],c)),a(d(s[2],u[2],c)),l(d(s[3],u[3],c))],"rgba");return n?{color:f,leftIndex:i,rightIndex:o,value:r}:f}}var k=C;function E(e,t,n,r){var i=y(e);if(e)return i=_(i),null!=t&&(i[0]=s(t)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),T(b(i),"rgba")}function A(e,t){var n=y(e);if(n&&null!=t)return n[3]=l(t),T(n,"rgba")}function T(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 D(e,t){var n=y(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function M(){return T([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var P=new r["a"](100);function I(e){if(Object(i["isString"])(e)){var t=P.get(e);return t||(t=w(e,-.1),P.put(e,t)),t}if(Object(i["isGradientObject"])(e)){var n=Object(i["extend"])({},e);return n.colorStops=Object(i["map"])(e.colorStops,(function(e){return{offset:e.offset,color:w(e.color,-.1)}})),n}return e}},"41f8":function(e,t,n){"use strict";t.__esModule=!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};t.isVNode=o;var i=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":r(e))&&(0,i.hasOwn)(e,"componentOptions")}},"422f":function(module,exports,__webpack_require__){module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="3a0d")}({"00fd":function(e,t,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},"0305":function(e,t,n){"use strict";var r=n("63bc"),i=function(){try{var e=Object(r["a"])(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t["a"]=i},"03dd":function(e,t,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},"0462":function(e,t,n){"use strict";(function(e){const n=e.import("blots/block/embed");class r extends n{static create(e){let t=super.create();return t.setAttribute("src",e.url),t.setAttribute("controls",e.controls),t.setAttribute("width",e.width),t.setAttribute("height",e.height),t.setAttribute("style","display:block;margin:0 auto;"),t.setAttribute("webkit-playsinline",!0),t.setAttribute("playsinline",!0),t.setAttribute("x5-playsinline",!0),t}static value(e){return{url:e.getAttribute("src"),controls:e.getAttribute("controls"),width:e.getAttribute("width"),height:e.getAttribute("height")}}}t["a"]=r}).call(this,n("9339"))},"05e7":function(e,t,n){},"0644":function(e,t,n){var r=n("3818"),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},"070e":function(e,t,n){"use strict";var r=n("5132"),i=n("9822"),o=n("2250");function a(e,t,n){var a=-1,s=t.length,l={};while(++a<s){var u=t[a],c=Object(r["a"])(e,u);n(c,u)&&Object(i["a"])(l,Object(o["a"])(u,e),c)}return l}var s=a,l=n("2b5e");function u(e,t){return s(e,t,(function(t,n){return Object(l["a"])(e,n)}))}var c=u,f=n("b4f1"),d=n("ca54"),h=n("f5fe"),p=n("ff51"),g=d["a"]?d["a"].isConcatSpreadable:void 0;function m(e){return Object(p["a"])(e)||Object(h["a"])(e)||!!(g&&e&&e[g])}var v=m;function y(e,t,n,r,i){var o=-1,a=e.length;n||(n=v),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?y(s,t-1,n,r,i):Object(f["a"])(i,s):r||(i[i.length]=s)}return i}var b=y;function _(e){var t=null==e?0:e.length;return t?b(e,1):[]}var w=_,x=n("500e"),O=n("c619");function S(e){return Object(O["a"])(Object(x["a"])(e,void 0,w),e+"")}var C=S,k=C((function(e,t){return null==e?{}:c(e,t)}));t["a"]=k},"07c7":function(e,t){function n(){return!1}e.exports=n},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"0808":function(e,t,n){},"087d":function(e,t){function n(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=n},"0963":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"dict",style:e.currentStyle},[e._v(e._s(e.showValue))])},i=[],o=n("0a94"),a={name:"sDict",data(){return{showValue:"",currentStyle:{}}},props:{value:{type:[String,Number,Array],default:""},options:{type:Array,default(){return[]}},separator:{type:String,default:","},mapper:{type:Object,default(){return{label:"label",value:"value",children:"children"}}}},watch:{value:{deep:!0,immediate:!0,handler(){this.buildShowValue()}},options:{deep:!0,immediate:!0,handler(){this.buildShowValue()}}},methods:{buildShowValue(){if(this.value||0===this.value||"0"===this.value||""===this.value||Array.isArray(this.value)&&this.value.length>0)if(Array.isArray(this.value)){const e=[];/\[.*\]/.test(this.options[0][this.mapper.value])?this.normalDict(JSON.stringify(this.value),this.options):(this.value.map(t=>{const n=Object(o["a"])(this.options,e=>e[this.mapper.value]===t);n&&(e.push(n[this.mapper.label]),n&&n.style&&(this.currentStyle=n.style))}),this.showValue=e.join(this.separator))}else this.normalDict(this.value,this.options)},normalDict(e,t){const n=Object(o["a"])(t,t=>t[this.mapper.value]===e);n&&n.style&&(this.currentStyle=n.style),this.showValue=n?n[this.mapper.label]:e}}},s=a,l=(n("bb01"),n("2877")),u=Object(l["a"])(s,r,i,!1,null,null,null),c=u.exports;c.install=function(e){e.component("SDict",c)},t["default"]=c},"09ee":function(e,t,n){"use strict";var r=n("26ee"),i=r["a"].Uint8Array;t["a"]=i},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=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():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="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),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a55":function(e,t,n){},"0a94":function(e,t,n){"use strict";var r=n("7f2c"),i=n("e56b"),o=n("9a4b");function a(e){return function(t,n,a){var s=Object(t);if(!Object(i["a"])(t)){var l=Object(r["a"])(n,3);t=Object(o["a"])(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}}var s=a;function l(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}var u=l,c=/\s/;function f(e){var t=e.length;while(t--&&c.test(e.charAt(t)));return t}var d=f,h=/^\s+/;function p(e){return e?e.slice(0,d(e)+1).replace(h,""):e}var g=p,m=n("2332"),v=n("1bc6"),y=NaN,b=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,w=/^0o[0-7]+$/i,x=parseInt;function O(e){if("number"==typeof e)return e;if(Object(v["a"])(e))return y;if(Object(m["a"])(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(m["a"])(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=g(e);var n=_.test(e);return n||w.test(e)?x(e.slice(2),n?2:8):b.test(e)?y:+e}var S=O,C=1/0,k=17976931348623157e292;function E(e){if(!e)return 0===e?e:0;if(e=S(e),e===C||e===-C){var t=e<0?-1:1;return t*k}return e===e?e:0}var A=E;function T(e){var t=A(e),n=t%1;return t===t?n?t-n:t:0}var D=T,M=Math.max;function P(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=null==n?0:D(n);return o<0&&(o=M(i+o,0)),u(e,Object(r["a"])(t,3),o)}var I=P,j=s(I);t["a"]=j},"0b07":function(e,t,n){var r=n("34ac"),i=n("3698");function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},"0bb3":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"text"},[n("div",{staticClass:"text"},[e.props.multiple?e._l(e.labels,(function(t,r){return n("span",{key:r},[e._v(" "+e._s(t.join("/"))+" "),r!==e.labels.length-1?[e._v(e._s(e.separator))]:e._e()],2)})):[e._v(e._s(e.labels.join(e.separator)))]],2)])},i=[],o=n("0a94"),a={name:"sTreeDict",data(){return{labels:[]}},props:{value:{type:[String,Number,Array],default:""},options:{type:Array,default(){return[]}},showAllLevels:{type:Boolean,default:!0},separator:{type:String,default:","},mapper:{type:Object,default(){return{label:"label",value:"value",children:"children"}}},props:Object},watch:{value(){this.init()},options(){this.init()}},filters:{lastFilter(e){}},methods:{init(){if(this.labels=[],this.props&&this.props.multiple){this.value.map(e=>{this.getLabel(this.options,e,0)});let e=0;const t=[];this.value.map(n=>{const r=n.length,i=this.labels.slice(e,e+=r);i.length>0&&t.push(i)}),this.labels=t,this.showAllLevels||(this.labels=this.labels.map(e=>e.slice(-1)))}else this.getLabel(this.options,this.value,0),this.showAllLevels||(this.labels=this.labels.slice(-1))},getLabel(e,t,n){if(e&&(void 0!==t[n]||0===t[n])){const r=Object(o["a"])(e,e=>e[this.mapper.value]==t[n]);r&&(this.labels.push(r[this.mapper.label]),n+=1,this.getLabel(r[this.mapper.children],t,n))}}},created(){this.init()}},s=a,l=(n("1da4"),n("2877")),u=Object(l["a"])(s,r,i,!1,null,"732f7e67",null),c=u.exports;c.install=function(e){e.component("STreeDict",c)},t["default"]=c},"0d24":function(e,t,n){(function(e){var r=n("2b3e"),i=n("07c7"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||i;e.exports=c}).call(this,n("62e4")(e))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e59":function(e,t,n){"use strict";var r=n("63bc"),i=Object(r["a"])(Object,"create"),o=i;function a(){this.__data__=o?o(null):{},this.size=0}var s=a;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=l,c="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;function h(e){var t=this.__data__;if(o){var n=t[e];return n===c?void 0:n}return d.call(t,e)?t[e]:void 0}var p=h,g=Object.prototype,m=g.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:m.call(t,e)}var y=v,b="__lodash_hash_undefined__";function _(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?b:t,this}var w=_;function x(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=s,x.prototype["delete"]=u,x.prototype.get=p,x.prototype.has=y,x.prototype.set=w;var O=x,S=n("9cbb"),C=n("ddc9");function k(){this.size=0,this.__data__={hash:new O,map:new(C["a"]||S["a"]),string:new O}}var E=k;function A(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var T=A;function D(e,t){var n=e.__data__;return T(t)?n["string"==typeof t?"string":"hash"]:n.map}var M=D;function P(e){var t=M(this,e)["delete"](e);return this.size-=t?1:0,t}var I=P;function j(e){return M(this,e).get(e)}var L=j;function N(e){return M(this,e).has(e)}var R=N;function B(e,t){var n=M(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $=B;function F(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}F.prototype.clear=E,F.prototype["delete"]=I,F.prototype.get=L,F.prototype.has=R,F.prototype.set=$,t["a"]=F},"0f0f":function(e,t,n){var r=n("8eeb"),i=n("9934");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"0fd7":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("quill-editor",{ref:"myQuillEditor",style:e.inputStyle,attrs:{options:e.editorOption},on:{blur:function(t){return e.onEditorBlur(t)},focus:function(t){return e.onEditorFocus(t)},ready:e.onEditorReady},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),n("input",{ref:"input",staticClass:"button",attrs:{type:"file",accept:e.fileType},on:{change:e.handleChange}})],1)},i=[];n("a753"),n("8096"),n("14e1");const o={"ql-bold":"加粗","ql-color":"颜色","ql-font":"字体","ql-code":"插入代码","ql-italic":"斜体","ql-link":"添加链接","ql-background":"背景颜色","ql-size":"字体大小","ql-strike":"删除线","ql-script":"上标/下标","ql-underline":"下划线","ql-blockquote":"引用","ql-header":"标题","ql-indent":"缩进","ql-list":"列表","ql-align":"文本对齐","ql-direction":"文本方向","ql-code-block":"代码块","ql-formula":"公式","ql-image":"图片","ql-video":"视频","ql-clean":"清除字体样式"};function a(){const e=document.querySelector(".ql-toolbar"),t=e.querySelectorAll("button"),n=e.querySelectorAll("select");t.forEach((function(e){"ql-script"===e.className?"sub"===e.value?e.title="下标":e.title="上标":"ql-indent"===e.className?"+1"===e.value?e.title="向右缩进":e.title="向左缩进":e.title=o[e.classList[0]]})),n.forEach((function(e){e.parentNode.title=o[e.classList[0]]}))}var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"quill-editor"},[e._t("toolbar"),n("div",{ref:"editor"})],2)},l=[],u=n("9339"),c=n.n(u),f=n("883c"),d=n.n(f),h={theme:"snow",boundary:document.body,modules:{table:!1,"better-table":{operationMenu:{items:{unmergeCells:{text:"Another unmerge cells name"}}}},keyboard:{bindings:d.a.keyboardBindings},toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]],history:{delay:1e3,maxStack:50,userOnly:!1},imageResize:{displayStyles:{backgroundColor:"black",border:"none",color:"white"},modules:["Resize","DisplaySize","Toolbar"]}},placeholder:"Insert text here ...",readOnly:!1},p=n("f318"),g=n.n(p),m=n("0462");n("64cf"),m["a"].blotName="simpleVideo",m["a"].tagName="video",c.a.register({"modules/better-table":d.a},!0),c.a.register(m["a"]),c.a.register("modules/imageResize",g.a),c.a.register("modules/videoResize",g.a),"function"!==typeof Object.assign&&Object.defineProperty(Object,"assign",{value(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n=Object(e);for(let r=1;r<arguments.length;r++){const e=arguments[r];if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},writable:!0,configurable:!0});var v={name:"quill-editor",data(){return{Options:{},Content:"",defaultOptions:h}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})},globalOptions:{type:Object,required:!1,default:()=>({})}},mounted(){this.initialize()},beforeDestroy(){this.quill=null,delete this.quill},methods:{initialize(){if(this.$el){if(this.Options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new c.a(this.$refs.editor,this.Options),this.quill.enable(!1),this.value||this.content){let e=this.quill.clipboard.convert({html:this.value||this.content});this.quill.setContents(e)}this.disabled||this.quill.enable(!0),this.quill.on("selection-change",e=>{e?this.$emit("focus",this.quill):this.$emit("blur",this.quill)}),this.quill.on("text-change",(e,t,n)=>{let r=this.$refs.editor.children[0].innerHTML;const i=this.quill,o=this.quill.getText();"<p><br></p>"===r&&(r=""),this.Content=r,this.$emit("input",this.Content),this.$emit("change",{html:r,text:o,quill:i})}),this.$emit("ready",this.quill)}}},watch:{content(e,t){if(this.quill)if(e&&e!==this.Content){this.Content=e;let t=this.quill.clipboard.convert({html:e});this.quill.setContents(t)}else e||this.quill.setText("")},value(e,t){if(this.quill)if(e&&e!==this.Content){this.Content=e;let t=this.quill.clipboard.convert({html:e});this.quill.setContents(t)}else e||this.quill.setText("")},disabled(e,t){this.quill&&this.quill.enable(!e)}}},y=v,b=n("2877"),_=Object(b["a"])(y,s,l,!1,null,null,null),w=_.exports,x=n("bc3a"),O=n.n(x),S=n("a78e"),C=n.n(S),k=n("ec41"),E=n("a1a3"),A={name:"rich-text",props:{value:String,asyncConfig:{type:Object,default(){return{data:[]}}},inputStyle:Object,placeholder:String,readonly:Boolean},components:{quillEditor:w},data(){return{option:{},file:"",accept:"",imageAccept:".png,.jpg,.jpeg,.gif",videoAccept:".mp4",fileTypeToAccept:{".pdf":"application/pdf",".gif":"image/gif",".jpeg":"image/jpeg",".jpg":"image/jpeg",".png":"image/png",".txt":"text/plain",".zip":"application/zip",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".mp4":"audio/mp4, video/mp4"},uploadType:"image"}},computed:{fileType(){let e=[];return this.accept&&"string"===typeof this.accept?this.accept.split(",").map(t=>{this.fileTypeToAccept[t]&&e.push(this.fileTypeToAccept[t])}):Array.isArray(this.accept)?this.accept.map(t=>{this.fileTypeToAccept[t]&&e.push(this.fileTypeToAccept[t])}):e=[],e.join(",")},editor(){return this.$refs.myQuillEditor.quill},mergeConfig(){return Object(E["a"])(this.$UploadConfig||{},this.asyncConfig)},editorOption(){return Object(E["a"])(this.option,{placeholder:this.placeholder})},content:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){this.content=this.value,this.initUploadImage()},methods:{checkType(e){if(!this.accept)return!0;const t=e.lastIndexOf("."),n=e.substring(t).toLowerCase(),r=this.accept.split(",");return r.indexOf(n)>=0||(this.$message.error("不支持"+n+"格式"),!1)},handleChange(){const e=this.$refs.input.files[0],t=this.checkType(e.name);if(!t)return void(this.$refs.input.value="");if(e.size>1024*this.size*1024)return this.$refs.input.value="",this.$message.error(`文件${e.name}过大!`);const n=new FormData;this.mergeConfig.data.map(t=>{"file"===t.value&&n.append(t.key,e)}),O.a.post(this.mergeConfig.path,n,{headers:Object.assign({Authorization:C.a.get("sessionId")},this.mergeConfig.headers||{})}).then(e=>{const{data:t}=e;let n={};n=this.mergeConfig.listPath?Object(k["a"])(t,this.mergeConfig.listPath):t,n.name=n[this.mergeConfig.nameKey],n.url=n[this.mergeConfig.urlKey];let r=this.editor.getSelection();"image"===this.uploadType?this.editor.insertEmbed(null!=r?r.index:0,this.uploadType,(this.mergeConfig.domain||"")+n.url):this.editor.insertEmbed(null!=r?r.index:0,"simpleVideo",{url:this.mergeConfig.domain||""+n.url,controls:"controls",width:"1150px",height:"500px"}),this.$refs.input.value=""})},initUploadImage(){this.editor.getModule("toolbar").addHandler("image",this.imgHandler),this.editor.getModule("toolbar").addHandler("video",this.videoHandler)},imgHandler(){this.accept=this.imageAccept,this.uploadType="image",this.$refs.input.click()},videoHandler(){this.accept=this.videoAccept,this.uploadType="video",this.$refs.input.click()},onEditorBlur(){this.$emit("blur")},onEditorFocus(e){this.readonly?e.enable(!1):(e.enable(!0),this.$emit("focus"))},onEditorReady(){a()},onEditorChange({quill:e,html:t,text:n}){this.$emit("change",t)}}},T=A,D=(n("a9e7"),Object(b["a"])(T,r,i,!1,null,null,null)),M=D.exports;M.install=function(e){e.component("SRichText",M)},t["default"]=M},1041:function(e,t,n){var r=n("8eeb"),i=n("a029");function o(e,t){return r(e,i(e),t)}e.exports=o},1147:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e}t["a"]=r},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1368:function(e,t,n){var r=n("da03"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},"14e1":function(e,t,n){},"174a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",e._b({ref:"instance",staticClass:"s-form",class:"form-"+e.type,attrs:{inline:!0,model:e.formData},nativeOn:{submit:function(e){e.preventDefault()}}},"el-form",e.propsAll,!1),[e._l(Object.keys(e.groups),(function(t){return n("div",{key:t,staticClass:"group"},[n("p",{staticClass:"group-title"},[e._v(e._s(t))]),n("div",{staticClass:"group-content"},e._l(e.groups[t],(function(t){return e.showFunction(t.show)?n("items",{key:t._code,attrs:{config:t,type:e.type,"form-data":e.formData,props:e.propsAll,value:e.formData[t._code],mergeStyle:e.mergeStyle(t.style)},on:{setValue:e.setValue},scopedSlots:e._u([{key:"labelAdd-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("labelAdd-"+t.slotName,null,{option:r}):e._t("labelAdd-"+t.key,null,{option:r})]}},{key:"inputInsert-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("inputInsert-"+t.slotName,null,{option:r}):e._t("inputInsert-"+t.key,null,{option:r})]}},{key:"inputAdd-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("inputAdd-"+t.slotName,null,{option:r}):e._t("inputAdd-"+t.key,null,{option:r})]}},{key:"content-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("content-"+t.slotName,null,{option:r}):e._t("content-"+t.key,null,{option:r})]}}],null,!0)}):e._e()})),1)])})),e._l(e.unGroups,(function(t){return[e.showFunction(t.show)?n("items",{key:t._code,attrs:{config:t,type:e.type,"form-data":e.formData,props:e.propsAll,value:e.formData[t._code],mergeStyle:e.mergeStyle(t.style)},on:{setValue:e.setValue},scopedSlots:e._u([{key:"labelAdd-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("labelAdd-"+t.slotName,null,{option:r}):e._t("labelAdd-"+t.key,null,{option:r})]}},{key:"inputInsert-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("inputInsert-"+t.slotName,null,{option:r}):e._t("inputInsert-"+t.key,null,{option:r})]}},{key:"inputAdd-"+t._code,fn:function(n){var r=n.option;return[t.slotName?e._t("inputAdd-"+t.slotName,null,{option:r}):e._t("inputAdd-"+t.key,null,{option:r})]}},{key:"content-"+t._code,fn:function(n){var r=n.option,i=n.data;return[t.slotName?e._t("content-"+t.slotName,null,{option:r}):e._t("content-"+t.key,null,{option:r,data:i})]}}],null,!0)}):e._e()]}))],2)},i=[],o=n("5a0b"),a=o["a"],s=(n("5cbf"),n("fffd"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"40324988",null),u=l.exports;function c(e,t,n){const{value:r,modifiers:i,rawName:o}=t;i.label?n.map(t=>{t.label===o.split(".")[2]&&(t[e]=r)}):i.number?n[o.split(".")[2]][e]=r:n.map(t=>{t[e]=r})}u.install=function(e,t){e.directive("change",{bind:function(e,t,n){c("change",t,n.componentInstance.form)}}),e.directive("blur",{bind:function(e,t,n){c("blur",t,n.componentInstance.form)}}),e.directive("focus",{bind:function(e,t,n){c("focus",t,n.componentInstance.form)}}),t&&t.UploadConfig&&(e.prototype.$UploadConfig=t.UploadConfig),e.component("SGroupForm",u)},t["default"]=u},"18d8":function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},"1a2d":function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1b89":function(e,t,n){"use strict";var r=n("964c");function i(e,t){var n=t?Object(r["a"])(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t["a"]=i},"1bac":function(e,t,n){var r=n("7d1f"),i=n("a029"),o=n("9934");function a(e){return r(e,o,i)}e.exports=a},"1bc6":function(e,t,n){"use strict";var r=n("f0ce"),i=n("1147"),o="[object Symbol]";function a(e){return"symbol"==typeof e||Object(i["a"])(e)&&Object(r["a"])(e)==o}t["a"]=a},"1cec":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Promise");e.exports=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1da4":function(e,t,n){"use strict";n("5abf")},"1e55":function(e,t,n){"use strict";n.r(t),t["default"]={singleTag:["input","switch","slider","timePicker","datePicker","rate","colorPicker","inputNumber","cascader"],groupTag:["radioButton","radio","checkbox"],optionsTag:["select"],selfTag:["text","button","image","fileView","upload","number","code","richText","dict","treeDict","checkTag","time","selectRange"]}},"1e8b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload",class:"plus"===e.btnView?"start":""},[e.btnView?e._e():n("el-button",e._b({directives:[{name:"show",rawName:"v-show",value:e.fileList.length<e.length,expression:"fileList.length<length"}],attrs:{loading:e.loading,type:"primary"},on:{click:e.clickHandle}},"el-button",e.btnProps,!1),[e.loading?[e._v("upload（"+e._s(e.progressRatio)+"%）")]:[e._v(e._s(e.btnProps.text))]],2),n("span",{class:e.fileList.length<e.length}),"plus"===e.btnView?n("div",{directives:[{name:"show",rawName:"v-show",value:e.fileList.length<e.length,expression:"fileList.length<length"}],staticClass:"plus",on:{click:e.clickHandle}},[n("i",{staticClass:"el-icon-plus"})]):e._e(),"image"!==e.view?n("span",{staticClass:"tips",domProps:{innerHTML:e._s(e.tips)}}):e._e(),n("input",{ref:"input",staticStyle:{display:"none"},attrs:{type:"file",accept:e.fileType,multiple:e.multiple},on:{change:e.handleChange}}),e.fileView&&e.fileList.length>0?n("file-view",{attrs:{imageStyle:e.imageStyle,fileGetPath:e.fileGetPath,asyncConfig:e.asyncConfig,view:e.view,remove:e.remove},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}}):e._e(),"image"===e.view?n("div",{staticClass:"tips",domProps:{innerHTML:e._s(e.tips)}}):e._e()],1)},i=[],o=n("cec2"),a=n("bc3a"),s=n.n(a),l=n("a78e"),u=n.n(l),c=n("ec41"),f=n("a1a3"),d=n("7c8d"),h=n.n(d),p={name:"SUpload",components:{FileView:o["a"]},props:{value:{type:String,default:""},fileGetPath:{type:String},length:{type:Number,default:99},btnView:{type:String,default:""},accept:{type:[String,Array],default:""},fileView:{type:Boolean,default:!0},size:{type:Number,default:50},btnProps:{type:Object,default:()=>({icon:"el-icon-upload",text:"点击上传"})},tips:String,remove:{type:Boolean,default:!1},view:{type:String,default:"file"},asyncConfig:{type:Object,default:()=>({})},imageStyle:{type:Object,default:()=>({})},quality:{type:[Number,String],default:()=>1},multiple:{type:Boolean,default:!1}},data(){return{fileList:[],file:"",loading:!1,progressRatio:0,fileTypeToAccept:{".pdf":"application/pdf",".gif":"image/gif",".jpeg":"image/jpeg",".jpg":"image/jpeg",".png":"image/png",".txt":"text/plain",".zip":"application/zip",".csv":"text/csv",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".mp4":"audio/mp4, video/mp4"}}},computed:{fileType(){let e=[];return this.accept&&"string"===typeof this.accept?this.accept.split(",").map(t=>{this.fileTypeToAccept[t]&&e.push(this.fileTypeToAccept[t])}):Array.isArray(this.accept)?this.accept.map(t=>{this.fileTypeToAccept[t]&&e.push(this.fileTypeToAccept[t])}):e=[],e.join(",")},mergeConfig(){return Object(f["a"])(this.$UploadConfig,this.asyncConfig)}},watch:{value:{immediate:!0,handler(){this.buildFileList()}},fileList(e){if(e.length>0){const t=[];"JSON"===this.mergeConfig.getType?(this.$emit("input",JSON.stringify(e)),this.$emit("change",JSON.stringify(e))):(e.map(e=>{t.push(e.url+"&&"+e.name)}),this.$emit("input",t.join(",")),this.$emit("change",t.join(",")))}else this.$emit("input",""),this.$emit("change","")}},methods:{clickHandle(){this.$refs.input.click()},checkType(e){if(!this.accept)return!0;const t=e.lastIndexOf("."),n=e.substring(t).toLowerCase(),r=this.accept.split(",");return r.indexOf(n)>=0||(this.$message.error("不支持"+n+"格式"),!1)},handleChange(){if(this.multiple){let e=0;const t=[];for(let n=0;n<this.$refs.input.files.length;n++)this.accessFile(this.$refs.input.files[n])&&(e++,t.push(this.$refs.input.files[n]));e===this.$refs.input.files.length&&this.realUpload(t)}else{const e=this.$refs.input.files[0];this.accessFile(e),e.type.indexOf("image")>=0&&this.quality<1?new h.a(e,{quality:this.quality,maxWidth:1024,success:e=>{const t=new window.File([e],e.name.toLowerCase(),{type:e.type.toLowerCase()});this.realUpload(t)}}):this.realUpload(e)}},accessFile(e){let t=this.checkType(e.name);return this.loading=!0,t||(this.$refs.input.value="",this.loading=!1,this.progressRatio=0),e.size>1024*this.size*1024&&(this.$refs.input.value="",this.loading=!1,this.progressRatio=0,this.$message.error(`文件${e.name}过大!`),t=!1),t},realUpload(e){if("base64"!==this.mergeConfig.fileType){const t=new FormData;this.mergeConfig.data.map(n=>{"file"===n.value&&(Array.isArray(e)?e.map(e=>{t.append(n.key,e)}):t.append(n.key,e))}),s.a.post(this.mergeConfig.path,t,{headers:Object.assign({Authorization:u.a.get("sessionId")||sessionStorage.sessionId},this.mergeConfig.headers||{}),onUploadProgress:this.UploadProgress}).then(t=>{const{data:n}=t;let r={};r=this.mergeConfig.listPath?Object(c["a"])(n,this.mergeConfig.listPath):n,this.loading=!1,this.multiple?r.map(t=>{t.name=this.mergeConfig.nameKey?t[this.mergeConfig.nameKey]:e.name,t.url=t[this.mergeConfig.urlKey],this.fileList.push(t)}):(r.name=this.mergeConfig.nameKey?r[this.mergeConfig.nameKey]:e.name,r.url=r[this.mergeConfig.urlKey],this.fileList.push(r)),this.$refs.input.value="",this.$emit("change")}).catch(()=>{this.loading=!1})}else this.changeToBase64(e).then(t=>{const n={};this.mergeConfig.data.map(r=>{"file"===r.value&&(n[r.key]=t),"name"===r.value&&(n[r.key]=e.name)}),s.a.post(this.mergeConfig.path,n,{headers:Object.assign({Authorization:u.a.get("sessionId")},this.mergeConfig.headers||{}),onUploadProgress:this.UploadProgress}).then(t=>{const{data:n}=t;let r={};r=this.mergeConfig.listPath?Object(c["a"])(n,this.mergeConfig.listPath):n,this.loading=!1;const i={name:this.mergeConfig.nameKey?r[this.mergeConfig.nameKey]:e.name,type:"base64",url:r[this.mergeConfig.urlKey]};this.fileList.push(i),this.$refs.input.value="",this.$emit("change")}).catch(()=>{this.loading=!1})})},UploadProgress(e){this.progressRatio=parseInt(e.loaded/e.total*100)},changeToBase64(e){var t=new FileReader;return t.readAsDataURL(e),new Promise(e=>{t.onload=function(t){e(t.target.result)}})},buildFileList(){let e=[];this.value&&"string"===typeof this.value?this.value.indexOf("[{")<0&&this.value.length>0?this.value.indexOf("base64")<0?this.value.split(",").map(t=>{e.push({name:t.split("&&")[1],url:t.split("&&")[0]})}):e.push({name:this.value.split("&&")[1],url:this.value.split("&&")[0]}):e=JSON.parse(this.value):e=this.value||[],this.fileList=e}}},g=p,m=(n("e67a"),n("2877")),v=Object(m["a"])(g,r,i,!1,null,"c1e48412",null),y=v.exports;y.install=function(e){e.component("SUpload",y)},t["default"]=y},"1efc":function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"1f25":function(e,t,n){},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(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 r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(f(e,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc8":function(e,t,n){var r=n("4245");function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},2250:function(e,t,n){"use strict";var r=n("ff51"),i=n("bd8f"),o=n("0e59"),a="Expected a function";function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(s.Cache||o["a"]),n}s.Cache=o["a"];var l=s,u=500;function c(e){var t=l(e,(function(e){return n.size===u&&n.clear(),e})),n=t.cache;return t}var f=c,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,p=f((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(d,(function(e,n,r,i){t.push(r?i.replace(h,"$1"):n||e)})),t})),g=p,m=n("ca54");function v(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}var y=v,b=n("1bc6"),_=1/0,w=m["a"]?m["a"].prototype:void 0,x=w?w.toString:void 0;function O(e){if("string"==typeof e)return e;if(Object(r["a"])(e))return y(e,O)+"";if(Object(b["a"])(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-_?"-0":t}var S=O;function C(e){return null==e?"":S(e)}var k=C;function E(e,t){return Object(r["a"])(e)?e:Object(i["a"])(e,t)?[e]:g(k(e))}t["a"]=E},2332:function(e,t,n){"use strict";function r(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t["a"]=r},"234d":function(e,t,n){var r=n("e380"),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.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,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(o)})),e.exports=l}).call(this,n("4362"))},2474:function(e,t,n){var r=n("2b3e"),i=r.Uint8Array;e.exports=i},2478:function(e,t,n){var r=n("4245");function i(e){return r(this,e).get(e)}e.exports=i},2524:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},"253c":function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},"26ce":function(e,t,n){"use strict";var r=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}t["a"]=i},"26ee":function(e,t,n){"use strict";var r=n("5ea3"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();t["a"]=o},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"28a9":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"text"},[Array.isArray(e.value)?[e._v(e._s(e.value.join(e.separator)))]:[e._v(e._s(e.value))]],2)},i=[],o={name:"sText",data(){return{}},props:{value:{type:[String,Number,Array],default:""},separator:{type:String,default:"-"}}},a=o,s=(n("8e92"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,null,null),u=l.exports;u.install=function(e){e.component("SText",u)},t["default"]=u},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"29f3":function(e,t){var n=Object.prototype,r=n.toString;function i(e){return r.call(e)}e.exports=i},"2ab5":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{attrs:{size:e.size,clearable:e.clearable,placeholder:e.placeholder,disabled:e.disabled},on:{change:e.change},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},e._l(e.options,(function(t,r){return n("el-option",{key:r,attrs:{label:t[e.mapper.label],value:t[e.mapper.value]}})})),1)},i=[],o={name:"SSelectRange",data(){return{}},props:{size:String,clearable:Boolean,placeholder:String,disabled:Boolean,value:Array,options:Array,mapper:{type:Object,default(){return{label:"label",value:"value",children:"children"}}}},computed:{model:{get(){return this.value&&(this.value[1]||this.value[0])?JSON.stringify(this.value):""},set(e){e?this.$emit("input",JSON.parse(e)):this.$emit("input","")}}},methods:{change(e){this.$emit("change",this.config,e)}}},a=o,s=(n("f3eb"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"c12cd7c4",null),u=l.exports;u.install=function(e){e.component("SSelectRange",u)},t["default"]=u},"2b3e":function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},"2b5e":function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}var i=r,o=n("2250"),a=n("f5fe"),s=n("ff51"),l=n("7129"),u=n("26ce"),c=n("4dc8");function f(e,t,n){t=Object(o["a"])(t,e);var r=-1,i=t.length,f=!1;while(++r<i){var d=Object(c["a"])(t[r]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++r!=i?f:(i=null==e?0:e.length,!!i&&Object(u["a"])(i)&&Object(l["a"])(d,i)&&(Object(s["a"])(e)||Object(a["a"])(e)))}var d=f;function h(e,t){return null!=e&&d(e,t,i)}t["a"]=h},"2c98":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-"+e.config.type,e._b({tag:"div",on:{change:e.change,focus:e.focus,blur:e.blur},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},"div",e.config.props,!1),e._l(e.config.options,(function(t,r){return n("el-option",e._b({key:r,attrs:{label:t[e.mapper.label],value:t[e.mapper.value]}},"el-option",t,!1))})),1)},i=[],o={name:"optionsTag",props:{value:String|Number,config:Object,mapper:Object,inputStyle:Object},computed:{model:{set(e){this.$emit("changeValue",e),this.$emit("input",e)},get(){return this.value}}},methods:{change(e){this.config.change&&this.$emit("change",e)},focus(){this.config.focus&&this.$emit("focus",this.value)},blur(){this.config.blur&&this.$emit("blur",this.value)}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["a"]=l.exports},"2cbe":function(e,t,n){},"2d7c":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=n},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2dcb":function(e,t,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);e.exports=i},"2e38":function(e,t,n){(function(e){ace.define("ace/theme/twilight",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-twilight",t.cssText=".ace-twilight .ace_gutter {background: #232323;color: #E2E2E2}.ace-twilight .ace_print-margin {width: 1px;background: #232323}.ace-twilight {background-color: #141414;color: #F8F8F8}.ace-twilight .ace_cursor {color: #A7A7A7}.ace-twilight .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20)}.ace-twilight.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #141414;}.ace-twilight .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-twilight .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25)}.ace-twilight .ace_marker-layer .ace_active-line {background: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_gutter-active-line {background-color: rgba(255, 255, 255, 0.031)}.ace-twilight .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20)}.ace-twilight .ace_invisible {color: rgba(255, 255, 255, 0.25)}.ace-twilight .ace_keyword,.ace-twilight .ace_meta {color: #CDA869}.ace-twilight .ace_constant,.ace-twilight .ace_constant.ace_character,.ace-twilight .ace_constant.ace_character.ace_escape,.ace-twilight .ace_constant.ace_other,.ace-twilight .ace_heading,.ace-twilight .ace_markup.ace_heading,.ace-twilight .ace_support.ace_constant {color: #CF6A4C}.ace-twilight .ace_invalid.ace_illegal {color: #F8F8F8;background-color: rgba(86, 45, 86, 0.75)}.ace-twilight .ace_invalid.ace_deprecated {text-decoration: underline;font-style: italic;color: #D2A8A1}.ace-twilight .ace_support {color: #9B859D}.ace-twilight .ace_fold {background-color: #AC885B;border-color: #F8F8F8}.ace-twilight .ace_support.ace_function {color: #DAD085}.ace-twilight .ace_list,.ace-twilight .ace_markup.ace_list,.ace-twilight .ace_storage {color: #F9EE98}.ace-twilight .ace_entity.ace_name.ace_function,.ace-twilight .ace_meta.ace_tag,.ace-twilight .ace_variable {color: #AC885B}.ace-twilight .ace_string {color: #8F9D6A}.ace-twilight .ace_string.ace_regexp {color: #E9C062}.ace-twilight .ace_comment {font-style: italic;color: #5F5A60}.ace-twilight .ace_variable {color: #7587A6}.ace-twilight .ace_xml-pe {color: #494949}.ace-twilight .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})),function(){ace.require(["ace/theme/twilight"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f74":function(e,t,n){"use strict";function r(){return!1}t["a"]=r},"2fcc":function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).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(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30c9":function(e,t,n){var r=n("9520"),i=n("b218");function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},"32b3":function(e,t,n){var r=n("872a"),i=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},"32f4":function(e,t,n){var r=n("2d7c"),i=n("d327"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=l},"34ac":function(e,t,n){var r=n("9520"),i=n("1368"),o=n("1a8c"),a=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,d=c.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!o(e)||i(e))return!1;var t=r(e)?h:l;return t.test(a(e))}e.exports=p},3698:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},3729:function(e,t,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}e.exports=u},3818:function(e,t,n){var r=n("7e64"),i=n("8057"),o=n("32b3"),a=n("5b01"),s=n("0f0f"),l=n("e538"),u=n("4359"),c=n("54eb"),f=n("1041"),d=n("a994"),h=n("1bac"),p=n("42a2"),g=n("c87c"),m=n("c2b6"),v=n("fa21"),y=n("6747"),b=n("0d24"),_=n("cc45"),w=n("1a8c"),x=n("d7ee"),O=n("ec69"),S=n("9934"),C=1,k=2,E=4,A="[object Arguments]",T="[object Array]",D="[object Boolean]",M="[object Date]",P="[object Error]",I="[object Function]",j="[object GeneratorFunction]",L="[object Map]",N="[object Number]",R="[object Object]",B="[object RegExp]",$="[object Set]",F="[object String]",z="[object Symbol]",q="[object WeakMap]",U="[object ArrayBuffer]",H="[object DataView]",V="[object Float32Array]",W="[object Float64Array]",K="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",X="[object Uint8Array]",Z="[object Uint8ClampedArray]",Q="[object Uint16Array]",J="[object Uint32Array]",ee={};function te(e,t,n,T,D,M){var P,L=t&C,N=t&k,B=t&E;if(n&&(P=D?n(e,T,D,M):n(e)),void 0!==P)return P;if(!w(e))return e;var $=y(e);if($){if(P=g(e),!L)return u(e,P)}else{var F=p(e),z=F==I||F==j;if(b(e))return l(e,L);if(F==R||F==A||z&&!D){if(P=N||z?{}:v(e),!L)return N?f(e,s(P,e)):c(e,a(P,e))}else{if(!ee[F])return D?e:{};P=m(e,F,L)}}M||(M=new r);var q=M.get(e);if(q)return q;M.set(e,P),x(e)?e.forEach((function(r){P.add(te(r,t,n,r,e,M))})):_(e)&&e.forEach((function(r,i){P.set(i,te(r,t,n,i,e,M))}));var U=B?N?h:d:N?S:O,H=$?void 0:U(e);return i(H||e,(function(r,i){H&&(i=r,r=e[i]),o(P,i,te(r,t,n,i,e,M))})),P}ee[A]=ee[T]=ee[U]=ee[H]=ee[D]=ee[M]=ee[V]=ee[W]=ee[K]=ee[G]=ee[Y]=ee[L]=ee[N]=ee[R]=ee[B]=ee[$]=ee[F]=ee[z]=ee[X]=ee[Z]=ee[Q]=ee[J]=!0,ee[P]=ee[I]=ee[q]=!1,e.exports=te},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}},"38c1":function(e,t,n){},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{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=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"39ff":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"WeakMap");e.exports=o},"3a0d":function(e,t,n){"use strict";n.r(t);var r=n("d04e"),i=n("174a"),o=n("5bfa"),a=n("1e8b"),s=n("c739"),l=n("0fd7"),u=n("0963"),c=n("0bb3"),f=n("28a9"),d=n("59d6"),h=n("f660"),p=n("c743"),g=n("7603"),m=n("8efc"),v=n("2ab5"),y=n("9224");const b=[r["default"],i["default"],m["default"],p["default"],v["default"],h["default"],g["default"],a["default"],s["default"],l["default"],u["default"],c["default"],f["default"],o["default"],d["default"]],_=function(e,t){_.installed||b.forEach(n=>{t&&"SGroupForm"===n.name?e.use(n,t):e.use(n)})};"undefined"!==typeof window&&window.Vue&&_(window.Vue),t["default"]={version:y["a"],install:_,SGroupLayout:r["default"],SUpload:a["default"],SNumber:m["default"],STime:p["default"],SFileView:s["default"],SRichText:l["default"],SGroupForm:i["default"],SDict:u["default"],STreeDict:c["default"],SText:f["default"],SGroupTable:o["default"],SCheckTag:d["default"],SSelectRange:v["default"],SCode:h["default"],SImage:g["default"]}},"3b4a":function(e,t,n){var r=n("0b07"),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},"41c3":function(e,t,n){var r=n("1a8c"),i=n("eac5"),o=n("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function l(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=l},4245:function(e,t,n){var r=n("1290");function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},"42a2":function(e,t,n){var r=n("b5a7"),i=n("79bc"),o=n("1cec"),a=n("c869"),s=n("39ff"),l=n("3729"),u=n("dc57"),c="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",g="[object DataView]",m=u(r),v=u(i),y=u(o),b=u(a),_=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=g||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=l(e),n=t==f?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return g;case v:return c;case y:return d;case b:return h;case _:return p}return t}),e.exports=w},4359:function(e,t){function n(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=n},4362: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,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"470b":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{attrs:{src:e.domain+e.useUrl},on:{error:function(t){e.error=!0},click:function(t){return e.$emit("preview")}}})},i=[],o=n("bc3a"),a=n.n(o),s=n("ec41"),l={name:"SImage",props:{value:[Object,String],domain:{type:String,default:""},fileGetPath:String,mode:{type:String,default:"image"},urlKey:{type:String,default:"url"},nameKey:{type:String,default:"name"},errorImage:String},data(){return{error:!1,name:"",useUrl:""}},methods:{getImage(e){return new Promise(t=>{const n=e||this.value;if(this.error)t({url:this.errorImage,name:"暂无图片"});else if("object"===typeof n&&n)"base64"===this.value.type?this.getBase64(t,n):t({url:n[this.urlKey],name:n[this.nameKey]});else if(this.value.indexOf("{")>=0){const e=JSON.parse(n)[0];"base64"===e.type?this.getBase64(t,e):t({url:e[this.urlKey],name:e[this.nameKey]})}else t(n?{url:n,name:""}:{url:"",name:""})})},getBase64(e,t){a.a.get(this.fileGetPath+"/"+t.url).then(t=>{const{data:n}=t;e({url:Object(s["a"])(n,"data.base64"),name:Object(s["a"])(n,this.nameKey)})})}},watch:{value:{immediate:!0,handler(){this.getImage().then(e=>{this.useUrl=e.url,this.name=e.name})}}}},u=l,c=(n("cb4c"),n("2877")),f=Object(c["a"])(u,r,i,!1,null,"eb7a341e",null);t["a"]=f.exports},"49f4":function(e,t,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},"4c5c":function(e,t,n){"use strict";var r=n("db97"),i=n("8cdf"),o=n("9a4b");function a(e){return Object(r["a"])(e,o["a"],i["a"])}t["a"]=a},"4d00":function(e,t,n){},"4dc8":function(e,t,n){"use strict";var r=n("1bc6"),i=1/0;function o(e){if("string"==typeof e||Object(r["a"])(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t["a"]=o},"4e48":function(e,t){!function(e){var t,n,r,i,o,a,s='<svg><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M232.107 40.83833333h90.892c14.19 0 24.283 7.314 30.525 19.505a34.23 34.23 0 0 1-0.975 34.864 34.475 34.475 0 0 1-31.696 18.042c-46.275-0.195-92.745-0.195-139.069 0-19.7 0-38.522 4.047-55.588 14.287-35.304 21.456-53.882 53.443-54.467 95.232-0.537 37.742-0.195 75.484-0.195 113.226 0 7.948-0.976 15.506-5.315 22.674a35.596 35.596 0 0 1-39.985 16.238A35.889 35.889 0 0 1 0.195 340.43133333c0-49.542-0.536-99.28 0.195-148.821 0.585-50.323 21.65-90.6 60.709-120.93 22.04-17.067 47.055-26.575 74.41-29.452 2.097-0.39 4.535-0.39 7.022-0.39h89.576z m526.384 0h-90.94c-14.239 0-24.333 7.314-30.574 19.505a34.23 34.23 0 0 0 0.975 34.864c6.973 11.996 17.603 18.042 31.695 18.042 46.275-0.195 92.745-0.195 139.07 0 19.699 0 38.521 4.047 55.588 14.287 35.303 21.456 53.882 53.443 54.467 95.232 0.536 37.742 0.195 75.484 0.195 113.226 0 7.948 0.975 15.506 5.315 22.674a35.596 35.596 0 0 0 39.985 16.238 35.889 35.889 0 0 0 26.039-34.475c0-49.542 0.585-99.28-0.196-148.821-0.585-50.323-21.65-90.6-60.708-120.93a144.14 144.14 0 0 0-74.41-29.452 95.28 95.28 0 0 0-7.169-0.39h-89.332zM232.107 1018.27033333h90.892c14.19 0 24.283-7.314 30.525-19.505a34.23 34.23 0 0 0-0.975-34.864 34.475 34.475 0 0 0-31.696-18.042c-46.275 0.195-92.745 0.195-139.069 0-19.7 0-38.522-4.048-55.588-14.288-35.304-21.455-53.882-53.443-54.467-95.232-0.537-37.741-0.195-75.483-0.195-113.225a41.545 41.545 0 0 0-5.315-22.674 35.596 35.596 0 0 0-39.985-16.238A35.889 35.889 0 0 0 0.195 718.62833333c0 49.591-0.536 99.328 0.195 148.87 0.585 50.323 21.65 90.6 60.709 120.93a144.14 144.14 0 0 0 81.627 29.842h89.38z m526.384 0h-90.94c-14.239 0-24.333-7.314-30.574-19.505a34.23 34.23 0 0 1 0.975-34.864 34.475 34.475 0 0 1 31.695-18.042c46.275 0.195 92.745 0.195 139.07 0 19.699 0 38.521-4.048 55.588-14.288 35.303-21.455 53.882-53.443 54.467-95.232 0.536-37.741 0.195-75.483 0.195-113.225 0-7.948 0.975-15.506 5.315-22.674a35.596 35.596 0 0 1 39.985-16.238 35.889 35.889 0 0 1 26.039 34.426c0 49.591 0.585 99.328-0.196 148.87-0.585 50.323-21.65 90.6-60.708 120.93a144.14 144.14 0 0 1-81.628 29.842h-89.331zM202.313 721.94433333c5.657 14.531 17.262 23.016 30.915 23.016h520.875c9.265 0 17.457-3.901 24.088-11.606 6.632-7.753 13.507-17.213 13.507-28.282V366.42133333c0-29.403-11.995-44.13-25.648-49.932-13.654-5.998-28.087-1.512-37.547 11.215l-181.59 246.004a30.769 30.769 0 0 1-25.648 13.75 30.769 30.769 0 0 1-25.6-13.75l-80.847-109.568a31.354 31.354 0 0 0-25.844-13.751c-10.24 0-18.92 4.876-25.747 13.946l-155.794 215.04a43.74 43.74 0 0 0-5.12 42.569z"  ></path></symbol><symbol id="icon-saoma" viewBox="0 0 1024 1024"><path d="M115.41504 393.03168c-23.77728 0-39.63904-15.81056-39.63904-39.56736v-158.6176c0-63.49824 55.5008-119.04 118.96832-119.04h158.67904c23.76704 0 39.6288 15.91296 39.6288 39.70048 0 23.7568-15.91296 39.63904-39.69024 39.63904H194.69312c-23.81824 0-39.63904 15.91296-39.63904 39.68v158.60736c0.07168 23.77728-15.80032 39.60832-39.6288 39.60832v-0.01024z m237.93664 555.17184H194.69312c-63.40608 0-118.90688-55.5008-118.90688-118.96832V670.6688c0-23.87968 15.88224-39.63904 39.63904-39.63904 23.76704 0 39.70048 15.75936 39.70048 39.63904v158.55616c0 23.76704 15.86176 39.75168 39.6288 39.75168h158.67904c23.76704 0 39.6288 15.75936 39.6288 39.51616-0.07168 23.84896-15.9232 39.71072-39.71072 39.71072z m475.83232 0H670.63808c-23.87968 0-39.74144-15.88224-39.74144-39.75168 0-23.77728 15.86176-39.53664 39.74144-39.53664h158.55616c23.87968 0 39.6288-15.96416 39.6288-39.75168V670.6688c0-23.87968 15.88224-39.63904 39.75168-39.63904 23.77728 0 39.63904 15.75936 39.63904 39.63904v158.55616c-0.0512 63.46752-55.66464 118.96832-119.01952 118.96832h-0.01024z m79.33952-555.17184c-23.87968 0-39.74144-15.81056-39.74144-39.56736v-158.6176c0-23.83872-15.75936-39.70048-39.64928-39.70048H670.63808c-23.87968 0-39.74144-15.83104-39.74144-39.63904 0-23.83872 15.91296-39.70048 39.74144-39.70048h158.55616c63.34464 0 118.96832 55.56224 118.96832 119.01952v158.60736c0 23.77728-15.88224 39.60832-39.64928 39.60832v-0.01024z m0 158.70976H115.41504c-23.77728 0-39.63904-15.91296-39.63904-39.75168 0-23.808 15.88224-39.66976 39.63904-39.66976h793.09824c23.78752 0 39.64928 15.91296 39.64928 39.66976 0.01024 23.78752-15.872 39.75168-39.63904 39.75168z m0 0"  ></path></symbol><symbol id="icon-download" viewBox="0 0 1024 1024"><path d="M731.04 449.472l-52.8-56.56L544 530.912V208h-80v322.8l-141.76-137.984-58.464 56.56 233.696 234.592L731.04 449.472zM816 592v160H192V592H112v240h784V592h-80z" fill="#565D64" ></path></symbol><symbol id="icon-remove" viewBox="0 0 1024 1024"><path d="M943.86650844 206.93079917C957.46119594 206.94953229 968.49698188 195.88966855 968.51562406 182.22790105 968.53426437 168.56613261 957.52870438 157.4758948 943.93401594 157.45716167L62.42935156 156.24242229C48.83466313 156.22368823 37.79887812 167.28355292 37.78023594 180.94532042 37.76159375 194.60708792 48.76715469 205.69732573 62.36184313 205.71605979L943.86650844 206.93079917ZM201.18772062 941.00057511L201.18772062 965.99309698 226.056215 965.73611042 813.27674187 959.66786698 837.63901625 959.41611073 837.63901625 934.93233261 837.63901625 281.97663261C837.63901625 268.31485292 826.61833438 257.23979042 813.02363188 257.23979042 799.42893031 257.23979042 788.40824844 268.31485292 788.40824844 281.97663261L788.40824844 934.93233261 812.77052187 910.19679636 225.54999594 916.26504073 250.41849031 941.00057511 250.41849031 275.66983854C250.41849031 262.00805698 239.39780844 250.93299636 225.80310594 250.93299636 212.20840438 250.93299636 201.18772062 262.00805698 201.18772062 275.66983854L201.18772062 941.00057511ZM647.38461594 804.80325448C647.38461594 818.46503511 658.40529781 829.54009667 672.00000031 829.54009667 685.59470187 829.54009667 696.61538375 818.46503511 696.61538375 804.80325448L696.61538375 359.54009698C696.61538375 345.87831448 685.59470187 334.80325479 672.00000031 334.80325479 658.40529781 334.80325479 647.38461594 345.87831448 647.38461594 359.54009698L647.38461594 804.80325448ZM351.99999969 804.80325448C351.99999969 818.46503511 363.02068438 829.54009667 376.61538406 829.54009667 390.21008562 829.54009667 401.23077031 818.46503511 401.23077031 804.80325448L401.23077031 359.54009698C401.23077031 345.87831448 390.21008562 334.80325479 376.61538406 334.80325479 363.02068438 334.80325479 351.99999969 345.87831448 351.99999969 359.54009698L351.99999969 804.80325448ZM499.69230781 804.80325448C499.69230781 818.46503511 510.71298969 829.54009667 524.30769219 829.54009667 537.90239375 829.54009667 548.92307562 818.46503511 548.92307562 804.80325448L548.92307562 359.54009698C548.92307562 345.87831448 537.90239375 334.80325479 524.30769219 334.80325479 510.71298969 334.80325479 499.69230781 345.87831448 499.69230781 359.54009698L499.69230781 804.80325448ZM399.63852031 120.09333261C399.63852031 106.35135636 410.52374844 95.38245448 424.25125625 95.38245448L615.99293375 95.38245448C629.57088781 95.38245448 640.60566969 106.44344792 640.60566969 119.93190261L640.60566969 171.58373698 689.83644031 171.58373698 689.83644031 119.93190261C689.83644031 79.09161073 656.73223437 45.90877011 615.99293375 45.90877011L424.25125625 45.90877011C383.30415031 45.90877011 350.40774969 79.05804542 350.40774969 120.09333261L350.40774969 165.64554261 399.63852031 165.64554261 399.63852031 120.09333261Z"  ></path></symbol><symbol id="icon-plus" viewBox="0 0 1024 1024"><path d="M930.688 487.338667s3.584 0.469333 6.314667 1.322666a32 32 0 0 1 5.973333 58.496c-4.906667 2.730667-15.530667 4.053333-15.530667 4.053334H96.554667s-3.584-0.085333-6.442667-0.682667a31.786667 31.786667 0 0 1-16.725333-9.301333 32.256 32.256 0 0 1 0-44.074667 32.213333 32.213333 0 0 1 7.637333-5.930667c4.906667-2.730667 15.530667-4.010667 15.530667-4.010666l834.133333 0.128z"  ></path><path d="M516.864 72.149333a32.042667 32.042667 0 0 1 25.685333 22.016 59.733333 59.733333 0 0 1 1.450667 9.6v830.848s-1.322667 10.666667-4.010667 15.530667a31.573333 31.573333 0 0 1-13.909333 13.226667 32.341333 32.341333 0 0 1-36.138667-5.546667 32.341333 32.341333 0 0 1-9.301333-16.768c-0.554667-2.816-0.64-6.442667-0.64-6.442667V103.765333s0.469333-6.4 1.450667-9.6a32.298667 32.298667 0 0 1 19.456-20.394666 34.816 34.816 0 0 1 12.714666-1.962667l3.242667 0.341333z"  ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M511.65696 471.998464l140.791808-140.792832c11.108352-11.108352 29.118464-11.108352 40.226816 0 11.108352 11.108352 11.108352 29.118464 0 40.226816L551.882752 512.22528l140.792832 140.792832c11.108352 11.108352 11.108352 29.118464 0 40.226816-11.108352 11.108352-29.118464 11.108352-40.226816 0L511.65696 552.452096 370.864128 693.244928c-11.108352 11.108352-29.118464 11.108352-40.226816 0-11.108352-11.108352-11.108352-29.118464 0-40.226816L471.42912 512.22528 330.637312 371.432448c-11.108352-11.108352-11.108352-29.118464 0-40.226816 11.108352-11.108352 29.118464-11.108352 40.226816 0l140.792832 140.792832z" fill="#323233" ></path><path d="M512 910.222336c219.931648 0 398.222336-178.290688 398.222336-398.222336 0-219.931648-178.290688-398.222336-398.222336-398.222336-219.931648 0-398.222336 178.290688-398.222336 398.222336 0 219.931648 178.290688 398.222336 398.222336 398.222336z m0 56.88832C260.64896 967.110656 56.889344 763.35104 56.889344 512S260.64896 56.889344 512 56.889344 967.110656 260.64896 967.110656 512 763.35104 967.110656 512 967.110656z" fill="#323233" ></path></symbol><symbol id="icon-remove1" viewBox="0 0 1024 1024"><path d="M822.32 98.24L512 408.56 201.68 98.24l-103.44 103.44L408.56 512 98.24 822.32l103.44 103.44L512 615.44l310.32 310.32 103.44-103.44L615.44 512l310.32-310.32z"  ></path></symbol><symbol id="icon-shangchuan" viewBox="0 0 1024 1024"><path d="M511.741935 420.645162 511.741935 420.645162 512 420.645162 512.516129 420.645162 511.741935 420.645162ZM495.483871 427.870968 306.32258 616.516129C297.032258 625.548387 297.032258 640.516128 306.32258 650.064518 315.354838 659.096774 330.580645 659.096774 339.870968 650.064518L488.258065 501.67742 488.258065 820.866362C488.258065 833.769587 498.83871 844.866362 512 844.866362 525.16129 844.866362 535.741935 833.769587 535.741935 820.866362L535.741935 501.67742 684.387098 650.064518C693.677421 659.096774 708.645158 659.096774 718.193549 650.064518 726.967744 640.516128 726.967744 625.548387 718.193549 616.516129L528.516129 427.870968 527.483871 426.83871 526.451613 425.806452C525.16129 424.516129 524.129032 424 523.612903 423.225807L522.32258 423.225807C520.774193 421.935484 519.741935 421.67742 518.451613 421.67742L516.129032 421.16129 514.32258 420.645162 512.516129 420.645162 509.935484 420.645162 507.870968 421.16129 505.806452 421.67742C504.516129 421.67742 503.225807 421.935484 502.193548 422.709677L500.903226 423.225807C499.870968 424 498.83871 424.516129 498.32258 425.032258L496.516129 426.32258 495.483871 427.870968ZM820.387098 766.451616C854.709677 766.193549 886.451616 752.258067 908.387098 729.806451 931.096774 706.580646 945.032256 675.612902 945.032256 640.516128 945.032256 609.548387 934.451616 581.67742 916.12903 559.225807 897.548384 537.290323 871.225805 521.806452 841.032256 516.645162 821.677421 512.774193 808 496.516129 808 477.67742L808 477.419355C808 402.83871 777.806451 334.709677 728.774195 285.935484 679.741933 236.903226 611.870968 206.451613 537.548387 206.451613 482.064516 206.451613 430.709677 222.967742 388.129032 250.580645 344 280.258065 309.16129 321.290323 288 370.580645 281.806452 385.290323 267.870968 394.32258 252.645162 394.83871 204.129032 397.419355 161.032258 418.83871 129.290323 452.645162 97.806452 485.419355 78.967742 530.580645 78.967742 580.129032 78.967742 631.741935 99.612903 678.451616 133.16129 712L133.67742 712C167.225807 745.806451 213.67742 766.451616 264.774193 766.451616L281.290323 766.451616 282.32258 766.451616 382.967742 766.451616 394.83871 766.451616C416.774193 766.451616 434.580645 784.516128 434.580645 805.935482 434.580645 827.354842 416.774193 845.419354 394.83871 845.419354L382.967742 845.419354 282.32258 845.419354 281.290323 845.419354 264.774193 845.419354C191.741935 845.419354 125.419355 816 77.419355 767.225805 29.677419 719.483872 0 653.161293 0 580.129032 0 510.193548 27.354839 445.67742 72.258065 398.193548 112 356.645162 165.67742 327.741935 225.548387 318.193548 253.419355 264 294.709677 218.83871 345.032258 185.806452 400.258065 149.16129 466.32258 128 537.548387 128 633.548387 128 721.032256 166.967742 784.516128 230.193548 841.032256 286.967742 878.451616 362.83871 885.935482 446.967742 921.032256 458.580645 952.258067 481.032258 975.741933 508.903226 1005.935482 544.516129 1024 590.709677 1024 640.516128 1024 697.290323 1001.032256 748.387098 964.12903 785.548384L963.87097 785.548384C931.612902 818.064518 888.258067 839.225805 840 844.645158 837.161293 844.903226 834.064518 845.419354 830.967744 845.419354L820.645158 845.419354 819.354842 845.419354 644.12903 845.419354 642.580646 845.419354C620.903226 845.419354 603.354838 827.354842 603.354838 805.935482 603.354838 784.516128 620.903226 766.451616 642.580646 766.451616L644.12903 766.451616 820.387098 766.451616Z"  ></path></symbol><symbol id="icon-icon-test" viewBox="0 0 1024 1024"><path d="M51.2 51.2m153.6 0l609.28 0q153.6 0 153.6 153.6l0 609.28q0 153.6-153.6 153.6l-609.28 0q-153.6 0-153.6-153.6l0-609.28q0-153.6 153.6-153.6Z" fill="#F19149" opacity=".2" ></path><path d="M587.32032 490.3936L492.29824 435.53792a30.41792 30.41792 0 0 0-15.36-4.2752 32.01024 32.01024 0 0 0-15.69792 4.2752 30.53568 30.53568 0 0 0-15.54432 26.92096v109.7216a31.08352 31.08352 0 0 0 46.62272 26.91584l95.0016-54.84032a31.08352 31.08352 0 0 0 0-53.8624zM509.44 153.6A355.84 355.84 0 1 0 865.28 509.44 355.84 355.84 0 0 0 509.44 153.6z m106.61376 440.3968l-95.02208 54.8608a88.5504 88.5504 0 0 1-132.82304-76.68224v-109.7216a88.54528 88.54528 0 0 1 132.82304-76.68736l95.02208 54.8608a88.5504 88.5504 0 0 1 0 153.3696z" fill="#F19149" ></path></symbol><symbol id="icon-yasuobao" viewBox="0 0 1024 1024"><path d="M97.9 376h828.4v269.2H97.9z" fill="#F95F5D" ></path><path d="M926.3 376V161.5c0-26.6-23.8-50.3-52.1-50.3H149.9c-28.3 0-52.1 23.7-52.1 50.3V376h828.5z m0 0" fill="#55C7F7" ></path><path d="M97.9 645.2v214.5c0 26.6 23.6 50.3 51.7 50.3h725c28.1 0 51.7-23.7 51.7-50.3V645.2H97.9z m0 0" fill="#7ECF3B" ></path><path d="M421.8 111.2h184.9V910H421.8z" fill="#FDAF42" ></path><path d="M606.7 457.4v112.4H413V457.4h193.7m31.1-45.9H381.9c-4.4 0-11.8 4.4-11.8 11.8v179c0 4.4 4.4 11.8 11.8 11.8h255.9c4.4 0 11.8-4.4 11.8-11.8v-179c-2.9-8.8-7.4-11.8-11.8-11.8z m0 0" fill="#FFFFFF" ></path></symbol><symbol id="icon-ppt1" viewBox="0 0 1024 1024"><path d="M160 32c-12.0064 0-24.8064 4.8-33.6 14.4-8.8064 9.6-14.4 21.6064-14.4 33.6v864c0 12.0064 4.8 24.8064 14.4 33.6 9.6 9.6 21.6064 14.4 33.6 14.4h704c12.0064 0 24.8064-4.8 33.6-14.4 9.6-9.6 14.4-21.6064 14.4-33.6v-640L640 32H160z" fill="#FF8976" ></path><path d="M912 304h-224c-12.0064 0-24.8064-4.8-33.6-14.4C644.8 280.7936 640 267.9936 640 256V32l272 272z" fill="#FFD0C8" ></path><path d="M385.6 385.6h176c70.4 0 92.8 47.2064 92.8 97.6 0 48-28.0064 96.8064-92.0064 96.8064h-116.7872v119.9872h-60.0064V385.6zM445.6064 531.2h96.7936c34.4064 0 52.8-10.4064 52.8-47.2064 0-38.4-24.8064-48-48-48h-101.6064V531.2z" fill="#FFFFFF" ></path></symbol><symbol id="icon-Image_File" viewBox="0 0 1024 1024"><path d="M894.947945 256l8.416439 718.20274c0 24.547945-19.638356 44.186301-44.186302 44.186301H160.613699c-24.547945 0-44.186301-19.638356-44.186302-44.186301V50.49863C116.427397 25.950685 136.065753 6.312329 160.613699 6.312329h506.389041l227.945205 249.687671z" fill="#4988FD" ></path><path d="M397.676712 639.649315l-30.860274 30.860274c-11.221918 11.221918-29.457534 11.221918-40.679452 0l-30.860274-30.860274 51.90137-51.90137 50.49863 51.90137zM689.446575 515.506849L643.857534 561.09589c-11.221918 11.221918-29.457534 11.221918-40.679452 0l-41.380822-41.380822 65.928767-65.928767 61.720548 61.720548z" fill="#FFFFFF" ></path><path d="M667.70411 7.715068v197.786302c0 27.353425 24.547945 50.49863 51.2 50.49863h176.043835" fill="#3973F4" ></path><path d="M499.375342 757.479452c-4.208219 0-9.117808-1.40274-12.624657-4.909589L340.164384 605.983562 230.750685 715.39726c-7.013699 7.013699-18.235616 7.013699-24.547945 0-7.013699-7.013699-7.013699-18.235616 0-24.547945l122.038356-122.038356c7.013699-7.013699 18.235616-7.013699 24.547945 0l158.509589 158.509589c7.013699 7.013699 7.013699 18.235616 0 24.547945-2.805479 4.208219-7.013699 5.610959-11.923288 5.610959zM849.358904 694.356164c-4.208219 0-9.117808-1.40274-12.624657-4.909589l-210.410959-210.410959-164.120548 164.120548c-7.013699 7.013699-18.235616 7.013699-24.547945 0-7.013699-7.013699-7.013699-18.235616 0-24.547945L614.4 441.863014c6.312329-6.312329 18.235616-6.312329 24.547945 0l222.334247 222.334246c7.013699 7.013699 7.013699 18.235616 0 24.547945-2.805479 3.506849-7.013699 5.610959-11.923288 5.610959z" fill="#DFECFD" ></path><path d="M354.191781 390.663014m-64.526028 0a64.526027 64.526027 0 1 0 129.052055 0 64.526027 64.526027 0 1 0-129.052055 0Z" fill="#FFFFFF" ></path></symbol><symbol id="icon-Zip" viewBox="0 0 1024 1024"><path d="M896 256v662.741333c-0.298667 34.944-4.266667 48.213333-11.392 61.610667-7.424 13.909333-18.346667 24.832-32.256 32.256l-1.536 0.810667c-13.184 6.784-27.050667 10.453333-62.122667 10.581333H237.397333c-38.058667 0-51.84-3.968-65.706666-11.392a77.525333 77.525333 0 0 1-32.298667-32.256l-0.853333-1.578667C131.84 965.632 128.170667 951.765333 128 916.693333V109.397333c0-38.058667 3.968-51.84 11.392-65.706666 7.424-13.952 18.346667-24.874667 32.256-32.298667l1.578667-0.853333C186.368 3.84 200.234667 0.170667 235.306667 0H640l256 256z" fill="#926000" ></path><path d="M469.333333 106.666667h42.666667V213.333333H469.333333a21.333333 21.333333 0 0 1-21.333333-21.333333V128a21.333333 21.333333 0 0 1 21.333333-21.333333zM512 0h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333333V85.333333a21.333333 21.333333 0 0 1-21.333333 21.333334H512V0zM469.333333 320h42.666667V426.666667H469.333333a21.333333 21.333333 0 0 1-21.333333-21.333334V341.333333a21.333333 21.333333 0 0 1 21.333333-21.333333zM512 213.333333h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333334V298.666667a21.333333 21.333333 0 0 1-21.333333 21.333333H512V213.333333zM512 426.666667h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333333V512a21.333333 21.333333 0 0 1-21.333333 21.333333H512V426.666667zM554.666667 576a21.333333 21.333333 0 0 1 21.333333 21.333333v192a21.333333 21.333333 0 0 1-21.333333 21.333334H469.333333a21.333333 21.333333 0 0 1-21.333333-21.333334V597.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h85.333334z m0 85.333333H469.333333v128h85.333334v-128z" fill="#FFFFFF" ></path><path d="M640 0l256 256h-184.874667c-24.746667 0-33.706667-2.56-42.752-7.424a50.389333 50.389333 0 0 1-20.949333-20.949333l-0.725333-1.365334c-4.394667-8.618667-6.698667-17.877333-6.698667-41.386666V0z" fill="#000000" fill-opacity=".264" ></path></symbol><symbol id="icon-shaixuan" viewBox="0 0 1024 1024"><path d="M129.02058125 195.55661622L357.60708125 425.61391396a8.17109912 8.17109912 0 0 1 2.41047422 5.76062491v376.15655039c0 25.77981797 13.48231377 49.68028301 35.54428096 62.9991747l134.16944853 80.89388262a73.53989297 73.53989297 0 0 0 111.5355041-62.99917471V433.1313248a8.17109912 8.17109912 0 0 1 2.77817344-6.12832412l260.90319727-227.89195664A73.53989297 73.53989297 0 0 0 856.53439737 70.17109912H181.19304951a73.53989297 73.53989297 0 0 0-52.17246826 125.38551709zM175.39156865 149.43076104a8.17109912 8.17109912 0 0 1 5.80148086-13.93172403h675.34134786a8.17109912 8.17109912 0 0 1 5.39292568 14.29942413L601.06498086 377.77212793a73.53989297 73.53989297 0 0 0-25.16698565 55.40005283v455.33450215a8.17109912 8.17109912 0 0 1-12.42007031 7.02714462l-134.16944853-80.89388173a8.17109912 8.17109912 0 0 1-3.92212793-7.02714551V431.41539395a73.53989297 73.53989297 0 0 0-21.36742383-51.84562413L175.35071357 149.471617z"  ></path><path d="M736.70522802 584.95034815h163.42198331a32.68439648 32.68439648 0 1 0 0-65.36879385h-163.4219833a32.68439648 32.68439648 0 1 0-1e-8 65.36879385zM735.15271836 707.51683584h163.42198418a32.68439648 32.68439648 0 1 0-1e-8-65.36879385h-163.42198417a32.68439648 32.68439648 0 1 0 0 65.36879385zM728.0438627 830.08332354h163.42198329a32.68439648 32.68439648 0 1 0 0-65.36879385h-163.42198329a32.68439648 32.68439648 0 1 0 0 65.36879385z"  ></path></symbol><symbol id="icon-qr-code" viewBox="0 0 1024 1024"><path d="M426.666667 469.333333H128c-25.6 0-42.666667-17.066667-42.666667-42.666666V128c0-25.6 17.066667-42.666667 42.666667-42.666667h298.666667c25.6 0 42.666667 17.066667 42.666666 42.666667v298.666667c0 25.6-17.066667 42.666667-42.666666 42.666666zM170.666667 384h213.333333V170.666667H170.666667v213.333333zM896 469.333333h-298.666667c-25.6 0-42.666667-17.066667-42.666666-42.666666V128c0-25.6 17.066667-42.666667 42.666666-42.666667h298.666667c25.6 0 42.666667 17.066667 42.666667 42.666667v298.666667c0 25.6-17.066667 42.666667-42.666667 42.666666z m-256-85.333333h213.333333V170.666667h-213.333333v213.333333zM426.666667 938.666667H128c-25.6 0-42.666667-17.066667-42.666667-42.666667v-298.666667c0-25.6 17.066667-42.666667 42.666667-42.666666h298.666667c25.6 0 42.666667 17.066667 42.666666 42.666666v298.666667c0 25.6-17.066667 42.666667-42.666666 42.666667z m-256-85.333334h213.333333v-213.333333H170.666667v213.333333zM896 789.333333h-149.333333c-25.6 0-42.666667-17.066667-42.666667-42.666666V640H640v106.666667c0 25.6-17.066667 42.666667-42.666667 42.666666s-42.666667-17.066667-42.666666-42.666666V597.333333c0-25.6 17.066667-42.666667 42.666666-42.666666h149.333334c25.6 0 42.666667 17.066667 42.666666 42.666666v106.666667H853.333333V597.333333c0-25.6 17.066667-42.666667 42.666667-42.666666s42.666667 17.066667 42.666667 42.666666v149.333334c0 25.6-17.066667 42.666667-42.666667 42.666666zM746.666667 938.666667H597.333333c-25.6 0-42.666667-17.066667-42.666666-42.666667s17.066667-42.666667 42.666666-42.666667h149.333334c25.6 0 42.666667 17.066667 42.666666 42.666667s-17.066667 42.666667-42.666666 42.666667z"  ></path><path d="M302.933333 789.333333H251.733333c-8.533333 0-17.066667-8.533333-17.066666-17.066666v-51.2c0-8.533333 8.533333-17.066667 17.066666-17.066667h51.2c8.533333 0 17.066667 8.533333 17.066667 17.066667v51.2c0 8.533333-8.533333 17.066667-17.066667 17.066666zM302.933333 320H251.733333c-8.533333 0-17.066667-8.533333-17.066666-17.066667V251.733333c0-8.533333 8.533333-17.066667 17.066666-17.066666h51.2c8.533333 0 17.066667 8.533333 17.066667 17.066666v51.2c0 8.533333-8.533333 17.066667-17.066667 17.066667zM772.266667 320h-51.2c-8.533333 0-17.066667-8.533333-17.066667-17.066667V251.733333c0-8.533333 8.533333-17.066667 17.066667-17.066666h51.2c8.533333 0 17.066667 8.533333 17.066666 17.066666v51.2c0 8.533333-8.533333 17.066667-17.066666 17.066667zM896 938.666667c-12.8 0-21.333333-4.266667-29.866667-12.8-8.533333-8.533333-12.8-17.066667-12.8-29.866667 0-12.8 4.266667-21.333333 12.8-29.866667 17.066667-17.066667 42.666667-17.066667 59.733334 0 8.533333 8.533333 12.8 21.333333 12.8 29.866667 0 12.8-4.266667 21.333333-12.8 29.866667-8.533333 8.533333-17.066667 12.8-29.866667 12.8z"  ></path></symbol><symbol id="icon-ppt" viewBox="0 0 1024 1024"><path d="M160 32c-12 0-24.8 4.8-33.6 14.4S112 68 112 80v864c0 12 4.8 24.8 14.4 33.6 9.6 9.6 21.6 14.4 33.6 14.4h704c12 0 24.8-4.8 33.6-14.4 9.6-9.6 14.4-21.6 14.4-33.6V304L640 32H160z" fill="#FF8976" ></path><path d="M912 304H688c-12 0-24.8-4.8-33.6-14.4-9.6-8.8-14.4-21.6-14.4-33.6V32l272 272z" fill="#FFD0C8" ></path><path d="M385.6 385.6h176c70.4 0 92.8 47.2 92.8 97.6 0 48-28 96.8-92 96.8H445.6v120h-60V385.6z m60 145.6h96.8c34.4 0 52.8-10.4 52.8-47.2 0-38.4-24.8-48-48-48H445.6v95.2z" fill="#FFFFFF" ></path></symbol><symbol id="icon-word" viewBox="0 0 1024 1024"><path d="M160 32c-12 0-24.8 4.8-33.6 14.4S112 68 112 80v864c0 12 4.8 24.8 14.4 33.6 9.6 9.6 21.6 14.4 33.6 14.4h704c12 0 24.8-4.8 33.6-14.4 9.6-9.6 14.4-21.6 14.4-33.6V304L640 32H160z" fill="#6CCBFF" ></path><path d="M912 304H688c-12 0-24.8-4.8-33.6-14.4-9.6-8.8-14.4-21.6-14.4-33.6V32l272 272z" fill="#C4EAFF" ></path><path d="M280 385.6h64.8l64.8 244h0.8l71.2-244H544l72 244 65.6-244H744L648 700h-64.8L512 458.4h-0.8l-72 240.8h-64.8L280 385.6z" fill="#FFFFFF" ></path></symbol><symbol id="icon-pdf" viewBox="0 0 1024 1024"><path d="M160 32c-12 0-24.8 4.8-33.6 14.4S112 68 112 80v864c0 12 4.8 24.8 14.4 33.6 9.6 9.6 21.6 14.4 33.6 14.4h704c12 0 24.8-4.8 33.6-14.4 9.6-9.6 14.4-21.6 14.4-33.6V304L640 32H160z" fill="#FF5562" ></path><path d="M912 304H688c-12 0-24.8-4.8-33.6-14.4-9.6-8.8-14.4-21.6-14.4-33.6V32l272 272z" fill="#FFBBC0" ></path><path d="M696 843.2c-50.4 0-95.2-86.4-119.2-142.4-40-16.8-84-32-126.4-42.4-37.6 24.8-100.8 61.6-149.6 61.6-30.4 0-52-15.2-60-41.6-6.4-21.6-0.8-36.8 5.6-44.8 12.8-17.6 39.2-26.4 79.2-26.4 32 0 72.8 5.6 118.4 16.8 29.6-20.8 59.2-44.8 85.6-70.4-12-56-24.8-146.4 8-188 16-20 40.8-26.4 70.4-17.6 32.8 9.6 44.8 29.6 48.8 44.8 13.6 54.4-48.8 128-91.2 171.2 9.6 37.6 21.6 76.8 36.8 112.8C663.2 704 735.2 744 743.2 788c3.2 15.2-1.6 29.6-13.6 41.6-10.4 8.8-21.6 13.6-33.6 13.6z m-74.4-121.6c30.4 61.6 59.2 90.4 74.4 90.4 2.4 0 5.6-0.8 10.4-4.8 5.6-5.6 5.6-9.6 4.8-12.8-3.2-16-28.8-42.4-89.6-72.8z m-296-82.4c-39.2 0-50.4 9.6-53.6 13.6-0.8 1.6-4 5.6-0.8 16.8 2.4 9.6 8.8 19.2 29.6 19.2 25.6 0 62.4-14.4 105.6-40-31.2-6.4-58.4-9.6-80.8-9.6z m158.4-4.8c25.6 7.2 52 16 76.8 25.6-8.8-23.2-16-47.2-22.4-70.4-17.6 15.2-36 30.4-54.4 44.8zM583.2 376c-8.8 0-15.2 3.2-20.8 9.6-16.8 20.8-18.4 73.6-5.6 140.8 48.8-52 75.2-100 68.8-125.6-0.8-4-4-15.2-26.4-21.6-6.4-2.4-11.2-3.2-16-3.2z" fill="#FFFFFF" ></path></symbol><symbol id="icon-excel" viewBox="0 0 1024 1024"><path d="M160 32c-12 0-24.8 4.8-33.6 14.4S112 68 112 80v864c0 12 4.8 24.8 14.4 33.6 9.6 9.6 21.6 14.4 33.6 14.4h704c12 0 24.8-4.8 33.6-14.4 9.6-9.6 14.4-21.6 14.4-33.6V304L640 32H160z" fill="#5ACC9B" ></path><path d="M912 304H688c-12 0-24.8-4.8-33.6-14.4-9.6-8.8-14.4-21.6-14.4-33.6V32l272 272z" fill="#BDEBD7" ></path><path d="M475.2 537.6l-108.8-152h75.2l71.2 108.8 74.4-108.8h72.8l-111.2 152 116.8 161.6h-76L511.2 584l-78.4 116h-74.4l116.8-162.4z" fill="#FFFFFF" ></path></symbol><symbol id="icon-txt" viewBox="0 0 1024 1024"><path d="M202.666667 938.666667h618.666666a10.666667 10.666667 0 0 0 10.666667-10.666667V298.666667H650.666667c-17.642667 0-32-14.357333-32-32V85.333333H202.666667a10.666667 10.666667 0 0 0-10.666667 10.666667v832a10.666667 10.666667 0 0 0 10.666667 10.666667z" fill="#FFFFFF" ></path><path d="M827.584 277.333333L640 89.749333V266.666667a10.666667 10.666667 0 0 0 10.666667 10.666666h176.917333z" fill="#FFFFFF" ></path><path d="M843.957333 263.541333L653.792 73.376A31.765333 31.765333 0 0 0 631.168 64H202.666667c-17.642667 0-32 14.357333-32 32v832c0 17.642667 14.357333 32 32 32h618.666666c17.642667 0 32-14.357333 32-32V286.165333c0-8.533333-3.338667-16.576-9.376-22.624zM640 89.749333L827.584 277.333333H650.666667a10.666667 10.666667 0 0 1-10.666667-10.666666V89.749333zM821.333333 938.666667H202.666667a10.666667 10.666667 0 0 1-10.666667-10.666667V96a10.666667 10.666667 0 0 1 10.666667-10.666667h416v181.333334c0 17.642667 14.357333 32 32 32h181.333333v629.333333a10.666667 10.666667 0 0 1-10.666667 10.666667z" fill="#605E5C" opacity=".64" ></path><path d="M757.333333 650.666667H266.666667a10.666667 10.666667 0 1 1 0-21.333334h490.666666a10.666667 10.666667 0 1 1 0 21.333334z m0-64H266.666667a10.666667 10.666667 0 1 1 0-21.333334h490.666666a10.666667 10.666667 0 1 1 0 21.333334z m0-64H266.666667a10.666667 10.666667 0 1 1 0-21.333334h490.666666a10.666667 10.666667 0 1 1 0 21.333334z m0-64H266.666667a10.666667 10.666667 0 1 1 0-21.333334h490.666666a10.666667 10.666667 0 1 1 0 21.333334z m0 256H266.666667a10.666667 10.666667 0 1 1 0-21.333334h490.666666a10.666667 10.666667 0 1 1 0 21.333334z" fill="#C8C6C4" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M861.184 192.512q30.72 0 50.688 10.24t31.744 25.6 16.384 33.28 4.608 33.28q0 7.168-0.512 11.264t-0.512 7.168l0 6.144-67.584 0 0 537.6q0 20.48-8.192 39.424t-23.552 33.28-37.376 23.04-50.688 8.704l-456.704 0q-26.624 0-50.176-8.192t-40.448-23.04-26.624-35.84-9.728-47.616l0-527.36-63.488 0q-1.024-1.024-1.024-5.12-1.024-5.12-1.024-31.744 0-13.312 6.144-29.696t18.432-30.208 31.744-23.04 46.08-9.216l91.136 0 0-62.464q0-26.624 18.432-45.568t45.056-18.944l320.512 0q35.84 0 49.664 18.944t13.824 45.568l0 63.488q21.504 1.024 46.08 1.024l47.104 0zM384 192.512l320.512 0 0-64.512-320.512 0 0 64.512zM352.256 840.704q32.768 0 32.768-41.984l0-475.136-63.488 0 0 475.136q0 21.504 6.656 31.744t24.064 10.24zM545.792 839.68q17.408 0 23.552-9.728t6.144-31.232l0-475.136-63.488 0 0 475.136q0 40.96 33.792 40.96zM738.304 837.632q18.432 0 24.576-9.728t6.144-31.232l0-473.088-64.512 0 0 473.088q0 40.96 33.792 40.96z"  ></path></symbol><symbol id="icon-bianji" viewBox="0 0 1024 1024"><path d="M238.03586 170.535001c-47.958268 0-87.172385 38.969547-87.172385 87.172385l0 525.325493c0 47.959292 39.214117 86.927815 87.172385 86.927815l525.570063 0c47.959292 0 86.928838-38.968523 86.928838-86.927815L850.534761 437.808254l90.184999-87.172385 0 464.36612c0 80.18218-67.949578 145.132448-148.132782 145.132448L206.067774 960.134437c-80.183204 0-145.132448-64.950268-145.132448-145.132448L60.935326 234.728022c0-80.18218 64.949244-154.12117 145.132448-154.12117L670.432871 80.606853l-86.926792 89.929172L238.03586 170.536025zM559.524898 597.430718l-194.83443 55.203276 55.703673-193.591113L559.524898 597.430718zM579.016835 577.952084 439.628204 439.808818l306.244846-304.242236 139.387607 138.130987L579.016835 577.952084zM948.208315 211.249285l-41.715077 41.469484L767.107677 114.330932l41.714054-41.470507c15.490809-15.233959 39.714514-15.990183 53.958936-1.743714l87.173408 86.428442C964.198497 171.779342 963.442274 196.014302 948.208315 211.249285z"  ></path></symbol><symbol id="icon-ziyuan" viewBox="0 0 1354 1024"><path d="M1068.947323 387.269902a565.693615 565.693615 0 0 1 212.957335 322.313804 1052.453238 1052.453238 0 0 1 32.889164 286.135724s-51.800433-82.222909-72.35616-112.645385a673.405626 673.405626 0 0 0-246.668728-200.623899 968.58587 968.58587 0 0 0-365.069717-51.800432v262.29108L0.049504 447.292626 631.521446 0v266.402226s151.290153 11.511207 230.224146 27.955789a471.13727 471.13727 0 0 1 207.201731 92.911887z"  ></path></symbol><symbol id="icon-liebiao" viewBox="0 0 1024 1024"><path d="M316.672 530.624h558.208v90.688H316.672V530.624z m0-254.144h558.208v90.688H316.672V276.48z m0 508.352h558.208v90.752H316.672v-90.752zM149.184 276.48h111.68v90.688H149.184V276.48z m0 254.144h111.68v90.688H149.184V530.624z m0 254.208h111.68v90.752H149.184v-90.752z" fill="#999999" ></path></symbol><symbol id="icon-gengduo" viewBox="0 0 1024 1024"><path d="M863.976448 622.589952C803.309568 622.589952 754.128896 573.305856 754.128896 512.510976 754.128896 451.71712 803.309568 402.433024 863.976448 402.433024 924.644352 402.433024 973.824 451.71712 973.824 512.510976 973.824 573.305856 924.644352 622.589952 863.976448 622.589952ZM511.488 622.589952C450.82112 622.589952 401.640448 573.305856 401.640448 512.510976 401.640448 451.71712 450.82112 402.433024 511.488 402.433024 572.15488 402.433024 621.335552 451.71712 621.335552 512.510976 621.335552 573.305856 572.15488 622.589952 511.488 622.589952ZM158.999552 622.589952C98.332672 622.589952 49.152 573.305856 49.152 512.510976 49.152 451.71712 98.332672 402.433024 158.999552 402.433024 219.666432 402.433024 268.847104 451.71712 268.847104 512.510976 268.847104 573.305856 219.666432 622.589952 158.999552 622.589952Z"  ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M775.241691 790.419766c-19.251046 19.274075-50.446969 19.274075-69.688804 0L605.987694 690.70719c-0.365385-0.359244-0.602579-0.788342-0.950309-1.162939-35.853049 19.921943-77.076342 31.337163-120.989361 31.337163C346.01221 720.881415 234.122939 608.827106 234.122939 470.596318 234.122939 332.3686 346.01221 220.305847 484.048024 220.305847c138.038885 0 249.925085 112.062753 249.925085 250.290471 0 58.51922-20.201355 112.222417-53.789937 154.833559l95.058519 95.190549C794.4889 739.886057 794.4889 771.13648 775.241691 790.419766L775.241691 790.419766zM484.057235 295.013325c-96.830945 0-175.322771 78.605433-175.322771 175.582993 0 96.98063 78.491826 175.577619 175.322771 175.577619 96.830177 0 175.331214-78.59699 175.331214-175.577619C659.38845 373.618759 580.887412 295.013325 484.057235 295.013325L484.057235 295.013325zM484.057235 295.013325"  ></path></symbol><symbol id="icon-jiantouyou" viewBox="0 0 1024 1024"><path d="M258.176 903.552 315.712 961.088 766.336 510.4 764.352 508.544 764.736 508.16 322.688 66.176 264.704 124.096 651.136 510.592Z"  ></path></symbol><symbol id="icon-gou1" viewBox="0 0 1024 1024"><path d="M409.344 942.848c68.416-124.992 307.456-348.544 478.144-462.656l67.072-40.96c26.432-14.272 49.536-24.064 67.968-28.16-52.608-119.936-6.464-217.408 1.024-329.856l0 0c-63.424 32.448-127.424 78.272-189.12 130.496l-71.424 64.192c-205.696 194.88-369.6 435.072-369.6 435.072L273.28 478.528 0.384 611.2c115.456 41.152 292.096 187.904 408.64 331.584"  ></path></symbol><symbol id="icon-gou1-copy" viewBox="0 0 1024 1024"><path d="M409.344 942.848c68.416-124.992 307.456-348.544 478.144-462.656l67.072-40.96c26.432-14.272 49.536-24.064 67.968-28.16-52.608-119.936-6.464-217.408 1.024-329.856l0 0c-63.424 32.448-127.424 78.272-189.12 130.496l-71.424 64.192c-205.696 194.88-369.6 435.072-369.6 435.072L273.28 478.528 0.384 611.2c115.456 41.152 292.096 187.904 408.64 331.584" fill="#ffffff" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console&&console.log(e)}}function u(){o||(o=!0,r())}t=function(){var e,t,n;(n=document.createElement("div")).innerHTML=s,s=null,(t=n.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",e=t,(n=document.body).firstChild?(t=n.firstChild).parentNode.insertBefore(e,t):n.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(r=t,i=e.document,o=!1,(a=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}u()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,u())})}(window)},"500e":function(e,t,n){"use strict";function r(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)}var i=r,o=Math.max;function a(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);while(++a<s)l[a]=r[t+a];a=-1;var u=Array(t+1);while(++a<t)u[a]=r[a];return u[t]=n(l),i(e,this,u)}}t["a"]=a},"50d8":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=n},5132:function(e,t,n){"use strict";var r=n("2250"),i=n("4dc8");function o(e,t){t=Object(r["a"])(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[Object(i["a"])(t[n++])];return n&&n==o?e:void 0}t["a"]=o},5208:function(e,t,n){(function(e){ace.define("ace/snippets/html",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Some useful Unicode entities\n# Non-Breaking Space\nsnippet nbs\n\t&nbsp;\n# ←\nsnippet left\n\t&#x2190;\n# →\nsnippet right\n\t&#x2192;\n# ↑\nsnippet up\n\t&#x2191;\n# ↓\nsnippet down\n\t&#x2193;\n# ↩\nsnippet return\n\t&#x21A9;\n# ⇤\nsnippet backtab\n\t&#x21E4;\n# ⇥\nsnippet tab\n\t&#x21E5;\n# ⇧\nsnippet shift\n\t&#x21E7;\n# ⌃\nsnippet ctrl\n\t&#x2303;\n# ⌅\nsnippet enter\n\t&#x2305;\n# ⌘\nsnippet cmd\n\t&#x2318;\n# ⌥\nsnippet option\n\t&#x2325;\n# ⌦\nsnippet delete\n\t&#x2326;\n# ⌫\nsnippet backspace\n\t&#x232B;\n# ⎋\nsnippet esc\n\t&#x238B;\n# Generic Doctype\nsnippet doctype HTML 4.01 Strict\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\nsnippet doctype HTML 4.01 Transitional\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\nsnippet doctype HTML 5\n\t<!DOCTYPE HTML>\nsnippet doctype XHTML 1.0 Frameset\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Strict\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Transitional\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\nsnippet doctype XHTML 1.1\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# HTML Doctype 4.01 Strict\nsnippet docts\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\n# HTML Doctype 4.01 Transitional\nsnippet doct\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\n# HTML Doctype 5\nsnippet doct5\n\t<!DOCTYPE html>\n# XHTML Doctype 1.0 Frameset\nsnippet docxf\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\n# XHTML Doctype 1.0 Strict\nsnippet docxs\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n# XHTML Doctype 1.0 Transitional\nsnippet docxt\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n# XHTML Doctype 1.1\nsnippet docx\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# html5shiv\nsnippet html5shiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"><\/script>\n\t<![endif]--\x3e\nsnippet html5printshiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"><\/script>\n\t<![endif]--\x3e\n# Attributes\nsnippet attr\n\t${1:attribute}="${2:property}"\nsnippet attr+\n\t${1:attribute}="${2:property}" attr+${3}\nsnippet .\n\tclass="${1}"${2}\nsnippet #\n\tid="${1}"${2}\nsnippet alt\n\talt="${1}"${2}\nsnippet charset\n\tcharset="${1:utf-8}"${2}\nsnippet data\n\tdata-${1}="${2:$1}"${3}\nsnippet for\n\tfor="${1}"${2}\nsnippet height\n\theight="${1}"${2}\nsnippet href\n\thref="${1:#}"${2}\nsnippet lang\n\tlang="${1:en}"${2}\nsnippet media\n\tmedia="${1}"${2}\nsnippet name\n\tname="${1}"${2}\nsnippet rel\n\trel="${1}"${2}\nsnippet scope\n\tscope="${1:row}"${2}\nsnippet src\n\tsrc="${1}"${2}\nsnippet title=\n\ttitle="${1}"${2}\nsnippet type\n\ttype="${1}"${2}\nsnippet value\n\tvalue="${1}"${2}\nsnippet width\n\twidth="${1}"${2}\n# Elements\nsnippet a\n\t<a href="${1:#}">${2:$1}</a>\nsnippet a.\n\t<a class="${1}" href="${2:#}">${3:$1}</a>\nsnippet a#\n\t<a id="${1}" href="${2:#}">${3:$1}</a>\nsnippet a:ext\n\t<a href="http://${1:example.com}">${2:$1}</a>\nsnippet a:mail\n\t<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>\nsnippet abbr\n\t<abbr title="${1}">${2}</abbr>\nsnippet address\n\t<address>\n\t\t${1}\n\t</address>\nsnippet area\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\nsnippet area+\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\n\tarea+${5}\nsnippet area:c\n\t<area shape="circle" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:d\n\t<area shape="default" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:p\n\t<area shape="poly" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:r\n\t<area shape="rect" coords="${1}" href="${2}" alt="${3}" />\nsnippet article\n\t<article>\n\t\t${1}\n\t</article>\nsnippet article.\n\t<article class="${1}">\n\t\t${2}\n\t</article>\nsnippet article#\n\t<article id="${1}">\n\t\t${2}\n\t</article>\nsnippet aside\n\t<aside>\n\t\t${1}\n\t</aside>\nsnippet aside.\n\t<aside class="${1}">\n\t\t${2}\n\t</aside>\nsnippet aside#\n\t<aside id="${1}">\n\t\t${2}\n\t</aside>\nsnippet audio\n\t<audio src="${1}>${2}</audio>\nsnippet b\n\t<b>${1}</b>\nsnippet base\n\t<base href="${1}" target="${2}" />\nsnippet bdi\n\t<bdi>${1}</bdo>\nsnippet bdo\n\t<bdo dir="${1}">${2}</bdo>\nsnippet bdo:l\n\t<bdo dir="ltr">${1}</bdo>\nsnippet bdo:r\n\t<bdo dir="rtl">${1}</bdo>\nsnippet blockquote\n\t<blockquote>\n\t\t${1}\n\t</blockquote>\nsnippet body\n\t<body>\n\t\t${1}\n\t</body>\nsnippet br\n\t<br />${1}\nsnippet button\n\t<button type="${1:submit}">${2}</button>\nsnippet button.\n\t<button class="${1:button}" type="${2:submit}">${3}</button>\nsnippet button#\n\t<button id="${1}" type="${2:submit}">${3}</button>\nsnippet button:s\n\t<button type="submit">${1}</button>\nsnippet button:r\n\t<button type="reset">${1}</button>\nsnippet canvas\n\t<canvas>\n\t\t${1}\n\t</canvas>\nsnippet caption\n\t<caption>${1}</caption>\nsnippet cite\n\t<cite>${1}</cite>\nsnippet code\n\t<code>${1}</code>\nsnippet col\n\t<col />${1}\nsnippet col+\n\t<col />\n\tcol+${1}\nsnippet colgroup\n\t<colgroup>\n\t\t${1}\n\t</colgroup>\nsnippet colgroup+\n\t<colgroup>\n\t\t<col />\n\t\tcol+${1}\n\t</colgroup>\nsnippet command\n\t<command type="command" label="${1}" icon="${2}" />\nsnippet command:c\n\t<command type="checkbox" label="${1}" icon="${2}" />\nsnippet command:r\n\t<command type="radio" radiogroup="${1}" label="${2}" icon="${3}" />\nsnippet datagrid\n\t<datagrid>\n\t\t${1}\n\t</datagrid>\nsnippet datalist\n\t<datalist>\n\t\t${1}\n\t</datalist>\nsnippet datatemplate\n\t<datatemplate>\n\t\t${1}\n\t</datatemplate>\nsnippet dd\n\t<dd>${1}</dd>\nsnippet dd.\n\t<dd class="${1}">${2}</dd>\nsnippet dd#\n\t<dd id="${1}">${2}</dd>\nsnippet del\n\t<del>${1}</del>\nsnippet details\n\t<details>${1}</details>\nsnippet dfn\n\t<dfn>${1}</dfn>\nsnippet dialog\n\t<dialog>\n\t\t${1}\n\t</dialog>\nsnippet div\n\t<div>\n\t\t${1}\n\t</div>\nsnippet div.\n\t<div class="${1}">\n\t\t${2}\n\t</div>\nsnippet div#\n\t<div id="${1}">\n\t\t${2}\n\t</div>\nsnippet dl\n\t<dl>\n\t\t${1}\n\t</dl>\nsnippet dl.\n\t<dl class="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl#\n\t<dl id="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl+\n\t<dl>\n\t\t<dt>${1}</dt>\n\t\t<dd>${2}</dd>\n\t\tdt+${3}\n\t</dl>\nsnippet dt\n\t<dt>${1}</dt>\nsnippet dt.\n\t<dt class="${1}">${2}</dt>\nsnippet dt#\n\t<dt id="${1}">${2}</dt>\nsnippet dt+\n\t<dt>${1}</dt>\n\t<dd>${2}</dd>\n\tdt+${3}\nsnippet em\n\t<em>${1}</em>\nsnippet embed\n\t<embed src=${1} type="${2} />\nsnippet fieldset\n\t<fieldset>\n\t\t${1}\n\t</fieldset>\nsnippet fieldset.\n\t<fieldset class="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset#\n\t<fieldset id="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset+\n\t<fieldset>\n\t\t<legend><span>${1}</span></legend>\n\t\t${2}\n\t</fieldset>\n\tfieldset+${3}\nsnippet figcaption\n\t<figcaption>${1}</figcaption>\nsnippet figure\n\t<figure>${1}</figure>\nsnippet footer\n\t<footer>\n\t\t${1}\n\t</footer>\nsnippet footer.\n\t<footer class="${1}">\n\t\t${2}\n\t</footer>\nsnippet footer#\n\t<footer id="${1}">\n\t\t${2}\n\t</footer>\nsnippet form\n\t<form action="${1}" method="${2:get}" accept-charset="utf-8">\n\t\t${3}\n\t</form>\nsnippet form.\n\t<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet form#\n\t<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet h1\n\t<h1>${1}</h1>\nsnippet h1.\n\t<h1 class="${1}">${2}</h1>\nsnippet h1#\n\t<h1 id="${1}">${2}</h1>\nsnippet h2\n\t<h2>${1}</h2>\nsnippet h2.\n\t<h2 class="${1}">${2}</h2>\nsnippet h2#\n\t<h2 id="${1}">${2}</h2>\nsnippet h3\n\t<h3>${1}</h3>\nsnippet h3.\n\t<h3 class="${1}">${2}</h3>\nsnippet h3#\n\t<h3 id="${1}">${2}</h3>\nsnippet h4\n\t<h4>${1}</h4>\nsnippet h4.\n\t<h4 class="${1}">${2}</h4>\nsnippet h4#\n\t<h4 id="${1}">${2}</h4>\nsnippet h5\n\t<h5>${1}</h5>\nsnippet h5.\n\t<h5 class="${1}">${2}</h5>\nsnippet h5#\n\t<h5 id="${1}">${2}</h5>\nsnippet h6\n\t<h6>${1}</h6>\nsnippet h6.\n\t<h6 class="${1}">${2}</h6>\nsnippet h6#\n\t<h6 id="${1}">${2}</h6>\nsnippet head\n\t<head>\n\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\n\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t${2}\n\t</head>\nsnippet header\n\t<header>\n\t\t${1}\n\t</header>\nsnippet header.\n\t<header class="${1}">\n\t\t${2}\n\t</header>\nsnippet header#\n\t<header id="${1}">\n\t\t${2}\n\t</header>\nsnippet hgroup\n\t<hgroup>\n\t\t${1}\n\t</hgroup>\nsnippet hgroup.\n\t<hgroup class="${1}>\n\t\t${2}\n\t</hgroup>\nsnippet hr\n\t<hr />${1}\nsnippet html\n\t<html>\n\t${1}\n\t</html>\nsnippet xhtml\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t${1}\n\t</html>\nsnippet html5\n\t<!DOCTYPE html>\n\t<html>\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet xhtml5\n\t<!DOCTYPE html>\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet i\n\t<i>${1}</i>\nsnippet iframe\n\t<iframe src="${1}" frameborder="0"></iframe>${2}\nsnippet iframe.\n\t<iframe class="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet iframe#\n\t<iframe id="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet img\n\t<img src="${1}" alt="${2}" />${3}\nsnippet img.\n\t<img class="${1}" src="${2}" alt="${3}" />${4}\nsnippet img#\n\t<img id="${1}" src="${2}" alt="${3}" />${4}\nsnippet input\n\t<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />${5}\nsnippet input.\n\t<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />${6}\nsnippet input:text\n\t<input type="text" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:submit\n\t<input type="submit" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:hidden\n\t<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:button\n\t<input type="button" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:image\n\t<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />${5}\nsnippet input:checkbox\n\t<input type="checkbox" name="${1}" id="${2:$1}" />${3}\nsnippet input:radio\n\t<input type="radio" name="${1}" id="${2:$1}" />${3}\nsnippet input:color\n\t<input type="color" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:date\n\t<input type="date" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime\n\t<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime-local\n\t<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:email\n\t<input type="email" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:file\n\t<input type="file" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:month\n\t<input type="month" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:number\n\t<input type="number" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:password\n\t<input type="password" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:range\n\t<input type="range" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:reset\n\t<input type="reset" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:search\n\t<input type="search" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:time\n\t<input type="time" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:url\n\t<input type="url" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:week\n\t<input type="week" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet ins\n\t<ins>${1}</ins>\nsnippet kbd\n\t<kbd>${1}</kbd>\nsnippet keygen\n\t<keygen>${1}</keygen>\nsnippet label\n\t<label for="${2:$1}">${1}</label>\nsnippet label:i\n\t<label for="${2:$1}">${1}</label>\n\t<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />${7}\nsnippet label:s\n\t<label for="${2:$1}">${1}</label>\n\t<select name="${3:$2}" id="${4:$2}">\n\t\t<option value="${5}">${6:$5}</option>\n\t</select>\nsnippet legend\n\t<legend>${1}</legend>\nsnippet legend+\n\t<legend><span>${1}</span></legend>\nsnippet li\n\t<li>${1}</li>\nsnippet li.\n\t<li class="${1}">${2}</li>\nsnippet li+\n\t<li>${1}</li>\n\tli+${2}\nsnippet lia\n\t<li><a href="${2:#}">${1}</a></li>\nsnippet lia+\n\t<li><a href="${2:#}">${1}</a></li>\n\tlia+${3}\nsnippet link\n\t<link rel="${1}" href="${2}" title="${3}" type="${4}" />${5}\nsnippet link:atom\n\t<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />${2}\nsnippet link:css\n\t<link rel="stylesheet" href="${2:style.css}" type="text/css" media="${3:all}" />${4}\nsnippet link:favicon\n\t<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />${2}\nsnippet link:rss\n\t<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />${2}\nsnippet link:touch\n\t<link rel="apple-touch-icon" href="${1:favicon.png}" />${2}\nsnippet map\n\t<map name="${1}">\n\t\t${2}\n\t</map>\nsnippet map.\n\t<map class="${1}" name="${2}">\n\t\t${3}\n\t</map>\nsnippet map#\n\t<map name="${1}" id="${2:$1}>\n\t\t${3}\n\t</map>\nsnippet map+\n\t<map name="${1}">\n\t\t<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}\n\t</map>${7}\nsnippet mark\n\t<mark>${1}</mark>\nsnippet menu\n\t<menu>\n\t\t${1}\n\t</menu>\nsnippet menu:c\n\t<menu type="context">\n\t\t${1}\n\t</menu>\nsnippet menu:t\n\t<menu type="toolbar">\n\t\t${1}\n\t</menu>\nsnippet meta\n\t<meta http-equiv="${1}" content="${2}" />${3}\nsnippet meta:compat\n\t<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />${3}\nsnippet meta:refresh\n\t<meta http-equiv="refresh" content="text/html;charset=UTF-8" />${3}\nsnippet meta:utf\n\t<meta http-equiv="content-type" content="text/html;charset=UTF-8" />${3}\nsnippet meter\n\t<meter>${1}</meter>\nsnippet nav\n\t<nav>\n\t\t${1}\n\t</nav>\nsnippet nav.\n\t<nav class="${1}">\n\t\t${2}\n\t</nav>\nsnippet nav#\n\t<nav id="${1}">\n\t\t${2}\n\t</nav>\nsnippet noscript\n\t<noscript>\n\t\t${1}\n\t</noscript>\nsnippet object\n\t<object data="${1}" type="${2}">\n\t\t${3}\n\t</object>${4}\n# Embed QT Movie\nsnippet movie\n\t<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n\t codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n\t\t<param name="src" value="$1" />\n\t\t<param name="controller" value="$4" />\n\t\t<param name="autoplay" value="$5" />\n\t\t<embed src="${1:movie.mov}"\n\t\t\twidth="${2:320}" height="${3:240}"\n\t\t\tcontroller="${4:true}" autoplay="${5:true}"\n\t\t\tscale="tofit" cache="true"\n\t\t\tpluginspage="http://www.apple.com/quicktime/download/" />\n\t</object>${6}\nsnippet ol\n\t<ol>\n\t\t${1}\n\t</ol>\nsnippet ol.\n\t<ol class="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol#\n\t<ol id="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol+\n\t<ol>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ol>\nsnippet opt\n\t<option value="${1}">${2:$1}</option>\nsnippet opt+\n\t<option value="${1}">${2:$1}</option>\n\topt+${3}\nsnippet optt\n\t<option>${1}</option>\nsnippet optgroup\n\t<optgroup>\n\t\t<option value="${1}">${2:$1}</option>\n\t\topt+${3}\n\t</optgroup>\nsnippet output\n\t<output>${1}</output>\nsnippet p\n\t<p>${1}</p>\nsnippet param\n\t<param name="${1}" value="${2}" />${3}\nsnippet pre\n\t<pre>\n\t\t${1}\n\t</pre>\nsnippet progress\n\t<progress>${1}</progress>\nsnippet q\n\t<q>${1}</q>\nsnippet rp\n\t<rp>${1}</rp>\nsnippet rt\n\t<rt>${1}</rt>\nsnippet ruby\n\t<ruby>\n\t\t<rp><rt>${1}</rt></rp>\n\t</ruby>\nsnippet s\n\t<s>${1}</s>\nsnippet samp\n\t<samp>\n\t\t${1}\n\t</samp>\nsnippet script\n\t<script type="text/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet scriptsrc\n\t<script src="${1}.js" type="text/javascript" charset="utf-8"><\/script>\nsnippet newscript\n\t<script type="application/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet newscriptsrc\n\t<script src="${1}.js" type="application/javascript" charset="utf-8"><\/script>\nsnippet section\n\t<section>\n\t\t${1}\n\t</section>\nsnippet section.\n\t<section class="${1}">\n\t\t${2}\n\t</section>\nsnippet section#\n\t<section id="${1}">\n\t\t${2}\n\t</section>\nsnippet select\n\t<select name="${1}" id="${2:$1}">\n\t\t${3}\n\t</select>\nsnippet select.\n\t<select name="${1}" id="${2:$1}" class="${3}>\n\t\t${4}\n\t</select>\nsnippet select+\n\t<select name="${1}" id="${2:$1}">\n\t\t<option value="${3}">${4:$3}</option>\n\t\topt+${5}\n\t</select>\nsnippet small\n\t<small>${1}</small>\nsnippet source\n\t<source src="${1}" type="${2}" media="${3}" />\nsnippet span\n\t<span>${1}</span>\nsnippet strong\n\t<strong>${1}</strong>\nsnippet style\n\t<style type="text/css" media="${1:all}">\n\t\t${2}\n\t</style>\nsnippet sub\n\t<sub>${1}</sub>\nsnippet summary\n\t<summary>\n\t\t${1}\n\t</summary>\nsnippet sup\n\t<sup>${1}</sup>\nsnippet table\n\t<table border="${1:0}">\n\t\t${2}\n\t</table>\nsnippet table.\n\t<table class="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet table#\n\t<table id="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet tbody\n\t<tbody>\n\t\t${1}\n\t</tbody>\nsnippet td\n\t<td>${1}</td>\nsnippet td.\n\t<td class="${1}">${2}</td>\nsnippet td#\n\t<td id="${1}">${2}</td>\nsnippet td+\n\t<td>${1}</td>\n\ttd+${2}\nsnippet textarea\n\t<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>${6}\nsnippet tfoot\n\t<tfoot>\n\t\t${1}\n\t</tfoot>\nsnippet th\n\t<th>${1}</th>\nsnippet th.\n\t<th class="${1}">${2}</th>\nsnippet th#\n\t<th id="${1}">${2}</th>\nsnippet th+\n\t<th>${1}</th>\n\tth+${2}\nsnippet thead\n\t<thead>\n\t\t${1}\n\t</thead>\nsnippet time\n\t<time datetime="${1}" pubdate="${2:$1}>${3:$1}</time>\nsnippet title\n\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\nsnippet tr\n\t<tr>\n\t\t${1}\n\t</tr>\nsnippet tr+\n\t<tr>\n\t\t<td>${1}</td>\n\t\ttd+${2}\n\t</tr>\nsnippet track\n\t<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>${6}\nsnippet ul\n\t<ul>\n\t\t${1}\n\t</ul>\nsnippet ul.\n\t<ul class="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul#\n\t<ul id="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul+\n\t<ul>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ul>\nsnippet var\n\t<var>${1}</var>\nsnippet video\n\t<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video>${8}\nsnippet wbr\n\t<wbr />${1}\n',t.scope="html"})),function(){ace.require(["ace/snippets/html"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.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 s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52e7":function(e,t,n){"use strict";var r=n("53a2"),i=Object(r["a"])(Object.getPrototypeOf,Object);t["a"]=i},"53a2":function(e,t,n){"use strict";function r(e,t){return function(n){return e(t(n))}}t["a"]=r},"53d7":function(e,t,n){(function(e){ace.define("ace/snippets/java",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='## Access Modifiers\nsnippet po\n\tprotected\nsnippet pu\n\tpublic\nsnippet pr\n\tprivate\n##\n## Annotations\nsnippet before\n\t@Before\n\tstatic void ${1:intercept}(${2:args}) { ${3} }\nsnippet mm\n\t@ManyToMany\n\t${1}\nsnippet mo\n\t@ManyToOne\n\t${1}\nsnippet om\n\t@OneToMany${1:(cascade=CascadeType.ALL)}\n\t${2}\nsnippet oo\n\t@OneToOne\n\t${1}\n##\n## Basic Java packages and import\nsnippet im\n\timport\nsnippet j.b\n\tjava.beans.\nsnippet j.i\n\tjava.io.\nsnippet j.m\n\tjava.math.\nsnippet j.n\n\tjava.net.\nsnippet j.u\n\tjava.util.\n##\n## Class\nsnippet cl\n\tclass ${1:`Filename("", "untitled")`} ${2}\nsnippet in\n\tinterface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3}\nsnippet tc\n\tpublic class ${1:`Filename()`} extends ${2:TestCase}\n##\n## Class Enhancements\nsnippet ext\n\textends \nsnippet imp\n\timplements\n##\n## Comments\nsnippet /*\n\t/*\n\t * ${1}\n\t */\n##\n## Constants\nsnippet co\n\tstatic public final ${1:String} ${2:var} = ${3};${4}\nsnippet cos\n\tstatic public final String ${1:var} = "${2}";${3}\n##\n## Control Statements\nsnippet case\n\tcase ${1}:\n\t\t${2}\nsnippet def\n\tdefault:\n\t\t${2}\nsnippet el\n\telse\nsnippet elif\n\telse if (${1}) ${2}\nsnippet if\n\tif (${1}) ${2}\nsnippet sw\n\tswitch (${1}) {\n\t\t${2}\n\t}\n##\n## Create a Method\nsnippet m\n\t${1:void} ${2:method}(${3}) ${4:throws }${5}\n##\n## Create a Variable\nsnippet v\n\t${1:String} ${2:var}${3: = null}${4};${5}\n##\n## Enhancements to Methods, variables, classes, etc.\nsnippet ab\n\tabstract\nsnippet fi\n\tfinal\nsnippet st\n\tstatic\nsnippet sy\n\tsynchronized\n##\n## Error Methods\nsnippet err\n\tSystem.err.print("${1:Message}");\nsnippet errf\n\tSystem.err.printf("${1:Message}", ${2:exception});\nsnippet errln\n\tSystem.err.println("${1:Message}");\n##\n## Exception Handling\nsnippet as\n\tassert ${1:test} : "${2:Failure message}";${3}\nsnippet ca\n\tcatch(${1:Exception} ${2:e}) ${3}\nsnippet thr\n\tthrow\nsnippet ths\n\tthrows\nsnippet try\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t}\nsnippet tryf\n\ttry {\n\t\t${3}\n\t} catch(${1:Exception} ${2:e}) {\n\t} finally {\n\t}\n##\n## Find Methods\nsnippet findall\n\tList<${1:listName}> ${2:items} = ${1}.findAll();${3}\nsnippet findbyid\n\t${1:var} ${2:item} = ${1}.findById(${3});${4}\n##\n## Javadocs\nsnippet /**\n\t/**\n\t * ${1}\n\t */\nsnippet @au\n\t@author `system("grep \\`id -un\\` /etc/passwd | cut -d \\":\\" -f5 | cut -d \\",\\" -f1")`\nsnippet @br\n\t@brief ${1:Description}\nsnippet @fi\n\t@file ${1:`Filename()`}.java\nsnippet @pa\n\t@param ${1:param}\nsnippet @re\n\t@return ${1:param}\n##\n## Logger Methods\nsnippet debug\n\tLogger.debug(${1:param});${2}\nsnippet error\n\tLogger.error(${1:param});${2}\nsnippet info\n\tLogger.info(${1:param});${2}\nsnippet warn\n\tLogger.warn(${1:param});${2}\n##\n## Loops\nsnippet enfor\n\tfor (${1} : ${2}) ${3}\nsnippet for\n\tfor (${1}; ${2}; ${3}) ${4}\nsnippet wh\n\twhile (${1}) ${2}\n##\n## Main method\nsnippet main\n\tpublic static void main (String[] args) {\n\t\t${1:/* code */}\n\t}\n##\n## Print Methods\nsnippet print\n\tSystem.out.print("${1:Message}");\nsnippet printf\n\tSystem.out.printf("${1:Message}", ${2:args});\nsnippet println\n\tSystem.out.println(${1});\n##\n## Render Methods\nsnippet ren\n\trender(${1:param});${2}\nsnippet rena\n\trenderArgs.put("${1}", ${2});${3}\nsnippet renb\n\trenderBinary(${1:param});${2}\nsnippet renj\n\trenderJSON(${1:param});${2}\nsnippet renx\n\trenderXml(${1:param});${2}\n##\n## Setter and Getter Methods\nsnippet set\n\t${1:public} void set${3:}(${2:String} ${4:}){\n\t\tthis.$4 = $4;\n\t}\nsnippet get\n\t${1:public} ${2:String} get${3:}(){\n\t\treturn this.${4:};\n\t}\n##\n## Terminate Methods or Loops\nsnippet re\n\treturn\nsnippet br\n\tbreak;\n##\n## Test Methods\nsnippet t\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\nsnippet test\n\t@Test\n\tpublic void test${1:Name}() throws Exception {\n\t\t${2}\n\t}\n##\n## Utils\nsnippet Sc\n\tScanner\n##\n## Miscellaneous\nsnippet action\n\tpublic static void ${1:index}(${2:args}) { ${3} }\nsnippet rnf\n\tnotFound(${1:param});${2}\nsnippet rnfin\n\tnotFoundIfNull(${1:param});${2}\nsnippet rr\n\tredirect(${1:param});${2}\nsnippet ru\n\tunauthorized(${1:param});${2}\nsnippet unless\n\t(unless=${1:param});${2}\n',t.scope="java"})),function(){ace.require(["ace/snippets/java"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},"54eb":function(e,t,n){var r=n("8eeb"),i=n("32f4");function o(e,t){return r(e,i(e),t)}e.exports=o},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"57a5":function(e,t,n){var r=n("91e9"),i=r(Object.keys,Object);e.exports=i},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"589e":function(e,t,n){"use strict";function r(){return[]}t["a"]=r},"58e0":function(e,t,n){"use strict";(function(e){var r=n("26ee"),i=n("2f74"),o=exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r["a"].Buffer:void 0,u=l?l.isBuffer:void 0,c=u||i["a"];t["a"]=c}).call(this,n("dd40")(e))},"59d6":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"checkTag"},[e.showAllPick&&e.flag?n("span",{staticClass:"el-tag noColor",on:{click:e.pickAll}},[e._v("全选")]):e._e(),e.showAllPick&&!e.flag?n("span",{staticClass:"el-tag noColor",on:{click:e.pickNone}},[e._v("全不选")]):e._e(),e._l(e.list,(function(t){return[t.check?n("el-tag",{key:t[e.mapper.value],attrs:{size:e.size,"disable-transitions":!0,closable:!e.readonly},on:{close:function(n){return e.remove(t)}}},[e._v(" "+e._s(t[e.mapper.label])+" ")]):e.readonly?e._e():n("span",{key:t[e.mapper.value],staticClass:"el-tag noColor",on:{click:function(n){return e.pick(t)}}},[e._v(" "+e._s(t[e.mapper.label])+" ")])]}))],2)},i=[],o={name:"checkTag",data(){return{list:[],flag:!0}},props:{value:{type:[Array,String],default(){return[]}},readonly:{type:Boolean,default:!1},size:{type:String,default:"small"},options:Array,showAllPick:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},mapper:{type:Object,default(){return{label:"label",value:"value",children:"children"}}}},watch:{value:{deep:!0,immediate:!0,handler(){this.init()}}},computed:{check(){return this.list.filter(e=>e.check)}},methods:{init(){this.list=this.options,this.list.map(e=>{this.value.indexOf(e[this.mapper.value])>=0?this.$set(e,"check",!0):this.$set(e,"check",!1)})},pickAll(){this.list.map(e=>{this.$set(e,"check",!0)}),this.flag=!this.flag,this.$emit("change",this.check),this.setValue()},pickNone(){this.list.map(e=>{this.$set(e,"check",!1)}),this.flag=!this.flag,this.$emit("change",this.check),this.setValue()},pick(e){this.multiple?(this.$set(e,"check",!0),this.$emit("change",this.check)):(this.check.map(e=>{e.check=!1}),this.$set(e,"check",!0),this.$emit("change",this.check)),this.setValue()},remove(e){this.$set(e,"check",!1),this.$emit("change",this.check),this.setValue()},setValue(){const e=[];this.check.map(t=>{e.push(t[this.mapper.value])}),this.$emit("input",e)}}},a=o,s=(n("7719"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"6b051dd4",null),u=l.exports;u.install=function(e){e.component("SCheckTag",u)},t["default"]=u},"5a0b":function(module,__webpack_exports__,__webpack_require__){"use strict";var _utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("e74d"),_styled_items__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("8322"),lodash_es_get__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ec41"),lodash_es_set__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("bc48"),lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("a1a3"),lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("5c8a"),lodash_es_pick__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("070e"),lodash_es_groupBy__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("a474");__webpack_exports__["a"]={name:"SGroupForm",components:{Items:_styled_items__WEBPACK_IMPORTED_MODULE_1__["a"]},provide(){return{dict:this.dict}},data(){return{groups:{},unGroups:[],dict:{},stageForm:[]}},computed:{propsAll(){const e=Object(lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_5__["a"])(this.props);return"top"===e.labelPosition&&(e.labelWidth="100%",e.labelPosition="left"),Object(lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["a"])({labelWidth:"80px",labelPosition:"left"},e)},formData(){const e={};return this.form.map(t=>{t._code||(t._code=Object(_utils__WEBPACK_IMPORTED_MODULE_0__["randomCode"])(12));let n="";if(Array.isArray(t.key)){const e=[];t.key.map(t=>{const n=Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(this.value,t);(n||0===n)&&e.push(Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(this.value,t))}),n=e}else n=t.join?Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(this.value,t.key).split(t.join):Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(this.value,t.key);""!==n&&(e[t._code]=n),"checkbox"!==t.type||Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(this.value,t.key)||(e[t._code]=[])}),e}},props:{form:Array,value:Object,itemStyle:Object,type:String,props:{type:Object,default:()=>({})}},mounted(){this.init()},watch:{form(){this.init()},type(){this.init()}},methods:{mergeStyle(e){const t=Object(lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_5__["a"])(this.itemStyle);return e?Object(lodash_es_merge__WEBPACK_IMPORTED_MODULE_4__["a"])(t,e):t},init(){this.form&&("readonly"===this.type?this.form.map(e=>{this.setRead(e)}):this.form.map(e=>{this.setOrigin(e)}),this.initGroup(),this.initValue())},initGroup(){const e=Object(lodash_es_groupBy__WEBPACK_IMPORTED_MODULE_7__["a"])(this.form,"group");this.groups=Object(lodash_es_pick__WEBPACK_IMPORTED_MODULE_6__["a"])(e,Object.keys(e).filter(e=>"undefined"!==e)),this.unGroups=Object(lodash_es_pick__WEBPACK_IMPORTED_MODULE_6__["a"])(e,Object.keys(e).filter(e=>"undefined"===e)).undefined},initValue(){const e=Object(lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_5__["a"])(this.value);this.form.map(t=>{if(t.initValue){const n=t.initValue,r=t.key;Array.isArray(n)&&Array.isArray(r)?r.map((t,r)=>{Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(e,t)||Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(e,t,n[r])}):Array.isArray(r)?r.map(t=>{Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(e,t)||Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(e,t,n)}):Object(lodash_es_get__WEBPACK_IMPORTED_MODULE_2__["a"])(e,r)||Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(e,r,n)}}),this.$emit("input",Object.assign({},this.value,e))},setOrigin(e){switch(e.type=e.originType||e.type,e.props=Object.assign({},e.props),e.type){case"upload":e.props.remove=!0;break;case"code":e.props.readonly=!1;break;case"richText":e.props.readonly=!1;break;case"slider":e.props.disabled=!1;break;case"colorPicker":e.props.disabled=!1;break}},setRead(e){let t=e.type;switch(e.originType=e.type,e.type){case"input":case"inputNumber":case"number":t="text";break;case"timePicker":e.props=Object.assign({format:e.props&&e.props.format||"HH:mm:ss"},e.props),t="time";break;case"datePicker":e.props=Object.assign({format:e.props?e.props.format||"HH:mm:ss":"yyyy-MM-dd"},e.props),t="time";break;case"checkTag":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"radio":case"select":case"checkbox":case"selectRange":case"switch":t="dict";break;case"cascader":t="treeDict";break;case"upload":t="fileView",e.props=Object.assign({},e.props),e.props.remove=!1;break;case"code":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"richText":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"slider":e.props=Object.assign({},e.props),e.props.disabled=!0;break;case"colorPicker":e.props=Object.assign({},e.props),e.props.disabled=!0;break}e.readType=t,e.type=e.readType},setValue(e,t,n){this.$set(this.formData,e,n);const r=Object(lodash_es_cloneDeep__WEBPACK_IMPORTED_MODULE_5__["a"])(this.value);Array.isArray(n)&&Array.isArray(t)?t.map((e,t)=>{Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(r,e,n[t])}):Array.isArray(t)?t.map(e=>{Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(r,e,n)}):Object(lodash_es_set__WEBPACK_IMPORTED_MODULE_3__["a"])(r,t,n);const i=this.getItem(t)[0];if(i.rule&&i.rule.length>=0){let e=!1;i.rule.map(t=>{"change"===t.trigger&&(e=!0)}),e&&this.validate()}this.$emit("input",Object.assign({},this.value,r))},showFunction(show){if(void 0===show)return!0;if("function"===typeof show)return show(this.value);if("string"===typeof show)try{const str="((formData)=>"+show+")(this.value)";return eval(str)}catch(e){return!1}},change(e,t){this.$emit("change",e,t)},getIndex(e){let t=null;return this.form.map((n,r)=>{n.key===e&&(t=r)}),t},getItem(e){const t=[];return this.form.map((n,r)=>{e!==r&&n.key!==e&&n.label!==e||t.push(n)}),t},setOptions(e,t){let n=this.getItem(e);n&&n.map(e=>{e.options=t})},validate(e){return this.$refs.instance.validate(e)},validateField(e,t){let n=this.getItem(e)[0];return console.log(n._code),this.$refs.instance.validateField(n._code,t)},resetFields(){return this.$refs.instance.resetFields()},clearValidate(e){return this.$refs.instance.clearValidate(e)}}}},"5abf":function(e,t,n){},"5b01":function(e,t,n){var r=n("8eeb"),i=n("ec69");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"5bfa":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sTable"},[n("el-table",e._b({ref:"table",attrs:{"show-header":e.showHeader,id:e.id,size:e.size,border:e.border,height:e.height,"span-method":e.objectSpanMethod,"header-cell-style":e.headerCellStyle,data:e.tableData},on:{"sort-change":e.sortChange,"row-click":e.rowClick,"filter-change":e.filterChange,"selection-change":e.handleSelectionChange}},"el-table",e.props,!1),[e.props.treeProps?n("el-table-column",{attrs:{width:"45"}}):e._e(),e.select?n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}):e._e(),e.index?n("el-table-column",{attrs:{type:"index",index:e.calcIndex,align:"center"}}):e._e(),e._l(e.columnsUse,(function(t,r){return n("columns",{key:"c"+r,attrs:{item:t,tableProps:e.props,mergeMapper:e.mergeMapper},on:{changeRow:function(t){return e.$emit("changeRow",t)}},scopedSlots:e._u([e._l(e.columnsUse.filter((function(e){return"slot"===e.type})),(function(t){return{key:t.key,fn:function(n){var r=n.row,i=n.config;return e._t("default",[e._t(t.key,null,{row:r,config:i})])}}}))],null,!0),model:{value:e.tableData,callback:function(t){e.tableData=t},expression:"tableData"}})})),e.option&&e.option.btns.length>0?n("el-table-column",{attrs:{align:"center",fixed:"right",width:e.option.width,label:e.option.name||"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.option.btns,(function(r,i){return n("span",{key:i},[e.showFunction(t.row,r.show,e.value,t.$index)?n("el-button",{key:i,staticClass:"optionBtn",attrs:{icon:r.icon,type:"text"},on:{click:function(n){return r.handler(t.row,e.value)}}},[e._v(e._s(r.name))]):e._e()],1)}))}}],null,!1,2216640981)}):e._e()],2),e.usePage?n("div",{staticClass:"page"},[n("el-pagination",{attrs:{background:e.pageConfig.background,"current-page":e.usePage,"page-sizes":e.pageConfig.pageSizes,"page-size":e.usePageSize,layout:e.pageConfig.layout,total:e.pageConfig.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},i=[],o=n("b4cb"),a=o["a"],s=(n("f440"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"9d438c2c",null),u=l.exports;u.install=function(e){e.component("SGroupTable",u)},t["default"]=u},"5c8a":function(e,t,n){"use strict";var r=n("a12c");function i(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var o=i,a=n("db72"),s=n("f842"),l=n("9a4b");function u(e,t){return e&&Object(s["a"])(t,Object(l["a"])(t),e)}var c=u,f=n("e3fa");function d(e,t){return e&&Object(s["a"])(t,Object(f["a"])(t),e)}var h=d,p=n("dff1"),g=n("7804"),m=n("8cdf");function v(e,t){return Object(s["a"])(e,Object(m["a"])(e),t)}var y=v,b=n("b4f1"),_=n("52e7"),w=n("589e"),x=Object.getOwnPropertySymbols,O=x?function(e){var t=[];while(e)Object(b["a"])(t,Object(m["a"])(e)),e=Object(_["a"])(e);return t}:w["a"],S=O;function C(e,t){return Object(s["a"])(e,S(e),t)}var k=C,E=n("4c5c"),A=n("db97");function T(e){return Object(A["a"])(e,f["a"],S)}var D=T,M=n("60ce"),P=Object.prototype,I=P.hasOwnProperty;function j(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&I.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var L=j,N=n("964c");function R(e,t){var n=t?Object(N["a"])(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var B=R,$=/\w*$/;function F(e){var t=new e.constructor(e.source,$.exec(e));return t.lastIndex=e.lastIndex,t}var z=F,q=n("ca54"),U=q["a"]?q["a"].prototype:void 0,H=U?U.valueOf:void 0;function V(e){return H?Object(H.call(e)):{}}var W=V,K=n("1b89"),G="[object Boolean]",Y="[object Date]",X="[object Map]",Z="[object Number]",Q="[object RegExp]",J="[object Set]",ee="[object String]",te="[object Symbol]",ne="[object ArrayBuffer]",re="[object DataView]",ie="[object Float32Array]",oe="[object Float64Array]",ae="[object Int8Array]",se="[object Int16Array]",le="[object Int32Array]",ue="[object Uint8Array]",ce="[object Uint8ClampedArray]",fe="[object Uint16Array]",de="[object Uint32Array]";function he(e,t,n){var r=e.constructor;switch(t){case ne:return Object(N["a"])(e);case G:case Y:return new r(+e);case re:return B(e,n);case ie:case oe:case ae:case se:case le:case ue:case ce:case fe:case de:return Object(K["a"])(e,n);case X:return new r;case Z:case ee:return new r(e);case Q:return z(e);case J:return new r;case te:return W(e)}}var pe=he,ge=n("8583"),me=n("ff51"),ve=n("58e0"),ye=n("1147"),be="[object Map]";function _e(e){return Object(ye["a"])(e)&&Object(M["a"])(e)==be}var we=_e,xe=n("a2fb"),Oe=n("c6eb"),Se=Oe["a"]&&Oe["a"].isMap,Ce=Se?Object(xe["a"])(Se):we,ke=Ce,Ee=n("2332"),Ae="[object Set]";function Te(e){return Object(ye["a"])(e)&&Object(M["a"])(e)==Ae}var De=Te,Me=Oe["a"]&&Oe["a"].isSet,Pe=Me?Object(xe["a"])(Me):De,Ie=Pe,je=1,Le=2,Ne=4,Re="[object Arguments]",Be="[object Array]",$e="[object Boolean]",Fe="[object Date]",ze="[object Error]",qe="[object Function]",Ue="[object GeneratorFunction]",He="[object Map]",Ve="[object Number]",We="[object Object]",Ke="[object RegExp]",Ge="[object Set]",Ye="[object String]",Xe="[object Symbol]",Ze="[object WeakMap]",Qe="[object ArrayBuffer]",Je="[object DataView]",et="[object Float32Array]",tt="[object Float64Array]",nt="[object Int8Array]",rt="[object Int16Array]",it="[object Int32Array]",ot="[object Uint8Array]",at="[object Uint8ClampedArray]",st="[object Uint16Array]",lt="[object Uint32Array]",ut={};function ct(e,t,n,i,s,u){var d,m=t&je,v=t&Le,b=t&Ne;if(n&&(d=s?n(e,i,s,u):n(e)),void 0!==d)return d;if(!Object(Ee["a"])(e))return e;var _=Object(me["a"])(e);if(_){if(d=L(e),!m)return Object(g["a"])(e,d)}else{var w=Object(M["a"])(e),x=w==qe||w==Ue;if(Object(ve["a"])(e))return Object(p["a"])(e,m);if(w==We||w==Re||x&&!s){if(d=v||x?{}:Object(ge["a"])(e),!m)return v?k(e,h(d,e)):y(e,c(d,e))}else{if(!ut[w])return s?e:{};d=pe(e,w,m)}}u||(u=new r["a"]);var O=u.get(e);if(O)return O;u.set(e,d),Ie(e)?e.forEach((function(r){d.add(ct(r,t,n,r,e,u))})):ke(e)&&e.forEach((function(r,i){d.set(i,ct(r,t,n,i,e,u))}));var S=b?v?D:E["a"]:v?f["a"]:l["a"],C=_?void 0:S(e);return o(C||e,(function(r,i){C&&(i=r,r=e[i]),Object(a["a"])(d,i,ct(r,t,n,i,e,u))})),d}ut[Re]=ut[Be]=ut[Qe]=ut[Je]=ut[$e]=ut[Fe]=ut[et]=ut[tt]=ut[nt]=ut[rt]=ut[it]=ut[He]=ut[Ve]=ut[We]=ut[Ke]=ut[Ge]=ut[Ye]=ut[Xe]=ut[ot]=ut[at]=ut[st]=ut[lt]=!0,ut[ze]=ut[qe]=ut[Ze]=!1;var ft=ct,dt=1,ht=4;function pt(e){return ft(e,dt|ht)}t["a"]=pt},"5cbf":function(e,t,n){"use strict";n("e2c5")},"5d89":function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},"5dc1":function(e,t,n){"use strict";n("6e58")},"5e2e":function(e,t,n){var r=n("28c9"),i=n("69d5"),o=n("b4c0"),a=n("fba5"),s=n("67ca");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},"5ea3":function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t["a"]=n}).call(this,n("c8ba"))},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},6044:function(e,t,n){var r=n("0b07"),i=r(Object,"create");e.exports=i},6053:function(e,t,n){},6071:function(e,t,n){"use strict";function r(e,t){return e===t||e!==e&&t!==t}t["a"]=r},"60ce":function(e,t,n){"use strict";var r=n("63bc"),i=n("26ee"),o=Object(r["a"])(i["a"],"DataView"),a=o,s=n("ddc9"),l=Object(r["a"])(i["a"],"Promise"),u=l,c=Object(r["a"])(i["a"],"Set"),f=c,d=Object(r["a"])(i["a"],"WeakMap"),h=d,p=n("f0ce"),g=n("74b5"),m="[object Map]",v="[object Object]",y="[object Promise]",b="[object Set]",_="[object WeakMap]",w="[object DataView]",x=Object(g["a"])(a),O=Object(g["a"])(s["a"]),S=Object(g["a"])(u),C=Object(g["a"])(f),k=Object(g["a"])(h),E=p["a"];(a&&E(new a(new ArrayBuffer(1)))!=w||s["a"]&&E(new s["a"])!=m||u&&E(u.resolve())!=y||f&&E(new f)!=b||h&&E(new h)!=_)&&(E=function(e){var t=Object(p["a"])(e),n=t==v?e.constructor:void 0,r=n?Object(g["a"])(n):"";if(r)switch(r){case x:return w;case O:return m;case S:return y;case C:return b;case k:return _}return t}),t["a"]=E},"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}},"63bc":function(e,t,n){"use strict";var r=n("bc9b"),i=n("26ee"),o=i["a"]["__core-js_shared__"],a=o,s=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var u=l,c=n("2332"),f=n("74b5"),d=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=Function.prototype,g=Object.prototype,m=p.toString,v=g.hasOwnProperty,y=RegExp("^"+m.call(v).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!Object(c["a"])(e)||u(e))return!1;var t=Object(r["a"])(e)?y:h;return t.test(Object(f["a"])(e))}var _=b;function w(e,t){return null==e?void 0:e[t]}var x=w;function O(e,t){var n=x(e,t);return _(n)?n:void 0}t["a"]=O},"64cf":function(e,t,n){},"656b":function(e,t,n){var r=n("e2e4"),i=n("f4d6");function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[i(t[n++])];return n&&n==o?e:void 0}e.exports=o},"670f":function(e,t,n){},6747:function(e,t){var n=Array.isArray;e.exports=n},"67ca":function(e,t,n){var r=n("cb5a");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},6944:function(e,t,n){(function(t,r){e.exports=r(n("c82c"))})(0,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=8)}([function(t,n){t.exports=e},function(e,t){var n,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};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(i){"object"===("undefined"===typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(){var e={},t=!1,n=0,i=arguments.length;function o(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t&&"[object Object]"===Object.prototype.toString.call(n[i])?e[i]=r(!0,e[i],n[i]):e[i]=n[i])}for("[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);n<i;n++){var a=arguments[n];o(a)}return e}t["a"]=r},function(e,t){var n,r,i=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(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var u,c=[],f=!1,d=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!f){var e=s(h);f=!0;var t=c.length;while(t){u=c,c=[];while(++d<t)u&&u[d].run();d=-1,t=c.length}u=null,f=!1,l(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}i.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];c.push(new g(e,t)),1!==c.length||f||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,n,r){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},o=Object.freeze({});function a(e){return void 0===e||null===e}function s(e){return void 0!==e&&null!==e}function l(e){return!0===e}function u(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===("undefined"===typeof e?"undefined":i(e))||"boolean"===typeof e}function f(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))}var d=Object.prototype.toString;function h(e){return d.call(e).slice(8,-1)}function p(e){return"[object Object]"===d.call(e)}function g(e){return"[object RegExp]"===d.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function v(e){return s(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function y(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function b(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var w=_("slot,component",!0),x=_("key,ref,slot,slot-scope,is");function O(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var S=Object.prototype.hasOwnProperty;function C(e,t){return S.call(e,t)}function k(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var E=/-(\w)/g,A=k((function(e){return e.replace(E,(function(e,t){return t?t.toUpperCase():""}))})),T=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,M=k((function(e){return e.replace(D,"-$1").toLowerCase()}));function P(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function I(e,t){return e.bind(t)}var j=Function.prototype.bind?I:P;function L(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function N(e,t){for(var n in t)e[n]=t[n];return e}function R(e){for(var t={},n=0;n<e.length;n++)e[n]&&N(t,e[n]);return t}function B(e,t,n){}var $=function(e,t,n){return!1},F=function(e){return e};function z(e,t){if(e===t)return!0;var n=f(e),r=f(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return z(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return z(e[n],t[n])}))}catch(l){return!1}}function q(e,t){for(var n=0;n<e.length;n++)if(z(e[n],t))return n;return-1}function U(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var H="data-server-rendered",V=["component","directive","filter"],W=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],K={optionMergeStrategies:Object.create(null),silent:!1,productionTip:"production"!==e.env.NODE_ENV,devtools:"production"!==e.env.NODE_ENV,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:$,isReservedAttr:$,isUnknownElement:$,getTagNamespace:B,parsePlatformTagName:F,mustUseProp:$,async:!0,_lifecycleHooks:W},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 Y(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function X(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var Z=new RegExp("[^"+G.source+".$_\\d]");function Q(e){if(!Z.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 J,ee="__proto__"in{},te="undefined"!==typeof window,ne="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,re=ne&&WXEnvironment.platform.toLowerCase(),ie=te&&window.navigator.userAgent.toLowerCase(),oe=ie&&/msie|trident/.test(ie),ae=ie&&ie.indexOf("msie 9.0")>0,se=ie&&ie.indexOf("edge/")>0,le=(ie&&ie.indexOf("android"),ie&&/iphone|ipad|ipod|ios/.test(ie)||"ios"===re),ue=(ie&&/chrome\/\d+/.test(ie),ie&&/phantomjs/.test(ie),ie&&ie.match(/firefox\/(\d+)/)),ce={}.watch,fe=!1;if(te)try{var de={};Object.defineProperty(de,"passive",{get:function(){fe=!0}}),window.addEventListener("test-passive",null,de)}catch(as){}var he=function(){return void 0===J&&(J=!te&&!ne&&"undefined"!==typeof n&&n["process"]&&"server"===n["process"].env.VUE_ENV),J},pe=te&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ge(e){return"function"===typeof e&&/native code/.test(e.toString())}var me,ve="undefined"!==typeof Symbol&&ge(Symbol)&&"undefined"!==typeof Reflect&&ge(Reflect.ownKeys);me="undefined"!==typeof Set&&ge(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 ye=B,be=B,_e=B,we=B;if("production"!==e.env.NODE_ENV){var xe="undefined"!==typeof console,Oe=/(?:^|[-_])(\w)/g,Se=function(e){return e.replace(Oe,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};ye=function(e,t){var n=t?_e(t):"";K.warnHandler?K.warnHandler.call(null,e,t,n):xe&&!K.silent&&console.error("[Vue warn]: "+e+n)},be=function(e,t){xe&&!K.silent&&console.warn("[Vue tip]: "+e+(t?_e(t):""))},we=function(e,t){if(e.$root===e)return"<Root>";var n="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,r=n.name||n._componentTag,i=n.__file;if(!r&&i){var o=i.match(/([^/\\]+)\.vue$/);r=o&&o[1]}return(r?"<"+Se(r)+">":"<Anonymous>")+(i&&!1!==t?" at "+i:"")};var Ce=function(e,t){var n="";while(t)t%2===1&&(n+=e),t>1&&(e+=e),t>>=1;return n};_e=function(e){if(e._isVue&&e.$parent){var t=[],n=0;while(e){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":Ce(" ",5+2*t))+(Array.isArray(e)?we(e[0])+"... ("+e[1]+" recursive calls)":we(e))})).join("\n")}return"\n\n(found in "+we(e)+")"}}var ke=0,Ee=function(){this.id=ke++,this.subs=[]};Ee.prototype.addSub=function(e){this.subs.push(e)},Ee.prototype.removeSub=function(e){O(this.subs,e)},Ee.prototype.depend=function(){Ee.target&&Ee.target.addDep(this)},Ee.prototype.notify=function(){var t=this.subs.slice();"production"===e.env.NODE_ENV||K.async||t.sort((function(e,t){return e.id-t.id}));for(var n=0,r=t.length;n<r;n++)t[n].update()},Ee.target=null;var Ae=[];function Te(e){Ae.push(e),Ee.target=e}function De(){Ae.pop(),Ee.target=Ae[Ae.length-1]}var Me=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,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},Pe={child:{configurable:!0}};Pe.child.get=function(){return this.componentInstance},Object.defineProperties(Me.prototype,Pe);var Ie=function(e){void 0===e&&(e="");var t=new Me;return t.text=e,t.isComment=!0,t};function je(e){return new Me(void 0,void 0,void 0,String(e))}function Le(e){var t=new Me(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 Ne=Array.prototype,Re=Object.create(Ne),Be=["push","pop","shift","unshift","splice","sort","reverse"];Be.forEach((function(e){var t=Ne[e];X(Re,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var $e=Object.getOwnPropertyNames(Re),Fe=!0;function ze(e){Fe=e}var qe=function(e){this.value=e,this.dep=new Ee,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(ee?Ue(e,Re):He(e,Re,$e),this.observeArray(e)):this.walk(e)};function Ue(e,t){e.__proto__=t}function He(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];X(e,o,t[o])}}function Ve(e,t){var n;if(f(e)&&!(e instanceof Me))return C(e,"__ob__")&&e.__ob__ instanceof qe?n=e.__ob__:Fe&&!he()&&(Array.isArray(e)||p(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new qe(e)),t&&n&&n.vmCount++,n}function We(t,n,r,i,o){var a=new Ee,s=Object.getOwnPropertyDescriptor(t,n);if(!s||!1!==s.configurable){var l=s&&s.get,u=s&&s.set;l&&!u||2!==arguments.length||(r=t[n]);var c=!o&&Ve(r);Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var e=l?l.call(t):r;return Ee.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(e)&&Ye(e))),e},set:function(n){var s=l?l.call(t):r;n===s||n!==n&&s!==s||("production"!==e.env.NODE_ENV&&i&&i(),l&&!u||(u?u.call(t,n):r=n,c=!o&&Ve(n),a.notify()))}})}}function Ke(t,n,r){if("production"!==e.env.NODE_ENV&&(a(t)||c(t))&&ye("Cannot set reactive property on undefined, null, or primitive value: "+t),Array.isArray(t)&&m(n))return t.length=Math.max(t.length,n),t.splice(n,1,r),r;if(n in t&&!(n in Object.prototype))return t[n]=r,r;var i=t.__ob__;return t._isVue||i&&i.vmCount?("production"!==e.env.NODE_ENV&&ye("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."),r):i?(We(i.value,n,r),i.dep.notify(),r):(t[n]=r,r)}function Ge(t,n){if("production"!==e.env.NODE_ENV&&(a(t)||c(t))&&ye("Cannot delete reactive property on undefined, null, or primitive value: "+t),Array.isArray(t)&&m(n))t.splice(n,1);else{var r=t.__ob__;t._isVue||r&&r.vmCount?"production"!==e.env.NODE_ENV&&ye("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):C(t,n)&&(delete t[n],r&&r.dep.notify())}}function Ye(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ye(t)}qe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)We(e,t[n])},qe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ve(e[t])};var Xe=K.optionMergeStrategies;function Ze(e,t){if(!t)return e;for(var n,r,i,o=ve?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],C(e,n)?r!==i&&p(r)&&p(i)&&Ze(r,i):Ke(e,n,i));return e}function Qe(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?Ze(r,i):i}:t?e?function(){return Ze("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Je(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?et(n):n}function et(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function tt(t,n,r,i){var o=Object.create(t||null);return n?("production"!==e.env.NODE_ENV&&lt(i,n,r),N(o,n)):o}"production"!==e.env.NODE_ENV&&(Xe.el=Xe.propsData=function(e,t,n,r){return n||ye('option "'+r+'" can only be used during instance creation with the `new` keyword.'),nt(e,t)}),Xe.data=function(t,n,r){return r?Qe(t,n,r):n&&"function"!==typeof n?("production"!==e.env.NODE_ENV&&ye('The "data" option should be a function that returns a per-instance value in component definitions.',r),t):Qe(t,n)},W.forEach((function(e){Xe[e]=Je})),V.forEach((function(e){Xe[e+"s"]=tt})),Xe.watch=function(t,n,r,i){if(t===ce&&(t=void 0),n===ce&&(n=void 0),!n)return Object.create(t||null);if("production"!==e.env.NODE_ENV&&lt(i,n,r),!t)return n;var o={};for(var a in N(o,t),n){var s=o[a],l=n[a];s&&!Array.isArray(s)&&(s=[s]),o[a]=s?s.concat(l):Array.isArray(l)?l:[l]}return o},Xe.props=Xe.methods=Xe.inject=Xe.computed=function(t,n,r,i){if(n&&"production"!==e.env.NODE_ENV&&lt(i,n,r),!t)return n;var o=Object.create(null);return N(o,t),n&&N(o,n),o},Xe.provide=Qe;var nt=function(e,t){return void 0===t?e:t};function rt(e){for(var t in e.components)it(t)}function it(e){new RegExp("^[a-zA-Z][\\-\\.0-9_"+G.source+"]*$").test(e)||ye('Invalid component name: "'+e+'". Component names should conform to valid custom element name in html5 specification.'),(w(e)||K.isReservedTag(e))&&ye("Do not use built-in or reserved HTML elements as component id: "+e)}function ot(t,n){var r=t.props;if(r){var i,o,a,s={};if(Array.isArray(r)){i=r.length;while(i--)o=r[i],"string"===typeof o?(a=A(o),s[a]={type:null}):"production"!==e.env.NODE_ENV&&ye("props must be strings when using array syntax.")}else if(p(r))for(var l in r)o=r[l],a=A(l),s[a]=p(o)?o:{type:o};else"production"!==e.env.NODE_ENV&&ye('Invalid value for option "props": expected an Array or an Object, but got '+h(r)+".",n);t.props=s}}function at(t,n){var r=t.inject;if(r){var i=t.inject={};if(Array.isArray(r))for(var o=0;o<r.length;o++)i[r[o]]={from:r[o]};else if(p(r))for(var a in r){var s=r[a];i[a]=p(s)?N({from:a},s):{from:s}}else"production"!==e.env.NODE_ENV&&ye('Invalid value for option "inject": expected an Array or an Object, but got '+h(r)+".",n)}}function st(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function lt(e,t,n){p(t)||ye('Invalid value for option "'+e+'": expected an Object, but got '+h(t)+".",n)}function ut(t,n,r){if("production"!==e.env.NODE_ENV&&rt(n),"function"===typeof n&&(n=n.options),ot(n,r),at(n,r),st(n),!n._base&&(n.extends&&(t=ut(t,n.extends,r)),n.mixins))for(var i=0,o=n.mixins.length;i<o;i++)t=ut(t,n.mixins[i],r);var a,s={};for(a in t)l(a);for(a in n)C(t,a)||l(a);function l(e){var i=Xe[e]||nt;s[e]=i(t[e],n[e],r,e)}return s}function ct(t,n,r,i){if("string"===typeof r){var o=t[n];if(C(o,r))return o[r];var a=A(r);if(C(o,a))return o[a];var s=T(a);if(C(o,s))return o[s];var l=o[r]||o[a]||o[s];return"production"!==e.env.NODE_ENV&&i&&!l&&ye("Failed to resolve "+n.slice(0,-1)+": "+r,t),l}}function ft(t,n,r,i){var o=n[t],a=!C(r,t),s=r[t],l=yt(Boolean,o.type);if(l>-1)if(a&&!C(o,"default"))s=!1;else if(""===s||s===M(t)){var u=yt(String,o.type);(u<0||l<u)&&(s=!0)}if(void 0===s){s=dt(i,o,t);var c=Fe;ze(!0),Ve(s),ze(c)}return"production"!==e.env.NODE_ENV&&ht(o,t,s,i,a),s}function dt(t,n,r){if(C(n,"default")){var i=n.default;return"production"!==e.env.NODE_ENV&&f(i)&&ye('Invalid default value for prop "'+r+'": Props with type Object/Array must use a factory function to return the default value.',t),t&&t.$options.propsData&&void 0===t.$options.propsData[r]&&void 0!==t._props[r]?t._props[r]:"function"===typeof i&&"Function"!==mt(n.type)?i.call(t):i}}function ht(e,t,n,r,i){if(e.required&&i)ye('Missing required prop: "'+t+'"',r);else if(null!=n||e.required){var o=e.type,a=!o||!0===o,s=[];if(o){Array.isArray(o)||(o=[o]);for(var l=0;l<o.length&&!a;l++){var u=gt(n,o[l]);s.push(u.expectedType||""),a=u.valid}}if(a){var c=e.validator;c&&(c(n)||ye('Invalid prop: custom validator check failed for prop "'+t+'".',r))}else ye(bt(t,n,s),r)}}var pt=/^(String|Number|Boolean|Function|Symbol)$/;function gt(e,t){var n,r=mt(t);if(pt.test(r)){var o="undefined"===typeof e?"undefined":i(e);n=o===r.toLowerCase(),n||"object"!==o||(n=e instanceof t)}else n="Object"===r?p(e):"Array"===r?Array.isArray(e):e instanceof t;return{valid:n,expectedType:r}}function mt(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function vt(e,t){return mt(e)===mt(t)}function yt(e,t){if(!Array.isArray(t))return vt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(vt(t[n],e))return n;return-1}function bt(e,t,n){var r='Invalid prop: type check failed for prop "'+e+'". Expected '+n.map(T).join(", "),i=n[0],o=h(t),a=_t(t,i),s=_t(t,o);return 1===n.length&&wt(i)&&!xt(i,o)&&(r+=" with value "+a),r+=", got "+o+" ",wt(o)&&(r+="with value "+s+"."),r}function _t(e,t){return"String"===t?'"'+e+'"':"Number"===t?""+Number(e):""+e}function wt(e){var t=["string","number","boolean"];return t.some((function(t){return e.toLowerCase()===t}))}function xt(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some((function(e){return"boolean"===e.toLowerCase()}))}function Ot(e,t,n){Te();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(as){Ct(as,r,"errorCaptured hook")}}}Ct(e,t,n)}finally{De()}}function St(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&v(o)&&!o._handled&&(o.catch((function(e){return Ot(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(as){Ot(as,r,i)}return o}function Ct(e,t,n){if(K.errorHandler)try{return K.errorHandler.call(null,e,t,n)}catch(as){as!==e&&kt(as,null,"config.errorHandler")}kt(e,t,n)}function kt(t,n,r){if("production"!==e.env.NODE_ENV&&ye("Error in "+r+': "'+t.toString()+'"',n),!te&&!ne||"undefined"===typeof console)throw t;console.error(t)}var Et,At,Tt=!1,Dt=[],Mt=!1;function Pt(){Mt=!1;var e=Dt.slice(0);Dt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ge(Promise)){var It=Promise.resolve();Et=function(){It.then(Pt),le&&setTimeout(B)},Tt=!0}else if(oe||"undefined"===typeof MutationObserver||!ge(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Et="undefined"!==typeof r&&ge(r)?function(){r(Pt)}:function(){setTimeout(Pt,0)};else{var jt=1,Lt=new MutationObserver(Pt),Nt=document.createTextNode(String(jt));Lt.observe(Nt,{characterData:!0}),Et=function(){jt=(jt+1)%2,Nt.data=String(jt)},Tt=!0}function Rt(e,t){var n;if(Dt.push((function(){if(e)try{e.call(t)}catch(as){Ot(as,t,"nextTick")}else n&&n(t)})),Mt||(Mt=!0,Et()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}if("production"!==e.env.NODE_ENV){var Bt=_("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),$t=function(e,t){ye('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',e)},Ft=function(e,t){ye('Property "'+t+'" must be accessed with "$data.'+t+'" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals. See: https://vuejs.org/v2/api/#data',e)},zt="undefined"!==typeof Proxy&&ge(Proxy);if(zt){var qt=_("stop,prevent,self,ctrl,shift,alt,meta,exact");K.keyCodes=new Proxy(K.keyCodes,{set:function(e,t,n){return qt(t)?(ye("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var Ut={has:function(e,t){var n=t in e,r=Bt(t)||"string"===typeof t&&"_"===t.charAt(0)&&!(t in e.$data);return n||r||(t in e.$data?Ft(e,t):$t(e,t)),n||!r}},Ht={get:function(e,t){return"string"!==typeof t||t in e||(t in e.$data?Ft(e,t):$t(e,t)),e[t]}};At=function(e){if(zt){var t=e.$options,n=t.render&&t.render._withStripped?Ht:Ut;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e}}var Vt,Wt,Kt=new me;function Gt(e){Yt(e,Kt),Kt.clear()}function Yt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!f(e)||Object.isFrozen(e)||e instanceof Me)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)Yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)Yt(e[r[n]],t)}}}if("production"!==e.env.NODE_ENV){var Xt=te&&window.performance;Xt&&Xt.mark&&Xt.measure&&Xt.clearMarks&&Xt.clearMeasures&&(Vt=function(e){return Xt.mark(e)},Wt=function(e,t,n){Xt.measure(e,t,n),Xt.clearMarks(t),Xt.clearMarks(n)})}var Zt=k((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 r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function Qt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return St(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)St(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function Jt(t,n,r,i,o,s){var u,c,f,d;for(u in t)c=t[u],f=n[u],d=Zt(u),a(c)?"production"!==e.env.NODE_ENV&&ye('Invalid handler for event "'+d.name+'": got '+String(c),s):a(f)?(a(c.fns)&&(c=t[u]=Qt(c,s)),l(d.once)&&(c=t[u]=o(d.name,c,d.capture)),r(d.name,c,d.capture,d.passive,d.params)):c!==f&&(f.fns=c,t[u]=f);for(u in n)a(t[u])&&(d=Zt(u),i(d.name,n[u],d.capture))}function en(e,t,n){var r;e instanceof Me&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),O(r.fns,o)}a(i)?r=Qt([o]):s(i.fns)&&l(i.merged)?(r=i,r.fns.push(o)):r=Qt([i,o]),r.merged=!0,e[t]=r}function tn(t,n,r){var i=n.options.props;if(!a(i)){var o={},l=t.attrs,u=t.props;if(s(l)||s(u))for(var c in i){var f=M(c);if("production"!==e.env.NODE_ENV){var d=c.toLowerCase();c!==d&&l&&C(l,d)&&be('Prop "'+d+'" is passed to component '+we(r||n)+', but the declared prop name is "'+c+'". Note that HTML attributes are case-insensitive and camelCased props need to use their kebab-case equivalents when using in-DOM templates. You should probably use "'+f+'" instead of "'+c+'".')}nn(o,u,c,f,!0)||nn(o,l,c,f,!1)}return o}}function nn(e,t,n,r,i){if(s(t)){if(C(t,n))return e[n]=t[n],i||delete t[n],!0;if(C(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function rn(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function on(e){return c(e)?[je(e)]:Array.isArray(e)?sn(e):void 0}function an(e){return s(e)&&s(e.text)&&u(e.isComment)}function sn(e,t){var n,r,i,o,u=[];for(n=0;n<e.length;n++)r=e[n],a(r)||"boolean"===typeof r||(i=u.length-1,o=u[i],Array.isArray(r)?r.length>0&&(r=sn(r,(t||"")+"_"+n),an(r[0])&&an(o)&&(u[i]=je(o.text+r[0].text),r.shift()),u.push.apply(u,r)):c(r)?an(o)?u[i]=je(o.text+r):""!==r&&u.push(je(r)):an(r)&&an(o)?u[i]=je(o.text+r.text):(l(e._isVList)&&s(r.tag)&&a(r.key)&&s(t)&&(r.key="__vlist"+t+"_"+n+"__"),u.push(r)));return u}function ln(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function un(t){var n=cn(t.$options.inject,t);n&&(ze(!1),Object.keys(n).forEach((function(r){"production"!==e.env.NODE_ENV?We(t,r,n[r],(function(){ye('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+r+'"',t)})):We(t,r,n[r])})),ze(!0))}function cn(t,n){if(t){for(var r=Object.create(null),i=ve?Reflect.ownKeys(t):Object.keys(t),o=0;o<i.length;o++){var a=i[o];if("__ob__"!==a){var s=t[a].from,l=n;while(l){if(l._provided&&C(l._provided,s)){r[a]=l._provided[s];break}l=l.$parent}if(!l)if("default"in t[a]){var u=t[a].default;r[a]="function"===typeof u?u.call(n):u}else"production"!==e.env.NODE_ENV&&ye('Injection "'+a+'" not found',n)}}return r}}function fn(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],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 u in n)n[u].every(dn)&&delete n[u];return n}function dn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function hn(e,t,n){var r,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==o&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=pn(t,l,e[l]))}else r={};for(var u in t)u in r||(r[u]=gn(t,u));return e&&Object.isExtensible(e)&&(e._normalized=r),X(r,"$stable",a),X(r,"$key",s),X(r,"$hasNormal",i),r}function pn(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===("undefined"===typeof e?"undefined":i(e))&&!Array.isArray(e)?[e]:on(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function gn(e,t){return function(){return e[t]}}function mn(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(f(e))if(ve&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),u=l.next();while(!u.done)n.push(t(u.value,n.length)),u=l.next()}else for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return s(n)||(n=[]),n._isVList=!0,n}function vn(t,n,r,i){var o,a=this.$scopedSlots[t];a?(r=r||{},i&&("production"===e.env.NODE_ENV||f(i)||ye("slot v-bind without argument expects an Object",this),r=N(N({},i),r)),o=a(r)||n):o=this.$slots[t]||n;var s=r&&r.slot;return s?this.$createElement("template",{slot:s},o):o}function yn(e){return ct(this.$options,"filters",e,!0)||F}function bn(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function _n(e,t,n,r,i){var o=K.keyCodes[t]||n;return i&&r&&!K.keyCodes[t]?bn(i,r):o?bn(o,e):r?M(r)!==t:void 0}function wn(t,n,r,i,o){if(r)if(f(r)){var a;Array.isArray(r)&&(r=R(r));var s=function(e){if("class"===e||"style"===e||x(e))a=t;else{var s=t.attrs&&t.attrs.type;a=i||K.mustUseProp(n,s,e)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=A(e),u=M(e);if(!(l in a)&&!(u in a)&&(a[e]=r[e],o)){var c=t.on||(t.on={});c["update:"+e]=function(t){r[e]=t}}};for(var l in r)s(l)}else"production"!==e.env.NODE_ENV&&ye("v-bind without argument expects an Object or Array value",this);return t}function xn(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Sn(r,"__static__"+e,!1)),r}function On(e,t,n){return Sn(e,"__once__"+t+(n?"_"+n:""),!0),e}function Sn(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Cn(e[r],t+"_"+r,n);else Cn(e,t,n)}function Cn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function kn(t,n){if(n)if(p(n)){var r=t.on=t.on?N({},t.on):{};for(var i in n){var o=r[i],a=n[i];r[i]=o?[].concat(o,a):a}}else"production"!==e.env.NODE_ENV&&ye("v-on without argument expects an Object value",this);return t}function En(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?En(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function An(t,n){for(var r=0;r<n.length;r+=2){var i=n[r];"string"===typeof i&&i?t[n[r]]=n[r+1]:"production"!==e.env.NODE_ENV&&""!==i&&null!==i&&ye("Invalid value for dynamic directive argument (expected string or null): "+i,this)}return t}function Tn(e,t){return"string"===typeof e?t+e:e}function Dn(e){e._o=On,e._n=b,e._s=y,e._l=mn,e._t=vn,e._q=z,e._i=q,e._m=xn,e._f=yn,e._k=_n,e._b=wn,e._v=je,e._e=Ie,e._u=En,e._g=kn,e._d=An,e._p=Tn}function Mn(e,t,n,r,i){var a,s=this,u=i.options;C(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var c=l(u._compiled),f=!c;this.data=e,this.props=t,this.children=n,this.parent=r,this.listeners=e.on||o,this.injections=cn(u.inject,r),this.slots=function(){return s.$slots||hn(e.scopedSlots,s.$slots=fn(n,r)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return hn(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=hn(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var o=Hn(a,e,t,n,i,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,r){return Hn(a,e,t,n,r,f)}}function Pn(e,t,n,r,i){var a=e.options,l={},u=a.props;if(s(u))for(var c in u)l[c]=ft(c,u,t||o);else s(n.attrs)&&jn(l,n.attrs),s(n.props)&&jn(l,n.props);var f=new Mn(n,l,i,r,e),d=a.render.call(null,f._c,f);if(d instanceof Me)return In(d,n,f.parent,a,f);if(Array.isArray(d)){for(var h=on(d)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=In(h[g],n,f.parent,a,f);return p}}function In(t,n,r,i,o){var a=Le(t);return a.fnContext=r,a.fnOptions=i,"production"!==e.env.NODE_ENV&&((a.devtoolsMeta=a.devtoolsMeta||{}).renderContext=o),n.slot&&((a.data||(a.data={})).slot=n.slot),a}function jn(e,t){for(var n in t)e[A(n)]=t[n]}Dn(Mn.prototype);var Ln={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Ln.prepatch(n,n)}else{var r=e.componentInstance=Bn(e,ur);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;gr(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,br(n,"mounted")),e.data.keepAlive&&(t._isMounted?jr(n):vr(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?yr(t,!0):t.$destroy())}},Nn=Object.keys(Ln);function Rn(t,n,r,i,o){if(!a(t)){var u=r.$options._base;if(f(t)&&(t=u.extend(t)),"function"===typeof t){var c;if(a(t.cid)&&(c=t,t=er(c,u),void 0===t))return Jn(c,n,r,i,o);n=n||{},ri(t),s(n.model)&&zn(t.options,n);var d=tn(n,t,o);if(l(t.options.functional))return Pn(t,d,n,r,i);var h=n.on;if(n.on=n.nativeOn,l(t.options.abstract)){var p=n.slot;n={},p&&(n.slot=p)}$n(n);var g=t.options.name||o,m=new Me("vue-component-"+t.cid+(g?"-"+g:""),n,void 0,void 0,void 0,r,{Ctor:t,propsData:d,listeners:h,tag:o,children:i},c);return m}"production"!==e.env.NODE_ENV&&ye("Invalid Component definition: "+String(t),r)}}function Bn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return s(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function $n(e){for(var t=e.hook||(e.hook={}),n=0;n<Nn.length;n++){var r=Nn[n],i=t[r],o=Ln[r];i===o||i&&i._merged||(t[r]=i?Fn(o,i):o)}}function Fn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function zn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),o=i[r],a=t.model.callback;s(o)?(Array.isArray(o)?-1===o.indexOf(a):o!==a)&&(i[r]=[a].concat(o)):i[r]=a}var qn=1,Un=2;function Hn(e,t,n,r,i,o){return(Array.isArray(n)||c(n))&&(i=r,r=n,n=void 0),l(o)&&(i=Un),Vn(e,t,n,r,i)}function Vn(t,n,r,i,o){return s(r)&&s(r.__ob__)?("production"!==e.env.NODE_ENV&&ye("Avoid using observed data object as vnode data: "+JSON.stringify(r)+"\nAlways create fresh vnode data objects in each render!",t),Ie()):(s(r)&&s(r.is)&&(n=r.is),n?("production"!==e.env.NODE_ENV&&s(r)&&s(r.key)&&!c(r.key)&&ye("Avoid using non-primitive value as key, use string/number value instead.",t),Array.isArray(i)&&"function"===typeof i[0]&&(r=r||{},r.scopedSlots={default:i[0]},i.length=0),o===Un?i=on(i):o===qn&&(i=rn(i)),"string"===typeof n?(l=t.$vnode&&t.$vnode.ns||K.getTagNamespace(n),K.isReservedTag(n)?("production"!==e.env.NODE_ENV&&s(r)&&s(r.nativeOn)&&ye("The .native modifier for v-on is only valid on components but it was used on <"+n+">.",t),a=new Me(K.parsePlatformTagName(n),r,i,void 0,void 0,t)):a=r&&r.pre||!s(u=ct(t.$options,"components",n))?new Me(n,r,i,void 0,void 0,t):Rn(u,r,t,i,n)):a=Rn(n,r,t,i),Array.isArray(a)?a:s(a)?(s(l)&&Wn(a,l),s(r)&&Kn(r),a):Ie()):Ie());var a,l,u}function Wn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),s(e.children))for(var r=0,i=e.children.length;r<i;r++){var o=e.children[r];s(o.tag)&&(a(o.ns)||l(n)&&"svg"!==o.tag)&&Wn(o,t,n)}}function Kn(e){f(e.style)&&Gt(e.style),f(e.class)&&Gt(e.class)}function Gn(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=fn(n._renderChildren,i),t.$scopedSlots=o,t._c=function(e,n,r,i){return Hn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Hn(t,e,n,r,i,!0)};var a=r&&r.data;"production"!==e.env.NODE_ENV?(We(t,"$attrs",a&&a.attrs||o,(function(){!cr&&ye("$attrs is readonly.",t)}),!0),We(t,"$listeners",n._parentListeners||o,(function(){!cr&&ye("$listeners is readonly.",t)}),!0)):(We(t,"$attrs",a&&a.attrs||o,null,!0),We(t,"$listeners",n._parentListeners||o,null,!0))}var Yn,Xn=null;function Zn(t){Dn(t.prototype),t.prototype.$nextTick=function(e){return Rt(e,this)},t.prototype._render=function(){var t,n=this,r=n.$options,i=r.render,o=r._parentVnode;o&&(n.$scopedSlots=hn(o.data.scopedSlots,n.$slots,n.$scopedSlots)),n.$vnode=o;try{Xn=n,t=i.call(n._renderProxy,n.$createElement)}catch(as){if(Ot(as,n,"render"),"production"!==e.env.NODE_ENV&&n.$options.renderError)try{t=n.$options.renderError.call(n._renderProxy,n.$createElement,as)}catch(as){Ot(as,n,"renderError"),t=n._vnode}else t=n._vnode}finally{Xn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof Me||("production"!==e.env.NODE_ENV&&Array.isArray(t)&&ye("Multiple root nodes returned from render function. Render function should return a single root node.",n),t=Ie()),t.parent=o,t}}function Qn(e,t){return(e.__esModule||ve&&"Module"===e[Symbol.toStringTag])&&(e=e.default),f(e)?t.extend(e):e}function Jn(e,t,n,r,i){var o=Ie();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function er(t,n){if(l(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var r=Xn;if(r&&s(t.owners)&&-1===t.owners.indexOf(r)&&t.owners.push(r),l(t.loading)&&s(t.loadingComp))return t.loadingComp;if(r&&!s(t.owners)){var i=t.owners=[r],o=!0,u=null,c=null;r.$on("hook:destroyed",(function(){return O(i,r)}));var d=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},h=U((function(e){t.resolved=Qn(e,n),o?i.length=0:d(!0)})),p=U((function(n){"production"!==e.env.NODE_ENV&&ye("Failed to resolve async component: "+String(t)+(n?"\nReason: "+n:"")),s(t.errorComp)&&(t.error=!0,d(!0))})),g=t(h,p);return f(g)&&(v(g)?a(t.resolved)&&g.then(h,p):v(g.component)&&(g.component.then(h,p),s(g.error)&&(t.errorComp=Qn(g.error,n)),s(g.loading)&&(t.loadingComp=Qn(g.loading,n),0===g.delay?t.loading=!0:u=setTimeout((function(){u=null,a(t.resolved)&&a(t.error)&&(t.loading=!0,d(!1))}),g.delay||200)),s(g.timeout)&&(c=setTimeout((function(){c=null,a(t.resolved)&&p("production"!==e.env.NODE_ENV?"timeout ("+g.timeout+"ms)":null)}),g.timeout)))),o=!1,t.loading?t.loadingComp:t.resolved}}function tr(e){return e.isComment&&e.asyncFactory}function nr(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(s(n)&&(s(n.componentOptions)||tr(n)))return n}}function rr(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&sr(e,t)}function ir(e,t){Yn.$on(e,t)}function or(e,t){Yn.$off(e,t)}function ar(e,t){var n=Yn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function sr(e,t,n){Yn=e,Jt(t,n||{},ir,or,ar,e),Yn=void 0}function lr(t){var n=/^hook:/;t.prototype.$on=function(e,t){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],t);else(r._events[e]||(r._events[e]=[])).push(t),n.test(e)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},t.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var n=this;if("production"!==e.env.NODE_ENV){var r=t.toLowerCase();r!==t&&n._events[r]&&be('Event "'+r+'" is emitted in component '+we(n)+' but the handler is registered for "'+t+'". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "'+M(t)+'" instead of "'+t+'".')}var i=n._events[t];if(i){i=i.length>1?L(i):i;for(var o=L(arguments,1),a='event handler for "'+t+'"',s=0,l=i.length;s<l;s++)St(i[s],n,o,n,a)}return n}}var ur=null,cr=!1;function fr(e){var t=ur;return ur=e,function(){ur=t}}function dr(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._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function hr(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=fr(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){br(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||O(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),br(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function pr(t,n,r){var i;return t.$el=n,t.$options.render||(t.$options.render=Ie,"production"!==e.env.NODE_ENV&&(t.$options.template&&"#"!==t.$options.template.charAt(0)||t.$options.el||n?ye("You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",t):ye("Failed to mount component: template or render function not defined.",t))),br(t,"beforeMount"),i="production"!==e.env.NODE_ENV&&K.performance&&Vt?function(){var e=t._name,n=t._uid,i="vue-perf-start:"+n,o="vue-perf-end:"+n;Vt(i);var a=t._render();Vt(o),Wt("vue "+e+" render",i,o),Vt(i),t._update(a,r),Vt(o),Wt("vue "+e+" patch",i,o)}:function(){t._update(t._render(),r)},new Br(t,i,B,{before:function(){t._isMounted&&!t._isDestroyed&&br(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,br(t,"mounted")),t}function gr(t,n,r,i,a){"production"!==e.env.NODE_ENV&&(cr=!0);var s=i.data.scopedSlots,l=t.$scopedSlots,u=!!(s&&!s.$stable||l!==o&&!l.$stable||s&&t.$scopedSlots.$key!==s.$key),c=!!(a||t.$options._renderChildren||u);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=a,t.$attrs=i.data.attrs||o,t.$listeners=r||o,n&&t.$options.props){ze(!1);for(var f=t._props,d=t.$options._propKeys||[],h=0;h<d.length;h++){var p=d[h],g=t.$options.props;f[p]=ft(p,g,n,t)}ze(!0),t.$options.propsData=n}r=r||o;var m=t.$options._parentListeners;t.$options._parentListeners=r,sr(t,r,m),c&&(t.$slots=fn(a,i.context),t.$forceUpdate()),"production"!==e.env.NODE_ENV&&(cr=!1)}function mr(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function vr(e,t){if(t){if(e._directInactive=!1,mr(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++)vr(e.$children[n]);br(e,"activated")}}function yr(e,t){if((!t||(e._directInactive=!0,!mr(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)yr(e.$children[n]);br(e,"deactivated")}}function br(e,t){Te();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)St(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),De()}var _r=100,wr=[],xr=[],Or={},Sr={},Cr=!1,kr=!1,Er=0;function Ar(){Er=wr.length=xr.length=0,Or={},"production"!==e.env.NODE_ENV&&(Sr={}),Cr=kr=!1}var Tr=0,Dr=Date.now;if(te&&!oe){var Mr=window.performance;Mr&&"function"===typeof Mr.now&&Dr()>document.createEvent("Event").timeStamp&&(Dr=function(){return Mr.now()})}function Pr(){var t,n;for(Tr=Dr(),kr=!0,wr.sort((function(e,t){return e.id-t.id})),Er=0;Er<wr.length;Er++)if(t=wr[Er],t.before&&t.before(),n=t.id,Or[n]=null,t.run(),"production"!==e.env.NODE_ENV&&null!=Or[n]&&(Sr[n]=(Sr[n]||0)+1,Sr[n]>_r)){ye("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}var r=xr.slice(),i=wr.slice();Ar(),Lr(r),Ir(i),pe&&K.devtools&&pe.emit("flush")}function Ir(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&br(r,"updated")}}function jr(e){e._inactive=!1,xr.push(e)}function Lr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,vr(e[t],!0)}function Nr(t){var n=t.id;if(null==Or[n]){if(Or[n]=!0,kr){var r=wr.length-1;while(r>Er&&wr[r].id>t.id)r--;wr.splice(r+1,0,t)}else wr.push(t);if(!Cr){if(Cr=!0,"production"!==e.env.NODE_ENV&&!K.async)return void Pr();Rt(Pr)}}}var Rr=0,Br=function(t,n,r,i,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(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=r,this.id=++Rr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new me,this.newDepIds=new me,this.expression="production"!==e.env.NODE_ENV?n.toString():"","function"===typeof n?this.getter=n:(this.getter=Q(n),this.getter||(this.getter=B,"production"!==e.env.NODE_ENV&&ye('Failed watching path: "'+n+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',t))),this.value=this.lazy?void 0:this.get()};Br.prototype.get=function(){var e;Te(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(as){if(!this.user)throw as;Ot(as,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Gt(e),De(),this.cleanupDeps()}return e},Br.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))},Br.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},Br.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Nr(this)},Br.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||f(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(as){Ot(as,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Br.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Br.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Br.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||O(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var $r={enumerable:!0,configurable:!0,get:B,set:B};function Fr(e,t,n){$r.get=function(){return this[t][n]},$r.set=function(e){this[t][n]=e},Object.defineProperty(e,n,$r)}function zr(e){e._watchers=[];var t=e.$options;t.props&&qr(e,t.props),t.methods&&Xr(e,t.methods),t.data?Ur(e):Ve(e._data={},!0),t.computed&&Wr(e,t.computed),t.watch&&t.watch!==ce&&Zr(e,t.watch)}function qr(t,n){var r=t.$options.propsData||{},i=t._props={},o=t.$options._propKeys=[],a=!t.$parent;a||ze(!1);var s=function(s){o.push(s);var l=ft(s,n,r,t);if("production"!==e.env.NODE_ENV){var u=M(s);(x(u)||K.isReservedAttr(u))&&ye('"'+u+'" is a reserved attribute and cannot be used as component prop.',t),We(i,s,l,(function(){a||cr||ye("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+s+'"',t)}))}else We(i,s,l);s in t||Fr(t,"_props",s)};for(var l in n)s(l);ze(!0)}function Ur(t){var n=t.$options.data;n=t._data="function"===typeof n?Hr(n,t):n||{},p(n)||(n={},"production"!==e.env.NODE_ENV&&ye("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",t));var r=Object.keys(n),i=t.$options.props,o=t.$options.methods,a=r.length;while(a--){var s=r[a];"production"!==e.env.NODE_ENV&&o&&C(o,s)&&ye('Method "'+s+'" has already been defined as a data property.',t),i&&C(i,s)?"production"!==e.env.NODE_ENV&&ye('The data property "'+s+'" is already declared as a prop. Use prop default value instead.',t):Y(s)||Fr(t,"_data",s)}Ve(n,!0)}function Hr(e,t){Te();try{return e.call(t,t)}catch(as){return Ot(as,t,"data()"),{}}finally{De()}}var Vr={lazy:!0};function Wr(t,n){var r=t._computedWatchers=Object.create(null),i=he();for(var o in n){var a=n[o],s="function"===typeof a?a:a.get;"production"!==e.env.NODE_ENV&&null==s&&ye('Getter is missing for computed property "'+o+'".',t),i||(r[o]=new Br(t,s||B,B,Vr)),o in t?"production"!==e.env.NODE_ENV&&(o in t.$data?ye('The computed property "'+o+'" is already defined in data.',t):t.$options.props&&o in t.$options.props&&ye('The computed property "'+o+'" is already defined as a prop.',t)):Kr(t,o,a)}}function Kr(t,n,r){var i=!he();"function"===typeof r?($r.get=i?Gr(n):Yr(r),$r.set=B):($r.get=r.get?i&&!1!==r.cache?Gr(n):Yr(r.get):B,$r.set=r.set||B),"production"!==e.env.NODE_ENV&&$r.set===B&&($r.set=function(){ye('Computed property "'+n+'" was assigned to but it has no setter.',this)}),Object.defineProperty(t,n,$r)}function Gr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ee.target&&t.depend(),t.value}}function Yr(e){return function(){return e.call(this,this)}}function Xr(t,n){var r=t.$options.props;for(var o in n)"production"!==e.env.NODE_ENV&&("function"!==typeof n[o]&&ye('Method "'+o+'" has type "'+i(n[o])+'" in the component definition. Did you reference the function correctly?',t),r&&C(r,o)&&ye('Method "'+o+'" has already been defined as a prop.',t),o in t&&Y(o)&&ye('Method "'+o+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.')),t[o]="function"!==typeof n[o]?B:j(n[o],t)}function Zr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Qr(e,n,r[i]);else Qr(e,n,r)}}function Qr(e,t,n,r){return p(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function Jr(t){var n={get:function(){return this._data}},r={get:function(){return this._props}};"production"!==e.env.NODE_ENV&&(n.set=function(){ye("Avoid replacing instance root $data. Use nested data properties instead.",this)},r.set=function(){ye("$props is readonly.",this)}),Object.defineProperty(t.prototype,"$data",n),Object.defineProperty(t.prototype,"$props",r),t.prototype.$set=Ke,t.prototype.$delete=Ge,t.prototype.$watch=function(e,t,n){var r=this;if(p(t))return Qr(r,e,t,n);n=n||{},n.user=!0;var i=new Br(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){Ot(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var ei=0;function ti(t){t.prototype._init=function(t){var n,r,i=this;i._uid=ei++,"production"!==e.env.NODE_ENV&&K.performance&&Vt&&(n="vue-perf-start:"+i._uid,r="vue-perf-end:"+i._uid,Vt(n)),i._isVue=!0,t&&t._isComponent?ni(i,t):i.$options=ut(ri(i.constructor),t||{},i),"production"!==e.env.NODE_ENV?At(i):i._renderProxy=i,i._self=i,dr(i),rr(i),Gn(i),br(i,"beforeCreate"),un(i),zr(i),ln(i),br(i,"created"),"production"!==e.env.NODE_ENV&&K.performance&&Vt&&(i._name=we(i,!1),Vt(r),Wt("vue "+i._name+" init",n,r)),i.$options.el&&i.$mount(i.$options.el)}}function ni(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function ri(e){var t=e.options;if(e.super){var n=ri(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=ii(e);i&&N(e.extendOptions,i),t=e.options=ut(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function ii(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function oi(t){"production"===e.env.NODE_ENV||this instanceof oi||ye("Vue is a constructor and should be called with the `new` keyword"),this._init(t)}function ai(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=L(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function si(e){e.mixin=function(e){return this.options=ut(this.options,e),this}}function li(t){t.cid=0;var n=1;t.extend=function(t){t=t||{};var r=this,i=r.cid,o=t._Ctor||(t._Ctor={});if(o[i])return o[i];var a=t.name||r.options.name;"production"!==e.env.NODE_ENV&&a&&it(a);var s=function(e){this._init(e)};return s.prototype=Object.create(r.prototype),s.prototype.constructor=s,s.cid=n++,s.options=ut(r.options,t),s["super"]=r,s.options.props&&ui(s),s.options.computed&&ci(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,V.forEach((function(e){s[e]=r[e]})),a&&(s.options.components[a]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=N({},s.options),o[i]=s,s}}function ui(e){var t=e.options.props;for(var n in t)Fr(e.prototype,"_props",n)}function ci(e){var t=e.options.computed;for(var n in t)Kr(e.prototype,n,t[n])}function fi(t){V.forEach((function(n){t[n]=function(t,r){return r?("production"!==e.env.NODE_ENV&&"component"===n&&it(t),"component"===n&&p(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===n&&"function"===typeof r&&(r={bind:r,update:r}),this.options[n+"s"][t]=r,r):this.options[n+"s"][t]}}))}function di(e){return e&&(e.Ctor.options.name||e.tag)}function hi(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!g(e)&&e.test(t)}function pi(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=di(a.componentOptions);s&&!t(s)&&gi(n,o,r,i)}}}function gi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,O(n,t)}ti(oi),Jr(oi),lr(oi),hr(oi),Zn(oi);var mi=[String,RegExp,Array],vi={name:"keep-alive",abstract:!0,props:{include:mi,exclude:mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)gi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){pi(e,(function(e){return hi(t,e)}))})),this.$watch("exclude",(function(t){pi(e,(function(e){return!hi(t,e)}))}))},render:function(){var e=this.$slots.default,t=nr(e),n=t&&t.componentOptions;if(n){var r=di(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!hi(o,r))||a&&r&&hi(a,r))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,O(u,c),u.push(c)):(l[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&gi(l,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},yi={KeepAlive:vi};function bi(t){var n={get:function(){return K}};"production"!==e.env.NODE_ENV&&(n.set=function(){ye("Do not replace the Vue.config object, set individual fields instead.")}),Object.defineProperty(t,"config",n),t.util={warn:ye,extend:N,mergeOptions:ut,defineReactive:We},t.set=Ke,t.delete=Ge,t.nextTick=Rt,t.observable=function(e){return Ve(e),e},t.options=Object.create(null),V.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,N(t.options.components,yi),ai(t),si(t),li(t),fi(t)}bi(oi),Object.defineProperty(oi.prototype,"$isServer",{get:he}),Object.defineProperty(oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(oi,"FunctionalRenderContext",{value:Mn}),oi.version="2.6.12";var _i=_("style,class"),wi=_("input,textarea,option,select,progress"),xi=function(e,t,n){return"value"===n&&wi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Oi=_("contenteditable,draggable,spellcheck"),Si=_("events,caret,typing,plaintext-only"),Ci=function(e,t){return Di(t)||"false"===t?"false":"contenteditable"===e&&Si(t)?t:"true"},ki=_("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,translate,truespeed,typemustmatch,visible"),Ei="http://www.w3.org/1999/xlink",Ai=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Ai(e)?e.slice(6,e.length):""},Di=function(e){return null==e||!1===e};function Mi(e){var t=e.data,n=e,r=e;while(s(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Pi(r.data,t));while(s(n=n.parent))n&&n.data&&(t=Pi(t,n.data));return Ii(t.staticClass,t.class)}function Pi(e,t){return{staticClass:ji(e.staticClass,t.staticClass),class:s(e.class)?[e.class,t.class]:t.class}}function Ii(e,t){return s(e)||s(t)?ji(e,Li(t)):""}function ji(e,t){return e?t?e+" "+t:e:t||""}function Li(e){return Array.isArray(e)?Ni(e):f(e)?Ri(e):"string"===typeof e?e:""}function Ni(e){for(var t,n="",r=0,i=e.length;r<i;r++)s(t=Li(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Ri(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Bi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},$i=_("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"),Fi=_("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),zi=function(e){return $i(e)||Fi(e)};function qi(e){return Fi(e)?"svg":"math"===e?"math":void 0}var Ui=Object.create(null);function Hi(e){if(!te)return!0;if(zi(e))return!1;if(e=e.toLowerCase(),null!=Ui[e])return Ui[e];var t=document.createElement(e);return e.indexOf("-")>-1?Ui[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ui[e]=/HTMLUnknownElement/.test(t.toString())}var Vi=_("text,number,password,search,email,tel,url");function Wi(t){if("string"===typeof t){var n=document.querySelector(t);return n||("production"!==e.env.NODE_ENV&&ye("Cannot find element: "+t),document.createElement("div"))}return t}function Ki(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 Gi(e,t){return document.createElementNS(Bi[e],t)}function Yi(e){return document.createTextNode(e)}function Xi(e){return document.createComment(e)}function Zi(e,t,n){e.insertBefore(t,n)}function Qi(e,t){e.removeChild(t)}function Ji(e,t){e.appendChild(t)}function eo(e){return e.parentNode}function to(e){return e.nextSibling}function no(e){return e.tagName}function ro(e,t){e.textContent=t}function io(e,t){e.setAttribute(t,"")}var oo=Object.freeze({createElement:Ki,createElementNS:Gi,createTextNode:Yi,createComment:Xi,insertBefore:Zi,removeChild:Qi,appendChild:Ji,parentNode:eo,nextSibling:to,tagName:no,setTextContent:ro,setStyleScope:io}),ao={create:function(e,t){so(t)},update:function(e,t){e.data.ref!==t.data.ref&&(so(e,!0),so(t))},destroy:function(e){so(e,!0)}};function so(e,t){var n=e.data.ref;if(s(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?O(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var lo=new Me("",{},[]),uo=["create","activate","update","remove","destroy"];function co(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&s(e.data)===s(t.data)&&fo(e,t)||l(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&a(t.asyncFactory.error))}function fo(e,t){if("input"!==e.tag)return!0;var n,r=s(n=e.data)&&s(n=n.attrs)&&n.type,i=s(n=t.data)&&s(n=n.attrs)&&n.type;return r===i||Vi(r)&&Vi(i)}function ho(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,s(i)&&(o[i]=r);return o}function po(t){var n,r,i={},o=t.modules,u=t.nodeOps;for(n=0;n<uo.length;++n)for(i[uo[n]]=[],r=0;r<o.length;++r)s(o[r][uo[n]])&&i[uo[n]].push(o[r][uo[n]]);function f(e){return new Me(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);s(t)&&u.removeChild(t,e)}function p(e,t){return!t&&!e.ns&&!(K.ignoredElements.length&&K.ignoredElements.some((function(t){return g(t)?t.test(e.tag):t===e.tag})))&&K.isUnknownElement(e.tag)}var m=0;function v(t,n,r,i,o,a,c){if(s(t.elm)&&s(a)&&(t=a[c]=Le(t)),t.isRootInsert=!o,!y(t,n,r,i)){var f=t.data,d=t.children,h=t.tag;s(h)?("production"!==e.env.NODE_ENV&&(f&&f.pre&&m++,p(t,m)&&ye("Unknown custom element: <"+h+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context)),t.elm=t.ns?u.createElementNS(t.ns,h):u.createElement(h,t),k(t),O(t,d,n),s(f)&&C(t,n),x(r,t.elm,i),"production"!==e.env.NODE_ENV&&f&&f.pre&&m--):l(t.isComment)?(t.elm=u.createComment(t.text),x(r,t.elm,i)):(t.elm=u.createTextNode(t.text),x(r,t.elm,i))}}function y(e,t,n,r){var i=e.data;if(s(i)){var o=s(e.componentInstance)&&i.keepAlive;if(s(i=i.hook)&&s(i=i.init)&&i(e,!1),s(e.componentInstance))return b(e,t),x(n,e.elm,r),l(o)&&w(e,t,n,r),!0}}function b(e,t){s(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,S(e)?(C(e,t),k(e)):(so(e),t.push(e))}function w(e,t,n,r){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,s(o=a.data)&&s(o=o.transition)){for(o=0;o<i.activate.length;++o)i.activate[o](lo,a);t.push(a);break}x(n,e.elm,r)}function x(e,t,n){s(e)&&(s(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function O(t,n,r){if(Array.isArray(n)){"production"!==e.env.NODE_ENV&&P(n);for(var i=0;i<n.length;++i)v(n[i],r,t.elm,null,!0,n,i)}else c(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function S(e){while(e.componentInstance)e=e.componentInstance._vnode;return s(e.tag)}function C(e,t){for(var r=0;r<i.create.length;++r)i.create[r](lo,e);n=e.data.hook,s(n)&&(s(n.create)&&n.create(lo,e),s(n.insert)&&t.push(e))}function k(e){var t;if(s(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)s(t=n.context)&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}s(t=ur)&&t!==e.context&&t!==e.fnContext&&s(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function E(e,t,n,r,i,o){for(;r<=i;++r)v(n[r],o,e,t,!1,n,r)}function A(e){var t,n,r=e.data;if(s(r))for(s(t=r.hook)&&s(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(s(t=e.children))for(n=0;n<e.children.length;++n)A(e.children[n])}function T(e,t,n){for(;t<=n;++t){var r=e[t];s(r)&&(s(r.tag)?(D(r),A(r)):h(r.elm))}}function D(e,t){if(s(t)||s(e.data)){var n,r=i.remove.length+1;for(s(t)?t.listeners+=r:t=d(e.elm,r),s(n=e.componentInstance)&&s(n=n._vnode)&&s(n.data)&&D(n,t),n=0;n<i.remove.length;++n)i.remove[n](e,t);s(n=e.data.hook)&&s(n=n.remove)?n(e,t):t()}else h(e.elm)}function M(t,n,r,i,o){var l,c,f,d,h=0,p=0,g=n.length-1,m=n[0],y=n[g],b=r.length-1,_=r[0],w=r[b],x=!o;"production"!==e.env.NODE_ENV&&P(r);while(h<=g&&p<=b)a(m)?m=n[++h]:a(y)?y=n[--g]:co(m,_)?(j(m,_,i,r,p),m=n[++h],_=r[++p]):co(y,w)?(j(y,w,i,r,b),y=n[--g],w=r[--b]):co(m,w)?(j(m,w,i,r,b),x&&u.insertBefore(t,m.elm,u.nextSibling(y.elm)),m=n[++h],w=r[--b]):co(y,_)?(j(y,_,i,r,p),x&&u.insertBefore(t,y.elm,m.elm),y=n[--g],_=r[++p]):(a(l)&&(l=ho(n,h,g)),c=s(_.key)?l[_.key]:I(_,n,h,g),a(c)?v(_,i,t,m.elm,!1,r,p):(f=n[c],co(f,_)?(j(f,_,i,r,p),n[c]=void 0,x&&u.insertBefore(t,f.elm,m.elm)):v(_,i,t,m.elm,!1,r,p)),_=r[++p]);h>g?(d=a(r[b+1])?null:r[b+1].elm,E(t,d,r,p,b,i)):p>b&&T(n,h,g)}function P(e){for(var t={},n=0;n<e.length;n++){var r=e[n],i=r.key;s(i)&&(t[i]?ye("Duplicate keys detected: '"+i+"'. This may cause an update error.",r.context):t[i]=!0)}}function I(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(s(o)&&co(e,o))return i}}function j(t,n,r,o,c,f){if(t!==n){s(n.elm)&&s(o)&&(n=o[c]=Le(n));var d=n.elm=t.elm;if(l(t.isAsyncPlaceholder))s(n.asyncFactory.resolved)?B(t.elm,n,r):n.isAsyncPlaceholder=!0;else if(l(n.isStatic)&&l(t.isStatic)&&n.key===t.key&&(l(n.isCloned)||l(n.isOnce)))n.componentInstance=t.componentInstance;else{var h,p=n.data;s(p)&&s(h=p.hook)&&s(h=h.prepatch)&&h(t,n);var g=t.children,m=n.children;if(s(p)&&S(n)){for(h=0;h<i.update.length;++h)i.update[h](t,n);s(h=p.hook)&&s(h=h.update)&&h(t,n)}a(n.text)?s(g)&&s(m)?g!==m&&M(d,g,m,r,f):s(m)?("production"!==e.env.NODE_ENV&&P(m),s(t.text)&&u.setTextContent(d,""),E(d,null,m,0,m.length-1,r)):s(g)?T(g,0,g.length-1):s(t.text)&&u.setTextContent(d,""):t.text!==n.text&&u.setTextContent(d,n.text),s(p)&&s(h=p.hook)&&s(h=h.postpatch)&&h(t,n)}}}function L(e,t,n){if(l(n)&&s(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var N=!1,R=_("attrs,class,staticClass,staticStyle,key");function B(t,n,r,i){var o,a=n.tag,u=n.data,c=n.children;if(i=i||u&&u.pre,n.elm=t,l(n.isComment)&&s(n.asyncFactory))return n.isAsyncPlaceholder=!0,!0;if("production"!==e.env.NODE_ENV&&!$(t,n,i))return!1;if(s(u)&&(s(o=u.hook)&&s(o=o.init)&&o(n,!0),s(o=n.componentInstance)))return b(n,r),!0;if(s(a)){if(s(c))if(t.hasChildNodes())if(s(o=u)&&s(o=o.domProps)&&s(o=o.innerHTML)){if(o!==t.innerHTML)return"production"===e.env.NODE_ENV||"undefined"===typeof console||N||(N=!0,console.warn("Parent: ",t),console.warn("server innerHTML: ",o),console.warn("client innerHTML: ",t.innerHTML)),!1}else{for(var f=!0,d=t.firstChild,h=0;h<c.length;h++){if(!d||!B(d,c[h],r,i)){f=!1;break}d=d.nextSibling}if(!f||d)return"production"===e.env.NODE_ENV||"undefined"===typeof console||N||(N=!0,console.warn("Parent: ",t),console.warn("Mismatching childNodes vs. VNodes: ",t.childNodes,c)),!1}else O(n,c,r);if(s(u)){var p=!1;for(var g in u)if(!R(g)){p=!0,C(n,r);break}!p&&u["class"]&&Gt(u["class"])}}else t.data!==n.text&&(t.data=n.text);return!0}function $(e,t,n){return s(t.tag)?0===t.tag.indexOf("vue-component")||!p(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}return function(t,n,r,o){if(!a(n)){var c=!1,d=[];if(a(t))c=!0,v(n,d);else{var h=s(t.nodeType);if(!h&&co(t,n))j(t,n,d,null,null,o);else{if(h){if(1===t.nodeType&&t.hasAttribute(H)&&(t.removeAttribute(H),r=!0),l(r)){if(B(t,n,d))return L(n,d,!0),t;"production"!==e.env.NODE_ENV&&ye("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}t=f(t)}var p=t.elm,g=u.parentNode(p);if(v(n,d,p._leaveCb?null:g,u.nextSibling(p)),s(n.parent)){var m=n.parent,y=S(n);while(m){for(var b=0;b<i.destroy.length;++b)i.destroy[b](m);if(m.elm=n.elm,y){for(var _=0;_<i.create.length;++_)i.create[_](lo,m);var w=m.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}else so(m);m=m.parent}}s(g)?T([t],0,0):s(t.tag)&&A(t)}}return L(n,d,c),n.elm}s(t)&&A(t)}}var go={create:mo,update:mo,destroy:function(e){mo(e,lo)}};function mo(e,t){(e.data.directives||t.data.directives)&&vo(e,t)}function vo(e,t){var n,r,i,o=e===lo,a=t===lo,s=bo(e.data.directives,e.context),l=bo(t.data.directives,t.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,wo(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(wo(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)wo(u[n],"inserted",t,e)};o?en(t,"insert",f):f()}if(c.length&&en(t,"postpatch",(function(){for(var n=0;n<c.length;n++)wo(c[n],"componentUpdated",t,e)})),!o)for(n in s)l[n]||wo(s[n],"unbind",e,e,a)}var yo=Object.create(null);function bo(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=yo),i[_o(r)]=r,r.def=ct(t.$options,"directives",r.name,!0);return i}function _o(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function wo(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(as){Ot(as,n.context,"directive "+e.name+" "+t+" hook")}}var xo=[ao,go];function Oo(e,t){var n=t.componentOptions;if((!s(n)||!1!==n.Ctor.options.inheritAttrs)&&(!a(e.data.attrs)||!a(t.data.attrs))){var r,i,o,l=t.elm,u=e.data.attrs||{},c=t.data.attrs||{};for(r in s(c.__ob__)&&(c=t.data.attrs=N({},c)),c)i=c[r],o=u[r],o!==i&&So(l,r,i);for(r in(oe||se)&&c.value!==u.value&&So(l,"value",c.value),u)a(c[r])&&(Ai(r)?l.removeAttributeNS(Ei,Ti(r)):Oi(r)||l.removeAttribute(r))}}function So(e,t,n){e.tagName.indexOf("-")>-1?Co(e,t,n):ki(t)?Di(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Oi(t)?e.setAttribute(t,Ci(t,n)):Ai(t)?Di(n)?e.removeAttributeNS(Ei,Ti(t)):e.setAttributeNS(Ei,t,n):Co(e,t,n)}function Co(e,t,n){if(Di(n))e.removeAttribute(t);else{if(oe&&!ae&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function t(n){n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var ko={create:Oo,update:Oo};function Eo(e,t){var n=t.elm,r=t.data,i=e.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var o=Mi(t),l=n._transitionClasses;s(l)&&(o=ji(o,Li(l))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Ao,To={create:Eo,update:Eo},Do="__r",Mo="__c";function Po(e){if(s(e[Do])){var t=oe?"change":"input";e[t]=[].concat(e[Do],e[t]||[]),delete e[Do]}s(e[Mo])&&(e.change=[].concat(e[Mo],e.change||[]),delete e[Mo])}function Io(e,t,n){var r=Ao;return function i(){var o=t.apply(null,arguments);null!==o&&No(e,i,n,r)}}var jo=Tt&&!(ue&&Number(ue[1])<=53);function Lo(e,t,n,r){if(jo){var i=Tr,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ao.addEventListener(e,t,fe?{capture:n,passive:r}:n)}function No(e,t,n,r){(r||Ao).removeEventListener(e,t._wrapper||t,n)}function Ro(e,t){if(!a(e.data.on)||!a(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ao=t.elm,Po(n),Jt(n,r,Lo,No,Io,t.context),Ao=void 0}}var Bo,$o={create:Ro,update:Ro};function Fo(e,t){if(!a(e.data.domProps)||!a(t.data.domProps)){var n,r,i=t.elm,o=e.data.domProps||{},l=t.data.domProps||{};for(n in s(l.__ob__)&&(l=t.data.domProps=N({},l)),o)n in l||(i[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var u=a(r)?"":String(r);zo(i,u)&&(i.value=u)}else if("innerHTML"===n&&Fi(i.tagName)&&a(i.innerHTML)){Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+r+"</svg>";var c=Bo.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(c.firstChild)i.appendChild(c.firstChild)}else if(r!==o[n])try{i[n]=r}catch(as){}}}}function zo(e,t){return!e.composing&&("OPTION"===e.tagName||qo(e,t)||Uo(e,t))}function qo(e,t){var n=!0;try{n=document.activeElement!==e}catch(as){}return n&&e.value!==t}function Uo(e,t){var n=e.value,r=e._vModifiers;if(s(r)){if(r.number)return b(n)!==b(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Ho={create:Fo,update:Fo},Vo=k((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Wo(e){var t=Ko(e.style);return e.staticStyle?N(e.staticStyle,t):t}function Ko(e){return Array.isArray(e)?R(e):"string"===typeof e?Vo(e):e}function Go(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Wo(i.data))&&N(r,n)}(n=Wo(e.data))&&N(r,n);var o=e;while(o=o.parent)o.data&&(n=Wo(o.data))&&N(r,n);return r}var Yo,Xo=/^--/,Zo=/\s*!important$/,Qo=function(e,t,n){if(Xo.test(t))e.style.setProperty(t,n);else if(Zo.test(n))e.style.setProperty(M(t),n.replace(Zo,""),"important");else{var r=ea(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Jo=["Webkit","Moz","ms"],ea=k((function(e){if(Yo=Yo||document.createElement("div").style,e=A(e),"filter"!==e&&e in Yo)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Jo.length;n++){var r=Jo[n]+t;if(r in Yo)return r}}));function ta(e,t){var n=t.data,r=e.data;if(!(a(n.staticStyle)&&a(n.style)&&a(r.staticStyle)&&a(r.style))){var i,o,l=t.elm,u=r.staticStyle,c=r.normalizedStyle||r.style||{},f=u||c,d=Ko(t.data.style)||{};t.data.normalizedStyle=s(d.__ob__)?N({},d):d;var h=Go(t,!0);for(o in f)a(h[o])&&Qo(l,o,"");for(o in h)i=h[o],i!==f[o]&&Qo(l,o,null==i?"":i)}}var na={create:ta,update:ta},ra=/\s+/;function ia(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ra).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function oa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ra).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function aa(e){if(e){if("object"===("undefined"===typeof e?"undefined":i(e))){var t={};return!1!==e.css&&N(t,sa(e.name||"v")),N(t,e),t}return"string"===typeof e?sa(e):void 0}}var sa=k((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),la=te&&!ae,ua="transition",ca="animation",fa="transition",da="transitionend",ha="animation",pa="animationend";la&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fa="WebkitTransition",da="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ha="WebkitAnimation",pa="webkitAnimationEnd"));var ga=te?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ma(e){ga((function(){ga(e)}))}function va(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ia(e,t))}function ya(e,t){e._transitionClasses&&O(e._transitionClasses,t),oa(e,t)}function ba(e,t,n){var r=wa(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ua?da:pa,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),e.addEventListener(s,c)}var _a=/\b(transform|all)(,|$)/;function wa(e,t){var n,r=window.getComputedStyle(e),i=(r[fa+"Delay"]||"").split(", "),o=(r[fa+"Duration"]||"").split(", "),a=xa(i,o),s=(r[ha+"Delay"]||"").split(", "),l=(r[ha+"Duration"]||"").split(", "),u=xa(s,l),c=0,f=0;t===ua?a>0&&(n=ua,c=a,f=o.length):t===ca?u>0&&(n=ca,c=u,f=l.length):(c=Math.max(a,u),n=c>0?a>u?ua:ca:null,f=n?n===ua?o.length:l.length:0);var d=n===ua&&_a.test(r[fa+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:d}}function xa(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Oa(t)+Oa(e[n])})))}function Oa(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Sa(t,n){var r=t.elm;s(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var i=aa(t.data.transition);if(!a(i)&&!s(r._enterCb)&&1===r.nodeType){var o=i.css,l=i.type,u=i.enterClass,c=i.enterToClass,d=i.enterActiveClass,h=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,O=i.afterAppear,S=i.appearCancelled,C=i.duration,k=ur,E=ur.$vnode;while(E&&E.parent)k=E.context,E=E.parent;var A=!k._isMounted||!t.isRootInsert;if(!A||x||""===x){var T=A&&h?h:u,D=A&&g?g:d,M=A&&p?p:c,P=A&&w||m,I=A&&"function"===typeof x?x:v,j=A&&O||y,L=A&&S||_,N=b(f(C)?C.enter:C);"production"!==e.env.NODE_ENV&&null!=N&&ka(N,"enter",t);var R=!1!==o&&!ae,B=Aa(I),$=r._enterCb=U((function(){R&&(ya(r,M),ya(r,D)),$.cancelled?(R&&ya(r,T),L&&L(r)):j&&j(r),r._enterCb=null}));t.data.show||en(t,"insert",(function(){var e=r.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),I&&I(r,$)})),P&&P(r),R&&(va(r,T),va(r,D),ma((function(){ya(r,T),$.cancelled||(va(r,M),B||(Ea(N)?setTimeout($,N):ba(r,l,$)))}))),t.data.show&&(n&&n(),I&&I(r,$)),R||B||$()}}}function Ca(t,n){var r=t.elm;s(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var i=aa(t.data.transition);if(a(i)||1!==r.nodeType)return n();if(!s(r._leaveCb)){var o=i.css,l=i.type,u=i.leaveClass,c=i.leaveToClass,d=i.leaveActiveClass,h=i.beforeLeave,p=i.leave,g=i.afterLeave,m=i.leaveCancelled,v=i.delayLeave,y=i.duration,_=!1!==o&&!ae,w=Aa(p),x=b(f(y)?y.leave:y);"production"!==e.env.NODE_ENV&&s(x)&&ka(x,"leave",t);var O=r._leaveCb=U((function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),_&&(ya(r,c),ya(r,d)),O.cancelled?(_&&ya(r,u),m&&m(r)):(n(),g&&g(r)),r._leaveCb=null}));v?v(S):S()}function S(){O.cancelled||(!t.data.show&&r.parentNode&&((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),h&&h(r),_&&(va(r,u),va(r,d),ma((function(){ya(r,u),O.cancelled||(va(r,c),w||(Ea(x)?setTimeout(O,x):ba(r,l,O)))}))),p&&p(r,O),_||w||O())}}function ka(e,t,n){"number"!==typeof e?ye("<transition> explicit "+t+" duration is not a valid number - got "+JSON.stringify(e)+".",n.context):isNaN(e)&&ye("<transition> explicit "+t+" duration is NaN - the duration expression might be incorrect.",n.context)}function Ea(e){return"number"===typeof e&&!isNaN(e)}function Aa(e){if(a(e))return!1;var t=e.fns;return s(t)?Aa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ta(e,t){!0!==t.data.show&&Sa(t)}var Da=te?{create:Ta,activate:Ta,remove:function(e,t){!0!==e.data.show?Ca(e,t):t()}}:{},Ma=[ko,To,$o,Ho,na,Da],Pa=Ma.concat(xo),Ia=po({nodeOps:oo,modules:Pa});ae&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&za(e,"input")}));var ja={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?en(n,"postpatch",(function(){ja.componentUpdated(e,t,n)})):La(e,t,n.context),e._vOptions=[].map.call(e.options,Ba)):("textarea"===n.tag||Vi(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",$a),e.addEventListener("compositionend",Fa),e.addEventListener("change",Fa),ae&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){La(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ba);if(i.some((function(e,t){return!z(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Ra(e,i)})):t.value!==t.oldValue&&Ra(t.value,i);o&&za(e,"change")}}}};function La(e,t,n){Na(e,t,n),(oe||se)&&setTimeout((function(){Na(e,t,n)}),0)}function Na(t,n,r){var i=n.value,o=t.multiple;if(!o||Array.isArray(i)){for(var a,s,l=0,u=t.options.length;l<u;l++)if(s=t.options[l],o)a=q(i,Ba(s))>-1,s.selected!==a&&(s.selected=a);else if(z(Ba(s),i))return void(t.selectedIndex!==l&&(t.selectedIndex=l));o||(t.selectedIndex=-1)}else"production"!==e.env.NODE_ENV&&ye('<select multiple v-model="'+n.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(i).slice(8,-1),r)}function Ra(e,t){return t.every((function(t){return!z(t,e)}))}function Ba(e){return"_value"in e?e._value:e.value}function $a(e){e.target.composing=!0}function Fa(e){e.target.composing&&(e.target.composing=!1,za(e.target,"input"))}function za(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function qa(e){return!e.componentInstance||e.data&&e.data.transition?e:qa(e.componentInstance._vnode)}var Ua={bind:function(e,t,n){var r=t.value;n=qa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Sa(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=qa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Sa(n,(function(){e.style.display=e.__vOriginalDisplay})):Ca(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ha={model:ja,show:Ua},Va={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 Wa(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Wa(nr(t.children)):e}function Ka(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[A(o)]=i[o];return t}function Ga(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ya(e){while(e=e.parent)if(e.data.transition)return!0}function Xa(e,t){return t.key===e.key&&t.tag===e.tag}var Za=function(e){return e.tag||tr(e)},Qa=function(e){return"show"===e.name},Ja={name:"transition",props:Va,abstract:!0,render:function(t){var n=this,r=this.$slots.default;if(r&&(r=r.filter(Za),r.length)){"production"!==e.env.NODE_ENV&&r.length>1&&ye("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var i=this.mode;"production"!==e.env.NODE_ENV&&i&&"in-out"!==i&&"out-in"!==i&&ye("invalid <transition> mode: "+i,this.$parent);var o=r[0];if(Ya(this.$vnode))return o;var a=Wa(o);if(!a)return o;if(this._leaving)return Ga(t,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:c(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var l=(a.data||(a.data={})).transition=Ka(this),u=this._vnode,f=Wa(u);if(a.data.directives&&a.data.directives.some(Qa)&&(a.data.show=!0),f&&f.data&&!Xa(a,f)&&!tr(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var d=f.data.transition=N({},l);if("out-in"===i)return this._leaving=!0,en(d,"afterLeave",(function(){n._leaving=!1,n.$forceUpdate()})),Ga(t,o);if("in-out"===i){if(tr(a))return u;var h,p=function(){h()};en(l,"afterEnter",p),en(l,"enterCancelled",p),en(d,"delayLeave",(function(e){h=e}))}}return o}}},es=N({tag:String,moveClass:String},Va);delete es.mode;var ts={props:es,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=fr(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(t){for(var n=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),i=this.prevChildren=this.children,o=this.$slots.default||[],a=this.children=[],s=Ka(this),l=0;l<o.length;l++){var u=o[l];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))a.push(u),r[u.key]=u,(u.data||(u.data={})).transition=s;else if("production"!==e.env.NODE_ENV){var c=u.componentOptions,f=c?c.Ctor.options.name||c.tag||"":u.tag;ye("<transition-group> children must be keyed: <"+f+">")}}if(i){for(var d=[],h=[],p=0;p<i.length;p++){var g=i[p];g.data.transition=s,g.data.pos=g.elm.getBoundingClientRect(),r[g.key]?d.push(g):h.push(g)}this.kept=t(n,null,d),this.removed=h}return t(n,null,a)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ns),e.forEach(rs),e.forEach(is),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;va(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(da,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(da,e),n._moveCb=null,ya(n,t))})}})))},methods:{hasMove:function(e,t){if(!la)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){oa(n,e)})),ia(n,t),n.style.display="none",this.$el.appendChild(n);var r=wa(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ns(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function rs(e){e.data.newPos=e.elm.getBoundingClientRect()}function is(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var os={Transition:Ja,TransitionGroup:ts};oi.config.mustUseProp=xi,oi.config.isReservedTag=zi,oi.config.isReservedAttr=_i,oi.config.getTagNamespace=qi,oi.config.isUnknownElement=Hi,N(oi.options.directives,Ha),N(oi.options.components,os),oi.prototype.__patch__=te?Ia:B,oi.prototype.$mount=function(e,t){return e=e&&te?Wi(e):void 0,pr(this,e,t)},te&&setTimeout((function(){K.devtools&&(pe?pe.emit("init",oi):"production"!==e.env.NODE_ENV&&"test"!==e.env.NODE_ENV&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools")),"production"!==e.env.NODE_ENV&&"test"!==e.env.NODE_ENV&&!1!==K.productionTip&&"undefined"!==typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html")}),0),t["a"]=oi}).call(t,n(3),n(1),n(11).setImmediate)},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(2),a=n(4),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.images,r=void 0===t?[]:t,s=e.options,l=void 0===s?{}:s;l=n.i(o["a"])(l,{inline:!1});var u=a["a"].extend({render:function(e){return e("div",{style:{display:"none"},class:["__viewer-token"]},r.map((function(t){return e("img",{attrs:"string"===typeof t?{src:t}:t})})))}}),c=new u;c.$mount(),document.body.appendChild(c.$el);var f=new i.a(c.$el,l),d=f.destroy.bind(f);return f.destroy=function(){return d(),c.$destroy(),document.body.removeChild(c.$el),f},f.show(),c.$el.addEventListener("hidden",(function(){this.viewer===f&&f.destroy()})),f};t["a"]=s},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(10),a=(n.n(o),n(4)),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,s=void 0===r?"viewer":r,l=t.debug,u=void 0!==l&&l;function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a["a"].nextTick((function(){r&&!f(e)||(n||!e["$"+s]?(p(e),e["$"+s]=new i.a(e,t),v("Viewer created")):(e["$"+s].update(),v("Viewer updated")))}))}function f(e){var t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(v("Element change detected, but image(s) has not changed"),!1):(v("Image change detected"),e.__viewerImageDiffCache=n,!0)}function d(t,n,r,i){g(t);var o=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver;if(o){var a=new o((function(e){e.forEach((function(e){v("Viewer mutation:"+e.type),r(t,n,i,!0)}))})),s={attributes:!0,childList:!0,characterData:!0,subtree:!0};a.observe(t,s),t.__viewerMutationObserver=a,v("Observer created")}else v("Observer not supported")}function h(e,t,n,r){var i=t.expression,o=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;i&&o.test(i)?(e.__viewerUnwatch=n.context.$watch(i,(function(t,n){v("Change detected by watcher: ",i),r(e,t,!0)}),{deep:!0}),v("Watcher created, expression: ",i)):v("Only simple dot-delimited paths can create watcher")}function p(e){e["$"+s]&&(e["$"+s].destroy(),delete e["$"+s],v("Viewer destroyed"))}function g(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,v("Observer destroyed"))}function m(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,v("Watcher destroyed"))}function v(){var e;u&&(e=console).log.apply(e,arguments)}var y={bind:function(e,t,r){v("Viewer bind");var i=n.i(o["debounce"])(50,c);i(e,t.value),h(e,t,r,i),t.modifiers.static||d(e,t.value,i,t.modifiers.rebuild)},unbind:function(e,t){v("Viewer unbind"),g(e),m(e),p(e)}};return y};t["a"]=s}).call(t,n(1))},function(e,t,n){var r=n(13)(n(12),n(14),null,null);r.options.__file="/Users/mirari/works/web/v-viewer/src/component.vue",r.esModule&&Object.keys(r.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] component.vue: functional components are not supported with templates, they should use render functions."),e.exports=r.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(0),o=n.n(i),a=n(7),s=n.n(a),l=n(6),u=n(5);n.d(t,"component",(function(){return s.a})),n.d(t,"directive",(function(){return l["a"]})),n.d(t,"api",(function(){return u["a"]})),n.d(t,"Viewer",(function(){return o.a})),t["default"]={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.name,a=void 0===i?"viewer":i,c=t.debug,f=void 0!==c&&c,d=t.defaultOptions;o.a.setDefaults(d),e.component(a,n.i(r["a"])(s.a,{name:a})),e.directive(a,n.i(l["a"])({name:a,debug:f})),e.prototype["$"+a+"Api"]=u["a"]},setDefaults:function(e){o.a.setDefaults(e)}}},function(e,t,n){(function(e,t){(function(e,n){"use strict";if(!e.setImmediate){var r,i=1,o={},a=!1,s=e.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(e);l=l&&l.setTimeout?l:e,"[object process]"==={}.toString.call(e.process)?h():p()?g():e.MessageChannel?m():s&&"onreadystatechange"in s.createElement("script")?v():y(),l.setImmediate=u,l.clearImmediate=c}function u(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return o[i]=a,r(i),i++}function c(e){delete o[e]}function f(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r);break}}function d(e){if(a)setTimeout(d,0,e);else{var t=o[e];if(t){a=!0;try{f(t)}finally{c(e),a=!1}}}}function h(){r=function(e){t.nextTick((function(){d(e)}))}}function p(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function g(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&d(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}function m(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;d(t)},r=function(t){e.port2.postMessage(t)}}function v(){var e=s.documentElement;r=function(t){var n=s.createElement("script");n.onreadystatechange=function(){d(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function y(){r=function(e){setTimeout(d,0,e)}}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(t,n(1),n(3))},function(e,t,n){var r,i,o,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};(function(n,s){"object"===a(t)&&"undefined"!==typeof e?s(t):(i=[t],r=s,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o))})(0,(function(e){"use strict";function t(e,t,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function l(){s(),o=!0}function u(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var f=this,d=Date.now()-a;function h(){a=Date.now(),n.apply(f,u)}function p(){i=void 0}o||(r&&!i&&h(),s(),void 0===r&&d>e?h():!0!==t&&(i=setTimeout(r?p:h,void 0===r?e-d:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),u.cancel=l,u}function n(e,n,r){return void 0===r?t(e,n,!1):t(e,r,!1!==n)}e.debounce=n,e.throttle=t,Object.defineProperty(e,"__esModule",{value:!0})}))},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(9),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(1))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n.n(r);t["default"]={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:function(){return{}},computed:{},methods:{onChange:function(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer:function(){this.destroyViewer(),this.createViewer()},updateViewer:function(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer:function(){this.$viewer&&this.$viewer.destroy()},createViewer:function(){this.$viewer=new i.a(this.$el,this.options),this.$emit("inited",this.$viewer)}},watch:{images:function(){var e=this;this.$nextTick((function(){e.onChange()}))},trigger:{handler:function(){var e=this;this.$nextTick((function(){e.onChange()}))},deep:!0},options:{handler:function(){var e=this;this.$nextTick((function(){e.rebuildViewer()}))},deep:!0}},mounted:function(){this.createViewer()},destroyed:function(){this.destroyViewer()}}},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"===typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",null,{images:e.images,options:e.options})],2)},staticRenderFns:[]},e.exports.render._withStripped=!0}])}))},6999:function(e,t,n){"use strict";function r(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var i=r,o=i();t["a"]=o},"69d5":function(e,t,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6d4f":function(e,t,n){(function(e){(function(){var e="ace",t=function(){return this}();if(t||"undefined"==typeof window||(t=window),e||"undefined"===typeof requirejs){var n=function(e,t,r){"string"===typeof e?(2==arguments.length&&(r=t),n.modules[e]||(n.payloads[e]=r,n.modules[e]=null)):n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};n.modules={},n.payloads={};var r=function(e,t,n){if("string"===typeof t){var r=a(e,t);if(void 0!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],s=0,l=t.length;s<l;++s){var u=a(e,t[s]);if(void 0==u&&i.original)return;o.push(u)}return n&&n.apply(null,o)||!0}},i=function(e,t){var n=r("",e,t);return void 0==n&&i.original?i.original.apply(this,arguments):n},o=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return o(e,n[0])+"!"+o(e,n[1])}if("."==t.charAt(0)){var r=e.split("/").slice(0,-1).join("/");t=r+"/"+t;while(-1!==t.indexOf(".")&&i!=t){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return t},a=function(e,t){t=o(e,t);var i=n.modules[t];if(!i){if(i=n.payloads[t],"function"===typeof i){var a={},s={id:t,uri:"",exports:a,packaged:!0},l=function(e,n){return r(t,e,n)},u=i(l,a,s);a=u||s.exports,n.modules[t]=a,delete n.payloads[t]}i=n.modules[t]=a||i}return i};s(e)}function s(e){var r=t;e&&(t[e]||(t[e]={}),r=t[e]),r.define&&r.define.packaged||(n.original=r.define,r.define=n,r.define.packaged=!0),r.require&&r.require.packaged||(i.original=r.require,r.require=i,r.require.packaged=!0)}})(),ace.define("ace/lib/fixoldbrowsers",["require","exports","module"],(function(e,t,n){"use strict";"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},i=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),o=r.userAgent||"",a=r.appName||"";t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==a||a.indexOf("MSAppHost")>=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./useragent"),i="http://www.w3.org/1999/xhtml";if(t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a<t.length;a++){var s=e(t[a],n,r);s&&o.push(s)}return o}var l=document.createElement(t[0]),u=t[1],c=1;for(u&&"object"==typeof u&&!Array.isArray(u)&&(c=2),a=c;a<t.length;a++)e(t[a],l,r);return 2==c&&Object.keys(u).forEach((function(e){var t=u[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?r&&(r[t]=l):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||i,e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){var n=t?t.ownerDocument:document;return n.createTextNode(e)},t.createFragment=function(e){var t=e?e.ownerDocument:document;return t.createDocumentFragment()},t.hasCssClass=function(e,t){var n=(e.className+"").split(/\s+/g);return-1!==n.indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){var n=e.className.split(/\s+/g);while(1){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){var n=e.className.split(/\s+/g),r=!0;while(1){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if(t=t||document,n=t.querySelectorAll("style"))while(r<n.length)if(n[r++].id===e)return!0},t.importCssString=function(e,n,r){var i=r;r&&r.getRootNode?(i=r.getRootNode(),i&&i!=r||(i=document)):i=document;var o=i.ownerDocument||i;if(n&&t.hasCssString(n,i))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var a=t.createElement("style");a.appendChild(o.createTextNode(e)),n&&(a.id=n),i==o&&(i=t.getDocumentHead(o)),i.insertBefore(a,i.firstChild)},t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e.documentElement;o.appendChild(r);var a=n.offsetWidth;i.overflow="scroll";var s=n.offsetWidth;return a==s&&(s=r.clientWidth),o.removeChild(r),a-s},"undefined"==typeof document&&(t.importCssString=function(){}),t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!r.isWin||"undefined"!==typeof window&&window.devicePixelRatio>=1.5,"undefined"!==typeof document){var o=document.createElement("div");t.HI_DPI&&void 0!==o.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),r.isEdge||"undefined"===typeof o.style.animationName||(t.HAS_CSS_ANIMATION=!0),o=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,i=e("./keys"),o=e("./useragent"),a=null,s=0;function l(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){r={passive:!1}}})}catch(e){}}function u(){return void 0==r&&l(),r}function c(e,t,n){this.elem=e,this.type=t,this.callback=n}c.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var f=t.addListener=function(e,t,n,r){e.addEventListener(t,n,u()),r&&r.$toDestroy.push(new c(e,t,n))},d=t.removeListener=function(e,t,n){e.removeEventListener(t,n,u())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),d(r,"mousemove",t),d(r,"mouseup",i),d(r,"dragstart",i)}return f(r,"mousemove",t),f(r,"mouseup",i),f(r,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?f(e,"mousewheel",(function(e){var n=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/n,e.wheelY=-e.wheelDeltaY/n):(e.wheelX=0,e.wheelY=-e.wheelDelta/n),t(e)}),n):"onwheel"in e?f(e,"wheel",(function(e){var n=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*n||0,e.wheelY=e.deltaY*n||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}t(e)}),n):f(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,i,a){var s,l,u,c=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?c=0:e.detail>1?(c++,c>4&&(c=1)):c=1,o.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;u&&!a||(c=1),u&&clearTimeout(u),u=setTimeout((function(){u=null}),n[c-1]||600),1==c&&(s=e.clientX,l=e.clientY)}if(e._clicks=c,r[i]("mousedown",e),c>4)c=0;else if(c>1)return r[i](d[c],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){f(e,"mousedown",h,a)}))};var h=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var r=h(t);if(!o.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){var u=t.timeStamp-s;u<50&&(a.altGr=!0)}}}if(n in i.MODIFIER_KEYS&&(n=-1),r||13!==n||(l="location"in t?t.location:t.keyLocation,3!==l||(e(t,r,-n),!t.defaultPrevented))){if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}}function g(){a=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[h(e)]},t.addCommandKeyListener=function(e,n,r){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;f(e,"keydown",(function(e){i=e.keyCode}),r),f(e,"keypress",(function(e){return p(n,e,i)}),r)}else{var s=null;f(e,"keydown",(function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return s=e.defaultPrevented,t}),r),f(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)}),r),f(e,"keyup",(function(e){a[e.keyCode]=null}),r),a||(g(),f(window,"focus",g))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var m=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+m++,i=function(o){o.data==r&&(t.stopPropagation(o),d(n,"message",i),e())};f(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(r.row,r.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(r.row,r.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else this.end.row<e&&(n={row:e,column:0});if(this.start.row>t)var r={row:t+1,column:0};else this.start.row<e&&(r={row:e,column:0});return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var o={row:e,column:t};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var r;n.exports={lineMode:!1,pasteCancelled:function(){return!!(r&&r>Date.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=i.isChrome<18,u=i.isIE,c=i.isChrome>63,f=400,d=e("../lib/keys"),h=d.KEY_MODS,p=i.isIOS,g=p?/\s/:/\n/,m=i.isMobile,v=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var v=!1,y=!1,b=!1,_=!1,w="";m||(n.style.fontSize="1px");var x=!1,O=!1,S="",C=0,k=0,E=0;try{var A=document.activeElement===n}catch(Z){}r.addListener(n,"blur",(function(e){O||(t.onBlur(e),A=!1)}),t),r.addListener(n,"focus",(function(e){if(!O){if(A=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(T):T()}}),t),this.$focusScroll=!1,this.focus=function(){if(w||c||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(Z){return}var r=[];if(t){var i=n.parentElement;while(i&&1==i.nodeType)r.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement}n.focus({preventScroll:!0}),t&&r.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return A},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var i=r&&(e.docChanged||e.selectionChanged);b&&i&&(S=n.value="",U()),T()}}));var T=p?function(e){if(A&&(!v||e)&&!_){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=S=r);var i=4,o=4+(e.length||(t.selection.isEmpty()?0:1));C==i&&k==o||n.setSelectionRange(i,o),C=i,k=o}}:function(){if(!b&&!_&&(A||I)){b=!0;var e=0,r=0,i="";if(t.session){var o=t.selection,a=o.getRange(),s=o.cursor.row;if(e=a.start.column,r=a.end.column,i=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.row<s-1?0:e,r+=l.length+1,i=l+"\n"+i}else if(a.end.row!=s){var u=t.session.getLine(s+1);r=a.end.row>s+1?u.length:r,r+=i.length+1,i=i+"\n"+u}else m&&s>0&&(i="\n"+i,r+=1,e+=1);i.length>f&&(e<f&&r<f?i=i.slice(0,f):(i="\n",e==r?e=r=0:(e=0,r=1)))}var c=i+"\n\n";if(c!=S&&(n.value=S=c,C=k=c.length),I&&(C=n.selectionStart,k=n.selectionEnd),k!=r||C!=e||n.selectionEnd!=k)try{n.setSelectionRange(e,r),C=e,k=r}catch(Z){}b=!1}};this.resetSelection=T,A&&t.onFocus();var D=function(e){return 0===e.selectionStart&&e.selectionEnd>=S.length&&e.value===S&&S&&e.selectionEnd!==k},M=function(e){b||(v?v=!1:D(n)?(t.selectAll(),T()):m&&n.selectionStart!=C&&T())},P=null;this.setInputHandler=function(e){P=e},this.getInputHandler=function(){return P};var I=!1,j=function(e,r){if(I&&(I=!1),y)return T(),e&&t.onPaste(e),y=!1,"";var o=n.selectionStart,a=n.selectionEnd,s=C,l=S.length-k,u=e,c=e.length-o,f=e.length-a,d=0;while(s>0&&S[d]==e[d])d++,s--;u=u.slice(d),d=1;while(l>0&&S.length-d>C-1&&S[S.length-d]==e[e.length-d])d++,l--;c-=d-1,f-=d-1;var h=u.length-d+1;if(h<0&&(s=-h,h=0),u=u.slice(0,h),!r&&!u&&!c&&!s&&!l&&!f)return"";_=!0;var p=!1;return i.isAndroid&&". "==u&&(u="  ",p=!0),u&&!s&&!l&&!c&&!f||x?t.onTextInput(u):t.onTextInput(u,{extendLeft:s,extendRight:l,restoreStart:c,restoreEnd:f}),_=!1,S=e,C=o,k=a,E=f,p?"\n":u},L=function(e){if(b)return q();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,i=j(r,!0);(r.length>f+100||g.test(i)||m&&C<1&&C==k)&&T()},N=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var i=u||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return N(e,t,!0)}}},R=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);N(e,o)?(p&&(T(o),v=o,setTimeout((function(){v=!1}),10)),i?t.onCut():t.onCopy(),r.preventDefault(e)):(v=!0,n.value=o,n.select(),setTimeout((function(){v=!1,T(),i?t.onCut():t.onCopy()})))},B=function(e){R(e,!0)},$=function(e){R(e,!1)},F=function(e){var o=N(e);s.pasteCancelled()||("string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(T),r.preventDefault(e)):(n.value="",y=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",M,t),r.addListener(n,"input",L,t),r.addListener(n,"cut",B,t),r.addListener(n,"copy",$,t),r.addListener(n,"paste",F,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:$(e);break;case 86:F(e);break;case 88:B(e);break}}),t);var z=function(e){if(!b&&t.onCompositionStart&&!t.$readOnly&&(b={},!x)){e.data&&(b.useTextareaForIME=!1),setTimeout(q,0),t._signal("compositionStart"),t.on("mousedown",H);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,b.markerRange=r,b.selectionStart=C,t.onCompositionStart(b),b.useTextareaForIME?(S=n.value="",C=0,k=0):(n.msGetInputContext&&(b.context=n.msGetInputContext()),n.getInputContext&&(b.context=n.getInputContext()))}},q=function(){if(b&&t.onCompositionUpdate&&!t.$readOnly){if(x)return H();if(b.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;j(e),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+k-b.selectionStart+E)}}},U=function(e){t.onCompositionEnd&&!t.$readOnly&&(b=!1,t.onCompositionEnd(),t.off("mousedown",H),e&&L())};function H(){O=!0,n.blur(),n.focus(),O=!1}var V,W=a.delayedCall(q,50).schedule.bind(null,null);function K(e){27==e.keyCode&&n.value.length<n.selectionStart&&(b||(S=n.value),C=k=-1,T()),W()}function G(){clearTimeout(V),V=setTimeout((function(){w&&(n.style.cssText=w,w=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}r.addListener(n,"compositionstart",z,t),r.addListener(n,"compositionupdate",q,t),r.addListener(n,"keyup",K,t),r.addListener(n,"keydown",W,t),r.addListener(n,"compositionend",U,t),this.getElement=function(){return n},this.setCommandMode=function(e){x=e,n.readOnly=!1},this.setReadOnly=function(e){x||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){I=!0,T(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){w||(w=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+(i.isIE?"opacity:0.1;":"")+"text-indent: -"+(C+k)*t.renderer.characterWidth*.5+"px;";var s=t.container.getBoundingClientRect(),l=o.computedStyle(t.container),u=s.top+(parseInt(l.borderTopWidth)||0),c=s.left+(parseInt(s.borderLeftWidth)||0),f=s.bottom-u-n.clientHeight-2,d=function(e){o.translate(n,e.clientX-c-2,Math.min(e.clientY-u-2,f))};d(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(V),i.isWin&&r.capture(t.container,d,G))},this.onContextMenuClose=G;var Y=function(e){t.textInput.onContextMenu(e),G()};function X(e,t,n){var r=null,i=!1;n.addEventListener("keydown",(function(e){r&&clearTimeout(r),i=!0}),!0),n.addEventListener("keyup",(function(e){r=setTimeout((function(){i=!1}),100)}),!0);var o=function(e){if(document.activeElement===n&&!(i||b||t.$mouseHandler.isMousePressed)&&!v){var r=n.selectionStart,o=n.selectionEnd,a=null,s=0;if(0==r?a=d.up:1==r?a=d.home:o>k&&"\n"==S[o]?a=d.end:r<C&&" "==S[r-1]?(a=d.left,s=h.option):r<C||r==C&&k!=C&&r==o?a=d.left:o>k&&S.slice(0,o).split("\n").length>2?a=d.down:o>k&&" "==S[o-1]?(a=d.right,s=h.option):(o>k||o==k&&k!=C&&r==o)&&(a=d.right),r!==o&&(s|=h.shift),a){var l=t.onCommandKey({},s,a);if(!l&&t.commands){a=d.keyCodeToString(a);var u=t.commands.findKeyCommand(s,a);u&&t.execCommand(u)}C=r,k=o,T("")}}};document.addEventListener("selectionchange",o),t.on("destroy",(function(){document.removeEventListener("selectionchange",o)}))}r.addListener(n,"mouseup",Y,t),r.addListener(n,"mousedown",(function(e){e.preventDefault(),G()}),t),r.addListener(t.renderer.scroller,"contextmenu",Y,t),r.addListener(n,"contextmenu",Y,t),p&&X(e,t,n)};t.TextInput=v,t.$setUserAgentForTests=function(e,t){m=e,p=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent"),i=0,o=550;function a(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var a=i.getSelectionRange(),s=a.isEmpty();return(s||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=l(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==o&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&o>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==o&&1==a)r=i.end,t=i.start;else{var s=l(this.$clickSelection,r);r=s.cursor,t=s.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>i||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,i=r.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,a=i?e.wheelX/i:n.vx,s=i?e.wheelY/i:n.vy;i<o&&(a=(a+n.vx)/2,s=(s+n.vy)/2);var l=Math.abs(a/s),u=!1;if(l>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(u=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(u=!0),u)n.allowed=r;else if(r-n.allowed<o){var c=Math.abs(a)<=1.5*Math.abs(n.vx)&&Math.abs(s)<=1.5*Math.abs(n.vy);c?(u=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=a,n.vy=s,u?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}}).call(a.prototype),t.DefaultHandlers=a})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(i.prototype),t.Tooltip=i})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){var t,n,i,a=e.editor,s=a.renderer.$gutterLayer,u=new l(a.container);function c(){var t=n.getDocumentPosition().row,r=s.$annotations[t];if(!r)return f();var o=a.session.getLength();if(t==o){var l=a.renderer.pixelToScreenCoordinates(0,n.y).row,c=n.$pos;if(l>a.session.documentToScreenRow(c.row,c.column))return f()}if(i!=r)if(i=r.text.join("<br/>"),u.setHtml(i),u.show(),a._signal("showGutterTooltip",u),a.on("mousewheel",f),e.$tooltipFollowsMouse)d(n);else{var h=n.domEvent.target,p=h.getBoundingClientRect(),g=u.getElement().style;g.left=p.right+"px",g.top=p.bottom+"px"}}function f(){t&&(t=clearTimeout(t)),i&&(u.hide(),i=null,a._signal("hideGutterTooltip",u),a.off("mousewheel",f))}function d(e){u.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()){var n=s.getRegion(t);if("foldWidgets"!=n){var r=t.getDocumentPosition().row,i=a.session.selection;if(t.getShiftKey())i.selectTo(r,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(r)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return f();i&&e.$tooltipFollowsMouse&&d(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?c():f()}),50))})),o.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,i&&!t&&(t=setTimeout((function(){t=null,f()}),50))}),a),a.on("changeSession",f)}function l(e){a.call(this,e)}i.inherits(l,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();e+=15,t+=15,e+i>n&&(e-=e+i-n),t+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=s})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent"),a=200,s=200,l=5;function u(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var u=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];u.forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var f,d,h,p,g,m,v,y,b,_,w,x=t.container,O=0;function S(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;if(!_||i||o)t.moveCursorToPosition(e),_=r,w={x:d,y:h};else{var a=c(w.x,w.y,d,h);a>l?_=null:r-_>=s&&(t.renderer.scrollCursorIntoView(),_=null)}}function C(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),l={x:{left:d-s.left,right:s.right-d},y:{top:h-s.top,bottom:s.bottom-h}},u=Math.min(l.x.left,l.x.right),c=Math.min(l.y.top,l.y.bottom),f={row:e.row,column:e.column};u/o<=2&&(f.column+=l.x.left<l.x.right?-3:2),c/i<=1&&(f.row+=l.y.top<l.y.bottom?-1:1);var p=e.row!=f.row,g=e.column!=f.column,m=!n||e.row!=n.row;p||g&&!m?b?r-b>=a&&t.renderer.scrollCursorIntoView(f):b=r:b=null}function k(){var e=m;m=t.renderer.screenToTextCoordinates(d,h),S(m,e),C(m,e)}function E(){g=t.selection.toOrientedRange(),f=t.session.addMarker(g,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),k(),p=setInterval(k,20),O=0,i.addListener(document,"mousemove",D)}function A(){clearInterval(p),t.session.removeMarker(f),f=null,t.selection.fromOrientedRange(g),t.isFocused()&&!y&&t.$resetCursorStyle(),g=null,m=null,O=0,b=null,_=null,i.removeListener(document,"mousemove",D)}this.onDragStart=function(e){if(this.cancelDrag||!x.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}g=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),i.setDragImage&&i.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),i.clearData(),i.setData("Text",t.session.getTextRange()),y=!0,this.setState("drag")},this.onDragEnd=function(e){if(x.draggable=!1,y=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;v||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return d=e.clientX,h=e.clientY,f||E(),O++,e.dataTransfer.dropEffect=v=P(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return d=e.clientX,h=e.clientY,f||(E(),O++),null!==T&&(T=null),e.dataTransfer.dropEffect=v=P(e),i.preventDefault(e)},this.onDragLeave=function(e){if(O--,O<=0&&f)return A(),v=null,i.preventDefault(e)},this.onDrop=function(e){if(m){var n=e.dataTransfer;if(y)switch(v){case"move":g=g.contains(m.row,m.column)?{start:m,end:m}:t.moveText(g,m);break;case"copy":g=t.moveText(g,m,!0);break}else{var r=n.getData("Text");g={start:m,end:t.session.insert(m,r)},t.focus(),v=null}return A(),i.preventDefault(e)}},i.addListener(x,"dragstart",this.onDragStart.bind(e),t),i.addListener(x,"dragend",this.onDragEnd.bind(e),t),i.addListener(x,"dragenter",this.onDragEnter.bind(e),t),i.addListener(x,"dragover",this.onDragOver.bind(e),t),i.addListener(x,"dragleave",this.onDragLeave.bind(e),t),i.addListener(x,"drop",this.onDrop.bind(e),t);var T=null;function D(){null==T&&(T=setTimeout((function(){null!=T&&f&&A()}),20))}function M(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function P(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],r=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var a="none";return r&&t.indexOf(i)>=0?a="copy":n.indexOf(i)>=0?a="move":t.indexOf(i)>=0&&(a="copy"),a}}function c(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=o.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(o.isIE&&"dragReady"==this.state){var n=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}"dragWait"===this.state&&(n=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(1===i&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var a=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in a&&(a.unselectable="on"),t.getDragDelay()){if(o.isWebKit){this.cancelDrag=!0;var s=t.container;s.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(u.prototype),t.DragdropHandler=u})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,u,c,f,d,h,p="scroll",g=0,m=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(){var r=t.getCopyText(),i=t.session.getUndoManager().hasUndo();h.replaceChild(o.buildDom(n?["span",!r&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],r&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],r&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],i&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),h.firstChild)},i=function(i){var o=i.target.getAttribute("action");if("more"==o||!n)return n=!n,r();"paste"==o?e.readText().then((function(e){t.execCommand(o,e)})):o&&("cut"!=o&&"copy"!=o||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(o)),h.firstChild.style.display="none",n=!1,"openCommandPallete"!=o&&t.focus()};h=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),i(e)},onclick:i},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function _(){h||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,o=t.container.getBoundingClientRect();h.style.top=n.pageY-o.top-3+"px",n.pageX-o.left<o.width-70?(h.style.left="",h.style.right="10px"):(h.style.right="",h.style.left=r+i-o.left+"px"),h.style.display="",h.firstChild.style.display="none",t.on("input",w)}function w(e){h&&(h.style.display="none"),t.off("input",w)}function x(){u=null,clearTimeout(u);var e=t.selection.getRange(),n=e.contains(f.row,f.column);!e.isEmpty()&&n||(t.selection.moveToPosition(f),t.selection.selectWord()),p="wait",_()}function O(){u=null,clearTimeout(u),t.selection.moveToPosition(f);var e=m>=2?t.selection.getLineRange(f.row):t.session.getBracketRange(f);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function S(){g+=60,c=setInterval((function(){g--<=0&&(clearInterval(c),c=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),g<20&&(v*=.9),g<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(g=0)}),10)}i.addListener(e,"contextmenu",(function(e){if(d){var n=t.textInput.getElement();n.focus()}}),t),i.addListener(e,"touchstart",(function(e){var i=e.touches;if(u||i.length>1)return clearTimeout(u),u=null,s=-1,void(p="zoom");d=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,c=t.renderer.layerConfig.lineHeight,h=e.timeStamp;l=h;var b=i[0],_=b.clientX,w=b.clientY;Math.abs(n-_)+Math.abs(a-w)>o&&(s=-1),n=e.clientX=_,a=e.clientY=w,v=y=0;var S=new r(e,t);if(f=S.getDocumentPosition(),h-s<500&&1==i.length&&!g)m++,e.preventDefault(),e.button=0,O();else{m=0;var C=t.selection.cursor,k=t.selection.isEmpty()?C:t.selection.anchor,E=t.renderer.$cursorLayer.getPixelPosition(C,!0),A=t.renderer.$cursorLayer.getPixelPosition(k,!0),T=t.renderer.scroller.getBoundingClientRect(),D=t.renderer.layerConfig.offset,M=t.renderer.scrollLeft,P=function(e,t){return e/=c,t=t/o-.75,e*e+t*t};if(e.clientX<T.left)return void(p="zoom");var I=P(e.clientX-T.left-E.left+M,e.clientY-T.top-E.top+D),j=P(e.clientX-T.left-A.left+M,e.clientY-T.top-A.top+D);I<3.5&&j<3.5&&(p=I>j?"cursor":"anchor"),p=j<3.5?"anchor":I<3.5?"cursor":"scroll",u=setTimeout(x,450)}s=h}),t),i.addListener(e,"touchend",(function(e){d=t.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==p?(p="",g=0):u?(t.selection.moveToPosition(f),g=0,_()):"scroll"==p?(S(),w()):_(),clearTimeout(u),u=null}),t),i.addListener(e,"touchmove",(function(e){u&&(clearTimeout(u),u=null);var i=e.touches;if(!(i.length>1||"zoom"==p)){var o=i[0],s=n-o.clientX,c=a-o.clientY;if("wait"==p){if(!(s*s+c*c>4))return e.preventDefault();p="cursor"}n=o.clientX,a=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var f=e.timeStamp,d=f-l;if(l=f,"scroll"==p){var h=new r(e,t);h.speed=1,h.wheelX=s,h.wheelY=c,10*Math.abs(s)<Math.abs(c)&&(s=0),10*Math.abs(c)<Math.abs(s)&&(c=0),0!=d&&(v=s/d,y=c/d),t._emit("mousewheel",h),h.propagationStopped||(v=y=0)}else{var g=new r(e,t),m=g.getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(m):"anchor"==p&&t.selection.setSelectionAnchor(m.row,m.column),t.renderer.scrollCursorIntoView(m),e.preventDefault()}}}),t)}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var a=0;a<n.length;a++)if(n[a](t,this),t.propagationStopped)break;return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var r=e("./oop"),i=e("./event_emitter").EventEmitter,o={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n[e].hidden}))}return e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return a('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:a('misspelled option "'+e+'"')}};function a(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function s(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){r.implement(this,i),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),r.implement(e,o),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=a,this.reportError=s}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,r){var i=e("./lib/lang"),o=(e("./lib/oop"),e("./lib/net")),a=e("./lib/app_config").AppConfig;r.exports=t=new a;var s=function(){return this||"undefined"!=typeof window&&window}(),l={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};t.get=function(e){if(!l.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return l[e]},t.set=function(e,t){if(l.hasOwnProperty(e))l[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e)},t.all=function(){return i.copyObject(l)},t.$modes={},t.moduleUrl=function(e,t){if(l.$moduleUrls[e])return l.$moduleUrls[e];var n=e.split("/");t=t||n[n.length-2]||"";var r="snippets"==t?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var a=l[t+"Path"];return null==a?a=l.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return l.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{i=e(n)}catch(l){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s),u()}};var u=function(){l.basePath||l.workerPath||l.modePath||l.themePath||Object.keys(l.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};function c(i){if(s&&s.document){l.packaged=i||e.packaged||r.packaged||s.define&&n("07d6").packaged;for(var o={},a="",u=document.currentScript||document._currentScript,c=u&&u.ownerDocument||document,d=c.getElementsByTagName("script"),h=0;h<d.length;h++){var p=d[h],g=p.src||p.getAttribute("src");if(g){for(var m=p.attributes,v=0,y=m.length;v<y;v++){var b=m[v];0===b.name.indexOf("data-ace-")&&(o[f(b.name.replace(/^data-ace-/,""))]=b.value)}var _=g.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);_&&(a=_[1])}}for(var w in a&&(o.base=o.base||a,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base,o)"undefined"!==typeof o[w]&&t.set(w,o[w])}}function f(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}c(!0),t.init=c,t.version="1.4.12"})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,u=e("./touch_handler").addTouchListeners,c=e("../config"),f=function(e){var t=this;this.editor=e,new o(this),new a(this),new l(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus()},s=e.renderer.getMouseEventTarget();r.addListener(s,"click",this.onMouseEvent.bind(this,"click"),e),r.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),r.addMultiMouseDownListener([s,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),u(e.container,e);var c=e.renderer.$gutter;r.addListener(c,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),r.addListener(c,"click",this.onMouseEvent.bind(this,"gutterclick"),e),r.addListener(c,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),r.addListener(c,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),r.addListener(s,"mousedown",n,e),r.addListener(c,"mousedown",n,e),i.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),r.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}),e)};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new s(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},this.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,o=this.editor.renderer;o.$isMousePressed=!0;var a=this,l=function(e){if(e){if(i.isWebKit&&!e.which&&a.releaseMouse)return a.releaseMouse();a.x=e.clientX,a.y=e.clientY,t&&t(e),a.mouseEvent=new s(e,a.editor),a.$mouseMoved=!0}},u=function(e){n.off("beforeEndOperation",f),clearInterval(d),c(),a[a.state+"End"]&&a[a.state+"End"](e),a.state="",a.isMousePressed=o.$isMousePressed=!1,o.$keepTextAreaAtCursor&&o.$moveTextAreaToCursor(),a.$onCaptureMouseMove=a.releaseMouse=null,e&&a.onMouseEvent("mouseup",e),n.endOperation()},c=function(){a[a.state]&&a[a.state](),a.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){u(e)}));var f=function(e){a.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(a[a.state+"End"]&&a[a.state+"End"](),a.state="",a.releaseMouse())};n.on("beforeEndOperation",f),n.startOperation({command:{name:"mouse"}}),a.$onCaptureMouseMove=l,a.releaseMouse=r.capture(this.editor.container,l,u);var d=setInterval(c,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},this.destroy=function(){this.releaseMouse&&this.releaseMouse()}}).call(f.prototype),c.defineOptions(f.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=f})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom");function i(e){e.on("click",(function(t){var n=t.getDocumentPosition(),i=e.session,o=i.getFoldAt(n.row,n.column,1);o&&(t.getAccelKey()?i.removeFold(o):i.expandFold(o),t.stop());var a=t.domEvent&&t.domEvent.target;a&&r.hasCssClass(a,"ace_inline_button")&&r.hasCssClass(a,"ace_toggle_wrap")&&(i.setOption("wrap",!i.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var r=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[r]&&e.session.onFoldWidgetClick(r,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var r=t.getDocumentPosition().row,i=e.session,o=i.getParentFoldRangeData(r,!0),a=o.range||o.firstRange;if(a){r=a.start.row;var s=i.getFoldAt(r,i.getLine(r).length,1);s?i.removeFold(s):(i.addFold("...",a),e.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}t.stop()}}))}t.FoldHandler=i})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,r){for(var o,a=!1,s=this.$editor.commands,l=this.$handlers.length;l--;)if(o=this.$handlers[l].handleKeyboard(this.$data,e,t,n,r),o&&o.command&&(a="null"==o.command||s.exec(o.command,this.$editor,o.args,r),a&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),a))break;return a||-1!=e||(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var r=0,i=0,o=!1,a=!1,s=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,f=1,d=0,h=1,p=2,g=3,m=4,v=5,y=6,b=7,_=8,w=9,x=10,O=11,S=12,C=13,k=14,E=15,A=16,T=17,D=18,M=[D,D,D,D,D,D,D,D,D,y,v,y,_,v,D,D,D,D,D,D,D,D,D,D,D,D,D,D,v,v,v,y,_,m,m,O,O,O,m,m,m,m,m,x,w,x,w,w,p,p,p,p,p,p,p,p,p,p,w,m,m,m,m,m,m,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,m,m,m,m,m,m,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,d,m,m,m,m,D,D,D,D,D,D,v,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,w,m,O,O,O,O,m,m,m,m,d,m,m,D,m,m,O,O,p,p,m,d,m,m,m,p,d,m,m,m,m,m],P=[_,_,_,_,_,_,_,_,_,_,_,D,D,D,d,h,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_,v,C,k,E,A,T,w,O,O,O,O,O,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,w,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,_];function I(e,t,n,c){var f=r?u:l,d=null,h=null,p=null,g=0,m=null,b=null,w=-1,x=null,O=null,S=[];if(!c)for(x=0,c=[];x<n;x++)c[x]=N(e[x]);for(i=r,o=!1,a=!1,s=!1,O=0;O<n;O++){if(d=g,S[O]=h=L(e,c,S,O),g=f[d][h],m=240&g,g&=15,t[O]=p=f[g][5],m>0)if(16==m){for(x=w;x<O;x++)t[x]=1;w=-1}else w=-1;if(b=f[g][6],b)-1==w&&(w=O);else if(w>-1){for(x=w;x<O;x++)t[x]=p;w=-1}c[O]==v&&(t[O]=0),i|=p}if(s)for(x=0;x<n;x++)if(c[x]==y){t[x]=r;for(var C=x-1;C>=0;C--){if(c[C]!=_)break;t[C]=r}}}function j(e,t,n){if(!(i<e))if(1!=e||r!=f||a){var o,s,l,u,c=n.length,d=0;while(d<c){if(t[d]>=e){o=d+1;while(o<c&&t[o]>=e)o++;for(s=d,l=o-1;s<l;s++,l--)u=n[s],n[s]=n[l],n[l]=u;d=o}d++}}else n.reverse()}function L(e,t,n,i){var l,u,c,f,M=t[i];switch(M){case d:case h:o=!1;case m:case g:return M;case p:return o?g:p;case b:return o=!0,h;case _:return m;case w:return i<1||i+1>=t.length||(l=n[i-1])!=p&&l!=g||(u=t[i+1])!=p&&u!=g?m:(o&&(u=g),u==l?u:m);case x:return l=i>0?n[i-1]:v,l==p&&i+1<t.length&&t[i+1]==p?p:m;case O:if(i>0&&n[i-1]==p)return p;if(o)return m;f=i+1,c=t.length;while(f<c&&t[f]==O)f++;return f<c&&t[f]==p?p:m;case S:c=t.length,f=i+1;while(f<c&&t[f]==S)f++;if(f<c){var P=e[i],I=P>=1425&&P<=2303||64286==P;if(l=t[f],I&&(l==h||l==b))return h}return i<1||(l=t[i-1])==v?m:n[i-1];case v:return o=!1,a=!0,r;case y:return s=!0,m;case C:case k:case A:case T:case E:o=!1;case D:return m}}function N(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?d:M[t]:5==n?/[\u0591-\u05f4]/.test(e)?h:d:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?g:1642==t?O:/[\u06f0-\u06f9]/.test(e)?p:b:32==n&&t<=8287?P[255&t]:254==n&&t>=65136?b:m}t.L=d,t.R=h,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,i){if(e.length<2)return{};var o=e.split(""),a=new Array(o.length),s=new Array(o.length),l=[];r=i?f:c,I(o,l,o.length,n);for(var u=0;u<a.length;a[u]=u,u++);for(j(2,l,a),j(1,l,a),u=0;u<a.length-1;u++)n[u]===g?l[u]=t.AN:l[u]===h&&(n[u]>b&&n[u]<C||n[u]===m||n[u]===D)?l[u]=t.ON_R:u>0&&"ل"===o[u-1]&&/\u0622|\u0623|\u0625|\u0627/.test(o[u])&&(l[u-1]=l[u]=t.R_H,u++);for(o[o.length-1]===t.DOT&&(l[o.length-1]=t.B),"‫"===o[0]&&(l[0]=t.RLE),u=0;u<a.length;u++)s[u]=l[a[u]];return{logicalFromVisual:a,bidiLevels:s}},t.hasBidiCharacters=function(e,t){for(var n=!1,r=0;r<e.length;r++)t[r]=N(e.charAt(r)),n||t[r]!=h&&t[r]!=b&&t[r]!=g||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("./lib/bidiutil"),i=e("./lib/lang"),o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=o.test(e.getValue())};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&o.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,r=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==r)break;r=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,o=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[e];a&&(void 0===t&&(t=this.getSplitIndex()),t>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=t<a.length?this.line.substring(a[t-1],a[t]):this.line.substring(a[a.length-1])):this.line=this.line.substring(0,a[t])),t==a.length&&(this.line+=this.showInvisibles?o:r.DOT)}else this.line+=this.showInvisibles?o:r.DOT;var s,l=this.session,u=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||l.isFullWidth(e.charCodeAt(0))?(s="\t"===e?l.getScreenTabSize(t+u):2,u+=s-1,i.stringRepeat(r.DOT,s)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var e=[];r.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=.45*n,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setContentWidth=function(e){this.contentWidth=e},this.isRtlLine=function(e){return!!this.$isRtl||(void 0!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),r=e.selection.getSelectionAnchor().row;r<=n.row;r++)t||e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:r},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(r,0,1)},this.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!==0&&i++;for(var s=0;s<i;s++)a+=this.charWidths[o[s]];return!this.session.getOverwrite()&&e>t&&o[i]%2===0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,u=!1,c=!1,f=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,h=0;h<i.length;h++)d=r.logicalFromVisual[h],n=i[h],u=d>=s&&d<l,u&&!c?f=a:!u&&c&&o.push({left:f,width:a-f}),a+=this.charWidths[n],c=u;if(u&&h===i.length&&o.push({left:f,width:a-f}),this.isRtlDir)for(var p=0;p<o.length;p++)o[p].left+=this.rtlLineOffset;return o},this.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),r=0,i=this.bidiMap.bidiLevels,o=this.charWidths[i[r]];this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);while(e>n+o/2){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!==0&&i[r]%2===0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&i[r-1]%2===0&&i[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2===0||!this.isRtlDir&&0===r&&i[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!==0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead,this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column),o=i.match(/^\s*/);o[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=o[0].length),this.moveCursorToPosition(r)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&r.test(t))n++;if(n<1){i.lastIndex=0;while((t=e[n])&&!i.test(t))if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}while((t=e[n])&&r.test(t))n++;if(n>2)break}}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var a=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+a)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(r){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else e=this.getRange(),e.isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var u=n[l];if(u.defaultToken&&(o.defaultToken=u.defaultToken),u.caseInsensitive&&(a="gi"),null!=u.regex){u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1));var c=u.regex,f=new RegExp("(?:("+c+")|(.))").exec("a").length-2;Array.isArray(u.token)?1==u.token.length||1==f?u.token=u.token[0]:f-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:f-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=f>1?this.$applyToken:u.token),f>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(f=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),o[i]=l,i+=f,r.push(c),u.onMatch||(u.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,a,s,l){return r?r="]"!=s:s?r=!0:a?(n==i.stack&&(i.end=l+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=l)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var a=this.matchMappings[r],s=this.regExps[r];s.lastIndex=0;var l,u=[],c=0,f=0,d={type:null,value:""};while(l=s.exec(e)){var h=a.defaultToken,p=null,g=l[0],m=s.lastIndex;if(m-g.length>c){var v=e.substring(c,m-g.length);d.type==h?d.value+=v:(d.type&&u.push(d),d={type:h,value:v})}for(var y=0;y<l.length-2;y++)if(void 0!==l[y+1]){p=o[a[y]],h=p.onMatch?p.onMatch(g,r,n,e):p.token,p.next&&(r="string"==typeof p.next?p.next:p.next(r,n),o=this.states[r],o||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),a=this.matchMappings[r],c=m,s=this.regExps[r],s.lastIndex=m),p.consumeLineEnd&&(c=m);break}if(g)if("string"===typeof h)p&&!1===p.merge||d.type!==h?(d.type&&u.push(d),d={type:h,value:g}):d.value+=g;else if(h)for(d.type&&u.push(d),d={type:null,value:""},y=0;y<h.length;y++)u.push(h[y]);if(c==e.length)break;if(c=m,f++>i){f>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(c<e.length)d.type&&u.push(d),d={value:e.substring(c,c+=500),type:"overflow"};r="start",n=[];break}}return d.type&&u.push(d),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:u,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var a="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var l in i=[],a)i.push(t+l);if(this.addRules(a,t),n){var u=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)u.apply(this.$rules[i[s]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;function i(o){var a=r[o];a.processed=!0;for(var s=0;s<a.length;s++){var l=a[s],u=null;Array.isArray(l)&&(u=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c=l.next||l.push;if(c&&Array.isArray(c)){var f=l.stateName;f||(f=l.token,"string"!=typeof f&&(f=f[0]||""),r[f]&&(f+=n++)),r[f]=c,l.next=f,i(f)}else"pop"==c&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var d in l.rules)r[d]?r[d].push&&r[d].push.apply(r[d],l.rules[d]):r[d]=l.rules[d];var h="string"==typeof l?l:l.include;if(h&&(u=Array.isArray(h)?h.map((function(e){return r[e]})):r[h]),u){var p=[s,1].concat(u);l.noEscape&&(p=p.filter((function(e){return!e.next}))),a.splice.apply(a,p),s--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}Object.keys(r).forEach(i,this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var o=e[t],a=o.split(r||"|"),s=a.length;s--;){var l=a[s];this.$keywordList.push(l),n&&(l=l.toLowerCase()),i[l]=t}}),this),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(this.$tokenIndex<0){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],u=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},f={'"':'"',"'":"'"},d=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,c.rangeCount!=e.multiSelect.rangeCount&&(c={rangeCount:e.multiSelect.rangeCount})),c[t])return r=c[t];r=c[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},p=function(e){this.add("braces","insertion",(function(t,n,i,o,a){var l=i.getCursorPosition(),u=o.doc.getLine(l.row);if("{"==a){d(i);var c=i.getSelectionRange(),f=o.doc.getTextRange(c);if(""!==f&&"{"!==f&&i.getWrapBehavioursEnabled())return h(c,f,"{","}");if(p.isSaneInsertion(i,o))return/[\]\}\)]/.test(u[l.column])||i.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){d(i);var g=u.substring(l.column,l.column+1);if("}"==g){var m=o.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==m&&p.isAutoInsertedClosing(l,u,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==a||"\r\n"==a){d(i);var v="";if(p.isMaybeInsertedClosing(l,u)&&(v=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),g=u.substring(l.column,l.column+1),"}"===g){var y=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!y)return null;var b=this.$getIndent(o.getLine(y.row))}else{if(!v)return void p.clearMaybeInsertedClosing();b=this.$getIndent(u)}var _=b+o.getTabString();return{text:"\n"+_+"\n"+b+v,selection:[1,_.length,1,_.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){d(n);var s=i.doc.getLine(o.start.row),l=s.substring(o.end.column,o.end.column+1);if("}"==l)return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,i){if("("==i){d(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return h(o,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){d(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),u=l.substring(s.column,s.column+1);if(")"==u){var c=r.$findOpeningBracket(")",{column:s.column+1,row:s.row});if(null!==c&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o){d(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(")"==s)return i.end.column++,i}})),this.add("brackets","insertion",(function(e,t,n,r,i){if("["==i){d(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return h(o,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){d(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),u=l.substring(s.column,s.column+1);if("]"==u){var c=r.$findOpeningBracket("]",{column:s.column+1,row:s.row});if(null!==c&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o){d(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if("]"==s)return i.end.column++,i}})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){var o=r.$mode.$quotes||f;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;d(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return h(s,l,a,a);if(!l){var u=n.getCursorPosition(),c=r.doc.getLine(u.row),p=c.substring(u.column-1,u.column),g=c.substring(u.column,u.column+1),m=r.getTokenAt(u.row,u.column),v=r.getTokenAt(u.row,u.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var y,b=m&&/string|escape/.test(m.type),_=!v||/string|escape/.test(v.type);if(g==a)y=b!==_,y&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!_)return null;if(b&&_)return null;var w=r.$mode.tokenRe;w.lastIndex=0;var x=w.test(p);w.lastIndex=0;var O=w.test(p);if(x||O)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var S=c[u.column-2];if(p==a&&(S==a||w.test(S)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.$mode.$quotes||f,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)){d(n);var s=r.doc.getLine(i.start.row),l=s.substring(i.start.column+1,i.start.column+2);if(l==a)return i.end.column++,i}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",u)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],a=0;a<r.length;a+=2)o.push(i+=r[a]),r[a+1]&&o.push(45,i+=r[a+1]);t.wordChars=String.fromCharCode.apply(null,o)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../config"),i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),l=e("../lib/lang"),u=e("../token_iterator").TokenIterator,c=e("../range").Range,f=function(){this.HighlightRules=o};(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+s.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,a=!0,s=1/0,u=t.getTabSize(),c=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(g=this.lineCommentStart.map(l.escapeRegExp).join("|"),h=this.lineCommentStart[0]):(g=l.escapeRegExp(this.lineCommentStart),h=this.lineCommentStart),g=new RegExp("^(\\s*)(?:"+g+") ?"),c=t.getUseSoftTabs(),y=function(e,t){var n=e.match(g);if(n){var r=n[1].length,o=n[0].length;d(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var f=h+" ",d=(v=function(e,t){o&&!/\S/.test(e)||(d(e,s,s)?i.insertInLine({row:t,column:s},f):i.insertInLine({row:t,column:s},h))},b=function(e,t){return g.test(e)},function(e,t,n){var r=0;while(t--&&" "==e.charAt(t))r++;if(r%u!=0)return!1;r=0;while(" "==e.charAt(n++))r++;return u>2?r%u!=u-1:r%u==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(h)+")"),m=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},p),i.insertInLine({row:t,column:s},h))},y=function(e,t){var n;(n=e.match(m))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&i.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function _(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var w=1/0;_((function(e,t){var n=e.search(/\S/);-1!==n?(n<s&&(s=n),a&&!b(e,t)&&(a=!1)):w>e.length&&(w=e.length)})),s==1/0&&(s=w,o=!1,a=!1),c&&s%u!=0&&(s=Math.floor(s/u)*u),_(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=new u(t,r.row,r.column),l=s.getCurrentToken(),f=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var d,h;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(i.start);if(-1!=p){var g=s.getCurrentTokenRow(),m=s.getCurrentTokenColumn()+p;d=new c(g,m,g,m+i.start.length);break}l=s.stepBackward()}s=new u(t,r.row,r.column),l=s.getCurrentToken();while(l&&/comment/.test(l.type)){if(p=l.value.indexOf(i.end),-1!=p){g=s.getCurrentTokenRow(),m=s.getCurrentTokenColumn()+p,h=new c(g,m,g,m+i.end.length);break}l=s.stepForward()}h&&t.remove(h),d&&(t.remove(d),o=d.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);f.start.row==o&&(f.start.column+=a),f.end.row==o&&(f.end.column+=a),t.selection.fromOrientedRange(f)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[t]||(r.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<a.length;t++)(function(e){var n=a[t],r=e[n];e[a[t]]=function(){return this.$delegator(n,arguments,r)}})(this)},this.$delegator=function(e,t,n){var r=t[0]||"start";if("string"!=typeof r){if(Array.isArray(r[2])){var i=r[2][r[2].length-1],o=this.$modes[i];if(o)return o[e].apply(o,[r[1]].concat([].slice.call(t,1)))}r=r[0]||"start"}for(var a=0;a<this.$embeds.length;a++)if(this.$modes[this.$embeds[a]]){var s=r.split(this.$embeds[a]);if(!s[0]&&s[1])return t[0]=s[1],o=this.$modes[this.$embeds[a]],o[e].apply(o,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][t]){var s=o[a][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t)for(var i=t[r],o=0,a=i.length;o<a;o++)if("string"===typeof i[o].token)/keyword|support|storage/.test(i[o].token)&&n.push(i[o].regex);else if("object"===typeof i[o].token)for(var s=0,l=i[o].token.length;s<l;s++)/keyword|support|storage/.test(i[o].token[s])&&(r=i[o].regex.match(/\(.+?\)/g)[s],n.push(r.substr(1,r.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){var i=this.$keywordList||this.$createKeywordList();return i.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(f.prototype),t.Mode=f})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":var a=t.lines;if(1===a.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var l=t.end.column,u=t.end.row;r===u?e[r]=o.substring(0,i)+o.substring(l):e.splice(r,u-r+1,o.substring(0,i)+e[u].substring(l));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),a=(i?1:-1)*(t.end.column-t.start.column),s=t.start,l=i?s:t.end;return e(n,s,r)?{row:n.row,column:n.column}:e(l,n,!r)?{row:n.row+o,column:n.column+(n.row==l.row?a:0)}:{row:s.row,column:s.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return void 0==t&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,s=r?t+1:t,l=r?0:this.getLine(s).length,u=new a(i,o,s,l),c=this.$lines.slice(e,t+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,i=e.start.row,o=e.start.column,a=0,s=0;a<r;a=s){s+=t-1;var l=n.slice(a,s);l.push(""),this.applyDelta({start:this.pos(i+a,o),end:this.pos(i+s,o=0),action:e.action,lines:l},!0)}e.lines=n.slice(a),e.start.row=i+a,e.start.column=o,this.applyDelta(e,!0)},this.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if(e-=n[i].length+r,e<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:e+n[o-1].length+r}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),a=t||0;a<o;++a)i+=n[a].length+r;return i+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;while(n.lines[t])t++;var a=i.getLength(),s=0;n.running=!1;while(t<a){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(s++,s%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var u=this.cache[l];null==u&&(u=r.getMatchOffsets(n.getLine(l),this.regExp),u.length>this.MAX_RANGES&&(u=u.slice(0,this.MAX_RANGES)),u=u.map((function(e){return new i(l,e.offset,l,e.offset+e.length)})),this.cache[l]=u.length?u:"");for(var c=u.length;c--;)t.drawSingleLineMarker(e,u[c].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o,a=0,s=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var u=0;u<s.length;u++){if(r=s[u],i=r.range.compareStart(t,n),-1==i)return void e(null,t,n,a,l);if(o=e(null,r.start.row,r.start.column,a,l),o=!o&&e(r.placeholder,r.start.row,r.start.column,a),o||0===i)return;l=!r.sameRow,a=r.end.column}e(null,t,n,a,l)},this.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(n=this.folds[i],r=n.range.compareEnd(e,t),-1==r)return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){i=this.folds;var a=i.indexOf(r);for(0===a&&(this.start.column+=n),a;a<i.length;a++){if(r=i[a],r.start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),l=o[s-1];this.end.row=l.end.row,this.end.column=l.end.column,o=o.splice(s,o.length-s);var u=new i(a,o);return a.splice(a.indexOf(this)+1,0,u),u},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push("  "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if(e-=r.start.column-t,e<0)return{row:r.start.row,column:r.start.column+e};if(e-=r.placeholder.length,e<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=r.comparePoints,o=function(){this.ranges=[],this.$bias=1};(function(){this.comparePoints=i,this.pointIndex=function(e,t,n){for(var r=this.ranges,o=n||0;o<r.length;o++){var a=r[o],s=i(e,a.end);if(!(s>0)){var l=i(e,a.start);return 0===s?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return i(e.start,t.start)}));for(var n,r=t[0],o=1;o<t.length;o++){n=r,r=t[o];var a=i(n.end,r.start);a<0||(0!=a||n.isEmpty()||r.isEmpty())&&(i(n.end,r.end)<0&&(n.end.row=r.end.row,n.end.column=r.end.column),t.splice(o,1),e.push(r),r=n,o--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],a=r;a<i;a++)o.push(n[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){for(var t=e.start,n=e.end,r=t.row,i=n.row,o=this.ranges,a=0,s=o.length;a<s;a++){var l=o[a];if(l.end.row>=r)break}if("insert"==e.action)for(var u=i-r,c=-t.column+n.column;a<s;a++){if(l=o[a],l.start.row>r)break;if(l.start.row==r&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=c,l.start.row+=u)),l.end.row==r&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&c>0&&a<s-1&&l.end.column>l.start.column&&l.end.column==o[a+1].start.column&&(l.end.column-=c),l.end.column+=c,l.end.row+=u}}else for(u=r-i,c=t.column-n.column;a<s;a++){if(l=o[a],l.start.row>i)break;l.end.row<i&&(r<l.end.row||r==l.end.row&&t.column<l.end.column)?(l.end.row=r,l.end.column=t.column):l.end.row==i?l.end.column<=n.column?(u||l.end.column>t.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=c,l.end.row+=u):l.end.row>i&&(l.end.row+=u),l.start.row<i&&(r<l.start.row||r==l.start.row&&t.column<l.start.column)?(l.start.row=r,l.start.column=t.column):l.start.row==i?l.start.column<=n.column?(u||l.start.column>t.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=c,l.start.row+=u):l.start.row>i&&(l.start.row+=u)}if(0!=u&&a<s)for(;a<s;a++)l=o[a],l.start.row+=u,l.end.row+=u}}).call(o.prototype),t.RangeList=o})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("../range_list").RangeList,i=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){a(e.start,t),a(e.end,t)}function l(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function u(e,t){l(e.start,t),l(e.end,t)}i.inherits(o,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){s(e,this.start);for(var t=e.start.row,n=e.start.column,r=0,i=-1;r<this.subFolds.length;r++)if(i=this.subFolds[r].range.compare(t,n),1!=i)break;var o=this.subFolds[r],a=0;if(0==i){if(o.range.containsRange(e))return o.addSubFold(e);a=1}t=e.range.end.row,n=e.range.end.column;var l=r;for(i=-1;l<this.subFolds.length;l++)if(i=this.subFolds[l].range.compare(t,n),1!=i)break;0==i&&l++;for(var u=this.subFolds.splice(r,l-r,e),c=0==i?u.length-1:u.length,f=a;f<c;f++)e.addSubFold(u[f]);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return u(e,this.start)}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,a=e("../token_iterator").TokenIterator;function s(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var a=i[o].range;if(a.contains(e,t)){if(1==n&&a.isEnd(e,t)&&!a.isEmpty())continue;if(-1==n&&a.isStart(e,t)&&!a.isEmpty())continue;return i[o]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var a=r[o].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=r[o].folds,l=0;l<s.length;l++){var u=s[l];if(a=u.range.compareRange(e),-2==a)break;if(2!=a){if(42==a)break;i.push(u)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(r=r||this.getFoldLine(e),!r)return null;for(var i,o,a={end:{column:0}},s=0;s<r.folds.length;s++){o=r.folds[s];var l=o.range.compareEnd(e,t);if(-1==l){i=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===l)return null;a=o}return i||(i=this.getLine(o.start.row).substring(a.end.column)),-1==n?i.substring(0,t-a.end.column):1==n?i.substring(t-a.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],a=o.end.row,s=o.start.row;if(a>=t){s<t&&(s>=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,u=n.end.row,c=n.end.column,f=this.getFoldAt(s,l,1),d=this.getFoldAt(u,c,-1);if(f&&d==f)return f.addSubFold(n);f&&!f.range.isStart(s,l)&&this.removeFold(f),d&&!d.range.isEnd(u,c)&&this.removeFold(d);var h=this.getFoldsInRange(n.range);h.length>0&&(this.removeFolds(h),n.collapseChildren||h.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<r.length;p++){var g=r[p];if(u==g.start.row){g.addFold(n),a=!0;break}if(s==g.end.row){if(g.addFold(n),a=!0,!n.sameRow){var m=r[p+1];if(m&&m.start.row==u){g.merge(m);break}}break}if(u<=g.start.row)break}return a||(g=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);o=a.folds,o.shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new r(0,0,this.getLength(),0),null==t&&(t=!0)):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),0!=t?this.removeFolds(i):this.expandFolds(i),i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(t<r)){if(t==r){if(n<i)return;s=Math.max(i,s)}a+=null!=e?e:o.getLine(t).substring(s,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e),i.substring(r||0,t||i.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new i(e,n)})),e},this.toggleFold=function(e){var t,n,r=this.selection,i=r.getRange();if(i.isEmpty()){var o=i.start;if(t=this.getFoldAt(o.row,o.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(o.row,o.column)||i}else{var a=this.getFoldsInRange(i);if(e&&a.length)return void this.expandFolds(a);1==a.length&&(t=a[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if(s=this.getTextRange(i),s.length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var i=new a(this,e,t),o=i.getCurrentToken(),s=o&&o.type;if(o&&/^comment|string/.test(s)){s=s.match(/comment|string/)[0],"comment"==s&&(s+="|doc-start");var l=new RegExp(s),u=new r;if(1!=n){do{o=i.stepBackward()}while(o&&l.test(o.type));i.stepForward()}if(u.start.row=i.getCurrentTokenRow(),u.start.column=i.getCurrentTokenColumn()+2,i=new a(this,e,t),-1!=n){var c=-1;do{if(o=i.stepForward(),-1==c){var f=this.getState(i.$row);l.test(f)||(c=i.$row)}else if(i.$row>c)break}while(o&&l.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return u.end.row=i.getCurrentTokenRow(),u.end.column=i.getCurrentTokenColumn()+o.value.length-2,u}},this.foldAll=function(e,t,n,r){void 0==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength(),e=e||0;for(var o=e;o<t;o++)if(null==i[o]&&(i[o]=this.getFoldWidget(o)),"start"==i[o]&&(!r||r(o))){var a=this.getFoldWidgetRange(o);a&&a.isMultiLine()&&a.end.row<=t&&a.start.row>=e&&(o=a.end.row,a.collapseChildren=n,this.addFold("...",a))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),r=0;r<n.length;r++){var i=n[r];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var r,i=e-1;while(i>=0){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},r=this.$toggleFoldWidget(e,n);if(!r){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1),o&&a.isEqual(o.range)))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,u=s.range.end.row;this.foldAll(l,u,t.all?1e4:0)}else t.children?(u=a?a.end.row:this.getLength(),this.foldAll(e+1,u,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange,n){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=s})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;function o(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){var s=this.$findClosingBracket(a[1],e);if(!s)return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(s=this.$findOpeningBracket(a[2],e),!s)return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var o=new i(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);if(!a)return[o];var s=new i(a.row,a.column,a.row,a.column+1);return[o,s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn()-2,u=s.value;while(1){while(l>=0){var c=u.charAt(l);if(c==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else c==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;u=s.value,l=u.length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn();while(1){var u=s.value,c=u.length;while(l<c){var f=u.charAt(l);if(f==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else f==e&&(o+=1);l+=1}do{s=a.stepForward()}while(s&&!n.test(s.type));if(null==s)break;l=0}return null}}}t.BracketMatch=o})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,a=e("./config"),s=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,u=e("./mode/text").Mode,c=e("./range").Range,f=e("./document").Document,d=e("./background_tokenizer").BackgroundTokenizer,h=e("./search_highlight").SearchHighlight,p=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++p.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new f(e)),this.setDocument(e),this.selection=new l(this),this.$bidiHandler=new o(this),a.resetOptions(this),this.setMode(t),a._signal("session",this)};p.$uid=0,function(){r.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t){var o=r.length-1;i=this.getLine(e).length}else for(o=0;o<r.length;o++)if(i+=r[o].value.length,i>=t)break;return n=r[o],n?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker")}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new h(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new c(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else i=/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}var a=t;while(a<n.length&&n.charAt(a).match(i))a++;return new c(e,o,e,a)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),r=this.getLine(n.end.row);while(r.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes=a.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[r]&&!n)return this.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,a.loadModule(["mode",r],function(e){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var r=e.getTokenizer();if(void 0!==r.on){var i=this.onReloadTokenizer.bind(this);r.on("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(r);else{this.bgTokenizer=new d(r);var o=this;this.bgTokenizer.on("update",(function(e){o._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;l<s;l++){if(l>a){if(l=o.end.row+1,l>=s)break;o=this.$foldData[i++],a=o?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var r=e[n];"insert"!=r.action&&"remove"!=r.action||this.doc.$safeApplyDelta(r)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var r,i,o=0;o<e.length;o++){var a=e[o];a.start&&(r?n(a)?(i=a.start,-1==r.compare(i.row,i.column)&&r.setStart(i),i=a.end,1==r.compare(i.row,i.column)&&r.setEnd(i)):(i=a.start,-1==r.compare(i.row,i.column)&&(r=c.fromPoints(a.start,a.start))):r=n(a)?c.fromPoints(a.start,a.end):c.fromPoints(a.start,a.start))}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=c.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row,s=a?-e.end.column:e.start.column-e.end.column;s&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=s),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=s)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var l=e.start,u=o.start;a=u.row-l.row,s=u.column-l.column,this.addFolds(i.map((function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=s),e.end.row==l.row&&(e.end.column+=s),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new c(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a<r;++a)if(" "!=o.charAt(a))break;a<r&&"\t"==o.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var r=this.getRowFoldStart(e+n);if(r<0)return 0;var i=r-e}else if(n>0){if(r=this.getRowFoldEnd(t+n),r>this.doc.getLength()-1)return 0;i=r-t}else e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t),i=t-e+1;var o=new c(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return e=e.clone(),e.start.row+=i,e.end.row+=i,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var u=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=this.getFoldLine(i.row),f=0;if(c){c.addRemoveChars(i.row,i.column,r.column-i.column),c.shiftRow(-s);var d=this.getFoldLine(o);d&&d!==c&&(d.merge(c),c=d),f=u.indexOf(c)+1}for(f;f<u.length;f++)c=u[f],c.start.row>=i.row&&c.shiftRow(-s);a=o}else{var h=Array(s);h.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;if(p.splice.apply(p,h),u=this.$foldData,c=this.getFoldLine(o),f=0,c){var g=c.range.compareInside(r.row,r.column);0==g?(c=c.split(r.row,r.column),c&&(c.shiftRow(s),c.addRemoveChars(a,0,i.column-r.column))):-1==g&&(c.addRemoveChars(o,0,i.column-r.column),c.shiftRow(s)),f=u.indexOf(c)+1}for(f;f<u.length;f++)c=u[f],c.start.row>=o&&c.shiftRow(s)}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),c=this.getFoldLine(o),c&&c.addRemoveChars(o,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,u=this.$wrapLimit,c=e;t=Math.min(t,a.length-1);while(c<=t)i=this.getFoldLine(c,i),i?(r=[],i.walk(function(e,t,i,s){var l;if(null!=e){l=this.$getDisplayTokens(e,r.length),l[0]=n;for(var u=1;u<l.length;u++)l[u]=o}else l=this.$getDisplayTokens(a[t].substring(s,i),r.length);r=r.concat(l)}.bind(this),i.end.row,a[i.end.row].length+1),l[i.start.row]=this.$computeWrapSplits(r,u,s),c=i.end.row+1):(r=this.$getDisplayTokens(a[c]),l[c]=this.$computeWrapSplits(r,u,s),c++)};var e=1,t=2,n=3,o=4,l=9,f=10,p=11,g=12;function m(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,r,i){if(0==e.length)return[];var a=[],s=e.length,u=0,c=0,d=this.$wrapAsCode,h=this.$indentedSoftWrap,m=r<=Math.max(2*i,8)||!1===h?0:Math.floor(r/2);function v(){var t=0;if(0===m)return t;if(h)for(var n=0;n<e.length;n++){var r=e[n];if(r==f)t+=1;else{if(r!=p){if(r==g)continue;break}t+=i}}return d&&!1!==h&&(t+=i),Math.min(t,m)}function y(t){for(var n=t-u,r=u;r<t;r++){var i=e[r];12!==i&&2!==i||(n-=1)}a.length||(b=v(),a.indent=b),c+=n,a.push(c),u=t}var b=0;while(s-u>r-b){var _=u+r-b;if(e[_-1]>=f&&e[_]>=f)y(_);else if(e[_]!=n&&e[_]!=o){var w=Math.max(_-(r-(r>>2)),u-1);while(_>w&&e[_]<n)_--;if(d){while(_>w&&e[_]<n)_--;while(_>w&&e[_]==l)_--}else while(_>w&&e[_]<f)_--;_>w?y(++_):(_=u+r,e[_]==t&&_--,y(_-b))}else{for(_;_!=u-1;_--)if(e[_]==n)break;if(_>u){y(_);continue}for(_=u+r,_;_<e.length;_++)if(e[_]!=o)break;if(_==e.length)break;y(_)}}return a},this.$getDisplayTokens=function(n,r){var i,o=[];r=r||0;for(var a=0;a<n.length;a++){var s=n.charCodeAt(a);if(9==s){i=this.getScreenTabSize(o.length+r),o.push(p);for(var u=1;u<i;u++)o.push(g)}else 32==s?o.push(f):s>39&&s<48||s>57&&s<64?o.push(l):s>=4352&&m(s)?o.push(e,t):o.push(e)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i<e.length;i++)if(r=e.charCodeAt(i),9==r?n+=this.getScreenTabSize(n):r>=4352&&m(r)?n+=2:n+=1,n>t)break;return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,i,o=0,a=0,s=0,l=0,u=this.$screenRowCache,c=this.$getRowCacheIndex(u,e),f=u.length;if(f&&c>=0){s=u[c],o=this.$docRowCache[c];var d=e>u[f-1]}else d=!f;var h=this.getLength()-1,p=this.getNextFoldLine(o),g=p?p.start.row:1/0;while(s<=e){if(l=this.getRowLength(o),s+l>e||o>=h)break;s+=l,o++,o>g&&(o=p.end.row+1,p=this.getNextFoldLine(o,p),g=p?p.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(s))}if(p&&p.start.row<=o)r=this.getFoldDisplayLine(p),o=p.start.row;else{if(s+l<=e||o>h)return{row:h,column:this.getLine(h).length};r=this.getLine(o),p=null}var m=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(i=y[v],v>0&&y.length&&(m=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-m)[1],this.$useWrapMode&&a>=i&&(a=i-1),p?p.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r=0,i=null,o=null;o=this.getFoldAt(e,t,1),o&&(e=o.start.row,t=o.start.column);var a,s=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,e),c=l.length;if(c&&u>=0){s=l[u],r=this.$screenRowCache[u];var f=e>l[c-1]}else f=!c;var d=this.getNextFoldLine(s),h=d?d.start.row:1/0;while(s<e){if(s>=h){if(a=d.end.row+1,a>e)break;d=this.getNextFoldLine(a,d),h=d?d.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,f&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var p="";d&&s>=h?(p=this.getFoldDisplayLine(d,e,t),i=d.start.row):(p=this.getLine(e).substring(0,t),i=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){var v=0;while(p.length>=m[v])r++,v++;p=p.substring(m[v-1]||0,p.length),g=v>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(r+=this.lineWidgets[s].rowsAbove),{row:r,column:g+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,r=0,i=(s=0,t=this.$foldData[s++],t?t.start.row:1/0);while(r<n){var o=this.$wrapData[r];e+=o?o.length+1:1,r++,r>i&&(r=t.end.row+1,t=this.$foldData[s++],i=t?t.start.row:1/0)}}else{e=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)t=a[s],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length;o++)if(i=t.charAt(o),r+="\t"===i?this.getScreenTabSize(r):e.getCharacterWidth(i),r>n)break;return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.selection.detach()},this.isFullWidth=m}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};function s(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,u=s.length,c=i.length-u;e:for(var f=s.offset||0;f<=c;f++){for(var d=0;d<u;d++)if(-1==i[f+d].search(s[d]))continue e;var h=i[f],p=i[f+u-1],g=h.length-h.match(s[0])[0].length,m=p.match(s[u-1])[0].length;l&&l.end.row===f&&l.end.column>g||(a.push(l=new o(f,g,f+u-1,m)),u>2&&(f=f+u-2))}}else for(var v=0;v<i.length;v++){var y=r.getMatchOffsets(i[v],s);for(d=0;d<y.length;d++){var b=y[d];a.push(new o(v,b.offset,v,b.offset+b.length))}}if(n){var _=n.start.column,w=n.start.column;v=0,d=a.length-1;while(v<d&&a[v].start.column<_&&a[v].start.row==n.start.row)v++;while(v<d&&a[d].end.column>w&&a[d].end.row==n.end.row)d--;for(a=a.slice(v,d+1),v=0,d=a.length;v<d;v++)a[v].start.row+=n.start.row,a[v].end.row+=n.start.row}return a},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=r.exec(e);if(!i||i[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var a=e[o];a&&a.toLowerCase()!=a?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n=s(n,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(a){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(o){return!1}return r},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var r=1==t.backwards,i=0!=t.skipCurrent,o=t.range,a=t.start;a||(a=o?o[r?"end":"start"]:e.selection.getRange()),a.start&&(a=a[i!=r?"end":"start"]);var s=o?o.start.row:0,l=o?o.end.row:e.getLength()-1;if(r)var u=function(e){var n=a.row;if(!f(n,a.column,e)){for(n--;n>=s;n--)if(f(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(f(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=a.row;if(!f(n,a.column,e)){for(n+=1;n<=l;n++)if(f(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(f(n,0,e))return}};if(t.$isMultiLine)var c=n.length,f=function(t,i,o){var a=r?t-c+1:t;if(!(a<0)){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&l<i||-1===l)){for(var u=1;u<c;u++)if(s=e.getLine(a+u),-1==s.search(n[u]))return;var f=s.match(n[c-1])[0].length;if(!(r&&f>i))return!!o(a,l,a+c-1,f)||void 0}}};else f=r?function(t,r,i){var o,a=e.getLine(t),s=[],l=0;n.lastIndex=0;while(o=n.exec(a)){var u=o[0].length;if(l=o.index,!u){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+u>r)break;s.push(o.index,u)}for(var c=s.length-1;c>=0;c-=2){var f=s[c-1];if(u=s[c],i(t,f,t,f+u))return!0}}:function(t,r,i){var o,a,s=e.getLine(t);n.lastIndex=r;while(a=n.exec(s)){var l=a[0].length;if(o=a.index,i(t,o,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:u}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/useragent"),o=r.KEY_MODS;function a(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;i<a.length;i++){var s=a[i],l=e(s);if(l>r)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=o[t]+n,a=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:a}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){i.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("./ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()),l=s.replace(/\n\s*/," ").length,u=e.session.doc.getLine(n.row),c=n.row+1;c<=i.row+1;c++){var f=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(c)));0!==f.length&&(f=" "+f),u+=f}i.row+1<e.session.doc.getLength()-1&&(u+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),u),l>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===t&&r[a].end.column===n||i.push(new o(r[a].end.row,r[a].end.column,t,n))),0===a?0===r[a].start.row&&0===r[a].start.column||i.push(new o(0,0,r[a].start.row,r[a].start.column)):i.push(new o(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),a=0;a<i.length;a++)e.selection.addRange(i[a],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:a("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var s=1;s<9;s++)t.commands.push({name:"foldToLevel"+s,description:"Fold To Level "+s,level:s,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/lang"),a=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,f=e("./edit_session").EditSession,d=e("./search").Search,h=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),y=e("./token_iterator").TokenIterator,b=e("./clipboard"),_=function(e,t,n){this.$toDestroy=[];var r=e.getContainerElement();this.container=r,this.renderer=e,this.id="editor"+ ++_.$uid,this.commands=new g(a.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new u(this)),this.keyBinding=new c(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||n&&n.session||new f("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)};_.$uid=0,function(){r.implement(this,p),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var r="ace_bracket";Array.isArray(n)?1==n.length&&(r="ace_error_bracket"):n=[n],2==n.length&&(0==h.comparePoints(n[0].end,n[1].start)?n=[h.fromPoints(n[0].start,n[1].end)]:0==h.comparePoints(n[0].start,n[1].end)&&(n=[h.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map((function(e){return t.addMarker(e,r,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===i.type.indexOf("tag-open")||(i=r.stepForward(),i)){var o=i.value,a=i.value,s=0,l=r.stepBackward();if("<"===l.value)do{l=i,i=r.stepForward(),i&&(-1!==i.type.indexOf("tag-name")?(a=i.value,o===a&&("<"===l.value?s++:"</"===l.value&&s--)):o===a&&"/>"===i.value&&s--)}while(i&&s>=0);else{do{if(i=l,l=r.stepBackward(),i)if(-1!==i.type.indexOf("tag-name"))o===i.value&&("<"===l.value?s++:"</"===l.value&&s--);else if("/>"===i.value){var u=0,c=l;while(c){if(-1!==c.type.indexOf("tag-name")&&c.value===o){s--;break}if("<"===c.value)break;c=r.stepBackward(),u++}for(var f=0;f<u;f++)r.stepForward()}}while(l&&s<=0);r.stepForward()}if(!i)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var d=r.getCurrentTokenRow(),p=r.getCurrentTokenColumn(),g=new h(d,p,d,p+i.value.length),m=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&void 0!=m&&0!==g.compareRange(m.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),t.$tagHighlight||(t.$tagHighlight=t.addMarker(g,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.isFocused()||e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new h(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;i<r.length;i++){var o=r[i];i&&r[i-1].start.row==o.start.row||(e+=this.session.getLine(o.start.row)+t)}}var a={text:e};return this._signal("copy",a),b.lineMode=n?a.text:"",a.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t==b.lineMode,r=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){r.insert({row:e.start.row,column:0},t)}));else{var i=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,a=2==i.length&&(!i[0]||!i[1]);if(i.length!=o.length||a)return this.commands.exec("insertstring",this,t);for(var s=o.length;s--;){var l=o[s];l.isEmpty()||r.remove(l),r.insert(l.start,i[s])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&-1==e.indexOf("\n")&&(a=new h.fromPoints(i,i),a.end.column+=e.length,this.session.remove(a));else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var u=i.column,c=n.getState(i.row),f=(s=n.getLine(i.row),r.checkOutdent(c,s,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new h(i.row,u+o.selection[0],i.row,u+o.selection[1])):this.selection.setSelectionRange(new h(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var d=r.getNextLineIndent(c,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},d)}f&&r.autoOutdent(c,n,i.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var i=this.getSelectionRange();e=i.start.row,t=i.end.row}for(var o,a,s,l="",u="",c="",f=n.getTabString(),d=e;d<=t;d++)d>0&&(l=n.getState(d-1),u=n.getLine(d-1),c=r.getNextLineIndent(l,u,f)),o=n.getLine(d),a=r.$getIndent(o),c!==a&&(a.length>0&&(s=new h(d,0,d,a.length),n.remove(s)),c.length>0&&n.insert({row:d,column:0},c)),r.autoOutdent(l,n,d)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&(n=this.selection.getRange(),n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new h(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new h(e.row,t-2,e.row,t)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n))return c=this.$getSelectedRows(),void e.indentRows(c.first,c.last,"\t")}var r=e.getLine(t.start.row),i=t.start,a=e.getTabSize(),s=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var l=a-s%a,u=o.stringRepeat(" ",l);else{l=s%a;while(" "==r[t.start.column-1]&&l)t.start.column--,l--;this.selection.setSelectionRange(t),u="\t"}return this.insert(u)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var i=new h(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex<t){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t){var o={value:i[0],start:i.index,end:i.index+i[0].length};return o}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new h(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n<a?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),l+=e,l/=Math.pow(10,s);var u=l.toFixed(s),c=new h(t,o.start,t,o.end);this.session.replace(c,u),this.moveCursorTo(t,Math.max(o.start+1,n+u.length-o.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),r=this.selection.getWordRange().start.column,i=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=t-r-1;a<0&&(a=0);var s=0,l=0,u=this;n.match(/[A-Za-z0-9_]+/)&&i.forEach((function(t,i){l=s+t.length,a>=s&&a<=l&&(n=t,u.selection.clearSelection(),u.moveCursorTo(e,s+r),u.selection.selectTo(e,l+r)),s=l}));for(var c,f=this.$toggleWordPairs,d=0;d<f.length;d++)for(var h=f[d],p=0;p<=1;p++){var g=+!p,m=n.match(new RegExp("^\\s?_?("+o.escapeRegExp(h[p])+")\\s?$","i"));if(m){var v=n.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(m[1])+")($|\\s)","g"));v&&(c=n.replace(new RegExp(o.escapeRegExp(h[p]),"i"),(function(e){var t=h[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+h[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(c),c="")}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,a=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=a,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var a=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,l=0,u=a.length,c=0;c<u;c++){var f=c;a[c].moveBy(s,0),n=this.$getSelectedRows(a[c]);var d=n.first,h=n.last;while(++c<u){l&&a[c].moveBy(l,0);var p=this.$getSelectedRows(a[c]);if(t&&p.first!=h)break;if(!t&&p.first>h+1)break;h=p.last}c--,s=this.session.$moveLines(d,h,t?0:e),t&&-1==e&&(f=c+1);while(f<=c)a[f].moveBy(s,0),f++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,l=!1,u={},c=n.column-o.start,f={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;c<o.value.length&&!l;c++)if(f[o.value[c]])switch(s=f[o.value[c]]+"."+o.type.replace("rparen","lparen"),isNaN(u[s])&&(u[s]=0),o.value[c]){case"(":case"[":case"{":u[s]++;break;case")":case"]":case"}":u[s]--,-1===u[s]&&(a="bracket",l=!0);break}}else-1!==o.type.indexOf("tag-name")&&(isNaN(u[o.value])&&(u[o.value]=0),"<"===i.value?u[o.value]++:"</"===i.value&&u[o.value]--,-1===u[o.value]&&(a="tag",l=!0));l||(i=o,o=r.stepForward(),c=0)}while(o&&!l);if(a){var d,p;if("bracket"===a)d=this.session.getBracketRange(n),d||(d=new h(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+c-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+c-1),p=d.start,(t||p.row===n.row&&Math.abs(p.column-n.column)<2)&&(d=this.session.getBracketRange(p)));else if("tag"===a){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(d=new h(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2),0===d.compare(n.row,n.column)){l=!1;do{o=i,i=r.stepBackward(),i&&(-1!==i.type.indexOf("tag-close")&&d.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===i.value?u[g]++:"</"===i.value&&u[g]--,0===u[g]&&(l=!0)))}while(i&&!l)}o&&o.type.indexOf("tag-name")&&(p=d.start,p.row==n.row&&Math.abs(p.column-n.column)<2&&(p=d.end))}p=d&&d.cursor||p,p&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;r=o.top>=0&&s+t.top<0||!(o.top<a.height&&o.top+t.top+a.lineHeight>window.innerHeight)&&null,null!=r&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",(function(i){i.prompt(r,e,t,n)}))}}.call(_.prototype),v.defineOptions(_.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?w.attach(this):w.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?w.attach(this):w.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder");var t=i.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var w={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=_})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};function i(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){while(n<t-1){var i=d(e[n],e[n+1]);e[n]=i[0],e[n+1]=i[1],n++}return!0}}}(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var i=n[r][0];if(i.id<=e)break;i.id<t&&(i.ignore=!0)}this.lastDeltas=null},this.getSelection=function(e,t){for(var n=this.selections,r=n.length;r--;){var i=n[r];if(i.rev<e)return t&&(i=n[r+1]),i}},this.getRevision=function(){return this.$rev},this.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=null,i=0,o=n.length;o--;){var a=n[o][0];if(a.id<t&&!r&&(r=o+1),a.id<=e){i=o+1;break}}return n.slice(i,r)},this.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},this.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},this.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(i(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var r=n.pop(),o=null;return r&&(o=e.undoChanges(r,t),this.$redoStack.push(r),this.$syncRev()),this.$fromUndo=!1,o}},this.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);y(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var r=this.$redoStack.pop(),i=null;return r&&(i=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,i},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?u(e):u(this.$undoStack)+"\n---\n"+u(this.$redoStack)}}).call(r.prototype);var o=e("./range").Range,a=o.comparePoints;function s(e){return{row:e.row,column:e.column}}function l(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}function u(e){if(e=e||this,Array.isArray(e))return e.map(u).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(c).join("\n"):c(e.value)),e.start&&(t+=c(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function c(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function f(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function d(e,t){for(var n=e.length;n--;)for(var r=0;r<t.length;r++)if(!f(e[n],t[r])){while(n<e.length){while(r--)f(t[r],e[n]);r=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function h(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)a(e.start,t.start)<0?p(t,e,1):p(e,t,1);else if(n&&!r)a(e.start,t.end)>=0?p(e,t,-1):(a(e.start,t.start)<=0||p(e,o.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&r)a(t.start,e.end)>=0?p(t,e,-1):(a(t.start,e.start)<=0||p(t,o.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{var i,s;if(!(a(t.end,e.start)<=0))return a(e.start,t.start)<0&&(i=e,e=m(e,t.start)),a(e.end,t.end)>0&&(s=m(e,t.end)),g(t.end,e.start,e.end,-1),s&&!i&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,i,s].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){g(e.start,t.start,t.end,n),g(e.end,t.start,t.end,n)}function g(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function m(e,t){var n=e.lines,r=e.end;e.end=s(t);var i=e.end.row-e.start.row,o=n.splice(i,n.length),a=i?t.column:t.column-e.start.column;n.push(o[0].substring(0,a)),o[0]=o[0].substr(a);var l={start:s(t),end:r,lines:o,action:e.action};return l}function v(e,t){t=l(t);for(var n=e.length;n--;){for(var r=e[n],i=0;i<r.length;i++){var o=r[i],a=h(o,t);t=a[0],2!=a.length&&(a[2]?(r.splice(i+1,1,a[1],a[2]),i++):a[1]||(r.splice(i,1),i--))}r.length||e.splice(n,1)}return e}function y(e,t){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;i++)v(e,r[i])}o.comparePoints,t.UndoManager=r})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){r.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,i=Math.floor(r/this.canvasHeight),o=n.documentToScreenRow(e,0)*t.lineHeight;return o-i*this.canvasHeight},this.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},this.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},this.createCell=function(e,t,n,i){var o=this.cellCache.pop();if(!o){var a=r.createElement("div");i&&i(a),this.element.appendChild(a),o={element:a,text:"",row:e}}return o.row=e,o}}).call(i.prototype),t.Lines=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=e("./lines").Lines,l=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new s(this.element),this.$lines.$offsetCoefficient=1};function u(e){var t=document.createTextNode("");e.appendChild(t);var n=r.createElement("span");return e.appendChild(n),e}(function(){i.implement(this,a),this.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var a=n.text;a=a?o.escapeHTML(a):n.html||"",-1===i.text.indexOf(a)&&i.text.push(a);var s=n.type;"error"==s?i.className=" ace_error":"warning"==s&&" ace_error"!=i.className?i.className=" ace_warning":"info"!=s||i.className||(i.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},this.update=function(e){this.config=e;var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=r,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();var i=t.getNextFoldLine(n),o=i?i.start.row:1/0,a=null,s=-1,l=n;while(1){if(l>o&&(l=i.end.row+1,i=t.getNextFoldLine(l,i),o=i?i.start.row:1/0),l>r){while(this.$lines.getLength()>s+1)this.$lines.pop();break}a=this.$lines.get(++s),a?a.row=l:(a=this.$lines.createCell(l,e,this.session,u),this.$lines.push(a)),this.$renderCell(a,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();o+=a.left+a.right,o===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var r=t[n];if(r.row>=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>r&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var r=[],i=t,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;while(1){if(i>a&&(i=o.end.row+1,o=this.session.getNextFoldLine(i,o),a=o?o.start.row:1/0),i>n)break;var s=this.$lines.createCell(i,e,this.session,u);this.$renderCell(s,e,o,i),r.push(s),i++}return r},this.$renderCell=function(e,t,n,i){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],u=a.$firstLineNumber,c=a.$breakpoints,f=a.$decorations,d=a.gutterRenderer||this.$renderer,h=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,g="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&i>=p&&this.$cursorRow<=n.end.row)&&(g+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[i]&&(g+=c[i]),f[i]&&(g+=f[i]),this.$annotations[i]&&(g+=this.$annotations[i].className),o.className!=g&&(o.className=g),h){var m=h[i];null==m&&(m=h[i]=a.getFoldWidget(i))}if(m){g="ace_fold-widget ace_"+m,"start"==m&&i==p&&i<n.end.row?g+=" ace_closed":g+=" ace_open",l.className!=g&&(l.className=g);var v=t.lineHeight+"px";r.setStyle(l.style,"height",v),r.setStyle(l.style,"display","inline-block")}else l&&r.setStyle(l.style,"display","none");var y=(d?d.getText(a,i):i+u).toString();return y!==s.data&&(s.data=y),r.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,a)+"px"),r.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,a)+"px"),e.text=y,e},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)while(this.i<this.element.childElementCount)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,i,o,a){for(var s=this.session,l=n.start.row,u=n.end.row,c=l,f=0,d=0,h=s.getScreenLastRowColumn(c),p=new r(c,n.start.column,c,d);c<=u;c++)p.start.row=p.end.row=c,p.start.column=c==l?n.start.column:s.getRowWrapIndent(c),p.end.column=h,f=d,d=h,h=c+1<u?s.getScreenLastRowColumn(c+1):c==u?0:n.end.column,this.drawSingleLineMarker(t,p,i+(c==l?" ace_start":"")+" ace_br"+e(c==l||c==l+1&&n.start.column,f<d,d>h,c==u),o,c==u?0:1,a)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var u=t.clone();u.end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(e,u,n+" ace_br1 ace_start",r,null,i)}else this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row))u=t.clone(),u.start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(e,u,n+" ace_br12",r,null,i);else{s=this.$getTop(t.end.row,r);var c=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(a=(t.end.row-t.start.row-1)*r.lineHeight,!(a<=0)){s=this.$getTop(t.start.row+1,r);var f=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(f?" ace_br"+f:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),u=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+u+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding,u=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);u.forEach((function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)if(this.showTabs){var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_tab",r.textContent=o.stringRepeat(this.TAB_CHAR,n),t.push(r)}else t.push(this.dom.createTextNode(o.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i="ace_indent-guide",a=this.showSpaces?" ace_invisible ace_invisible_space":"",s=this.showSpaces?o.stringRepeat(this.SPACE_CHAR,this.tabSize):o.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",u=this.showTabs?o.stringRepeat(this.TAB_CHAR,this.tabSize):s;r=this.dom.createElement("span"),r.className=i+a,r.textContent=s,this.$tabStrings[" "]=r,r=this.dom.createElement("span"),r.className=i+l,r.textContent=u,this.$tabStrings["\t"]=r}},this.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,a=0,s=e.firstRow;s<r;s++){var l=this.session.getFoldLine(s);if(l){if(l.containsRow(r)){r=l.start.row;break}s=l.end.row}a++}var u=!1,c=(s=r,l=this.session.getNextFoldLine(s),l?l.start.row:1/0);while(1){if(s>c&&(s=l.end.row+1,l=this.session.getNextFoldLine(s,l),c=l?l.start.row:1/0),s>i)break;var f=o[a++];if(f){this.dom.removeChildren(f),this.$renderLine(f,s,s==c&&l),u&&(f.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var d=e.lineHeight*this.session.getRowLength(s)+"px";f.style.height!=d&&(u=!0,f.style.height=d)}s++}if(u)while(a<this.$lines.cells.length){var h=this.$lines.cells[a++];h.element.style.top=this.$lines.computeLineTop(h.row,e,this.session)+"px"}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=t?t.lastRow:-1;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var i=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);i>0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){var r=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;while(1){if(o>s&&(o=a.end.row+1,a=this.session.getNextFoldLine(o,a),s=a?a.start.row:1/0),o>n)break;var l=this.$lines.createCell(o,e,this.session),u=l.element;this.dom.removeChildren(u),i.setStyle(u.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(u.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(u,o,o==s&&a),this.$useLineGroups()?u.className="ace_line_group":u.className="ace_line",r.push(l),o++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,r=this.$lines;while(r.getLength())r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),u=0;while(i=s.exec(r)){var c=i[1],f=i[2],d=i[3],h=i[4],p=i[5];if(a.showSpaces||!f){var g=u!=i.index?r.slice(u,i.index):"";if(u=i.index+i[0].length,g&&l.appendChild(this.dom.createTextNode(g,this.element)),c){var m=a.session.getScreenTabSize(t+i.index);l.appendChild(a.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(f)if(a.showSpaces){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_space",v.textContent=o.stringRepeat(a.SPACE_CHAR,f.length),l.appendChild(v)}else l.appendChild(this.com.createTextNode(f,this.element));else d?(v=this.dom.createElement("span"),v.className="ace_invisible ace_invisible_space ace_invalid",v.textContent=o.stringRepeat(a.SPACE_CHAR,d.length),l.appendChild(v)):h?(t+=1,v=this.dom.createElement("span"),v.style.width=2*a.config.characterWidth+"px",v.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=a.showSpaces?a.SPACE_CHAR:h,l.appendChild(v)):p&&(t+=1,v=this.dom.createElement("span"),v.style.width=2*a.config.characterWidth+"px",v.className="ace_cjk",v.textContent=p,l.appendChild(v))}}if(l.appendChild(this.dom.createTextNode(u?r.slice(u):r,this.element)),this.$textToken[n.type])e.appendChild(l);else{var y="ace_"+n.type.replace(/\./g," ace_");v=this.dom.createElement("span"),"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=y,v.appendChild(l),e.appendChild(v)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){r-=r%this.tabSize;for(var i=r/this.tabSize,o=0;o<i;o++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return t.substr(r)}if("\t"==t[0]){for(o=0;o<r;o++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return t.substr(r)}return t},this.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},this.$renderWrappedLine=function(e,t,n){var r=0,i=0,a=n[0],s=0,l=this.$createLineElement();e.appendChild(l);for(var u=0;u<t.length;u++){var c=t[u],f=c.value;if(0==u&&this.displayIndentGuides){if(r=f.length,f=this.renderIndentGuide(l,f,a),!f)continue;r-=f.length}if(r+f.length<a)s=this.$renderToken(l,s,c,f),r+=f.length;else{while(r+f.length>=a)s=this.$renderToken(l,s,c,f.substring(0,a-r)),f=f.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat(" ",n.indent),this.element)),i++,s=0,a=n[i]||Number.MAX_VALUE;0!=f.length&&(r+=f.length,s=this.$renderToken(l,s,c,f))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;o<t.length;o++){if(r=t[o],i=r.value,n+i.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"<hide>":"<click to see more...>",e.appendChild(o)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);o&&o.length?(this.$renderWrappedLine(e,r,o),i=e.lastChild):(i=e,this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r))}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];function i(e,t,n){var i=0,o=0;while(o+e[i].value.length<t)if(o+=e[i].value.length,i++,i==e.length)return;if(o!=t){var a=e[i].value.substring(t-o);a.length>n-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1}while(o<n&&i<e.length)a=e[i].value,a.length+o>n?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}var o=n.getTokens(e);return t.walk((function(e,t,a,s,l){null!=e?r.push({type:"fold",value:e}):(l&&(o=n.getTokens(t)),o.length&&i(o,s,a))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),i=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:i}},this.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,i=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]),n=0;for(var o=t.length;n<o;n++){var a=this.getPixelPosition(t[n].cursor,!0);if(!((a.top>e.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}while(this.cursors.length>i)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,l=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var u=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(u,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(u.prototype);var c=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(c,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=u,t.ScrollBarV=u,t.ScrollBarH=c,t.VScrollBar=u,t.HScrollBar=c})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,u=256,c="function"==typeof ResizeObserver,f=200,d=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",u),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/u};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.textContent=o.stringRepeat(e,u);var t=this.$main.getBoundingClientRect();return t.width/u},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(f,0),e(0,f),e(f,f)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=a(1/n,e)}function r(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function a(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=s(this.els[0]),u=s(this.els[1]),c=s(this.els[2]),d=s(this.els[3]),h=r(i(d,u),i(d,c),i(o(u,c),o(d,l))),p=a(1+h[0],i(u,l)),g=a(1+h[1],i(c,l));if(t){var m=t,v=h[0]*m[0]/f+h[1]*m[1]/f+1,y=o(a(m[0],p),a(m[1],g));return o(a(1/v/f,y),l)}var b=i(e,l),_=r(i(p,a(h[0],b)),i(g,a(h[1],b)),b);return a(f,_)}}).call(d.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,d=e("./renderloop").RenderLoop,h=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,g='.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',m=e("./lib/useragent"),v=m.isIE;i.importCssString(g,"ace_editor.css");var y=function(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!m.isIOS,this.$loop=new d(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){o|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!n||!r,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,o=n.top,a=n.left;o-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:v?0:1;if(o<0||o>r.height-s)i.translate(this.textarea,0,0);else{var l=1,u=this.$size.height-s;if(t)if(t.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;a-=this.scrollLeft,a>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",s+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,u))}}}else i.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",a=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=n<=2*this.lineHeight,i=!r&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength(),i=r*this.lineHeight,o=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==a;s&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var u=t.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var f=this.scrollMargin;this.session.setScrollTop(Math.max(-f.top,Math.min(this.scrollTop,i-t.scrollerHeight+f.bottom))),this.session.setScrollLeft(Math.max(-f.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+f.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+c<0||this.scrollTop>f.top),h=l!==d;h&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var p,g,m=this.scrollTop%this.lineHeight,v=Math.ceil(u/this.lineHeight)-1,y=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),b=y+v,_=this.lineHeight;y=e.screenToDocumentRow(y,0);var w=e.getFoldLine(y);w&&(y=w.start.row),p=e.documentToScreenRow(y,0),g=e.getRowLength(y)*_,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),u=t.scrollerHeight+e.getRowLength(b)*_+g,m=this.scrollTop-p*_;var x=0;return(this.layerConfig.width!=o||s)&&(x=this.CHANGE_H_SCROLL),(s||h)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),h&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:y,firstRowScreen:p,lastRow:b,lineHeight:_,characterWidth:this.characterWidth,minHeight:u,maxHeight:i,offset:m,gutterOffset:_?Math.max(0,Math.ceil((m+t.height-t.scrollerHeight)/_)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-s<o+this.lineHeight&&(t&&l+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight+s-this.$size.scrollerHeight));var u=this.scrollLeft;u>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):u+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):u<=this.$padding&&i-u<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,r=this.STEPS,i=[],o=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<r;++n)i.push(o(n/this.STEPS,e,t-e));return i},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}),o=i.top;t&&(o-=this.$size.scrollerHeight/2);var a=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(a,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0],e==n))return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){if(!r.session)return clearInterval(r.$timer);o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l<a.length;l++){var u=a[l];if(s+=u.value.length,r<=s){var c=u.value.length-(s-r),f=u.value.slice(0,c),d=u.value.slice(c);a.splice(l,1,{type:u.type,value:f},o,{type:u.type,value:d});break}}this.updateLines(n,n)},this.removeExtraToken=function(e,t){this.updateLines(e,e)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var r=e||this.$options.theme.initialValue;o.loadModule(["theme",r],a)}function a(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.$id&&(n.$themeId=r.$id),i.importCssString(r.cssText,r.cssClass,n.container),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){i.setStyle(this.scroller.style,"cursor",e)},this.setMouseCursor=function(e){i.setStyle(this.scroller.style,"cursor",e)},this.attachToShadowRoot=function(){i.importCssString(g,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent=""}}).call(y.prototype),o.defineOptions(y.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!m.isMobile&&!m.isIE}}),t.VirtualRenderer=y})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,a=e("../config");function s(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(o){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,r=new n;return r.append(t),r.getBlob("application/javascript")}}function l(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var t=s(e),n=window.URL||window.webkitURL,r=n.createObjectURL(t);return new Worker(r)}return new Worker(e)}var u=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),this.$createWorkerFromOldConfig=function(t,n,r,i,o){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)i=i||a.moduleUrl(n,"worker");else{var s=this.$normalizePath;i=i||s(e.toUrl("ace/worker/worker.js",null,"_"));var u={};t.forEach((function(t){u[t]=s(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=l(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:u,module:n,classname:r}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data);break}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(u.prototype);var c=function(e,t,n){var r=null,i=!1,s=Object.create(o),l=[],c=new u({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),r&&(i?setTimeout(f):f())}});c.setEmitSync=function(e){i=e};var f=function(){var e=l.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){r=new e[n](s);while(l.length)f()})),c};t.UIWorkerClient=c,t.WorkerClient=u,t.createWorker=l})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s=this.others[a],l={row:s.row,column:s.column+o};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--)s=this.others[a],l={row:s.row,column:s.column+o},this.doc.remove(new r(l.row,l.column,l.row,l.column-n));this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}function a(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,s=t.ctrlKey,l=e.getAccelKey(),u=e.getButton();if(s&&i.isMac&&(u=t.button),e.editor.inMultiSelectMode&&2==u)e.editor.textInput.onContextMenu(e.domEvent);else if(s||n||l){if(0===u){var c,f=e.editor,d=f.selection,h=f.inMultiSelectMode,p=e.getDocumentPosition(),g=d.getCursor(),m=e.inSelection()||d.isEmpty()&&o(p,g),v=e.x,y=e.y,b=function(e){v=e.clientX,y=e.clientY},_=f.session,w=f.renderer.pixelToScreenCoordinates(v,y),x=w;if(f.$mouseHandler.$enableJumpToDef)s&&n||l&&n?c=a?"block":"add":n&&f.$blockSelectEnabled&&(c="block");else if(l&&!n){if(c="add",!h&&a)return}else n&&f.$blockSelectEnabled&&(c="block");if(c&&i.isMac&&t.ctrlKey&&f.$mouseHandler.cancelContextMenu(),"add"==c){if(!h&&m)return;if(!h){var O=d.toOrientedRange();f.addSelectionMarker(O)}var S=d.rangeList.rangeAtPoint(p);f.inVirtualSelectionMode=!0,a&&(S=null,O=d.ranges[0]||O,f.removeSelectionMarker(O)),f.once("mouseup",(function(){var e=d.toOrientedRange();S&&e.isEmpty()&&o(S.cursor,e.cursor)?d.substractPoint(e.cursor):(a?d.substractPoint(O.cursor):O&&(f.removeSelectionMarker(O),d.addRange(O)),d.addRange(e)),f.inVirtualSelectionMode=!1}))}else if("block"==c){var C;e.stop(),f.inVirtualSelectionMode=!0;var k=[],E=function(){var e=f.renderer.pixelToScreenCoordinates(v,y),t=_.screenToDocumentPosition(e.row,e.column,e.offsetX);o(x,e)&&o(t,d.lead)||(x=e,f.selection.moveToPosition(t),f.renderer.scrollCursorIntoView(),f.removeSelectionMarkers(k),k=d.rectangularRangeBlock(x,w),f.$mouseHandler.$clickSelection&&1==k.length&&k[0].isEmpty()&&(k[0]=f.$mouseHandler.$clickSelection.clone()),k.forEach(f.addSelectionMarker,f),f.updateSelectionMarkers())};h&&!l?d.toSingleRange():!h&&l&&(C=d.toOrientedRange(),f.addSelectionMarker(C)),a?w=_.documentToScreenPosition(d.lead):d.moveToPosition(p),x={row:-1,column:-1};var A=function(e){E(),clearInterval(D),f.removeSelectionMarkers(k),k.length||(k=[d.toOrientedRange()]),C&&(f.removeSelectionMarker(C),d.toSingleRange(C));for(var t=0;t<k.length;t++)d.addRange(k[t]);f.inVirtualSelectionMode=!1,f.$mouseHandler.$clickSelection=null},T=E;r.capture(f.container,b,A);var D=setInterval((function(){T()}),20);return e.preventDefault()}}}else 0===u&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=a})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),u=e("./commands/multi_select_commands");t.commands=u.defaultCommands.concat(u.multiSelectCommands);var c=e("./search").Search,f=new c;function d(e,t,n){return f.$options.wrap=!0,f.$options.needle=t,f.$options.backwards=-1==n,f.find(e)}var h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var r=e[n],o=r.start.row,a=r.end.row;if(o===a)t.push(r.clone());else{t.push(new i(o,r.start.column,o,this.session.getLine(o).length));while(++o<a)t.push(this.getLineRange(o,!0));t.push(new i(a,0,a,r.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}for(this.toSingleRange(),n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor),a=this.rectangularRangeBlock(r,o);a.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var a=e.column,s=t.column,l=e.offsetX,u=t.offsetX;else a=t.column,s=e.column,l=t.offsetX,u=e.offsetX;var c,f=e.row<t.row;if(f)var d=e.row,h=t.row;else d=t.row,h=e.row;a<0&&(a=0),d<0&&(d=0),d==h&&(n=!0);for(var p=d;p<=h;p++){var m=i.fromPoints(this.session.screenToDocumentPosition(p,a,l),this.session.screenToDocumentPosition(p,s,u));if(m.isEmpty()){if(c&&g(m.end,c))break;c=m.end}m.cursor=o?m.start:m.end,r.push(m)}if(f&&r.reverse(),!n){var v=r.length-1;while(r[v].isEmpty()&&v>0)v--;if(v>0){var y=0;while(r[y].isEmpty())y++}for(var b=v;b>=y;b--)r[b].isEmpty()&&r.splice(b,1)}return r}}.call(o.prototype);var p=e("./editor").Editor;function g(e,t){return e.row==t.row&&e.column==t.column}function m(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(u.defaultCommands),v(e))}function v(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;s.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,u=l.rangeList,c=(i?l:u).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var f=l._eventRegistry;l._eventRegistry={};var d=new o(s);this.inVirtualSelectionMode=!0;for(var h=c.length;h--;){if(a)while(h>0&&c[h].start.row==c[h-1].end.row)h--;d.fromOrientedRange(c[h]),d.index=h,this.selection=s.selection=d;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),d.toOrientedRange(c[h])}d.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=f,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();e=n.join(i),e.length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var a=i.length;a--;)o.addRange(i[a],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var a=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=a;else var s=this.session.documentToScreenPosition(r?n.end:n.start),l=this.session.screenToDocumentPosition(s.row+e,s.column);if(r){var u=i.fromPoints(a,l);u.cursor=u.start}else u=i.fromPoints(l,a),u.cursor=u.end;if(u.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(u),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;){var o=r[i];if(o.isEmpty()){var a=t.getWordRange(o.start.row,o.start.column);o.start.row=a.start.row,o.start.column=a.start.column,o.end.row=a.end.row,o.end.column=a.end.column}}n.mergeOverlappingRanges();var s=[];for(i=r.length;i--;)o=r[i],s.unshift(t.getTextRange(o));for(e<0?s.unshift(s.pop()):s.push(s.shift()),i=r.length;i--;)o=r[i],a=o.clone(),t.replace(o,s[i]),o.start.row=a.start.row,o.start.column=a.start.column;n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect,o=i.toOrientedRange();if(!o.isEmpty()||(o=r.getWordRange(o.start.row,o.start.column),o.cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),!n)){var a=r.getTextRange(o),s=d(r,a,e);s&&(s.cursor=-1==e?s.start:s.end,this.session.unfold(s),this.multiSelect.addRange(s),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,s=1/0,u=n.map((function(t){var n=t.cursor,r=e.getLine(n.row),i=r.substr(n.column).search(/\S/g);return-1==i&&(i=0),n.column>a&&(a=n.column),i<s&&(s=i),i}));n.forEach((function(t,n){var r=t.cursor,o=a-r.column,c=u[n]-s;o>c?e.insert(r,l.stringRepeat(" ",o-c)):e.remove(new i(r.row,r.column,r.row,r.column-o+c)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),f=c.start.row,d=c.end.row,h=f==d;if(h){var p,g=this.session.getLength();do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&++d<g);do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&--f>0);f<0&&(f=0),d>=g&&(d=g-1)}var m=this.session.removeFullLines(f,d);m=this.$reAlignText(m,h),this.session.insert({row:f,column:0},m.join("\n")+"\n"),h||(c.start.column=0,c.end.column=m[m.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?u:o?a?c:u:f);function s(e){return l.stringRepeat(" ",e)}function u(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function c(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function f(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=m,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){m(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){var s=n||o.length,l=e.getLength(),u=t,c=t;while(++t<l){var f=e.getLine(t).search(i);if(-1!=f){if(f<=a){var d=e.getTokenAt(t,0);if(!d||"string"!==d.type)break}c=t}}if(c>u){var h=e.getLine(c).length;return new r(u,s,c,h)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom");function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s<o;s++)n[s]&&(n[s].hidden=a);n[o]&&(a?n[i]?n[o].hidden=a:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=a))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action){var i=t.splice(n+1,r);!t[n]&&i[i.length-1]&&(t[n]=i.pop()),i.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var o=new Array(r);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],r=[];while(n)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var a=n[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var s=a.h/r.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row),s<0&&(s=0)),a.rowCount!=s&&(a.rowCount=s,a.row<i&&(i=a.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);while(i>0&&!r[i])i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var u=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(u-=t.scrollLeft),s.el.style.left=u+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;function a(e,t,n){var r=0,i=e.length-1;while(r<=i){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}function s(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=a(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var s=r[i];if(s&&n){if(s.row===t){do{s=r[i+=n]}while(s&&s.row===t);if(!s)return r.slice()}var l=[];t=s.row;do{l[n<0?"unshift":"push"](s),s=r[i+=n]}while(s&&s.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var o=e.getCursorPosition(),a=o.row,l=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():a-=t;var u,c=s(n,a,t);if(c){var f=c[0];o.column=(f.pos&&"number"!=typeof f.column?f.pos.sc:f.column)||0,o.row=f.row,u=e.renderer.$gutterLayer.$annotations[o.row]}else{if(l)return;u={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);var d={row:o.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},h=d.el.appendChild(i.createElement("div")),p=d.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+u.className;var g=e.renderer.$cursorLayer.getPixelPosition(o).left;p.style.left=g+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",h.className="error_widget "+u.className,h.innerHTML=u.text.join("<br>"),h.appendChild(i.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},i.importCssString("    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/dom"),o=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,u=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n("07d6"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var u=t.createEditSession(a),f=new s(new c(e),u,n),d={document:u,editor:f,onResize:f.resize.bind(f,null)};return l&&(d.textarea=l),o.addListener(window,"resize",d.onResize),f.on("destroy",(function(){o.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),f.container.env=f.env=d,f},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new u),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=u,t.VirtualRenderer=c,t.version=t.config.version})),function(){ace.require(["ace/ace"],(function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)}))}()}).call(this,n("62e4")(e))},"6e58":function(e,t,n){},"6f6c":function(e,t){var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=r},"6fcd":function(e,t,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),l=n("73ac"),u=Object.prototype,c=u.hasOwnProperty;function f(e,t){var n=o(e),u=!n&&i(e),f=!n&&!u&&a(e),d=!n&&!u&&!f&&l(e),h=n||u||f||d,p=h?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}e.exports=f},"710b":function(e,t,n){(function(e){(function(){ace.require(["ace/snippets/scss"],(function(t){e&&(e.exports=t)}))})()}).call(this,n("62e4")(e))},7129:function(e,t,n){"use strict";var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function o(e,t){var n=typeof e;return t=null==t?r:t,!!t&&("number"==n||"symbol"!=n&&i.test(e))&&e>-1&&e%1==0&&e<t}t["a"]=o},"73ac":function(e,t,n){var r=n("743f"),i=n("b047"),o=n("99d3"),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},"743f":function(e,t,n){var r=n("3729"),i=n("b218"),o=n("1310"),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",D={};function M(e){return o(e)&&i(e.length)&&!!D[r(e)]}D[w]=D[x]=D[O]=D[S]=D[C]=D[k]=D[E]=D[A]=D[T]=!0,D[a]=D[s]=D[b]=D[l]=D[_]=D[u]=D[c]=D[f]=D[d]=D[h]=D[p]=D[g]=D[m]=D[v]=D[y]=!1,e.exports=M},"74b5":function(e,t,n){"use strict";var r=Function.prototype,i=r.toString;function o(e){if(null!=e){try{return i.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t["a"]=o},7530:function(e,t,n){var r=n("1a8c"),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},7603:function(e,t,n){"use strict";n.r(t);var r=n("470b"),i=n("6944"),o=n.n(i);n("0808"),r["a"].install=function(e){e.component("SImage",r["a"]),e.use(o.a)},t["default"]=r["a"]},"76dd":function(e,t,n){var r=n("ce86");function i(e){return null==e?"":r(e)}e.exports=i},7702:function(e,t,n){"use strict";n("2cbe")},7719:function(e,t,n){"use strict";n("99d1")},7804:function(e,t,n){"use strict";function r(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}t["a"]=r},7948:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=n},"79bc":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Map");e.exports=o},"7a48":function(e,t,n){var r=n("6044"),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.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(){}}}()},"7b83":function(e,t,n){var r=n("7c64"),i=n("93ed"),o=n("2478"),a=n("a524"),s=n("1fc8");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},"7c64":function(e,t,n){var r=n("e24b"),i=n("5e2e"),o=n("79bc");function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},"7c8d":function(e,t,n){
/*!
 * Compressor.js v1.1.1
 * https://fengyuanchen.github.io/compressorjs
 *
 * Copyright 2018-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2021-10-05T02:32:40.212Z
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}var s={exports:{}};(function(e){"undefined"!==typeof window&&function(t){var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,r=t.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),i=r&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),o=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,s=(r||o)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(e){var t,n,s,l,u,c,f,d,h;if(t=e.match(a),!t)throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),s=!!t[4],l=e.slice(t[0].length),u=s?atob(l):decodeURIComponent(l),c=new ArrayBuffer(u.length),f=new Uint8Array(c),d=0;d<u.length;d+=1)f[d]=u.charCodeAt(d);return r?new Blob([i?f:c],{type:n}):(h=new o,h.append(c),h.getBlob(n))};t.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(e,t,r){var i=this;setTimeout((function(){r&&n.toDataURL&&s?e(s(i.toDataURL(t,r))):e(i.mozGetAsFile("blob",t))}))}:n.toDataURL&&s&&(n.msToBlob?n.toBlob=function(e,t,r){var i=this;setTimeout((function(){(t&&"image/png"!==t||r)&&n.toDataURL&&s?e(s(i.toDataURL(t,r))):e(i.msToBlob(t))}))}:n.toBlob=function(e,t,n){var r=this;setTimeout((function(){e(s(r.toDataURL(t,n)))}))})),e.exports?e.exports=s:t.dataURLtoBlob=s}(window)})(s);var l=s.exports,u=function(e){return"undefined"!==typeof Blob&&(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))},c={strict:!0,checkOrientation:!0,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},f="undefined"!==typeof window&&"undefined"!==typeof window.document,d=f?window:{},h=function(e){return e>0&&e<1/0},p=Array.prototype.slice;function g(e){return Array.from?Array.from(e):p.call(e)}var m=/^image\/.+$/;function v(e){return m.test(e)}function y(e){var t=v(e)?e.substr(6):"";return"jpeg"===t&&(t="jpg"),".".concat(t)}var b=String.fromCharCode;function _(e,t,n){var r,i="";for(n+=t,r=t;r<n;r+=1)i+=b(e.getUint8(r));return i}var w=d.btoa;function x(e,t){var n=[],r=8192,i=new Uint8Array(e);while(i.length>0)n.push(b.apply(null,g(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(t,";base64,").concat(w(n.join("")))}function O(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1)){var a=n.byteLength,s=2;while(s+1<a){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}}if(i){var l=i+4,u=i+10;if("Exif"===_(n,l,4)){var c=n.getUint16(u);if(r=18761===c,(r||19789===c)&&42===n.getUint16(u+2,r)){var f=n.getUint32(u+4,r);f>=8&&(o=u+f)}}}if(o){var d,h,p=n.getUint16(o,r);for(h=0;h<p;h+=1)if(d=o+12*h+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(g){t=1}return t}function S(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:r}}var C=/\.\d*(?:0|9){12}\d*$/;function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return C.test(e)?Math.round(e*t)/t:e}function E(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",o=h(r),a=h(n);if(o&&a){var s=n*t;("contain"===i||"none"===i)&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}var A=d.ArrayBuffer,T=d.FileReader,D=d.URL||d.webkitURL,M=/\.\w+$/,P=d.Compressor,I=function(){function e(r,i){n(this,e),this.file=r,this.image=new Image,this.options=t(t({},c),i),this.aborted=!1,this.result=null,this.init()}return i(e,[{key:"init",value:function(){var e=this,t=this.file,n=this.options;if(u(t)){var r=t.type;if(v(r))if(D&&T)if(A||(n.checkOrientation=!1),D&&!n.checkOrientation)this.load({url:D.createObjectURL(t)});else{var i=new T,o=n.checkOrientation&&"image/jpeg"===r;this.reader=i,i.onload=function(n){var i=n.target,s=i.result,l={};if(o){var u=O(s);u>1||!D?(l.url=x(s,r),u>1&&a(l,S(u))):l.url=D.createObjectURL(t)}else l.url=s;e.load(l)},i.onabort=function(){e.fail(new Error("Aborted to read the image with FileReader."))},i.onerror=function(){e.fail(new Error("Failed to read the image with FileReader."))},i.onloadend=function(){e.reader=null},o?i.readAsArrayBuffer(t):i.readAsDataURL(t)}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var n=this,r=this.file,i=this.image;i.onload=function(){n.draw(t(t({},e),{},{naturalWidth:i.naturalWidth,naturalHeight:i.naturalHeight}))},i.onabort=function(){n.fail(new Error("Aborted to load the image."))},i.onerror=function(){n.fail(new Error("Failed to load the image."))},d.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(d.navigator.userAgent)&&(i.crossOrigin="anonymous"),i.alt=r.name,i.src=e.url}},{key:"draw",value:function(e){var t=this,n=e.naturalWidth,r=e.naturalHeight,i=e.rotate,o=void 0===i?0:i,a=e.scaleX,s=void 0===a?1:a,u=e.scaleY,c=void 0===u?1:u,f=this.file,d=this.image,p=this.options,g=document.createElement("canvas"),m=g.getContext("2d"),y=Math.abs(o)%180===90,b=("contain"===p.resize||"cover"===p.resize)&&h(p.width)&&h(p.height),_=Math.max(p.maxWidth,0)||1/0,w=Math.max(p.maxHeight,0)||1/0,x=Math.max(p.minWidth,0)||0,O=Math.max(p.minHeight,0)||0,S=n/r,C=p.width,A=p.height;if(y){var T=[w,_];_=T[0],w=T[1];var D=[O,x];x=D[0],O=D[1];var M=[A,C];C=M[0],A=M[1]}b&&(S=C/A);var P=E({aspectRatio:S,width:_,height:w},"contain");_=P.width,w=P.height;var I=E({aspectRatio:S,width:x,height:O},"cover");if(x=I.width,O=I.height,b){var j=E({aspectRatio:S,width:C,height:A},p.resize);C=j.width,A=j.height}else{var L=E({aspectRatio:S,width:C,height:A}),N=L.width;C=void 0===N?n:N;var R=L.height;A=void 0===R?r:R}C=Math.floor(k(Math.min(Math.max(C,x),_))),A=Math.floor(k(Math.min(Math.max(A,O),w)));var B=-C/2,$=-A/2,F=C,z=A,q=[];if(b){var U=0,H=0,V=n,W=r,K=E({aspectRatio:S,width:n,height:r},{contain:"cover",cover:"contain"}[p.resize]);V=K.width,W=K.height,U=(n-V)/2,H=(r-W)/2,q.push(U,H,V,W)}if(q.push(B,$,F,z),y){var G=[A,C];C=G[0],A=G[1]}g.width=C,g.height=A,v(p.mimeType)||(p.mimeType=f.type);var Y="transparent";if(f.size>p.convertSize&&p.convertTypes.indexOf(p.mimeType)>=0&&(p.mimeType="image/jpeg"),"image/jpeg"===p.mimeType&&(Y="#fff"),m.fillStyle=Y,m.fillRect(0,0,C,A),p.beforeDraw&&p.beforeDraw.call(this,m,g),!this.aborted&&(m.save(),m.translate(C/2,A/2),m.rotate(o*Math.PI/180),m.scale(s,c),m.drawImage.apply(m,[d].concat(q)),m.restore(),p.drew&&p.drew.call(this,m,g),!this.aborted)){var X=function(e){t.aborted||t.done({naturalWidth:n,naturalHeight:r,result:e})};g.toBlob?g.toBlob(X,p.mimeType,p.quality):X(l(g.toDataURL(p.mimeType,p.quality)))}}},{key:"done",value:function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.result,i=this.file,o=this.image,a=this.options;if(D&&!a.checkOrientation&&D.revokeObjectURL(o.src),r)if(a.strict&&r.size>i.size&&a.mimeType===i.type&&!(a.width>t||a.height>n||a.minWidth>t||a.minHeight>n||a.maxWidth<t||a.maxHeight<n))r=i;else{var s=new Date;r.lastModified=s.getTime(),r.lastModifiedDate=s,r.name=i.name,r.name&&r.type!==i.type&&(r.name=r.name.replace(M,y(r.type)))}else r=i;this.result=r,a.success&&a.success.call(this,r)}},{key:"fail",value:function(e){var t=this.options;if(!t.error)throw e;t.error.call(this,e)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=P,e}},{key:"setDefaults",value:function(e){a(c,e)}}]),e}();return I}))},"7d1f":function(e,t,n){var r=n("087d"),i=n("6747");function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},"7e64":function(e,t,n){var r=n("5e2e"),i=n("efb6"),o=n("2fcc"),a=n("802a"),s=n("55a3"),l=n("d02c");function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=i,u.prototype["delete"]=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},"7f2c":function(e,t,n){"use strict";var r=n("a12c"),i=n("0e59"),o="__lodash_hash_undefined__";function a(e){return this.__data__.set(e,o),this}var s=a;function l(e){return this.__data__.has(e)}var u=l;function c(e){var t=-1,n=null==e?0:e.length;this.__data__=new i["a"];while(++t<n)this.add(e[t])}c.prototype.add=c.prototype.push=s,c.prototype.has=u;var f=c;function d(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var h=d;function p(e,t){return e.has(t)}var g=p,m=1,v=2;function y(e,t,n,r,i,o){var a=n&m,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,y=n&v?new f:void 0;o.set(e,t),o.set(t,e);while(++d<s){var b=e[d],_=t[d];if(r)var w=a?r(_,b,d,t,e,o):r(b,_,d,e,t,o);if(void 0!==w){if(w)continue;p=!1;break}if(y){if(!h(t,(function(e,t){if(!g(y,t)&&(b===e||i(b,e,n,r,o)))return y.push(t)}))){p=!1;break}}else if(b!==_&&!i(b,_,n,r,o)){p=!1;break}}return o["delete"](e),o["delete"](t),p}var b=y,_=n("ca54"),w=n("09ee"),x=n("6071");function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var S=O;function C(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var k=C,E=1,A=2,T="[object Boolean]",D="[object Date]",M="[object Error]",P="[object Map]",I="[object Number]",j="[object RegExp]",L="[object Set]",N="[object String]",R="[object Symbol]",B="[object ArrayBuffer]",$="[object DataView]",F=_["a"]?_["a"].prototype:void 0,z=F?F.valueOf:void 0;function q(e,t,n,r,i,o,a){switch(n){case $:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!o(new w["a"](e),new w["a"](t)));case T:case D:case I:return Object(x["a"])(+e,+t);case M:return e.name==t.name&&e.message==t.message;case j:case N:return e==t+"";case P:var s=S;case L:var l=r&E;if(s||(s=k),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=A,a.set(e,t);var c=b(s(e),s(t),r,i,o,a);return a["delete"](e),c;case R:if(z)return z.call(e)==z.call(t)}return!1}var U=q,H=n("4c5c"),V=1,W=Object.prototype,K=W.hasOwnProperty;function G(e,t,n,r,i,o){var a=n&V,s=Object(H["a"])(e),l=s.length,u=Object(H["a"])(t),c=u.length;if(l!=c&&!a)return!1;var f=l;while(f--){var d=s[f];if(!(a?d in t:K.call(t,d)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);var m=a;while(++f<l){d=s[f];var v=e[d],y=t[d];if(r)var b=a?r(y,v,d,t,e,o):r(v,y,d,e,t,o);if(!(void 0===b?v===y||i(v,y,n,r,o):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return o["delete"](e),o["delete"](t),g}var Y=G,X=n("60ce"),Z=n("ff51"),Q=n("58e0"),J=n("a187"),ee=1,te="[object Arguments]",ne="[object Array]",re="[object Object]",ie=Object.prototype,oe=ie.hasOwnProperty;function ae(e,t,n,i,o,a){var s=Object(Z["a"])(e),l=Object(Z["a"])(t),u=s?ne:Object(X["a"])(e),c=l?ne:Object(X["a"])(t);u=u==te?re:u,c=c==te?re:c;var f=u==re,d=c==re,h=u==c;if(h&&Object(Q["a"])(e)){if(!Object(Q["a"])(t))return!1;s=!0,f=!1}if(h&&!f)return a||(a=new r["a"]),s||Object(J["a"])(e)?b(e,t,n,i,o,a):U(e,t,u,n,i,o,a);if(!(n&ee)){var p=f&&oe.call(e,"__wrapped__"),g=d&&oe.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new r["a"]),o(m,v,n,i,a)}}return!!h&&(a||(a=new r["a"]),Y(e,t,n,i,o,a))}var se=ae,le=n("1147");function ue(e,t,n,r,i){return e===t||(null==e||null==t||!Object(le["a"])(e)&&!Object(le["a"])(t)?e!==e&&t!==t:se(e,t,n,r,ue,i))}var ce=ue,fe=1,de=2;function he(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;e=Object(e);while(o--){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++o<a){l=n[o];var u=l[0],c=e[u],f=l[1];if(s&&l[2]){if(void 0===c&&!(u in e))return!1}else{var d=new r["a"];if(i)var h=i(c,f,u,e,t,d);if(!(void 0===h?ce(f,c,fe|de,i,d):h))return!1}}return!0}var pe=he,ge=n("2332");function me(e){return e===e&&!Object(ge["a"])(e)}var ve=me,ye=n("9a4b");function be(e){var t=Object(ye["a"])(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ve(i)]}return t}var _e=be;function we(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}var xe=we;function Oe(e){var t=_e(e);return 1==t.length&&t[0][2]?xe(t[0][0],t[0][1]):function(n){return n===e||pe(n,e,t)}}var Se=Oe,Ce=n("ec41"),ke=n("2b5e"),Ee=n("bd8f"),Ae=n("4dc8"),Te=1,De=2;function Me(e,t){return Object(Ee["a"])(e)&&ve(t)?xe(Object(Ae["a"])(e),t):function(n){var r=Object(Ce["a"])(n,e);return void 0===r&&r===t?Object(ke["a"])(n,e):ce(t,r,Te|De)}}var Pe=Me,Ie=n("f976");function je(e){return function(t){return null==t?void 0:t[e]}}var Le=je,Ne=n("5132");function Re(e){return function(t){return Object(Ne["a"])(t,e)}}var Be=Re;function $e(e){return Object(Ee["a"])(e)?Le(Object(Ae["a"])(e)):Be(e)}var Fe=$e;function ze(e){return"function"==typeof e?e:null==e?Ie["a"]:"object"==typeof e?Object(Z["a"])(e)?Pe(e[0],e[1]):Se(e):Fe(e)}t["a"]=ze},"802a":function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},8057:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=n},8096:function(e,t,n){},"81fc":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-"+e.config.type.replace("Button","")+"-group",e._b({tag:"div",on:{change:e.change,focus:e.focus,blur:e.blur},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},"div",e.config.props,!1),e._l(e.config.options,(function(t,r){return n("el-"+e.config.type,e._b({key:r,tag:"div",attrs:{label:t[e.mapper.value]}},"div",t,!1),[e._v(e._s(t[e.mapper.label])+" ")])})),1)},i=[],o={name:"groupTag",props:{value:[Number,String,Array,Boolean],config:Object,mapper:Object,inputStyle:Object},computed:{model:{set(e){this.$emit("changeValue",e),this.$emit("input",e)},get(){return this.value}}},methods:{change(e){this.config.change&&this.$emit("change",e)},focus(){this.config.focus&&this.$emit("focus",this.value)},blur(){this.config.blur&&this.$emit("blur",this.value)}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["a"]=l.exports},8322:function(e,t,n){"use strict";var r=n("9c56"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form-item",{class:"top"===e.props.labelPosition||"100%"===e.props.labelWidth?"full-content":"",attrs:{prop:e.config._code,rules:e.config.rule,"label-width":e.config.labelWidth,size:e.config.size}},[e.config.label?n("template",{staticClass:"label",slot:"label"},[e.config.label&&"readonly"!==e.type&&e.required?n("b",{staticClass:"required"},[e._v("*")]):e._e(),e._v(" "+e._s(e.config.label)+" "),e.props.suffix?[e._v(":")]:e._e(),e.config.slotConfig&&e.config.slotConfig.labelAdd?n("span",{domProps:{innerHTML:e._s(e.config.slotConfig.labelAdd)}}):e._t("labelAdd-"+e.config._code,null,{option:e.config})],2):e._e(),"slot"===e.config.type?[e._t("content-"+e.config._code,null,{option:e.config})]:[e.config.slotConfig&&e.config.slotConfig.inputInsert?n("div",{domProps:{innerHTML:e._s(e.config.slotConfig.inputInsert)}}):e._t("inputInsert-"+e.config._code),e.singleTag.indexOf(e.config.type)>=0?n("single-tag",{attrs:{mapper:e.mapper,value:e.value,"input-style":e.config.inputStyle,config:e.config},on:{changeValue:e.changeModel,change:e.change,blur:e.blur,focus:e.focus}}):e._e(),e.groupTag.indexOf(e.config.type)>=0?n("group-tag",{attrs:{mapper:e.mapper,"input-style":e.config.inputStyle,value:e.value,config:e.config},on:{changeValue:e.changeModel,change:e.change,blur:e.blur,focus:e.focus}}):e._e(),e.optionsTag.indexOf(e.config.type)>=0?n("options-tag",{attrs:{mapper:e.mapper,value:e.value,config:e.config,"input-style":e.config.inputStyle},on:{changeValue:e.changeModel,change:e.change,blur:e.blur,focus:e.focus}}):e._e(),e.selfTag.indexOf(e.config.type)>=0?n("self-tag",{attrs:{mapper:e.mapper,"input-style":e.config.inputStyle,value:e.value,config:e.config},on:{changeValue:e.changeModel,change:e.change,blur:e.blur,focus:e.focus},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("content-"+e.config._code,null,{option:e.config,data:t})]}}],null,!0)}):e._e()],e.config.slotConfig&&e.config.slotConfig.inputAdd?n("span",{domProps:{innerHTML:e._s(e.config.slotConfig.inputAdd)}}):e._t("inputAdd-"+e.config._code)],2)},o=[],a=n("c85b");const s=Object(r["a"])(a["a"])`
  width: 100%;
  ${e=>{if(e.inputStyle)return Object.keys(e.inputStyle).map(t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e.inputStyle[t]+" !important").join(";")}}
`;var l=s,u=n("81fc");const c=Object(r["a"])(u["a"])`
  width: 100%;
  ${e=>{if(e.inputStyle)return Object.keys(e.inputStyle).map(t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e.inputStyle[t]+" !important").join(";")}}
`;var f=c,d=n("2c98");const h=Object(r["a"])(d["a"])`
  width: 100%;
  ${e=>{if(e.inputStyle)return Object.keys(e.inputStyle).map(t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e.inputStyle[t]+" !important").join(";")}}
`;var p=h,g=n("ff7d");const m=Object(r["a"])(g["a"])`
  width: 100%;
  ${e=>{if(e.inputStyle)return Object.keys(e.inputStyle).map(t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e.inputStyle[t]+" !important").join(";")}}
`;var v=m,y=n("5c8a"),b=n("1e55"),_={name:"items",components:{SelfTag:v,OptionsTag:p,GroupTag:f,SingleTag:l},data(){return{...b["default"]}},props:{formData:Object,type:String,value:[String,Number,Array,Boolean],config:{type:Object,default(){return{}}},mergeStyle:Object,props:Object},computed:{required(){let e=!1;return this.config.rule&&this.config.rule.map(t=>{t.required&&(e=!0)}),e},mapper(){const e=Object(y["a"])(this.props.mapper)||{},t=this.config.mapper||{};return Object.assign({label:"label",value:"value",children:"children"},e,t)}},methods:{changeModel(e){if(this.config.props&&!this.config.props.multiple&&Array.isArray(e)){const t=e;this.config.join,this.$emit("setValue",this.config._code,this.config.key,t)}else this.config.join?this.$emit("setValue",this.config._code,this.config.key,e.join(this.config.join)):this.$emit("setValue",this.config._code,this.config.key,e)},change(e){this.config.change&&this.config.change(this.config,e,this.formData)},focus(){this.config.focus&&this.config.focus(this.config,this.value,this.formData)},blur(){this.config.blur&&this.config.blur(this.config,this.value,this.formData)}}},w=_,x=(n("cd26"),n("2877")),O=Object(x["a"])(w,i,o,!1,null,"8a70b42c",null),S=O.exports;const C=Object(r["a"])(S)`
  ${e=>{if(e.mergeStyle)return Object.keys(e.mergeStyle).map(t=>t.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+e.mergeStyle[t]+" !important").join(";")}}
`;t["a"]=C},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},8583:function(e,t,n){"use strict";var r=n("2332"),i=Object.create,o=function(){function e(){}return function(t){if(!Object(r["a"])(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),a=o,s=n("52e7"),l=n("a724");function u(e){return"function"!=typeof e.constructor||Object(l["a"])(e)?{}:a(Object(s["a"])(e))}t["a"]=u},"872a":function(e,t,n){var r=n("3b4a");function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},"883c":function(e,t,n){(function(t,r){e.exports=r(n("9339"))})(window,(function(e){return function(e){function t(e){delete installedChunks[e]}var n=window["webpackHotUpdatequillBetterTable"];function r(e){var t=document.createElement("script");t.charset="utf-8",t.src=P.p+""+e+"."+s+".hot-update.js",document.head.appendChild(t)}function i(e){return e=e||1e4,new Promise((function(t,n){if("undefined"===typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=P.p+""+s+".hot-update.json";r.open("GET",i,!0),r.timeout=e,r.send(null)}catch(o){return n(o)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)t();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var e=JSON.parse(r.responseText)}catch(o){return void n(o)}t(e)}}}))}window["webpackHotUpdatequillBetterTable"]=function(e,t){E(e,t),n&&n(e,t)};var o,a=!0,s="ced44c7892a78034ffe4",l=1e4,u={},c=[],f=[];function d(e){var t=M[e];if(!t)return P;var n=function(n){return t.hot.active?(M[n]?-1===M[n].parents.indexOf(e)&&M[n].parents.push(e):(c=[e],o=n),-1===t.children.indexOf(n)&&t.children.push(n)):(console.warn("[HMR] unexpected require("+n+") from disposed module "+e),c=[]),P(n)},r=function(e){return{configurable:!0,enumerable:!0,get:function(){return P[e]},set:function(t){P[e]=t}}};for(var i in P)Object.prototype.hasOwnProperty.call(P,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(n,i,r(i));return n.e=function(e){return"ready"===g&&m("prepare"),w++,P.e(e).then(t,(function(e){throw t(),e}));function t(){w--,"prepare"===g&&(x[e]||A(e),0===w&&0===_&&T())}},n.t=function(e,t){return 1&t&&(e=n(e)),P.t(e,-2&t)},n}function h(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:o!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"===typeof e)t._selfAccepted=e;else if("object"===typeof e)for(var r=0;r<e.length;r++)t._acceptedDependencies[e[r]]=n||function(){};else t._acceptedDependencies[e]=n||function(){}},decline:function(e){if(void 0===e)t._selfDeclined=!0;else if("object"===typeof e)for(var n=0;n<e.length;n++)t._declinedDependencies[e[n]]=!0;else t._declinedDependencies[e]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=t._disposeHandlers.indexOf(e);n>=0&&t._disposeHandlers.splice(n,1)},check:k,apply:D,status:function(e){if(!e)return g;p.push(e)},addStatusHandler:function(e){p.push(e)},removeStatusHandler:function(e){var t=p.indexOf(e);t>=0&&p.splice(t,1)},data:u[e]};return o=void 0,t}var p=[],g="idle";function m(e){g=e;for(var t=0;t<p.length;t++)p[t].call(null,e)}var v,y,b,_=0,w=0,x={},O={},S={};function C(e){var t=+e+""===e;return t?+e:e}function k(e){if("idle"!==g)throw new Error("check() is only allowed in idle status");return a=e,m("check"),i(l).then((function(e){if(!e)return m("idle"),null;O={},x={},S=e.c,b=e.h,m("prepare");var t=new Promise((function(e,t){v={resolve:e,reject:t}}));y={};var n=2;return A(n),"prepare"===g&&0===w&&0===_&&T(),t}))}function E(e,t){if(S[e]&&O[e]){for(var n in O[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(y[n]=t[n]);0===--_&&0===w&&T()}}function A(e){S[e]?(O[e]=!0,_++,r(e)):x[e]=!0}function T(){m("ready");var e=v;if(v=null,e)if(a)Promise.resolve().then((function(){return D(a)})).then((function(t){e.resolve(t)}),(function(t){e.reject(t)}));else{var t=[];for(var n in y)Object.prototype.hasOwnProperty.call(y,n)&&t.push(C(n));e.resolve(t)}}function D(n){if("ready"!==g)throw new Error("apply() is only allowed in ready status");var r,i,o,a,l;function f(e){var t=[e],n={},r=t.map((function(e){return{chain:[e],id:e}}));while(r.length>0){var i=r.pop(),o=i.id,s=i.chain;if(a=M[o],a&&!a.hot._selfAccepted){if(a.hot._selfDeclined)return{type:"self-declined",chain:s,moduleId:o};if(a.hot._main)return{type:"unaccepted",chain:s,moduleId:o};for(var l=0;l<a.parents.length;l++){var u=a.parents[l],c=M[u];if(c){if(c.hot._declinedDependencies[o])return{type:"declined",chain:s.concat([u]),moduleId:o,parentId:u};-1===t.indexOf(u)&&(c.hot._acceptedDependencies[o]?(n[u]||(n[u]=[]),d(n[u],[o])):(delete n[u],t.push(u),r.push({chain:s.concat([u]),id:u})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}n=n||{};var h={},p=[],v={},_=function(){console.warn("[HMR] unexpected require("+x.moduleId+") to disposed module")};for(var w in y)if(Object.prototype.hasOwnProperty.call(y,w)){var x;l=C(w),x=y[w]?f(l):{type:"disposed",moduleId:w};var O=!1,k=!1,E=!1,A="";switch(x.chain&&(A="\nUpdate propagation: "+x.chain.join(" -> ")),x.type){case"self-declined":n.onDeclined&&n.onDeclined(x),n.ignoreDeclined||(O=new Error("Aborted because of self decline: "+x.moduleId+A));break;case"declined":n.onDeclined&&n.onDeclined(x),n.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+x.moduleId+" in "+x.parentId+A));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(x),n.ignoreUnaccepted||(O=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":n.onAccepted&&n.onAccepted(x),k=!0;break;case"disposed":n.onDisposed&&n.onDisposed(x),E=!0;break;default:throw new Error("Unexception type "+x.type)}if(O)return m("abort"),Promise.reject(O);if(k)for(l in v[l]=y[l],d(p,x.outdatedModules),x.outdatedDependencies)Object.prototype.hasOwnProperty.call(x.outdatedDependencies,l)&&(h[l]||(h[l]=[]),d(h[l],x.outdatedDependencies[l]));E&&(d(p,[x.moduleId]),v[l]=_)}var T,D=[];for(i=0;i<p.length;i++)l=p[i],M[l]&&M[l].hot._selfAccepted&&v[l]!==_&&D.push({module:l,errorHandler:M[l].hot._selfAccepted});m("dispose"),Object.keys(S).forEach((function(e){!1===S[e]&&t(e)}));var I,j,L=p.slice();while(L.length>0)if(l=L.pop(),a=M[l],a){var N={},R=a.hot._disposeHandlers;for(o=0;o<R.length;o++)r=R[o],r(N);for(u[l]=N,a.hot.active=!1,delete M[l],delete h[l],o=0;o<a.children.length;o++){var B=M[a.children[o]];B&&(T=B.parents.indexOf(l),T>=0&&B.parents.splice(T,1))}}for(l in h)if(Object.prototype.hasOwnProperty.call(h,l)&&(a=M[l],a))for(j=h[l],o=0;o<j.length;o++)I=j[o],T=a.children.indexOf(I),T>=0&&a.children.splice(T,1);for(l in m("apply"),s=b,v)Object.prototype.hasOwnProperty.call(v,l)&&(e[l]=v[l]);var $=null;for(l in h)if(Object.prototype.hasOwnProperty.call(h,l)&&(a=M[l],a)){j=h[l];var F=[];for(i=0;i<j.length;i++)if(I=j[i],r=a.hot._acceptedDependencies[I],r){if(-1!==F.indexOf(r))continue;F.push(r)}for(i=0;i<F.length;i++){r=F[i];try{r(j)}catch(q){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:l,dependencyId:j[i],error:q}),n.ignoreErrored||$||($=q)}}}for(i=0;i<D.length;i++){var z=D[i];l=z.module,c=[l];try{P(l)}catch(q){if("function"===typeof z.errorHandler)try{z.errorHandler(q)}catch(U){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:l,error:U,originalError:q}),n.ignoreErrored||$||($=U),$||($=q)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:l,error:q}),n.ignoreErrored||$||($=q)}}return $?(m("fail"),Promise.reject($)):(m("idle"),new Promise((function(e){e(p)})))}var M={};function P(t){if(M[t])return M[t].exports;var n=M[t]={i:t,l:!1,exports:{},hot:h(t),parents:(f=c,c=[],f),children:[]};return e[t].call(n.exports,n,n.exports,d(t)),n.l=!0,n.exports}return P.m=e,P.c=M,P.d=function(e,t,n){P.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},P.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.t=function(e,t){if(1&t&&(e=P(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(P.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)P.d(n,r,function(t){return e[t]}.bind(null,r));return n},P.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return P.d(t,"a",t),t},P.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},P.p="",P.h=function(){return s},d(12)(P.s=12)}([function(t,n){t.exports=e},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M73.142857 336.64h526.628572v43.885714H73.142857zM73.142857 643.657143h526.628572v43.885714H73.142857zM336.457143 117.028571h43.885714v789.942858h-43.885714zM204.8 73.142857h614.4a131.657143 131.657143 0 0 1 131.657143 131.657143v614.4a131.657143 131.657143 0 0 1-131.657143 131.657143H204.8A131.657143 131.657143 0 0 1 73.142857 819.2V204.8A131.84 131.84 0 0 1 204.8 73.142857z m0 43.885714a87.771429 87.771429 0 0 0-87.771429 87.771429v614.4a87.771429 87.771429 0 0 0 87.771429 87.771429h614.4a87.771429 87.771429 0 0 0 87.771429-87.771429V204.8a87.771429 87.771429 0 0 0-87.771429-87.771429zM819.2 73.142857h-219.428571v877.714286h219.428571a131.657143 131.657143 0 0 0 131.657143-131.657143V204.8A131.84 131.84 0 0 0 819.2 73.142857z m44.068571 460.982857h-65.828571v65.828572H753.371429v-65.828572h-65.828572V490.057143h65.828572v-65.828572h44.068571v65.828572h65.828571z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M380.342857 336.457143h526.811429v43.885714H380.342857z m0 307.2h526.811429v43.885714H380.342857zM643.657143 117.028571h43.885714v789.942858h-43.885714zM204.8 73.142857h614.582857A131.474286 131.474286 0 0 1 950.857143 204.8v614.4a131.657143 131.657143 0 0 1-131.657143 131.657143H204.8A131.657143 131.657143 0 0 1 73.142857 819.2V204.8A131.657143 131.657143 0 0 1 204.8 73.142857z m0 43.885714a87.588571 87.588571 0 0 0-87.588571 87.771429v614.4a87.588571 87.588571 0 0 0 87.588571 87.771429h614.582857a87.771429 87.771429 0 0 0 87.771429-87.771429V204.8a87.771429 87.771429 0 0 0-87.771429-87.771429zM204.8 73.142857A131.657143 131.657143 0 0 0 73.142857 204.8v614.4a131.657143 131.657143 0 0 0 131.657143 131.657143h219.428571V73.142857z m131.84 460.8h-65.828571v65.828572h-43.885715v-65.828572h-65.828571v-43.885714h65.828571v-65.828572h43.885715v65.828572h65.828571z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M73.142857 599.771429h877.714286v43.885714H73.142857zM336.457143 380.342857h43.885714v526.628572h-43.885714z m307.2 0h43.885714v526.628572h-43.885714zM204.8 73.142857h614.4a131.657143 131.657143 0 0 1 131.657143 131.657143v614.4a131.657143 131.657143 0 0 1-131.657143 131.657143H204.8A131.657143 131.657143 0 0 1 73.142857 819.2V204.8A131.657143 131.657143 0 0 1 204.8 73.142857z m0 43.885714a87.771429 87.771429 0 0 0-87.771429 87.771429v614.4a87.588571 87.588571 0 0 0 87.771429 87.771429h614.4a87.588571 87.588571 0 0 0 87.771429-87.771429V204.8a87.771429 87.771429 0 0 0-87.771429-87.771429zM819.2 73.142857H204.8A131.657143 131.657143 0 0 0 73.142857 204.8v219.428571h877.714286v-219.428571A131.657143 131.657143 0 0 0 819.2 73.142857z m-219.428571 197.485714h-65.828572v65.828572h-43.885714v-65.828572h-65.828572v-43.885714h65.828572V160.914286h43.885714v65.828571h65.828572z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M204.8 73.142857h614.4a131.657143 131.657143 0 0 1 131.657143 131.657143v614.4a131.657143 131.657143 0 0 1-131.657143 131.657143H204.8A131.657143 131.657143 0 0 1 73.142857 819.2V204.8A131.84 131.84 0 0 1 204.8 73.142857z m0 43.885714a87.771429 87.771429 0 0 0-87.771429 87.771429v614.4a87.771429 87.771429 0 0 0 87.771429 87.771429h614.4a87.771429 87.771429 0 0 0 87.771429-87.771429V204.8a87.771429 87.771429 0 0 0-87.771429-87.771429zM73.142857 336.457143h877.714286v44.068571H73.142857zM336.64 117.028571h43.885714v526.628572h-43.885714z m307.017143 0h44.068571v526.628572H643.657143zM73.142857 599.771429v219.428571a131.657143 131.657143 0 0 0 131.657143 131.657143h614.4a131.657143 131.657143 0 0 0 131.657143-131.657143v-219.428571z m526.628572 197.485714h-65.645715v65.828571H490.057143v-65.828571h-65.828572v-43.885714h65.828572v-65.828572h44.068571v65.828572h65.645715z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M925.99596 99.038384c-25.470707-25.6-60.121212-39.822222-96.323233-39.822222H194.19798c-36.072727 0-70.723232 14.351515-96.323233 39.822222-25.6 25.6-39.822222 60.121212-39.822222 96.323232v635.474748c0 36.072727 14.351515 70.723232 39.822222 96.323232C123.474747 952.759596 158.125253 967.111111 194.19798 967.111111h635.474747c36.072727 0 70.723232-14.351515 96.323233-39.951515 25.6-25.6 39.951515-60.121212 39.951515-96.323232V195.361616c0-36.072727-14.351515-70.723232-39.951515-96.323232z m-277.850505 5.559596v226.909091H375.725253V104.59798h272.420202zM103.434343 195.361616c0-24.048485 9.567677-47.191919 26.634344-64.129293 17.066667-17.066667 40.080808-26.634343 64.129293-26.634343h136.145454v226.909091H103.434343V195.361616z m90.763637 726.367677c-24.048485 0-47.191919-9.567677-64.129293-26.634344-17.066667-17.066667-26.634343-40.080808-26.634344-64.129292V649.309091h226.909091v272.420202H194.19798z m181.527273 0V649.309091h272.290909v272.420202H375.725253z m544.711111-90.892929c0 24.048485-9.567677 47.191919-26.634344 64.129293-17.066667 17.066667-40.080808 26.634343-64.129293 26.634343H693.527273V649.309091h226.909091v181.527273zM693.527273 331.507071V104.59798h136.145454c24.048485 0 47.191919 9.567677 64.129293 26.634343 17.066667 17.066667 26.634343 40.080808 26.634344 64.129293v136.145455H693.527273z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M336.457143 73.142857h43.885714v877.714286h-43.885714z m307.382857 0h43.702857v877.714286h-43.702857z m-438.857143 0h614.4A131.657143 131.657143 0 0 1 950.857143 204.8v614.4a131.474286 131.474286 0 0 1-131.474286 131.657143h-614.4A131.657143 131.657143 0 0 1 73.142857 819.2V204.8A131.84 131.84 0 0 1 204.982857 73.142857z m0 43.885714a87.588571 87.588571 0 0 0-87.771428 87.771429v614.4a87.588571 87.588571 0 0 0 87.771428 87.771429h614.4a87.771429 87.771429 0 0 0 87.771429-87.771429V204.8a87.771429 87.771429 0 0 0-87.771429-87.771429zM73.142857 336.457143h877.714286v307.2H73.142857z m292.571429 43.885714v219.428572h292.571428v-219.428572z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M925.996 99.038c-25.47-25.6-60.121-39.822-96.323-39.822H194.198c-75.12 0.13-136.016 61.026-136.145 136.146v635.345c0 36.073 14.351 70.723 39.822 96.323 25.6 25.73 60.25 40.081 96.323 40.081h635.475c36.072 0 70.723-14.351 96.323-39.951 25.6-25.6 39.951-60.122 39.951-96.324V195.362c0-36.073-14.351-70.724-39.951-96.324z m-365.77 494.287L512 545.228l-48.226 48.097-32.194-31.935 48.355-48.226-48.226-48.097 32.194-32.194L512 480.97l48.097-48.097 32.194 32.194-48.097 48.097 48.226 48.226-32.194 31.935zM103.434 195.362c0-24.049 9.568-47.192 26.635-64.13 17.066-17.066 40.08-26.634 64.129-26.634h136.145v226.91H103.434V195.361z m0 181.656h226.91V649.31h-226.91V377.02z m90.764 544.84c-24.049 0-47.192-9.567-64.13-26.634-17.066-17.066-26.634-40.08-26.634-64.258V694.69h226.91v227.168H194.197z m726.238-90.763c0 24.048-9.438 47.192-26.505 64.259-17.066 17.066-40.21 26.634-64.258 26.505H693.527V694.69h226.91v136.404z m0-181.786H693.527V377.02h226.91v272.29zM693.527 331.507V104.598h136.146c24.048 0 47.192 9.438 64.258 26.505 17.067 17.067 26.635 40.21 26.505 64.259v136.145H693.527z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M925.99596 99.038384c-25.470707-25.6-60.121212-39.822222-96.323233-39.822222H194.19798c-36.072727 0-70.723232 14.351515-96.323233 39.822222-25.6 25.6-39.822222 60.121212-39.822222 96.323232v635.474748c0 36.072727 14.351515 70.723232 39.822222 96.323232C123.474747 952.759596 158.125253 967.111111 194.19798 967.111111h635.474747c36.072727 0 70.723232-14.351515 96.323233-39.951515 25.6-25.6 39.951515-60.121212 39.951515-96.323232V195.361616c0-36.072727-14.351515-70.723232-39.951515-96.323232z m-550.270707 5.559596h272.290909v227.167677H375.725253V104.59798z m56.242424 360.468687l31.935353-32.19394 48.09697 48.226263 48.09697-48.226263 32.193939 32.19394-48.09697 48.096969 48.226263 48.226263-32.193939 31.935354-48.226263-48.09697-48.226263 48.09697-31.935353-31.935354 48.226262-48.226263-48.096969-48.096969zM103.434343 195.361616c0-24.048485 9.567677-47.191919 26.634344-64.129293 17.066667-17.066667 40.080808-26.634343 64.129293-26.634343h136.145454v227.167677H103.434343V195.361616z m817.002021 635.733333c0 24.048485-9.567677 47.191919-26.634344 64.258586-17.066667 17.066667-40.080808 26.634343-64.129293 26.634344H194.19798c-24.048485 0-47.191919-9.567677-64.258586-26.634344C112.872727 878.157576 103.434343 855.014141 103.434343 830.836364V694.690909h226.909091v226.909091h45.381819V694.690909h272.290909v226.909091h45.381818V694.690909h226.909091v136.40404z m0-499.329292H693.527273V104.59798h136.145454c24.048485 0 47.191919 9.567677 64.129293 26.634343 17.066667 17.066667 26.634343 40.080808 26.634344 64.129293v136.404041z"/></svg>'},function(e,t){e.exports='<?xml version="1.0" standalone="no"?><!doctype html><svg class=icon width=20px height=20.00px viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg><path fill=#595959 d="M764.42168889 830.5152c0 30.23530667-24.61013333 54.84430222-54.84316444 54.84430222H314.42147555c-30.23416889 0-54.84316445-24.61013333-54.84316444-54.84430222V248.32796445h504.84337778v582.18723555zM369.26577778 149.89084445c0-6.32832 4.92202667-11.25034667 11.25034667-11.25034667H644.18702222c6.32832 0 11.25034667 4.92202667 11.25034667 11.25034667v33.04675555H369.26577778V149.89084445z m559.68768 33.04675555H720.82773333V149.89084445c0-42.1888-34.45191111-76.64071111-76.64071111-76.64071112H380.51612445c-42.1888 0-76.64071111 34.45191111-76.64071112 76.64071112v33.04675555h-208.82773333c-18.28181333 0-33.04789333 14.76608-33.04789333 33.04675555s14.76608 33.04675555 33.04675555 33.04675556h98.43825778v581.48408889c0 66.79779555 54.14001778 120.93781333 120.93667555 120.93781333h395.1570489c66.79665778 0 120.93667555-54.14001778 120.93667555-120.93781333V248.32796445h98.43825778c18.28067555 0 33.04675555-14.76494222 33.04675555-33.04675556s-14.76608-32.34360889-33.04675555-32.34360889zM512 786.21923555c18.28181333 0 33.04675555-14.76608 33.04675555-33.04789333v-351.56195555c0-18.28181333-14.76494222-33.04675555-33.04675555-33.04675556s-33.04675555 14.76494222-33.04675555 33.04675556v351.56195555c0 18.28181333 14.76494222 33.04789333 33.04675555 33.04789333m-153.98456889 0c18.28181333 0 33.04675555-14.76608 33.04675556-33.04789333v-351.56195555c0-18.28181333-14.76494222-33.04675555-33.04675556-33.04675556s-33.04675555 14.76494222-33.04675556 33.04675556v351.56195555c0.70314667 18.28181333 15.46922667 33.04789333 33.04675556 33.04789333m307.96913778 0c18.28067555 0 33.04675555-14.76608 33.04675556-33.04789333v-351.56195555c0-18.28181333-14.76608-33.04675555-33.04675556-33.04675556s-33.04675555 14.76494222-33.04675556 33.04675556v351.56195555c0 18.28181333 14.76494222 33.04789333 33.04675556 33.04789333"/></svg>'},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);function o(e,t){if("object"===typeof t)for(let n in t)e.style[n]=t[n]}function a(e,t){let n=t.getBoundingClientRect();return{x:e.x-n.x-t.scrollLeft,y:e.y-n.y-t.scrollTop,x1:e.x-n.x-t.scrollLeft+e.width,y1:e.y-n.y-t.scrollTop+e.height,width:e.width,height:e.height}}function s(e,t){return e&&Object.keys(e).reduce((n,r)=>t.includes(r)?n:Object.assign({},n,{[r]:e[r]}),{})}function l(e){let t;if(t=e.path||e.composedPath&&e.composedPath(),void 0==t&&e.target){t=[];let n=e.target;t.push(n);while(n&&n.parentNode)n=n.parentNode,t.push(n)}return t}function u(e){var t=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var n=e.toString().match(/\d+/g),r="#",i=0;i<3;i++)r+=("0"+Number(n[i]).toString(16)).slice(-2);return r}if(t.test(e)){var o=e.replace(/#/,"").split("");if(6===o.length)return e;if(3===o.length){var a="#";for(i=0;i<o.length;i+=1)a+=o[i]+o[i];return a}}return e}const c=12,f=12,d=50,h="#35A7ED";class p{constructor(e,t,n){if(!e)return null;this.table=e,this.quill=t,this.options=n,this.domNode=null,this.initColTool()}initColTool(){const e=this.quill.root.parentNode,t=(this.table.getBoundingClientRect(),e.getBoundingClientRect()),n=this.table.parentNode.getBoundingClientRect();this.domNode=document.createElement("div"),this.domNode.classList.add("qlbt-col-tool"),this.updateToolCells(),e.appendChild(this.domNode),o(this.domNode,{width:"".concat(n.width,"px"),height:"".concat(c,"px"),left:"".concat(n.left-t.left+e.scrollLeft,"px"),top:"".concat(n.top-t.top+e.scrollTop-c-5,"px")})}createToolCell(){const e=document.createElement("div");e.classList.add("qlbt-col-tool-cell");const t=document.createElement("div");return t.classList.add("qlbt-col-tool-cell-holder"),o(e,{height:"".concat(f,"px")}),e.appendChild(t),e}updateToolCells(){const e=i.a.find(this.table),t=e.children.tail.children.head.children,n=e.colGroup().children,r=g(t);let a=Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"));for(let i=0;i<Math.max(r,a.length);i++){let e=n.at(i),t=e&&parseInt(e.formats()[e.statics.blotName].width,10),s=null;a[i]?a[i]&&i>=r?a[i].remove():(s=a[i],o(s,{"min-width":"".concat(t,"px")})):(s=this.createToolCell(),this.domNode.appendChild(s),this.addColCellHolderHandler(s),o(s,{"min-width":"".concat(t,"px")}))}}destroy(){return this.domNode.remove(),null}addColCellHolderHandler(e){const t=i.a.find(this.table),n=e.querySelector(".qlbt-col-tool-cell-holder");let r=!1,a=0,s=0,l=0,u=0,f={},p={},g=null;const m=e=>{e.preventDefault(),r&&(s=e.clientX,l=u+s-a>=d?s-a:d-u,o(g,{left:"".concat(p.left+p.width-1+l,"px")}))},v=i=>{i.preventDefault();const c=Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell")),d=c.indexOf(e),h=t.colGroup().children.at(d);r&&(h.format("width",u+l),o(e,{"min-width":"".concat(u+l,"px")}),a=0,s=0,l=0,u=0,r=!1,n.classList.remove("dragging")),document.removeEventListener("mousemove",m,!1),document.removeEventListener("mouseup",v,!1),f={},p={},g.remove(),g=null,t.updateTableWidth();const y=this.quill.getModule("better-table").tableSelection;y&&y.clearSelection()},y=t=>{document.addEventListener("mousemove",m,!1),document.addEventListener("mouseup",v,!1),f=this.table.getBoundingClientRect(),p=e.getBoundingClientRect(),g=document.createElement("div"),o(g,{position:"fixed",top:"".concat(p.top,"px"),left:"".concat(p.left+p.width-1,"px"),zIndex:"100",height:"".concat(f.height+c+4,"px"),width:"1px",backgroundColor:h}),document.body.appendChild(g),r=!0,a=t.clientX,u=p.width,n.classList.add("dragging")};n.addEventListener("mousedown",y,!1)}colToolCells(){return Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"))}}function g(e){return e.reduce((e,t)=>{const n=t.formats().colspan;return e+=parseInt(n,10),e},0)}const m=i.a.import("blots/block");class v extends m{static create(e){"string"===typeof e&&(e={value:e});const t=super.create(e.value);return S.forEach(n=>{e[n]&&t.setAttribute("data-".concat(n),e[n])}),C.forEach(n=>{e[n]&&t.setAttribute("data-".concat(n),e[n])}),t}static formats(e){const t={};return t.value=this.tagName.indexOf(e.tagName)+1,C.concat(S).reduce((t,n)=>(e.hasAttribute("data-".concat(n))&&(t[n]=e.getAttribute("data-".concat(n))||void 0),t),t)}format(e,t){const{row:n,cell:r,rowspan:i,colspan:o}=v.formats(this.domNode);e===v.blotName?t?super.format(e,{value:t,row:n,cell:r,rowspan:i,colspan:o}):n?this.replaceWith(A.blotName,{row:n,cell:r,rowspan:i,colspan:o}):super.format(e,t):super.format(e,t)}optimize(e){const{row:t,rowspan:n,colspan:r}=v.formats(this.domNode);if(!t||this.parent instanceof T||this.wrap(T.blotName,{row:t,colspan:r,rowspan:n}),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove();this.cache={}}}v.blotName="header",v.tagName=["H1","H2","H3","H4","H5","H6"];var y=v;const b=i.a.import("blots/break"),_=i.a.import("blots/block"),w=i.a.import("blots/container"),x=["width"],O={width:100},S=["row","cell"],C=["rowspan","colspan"],k={rowspan:1,colspan:1},E=5;class A extends _{static create(e){const t=super.create(e);return S.forEach(n=>{let r="row"===n?N:R;t.setAttribute("data-".concat(n),e[n]||r())}),C.forEach(n=>{t.setAttribute("data-".concat(n),e[n]||k[n])}),e["cell-bg"]&&t.setAttribute("data-cell-bg",e["cell-bg"]),t}static formats(e){const t={};return C.concat(S).concat(["cell-bg"]).reduce((t,n)=>(e.hasAttribute("data-".concat(n))&&(t[n]=e.getAttribute("data-".concat(n))||void 0),t),t)}format(e,t){if(C.concat(S).indexOf(e)>-1)t?this.domNode.setAttribute("data-".concat(e),t):this.domNode.removeAttribute("data-".concat(e));else if("cell-bg"===e)t?this.domNode.setAttribute("data-cell-bg",t):this.domNode.removeAttribute("data-cell-bg");else if("header"===e){if(!t)return;const{row:n,cell:r,rowspan:i,colspan:o}=A.formats(this.domNode);super.format(e,{value:t,row:n,cell:r,rowspan:i,colspan:o})}else super.format(e,t)}optimize(e){const t=this.domNode.getAttribute("data-row"),n=this.domNode.getAttribute("data-rowspan"),r=this.domNode.getAttribute("data-colspan"),i=this.domNode.getAttribute("data-cell-bg");!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName,{row:t,colspan:r,rowspan:n,"cell-bg":i}),super.optimize(e)}tableCell(){return this.parent}}A.blotName="table-cell-line",A.className="qlbt-cell-line",A.tagName="P";class T extends w{checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const e=this.children.head.formats()[this.children.head.statics.blotName],t=this.children.tail.formats()[this.children.tail.statics.blotName],n=this.next.children.head.formats()[this.next.children.head.statics.blotName],r=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return e.cell===t.cell&&e.cell===n.cell&&e.cell===r.cell}return!1}static create(e){const t=super.create(e);return t.setAttribute("data-row",e.row),C.forEach(n=>{e[n]&&t.setAttribute(n,e[n])}),e["cell-bg"]&&(t.setAttribute("data-cell-bg",e["cell-bg"]),t.style.backgroundColor=e["cell-bg"]),t}static formats(e){const t={};return e.hasAttribute("data-row")&&(t["row"]=e.getAttribute("data-row")),e.hasAttribute("data-cell-bg")&&(t["cell-bg"]=e.getAttribute("data-cell-bg")),C.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),t)}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}formats(){const e={};return this.domNode.hasAttribute("data-row")&&(e["row"]=this.domNode.getAttribute("data-row")),this.domNode.hasAttribute("data-cell-bg")&&(e["cell-bg"]=this.domNode.getAttribute("data-cell-bg")),C.reduce((e,t)=>(this.domNode.hasAttribute(t)&&(e[t]=this.domNode.getAttribute(t)),e),e)}toggleAttribute(e,t){t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e)}formatChildren(e,t){this.children.forEach(n=>{n.format(e,t)})}format(e,t){C.indexOf(e)>-1?(this.toggleAttribute(e,t),this.formatChildren(e,t)):["row"].indexOf(e)>-1?(this.toggleAttribute("data-".concat(e),t),this.formatChildren(e,t)):"cell-bg"===e?(this.toggleAttribute("data-cell-bg",t),this.formatChildren(e,t),this.domNode.style.backgroundColor=t||"initial"):super.format(e,t)}optimize(e){const t=this.domNode.getAttribute("data-row");!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName,{row:t}),super.optimize(e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}T.blotName="table",T.tagName="TD";class D extends w{checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),r=this.next.children.tail.formats();return e.row===t.row&&e.row===n.row&&e.row===r.row}return!1}static create(e){const t=super.create(e);return t.setAttribute("data-row",e.row),t}formats(){return["row"].reduce((e,t)=>(this.domNode.hasAttribute("data-".concat(t))&&(e[t]=this.domNode.getAttribute("data-".concat(t))),e),{})}optimize(e){!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}D.blotName="table-row",D.tagName="TR";class M extends w{}M.blotName="table-body",M.tagName="TBODY";class P extends _{static create(e){let t=super.create(e);return x.forEach(n=>{t.setAttribute("".concat(n),e[n]||O[n])}),t}static formats(e){return x.reduce((t,n)=>(e.hasAttribute("".concat(n))&&(t[n]=e.getAttribute("".concat(n))||void 0),t),{})}format(e,t){x.indexOf(e)>-1?this.domNode.setAttribute("".concat(e),t||O[e]):super.format(e,t)}html(){return this.domNode.outerHTML}}P.blotName="table-col",P.tagName="col";class I extends w{}I.blotName="table-col-group",I.tagName="colgroup";class j extends w{static create(){let e=super.create();return e}constructor(e,t){super(e,t),this.updateTableWidth()}updateTableWidth(){setTimeout(()=>{const e=this.colGroup();if(!e)return;const t=e.children.reduce((e,t)=>(e+=parseInt(t.formats()[P.blotName].width,10),e),0);this.domNode.style.width="".concat(t,"px")},0)}cells(e){return this.rows().map(t=>t.children.at(e))}colGroup(){return this.children.head}deleteColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const[r]=this.descendants(M);if(null==r||null==r.children.head)return;const i=this.descendants(T),o=[],s=[];if(i.forEach(t=>{const r=a(t.domNode.getBoundingClientRect(),n);r.x+E>e.x&&r.x1-E<e.x1?o.push(t):r.x<e.x+E&&r.x1>e.x1-E&&s.push(t)}),o.length===i.length)return this.tableDestroy(),!0;t.forEach(e=>{this.colGroup().children.at(t[0]).remove()}),o.forEach(e=>{e.remove()}),s.forEach(e=>{const n=parseInt(e.formats().colspan,10);parseInt(e.formats().width,10),e.format("colspan",n-t.length)}),this.updateTableWidth()}deleteRow(e,t){const[n]=this.descendants(M);if(null==n||null==n.children.head)return;const r=this.descendants(T),i=this.descendants(D),o=[],s=[],l=[],u=i.filter(n=>{const r=a(n.domNode.getBoundingClientRect(),t);return r.y>e.y-E&&r.y1<e.y1+E});if(r.forEach(n=>{const r=a(n.domNode.getBoundingClientRect(),t);r.y>e.y-E&&r.y1<e.y1+E?o.push(n):r.y<e.y+E&&r.y1>e.y1-E&&(s.push(n),Math.abs(r.y-e.y)<E&&l.push(n))}),o.length===r.length)return void this.tableDestroy();const c=this.rows().reduce((n,r)=>{let i=a(r.domNode.getBoundingClientRect(),t);return i.y>e.y-E&&i.y1<e.y1+E&&(n+=1),n},0);l.forEach(e=>{const n=a(e.domNode.getBoundingClientRect(),t),r=e.parent.next,i=r.children,o=i.reduce((e,r)=>{const i=a(r.domNode.getBoundingClientRect(),t);return Math.abs(n.x1-i.x)<E&&(e=r),e},null);r.insertBefore(e,o),e.format("row",r.formats().row)}),o.forEach(e=>{e.remove()}),s.forEach(e=>{const t=parseInt(e.formats().rowspan,10);e.format("rowspan",t-c)}),u.forEach(e=>e.remove())}tableDestroy(){const e=i.a.find(this.scroll.domNode.parentNode),t=e.getModule("better-table");this.remove(),t.hideTableTools(),e.update(i.a.sources.USER)}insertCell(e,t){const n=R(),r=e.formats().row,i=this.scroll.create(T.blotName,Object.assign({},k,{row:r})),o=this.scroll.create(A.blotName,{row:r,cell:n});i.appendChild(o),t?e.insertBefore(i,t):e.appendChild(i)}insertColumn(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;const[i]=this.descendants(M),[o]=this.descendants(I),s=this.descendants(P);let l=[],u=[],c=[];if(null==i||null==i.children.head)return;const f=this.descendants(T);f.forEach(t=>{const i=a(t.domNode.getBoundingClientRect(),r);n?Math.abs(i.x1-e.x1)<E?l.push(t):e.x1-i.x>E&&e.x1-i.x1<-E&&u.push(t):Math.abs(i.x-e.x)<E?l.push(t):e.x-i.x>E&&e.x-i.x1<-E&&u.push(t)}),l.forEach(e=>{const t=n?e.next:e,r=R(),i=e.parent,o=i.formats().row,a=e.formats(),s=this.scroll.create(T.blotName,Object.assign({},k,{row:o,rowspan:a.rowspan})),l=this.scroll.create(A.blotName,{row:o,cell:r,rowspan:a.rowspan});s.appendChild(l),t?i.insertBefore(s,t):i.appendChild(s),c.push(s)});const d=this.scroll.create(P.blotName,!0);let h=n?s[t].next:s[t];return h?o.insertBefore(d,h):o.appendChild(d),u.forEach(e=>{const t=e.formats().colspan;e.format("colspan",parseInt(t,10)+1),c.push(e)}),c.sort((e,t)=>{let n=e.domNode.getBoundingClientRect().y,r=t.domNode.getBoundingClientRect().y;return n-r}),this.updateTableWidth(),c}insertRow(e,t,n){const[r]=this.descendants(M);if(null==r||null==r.children.head)return;const i=this.descendants(T),o=N(),s=this.scroll.create(D.blotName,{row:o});let l=[],u=[],c=[];i.forEach(r=>{const i=a(r.domNode.getBoundingClientRect(),n);t?Math.abs(i.y1-e.y1)<E?l.push(r):e.y1-i.y>E&&e.y1-i.y1<-E&&u.push(r):Math.abs(i.y-e.y)<E?l.push(r):e.y-i.y>E&&e.y-i.y1<-E&&u.push(r)});const f=(e,t)=>{let n=e.domNode.getBoundingClientRect().x,r=t.domNode.getBoundingClientRect().x;return n-r};l.sort(f),l.forEach(e=>{const t=R(),n=e.formats(),r=this.scroll.create(T.blotName,Object.assign({},k,{row:o,colspan:n.colspan})),i=this.scroll.create(A.blotName,{row:o,cell:t,colspan:n.colspan}),a=this.scroll.create(b.blotName);i.appendChild(a),r.appendChild(i),s.appendChild(r),c.push(r)}),u.forEach(e=>{const t=parseInt(e.formats().rowspan,10);e.format("rowspan",t+1),c.push(e)});const d=this.rows().find(r=>{let i=a(r.domNode.getBoundingClientRect(),n);return t?Math.abs(i.y-e.y-e.height)<E:Math.abs(i.y-e.y)<E});return r.insertBefore(s,d),c.sort(f),c}mergeCells(e,t,n,r,i){const o=t.reduce((e,t,i)=>(0!==i?(e&&t.moveChildren(e),t.remove()):(t.format("colspan",r),t.format("rowspan",n),e=t),e),null);let a=o.domNode.getAttribute("data-row"),s=o.children.head.domNode.getAttribute("data-cell");return o.children.forEach(e=>{e.format("cell",s),e.format("row",a),e.format("colspan",r),e.format("rowspan",n)}),o}unmergeCells(e,t){let n={},r=1,i=1;e.forEach(e=>{if(n=e.formats(),r=n.rowspan,i=n.colspan,i>1){let t=e.next,n=e.row();e.format("colspan",1);for(let e=i;e>1;e--)this.insertCell(n,t)}if(r>1){let n=r,o=e.row().next;while(n>1){let r=o.children.reduce((n,r)=>{let i=a(e.domNode.getBoundingClientRect(),t),o=a(r.domNode.getBoundingClientRect(),t);return Math.abs(i.x1-o.x)<E&&(n=r),n},null);for(let e=i;e>0;e--)this.insertCell(o,r);n-=1,o=o.next}e.format("rowspan",1)}})}rows(){const e=this.children.tail;return null==e?[]:e.children.map(e=>e)}}j.blotName="table-container",j.className="quill-better-table",j.tagName="TABLE";class L extends w{constructor(e,t){super(e,t);const n=i.a.find(e.domNode.parentNode);t.addEventListener("scroll",e=>{const t=n.getModule("better-table");t.columnTool&&(t.columnTool.domNode.scrollLeft=e.target.scrollLeft),t.tableSelection&&t.tableSelection.selectedTds.length>0&&t.tableSelection.repositionHelpLines()},!1)}table(){return this.children.head}}function N(){const e=Math.random().toString(36).slice(2,6);return"row-".concat(e)}function R(){const e=Math.random().toString(36).slice(2,6);return"cell-".concat(e)}L.blotName="table-view",L.className="quill-better-table-wrapper",L.tagName="DIV",L.allowedChildren=[j],j.requiredContainer=L,j.allowedChildren=[M,I],M.requiredContainer=j,M.allowedChildren=[D],D.requiredContainer=M,D.allowedChildren=[T],T.requiredContainer=D,T.allowedChildren=[A,y],A.requiredContainer=T,I.allowedChildren=[P],I.requiredContainer=j,P.requiredContainer=I;const B="#0589f3",$=["left","right","top","bottom"],F=2;class z{constructor(e,t,n){if(!e)return null;this.table=e,this.quill=t,this.options=n,this.boundary={},this.selectedTds=[],this.dragging=!1,this.selectingHandler=this.mouseDownHandler.bind(this),this.clearSelectionHandler=this.clearSelection.bind(this),this.helpLinesInitial(),this.quill.root.addEventListener("mousedown",this.selectingHandler,!1),this.quill.on("text-change",this.clearSelectionHandler)}helpLinesInitial(){let e=this.quill.root.parentNode;$.forEach(t=>{this[t]=document.createElement("div"),this[t].classList.add("qlbt-selection-line"),this[t].classList.add("qlbt-selection-line-"+t),o(this[t],{position:"absolute",display:"none","background-color":B}),e.appendChild(this[t])})}mouseDownHandler(e){if(0!==e.button||!e.target.closest(".quill-better-table"))return;this.quill.root.addEventListener("mousemove",i,!1),this.quill.root.addEventListener("mouseup",o,!1);const t=this,n=e.target.closest("td[data-row]"),r=a(n.getBoundingClientRect(),this.quill.root.parentNode);function i(e){if(0!==e.button||!e.target.closest(".quill-better-table"))return;const i=e.target.closest("td[data-row]"),o=a(i.getBoundingClientRect(),t.quill.root.parentNode);t.boundary=q(r,o),t.correctBoundary(),t.selectedTds=t.computeSelectedTds(),t.repositionHelpLines(),n!==i&&t.quill.blur()}function o(e){t.quill.root.removeEventListener("mousemove",i,!1),t.quill.root.removeEventListener("mouseup",o,!1),t.dragging=!1}this.dragging=!0,this.boundary=q(r,r),this.correctBoundary(),this.selectedTds=this.computeSelectedTds(),this.repositionHelpLines()}correctBoundary(){const e=i.a.find(this.table),t=e.descendants(T);t.forEach(e=>{let{x:t,y:n,width:r,height:i}=a(e.domNode.getBoundingClientRect(),this.quill.root.parentNode),o=(t+F>=this.boundary.x&&t+F<=this.boundary.x1||t-F+r>=this.boundary.x&&t-F+r<=this.boundary.x1)&&(n+F>=this.boundary.y&&n+F<=this.boundary.y1||n-F+i>=this.boundary.y&&n-F+i<=this.boundary.y1);o&&(this.boundary=q(this.boundary,{x:t,y:n,width:r,height:i}))})}computeSelectedTds(){const e=i.a.find(this.table),t=e.descendants(T);return t.reduce((e,t)=>{let{x:n,y:r,width:i,height:o}=a(t.domNode.getBoundingClientRect(),this.quill.root.parentNode),s=n+F>=this.boundary.x&&n-F+i<=this.boundary.x1&&r+F>=this.boundary.y&&r-F+o<=this.boundary.y1;return s&&e.push(t),e},[])}repositionHelpLines(){const e=this.table.parentNode.scrollLeft;o(this.left,{display:"block",left:"".concat(this.boundary.x-e-1,"px"),top:"".concat(this.boundary.y,"px"),height:"".concat(this.boundary.height+1,"px"),width:"1px"}),o(this.right,{display:"block",left:"".concat(this.boundary.x1-e,"px"),top:"".concat(this.boundary.y,"px"),height:"".concat(this.boundary.height+1,"px"),width:"1px"}),o(this.top,{display:"block",left:"".concat(this.boundary.x-1-e,"px"),top:"".concat(this.boundary.y,"px"),width:"".concat(this.boundary.width+1,"px"),height:"1px"}),o(this.bottom,{display:"block",left:"".concat(this.boundary.x-1-e,"px"),top:"".concat(this.boundary.y1+1,"px"),width:"".concat(this.boundary.width+1,"px"),height:"1px"})}refreshHelpLinesPosition(){const e=a(this.selectedTds[0].domNode.getBoundingClientRect(),this.quill.root.parentNode),t=a(this.selectedTds[this.selectedTds.length-1].domNode.getBoundingClientRect(),this.quill.root.parentNode);this.boundary=q(e,t),this.repositionHelpLines()}destroy(){return $.forEach(e=>{this[e].remove(),this[e]=null}),this.quill.root.removeEventListener("mousedown",this.selectingHandler,!1),this.quill.off("text-change",this.clearSelectionHandler),null}setSelection(e,t){this.boundary=q(a(e,this.quill.root.parentNode),a(t,this.quill.root.parentNode)),this.correctBoundary(),this.selectedTds=this.computeSelectedTds(),this.repositionHelpLines()}clearSelection(){this.boundary={},this.selectedTds=[],$.forEach(e=>{this[e]&&o(this[e],{display:"none"})})}}function q(e,t){let n=Math.min(e.x,t.x,e.x+e.width-1,t.x+t.width-1),r=Math.max(e.x,t.x,e.x+e.width-1,t.x+t.width-1),i=Math.min(e.y,t.y,e.y+e.height-1,t.y+t.height-1),o=Math.max(e.y,t.y,e.y+e.height-1,t.y+t.height-1),a=r-n,s=o-i;return{x:n,x1:r,y:i,y1:o,width:a,height:s}}var U=n(1),H=n.n(U),V=n(2),W=n.n(V),K=n(3),G=n.n(K),Y=n(4),X=n.n(Y),Z=n(5),Q=n.n(Z),J=n(6),ee=n.n(J),te=n(7),ne=n.n(te),re=n(8),ie=n.n(re),oe=n(9),ae=n.n(oe);const se=150,le=200,ue=5,ce=["white","red","yellow","blue"],fe="Background Colors",de={insertColumnRight:{text:"Insert column right",iconSrc:H.a,handler(){const e=i.a.find(this.table);let t=pe(this.columnToolCells,this.boundary,(e,t)=>Math.abs(e.x+e.width-t.x1)<=ue,this.quill.root.parentNode);const n=e.insertColumn(this.boundary,t,!0,this.quill.root.parentNode);this.tableColumnTool.updateToolCells(),this.quill.update(i.a.sources.USER),this.quill.setSelection(this.quill.getIndex(n[0]),0,i.a.sources.SILENT),this.tableSelection.setSelection(n[0].domNode.getBoundingClientRect(),n[0].domNode.getBoundingClientRect())}},insertColumnLeft:{text:"Insert column left",iconSrc:W.a,handler(){const e=i.a.find(this.table);let t=pe(this.columnToolCells,this.boundary,(e,t)=>Math.abs(e.x-t.x)<=ue,this.quill.root.parentNode);const n=e.insertColumn(this.boundary,t,!1,this.quill.root.parentNode);this.tableColumnTool.updateToolCells(),this.quill.update(i.a.sources.USER),this.quill.setSelection(this.quill.getIndex(n[0]),0,i.a.sources.SILENT),this.tableSelection.setSelection(n[0].domNode.getBoundingClientRect(),n[0].domNode.getBoundingClientRect())}},insertRowUp:{text:"Insert row up",iconSrc:G.a,handler(){const e=i.a.find(this.table),t=e.insertRow(this.boundary,!1,this.quill.root.parentNode);this.quill.update(i.a.sources.USER),this.quill.setSelection(this.quill.getIndex(t[0]),0,i.a.sources.SILENT),this.tableSelection.setSelection(t[0].domNode.getBoundingClientRect(),t[0].domNode.getBoundingClientRect())}},insertRowDown:{text:"Insert row down",iconSrc:X.a,handler(){const e=i.a.find(this.table),t=e.insertRow(this.boundary,!0,this.quill.root.parentNode);this.quill.update(i.a.sources.USER),this.quill.setSelection(this.quill.getIndex(t[0]),0,i.a.sources.SILENT),this.tableSelection.setSelection(t[0].domNode.getBoundingClientRect(),t[0].domNode.getBoundingClientRect())}},mergeCells:{text:"Merge selected cells",iconSrc:Q.a,handler(){const e=i.a.find(this.table),t=e.rows().reduce((e,t)=>{let n=a(t.domNode.getBoundingClientRect(),this.quill.root.parentNode);return n.y>this.boundary.y-ue&&n.y+n.height<this.boundary.y+this.boundary.height+ue&&(e+=1),e},0),n=this.columnToolCells.reduce((e,t)=>{let n=a(t.getBoundingClientRect(),this.quill.root.parentNode);return n.x>this.boundary.x-ue&&n.x+n.width<this.boundary.x+this.boundary.width+ue&&(e+=1),e},0),r=e.mergeCells(this.boundary,this.selectedTds,t,n,this.quill.root.parentNode);this.quill.update(i.a.sources.USER),this.tableSelection.setSelection(r.domNode.getBoundingClientRect(),r.domNode.getBoundingClientRect())}},unmergeCells:{text:"Unmerge cells",iconSrc:ee.a,handler(){const e=i.a.find(this.table);e.unmergeCells(this.selectedTds,this.quill.root.parentNode),this.quill.update(i.a.sources.USER),this.tableSelection.clearSelection()}},deleteColumn:{text:"Delete selected columns",iconSrc:ne.a,handler(){const e=i.a.find(this.table);let t=ge(this.columnToolCells,this.boundary,(e,t)=>e.x+ue>t.x&&e.x+e.width-ue<t.x1,this.quill.root.parentNode),n=e.deleteColumns(this.boundary,t,this.quill.root.parentNode);n||(this.tableColumnTool.updateToolCells(),this.quill.update(i.a.sources.USER),this.tableSelection.clearSelection())}},deleteRow:{text:"Delete selected rows",iconSrc:ie.a,handler(){const e=i.a.find(this.table);e.deleteRow(this.boundary,this.quill.root.parentNode),this.quill.update(i.a.sources.USER),this.tableSelection.clearSelection()}},deleteTable:{text:"Delete table",iconSrc:ae.a,handler(){const e=this.quill.getModule("better-table"),t=i.a.find(this.table);e.hideTableTools(),t.remove(),this.quill.update(i.a.sources.USER)}}};class he{constructor(e,t,n){const r=t.getModule("better-table");this.tableSelection=r.tableSelection,this.table=e.table,this.quill=t,this.options=n,this.menuItems=Object.assign({},de,n.items),this.tableColumnTool=r.columnTool,this.boundary=this.tableSelection.boundary,this.selectedTds=this.tableSelection.selectedTds,this.destroyHandler=this.destroy.bind(this),this.columnToolCells=this.tableColumnTool.colToolCells(),this.colorSubTitle=n.color&&n.color.text?n.color.text:fe,this.cellColors=n.color&&n.color.colors?n.color.colors:ce,this.menuInitial(e),this.mount(),document.addEventListener("click",this.destroyHandler,!1)}mount(){document.body.appendChild(this.domNode)}destroy(){return this.domNode.remove(),document.removeEventListener("click",this.destroyHandler,!1),null}menuInitial(e){let{table:t,left:n,top:r}=e;this.domNode=document.createElement("div"),this.domNode.classList.add("qlbt-operation-menu"),o(this.domNode,{position:"absolute",left:"".concat(n,"px"),top:"".concat(r,"px"),"min-height":"".concat(se,"px"),width:"".concat(le,"px")});for(let o in this.menuItems)this.menuItems[o]&&(this.domNode.appendChild(this.menuItemCreator(Object.assign({},de[o],this.menuItems[o]))),["insertRowDown","unmergeCells"].indexOf(o)>-1&&this.domNode.appendChild(i()));function i(){const e=document.createElement("div");return e.classList.add("qlbt-operation-menu-dividing"),e}function a(e){const t=document.createElement("div");return t.classList.add("qlbt-operation-menu-subtitle"),t.innerText=e,t}this.options.color&&!1!==this.options.color&&(this.domNode.appendChild(i()),this.domNode.appendChild(a(this.colorSubTitle)),this.domNode.appendChild(this.colorsItemCreator(this.cellColors)))}colorsItemCreator(e){const t=this,n=document.createElement("div");function r(e){const n=document.createElement("div");return n.classList.add("qlbt-operation-color-picker-item"),n.setAttribute("data-color",e),n.style.backgroundColor=e,n.addEventListener("click",(function(){const n=t.tableSelection.selectedTds;n&&n.length>0&&n.forEach(t=>{t.format("cell-bg",e)})}),!1),n}return n.classList.add("qlbt-operation-color-picker"),e.forEach(e=>{let t=r(e);n.appendChild(t)}),n}menuItemCreator(e){let{text:t,iconSrc:n,handler:r}=e;const i=document.createElement("div");i.classList.add("qlbt-operation-menu-item");const o=document.createElement("span");o.classList.add("qlbt-operation-menu-icon"),o.innerHTML=n;const a=document.createElement("span");return a.classList.add("qlbt-operation-menu-text"),a.innerText=t,i.appendChild(o),i.appendChild(a),i.addEventListener("click",r.bind(this),!1),i}}function pe(e,t,n,r){return e.reduce((i,o)=>{let s=a(o.getBoundingClientRect(),r);return n(s,t)&&(i=e.indexOf(o)),i},!1)}function ge(e,t,n,r){return e.reduce((i,o)=>{let s=a(o.getBoundingClientRect(),r);return n(s,t)&&i.push(e.indexOf(o)),i},[])}const me=i.a.import("delta");function ve(e,t,n){const r=e.parentNode,i="TABLE"===r.parentNode.tagName?r.parentNode:r.parentNode.parentNode,o=Array.from(i.querySelectorAll("tr")),a=Array.from(r.querySelectorAll("td")),l=o.indexOf(r)+1,c=a.indexOf(e)+1,f=e.getAttribute("colspan")||!1,d=e.getAttribute("rowspan")||!1,h=e.getAttribute("data-cell-bg")||e.style.backgroundColor;return 0===t.length()?(t=(new me).insert("\n",{"table-cell-line":{row:l,cell:c,rowspan:d,colspan:f}}),t):(t=t.reduce((e,t)=>{if(t.insert&&"string"===typeof t.insert){const n=[];let r=t.insert,i=0;for(let e=0;e<t.insert.length;e++)"\n"===r.charAt(e)&&(0===e||n.push(r.substring(i,e)),n.push("\n"),i=e+1);const o=r.substring(i);o&&n.push(o),n.forEach(n=>{"\n"===n?e.insert("\n",t.attributes):e.insert(n,s(t.attributes,["table","table-cell-line"]))})}else e.insert(t.insert,t.attributes);return e},new me),t.reduce((e,t)=>(t.insert&&"string"===typeof t.insert&&t.insert.startsWith("\n")?e.insert(t.insert,Object.assign({},Object.assign({},{row:l},t.attributes.table),{"table-cell-line":{row:l,cell:c,rowspan:d,colspan:f,"cell-bg":h}},s(t.attributes,["table"]))):t.attributes&&t.attributes.background&&t.attributes.background===u(h)?e.insert(t.insert,Object.assign({},s(t.attributes,["table","table-cell-line","background"]))):e.insert(t.insert,Object.assign({},s(t.attributes,["table","table-cell-line"]))),e),new me))}function ye(e,t,n){const r=e.parentNode,i="TABLE"===r.parentNode.tagName?r.parentNode:r.parentNode.parentNode,o=Array.from(i.querySelectorAll("tr")),a=Array.from(r.querySelectorAll("th")),l=o.indexOf(r)+1,u=a.indexOf(e)+1,c=e.getAttribute("colspan")||!1,f=e.getAttribute("rowspan")||!1;return 0===t.length()?(t=(new me).insert("\n",{"table-cell-line":{row:l,cell:u,rowspan:f,colspan:c}}),t):(t=t.reduce((e,t)=>{if(t.insert&&"string"===typeof t.insert){const n=[];let r=t.insert,i=0;for(let e=0;e<t.insert.length;e++)"\n"===r.charAt(e)&&(0===e||n.push(r.substring(i,e)),n.push("\n"),i=e+1);const o=r.substring(i);o&&n.push(o),n.indexOf("\n")<0&&n.push("\n"),n.forEach(n=>{"\n"===n?e.insert("\n",{"table-cell-line":{row:l,cell:u,rowspan:f,colspan:c}}):e.insert(n,t.attributes)})}else e.insert(t.insert,t.attributes);return e},new me),t.reduce((e,t)=>(t.insert&&"string"===typeof t.insert&&t.insert.startsWith("\n")?e.insert(t.insert,Object.assign({},{"table-cell-line":{row:l,cell:u,rowspan:f,colspan:c}})):e.insert(t.insert,Object.assign({},s(t.attributes,["table","table-cell-line"]))),e),new me))}function be(e,t,n){let r=new me;const i=e.querySelector("tr");if(null===i)return r;const o=Array.from(i.querySelectorAll("td")).concat(Array.from(i.querySelectorAll("th"))),a=o.reduce((e,t)=>{const n=t.getAttribute("colspan")||1;return e+=parseInt(n,10),e},0),s=e.querySelectorAll("col").length;if(s===a)return t;{for(let t=0;t<a-s;t++)r.insert("\n",{"table-col":!0});if(0===s)return r.concat(t);let e=0;return t.reduce((t,n)=>(t.insert(n.insert,n.attributes),n.attributes&&n.attributes["table-col"]&&(e+=n.insert.length,e===s&&(t=t.concat(r))),t),new me)}}const _e=i.a.import("core/module"),we=i.a.import("delta");class xe extends _e{static register(){i.a.register(P,!0),i.a.register(I,!0),i.a.register(A,!0),i.a.register(T,!0),i.a.register(D,!0),i.a.register(M,!0),i.a.register(j,!0),i.a.register(L,!0),i.a.register(L,!0)}constructor(e,t){super(e,t),this.quill.root.addEventListener("click",n=>{const r=l(n);if(!r||r.length<=0)return;const i=r.filter(e=>e.tagName&&"TABLE"===e.tagName.toUpperCase()&&e.classList.contains("quill-better-table"))[0];if(i){if(this.table===i)return;this.table&&this.hideTableTools(),this.showTableTools(i,e,t)}else this.table&&this.hideTableTools()},!1),this.quill.root.addEventListener("contextmenu",n=>{if(!this.table)return!0;n.preventDefault();const r=l(n);if(!r||r.length<=0)return;const i=r.filter(e=>e.tagName&&"TABLE"===e.tagName.toUpperCase()&&e.classList.contains("quill-better-table"))[0],o=r.filter(e=>e.tagName&&"TR"===e.tagName.toUpperCase()&&e.getAttribute("data-row"))[0],a=r.filter(e=>e.tagName&&"TD"===e.tagName.toUpperCase()&&e.getAttribute("data-row"))[0];let s=this.tableSelection.selectedTds.map(e=>e.domNode).includes(a);(this.tableSelection.selectedTds.length<=0||!s)&&this.tableSelection.setSelection(a.getBoundingClientRect(),a.getBoundingClientRect()),this.tableOperationMenu&&(this.tableOperationMenu=this.tableOperationMenu.destroy()),i&&(this.tableOperationMenu=new he({table:i,row:o,cell:a,left:n.pageX,top:n.pageY},e,t.operationMenu))},!1),e.getModule("keyboard"),e.keyboard.addBinding({key:"Backspace"},{},(function(e,t){if(0===e.index||this.quill.getLength()<=1)return!0;const[n]=this.quill.getLine(e.index);if(0===t.offset){const[t]=this.quill.getLine(e.index-1);if(null!=t&&"table-cell-line"===t.statics.blotName&&"table-cell-line"!==n.statics.blotName)return!1}return!0}));let n=e.keyboard.bindings["Backspace"].pop();e.keyboard.bindings["Backspace"].splice(0,1,n),e.clipboard.addMatcher("td",ve),e.clipboard.addMatcher("th",ye),e.clipboard.addMatcher("table",be),e.clipboard.matchers=e.clipboard.matchers.filter(e=>"tr"!==e[0])}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==A.blotName)return[null,null,null,-1];const r=t.tableCell(),i=r.row(),o=i.table();return[o,i,r,n]}insertTable(e,t){const n=this.quill.getSelection(!0);if(null==n)return;let r=this.quill.getLeaf(n.index)[0],o=(new we).retain(n.index);Ce(r)?console.warn("Can not insert table into a table cell."):(o.insert("\n"),o=new Array(t).fill("\n").reduce((e,t)=>(e.insert(t,{"table-col":!0}),e),o),o=new Array(e).fill(0).reduce(e=>{let n=N();return new Array(t).fill("\n").reduce((e,t)=>(e.insert(t,{"table-cell-line":{row:n,cell:R()}}),e),e)},o),this.quill.updateContents(o,i.a.sources.USER),this.quill.setSelection(n.index+t+1,i.a.sources.API))}showTableTools(e,t,n){this.table=e,this.columnTool=new p(e,t,n),this.tableSelection=new z(e,t,n)}hideTableTools(){this.columnTool&&this.columnTool.destroy(),this.tableSelection&&this.tableSelection.destroy(),this.tableOperationMenu&&this.tableOperationMenu.destroy(),this.columnTool=null,this.tableSelection=null,this.tableOperationMenu=null,this.table=null}}function Oe(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table-cell-line"],handler(t,n){const r=e?"prev":"next",o=n.line[r];if(null!=o)return!0;const a=n.line.parent,s=a.parent[r];if(null!=s&&"table-row"===s.statics.blotName){let e=s.children.head,t=parseInt(e.formats()["colspan"],10),n=a,r=parseInt(n.formats()["colspan"],10);while(null!=n.prev)n=n.prev,r+=parseInt(n.formats()["colspan"],10);while(null!=e.next&&t<r)e=e.next,t+=parseInt(e.formats()["colspan"],10);const o=e.offset(this.quill.scroll);this.quill.setSelection(o,0,i.a.sources.USER)}else{const t=a.table().parent[r];null!=t&&(e?this.quill.setSelection(t.offset(this.quill.scroll)+t.length()-1,0,i.a.sources.USER):this.quill.setSelection(t.offset(this.quill.scroll),0,i.a.sources.USER))}return!1}}}function Se(e){return e.statics.blotName===T.blotName}function Ce(e){return!(!e||!e.parent)&&(!!Se(e.parent)||Ce(e.parent))}xe.keyboardBindings={"table-cell-line backspace":{key:"Backspace",format:["table-cell-line"],collapsed:!0,offset:0,handler(e,t){const[n,r]=this.quill.getLine(e.index);return!(!n.prev||"table-cell-line"!==n.prev.statics.blotName)}},"table-cell-line delete":{key:"Delete",format:["table-cell-line"],collapsed:!0,suffix:/^$/,handler(){}},"table-cell-line enter":{key:"Enter",shiftKey:null,format:["table-cell-line"],handler(e,t){if(this.quill.selection&&this.quill.selection.composing)return;const n=i.a.imports.parchment.Scope;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);const r=Object.keys(t.format).reduce((e,r)=>(this.quill.scroll.query(r,n.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e),{});this.quill.insertText(e.index,"\n",r["table-cell-line"],i.a.sources.USER),this.quill.setSelection(e.index+1,i.a.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(e=>{null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&this.quill.format(e,t.format[e],i.a.sources.USER))})}},"table-cell-line up":Oe(!0),"table-cell-line down":Oe(!1),"down-to-table":{key:"ArrowDown",collapsed:!0,handler(e,t){const n=t.line.next;if(n&&"table-view"===n.statics.blotName){const e=n.table().rows()[0].children.head,t=e.children.head;return this.quill.setSelection(t.offset(this.quill.scroll),0,i.a.sources.USER),!1}return!0}},"up-to-table":{key:"ArrowUp",collapsed:!0,handler(e,t){const n=t.line.prev;if(n&&"table-view"===n.statics.blotName){const e=n.table().rows(),t=e[e.length-1].children.head,r=t.children.head;return this.quill.setSelection(r.offset(this.quill.scroll),0,i.a.sources.USER),!1}return!0}}},t["default"]=xe},,function(e,t,n){e.exports=n(10)}])["default"]}))},"8cdf":function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var i=r,o=n("589e"),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(e){return null==e?[]:(e=Object(e),i(l(e),(function(t){return s.call(e,t)})))}:o["a"];t["a"]=u},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(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 r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8e92":function(e,t,n){"use strict";n("f8be")},"8eeb":function(e,t,n){var r=n("32b3"),i=n("872a");function o(e,t,n,o){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}e.exports=o},"8efc":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-input",{directives:[{name:"number-input",rawName:"v-number-input.float",value:e.float,expression:"float",modifiers:{float:!0}}],staticClass:"number",attrs:{size:e.size,readonly:e.readonly,placeholder:e.placeholder,disabled:e.disabled},on:{change:function(t){return e.$emit("change")}},model:{value:e.myValue,callback:function(t){e.myValue=t},expression:"myValue"}})},i=[],o={name:"sNumber",data(){return{myValue:this.value}},props:{value:{type:[String,Number],default:""},placeholder:String,float:Number,disabled:Boolean,size:String,readonly:Boolean},watch:{value:{immediate:!0,handler(e){this.myValue=e}},myValue(e){this.$emit("input",e)}}},a=o,s=(n("7702"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,null,null),u=l.exports;function c(e,t,n,r){function i(){let e=t.value;if(n.modifiers.float){e=e.replace(/[^\-\d.]/g,"");const i=e.indexOf(".");if(-1!==i&&i!==e.length-1&&(e=e.substr(0,i)+"."+e.substr(i+1).replace(/\./g,"")),e.length>1&&(e=e.charAt(0)+e.substr(1).replace(/-/g,"")),e=e.replace(/^\./g,"0.").replace(/^-\./,"-0."),"undefined"!==typeof n.value){let t=0;if("string"===typeof n.value||"number"===typeof n.value?t=parseInt(n.value):"object"===typeof n.value&&(t=n.value.decimal),!isNaN(t)){(!Number.isInteger(t)||t<0)&&(t=0);const n="^(\\-)*(\\d+)\\.(\\d{"+t+"}).*$",r=new RegExp(n);e=0===t?e.replace(r,"$1$2"):e.replace(r,"$1$2.$3")}}else e=t.value.replace(/[^\-\d]/g,"").replace(/^(-)*(\d*)$/,"$1$2");if(""!==e&&"object"===typeof n.value){let{min:t,max:r}=n.value;t=parseFloat(t),r=parseFloat(r),isNaN(t)||(t>=0&&(e=e.replace("-","")),parseFloat(e)<t&&(e=t)),isNaN(r)||parseFloat(e)>r&&(e=r)}t.value=e,r.componentInstance?r.componentInstance.$emit("input",t.value):r.elm.dispatchEvent(new CustomEvent("input",t.value))}}return i}u.install=function(e){const t={bind(e,t,n){const r="INPUT"===e.tagName?e:e.querySelector("input");r.addEventListener("input",c(e,r,t,n),!1)}};e.directive("number-input",t),e.component("SNumber",u)},t["default"]=u},9005:function(e,t,n){},9152:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?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=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?d/l:d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},"91e9":function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},9222:function(e,t,n){(function(e){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),u("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),u("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||l.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,u("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function u(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,o),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}return"markbegin"!==t&&(o=i.match(this.foldingStopMarker),o)?(a=o.index+o[0].length,o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,l=e.getLength();while(++t<l){n=e.getLine(t);var u=n.search(/\S/);if(-1!==u){if(r>u)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=o)break;if(c.isMultiLine())t=c.end.row;else if(r==u)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++n<o){t=e.getLine(n);var u=s.exec(t);if(u&&(u[1]?l--:l++,!l))break}var c=n;if(c>a)return new i(a,r,c,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new u};r.inherits(c,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,a=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e||"no_regex"==e){var s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);s&&(r+=n)}else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";s=t.match(/^\s*(\/?)\*/),s&&(s[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(c.prototype),t.Mode=c})),function(){ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},9224:function(e){e.exports=JSON.parse('{"a":"0.3.89"}')},9339:function(module,exports,__webpack_require__){
/*!
 * Quill Editor v2.0.0-dev.3
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(e,t){module.exports=t()})(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=0)}({"./assets/icons/align-center.svg":
/*!***************************************!*\
  !*** ./assets/icons/align-center.svg ***!
  \***************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/align-center.svg?')},"./assets/icons/align-justify.svg":
/*!****************************************!*\
  !*** ./assets/icons/align-justify.svg ***!
  \****************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/align-justify.svg?')},"./assets/icons/align-left.svg":
/*!*************************************!*\
  !*** ./assets/icons/align-left.svg ***!
  \*************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/align-left.svg?')},"./assets/icons/align-right.svg":
/*!**************************************!*\
  !*** ./assets/icons/align-right.svg ***!
  \**************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/align-right.svg?')},"./assets/icons/background.svg":
/*!*************************************!*\
  !*** ./assets/icons/background.svg ***!
  \*************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <g class=\\"ql-fill ql-color-label\\"> <polygon points=\\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\\"6.817 5 6 5 6 6 6.38 6 6.817 5\\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\\"4.63 10 4 10 4 11 4.192 11 4.63 10\\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\\"12 6.868 12 6 11.62 6 12 6.868\\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\\"12.933 9 13 9 13 8 12.495 8 12.933 9\\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\\"5.5 13 9 5 12.5 13\\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/background.svg?')},"./assets/icons/blockquote.svg":
/*!*************************************!*\
  !*** ./assets/icons/blockquote.svg ***!
  \*************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <rect class=\\"ql-fill ql-stroke\\" height=3 width=3 x=4 y=5></rect> <rect class=\\"ql-fill ql-stroke\\" height=3 width=3 x=11 y=5></rect> <path class=\\"ql-even ql-fill ql-stroke\\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\\"ql-even ql-fill ql-stroke\\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/blockquote.svg?')},"./assets/icons/bold.svg":
/*!*******************************!*\
  !*** ./assets/icons/bold.svg ***!
  \*******************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/bold.svg?')},"./assets/icons/clean.svg":
/*!********************************!*\
  !*** ./assets/icons/clean.svg ***!
  \********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg class=\\"\\" viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/clean.svg?')},"./assets/icons/code.svg":
/*!*******************************!*\
  !*** ./assets/icons/code.svg ***!
  \*******************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <polyline class=\\"ql-even ql-stroke\\" points=\\"5 7 3 9 5 11\\"></polyline> <polyline class=\\"ql-even ql-stroke\\" points=\\"13 7 15 9 13 11\\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/code.svg?')},"./assets/icons/color.svg":
/*!********************************!*\
  !*** ./assets/icons/color.svg ***!
  \********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=\\"ql-color-label ql-stroke ql-transparent\\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\\"5.5 11 9 3 12.5 11\\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/color.svg?')},"./assets/icons/direction-ltr.svg":
/*!****************************************!*\
  !*** ./assets/icons/direction-ltr.svg ***!
  \****************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <polygon class=\\"ql-stroke ql-fill\\" points=\\"3 11 5 9 3 7 3 11\\"></polygon> <line class=\\"ql-stroke ql-fill\\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/direction-ltr.svg?')},"./assets/icons/direction-rtl.svg":
/*!****************************************!*\
  !*** ./assets/icons/direction-rtl.svg ***!
  \****************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <polygon class=\\"ql-stroke ql-fill\\" points=\\"15 12 13 10 15 8 15 12\\"></polygon> <line class=\\"ql-stroke ql-fill\\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/direction-rtl.svg?')},"./assets/icons/dropdown.svg":
/*!***********************************!*\
  !*** ./assets/icons/dropdown.svg ***!
  \***********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <polygon class=ql-stroke points=\\"7 11 9 13 11 11 7 11\\"></polygon> <polygon class=ql-stroke points=\\"7 7 9 5 11 7 7 7\\"></polygon> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/dropdown.svg?')},"./assets/icons/formula.svg":
/*!**********************************!*\
  !*** ./assets/icons/formula.svg ***!
  \**********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/formula.svg?')},"./assets/icons/header-2.svg":
/*!***********************************!*\
  !*** ./assets/icons/header-2.svg ***!
  \***********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewBox=\\"0 0 18 18\\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/header-2.svg?')},"./assets/icons/header.svg":
/*!*********************************!*\
  !*** ./assets/icons/header.svg ***!
  \*********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewBox=\\"0 0 18 18\\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/header.svg?')},"./assets/icons/image.svg":
/*!********************************!*\
  !*** ./assets/icons/image.svg ***!
  \********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\\"ql-even ql-fill\\" points=\\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\\"></polyline> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/image.svg?')},"./assets/icons/indent.svg":
/*!*********************************!*\
  !*** ./assets/icons/indent.svg ***!
  \*********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\\"ql-fill ql-stroke\\" points=\\"3 7 3 11 5 9 3 7\\"></polyline> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/indent.svg?')},"./assets/icons/italic.svg":
/*!*********************************!*\
  !*** ./assets/icons/italic.svg ***!
  \*********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/italic.svg?')},"./assets/icons/link.svg":
/*!*******************************!*\
  !*** ./assets/icons/link.svg ***!
  \*******************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\\"ql-even ql-stroke\\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\\"ql-even ql-stroke\\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/link.svg?')},"./assets/icons/list-bullet.svg":
/*!**************************************!*\
  !*** ./assets/icons/list-bullet.svg ***!
  \**************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/list-bullet.svg?')},"./assets/icons/list-check.svg":
/*!*************************************!*\
  !*** ./assets/icons/list-check.svg ***!
  \*************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg class=\\"\\" viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\\"3 4 4 5 6 3\\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\\"3 14 4 15 6 13\\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\\"3 9 4 10 6 8\\"></polyline> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/list-check.svg?')},"./assets/icons/list-ordered.svg":
/*!***************************************!*\
  !*** ./assets/icons/list-ordered.svg ***!
  \***************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\\"ql-stroke ql-thin\\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\\"ql-stroke ql-thin\\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\\"ql-stroke ql-thin\\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/list-ordered.svg?')},"./assets/icons/outdent.svg":
/*!**********************************!*\
  !*** ./assets/icons/outdent.svg ***!
  \**********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\\"5 7 5 11 3 9 5 7\\"></polyline> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/outdent.svg?')},"./assets/icons/strike.svg":
/*!*********************************!*\
  !*** ./assets/icons/strike.svg ***!
  \*********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <line class=\\"ql-stroke ql-thin\\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/strike.svg?')},"./assets/icons/subscript.svg":
/*!************************************!*\
  !*** ./assets/icons/subscript.svg ***!
  \************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/subscript.svg?')},"./assets/icons/superscript.svg":
/*!**************************************!*\
  !*** ./assets/icons/superscript.svg ***!
  \**************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/superscript.svg?')},"./assets/icons/table.svg":
/*!********************************!*\
  !*** ./assets/icons/table.svg ***!
  \********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=2 width=3 x=5 y=5></rect> <rect class=ql-fill height=2 width=4 x=9 y=5></rect> <g class=\\"ql-fill ql-transparent\\"> <rect height=2 width=3 x=5 y=8></rect> <rect height=2 width=4 x=9 y=8></rect> <rect height=2 width=3 x=5 y=11></rect> <rect height=2 width=4 x=9 y=11></rect> </g> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/table.svg?')},"./assets/icons/underline.svg":
/*!************************************!*\
  !*** ./assets/icons/underline.svg ***!
  \************************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/underline.svg?')},"./assets/icons/video.svg":
/*!********************************!*\
  !*** ./assets/icons/video.svg ***!
  \********************************/
/*! no static exports found */function(module,exports){eval('// Module\nvar code = "<svg viewbox=\\"0 0 18 18\\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";\n// Exports\nmodule.exports = code;\n\n//# sourceURL=webpack://Quill/./assets/icons/video.svg?')},"./blots/block.js":
/*!************************!*\
  !*** ./blots/block.js ***!
  \************************/
/*! exports provided: blockDelta, bubbleFormats, BlockEmbed, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "blockDelta", function() { return blockDelta; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bubbleFormats", function() { return bubbleFormats; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockEmbed", function() { return BlockEmbed; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Block; });\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! extend */ "./node_modules/extend/index.js");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! quill-delta */ "./node_modules/quill-delta/dist/Delta.js");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./break */ "./blots/break.js");\n/* harmony import */ var _inline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inline */ "./blots/inline.js");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./text */ "./blots/text.js");\n\n\n\n\n\n\nconst NEWLINE_LENGTH = 1;\n\nclass Block extends parchment__WEBPACK_IMPORTED_MODULE_2__["BlockBlot"] {\n  constructor(scroll, domNode) {\n    super(scroll, domNode);\n    this.cache = {};\n  }\n\n  delta() {\n    if (this.cache.delta == null) {\n      this.cache.delta = blockDelta(this);\n    }\n\n    return this.cache.delta;\n  }\n\n  deleteAt(index, length) {\n    super.deleteAt(index, length);\n    this.cache = {};\n  }\n\n  formatAt(index, length, name, value) {\n    if (length <= 0) return;\n\n    if (this.scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_2__["Scope"].BLOCK)) {\n      if (index + length === this.length()) {\n        this.format(name, value);\n      }\n    } else {\n      super.formatAt(index, Math.min(length, this.length() - index - 1), name, value);\n    }\n\n    this.cache = {};\n  }\n\n  insertAt(index, value, def) {\n    if (def != null) {\n      super.insertAt(index, value, def);\n      this.cache = {};\n      return;\n    }\n\n    if (value.length === 0) return;\n    const lines = value.split(\'\\n\');\n    const text = lines.shift();\n\n    if (text.length > 0) {\n      if (index < this.length() - 1 || this.children.tail == null) {\n        super.insertAt(Math.min(index, this.length() - 1), text);\n      } else {\n        this.children.tail.insertAt(this.children.tail.length(), text);\n      }\n\n      this.cache = {};\n    }\n\n    let block = this;\n    lines.reduce((lineIndex, line) => {\n      block = block.split(lineIndex, true);\n      block.insertAt(0, line);\n      return line.length;\n    }, index + text.length);\n  }\n\n  insertBefore(blot, ref) {\n    const {\n      head\n    } = this.children;\n    super.insertBefore(blot, ref);\n\n    if (head instanceof _break__WEBPACK_IMPORTED_MODULE_3__["default"]) {\n      head.remove();\n    }\n\n    this.cache = {};\n  }\n\n  length() {\n    if (this.cache.length == null) {\n      this.cache.length = super.length() + NEWLINE_LENGTH;\n    }\n\n    return this.cache.length;\n  }\n\n  moveChildren(target, ref) {\n    super.moveChildren(target, ref);\n    this.cache = {};\n  }\n\n  optimize(context) {\n    super.optimize(context);\n    this.cache = {};\n  }\n\n  path(index) {\n    return super.path(index, true);\n  }\n\n  removeChild(child) {\n    super.removeChild(child);\n    this.cache = {};\n  }\n\n  split(index, force = false) {\n    if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {\n      const clone = this.clone();\n\n      if (index === 0) {\n        this.parent.insertBefore(clone, this);\n        return this;\n      }\n\n      this.parent.insertBefore(clone, this.next);\n      return clone;\n    }\n\n    const next = super.split(index, force);\n    this.cache = {};\n    return next;\n  }\n\n}\n\nBlock.blotName = \'block\';\nBlock.tagName = \'P\';\nBlock.defaultChild = _break__WEBPACK_IMPORTED_MODULE_3__["default"];\nBlock.allowedChildren = [_break__WEBPACK_IMPORTED_MODULE_3__["default"], _inline__WEBPACK_IMPORTED_MODULE_4__["default"], parchment__WEBPACK_IMPORTED_MODULE_2__["EmbedBlot"], _text__WEBPACK_IMPORTED_MODULE_5__["default"]];\n\nclass BlockEmbed extends parchment__WEBPACK_IMPORTED_MODULE_2__["EmbedBlot"] {\n  attach() {\n    super.attach();\n    this.attributes = new parchment__WEBPACK_IMPORTED_MODULE_2__["AttributorStore"](this.domNode);\n  }\n\n  delta() {\n    return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().insert(this.value(), extend__WEBPACK_IMPORTED_MODULE_0___default()(this.formats(), this.attributes.values()));\n  }\n\n  format(name, value) {\n    const attribute = this.scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_2__["Scope"].BLOCK_ATTRIBUTE);\n\n    if (attribute != null) {\n      this.attributes.attribute(attribute, value);\n    }\n  }\n\n  formatAt(index, length, name, value) {\n    this.format(name, value);\n  }\n\n  insertAt(index, value, def) {\n    if (typeof value === \'string\' && value.endsWith(\'\\n\')) {\n      const block = this.scroll.create(Block.blotName);\n      this.parent.insertBefore(block, index === 0 ? this : this.next);\n      block.insertAt(0, value.slice(0, -1));\n    } else {\n      super.insertAt(index, value, def);\n    }\n  }\n\n}\n\nBlockEmbed.scope = parchment__WEBPACK_IMPORTED_MODULE_2__["Scope"].BLOCK_BLOT; // It is important for cursor behavior BlockEmbeds use tags that are block level elements\n\nfunction blockDelta(blot, filter = true) {\n  return blot.descendants(parchment__WEBPACK_IMPORTED_MODULE_2__["LeafBlot"]).reduce((delta, leaf) => {\n    if (leaf.length() === 0) {\n      return delta;\n    }\n\n    return delta.insert(leaf.value(), bubbleFormats(leaf, {}, filter));\n  }, new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a()).insert(\'\\n\', bubbleFormats(blot));\n}\n\nfunction bubbleFormats(blot, formats = {}, filter = true) {\n  if (blot == null) return formats;\n\n  if (typeof blot.formats === \'function\') {\n    formats = extend__WEBPACK_IMPORTED_MODULE_0___default()(formats, blot.formats());\n\n    if (filter) {\n      // exclude syntax highlighting from deltas and getFormat()\n      delete formats[\'code-token\'];\n    }\n  }\n\n  if (blot.parent == null || blot.parent.statics.blotName === \'scroll\' || blot.parent.statics.scope !== blot.statics.scope) {\n    return formats;\n  }\n\n  return bubbleFormats(blot.parent, formats, filter);\n}\n\n\n\n//# sourceURL=webpack://Quill/./blots/block.js?')},"./blots/break.js":
/*!************************!*\
  !*** ./blots/break.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\n\nclass Break extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"EmbedBlot\"] {\n  static value() {\n    return undefined;\n  }\n\n  optimize() {\n    if (this.prev || this.next) {\n      this.remove();\n    }\n  }\n\n  length() {\n    return 0;\n  }\n\n  value() {\n    return '';\n  }\n\n}\n\nBreak.blotName = 'break';\nBreak.tagName = 'BR';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Break);\n\n//# sourceURL=webpack://Quill/./blots/break.js?")},"./blots/container.js":
/*!****************************!*\
  !*** ./blots/container.js ***!
  \****************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n\n\nclass Container extends parchment__WEBPACK_IMPORTED_MODULE_0__["ContainerBlot"] {}\n\n/* harmony default export */ __webpack_exports__["default"] = (Container);\n\n//# sourceURL=webpack://Quill/./blots/container.js?')},"./blots/cursor.js":
/*!*************************!*\
  !*** ./blots/cursor.js ***!
  \*************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./text */ \"./blots/text.js\");\n\n\n\nclass Cursor extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"EmbedBlot\"] {\n  static value() {\n    return undefined;\n  }\n\n  constructor(scroll, domNode, selection) {\n    super(scroll, domNode);\n    this.selection = selection;\n    this.textNode = document.createTextNode(Cursor.CONTENTS);\n    this.domNode.appendChild(this.textNode);\n    this.savedLength = 0;\n  }\n\n  detach() {\n    // super.detach() will also clear domNode.__blot\n    if (this.parent != null) this.parent.removeChild(this);\n  }\n\n  format(name, value) {\n    if (this.savedLength !== 0) {\n      super.format(name, value);\n      return;\n    }\n\n    let target = this;\n    let index = 0;\n\n    while (target != null && target.statics.scope !== parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].BLOCK_BLOT) {\n      index += target.offset(target.parent);\n      target = target.parent;\n    }\n\n    if (target != null) {\n      this.savedLength = Cursor.CONTENTS.length;\n      target.optimize();\n      target.formatAt(index, Cursor.CONTENTS.length, name, value);\n      this.savedLength = 0;\n    }\n  }\n\n  index(node, offset) {\n    if (node === this.textNode) return 0;\n    return super.index(node, offset);\n  }\n\n  length() {\n    return this.savedLength;\n  }\n\n  position() {\n    return [this.textNode, this.textNode.data.length];\n  }\n\n  remove() {\n    super.remove();\n    this.parent = null;\n  }\n\n  restore() {\n    if (this.selection.composing || this.parent == null) return null;\n    const range = this.selection.getNativeRange(); // Link format will insert text outside of anchor tag\n\n    while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {\n      this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);\n    }\n\n    const prevTextBlot = this.prev instanceof _text__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ? this.prev : null;\n    const prevTextLength = prevTextBlot ? prevTextBlot.length() : 0;\n    const nextTextBlot = this.next instanceof _text__WEBPACK_IMPORTED_MODULE_1__[\"default\"] ? this.next : null;\n    const nextText = nextTextBlot ? nextTextBlot.text : '';\n    const {\n      textNode\n    } = this; // take text from inside this blot and reset it\n\n    const newText = textNode.data.split(Cursor.CONTENTS).join('');\n    textNode.data = Cursor.CONTENTS; // proactively merge TextBlots around cursor so that optimization\n    // doesn't lose the cursor.  the reason we are here in cursor.restore\n    // could be that the user clicked in prevTextBlot or nextTextBlot, or\n    // the user typed something.\n\n    let mergedTextBlot;\n\n    if (prevTextBlot) {\n      mergedTextBlot = prevTextBlot;\n\n      if (newText || nextTextBlot) {\n        prevTextBlot.insertAt(prevTextBlot.length(), newText + nextText);\n\n        if (nextTextBlot) {\n          nextTextBlot.remove();\n        }\n      }\n    } else if (nextTextBlot) {\n      mergedTextBlot = nextTextBlot;\n      nextTextBlot.insertAt(0, newText);\n    } else {\n      const newTextNode = document.createTextNode(newText);\n      mergedTextBlot = this.scroll.create(newTextNode);\n      this.parent.insertBefore(mergedTextBlot, this);\n    }\n\n    this.remove();\n\n    if (range) {\n      // calculate selection to restore\n      const remapOffset = (node, offset) => {\n        if (prevTextBlot && node === prevTextBlot.domNode) {\n          return offset;\n        }\n\n        if (node === textNode) {\n          return prevTextLength + offset - 1;\n        }\n\n        if (nextTextBlot && node === nextTextBlot.domNode) {\n          return prevTextLength + newText.length + offset;\n        }\n\n        return null;\n      };\n\n      const start = remapOffset(range.start.node, range.start.offset);\n      const end = remapOffset(range.end.node, range.end.offset);\n\n      if (start !== null && end !== null) {\n        return {\n          startNode: mergedTextBlot.domNode,\n          startOffset: start,\n          endNode: mergedTextBlot.domNode,\n          endOffset: end\n        };\n      }\n    }\n\n    return null;\n  }\n\n  update(mutations, context) {\n    if (mutations.some(mutation => {\n      return mutation.type === 'characterData' && mutation.target === this.textNode;\n    })) {\n      const range = this.restore();\n      if (range) context.range = range;\n    }\n  }\n\n  value() {\n    return '';\n  }\n\n}\n\nCursor.blotName = 'cursor';\nCursor.className = 'ql-cursor';\nCursor.tagName = 'span';\nCursor.CONTENTS = '\\uFEFF'; // Zero width no break space\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Cursor);\n\n//# sourceURL=webpack://Quill/./blots/cursor.js?")},"./blots/embed.js":
/*!************************!*\
  !*** ./blots/embed.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./text */ "./blots/text.js");\n\n\nconst GUARD_TEXT = \'\\uFEFF\';\n\nclass Embed extends parchment__WEBPACK_IMPORTED_MODULE_0__["EmbedBlot"] {\n  constructor(scroll, node) {\n    super(scroll, node);\n    this.contentNode = document.createElement(\'span\');\n    this.contentNode.setAttribute(\'contenteditable\', false);\n    Array.from(this.domNode.childNodes).forEach(childNode => {\n      this.contentNode.appendChild(childNode);\n    });\n    this.leftGuard = document.createTextNode(GUARD_TEXT);\n    this.rightGuard = document.createTextNode(GUARD_TEXT);\n    this.domNode.appendChild(this.leftGuard);\n    this.domNode.appendChild(this.contentNode);\n    this.domNode.appendChild(this.rightGuard);\n  }\n\n  index(node, offset) {\n    if (node === this.leftGuard) return 0;\n    if (node === this.rightGuard) return 1;\n    return super.index(node, offset);\n  }\n\n  restore(node) {\n    let range;\n    let textNode;\n    const text = node.data.split(GUARD_TEXT).join(\'\');\n\n    if (node === this.leftGuard) {\n      if (this.prev instanceof _text__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n        const prevLength = this.prev.length();\n        this.prev.insertAt(prevLength, text);\n        range = {\n          startNode: this.prev.domNode,\n          startOffset: prevLength + text.length\n        };\n      } else {\n        textNode = document.createTextNode(text);\n        this.parent.insertBefore(this.scroll.create(textNode), this);\n        range = {\n          startNode: textNode,\n          startOffset: text.length\n        };\n      }\n    } else if (node === this.rightGuard) {\n      if (this.next instanceof _text__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n        this.next.insertAt(0, text);\n        range = {\n          startNode: this.next.domNode,\n          startOffset: text.length\n        };\n      } else {\n        textNode = document.createTextNode(text);\n        this.parent.insertBefore(this.scroll.create(textNode), this.next);\n        range = {\n          startNode: textNode,\n          startOffset: text.length\n        };\n      }\n    }\n\n    node.data = GUARD_TEXT;\n    return range;\n  }\n\n  update(mutations, context) {\n    mutations.forEach(mutation => {\n      if (mutation.type === \'characterData\' && (mutation.target === this.leftGuard || mutation.target === this.rightGuard)) {\n        const range = this.restore(mutation.target);\n        if (range) context.range = range;\n      }\n    });\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__["default"] = (Embed);\n\n//# sourceURL=webpack://Quill/./blots/embed.js?')},"./blots/inline.js":
/*!*************************!*\
  !*** ./blots/inline.js ***!
  \*************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./break */ \"./blots/break.js\");\n/* harmony import */ var _text__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./text */ \"./blots/text.js\");\n\n\n\n\nclass Inline extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"InlineBlot\"] {\n  static compare(self, other) {\n    const selfIndex = Inline.order.indexOf(self);\n    const otherIndex = Inline.order.indexOf(other);\n\n    if (selfIndex >= 0 || otherIndex >= 0) {\n      return selfIndex - otherIndex;\n    }\n\n    if (self === other) {\n      return 0;\n    }\n\n    if (self < other) {\n      return -1;\n    }\n\n    return 1;\n  }\n\n  formatAt(index, length, name, value) {\n    if (Inline.compare(this.statics.blotName, name) < 0 && this.scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].BLOT)) {\n      const blot = this.isolate(index, length);\n\n      if (value) {\n        blot.wrap(name, value);\n      }\n    } else {\n      super.formatAt(index, length, name, value);\n    }\n  }\n\n  optimize(context) {\n    super.optimize(context);\n\n    if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {\n      const parent = this.parent.isolate(this.offset(), this.length());\n      this.moveChildren(parent);\n      parent.wrap(this);\n    }\n  }\n\n}\n\nInline.allowedChildren = [Inline, _break__WEBPACK_IMPORTED_MODULE_1__[\"default\"], parchment__WEBPACK_IMPORTED_MODULE_0__[\"EmbedBlot\"], _text__WEBPACK_IMPORTED_MODULE_2__[\"default\"]]; // Lower index means deeper in the DOM tree, since not found (-1) is for embeds\n\nInline.order = ['cursor', 'inline', // Must be lower\n'link', // Chrome wants <a> to be lower\n'underline', 'strike', 'italic', 'bold', 'script', 'code' // Must be higher\n];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Inline);\n\n//# sourceURL=webpack://Quill/./blots/inline.js?")},"./blots/scroll.js":
/*!*************************!*\
  !*** ./blots/scroll.js ***!
  \*************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _core_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/emitter */ "./core/emitter.js");\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./block */ "./blots/block.js");\n/* harmony import */ var _break__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./break */ "./blots/break.js");\n/* harmony import */ var _container__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./container */ "./blots/container.js");\n\n\n\n\n\n\nfunction isLine(blot) {\n  return blot instanceof _block__WEBPACK_IMPORTED_MODULE_2__["default"] || blot instanceof _block__WEBPACK_IMPORTED_MODULE_2__["BlockEmbed"];\n}\n\nclass Scroll extends parchment__WEBPACK_IMPORTED_MODULE_0__["ScrollBlot"] {\n  constructor(registry, domNode, {\n    emitter\n  }) {\n    super(registry, domNode);\n    this.emitter = emitter;\n    this.batch = false;\n    this.optimize();\n    this.enable();\n    this.domNode.addEventListener(\'dragstart\', e => this.handleDragStart(e));\n  }\n\n  batchStart() {\n    if (!Array.isArray(this.batch)) {\n      this.batch = [];\n    }\n  }\n\n  batchEnd() {\n    const mutations = this.batch;\n    this.batch = false;\n    this.update(mutations);\n  }\n\n  emitMount(blot) {\n    this.emitter.emit(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_BLOT_MOUNT, blot);\n  }\n\n  emitUnmount(blot) {\n    this.emitter.emit(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_BLOT_UNMOUNT, blot);\n  }\n\n  deleteAt(index, length) {\n    const [first, offset] = this.line(index);\n    const [last] = this.line(index + length);\n    super.deleteAt(index, length);\n\n    if (last != null && first !== last && offset > 0) {\n      if (first instanceof _block__WEBPACK_IMPORTED_MODULE_2__["BlockEmbed"] || last instanceof _block__WEBPACK_IMPORTED_MODULE_2__["BlockEmbed"]) {\n        this.optimize();\n        return;\n      }\n\n      const ref = last.children.head instanceof _break__WEBPACK_IMPORTED_MODULE_3__["default"] ? null : last.children.head;\n      first.moveChildren(last, ref);\n      first.remove();\n    }\n\n    this.optimize();\n  }\n\n  enable(enabled = true) {\n    this.domNode.setAttribute(\'contenteditable\', enabled);\n  }\n\n  formatAt(index, length, format, value) {\n    super.formatAt(index, length, format, value);\n    this.optimize();\n  }\n\n  handleDragStart(event) {\n    event.preventDefault();\n  }\n\n  insertAt(index, value, def) {\n    if (index >= this.length()) {\n      if (def == null || this.scroll.query(value, parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].BLOCK) == null) {\n        const blot = this.scroll.create(this.statics.defaultChild.blotName);\n        this.appendChild(blot);\n\n        if (def == null && value.endsWith(\'\\n\')) {\n          blot.insertAt(0, value.slice(0, -1), def);\n        } else {\n          blot.insertAt(0, value, def);\n        }\n      } else {\n        const embed = this.scroll.create(value, def);\n        this.appendChild(embed);\n      }\n    } else {\n      super.insertAt(index, value, def);\n    }\n\n    this.optimize();\n  }\n\n  insertBefore(blot, ref) {\n    if (blot.statics.scope === parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].INLINE_BLOT) {\n      const wrapper = this.scroll.create(this.statics.defaultChild.blotName);\n      wrapper.appendChild(blot);\n      super.insertBefore(wrapper, ref);\n    } else {\n      super.insertBefore(blot, ref);\n    }\n  }\n\n  isEnabled() {\n    return this.domNode.getAttribute(\'contenteditable\') === \'true\';\n  }\n\n  leaf(index) {\n    return this.path(index).pop() || [null, -1];\n  }\n\n  line(index) {\n    if (index === this.length()) {\n      return this.line(index - 1);\n    }\n\n    return this.descendant(isLine, index);\n  }\n\n  lines(index = 0, length = Number.MAX_VALUE) {\n    const getLines = (blot, blotIndex, blotLength) => {\n      let lines = [];\n      let lengthLeft = blotLength;\n      blot.children.forEachAt(blotIndex, blotLength, (child, childIndex, childLength) => {\n        if (isLine(child)) {\n          lines.push(child);\n        } else if (child instanceof parchment__WEBPACK_IMPORTED_MODULE_0__["ContainerBlot"]) {\n          lines = lines.concat(getLines(child, childIndex, lengthLeft));\n        }\n\n        lengthLeft -= childLength;\n      });\n      return lines;\n    };\n\n    return getLines(this, index, length);\n  }\n\n  optimize(mutations = [], context = {}) {\n    if (this.batch) return;\n    super.optimize(mutations, context);\n\n    if (mutations.length > 0) {\n      this.emitter.emit(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_OPTIMIZE, mutations, context);\n    }\n  }\n\n  path(index) {\n    return super.path(index).slice(1); // Exclude self\n  }\n\n  remove() {// Never remove self\n  }\n\n  update(mutations) {\n    if (this.batch) {\n      if (Array.isArray(mutations)) {\n        this.batch = this.batch.concat(mutations);\n      }\n\n      return;\n    }\n\n    let source = _core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER;\n\n    if (typeof mutations === \'string\') {\n      source = mutations;\n    }\n\n    if (!Array.isArray(mutations)) {\n      mutations = this.observer.takeRecords();\n    }\n\n    if (mutations.length > 0) {\n      this.emitter.emit(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_BEFORE_UPDATE, source, mutations);\n    }\n\n    super.update(mutations.concat([])); // pass copy\n\n    if (mutations.length > 0) {\n      this.emitter.emit(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_UPDATE, source, mutations);\n    }\n  }\n\n}\n\nScroll.blotName = \'scroll\';\nScroll.className = \'ql-editor\';\nScroll.tagName = \'DIV\';\nScroll.defaultChild = _block__WEBPACK_IMPORTED_MODULE_2__["default"];\nScroll.allowedChildren = [_block__WEBPACK_IMPORTED_MODULE_2__["default"], _block__WEBPACK_IMPORTED_MODULE_2__["BlockEmbed"], _container__WEBPACK_IMPORTED_MODULE_4__["default"]];\n/* harmony default export */ __webpack_exports__["default"] = (Scroll);\n\n//# sourceURL=webpack://Quill/./blots/scroll.js?')},"./blots/text.js":
/*!***********************!*\
  !*** ./blots/text.js ***!
  \***********************/
/*! exports provided: default, escapeText */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Text; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"escapeText\", function() { return escapeText; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\n\nclass Text extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"TextBlot\"] {}\n\nfunction escapeText(text) {\n  return text.replace(/[&<>\"']/g, s => {\n    // https://lodash.com/docs#escape\n    const entityMap = {\n      '&': '&amp;',\n      '<': '&lt;',\n      '>': '&gt;',\n      '\"': '&quot;',\n      \"'\": '&#39;'\n    };\n    return entityMap[s];\n  });\n}\n\n\n\n//# sourceURL=webpack://Quill/./blots/text.js?")},"./core.js":
/*!*****************!*\
  !*** ./core.js ***!
  \*****************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core/quill */ "./core/quill.js");\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./blots/block */ "./blots/block.js");\n/* harmony import */ var _blots_break__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blots/break */ "./blots/break.js");\n/* harmony import */ var _blots_container__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./blots/container */ "./blots/container.js");\n/* harmony import */ var _blots_cursor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./blots/cursor */ "./blots/cursor.js");\n/* harmony import */ var _blots_embed__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./blots/embed */ "./blots/embed.js");\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./blots/inline */ "./blots/inline.js");\n/* harmony import */ var _blots_scroll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./blots/scroll */ "./blots/scroll.js");\n/* harmony import */ var _blots_text__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./blots/text */ "./blots/text.js");\n/* harmony import */ var _modules_clipboard__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modules/clipboard */ "./modules/clipboard.js");\n/* harmony import */ var _modules_history__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./modules/history */ "./modules/history.js");\n/* harmony import */ var _modules_keyboard__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modules/keyboard */ "./modules/keyboard.js");\n/* harmony import */ var _modules_uploader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./modules/uploader */ "./modules/uploader.js");\n\n\n\n\n\n\n\n\n\n\n\n\n\n_core_quill__WEBPACK_IMPORTED_MODULE_0__["default"].register({\n  \'blots/block\': _blots_block__WEBPACK_IMPORTED_MODULE_1__["default"],\n  \'blots/block/embed\': _blots_block__WEBPACK_IMPORTED_MODULE_1__["BlockEmbed"],\n  \'blots/break\': _blots_break__WEBPACK_IMPORTED_MODULE_2__["default"],\n  \'blots/container\': _blots_container__WEBPACK_IMPORTED_MODULE_3__["default"],\n  \'blots/cursor\': _blots_cursor__WEBPACK_IMPORTED_MODULE_4__["default"],\n  \'blots/embed\': _blots_embed__WEBPACK_IMPORTED_MODULE_5__["default"],\n  \'blots/inline\': _blots_inline__WEBPACK_IMPORTED_MODULE_6__["default"],\n  \'blots/scroll\': _blots_scroll__WEBPACK_IMPORTED_MODULE_7__["default"],\n  \'blots/text\': _blots_text__WEBPACK_IMPORTED_MODULE_8__["default"],\n  \'modules/clipboard\': _modules_clipboard__WEBPACK_IMPORTED_MODULE_9__["default"],\n  \'modules/history\': _modules_history__WEBPACK_IMPORTED_MODULE_10__["default"],\n  \'modules/keyboard\': _modules_keyboard__WEBPACK_IMPORTED_MODULE_11__["default"],\n  \'modules/uploader\': _modules_uploader__WEBPACK_IMPORTED_MODULE_12__["default"]\n});\n/* harmony default export */ __webpack_exports__["default"] = (_core_quill__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n//# sourceURL=webpack://Quill/./core.js?')},"./core/editor.js":
/*!************************!*\
  !*** ./core/editor.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clone */ "./node_modules/clone/clone.js");\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(clone__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! deep-equal */ "./node_modules/deep-equal/index.js");\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(deep_equal__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! extend */ "./node_modules/extend/index.js");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! quill-delta */ "./node_modules/quill-delta/dist/Delta.js");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./selection */ "./core/selection.js");\n/* harmony import */ var _blots_cursor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../blots/cursor */ "./blots/cursor.js");\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../blots/block */ "./blots/block.js");\n/* harmony import */ var _blots_break__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../blots/break */ "./blots/break.js");\n/* harmony import */ var _blots_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../blots/text */ "./blots/text.js");\n\n\n\n\n\n\n\n\n\n\nconst ASCII = /^[ -~]*$/;\n\nclass Editor {\n  constructor(scroll) {\n    this.scroll = scroll;\n    this.delta = this.getDelta();\n  }\n\n  applyDelta(delta) {\n    let consumeNextNewline = false;\n    this.scroll.update();\n    let scrollLength = this.scroll.length();\n    this.scroll.batchStart();\n    const normalizedDelta = normalizeDelta(delta);\n    normalizedDelta.reduce((index, op) => {\n      const length = op.retain || op.delete || op.insert.length || 1;\n      let attributes = op.attributes || {};\n\n      if (op.insert != null) {\n        if (typeof op.insert === \'string\') {\n          let text = op.insert;\n\n          if (text.endsWith(\'\\n\') && consumeNextNewline) {\n            consumeNextNewline = false;\n            text = text.slice(0, -1);\n          }\n\n          if ((index >= scrollLength || this.scroll.descendant(_blots_block__WEBPACK_IMPORTED_MODULE_7__["BlockEmbed"], index)[0]) && !text.endsWith(\'\\n\')) {\n            consumeNextNewline = true;\n          }\n\n          this.scroll.insertAt(index, text);\n          const [line, offset] = this.scroll.line(index);\n          let formats = extend__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_blots_block__WEBPACK_IMPORTED_MODULE_7__["bubbleFormats"])(line));\n\n          if (line instanceof _blots_block__WEBPACK_IMPORTED_MODULE_7__["default"]) {\n            const [leaf] = line.descendant(parchment__WEBPACK_IMPORTED_MODULE_4__["LeafBlot"], offset);\n            formats = extend__WEBPACK_IMPORTED_MODULE_2___default()(formats, Object(_blots_block__WEBPACK_IMPORTED_MODULE_7__["bubbleFormats"])(leaf));\n          }\n\n          attributes = quill_delta__WEBPACK_IMPORTED_MODULE_3__["AttributeMap"].diff(formats, attributes) || {};\n        } else if (typeof op.insert === \'object\') {\n          const key = Object.keys(op.insert)[0]; // There should only be one key\n\n          if (key == null) return index;\n          this.scroll.insertAt(index, key, op.insert[key]);\n        }\n\n        scrollLength += length;\n      }\n\n      Object.keys(attributes).forEach(name => {\n        this.scroll.formatAt(index, length, name, attributes[name]);\n      });\n      return index + length;\n    }, 0);\n    normalizedDelta.reduce((index, op) => {\n      if (typeof op.delete === \'number\') {\n        this.scroll.deleteAt(index, op.delete);\n        return index;\n      }\n\n      return index + (op.retain || op.insert.length || 1);\n    }, 0);\n    this.scroll.batchEnd();\n    this.scroll.optimize();\n    return this.update(normalizedDelta);\n  }\n\n  deleteText(index, length) {\n    this.scroll.deleteAt(index, length);\n    return this.update(new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).delete(length));\n  }\n\n  formatLine(index, length, formats = {}) {\n    this.scroll.update();\n    Object.keys(formats).forEach(format => {\n      this.scroll.lines(index, Math.max(length, 1)).forEach(line => {\n        line.format(format, formats[format]);\n      });\n    });\n    this.scroll.optimize();\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).retain(length, clone__WEBPACK_IMPORTED_MODULE_0___default()(formats));\n    return this.update(delta);\n  }\n\n  formatText(index, length, formats = {}) {\n    Object.keys(formats).forEach(format => {\n      this.scroll.formatAt(index, length, format, formats[format]);\n    });\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).retain(length, clone__WEBPACK_IMPORTED_MODULE_0___default()(formats));\n    return this.update(delta);\n  }\n\n  getContents(index, length) {\n    return this.delta.slice(index, index + length);\n  }\n\n  getDelta() {\n    return this.scroll.lines().reduce((delta, line) => {\n      return delta.concat(line.delta());\n    }, new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a());\n  }\n\n  getFormat(index, length = 0) {\n    let lines = [];\n    let leaves = [];\n\n    if (length === 0) {\n      this.scroll.path(index).forEach(path => {\n        const [blot] = path;\n\n        if (blot instanceof _blots_block__WEBPACK_IMPORTED_MODULE_7__["default"]) {\n          lines.push(blot);\n        } else if (blot instanceof parchment__WEBPACK_IMPORTED_MODULE_4__["LeafBlot"]) {\n          leaves.push(blot);\n        }\n      });\n    } else {\n      lines = this.scroll.lines(index, length);\n      leaves = this.scroll.descendants(parchment__WEBPACK_IMPORTED_MODULE_4__["LeafBlot"], index, length);\n    }\n\n    const formatsArr = [lines, leaves].map(blots => {\n      if (blots.length === 0) return {};\n      let formats = Object(_blots_block__WEBPACK_IMPORTED_MODULE_7__["bubbleFormats"])(blots.shift());\n\n      while (Object.keys(formats).length > 0) {\n        const blot = blots.shift();\n        if (blot == null) return formats;\n        formats = combineFormats(Object(_blots_block__WEBPACK_IMPORTED_MODULE_7__["bubbleFormats"])(blot), formats);\n      }\n\n      return formats;\n    });\n    return extend__WEBPACK_IMPORTED_MODULE_2___default.a.apply(extend__WEBPACK_IMPORTED_MODULE_2___default.a, formatsArr);\n  }\n\n  getHTML(index, length) {\n    const [line, lineOffset] = this.scroll.line(index);\n\n    if (line.length() >= lineOffset + length) {\n      return convertHTML(line, lineOffset, length, true);\n    }\n\n    return convertHTML(this.scroll, index, length, true);\n  }\n\n  getText(index, length) {\n    return this.getContents(index, length).filter(op => typeof op.insert === \'string\').map(op => op.insert).join(\'\');\n  }\n\n  insertEmbed(index, embed, value) {\n    this.scroll.insertAt(index, embed, value);\n    return this.update(new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).insert({\n      [embed]: value\n    }));\n  }\n\n  insertText(index, text, formats = {}) {\n    text = text.replace(/\\r\\n/g, \'\\n\').replace(/\\r/g, \'\\n\');\n    this.scroll.insertAt(index, text);\n    Object.keys(formats).forEach(format => {\n      this.scroll.formatAt(index, text.length, format, formats[format]);\n    });\n    return this.update(new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).insert(text, clone__WEBPACK_IMPORTED_MODULE_0___default()(formats)));\n  }\n\n  isBlank() {\n    if (this.scroll.children.length === 0) return true;\n    if (this.scroll.children.length > 1) return false;\n    const block = this.scroll.children.head;\n    if (block.statics.blotName !== _blots_block__WEBPACK_IMPORTED_MODULE_7__["default"].blotName) return false;\n    if (block.children.length > 1) return false;\n    return block.children.head instanceof _blots_break__WEBPACK_IMPORTED_MODULE_8__["default"];\n  }\n\n  removeFormat(index, length) {\n    const text = this.getText(index, length);\n    const [line, offset] = this.scroll.line(index + length);\n    let suffixLength = 0;\n    let suffix = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a();\n\n    if (line != null) {\n      suffixLength = line.length() - offset;\n      suffix = line.delta().slice(offset, offset + suffixLength - 1).insert(\'\\n\');\n    }\n\n    const contents = this.getContents(index, length + suffixLength);\n    const diff = contents.diff(new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().insert(text).concat(suffix));\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).concat(diff);\n    return this.applyDelta(delta);\n  }\n\n  update(change, mutations = [], selectionInfo = undefined) {\n    const oldDelta = this.delta;\n\n    if (mutations.length === 1 && mutations[0].type === \'characterData\' && mutations[0].target.data.match(ASCII) && this.scroll.find(mutations[0].target)) {\n      // Optimization for character changes\n      const textBlot = this.scroll.find(mutations[0].target);\n      const formats = Object(_blots_block__WEBPACK_IMPORTED_MODULE_7__["bubbleFormats"])(textBlot);\n      const index = textBlot.offset(this.scroll);\n      const oldValue = mutations[0].oldValue.replace(_blots_cursor__WEBPACK_IMPORTED_MODULE_6__["default"].CONTENTS, \'\');\n      const oldText = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().insert(oldValue);\n      const newText = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().insert(textBlot.value());\n      const relativeSelectionInfo = selectionInfo && {\n        oldRange: shiftRange(selectionInfo.oldRange, -index),\n        newRange: shiftRange(selectionInfo.newRange, -index)\n      };\n      const diffDelta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).concat(oldText.diff(newText, relativeSelectionInfo));\n      change = diffDelta.reduce((delta, op) => {\n        if (op.insert) {\n          return delta.insert(op.insert, formats);\n        }\n\n        return delta.push(op);\n      }, new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a());\n      this.delta = oldDelta.compose(change);\n    } else {\n      this.delta = this.getDelta();\n\n      if (!change || !deep_equal__WEBPACK_IMPORTED_MODULE_1___default()(oldDelta.compose(change), this.delta)) {\n        change = oldDelta.diff(this.delta, selectionInfo);\n      }\n    }\n\n    return change;\n  }\n\n}\n\nfunction convertListHTML(items, lastIndent, types) {\n  if (items.length === 0) {\n    const [endTag] = getListType(types.pop());\n\n    if (lastIndent <= 0) {\n      return "</li></".concat(endTag, ">");\n    }\n\n    return "</li></".concat(endTag, ">").concat(convertListHTML([], lastIndent - 1, types));\n  }\n\n  const [{\n    child,\n    offset,\n    length,\n    indent,\n    type\n  }, ...rest] = items;\n  const [tag, attribute] = getListType(type);\n\n  if (indent > lastIndent) {\n    types.push(type);\n\n    if (indent === lastIndent + 1) {\n      return "<".concat(tag, "><li").concat(attribute, ">").concat(convertHTML(child, offset, length)).concat(convertListHTML(rest, indent, types));\n    }\n\n    return "<".concat(tag, "><li>").concat(convertListHTML(items, lastIndent + 1, types));\n  }\n\n  const previousType = types[types.length - 1];\n\n  if (indent === lastIndent && type === previousType) {\n    return "</li><li".concat(attribute, ">").concat(convertHTML(child, offset, length)).concat(convertListHTML(rest, indent, types));\n  }\n\n  const [endTag] = getListType(types.pop());\n  return "</li></".concat(endTag, ">").concat(convertListHTML(items, lastIndent - 1, types));\n}\n\nfunction convertHTML(blot, index, length, isRoot = false) {\n  if (typeof blot.html === \'function\') {\n    return blot.html(index, length);\n  }\n\n  if (blot instanceof _blots_text__WEBPACK_IMPORTED_MODULE_9__["default"]) {\n    return Object(_blots_text__WEBPACK_IMPORTED_MODULE_9__["escapeText"])(blot.value().slice(index, index + length));\n  }\n\n  if (blot.children) {\n    // TODO fix API\n    if (blot.statics.blotName === \'list-container\') {\n      const items = [];\n      blot.children.forEachAt(index, length, (child, offset, childLength) => {\n        const formats = child.formats();\n        items.push({\n          child,\n          offset,\n          length: childLength,\n          indent: formats.indent || 0,\n          type: formats.list\n        });\n      });\n      return convertListHTML(items, -1, []);\n    }\n\n    const parts = [];\n    blot.children.forEachAt(index, length, (child, offset, childLength) => {\n      parts.push(convertHTML(child, offset, childLength));\n    });\n\n    if (isRoot || blot.statics.blotName === \'list\') {\n      return parts.join(\'\');\n    }\n\n    const {\n      outerHTML,\n      innerHTML\n    } = blot.domNode;\n    const [start, end] = outerHTML.split(">".concat(innerHTML, "<")); // TODO cleanup\n\n    if (start === \'<table\') {\n      return "<table style=\\"border: 1px solid #000;\\">".concat(parts.join(\'\'), "<").concat(end);\n    }\n\n    return "".concat(start, ">").concat(parts.join(\'\'), "<").concat(end);\n  }\n\n  return blot.domNode.outerHTML;\n}\n\nfunction combineFormats(formats, combined) {\n  return Object.keys(combined).reduce((merged, name) => {\n    if (formats[name] == null) return merged;\n\n    if (combined[name] === formats[name]) {\n      merged[name] = combined[name];\n    } else if (Array.isArray(combined[name])) {\n      if (combined[name].indexOf(formats[name]) < 0) {\n        merged[name] = combined[name].concat([formats[name]]);\n      }\n    } else {\n      merged[name] = [combined[name], formats[name]];\n    }\n\n    return merged;\n  }, {});\n}\n\nfunction getListType(type) {\n  const tag = type === \'ordered\' ? \'ol\' : \'ul\';\n\n  switch (type) {\n    case \'checked\':\n      return [tag, \' data-list="checked"\'];\n\n    case \'unchecked\':\n      return [tag, \' data-list="unchecked"\'];\n\n    default:\n      return [tag, \'\'];\n  }\n}\n\nfunction normalizeDelta(delta) {\n  return delta.reduce((normalizedDelta, op) => {\n    if (typeof op.insert === \'string\') {\n      const text = op.insert.replace(/\\r\\n/g, \'\\n\').replace(/\\r/g, \'\\n\');\n      return normalizedDelta.insert(text, op.attributes);\n    }\n\n    return normalizedDelta.push(op);\n  }, new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a());\n}\n\nfunction shiftRange({\n  index,\n  length\n}, amount) {\n  return new _selection__WEBPACK_IMPORTED_MODULE_5__["Range"](index + amount, length);\n}\n\n/* harmony default export */ __webpack_exports__["default"] = (Editor);\n\n//# sourceURL=webpack://Quill/./core/editor.js?')},"./core/emitter.js":
/*!*************************!*\
  !*** ./core/emitter.js ***!
  \*************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var eventemitter3__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! eventemitter3 */ \"./node_modules/eventemitter3/index.js\");\n/* harmony import */ var eventemitter3__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(eventemitter3__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _instances__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./instances */ \"./core/instances.js\");\n/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./logger */ \"./core/logger.js\");\n\n\n\nconst debug = Object(_logger__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('quill:events');\nconst EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];\nEVENTS.forEach(eventName => {\n  document.addEventListener(eventName, (...args) => {\n    Array.from(document.querySelectorAll('.ql-container')).forEach(node => {\n      const quill = _instances__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(node);\n\n      if (quill && quill.emitter) {\n        quill.emitter.handleDOM(...args);\n      }\n    });\n  });\n});\n\nclass Emitter extends eventemitter3__WEBPACK_IMPORTED_MODULE_0___default.a {\n  constructor() {\n    super();\n    this.listeners = {};\n    this.on('error', debug.error);\n  }\n\n  emit(...args) {\n    debug.log.call(debug, ...args);\n    super.emit(...args);\n  }\n\n  handleDOM(event, ...args) {\n    (this.listeners[event.type] || []).forEach(({\n      node,\n      handler\n    }) => {\n      if (event.target === node || node.contains(event.target)) {\n        handler(event, ...args);\n      }\n    });\n  }\n\n  listenDOM(eventName, node, handler) {\n    if (!this.listeners[eventName]) {\n      this.listeners[eventName] = [];\n    }\n\n    this.listeners[eventName].push({\n      node,\n      handler\n    });\n  }\n\n}\n\nEmitter.events = {\n  EDITOR_CHANGE: 'editor-change',\n  SCROLL_BEFORE_UPDATE: 'scroll-before-update',\n  SCROLL_BLOT_MOUNT: 'scroll-blot-mount',\n  SCROLL_BLOT_UNMOUNT: 'scroll-blot-unmount',\n  SCROLL_OPTIMIZE: 'scroll-optimize',\n  SCROLL_UPDATE: 'scroll-update',\n  SELECTION_CHANGE: 'selection-change',\n  TEXT_CHANGE: 'text-change'\n};\nEmitter.sources = {\n  API: 'api',\n  SILENT: 'silent',\n  USER: 'user'\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Emitter);\n\n//# sourceURL=webpack://Quill/./core/emitter.js?")},"./core/instances.js":
/*!***************************!*\
  !*** ./core/instances.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__["default"] = (new WeakMap());\n\n//# sourceURL=webpack://Quill/./core/instances.js?')},"./core/logger.js":
/*!************************!*\
  !*** ./core/logger.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\nconst levels = ['error', 'warn', 'log', 'info'];\nlet level = 'warn';\n\nfunction debug(method, ...args) {\n  if (levels.indexOf(method) <= levels.indexOf(level)) {\n    console[method](...args); // eslint-disable-line no-console\n  }\n}\n\nfunction namespace(ns) {\n  return levels.reduce((logger, method) => {\n    logger[method] = debug.bind(console, method, ns);\n    return logger;\n  }, {});\n}\n\nnamespace.level = newLevel => {\n  level = newLevel;\n};\n\ndebug.level = namespace.level;\n/* harmony default export */ __webpack_exports__[\"default\"] = (namespace);\n\n//# sourceURL=webpack://Quill/./core/logger.js?")},"./core/module.js":
/*!************************!*\
  !*** ./core/module.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\nclass Module {\n  constructor(quill, options = {}) {\n    this.quill = quill;\n    this.options = options;\n  }\n\n}\n\nModule.DEFAULTS = {};\n/* harmony default export */ __webpack_exports__["default"] = (Module);\n\n//# sourceURL=webpack://Quill/./core/module.js?')},"./core/quill.js":
/*!***********************!*\
  !*** ./core/quill.js ***!
  \***********************/
/*! exports provided: globalRegistry, expandConfig, overload, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "globalRegistry", function() { return globalRegistry; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expandConfig", function() { return expandConfig; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "overload", function() { return overload; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Quill; });\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill-delta */ "./node_modules/quill-delta/dist/Delta.js");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! extend */ "./node_modules/extend/index.js");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./editor */ "./core/editor.js");\n/* harmony import */ var _emitter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./emitter */ "./core/emitter.js");\n/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./module */ "./core/module.js");\n/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./selection */ "./core/selection.js");\n/* harmony import */ var _instances__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./instances */ "./core/instances.js");\n/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./logger */ "./core/logger.js");\n/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./theme */ "./core/theme.js");\n\n\n\n\n\n\n\n\n\n\nconst debug = Object(_logger__WEBPACK_IMPORTED_MODULE_8__["default"])(\'quill\');\nconst globalRegistry = new parchment__WEBPACK_IMPORTED_MODULE_1__["Registry"]();\nparchment__WEBPACK_IMPORTED_MODULE_1__["ParentBlot"].uiClass = \'ql-ui\';\n\nclass Quill {\n  static debug(limit) {\n    if (limit === true) {\n      limit = \'log\';\n    }\n\n    _logger__WEBPACK_IMPORTED_MODULE_8__["default"].level(limit);\n  }\n\n  static find(node) {\n    return _instances__WEBPACK_IMPORTED_MODULE_7__["default"].get(node) || globalRegistry.find(node);\n  }\n\n  static import(name) {\n    if (this.imports[name] == null) {\n      debug.error("Cannot import ".concat(name, ". Are you sure it was registered?"));\n    }\n\n    return this.imports[name];\n  }\n\n  static register(path, target, overwrite = false) {\n    if (typeof path !== \'string\') {\n      const name = path.attrName || path.blotName;\n\n      if (typeof name === \'string\') {\n        // register(Blot | Attributor, overwrite)\n        this.register("formats/".concat(name), path, target);\n      } else {\n        Object.keys(path).forEach(key => {\n          this.register(key, path[key], target);\n        });\n      }\n    } else {\n      if (this.imports[path] != null && !overwrite) {\n        debug.warn("Overwriting ".concat(path, " with"), target);\n      }\n\n      this.imports[path] = target;\n\n      if ((path.startsWith(\'blots/\') || path.startsWith(\'formats/\')) && target.blotName !== \'abstract\') {\n        globalRegistry.register(target);\n      }\n\n      if (typeof target.register === \'function\') {\n        target.register(globalRegistry);\n      }\n    }\n  }\n\n  constructor(container, options = {}) {\n    this.options = expandConfig(container, options);\n    this.container = this.options.container;\n\n    if (this.container == null) {\n      return debug.error(\'Invalid Quill container\', container);\n    }\n\n    if (this.options.debug) {\n      Quill.debug(this.options.debug);\n    }\n\n    const html = this.container.innerHTML.trim();\n    this.container.classList.add(\'ql-container\');\n    this.container.innerHTML = \'\';\n    _instances__WEBPACK_IMPORTED_MODULE_7__["default"].set(this.container, this);\n    this.root = this.addContainer(\'ql-editor\');\n    this.root.classList.add(\'ql-blank\');\n    this.root.setAttribute(\'data-gramm\', false);\n    this.scrollingContainer = this.options.scrollingContainer || this.root;\n    this.emitter = new _emitter__WEBPACK_IMPORTED_MODULE_4__["default"]();\n    const ScrollBlot = this.options.registry.query(parchment__WEBPACK_IMPORTED_MODULE_1__["ScrollBlot"].blotName);\n    this.scroll = new ScrollBlot(this.options.registry, this.root, {\n      emitter: this.emitter\n    });\n    this.editor = new _editor__WEBPACK_IMPORTED_MODULE_3__["default"](this.scroll);\n    this.selection = new _selection__WEBPACK_IMPORTED_MODULE_6__["default"](this.scroll, this.emitter);\n    this.theme = new this.options.theme(this, this.options); // eslint-disable-line new-cap\n\n    this.keyboard = this.theme.addModule(\'keyboard\');\n    this.clipboard = this.theme.addModule(\'clipboard\');\n    this.history = this.theme.addModule(\'history\');\n    this.uploader = this.theme.addModule(\'uploader\');\n    this.theme.init();\n    this.emitter.on(_emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events.EDITOR_CHANGE, type => {\n      if (type === _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events.TEXT_CHANGE) {\n        this.root.classList.toggle(\'ql-blank\', this.editor.isBlank());\n      }\n    });\n    this.emitter.on(_emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events.SCROLL_UPDATE, (source, mutations) => {\n      const oldRange = this.selection.lastRange;\n      const [newRange] = this.selection.getRange();\n      const selectionInfo = oldRange && newRange ? {\n        oldRange,\n        newRange\n      } : undefined;\n      modify.call(this, () => this.editor.update(null, mutations, selectionInfo), source);\n    });\n    const contents = this.clipboard.convert({\n      html: "".concat(html, "<p><br></p>"),\n      text: \'\\n\'\n    });\n    this.setContents(contents);\n    this.history.clear();\n\n    if (this.options.placeholder) {\n      this.root.setAttribute(\'data-placeholder\', this.options.placeholder);\n    }\n\n    if (this.options.readOnly) {\n      this.disable();\n    }\n\n    this.allowReadOnlyEdits = false;\n  }\n\n  addContainer(container, refNode = null) {\n    if (typeof container === \'string\') {\n      const className = container;\n      container = document.createElement(\'div\');\n      container.classList.add(className);\n    }\n\n    this.container.insertBefore(container, refNode);\n    return container;\n  }\n\n  blur() {\n    this.selection.setRange(null);\n  }\n\n  deleteText(index, length, source) {\n    [index, length,, source] = overload(index, length, source);\n    return modify.call(this, () => {\n      return this.editor.deleteText(index, length);\n    }, source, index, -1 * length);\n  }\n\n  disable() {\n    this.enable(false);\n  }\n\n  editReadOnly(modifier) {\n    this.allowReadOnlyEdits = true;\n    const value = modifier();\n    this.allowReadOnlyEdits = false;\n    return value;\n  }\n\n  enable(enabled = true) {\n    this.scroll.enable(enabled);\n    this.container.classList.toggle(\'ql-disabled\', !enabled);\n  }\n\n  focus() {\n    const {\n      scrollTop\n    } = this.scrollingContainer;\n    this.selection.focus();\n    this.scrollingContainer.scrollTop = scrollTop;\n    this.scrollIntoView();\n  }\n\n  format(name, value, source = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.API) {\n    return modify.call(this, () => {\n      const range = this.getSelection(true);\n      let change = new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a();\n      if (range == null) return change;\n\n      if (this.scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_1__["Scope"].BLOCK)) {\n        change = this.editor.formatLine(range.index, range.length, {\n          [name]: value\n        });\n      } else if (range.length === 0) {\n        this.selection.format(name, value);\n        return change;\n      } else {\n        change = this.editor.formatText(range.index, range.length, {\n          [name]: value\n        });\n      }\n\n      this.setSelection(range, _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.SILENT);\n      return change;\n    }, source);\n  }\n\n  formatLine(index, length, name, value, source) {\n    let formats; // eslint-disable-next-line prefer-const\n\n    [index, length, formats, source] = overload(index, length, name, value, source);\n    return modify.call(this, () => {\n      return this.editor.formatLine(index, length, formats);\n    }, source, index, 0);\n  }\n\n  formatText(index, length, name, value, source) {\n    let formats; // eslint-disable-next-line prefer-const\n\n    [index, length, formats, source] = overload(index, length, name, value, source);\n    return modify.call(this, () => {\n      return this.editor.formatText(index, length, formats);\n    }, source, index, 0);\n  }\n\n  getBounds(index, length = 0) {\n    let bounds;\n\n    if (typeof index === \'number\') {\n      bounds = this.selection.getBounds(index, length);\n    } else {\n      bounds = this.selection.getBounds(index.index, index.length);\n    }\n\n    const containerBounds = this.container.getBoundingClientRect();\n    return {\n      bottom: bounds.bottom - containerBounds.top,\n      height: bounds.height,\n      left: bounds.left - containerBounds.left,\n      right: bounds.right - containerBounds.left,\n      top: bounds.top - containerBounds.top,\n      width: bounds.width\n    };\n  }\n\n  getContents(index = 0, length = this.getLength() - index) {\n    [index, length] = overload(index, length);\n    return this.editor.getContents(index, length);\n  }\n\n  getFormat(index = this.getSelection(true), length = 0) {\n    if (typeof index === \'number\') {\n      return this.editor.getFormat(index, length);\n    }\n\n    return this.editor.getFormat(index.index, index.length);\n  }\n\n  getIndex(blot) {\n    return blot.offset(this.scroll);\n  }\n\n  getLength() {\n    return this.scroll.length();\n  }\n\n  getLeaf(index) {\n    return this.scroll.leaf(index);\n  }\n\n  getLine(index) {\n    return this.scroll.line(index);\n  }\n\n  getLines(index = 0, length = Number.MAX_VALUE) {\n    if (typeof index !== \'number\') {\n      return this.scroll.lines(index.index, index.length);\n    }\n\n    return this.scroll.lines(index, length);\n  }\n\n  getModule(name) {\n    return this.theme.modules[name];\n  }\n\n  getSelection(focus = false) {\n    if (focus) this.focus();\n    this.update(); // Make sure we access getRange with editor in consistent state\n\n    return this.selection.getRange()[0];\n  }\n\n  getSemanticHTML(index = 0, length = this.getLength() - index) {\n    [index, length] = overload(index, length);\n    return this.editor.getHTML(index, length);\n  }\n\n  getText(index = 0, length = this.getLength() - index) {\n    [index, length] = overload(index, length);\n    return this.editor.getText(index, length);\n  }\n\n  hasFocus() {\n    return this.selection.hasFocus();\n  }\n\n  insertEmbed(index, embed, value, source = Quill.sources.API) {\n    return modify.call(this, () => {\n      return this.editor.insertEmbed(index, embed, value);\n    }, source, index);\n  }\n\n  insertText(index, text, name, value, source) {\n    let formats; // eslint-disable-next-line prefer-const\n\n    [index,, formats, source] = overload(index, 0, name, value, source);\n    return modify.call(this, () => {\n      return this.editor.insertText(index, text, formats);\n    }, source, index, text.length);\n  }\n\n  isEnabled() {\n    return this.scroll.isEnabled();\n  }\n\n  off(...args) {\n    return this.emitter.off(...args);\n  }\n\n  on(...args) {\n    return this.emitter.on(...args);\n  }\n\n  once(...args) {\n    return this.emitter.once(...args);\n  }\n\n  removeFormat(index, length, source) {\n    [index, length,, source] = overload(index, length, source);\n    return modify.call(this, () => {\n      return this.editor.removeFormat(index, length);\n    }, source, index);\n  }\n\n  scrollIntoView() {\n    this.selection.scrollIntoView(this.scrollingContainer);\n  }\n\n  setContents(delta, source = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.API) {\n    return modify.call(this, () => {\n      delta = new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a(delta);\n      const length = this.getLength();\n      const deleted = this.editor.deleteText(0, length);\n      const applied = this.editor.applyDelta(delta);\n      const lastOp = applied.ops[applied.ops.length - 1];\n\n      if (lastOp != null && typeof lastOp.insert === \'string\' && lastOp.insert[lastOp.insert.length - 1] === \'\\n\') {\n        this.editor.deleteText(this.getLength() - 1, 1);\n        applied.delete(1);\n      }\n\n      return deleted.compose(applied);\n    }, source);\n  }\n\n  setSelection(index, length, source) {\n    if (index == null) {\n      this.selection.setRange(null, length || Quill.sources.API);\n    } else {\n      [index, length,, source] = overload(index, length, source);\n      this.selection.setRange(new _selection__WEBPACK_IMPORTED_MODULE_6__["Range"](Math.max(0, index), length), source);\n\n      if (source !== _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.SILENT) {\n        this.selection.scrollIntoView(this.scrollingContainer);\n      }\n    }\n  }\n\n  setText(text, source = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.API) {\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a().insert(text);\n    return this.setContents(delta, source);\n  }\n\n  update(source = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.USER) {\n    const change = this.scroll.update(source); // Will update selection before selection.update() does if text changes\n\n    this.selection.update(source); // TODO this is usually undefined\n\n    return change;\n  }\n\n  updateContents(delta, source = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.API) {\n    return modify.call(this, () => {\n      delta = new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a(delta);\n      return this.editor.applyDelta(delta, source);\n    }, source, true);\n  }\n\n}\n\nQuill.DEFAULTS = {\n  bounds: null,\n  modules: {},\n  placeholder: \'\',\n  readOnly: false,\n  registry: globalRegistry,\n  scrollingContainer: null,\n  theme: \'default\'\n};\nQuill.events = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events;\nQuill.sources = _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources; // eslint-disable-next-line no-undef\n\nQuill.version =  false ? undefined : "2.0.0-dev.3";\nQuill.imports = {\n  delta: quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a,\n  parchment: parchment__WEBPACK_IMPORTED_MODULE_1__,\n  \'core/module\': _module__WEBPACK_IMPORTED_MODULE_5__["default"],\n  \'core/theme\': _theme__WEBPACK_IMPORTED_MODULE_9__["default"]\n};\n\nfunction expandConfig(container, userConfig) {\n  userConfig = extend__WEBPACK_IMPORTED_MODULE_2___default()(true, {\n    container,\n    modules: {\n      clipboard: true,\n      keyboard: true,\n      history: true,\n      uploader: true\n    }\n  }, userConfig);\n\n  if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {\n    userConfig.theme = _theme__WEBPACK_IMPORTED_MODULE_9__["default"];\n  } else {\n    userConfig.theme = Quill.import("themes/".concat(userConfig.theme));\n\n    if (userConfig.theme == null) {\n      throw new Error("Invalid theme ".concat(userConfig.theme, ". Did you register it?"));\n    }\n  }\n\n  const themeConfig = extend__WEBPACK_IMPORTED_MODULE_2___default()(true, {}, userConfig.theme.DEFAULTS);\n  [themeConfig, userConfig].forEach(config => {\n    config.modules = config.modules || {};\n    Object.keys(config.modules).forEach(module => {\n      if (config.modules[module] === true) {\n        config.modules[module] = {};\n      }\n    });\n  });\n  const moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));\n  const moduleConfig = moduleNames.reduce((config, name) => {\n    const moduleClass = Quill.import("modules/".concat(name));\n\n    if (moduleClass == null) {\n      debug.error("Cannot load ".concat(name, " module. Are you sure you registered it?"));\n    } else {\n      config[name] = moduleClass.DEFAULTS || {};\n    }\n\n    return config;\n  }, {}); // Special case toolbar shorthand\n\n  if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {\n    userConfig.modules.toolbar = {\n      container: userConfig.modules.toolbar\n    };\n  }\n\n  userConfig = extend__WEBPACK_IMPORTED_MODULE_2___default()(true, {}, Quill.DEFAULTS, {\n    modules: moduleConfig\n  }, themeConfig, userConfig);\n  [\'bounds\', \'container\', \'scrollingContainer\'].forEach(key => {\n    if (typeof userConfig[key] === \'string\') {\n      userConfig[key] = document.querySelector(userConfig[key]);\n    }\n  });\n  userConfig.modules = Object.keys(userConfig.modules).reduce((config, name) => {\n    if (userConfig.modules[name]) {\n      config[name] = userConfig.modules[name];\n    }\n\n    return config;\n  }, {});\n  return userConfig;\n} // Handle selection preservation and TEXT_CHANGE emission\n// common to modification APIs\n\n\nfunction modify(modifier, source, index, shift) {\n  if (!this.isEnabled() && source === _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.USER && !this.allowReadOnlyEdits) {\n    return new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a();\n  }\n\n  let range = index == null ? null : this.getSelection();\n  const oldDelta = this.editor.delta;\n  const change = modifier();\n\n  if (range != null) {\n    if (index === true) {\n      index = range.index; // eslint-disable-line prefer-destructuring\n    }\n\n    if (shift == null) {\n      range = shiftRange(range, change, source);\n    } else if (shift !== 0) {\n      range = shiftRange(range, index, shift, source);\n    }\n\n    this.setSelection(range, _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.SILENT);\n  }\n\n  if (change.length() > 0) {\n    const args = [_emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events.TEXT_CHANGE, change, oldDelta, source];\n    this.emitter.emit(_emitter__WEBPACK_IMPORTED_MODULE_4__["default"].events.EDITOR_CHANGE, ...args);\n\n    if (source !== _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.SILENT) {\n      this.emitter.emit(...args);\n    }\n  }\n\n  return change;\n}\n\nfunction overload(index, length, name, value, source) {\n  let formats = {};\n\n  if (typeof index.index === \'number\' && typeof index.length === \'number\') {\n    // Allow for throwaway end (used by insertText/insertEmbed)\n    if (typeof length !== \'number\') {\n      source = value;\n      value = name;\n      name = length;\n      length = index.length; // eslint-disable-line prefer-destructuring\n\n      index = index.index; // eslint-disable-line prefer-destructuring\n    } else {\n      length = index.length; // eslint-disable-line prefer-destructuring\n\n      index = index.index; // eslint-disable-line prefer-destructuring\n    }\n  } else if (typeof length !== \'number\') {\n    source = value;\n    value = name;\n    name = length;\n    length = 0;\n  } // Handle format being object, two format name/value strings or excluded\n\n\n  if (typeof name === \'object\') {\n    formats = name;\n    source = value;\n  } else if (typeof name === \'string\') {\n    if (value != null) {\n      formats[name] = value;\n    } else {\n      source = name;\n    }\n  } // Handle optional source\n\n\n  source = source || _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.API;\n  return [index, length, formats, source];\n}\n\nfunction shiftRange(range, index, length, source) {\n  if (range == null) return null;\n  let start;\n  let end;\n\n  if (index instanceof quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a) {\n    [start, end] = [range.index, range.index + range.length].map(pos => index.transformPosition(pos, source !== _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.USER));\n  } else {\n    [start, end] = [range.index, range.index + range.length].map(pos => {\n      if (pos < index || pos === index && source === _emitter__WEBPACK_IMPORTED_MODULE_4__["default"].sources.USER) return pos;\n\n      if (length >= 0) {\n        return pos + length;\n      }\n\n      return Math.max(index, pos + length);\n    });\n  }\n\n  return new _selection__WEBPACK_IMPORTED_MODULE_6__["Range"](start, end - start);\n}\n\n\n\n//# sourceURL=webpack://Quill/./core/quill.js?')},"./core/selection.js":
/*!***************************!*\
  !*** ./core/selection.js ***!
  \***************************/
/*! exports provided: Range, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Range", function() { return Range; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Selection; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! clone */ "./node_modules/clone/clone.js");\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(clone__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! deep-equal */ "./node_modules/deep-equal/index.js");\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(deep_equal__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _emitter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./emitter */ "./core/emitter.js");\n/* harmony import */ var _logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger */ "./core/logger.js");\n\n\n\n\n\nconst debug = Object(_logger__WEBPACK_IMPORTED_MODULE_4__["default"])(\'quill:selection\');\n\nclass Range {\n  constructor(index, length = 0) {\n    this.index = index;\n    this.length = length;\n  }\n\n}\n\nclass Selection {\n  constructor(scroll, emitter) {\n    this.emitter = emitter;\n    this.scroll = scroll;\n    this.composing = false;\n    this.mouseDown = false;\n    this.root = this.scroll.domNode;\n    this.cursor = this.scroll.create(\'cursor\', this); // savedRange is last non-null range\n\n    this.savedRange = new Range(0, 0);\n    this.lastRange = this.savedRange;\n    this.lastNative = null;\n    this.handleComposition();\n    this.handleDragging();\n    this.emitter.listenDOM(\'selectionchange\', document, () => {\n      if (!this.mouseDown && !this.composing) {\n        setTimeout(this.update.bind(this, _emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.USER), 1);\n      }\n    });\n    this.emitter.on(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].events.SCROLL_BEFORE_UPDATE, () => {\n      if (!this.hasFocus()) return;\n      const native = this.getNativeRange();\n      if (native == null) return;\n      if (native.start.node === this.cursor.textNode) return; // cursor.restore() will handle\n\n      this.emitter.once(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].events.SCROLL_UPDATE, () => {\n        try {\n          if (this.root.contains(native.start.node) && this.root.contains(native.end.node)) {\n            this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);\n          }\n\n          this.update(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.SILENT);\n        } catch (ignored) {// ignore\n        }\n      });\n    });\n    this.emitter.on(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].events.SCROLL_OPTIMIZE, (mutations, context) => {\n      if (context.range) {\n        const {\n          startNode,\n          startOffset,\n          endNode,\n          endOffset\n        } = context.range;\n        this.setNativeRange(startNode, startOffset, endNode, endOffset);\n        this.update(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.SILENT);\n      }\n    });\n    this.update(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.SILENT);\n  }\n\n  handleComposition() {\n    this.root.addEventListener(\'compositionstart\', () => {\n      this.composing = true;\n      this.scroll.batchStart();\n    });\n    this.root.addEventListener(\'compositionend\', () => {\n      this.scroll.batchEnd();\n      this.composing = false;\n\n      if (this.cursor.parent) {\n        const range = this.cursor.restore();\n        if (!range) return;\n        setTimeout(() => {\n          this.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);\n        }, 1);\n      }\n    });\n  }\n\n  handleDragging() {\n    this.emitter.listenDOM(\'mousedown\', document.body, () => {\n      this.mouseDown = true;\n    });\n    this.emitter.listenDOM(\'mouseup\', document.body, () => {\n      this.mouseDown = false;\n      this.update(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.USER);\n    });\n  }\n\n  focus() {\n    if (this.hasFocus()) return;\n    this.root.focus();\n    this.setRange(this.savedRange);\n  }\n\n  format(format, value) {\n    this.scroll.update();\n    const nativeRange = this.getNativeRange();\n    if (nativeRange == null || !nativeRange.native.collapsed || this.scroll.query(format, parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].BLOCK)) return;\n\n    if (nativeRange.start.node !== this.cursor.textNode) {\n      const blot = this.scroll.find(nativeRange.start.node, false);\n      if (blot == null) return; // TODO Give blot ability to not split\n\n      if (blot instanceof parchment__WEBPACK_IMPORTED_MODULE_0__["LeafBlot"]) {\n        const after = blot.split(nativeRange.start.offset);\n        blot.parent.insertBefore(this.cursor, after);\n      } else {\n        blot.insertBefore(this.cursor, nativeRange.start.node); // Should never happen\n      }\n\n      this.cursor.attach();\n    }\n\n    this.cursor.format(format, value);\n    this.scroll.optimize();\n    this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);\n    this.update();\n  }\n\n  getBounds(index, length = 0) {\n    const scrollLength = this.scroll.length();\n    index = Math.min(index, scrollLength - 1);\n    length = Math.min(index + length, scrollLength - 1) - index;\n    let node;\n    let [leaf, offset] = this.scroll.leaf(index);\n    if (leaf == null) return null;\n    [node, offset] = leaf.position(offset, true);\n    const range = document.createRange();\n\n    if (length > 0) {\n      range.setStart(node, offset);\n      [leaf, offset] = this.scroll.leaf(index + length);\n      if (leaf == null) return null;\n      [node, offset] = leaf.position(offset, true);\n      range.setEnd(node, offset);\n      return range.getBoundingClientRect();\n    }\n\n    let side = \'left\';\n    let rect;\n\n    if (node instanceof Text) {\n      if (offset < node.data.length) {\n        range.setStart(node, offset);\n        range.setEnd(node, offset + 1);\n      } else {\n        range.setStart(node, offset - 1);\n        range.setEnd(node, offset);\n        side = \'right\';\n      }\n\n      rect = range.getBoundingClientRect();\n    } else {\n      rect = leaf.domNode.getBoundingClientRect();\n      if (offset > 0) side = \'right\';\n    }\n\n    return {\n      bottom: rect.top + rect.height,\n      height: rect.height,\n      left: rect[side],\n      right: rect[side],\n      top: rect.top,\n      width: 0\n    };\n  }\n\n  getNativeRange() {\n    const selection = document.getSelection();\n    if (selection == null || selection.rangeCount <= 0) return null;\n    const nativeRange = selection.getRangeAt(0);\n    if (nativeRange == null) return null;\n    const range = this.normalizeNative(nativeRange);\n    debug.info(\'getNativeRange\', range);\n    return range;\n  }\n\n  getRange() {\n    const normalized = this.getNativeRange();\n    if (normalized == null) return [null, null];\n    const range = this.normalizedToRange(normalized);\n    return [range, normalized];\n  }\n\n  hasFocus() {\n    return document.activeElement === this.root || contains(this.root, document.activeElement);\n  }\n\n  normalizedToRange(range) {\n    const positions = [[range.start.node, range.start.offset]];\n\n    if (!range.native.collapsed) {\n      positions.push([range.end.node, range.end.offset]);\n    }\n\n    const indexes = positions.map(position => {\n      const [node, offset] = position;\n      const blot = this.scroll.find(node, true);\n      const index = blot.offset(this.scroll);\n\n      if (offset === 0) {\n        return index;\n      }\n\n      if (blot instanceof parchment__WEBPACK_IMPORTED_MODULE_0__["LeafBlot"]) {\n        return index + blot.index(node, offset);\n      }\n\n      return index + blot.length();\n    });\n    const end = Math.min(Math.max(...indexes), this.scroll.length() - 1);\n    const start = Math.min(end, ...indexes);\n    return new Range(start, end - start);\n  }\n\n  normalizeNative(nativeRange) {\n    if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {\n      return null;\n    }\n\n    const range = {\n      start: {\n        node: nativeRange.startContainer,\n        offset: nativeRange.startOffset\n      },\n      end: {\n        node: nativeRange.endContainer,\n        offset: nativeRange.endOffset\n      },\n      native: nativeRange\n    };\n    [range.start, range.end].forEach(position => {\n      let {\n        node,\n        offset\n      } = position;\n\n      while (!(node instanceof Text) && node.childNodes.length > 0) {\n        if (node.childNodes.length > offset) {\n          node = node.childNodes[offset];\n          offset = 0;\n        } else if (node.childNodes.length === offset) {\n          node = node.lastChild;\n\n          if (node instanceof Text) {\n            offset = node.data.length;\n          } else if (node.childNodes.length > 0) {\n            // Container case\n            offset = node.childNodes.length;\n          } else {\n            // Embed case\n            offset = node.childNodes.length + 1;\n          }\n        } else {\n          break;\n        }\n      }\n\n      position.node = node;\n      position.offset = offset;\n    });\n    return range;\n  }\n\n  rangeToNative(range) {\n    const indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];\n    const args = [];\n    const scrollLength = this.scroll.length();\n    indexes.forEach((index, i) => {\n      index = Math.min(scrollLength - 1, index);\n      const [leaf, leafOffset] = this.scroll.leaf(index);\n      const [node, offset] = leaf.position(leafOffset, i !== 0);\n      args.push(node, offset);\n    });\n\n    if (args.length < 2) {\n      return args.concat(args);\n    }\n\n    return args;\n  }\n\n  scrollIntoView(scrollingContainer) {\n    const range = this.lastRange;\n    if (range == null) return;\n    const bounds = this.getBounds(range.index, range.length);\n    if (bounds == null) return;\n    const limit = this.scroll.length() - 1;\n    const [first] = this.scroll.line(Math.min(range.index, limit));\n    let last = first;\n\n    if (range.length > 0) {\n      [last] = this.scroll.line(Math.min(range.index + range.length, limit));\n    }\n\n    if (first == null || last == null) return;\n    const scrollBounds = scrollingContainer.getBoundingClientRect();\n\n    if (bounds.top < scrollBounds.top) {\n      scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;\n    } else if (bounds.bottom > scrollBounds.bottom) {\n      scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;\n    }\n  }\n\n  setNativeRange(startNode, startOffset, endNode = startNode, endOffset = startOffset, force = false) {\n    debug.info(\'setNativeRange\', startNode, startOffset, endNode, endOffset);\n\n    if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {\n      return;\n    }\n\n    const selection = document.getSelection();\n    if (selection == null) return;\n\n    if (startNode != null) {\n      if (!this.hasFocus()) this.root.focus();\n      const {\n        native\n      } = this.getNativeRange() || {};\n\n      if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {\n        if (startNode.tagName === \'BR\') {\n          startOffset = Array.from(startNode.parentNode.childNodes).indexOf(startNode);\n          startNode = startNode.parentNode;\n        }\n\n        if (endNode.tagName === \'BR\') {\n          endOffset = Array.from(endNode.parentNode.childNodes).indexOf(endNode);\n          endNode = endNode.parentNode;\n        }\n\n        const range = document.createRange();\n        range.setStart(startNode, startOffset);\n        range.setEnd(endNode, endOffset);\n        selection.removeAllRanges();\n        selection.addRange(range);\n      }\n    } else {\n      selection.removeAllRanges();\n      this.root.blur();\n    }\n  }\n\n  setRange(range, force = false, source = _emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.API) {\n    if (typeof force === \'string\') {\n      source = force;\n      force = false;\n    }\n\n    debug.info(\'setRange\', range);\n\n    if (range != null) {\n      const args = this.rangeToNative(range);\n      this.setNativeRange(...args, force);\n    } else {\n      this.setNativeRange(null);\n    }\n\n    this.update(source);\n  }\n\n  update(source = _emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.USER) {\n    const oldRange = this.lastRange;\n    const [lastRange, nativeRange] = this.getRange();\n    this.lastRange = lastRange;\n    this.lastNative = nativeRange;\n\n    if (this.lastRange != null) {\n      this.savedRange = this.lastRange;\n    }\n\n    if (!deep_equal__WEBPACK_IMPORTED_MODULE_2___default()(oldRange, this.lastRange)) {\n      if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {\n        const range = this.cursor.restore();\n\n        if (range) {\n          this.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);\n        }\n      }\n\n      const args = [_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].events.SELECTION_CHANGE, clone__WEBPACK_IMPORTED_MODULE_1___default()(this.lastRange), clone__WEBPACK_IMPORTED_MODULE_1___default()(oldRange), source];\n      this.emitter.emit(_emitter__WEBPACK_IMPORTED_MODULE_3__["default"].events.EDITOR_CHANGE, ...args);\n\n      if (source !== _emitter__WEBPACK_IMPORTED_MODULE_3__["default"].sources.SILENT) {\n        this.emitter.emit(...args);\n      }\n    }\n  }\n\n}\n\nfunction contains(parent, descendant) {\n  try {\n    // Firefox inserts inaccessible nodes around video elements\n    descendant.parentNode; // eslint-disable-line no-unused-expressions\n  } catch (e) {\n    return false;\n  }\n\n  return parent.contains(descendant);\n}\n\n\n\n//# sourceURL=webpack://Quill/./core/selection.js?')},"./core/theme.js":
/*!***********************!*\
  !*** ./core/theme.js ***!
  \***********************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\nclass Theme {\n  constructor(quill, options) {\n    this.quill = quill;\n    this.options = options;\n    this.modules = {};\n  }\n\n  init() {\n    Object.keys(this.options.modules).forEach(name => {\n      if (this.modules[name] == null) {\n        this.addModule(name);\n      }\n    });\n  }\n\n  addModule(name) {\n    const ModuleClass = this.quill.constructor.import("modules/".concat(name));\n    this.modules[name] = new ModuleClass(this.quill, this.options.modules[name] || {});\n    return this.modules[name];\n  }\n\n}\n\nTheme.DEFAULTS = {\n  modules: {}\n};\nTheme.themes = {\n  default: Theme\n};\n/* harmony default export */ __webpack_exports__["default"] = (Theme);\n\n//# sourceURL=webpack://Quill/./core/theme.js?')},"./formats/align.js":
/*!**************************!*\
  !*** ./formats/align.js ***!
  \**************************/
/*! exports provided: AlignAttribute, AlignClass, AlignStyle */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AlignAttribute\", function() { return AlignAttribute; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AlignClass\", function() { return AlignClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"AlignStyle\", function() { return AlignStyle; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\nconst config = {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].BLOCK,\n  whitelist: ['right', 'center', 'justify']\n};\nconst AlignAttribute = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"Attributor\"]('align', 'align', config);\nconst AlignClass = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"ClassAttributor\"]('align', 'ql-align', config);\nconst AlignStyle = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"StyleAttributor\"]('align', 'text-align', config);\n\n\n//# sourceURL=webpack://Quill/./formats/align.js?")},"./formats/background.js":
/*!*******************************!*\
  !*** ./formats/background.js ***!
  \*******************************/
/*! exports provided: BackgroundClass, BackgroundStyle */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackgroundClass", function() { return BackgroundClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BackgroundStyle", function() { return BackgroundStyle; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./color */ "./formats/color.js");\n\n\nconst BackgroundClass = new parchment__WEBPACK_IMPORTED_MODULE_0__["ClassAttributor"](\'background\', \'ql-bg\', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].INLINE\n});\nconst BackgroundStyle = new _color__WEBPACK_IMPORTED_MODULE_1__["ColorAttributor"](\'background\', \'background-color\', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].INLINE\n});\n\n\n//# sourceURL=webpack://Quill/./formats/background.js?')},"./formats/blockquote.js":
/*!*******************************!*\
  !*** ./formats/blockquote.js ***!
  \*******************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ "./blots/block.js");\n\n\nclass Blockquote extends _blots_block__WEBPACK_IMPORTED_MODULE_0__["default"] {}\n\nBlockquote.blotName = \'blockquote\';\nBlockquote.tagName = \'blockquote\';\n/* harmony default export */ __webpack_exports__["default"] = (Blockquote);\n\n//# sourceURL=webpack://Quill/./formats/blockquote.js?')},"./formats/bold.js":
/*!*************************!*\
  !*** ./formats/bold.js ***!
  \*************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/inline */ \"./blots/inline.js\");\n\n\nclass Bold extends _blots_inline__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create() {\n    return super.create();\n  }\n\n  static formats() {\n    return true;\n  }\n\n  optimize(context) {\n    super.optimize(context);\n\n    if (this.domNode.tagName !== this.statics.tagName[0]) {\n      this.replaceWith(this.statics.blotName);\n    }\n  }\n\n}\n\nBold.blotName = 'bold';\nBold.tagName = ['STRONG', 'B'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Bold);\n\n//# sourceURL=webpack://Quill/./formats/bold.js?")},"./formats/code.js":
/*!*************************!*\
  !*** ./formats/code.js ***!
  \*************************/
/*! exports provided: Code, CodeBlockContainer, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Code", function() { return Code; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CodeBlockContainer", function() { return CodeBlockContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CodeBlock; });\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ "./blots/block.js");\n/* harmony import */ var _blots_break__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../blots/break */ "./blots/break.js");\n/* harmony import */ var _blots_cursor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../blots/cursor */ "./blots/cursor.js");\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../blots/inline */ "./blots/inline.js");\n/* harmony import */ var _blots_text__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../blots/text */ "./blots/text.js");\n/* harmony import */ var _blots_container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../blots/container */ "./blots/container.js");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/quill */ "./core/quill.js");\n\n\n\n\n\n\n\n\nclass CodeBlockContainer extends _blots_container__WEBPACK_IMPORTED_MODULE_5__["default"] {\n  static create(value) {\n    const domNode = super.create(value);\n    domNode.setAttribute(\'spellcheck\', false);\n    return domNode;\n  }\n\n  html(index, length) {\n    const text = this.children.map(child => child.domNode.innerText).join(\'\\n\').slice(index, index + length);\n    return "<pre>".concat(Object(_blots_text__WEBPACK_IMPORTED_MODULE_4__["escapeText"])(text), "</pre>");\n  }\n\n}\n\nclass CodeBlock extends _blots_block__WEBPACK_IMPORTED_MODULE_0__["default"] {\n  static register() {\n    _core_quill__WEBPACK_IMPORTED_MODULE_6__["default"].register(CodeBlockContainer);\n  }\n\n}\n\nclass Code extends _blots_inline__WEBPACK_IMPORTED_MODULE_3__["default"] {}\n\nCode.blotName = \'code\';\nCode.tagName = \'CODE\';\nCodeBlock.blotName = \'code-block\';\nCodeBlock.className = \'ql-code-block\';\nCodeBlock.tagName = \'DIV\';\nCodeBlockContainer.blotName = \'code-block-container\';\nCodeBlockContainer.className = \'ql-code-block-container\';\nCodeBlockContainer.tagName = \'DIV\';\nCodeBlockContainer.allowedChildren = [CodeBlock];\nCodeBlock.allowedChildren = [_blots_text__WEBPACK_IMPORTED_MODULE_4__["default"], _blots_break__WEBPACK_IMPORTED_MODULE_1__["default"], _blots_cursor__WEBPACK_IMPORTED_MODULE_2__["default"]];\nCodeBlock.requiredContainer = CodeBlockContainer;\nCodeBlock.TAB = \'  \';\n\n\n//# sourceURL=webpack://Quill/./formats/code.js?')},"./formats/color.js":
/*!**************************!*\
  !*** ./formats/color.js ***!
  \**************************/
/*! exports provided: ColorAttributor, ColorClass, ColorStyle */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorAttributor", function() { return ColorAttributor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorClass", function() { return ColorClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorStyle", function() { return ColorStyle; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n\n\nclass ColorAttributor extends parchment__WEBPACK_IMPORTED_MODULE_0__["StyleAttributor"] {\n  value(domNode) {\n    let value = super.value(domNode);\n    if (!value.startsWith(\'rgb(\')) return value;\n    value = value.replace(/^[^\\d]+/, \'\').replace(/[^\\d]+$/, \'\');\n    const hex = value.split(\',\').map(component => "00".concat(parseInt(component, 10).toString(16)).slice(-2)).join(\'\');\n    return "#".concat(hex);\n  }\n\n}\n\nconst ColorClass = new parchment__WEBPACK_IMPORTED_MODULE_0__["ClassAttributor"](\'color\', \'ql-color\', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].INLINE\n});\nconst ColorStyle = new ColorAttributor(\'color\', \'color\', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].INLINE\n});\n\n\n//# sourceURL=webpack://Quill/./formats/color.js?')},"./formats/direction.js":
/*!******************************!*\
  !*** ./formats/direction.js ***!
  \******************************/
/*! exports provided: DirectionAttribute, DirectionClass, DirectionStyle */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionAttribute", function() { return DirectionAttribute; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionClass", function() { return DirectionClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionStyle", function() { return DirectionStyle; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n\nconst config = {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].BLOCK,\n  whitelist: [\'rtl\']\n};\nconst DirectionAttribute = new parchment__WEBPACK_IMPORTED_MODULE_0__["Attributor"](\'direction\', \'dir\', config);\nconst DirectionClass = new parchment__WEBPACK_IMPORTED_MODULE_0__["ClassAttributor"](\'direction\', \'ql-direction\', config);\nconst DirectionStyle = new parchment__WEBPACK_IMPORTED_MODULE_0__["StyleAttributor"](\'direction\', \'direction\', config);\n\n\n//# sourceURL=webpack://Quill/./formats/direction.js?')},"./formats/font.js":
/*!*************************!*\
  !*** ./formats/font.js ***!
  \*************************/
/*! exports provided: FontStyle, FontClass */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontStyle\", function() { return FontStyle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FontClass\", function() { return FontClass; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\nconst config = {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].INLINE,\n  whitelist: ['serif', 'monospace']\n};\nconst FontClass = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"ClassAttributor\"]('font', 'ql-font', config);\n\nclass FontStyleAttributor extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"StyleAttributor\"] {\n  value(node) {\n    return super.value(node).replace(/[\"']/g, '');\n  }\n\n}\n\nconst FontStyle = new FontStyleAttributor('font', 'font-family', config);\n\n\n//# sourceURL=webpack://Quill/./formats/font.js?")},"./formats/formula.js":
/*!****************************!*\
  !*** ./formats/formula.js ***!
  \****************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_embed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/embed */ \"./blots/embed.js\");\n\n\nclass Formula extends _blots_embed__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create(value) {\n    if (window.katex == null) {\n      throw new Error('Formula module requires KaTeX.');\n    }\n\n    const node = super.create(value);\n\n    if (typeof value === 'string') {\n      window.katex.render(value, node, {\n        throwOnError: false,\n        errorColor: '#f00'\n      });\n      node.setAttribute('data-value', value);\n    }\n\n    return node;\n  }\n\n  static value(domNode) {\n    return domNode.getAttribute('data-value');\n  }\n\n  html() {\n    const {\n      formula\n    } = this.value();\n    return \"<span>\".concat(formula, \"</span>\");\n  }\n\n}\n\nFormula.blotName = 'formula';\nFormula.className = 'ql-formula';\nFormula.tagName = 'SPAN';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Formula);\n\n//# sourceURL=webpack://Quill/./formats/formula.js?")},"./formats/header.js":
/*!***************************!*\
  !*** ./formats/header.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n\n\nclass Header extends _blots_block__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static formats(domNode) {\n    return this.tagName.indexOf(domNode.tagName) + 1;\n  }\n\n}\n\nHeader.blotName = 'header';\nHeader.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Header);\n\n//# sourceURL=webpack://Quill/./formats/header.js?")},"./formats/image.js":
/*!**************************!*\
  !*** ./formats/image.js ***!
  \**************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./link */ \"./formats/link.js\");\n\n\nconst ATTRIBUTES = ['alt', 'height', 'width'];\n\nclass Image extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"EmbedBlot\"] {\n  static create(value) {\n    const node = super.create(value);\n\n    if (typeof value === 'string') {\n      node.setAttribute('src', this.sanitize(value));\n    }\n\n    return node;\n  }\n\n  static formats(domNode) {\n    return ATTRIBUTES.reduce((formats, attribute) => {\n      if (domNode.hasAttribute(attribute)) {\n        formats[attribute] = domNode.getAttribute(attribute);\n      }\n\n      return formats;\n    }, {});\n  }\n\n  static match(url) {\n    return /\\.(jpe?g|gif|png)$/.test(url) || /^data:image\\/.+;base64/.test(url);\n  }\n\n  static register() {\n    if (/Firefox/i.test(navigator.userAgent)) {\n      setTimeout(() => {\n        // Disable image resizing in Firefox\n        document.execCommand('enableObjectResizing', false, false);\n      }, 1);\n    }\n  }\n\n  static sanitize(url) {\n    return Object(_link__WEBPACK_IMPORTED_MODULE_1__[\"sanitize\"])(url, ['http', 'https', 'data']) ? url : '//:0';\n  }\n\n  static value(domNode) {\n    return domNode.getAttribute('src');\n  }\n\n  format(name, value) {\n    if (ATTRIBUTES.indexOf(name) > -1) {\n      if (value) {\n        this.domNode.setAttribute(name, value);\n      } else {\n        this.domNode.removeAttribute(name);\n      }\n    } else {\n      super.format(name, value);\n    }\n  }\n\n}\n\nImage.blotName = 'image';\nImage.tagName = 'IMG';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Image);\n\n//# sourceURL=webpack://Quill/./formats/image.js?")},"./formats/indent.js":
/*!***************************!*\
  !*** ./formats/indent.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\n\nclass IndentAttributor extends parchment__WEBPACK_IMPORTED_MODULE_0__[\"ClassAttributor\"] {\n  add(node, value) {\n    if (value === '+1' || value === '-1') {\n      const indent = this.value(node) || 0;\n      value = value === '+1' ? indent + 1 : indent - 1;\n    }\n\n    if (value === 0) {\n      this.remove(node);\n      return true;\n    }\n\n    return super.add(node, value);\n  }\n\n  canAdd(node, value) {\n    return super.canAdd(node, value) || super.canAdd(node, parseInt(value, 10));\n  }\n\n  value(node) {\n    return parseInt(super.value(node), 10) || undefined; // Don't return NaN\n  }\n\n}\n\nconst IndentClass = new IndentAttributor('indent', 'ql-indent', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].BLOCK,\n  whitelist: [1, 2, 3, 4, 5, 6, 7, 8]\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (IndentClass);\n\n//# sourceURL=webpack://Quill/./formats/indent.js?")},"./formats/italic.js":
/*!***************************!*\
  !*** ./formats/italic.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bold__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bold */ \"./formats/bold.js\");\n\n\nclass Italic extends _bold__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {}\n\nItalic.blotName = 'italic';\nItalic.tagName = ['EM', 'I'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Italic);\n\n//# sourceURL=webpack://Quill/./formats/italic.js?")},"./formats/link.js":
/*!*************************!*\
  !*** ./formats/link.js ***!
  \*************************/
/*! exports provided: default, sanitize */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Link; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sanitize\", function() { return sanitize; });\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/inline */ \"./blots/inline.js\");\n\n\nclass Link extends _blots_inline__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create(value) {\n    const node = super.create(value);\n    node.setAttribute('href', this.sanitize(value));\n    node.setAttribute('rel', 'noopener noreferrer');\n    node.setAttribute('target', '_blank');\n    return node;\n  }\n\n  static formats(domNode) {\n    return domNode.getAttribute('href');\n  }\n\n  static sanitize(url) {\n    return sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;\n  }\n\n  format(name, value) {\n    if (name !== this.statics.blotName || !value) {\n      super.format(name, value);\n    } else {\n      this.domNode.setAttribute('href', this.constructor.sanitize(value));\n    }\n  }\n\n}\n\nLink.blotName = 'link';\nLink.tagName = 'A';\nLink.SANITIZED_URL = 'about:blank';\nLink.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];\n\nfunction sanitize(url, protocols) {\n  const anchor = document.createElement('a');\n  anchor.href = url;\n  const protocol = anchor.href.slice(0, anchor.href.indexOf(':'));\n  return protocols.indexOf(protocol) > -1;\n}\n\n\n\n//# sourceURL=webpack://Quill/./formats/link.js?")},"./formats/list.js":
/*!*************************!*\
  !*** ./formats/list.js ***!
  \*************************/
/*! exports provided: ListContainer, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ListContainer\", function() { return ListContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ListItem; });\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n/* harmony import */ var _blots_container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../blots/container */ \"./blots/container.js\");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/quill */ \"./core/quill.js\");\n\n\n\n\nclass ListContainer extends _blots_container__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {}\n\nListContainer.blotName = 'list-container';\nListContainer.tagName = 'OL';\n\nclass ListItem extends _blots_block__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create(value) {\n    const node = super.create();\n    node.setAttribute('data-list', value);\n    return node;\n  }\n\n  static formats(domNode) {\n    return domNode.getAttribute('data-list') || undefined;\n  }\n\n  static register() {\n    _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].register(ListContainer);\n  }\n\n  constructor(scroll, domNode) {\n    super(scroll, domNode);\n    const ui = domNode.ownerDocument.createElement('span');\n\n    const listEventHandler = e => {\n      if (!scroll.isEnabled()) return;\n      const format = this.statics.formats(domNode, scroll);\n\n      if (format === 'checked') {\n        this.format('list', 'unchecked');\n        e.preventDefault();\n      } else if (format === 'unchecked') {\n        this.format('list', 'checked');\n        e.preventDefault();\n      }\n    };\n\n    ui.addEventListener('mousedown', listEventHandler);\n    ui.addEventListener('touchstart', listEventHandler);\n    this.attachUI(ui);\n  }\n\n  format(name, value) {\n    if (name === this.statics.blotName && value) {\n      this.domNode.setAttribute('data-list', value);\n    } else {\n      super.format(name, value);\n    }\n  }\n\n}\n\nListItem.blotName = 'list';\nListItem.tagName = 'LI';\nListContainer.allowedChildren = [ListItem];\nListItem.requiredContainer = ListContainer;\n\n\n//# sourceURL=webpack://Quill/./formats/list.js?")},"./formats/script.js":
/*!***************************!*\
  !*** ./formats/script.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/inline */ \"./blots/inline.js\");\n\n\nclass Script extends _blots_inline__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create(value) {\n    if (value === 'super') {\n      return document.createElement('sup');\n    }\n\n    if (value === 'sub') {\n      return document.createElement('sub');\n    }\n\n    return super.create(value);\n  }\n\n  static formats(domNode) {\n    if (domNode.tagName === 'SUB') return 'sub';\n    if (domNode.tagName === 'SUP') return 'super';\n    return undefined;\n  }\n\n}\n\nScript.blotName = 'script';\nScript.tagName = ['SUB', 'SUP'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Script);\n\n//# sourceURL=webpack://Quill/./formats/script.js?")},"./formats/size.js":
/*!*************************!*\
  !*** ./formats/size.js ***!
  \*************************/
/*! exports provided: SizeClass, SizeStyle */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SizeClass\", function() { return SizeClass; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SizeStyle\", function() { return SizeStyle; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n\nconst SizeClass = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"ClassAttributor\"]('size', 'ql-size', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].INLINE,\n  whitelist: ['small', 'large', 'huge']\n});\nconst SizeStyle = new parchment__WEBPACK_IMPORTED_MODULE_0__[\"StyleAttributor\"]('size', 'font-size', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_0__[\"Scope\"].INLINE,\n  whitelist: ['10px', '18px', '32px']\n});\n\n\n//# sourceURL=webpack://Quill/./formats/size.js?")},"./formats/strike.js":
/*!***************************!*\
  !*** ./formats/strike.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bold__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bold */ \"./formats/bold.js\");\n\n\nclass Strike extends _bold__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {}\n\nStrike.blotName = 'strike';\nStrike.tagName = ['S', 'STRIKE'];\n/* harmony default export */ __webpack_exports__[\"default\"] = (Strike);\n\n//# sourceURL=webpack://Quill/./formats/strike.js?")},"./formats/table.js":
/*!**************************!*\
  !*** ./formats/table.js ***!
  \**************************/
/*! exports provided: TableCell, TableRow, TableBody, TableContainer, tableId */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TableCell\", function() { return TableCell; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TableRow\", function() { return TableRow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TableBody\", function() { return TableBody; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TableContainer\", function() { return TableContainer; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"tableId\", function() { return tableId; });\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n/* harmony import */ var _blots_container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../blots/container */ \"./blots/container.js\");\n\n\n\nclass TableCell extends _blots_block__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  static create(value) {\n    const node = super.create();\n\n    if (value) {\n      node.setAttribute('data-row', value);\n    } else {\n      node.setAttribute('data-row', tableId());\n    }\n\n    return node;\n  }\n\n  static formats(domNode) {\n    if (domNode.hasAttribute('data-row')) {\n      return domNode.getAttribute('data-row');\n    }\n\n    return undefined;\n  }\n\n  cellOffset() {\n    if (this.parent) {\n      return this.parent.children.indexOf(this);\n    }\n\n    return -1;\n  }\n\n  format(name, value) {\n    if (name === TableCell.blotName && value) {\n      this.domNode.setAttribute('data-row', value);\n    } else {\n      super.format(name, value);\n    }\n  }\n\n  row() {\n    return this.parent;\n  }\n\n  rowOffset() {\n    if (this.row()) {\n      return this.row().rowOffset();\n    }\n\n    return -1;\n  }\n\n  table() {\n    return this.row() && this.row().table();\n  }\n\n}\n\nTableCell.blotName = 'table';\nTableCell.tagName = 'TD';\n\nclass TableRow extends _blots_container__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n  checkMerge() {\n    if (super.checkMerge() && this.next.children.head != null) {\n      const thisHead = this.children.head.formats();\n      const thisTail = this.children.tail.formats();\n      const nextHead = this.next.children.head.formats();\n      const nextTail = this.next.children.tail.formats();\n      return thisHead.table === thisTail.table && thisHead.table === nextHead.table && thisHead.table === nextTail.table;\n    }\n\n    return false;\n  }\n\n  optimize(...args) {\n    super.optimize(...args);\n    this.children.forEach(child => {\n      if (child.next == null) return;\n      const childFormats = child.formats();\n      const nextFormats = child.next.formats();\n\n      if (childFormats.table !== nextFormats.table) {\n        const next = this.splitAfter(child);\n\n        if (next) {\n          next.optimize();\n        } // We might be able to merge with prev now\n\n\n        if (this.prev) {\n          this.prev.optimize();\n        }\n      }\n    });\n  }\n\n  rowOffset() {\n    if (this.parent) {\n      return this.parent.children.indexOf(this);\n    }\n\n    return -1;\n  }\n\n  table() {\n    return this.parent && this.parent.parent;\n  }\n\n}\n\nTableRow.blotName = 'table-row';\nTableRow.tagName = 'TR';\n\nclass TableBody extends _blots_container__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {}\n\nTableBody.blotName = 'table-body';\nTableBody.tagName = 'TBODY';\n\nclass TableContainer extends _blots_container__WEBPACK_IMPORTED_MODULE_1__[\"default\"] {\n  balanceCells() {\n    const rows = this.descendants(TableRow);\n    const maxColumns = rows.reduce((max, row) => {\n      return Math.max(row.children.length, max);\n    }, 0);\n    rows.forEach(row => {\n      new Array(maxColumns - row.children.length).fill(0).forEach(() => {\n        let value;\n\n        if (row.children.head != null) {\n          value = TableCell.formats(row.children.head.domNode);\n        }\n\n        const blot = this.scroll.create(TableCell.blotName, value);\n        row.appendChild(blot);\n        blot.optimize(); // Add break blot\n      });\n    });\n  }\n\n  cells(column) {\n    return this.rows().map(row => row.children.at(column));\n  }\n\n  deleteColumn(index) {\n    const [body] = this.descendant(TableBody);\n    if (body == null || body.children.head == null) return;\n    body.children.forEach(row => {\n      const cell = row.children.at(index);\n\n      if (cell != null) {\n        cell.remove();\n      }\n    });\n  }\n\n  insertColumn(index) {\n    const [body] = this.descendant(TableBody);\n    if (body == null || body.children.head == null) return;\n    body.children.forEach(row => {\n      const ref = row.children.at(index);\n      const value = TableCell.formats(row.children.head.domNode);\n      const cell = this.scroll.create(TableCell.blotName, value);\n      row.insertBefore(cell, ref);\n    });\n  }\n\n  insertRow(index) {\n    const [body] = this.descendant(TableBody);\n    if (body == null || body.children.head == null) return;\n    const id = tableId();\n    const row = this.scroll.create(TableRow.blotName);\n    body.children.head.children.forEach(() => {\n      const cell = this.scroll.create(TableCell.blotName, id);\n      row.appendChild(cell);\n    });\n    const ref = body.children.at(index);\n    body.insertBefore(row, ref);\n  }\n\n  rows() {\n    const body = this.children.head;\n    if (body == null) return [];\n    return body.children.map(row => row);\n  }\n\n}\n\nTableContainer.blotName = 'table-container';\nTableContainer.tagName = 'TABLE';\nTableContainer.allowedChildren = [TableBody];\nTableBody.requiredContainer = TableContainer;\nTableBody.allowedChildren = [TableRow];\nTableRow.requiredContainer = TableBody;\nTableRow.allowedChildren = [TableCell];\nTableCell.requiredContainer = TableRow;\n\nfunction tableId() {\n  const id = Math.random().toString(36).slice(2, 6);\n  return \"row-\".concat(id);\n}\n\n\n\n//# sourceURL=webpack://Quill/./formats/table.js?")},"./formats/underline.js":
/*!******************************!*\
  !*** ./formats/underline.js ***!
  \******************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/inline */ "./blots/inline.js");\n\n\nclass Underline extends _blots_inline__WEBPACK_IMPORTED_MODULE_0__["default"] {}\n\nUnderline.blotName = \'underline\';\nUnderline.tagName = \'U\';\n/* harmony default export */ __webpack_exports__["default"] = (Underline);\n\n//# sourceURL=webpack://Quill/./formats/underline.js?')},"./formats/video.js":
/*!**************************!*\
  !*** ./formats/video.js ***!
  \**************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n/* harmony import */ var _link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./link */ \"./formats/link.js\");\n\n\nconst ATTRIBUTES = ['height', 'width'];\n\nclass Video extends _blots_block__WEBPACK_IMPORTED_MODULE_0__[\"BlockEmbed\"] {\n  static create(value) {\n    const node = super.create(value);\n    node.setAttribute('frameborder', '0');\n    node.setAttribute('allowfullscreen', true);\n    node.setAttribute('src', this.sanitize(value));\n    return node;\n  }\n\n  static formats(domNode) {\n    return ATTRIBUTES.reduce((formats, attribute) => {\n      if (domNode.hasAttribute(attribute)) {\n        formats[attribute] = domNode.getAttribute(attribute);\n      }\n\n      return formats;\n    }, {});\n  }\n\n  static sanitize(url) {\n    return _link__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sanitize(url); // eslint-disable-line import/no-named-as-default-member\n  }\n\n  static value(domNode) {\n    return domNode.getAttribute('src');\n  }\n\n  format(name, value) {\n    if (ATTRIBUTES.indexOf(name) > -1) {\n      if (value) {\n        this.domNode.setAttribute(name, value);\n      } else {\n        this.domNode.removeAttribute(name);\n      }\n    } else {\n      super.format(name, value);\n    }\n  }\n\n  html() {\n    const {\n      video\n    } = this.value();\n    return \"<a href=\\\"\".concat(video, \"\\\">\").concat(video, \"</a>\");\n  }\n\n}\n\nVideo.blotName = 'video';\nVideo.className = 'ql-video';\nVideo.tagName = 'IFRAME';\n/* harmony default export */ __webpack_exports__[\"default\"] = (Video);\n\n//# sourceURL=webpack://Quill/./formats/video.js?")},"./modules/clipboard.js":
/*!******************************!*\
  !*** ./modules/clipboard.js ***!
  \******************************/
/*! exports provided: default, matchAttributor, matchBlot, matchNewline, matchText, traverse */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Clipboard; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"matchAttributor\", function() { return matchAttributor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"matchBlot\", function() { return matchBlot; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"matchNewline\", function() { return matchNewline; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"matchText\", function() { return matchText; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"traverse\", function() { return traverse; });\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! extend */ \"./node_modules/extend/index.js\");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! quill-delta */ \"./node_modules/quill-delta/dist/Delta.js\");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/quill */ \"./core/quill.js\");\n/* harmony import */ var _core_logger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/logger */ \"./core/logger.js\");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/module */ \"./core/module.js\");\n/* harmony import */ var _formats_align__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../formats/align */ \"./formats/align.js\");\n/* harmony import */ var _formats_background__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../formats/background */ \"./formats/background.js\");\n/* harmony import */ var _formats_code__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../formats/code */ \"./formats/code.js\");\n/* harmony import */ var _formats_color__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../formats/color */ \"./formats/color.js\");\n/* harmony import */ var _formats_direction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../formats/direction */ \"./formats/direction.js\");\n/* harmony import */ var _formats_font__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../formats/font */ \"./formats/font.js\");\n/* harmony import */ var _formats_size__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../formats/size */ \"./formats/size.js\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst debug = Object(_core_logger__WEBPACK_IMPORTED_MODULE_5__[\"default\"])('quill:clipboard');\nconst CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['ol, ul', matchList], ['pre', matchCodeBlock], ['tr', matchTable], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['strike', matchAlias.bind(matchAlias, 'strike')], ['style', matchIgnore]];\nconst ATTRIBUTE_ATTRIBUTORS = [_formats_align__WEBPACK_IMPORTED_MODULE_7__[\"AlignAttribute\"], _formats_direction__WEBPACK_IMPORTED_MODULE_11__[\"DirectionAttribute\"]].reduce((memo, attr) => {\n  memo[attr.keyName] = attr;\n  return memo;\n}, {});\nconst STYLE_ATTRIBUTORS = [_formats_align__WEBPACK_IMPORTED_MODULE_7__[\"AlignStyle\"], _formats_background__WEBPACK_IMPORTED_MODULE_8__[\"BackgroundStyle\"], _formats_color__WEBPACK_IMPORTED_MODULE_10__[\"ColorStyle\"], _formats_direction__WEBPACK_IMPORTED_MODULE_11__[\"DirectionStyle\"], _formats_font__WEBPACK_IMPORTED_MODULE_12__[\"FontStyle\"], _formats_size__WEBPACK_IMPORTED_MODULE_13__[\"SizeStyle\"]].reduce((memo, attr) => {\n  memo[attr.keyName] = attr;\n  return memo;\n}, {});\n\nclass Clipboard extends _core_module__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n  constructor(quill, options) {\n    super(quill, options);\n    this.quill.root.addEventListener('copy', e => this.onCaptureCopy(e, false));\n    this.quill.root.addEventListener('cut', e => this.onCaptureCopy(e, true));\n    this.quill.root.addEventListener('paste', this.onCapturePaste.bind(this));\n    this.matchers = [];\n    CLIPBOARD_CONFIG.concat(this.options.matchers).forEach(([selector, matcher]) => {\n      this.addMatcher(selector, matcher);\n    });\n  }\n\n  addMatcher(selector, matcher) {\n    this.matchers.push([selector, matcher]);\n  }\n\n  convert({\n    html,\n    text\n  }, formats = {}) {\n    if (formats[_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].blotName]) {\n      return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().insert(text, {\n        [_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].blotName]: formats[_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].blotName]\n      });\n    }\n\n    if (!html) {\n      return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().insert(text || '');\n    }\n\n    const doc = new DOMParser().parseFromString(html, 'text/html');\n    const container = doc.body;\n    const nodeMatches = new WeakMap();\n    const [elementMatchers, textMatchers] = this.prepareMatching(container, nodeMatches);\n    const delta = traverse(this.quill.scroll, container, elementMatchers, textMatchers, nodeMatches); // Remove trailing newline\n\n    if (deltaEndsWith(delta, '\\n') && (delta.ops[delta.ops.length - 1].attributes == null || formats.table)) {\n      return delta.compose(new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().retain(delta.length() - 1).delete(1));\n    }\n\n    return delta;\n  }\n\n  dangerouslyPasteHTML(index, html, source = _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.API) {\n    if (typeof index === 'string') {\n      const delta = this.convert({\n        html: index,\n        text: ''\n      });\n      this.quill.setContents(delta, html);\n      this.quill.setSelection(0, _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.SILENT);\n    } else {\n      const paste = this.convert({\n        html,\n        text: ''\n      });\n      this.quill.updateContents(new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().retain(index).concat(paste), source);\n      this.quill.setSelection(index + paste.length(), _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.SILENT);\n    }\n  }\n\n  onCaptureCopy(e, isCut = false) {\n    if (e.defaultPrevented) return;\n    e.preventDefault();\n    const [range] = this.quill.selection.getRange();\n    if (range == null) return;\n    const {\n      html,\n      text\n    } = this.onCopy(range, isCut);\n    e.clipboardData.setData('text/plain', text);\n    e.clipboardData.setData('text/html', html);\n\n    if (isCut) {\n      this.quill.deleteText(range, _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.USER);\n    }\n  }\n\n  onCapturePaste(e) {\n    if (e.defaultPrevented || !this.quill.isEnabled()) return;\n    e.preventDefault();\n    const range = this.quill.getSelection(true);\n    if (range == null) return;\n    const html = e.clipboardData.getData('text/html');\n    const text = e.clipboardData.getData('text/plain');\n    const files = Array.from(e.clipboardData.files || []);\n\n    if (!html && files.length > 0) {\n      this.quill.uploader.upload(range, files);\n    } else {\n      this.onPaste(range, {\n        html,\n        text\n      });\n    }\n  }\n\n  onCopy(range) {\n    const text = this.quill.getText(range);\n    const html = this.quill.getSemanticHTML(range);\n    return {\n      html,\n      text\n    };\n  }\n\n  onPaste(range, {\n    text,\n    html\n  }) {\n    const formats = this.quill.getFormat(range.index);\n    const pastedDelta = this.convert({\n      text,\n      html\n    }, formats);\n    debug.log('onPaste', pastedDelta, {\n      text,\n      html\n    });\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().retain(range.index).delete(range.length).concat(pastedDelta);\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.USER); // range.length contributes to delta.length()\n\n    this.quill.setSelection(delta.length() - range.length, _core_quill__WEBPACK_IMPORTED_MODULE_4__[\"default\"].sources.SILENT);\n    this.quill.scrollIntoView();\n  }\n\n  prepareMatching(container, nodeMatches) {\n    const elementMatchers = [];\n    const textMatchers = [];\n    this.matchers.forEach(pair => {\n      const [selector, matcher] = pair;\n\n      switch (selector) {\n        case Node.TEXT_NODE:\n          textMatchers.push(matcher);\n          break;\n\n        case Node.ELEMENT_NODE:\n          elementMatchers.push(matcher);\n          break;\n\n        default:\n          Array.from(container.querySelectorAll(selector)).forEach(node => {\n            if (nodeMatches.has(node)) {\n              const matches = nodeMatches.get(node);\n              matches.push(matcher);\n            } else {\n              nodeMatches.set(node, [matcher]);\n            }\n          });\n          break;\n      }\n    });\n    return [elementMatchers, textMatchers];\n  }\n\n}\n\nClipboard.DEFAULTS = {\n  matchers: []\n};\n\nfunction applyFormat(delta, format, value) {\n  if (typeof format === 'object') {\n    return Object.keys(format).reduce((newDelta, key) => {\n      return applyFormat(newDelta, key, format[key]);\n    }, delta);\n  }\n\n  return delta.reduce((newDelta, op) => {\n    if (op.attributes && op.attributes[format]) {\n      return newDelta.push(op);\n    }\n\n    return newDelta.insert(op.insert, extend__WEBPACK_IMPORTED_MODULE_0___default()({}, {\n      [format]: value\n    }, op.attributes));\n  }, new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a());\n}\n\nfunction deltaEndsWith(delta, text) {\n  let endText = '';\n\n  for (let i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i // eslint-disable-line no-plusplus\n  ) {\n    const op = delta.ops[i];\n    if (typeof op.insert !== 'string') break;\n    endText = op.insert + endText;\n  }\n\n  return endText.slice(-1 * text.length) === text;\n}\n\nfunction isLine(node) {\n  if (node.childNodes.length === 0) return false; // Exclude embed blocks\n\n  return ['address', 'article', 'blockquote', 'canvas', 'dd', 'div', 'dl', 'dt', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'iframe', 'li', 'main', 'nav', 'ol', 'output', 'p', 'pre', 'section', 'table', 'td', 'tr', 'ul', 'video'].includes(node.tagName.toLowerCase());\n}\n\nconst preNodes = new WeakMap();\n\nfunction isPre(node) {\n  if (node == null) return false;\n\n  if (!preNodes.has(node)) {\n    if (node.tagName === 'PRE') {\n      preNodes.set(node, true);\n    } else {\n      preNodes.set(node, isPre(node.parentNode));\n    }\n  }\n\n  return preNodes.get(node);\n}\n\nfunction traverse(scroll, node, elementMatchers, textMatchers, nodeMatches) {\n  // Post-order\n  if (node.nodeType === node.TEXT_NODE) {\n    return textMatchers.reduce((delta, matcher) => {\n      return matcher(node, delta, scroll);\n    }, new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a());\n  }\n\n  if (node.nodeType === node.ELEMENT_NODE) {\n    return Array.from(node.childNodes || []).reduce((delta, childNode) => {\n      let childrenDelta = traverse(scroll, childNode, elementMatchers, textMatchers, nodeMatches);\n\n      if (childNode.nodeType === node.ELEMENT_NODE) {\n        childrenDelta = elementMatchers.reduce((reducedDelta, matcher) => {\n          return matcher(childNode, reducedDelta, scroll);\n        }, childrenDelta);\n        childrenDelta = (nodeMatches.get(childNode) || []).reduce((reducedDelta, matcher) => {\n          return matcher(childNode, reducedDelta, scroll);\n        }, childrenDelta);\n      }\n\n      return delta.concat(childrenDelta);\n    }, new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a());\n  }\n\n  return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a();\n}\n\nfunction matchAlias(format, node, delta) {\n  return applyFormat(delta, format, true);\n}\n\nfunction matchAttributor(node, delta, scroll) {\n  const attributes = parchment__WEBPACK_IMPORTED_MODULE_2__[\"Attributor\"].keys(node);\n  const classes = parchment__WEBPACK_IMPORTED_MODULE_2__[\"ClassAttributor\"].keys(node);\n  const styles = parchment__WEBPACK_IMPORTED_MODULE_2__[\"StyleAttributor\"].keys(node);\n  const formats = {};\n  attributes.concat(classes).concat(styles).forEach(name => {\n    let attr = scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_2__[\"Scope\"].ATTRIBUTE);\n\n    if (attr != null) {\n      formats[attr.attrName] = attr.value(node);\n      if (formats[attr.attrName]) return;\n    }\n\n    attr = ATTRIBUTE_ATTRIBUTORS[name];\n\n    if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n      formats[attr.attrName] = attr.value(node) || undefined;\n    }\n\n    attr = STYLE_ATTRIBUTORS[name];\n\n    if (attr != null && (attr.attrName === name || attr.keyName === name)) {\n      attr = STYLE_ATTRIBUTORS[name];\n      formats[attr.attrName] = attr.value(node) || undefined;\n    }\n  });\n\n  if (Object.keys(formats).length > 0) {\n    return applyFormat(delta, formats);\n  }\n\n  return delta;\n}\n\nfunction matchBlot(node, delta, scroll) {\n  const match = scroll.query(node);\n  if (match == null) return delta;\n\n  if (match.prototype instanceof parchment__WEBPACK_IMPORTED_MODULE_2__[\"EmbedBlot\"]) {\n    const embed = {};\n    const value = match.value(node);\n\n    if (value != null) {\n      embed[match.blotName] = value;\n      return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().insert(embed, match.formats(node, scroll));\n    }\n  } else {\n    if (match.prototype instanceof parchment__WEBPACK_IMPORTED_MODULE_2__[\"BlockBlot\"] && !deltaEndsWith(delta, '\\n')) {\n      delta.insert('\\n');\n    }\n\n    if (typeof match.formats === 'function') {\n      return applyFormat(delta, match.blotName, match.formats(node, scroll));\n    }\n  }\n\n  return delta;\n}\n\nfunction matchBreak(node, delta) {\n  if (!deltaEndsWith(delta, '\\n')) {\n    delta.insert('\\n');\n  }\n\n  return delta;\n}\n\nfunction matchCodeBlock(node, delta, scroll) {\n  const match = scroll.query('code-block');\n  const language = match ? match.formats(node, scroll) : true;\n  return applyFormat(delta, 'code-block', language);\n}\n\nfunction matchIgnore() {\n  return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a();\n}\n\nfunction matchIndent(node, delta, scroll) {\n  const match = scroll.query(node);\n\n  if (match == null || match.blotName !== 'list' || !deltaEndsWith(delta, '\\n')) {\n    return delta;\n  }\n\n  let indent = -1;\n  let parent = node.parentNode;\n\n  while (parent != null) {\n    if (['OL', 'UL'].includes(parent.tagName)) {\n      indent += 1;\n    }\n\n    parent = parent.parentNode;\n  }\n\n  if (indent <= 0) return delta;\n  return delta.reduce((composed, op) => {\n    if (op.attributes && op.attributes.list) {\n      return composed.push(op);\n    }\n\n    return composed.insert(op.insert, {\n      indent,\n      ...(op.attributes || {})\n    });\n  }, new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a());\n}\n\nfunction matchList(node, delta) {\n  const list = node.tagName === 'OL' ? 'ordered' : 'bullet';\n  return applyFormat(delta, 'list', list);\n}\n\nfunction matchNewline(node, delta, scroll) {\n  if (!deltaEndsWith(delta, '\\n')) {\n    if (isLine(node)) {\n      return delta.insert('\\n');\n    }\n\n    if (delta.length() > 0 && node.nextSibling) {\n      let {\n        nextSibling\n      } = node;\n\n      while (nextSibling != null) {\n        if (isLine(nextSibling)) {\n          return delta.insert('\\n');\n        }\n\n        const match = scroll.query(nextSibling);\n\n        if (match && match.prototype instanceof _blots_block__WEBPACK_IMPORTED_MODULE_3__[\"BlockEmbed\"]) {\n          return delta.insert('\\n');\n        }\n\n        nextSibling = nextSibling.firstChild;\n      }\n    }\n  }\n\n  return delta;\n}\n\nfunction matchStyles(node, delta) {\n  const formats = {};\n  const style = node.style || {};\n\n  if (style.fontStyle === 'italic') {\n    formats.italic = true;\n  }\n\n  if (style.textDecoration === 'underline') {\n    formats.underline = true;\n  }\n\n  if (style.textDecoration === 'line-through') {\n    formats.strike = true;\n  }\n\n  if (style.fontWeight.startsWith('bold') || parseInt(style.fontWeight, 10) >= 700) {\n    formats.bold = true;\n  }\n\n  if (Object.keys(formats).length > 0) {\n    delta = applyFormat(delta, formats);\n  }\n\n  if (parseFloat(style.textIndent || 0) > 0) {\n    // Could be 0.5in\n    return new quill_delta__WEBPACK_IMPORTED_MODULE_1___default.a().insert('\\t').concat(delta);\n  }\n\n  return delta;\n}\n\nfunction matchTable(node, delta) {\n  const table = node.parentNode.tagName === 'TABLE' ? node.parentNode : node.parentNode.parentNode;\n  const rows = Array.from(table.querySelectorAll('tr'));\n  const row = rows.indexOf(node) + 1;\n  return applyFormat(delta, 'table', row);\n}\n\nfunction matchText(node, delta) {\n  let text = node.data; // Word represents empty line with <o:p>&nbsp;</o:p>\n\n  if (node.parentNode.tagName === 'O:P') {\n    return delta.insert(text.trim());\n  }\n\n  if (text.trim().length === 0 && text.includes('\\n')) {\n    return delta;\n  }\n\n  if (!isPre(node)) {\n    const replacer = (collapse, match) => {\n      const replaced = match.replace(/[^\\u00a0]/g, ''); // \\u00a0 is nbsp;\n\n      return replaced.length < 1 && collapse ? ' ' : replaced;\n    };\n\n    text = text.replace(/\\r\\n/g, ' ').replace(/\\n/g, ' ');\n    text = text.replace(/\\s\\s+/g, replacer.bind(replacer, true)); // collapse whitespace\n\n    if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {\n      text = text.replace(/^\\s+/, replacer.bind(replacer, false));\n    }\n\n    if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {\n      text = text.replace(/\\s+$/, replacer.bind(replacer, false));\n    }\n  }\n\n  return delta.insert(text);\n}\n\n\n\n//# sourceURL=webpack://Quill/./modules/clipboard.js?")},"./modules/history.js":
/*!****************************!*\
  !*** ./modules/history.js ***!
  \****************************/
/*! exports provided: default, getLastChangeIndex */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return History; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLastChangeIndex", function() { return getLastChangeIndex; });\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! parchment */ "./node_modules/parchment/src/parchment.ts");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/quill */ "./core/quill.js");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/module */ "./core/module.js");\n\n\n\n\nclass History extends _core_module__WEBPACK_IMPORTED_MODULE_2__["default"] {\n  constructor(quill, options) {\n    super(quill, options);\n    this.lastRecorded = 0;\n    this.ignoreChange = false;\n    this.clear();\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].events.EDITOR_CHANGE, (eventName, delta, oldDelta, source) => {\n      if (eventName !== _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].events.TEXT_CHANGE || this.ignoreChange) return;\n\n      if (!this.options.userOnly || source === _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER) {\n        this.record(delta, oldDelta);\n      } else {\n        this.transform(delta);\n      }\n    });\n    this.quill.keyboard.addBinding({\n      key: \'z\',\n      shortKey: true\n    }, this.undo.bind(this));\n    this.quill.keyboard.addBinding({\n      key: \'z\',\n      shortKey: true,\n      shiftKey: true\n    }, this.redo.bind(this));\n\n    if (/Win/i.test(navigator.platform)) {\n      this.quill.keyboard.addBinding({\n        key: \'y\',\n        shortKey: true\n      }, this.redo.bind(this));\n    }\n  }\n\n  change(source, dest) {\n    if (this.stack[source].length === 0) return;\n    const delta = this.stack[source].pop();\n    const base = this.quill.getContents();\n    const inverseDelta = delta.invert(base);\n    this.stack[dest].push(inverseDelta);\n    this.lastRecorded = 0;\n    this.ignoreChange = true;\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n    this.ignoreChange = false;\n    const index = getLastChangeIndex(this.quill.scroll, delta);\n    this.quill.setSelection(index);\n  }\n\n  clear() {\n    this.stack = {\n      undo: [],\n      redo: []\n    };\n  }\n\n  cutoff() {\n    this.lastRecorded = 0;\n  }\n\n  record(changeDelta, oldDelta) {\n    if (changeDelta.ops.length === 0) return;\n    this.stack.redo = [];\n    let undoDelta = changeDelta.invert(oldDelta);\n    const timestamp = Date.now();\n\n    if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {\n      const delta = this.stack.undo.pop();\n      undoDelta = undoDelta.compose(delta);\n    } else {\n      this.lastRecorded = timestamp;\n    }\n\n    if (undoDelta.length() === 0) return;\n    this.stack.undo.push(undoDelta);\n\n    if (this.stack.undo.length > this.options.maxStack) {\n      this.stack.undo.shift();\n    }\n  }\n\n  redo() {\n    this.change(\'redo\', \'undo\');\n  }\n\n  transform(delta) {\n    transformStack(this.stack.undo, delta);\n    transformStack(this.stack.redo, delta);\n  }\n\n  undo() {\n    this.change(\'undo\', \'redo\');\n  }\n\n}\n\nHistory.DEFAULTS = {\n  delay: 1000,\n  maxStack: 100,\n  userOnly: false\n};\n\nfunction transformStack(stack, delta) {\n  let remoteDelta = delta;\n\n  for (let i = stack.length - 1; i >= 0; i -= 1) {\n    const oldDelta = stack[i];\n    stack[i] = remoteDelta.transform(oldDelta, true);\n    remoteDelta = oldDelta.transform(remoteDelta);\n\n    if (stack[i].length() === 0) {\n      stack.splice(i, 1);\n    }\n  }\n}\n\nfunction endsWithNewlineChange(scroll, delta) {\n  const lastOp = delta.ops[delta.ops.length - 1];\n  if (lastOp == null) return false;\n\n  if (lastOp.insert != null) {\n    return typeof lastOp.insert === \'string\' && lastOp.insert.endsWith(\'\\n\');\n  }\n\n  if (lastOp.attributes != null) {\n    return Object.keys(lastOp.attributes).some(attr => {\n      return scroll.query(attr, parchment__WEBPACK_IMPORTED_MODULE_0__["Scope"].BLOCK) != null;\n    });\n  }\n\n  return false;\n}\n\nfunction getLastChangeIndex(scroll, delta) {\n  const deleteLength = delta.reduce((length, op) => {\n    return length + (op.delete || 0);\n  }, 0);\n  let changeIndex = delta.length() - deleteLength;\n\n  if (endsWithNewlineChange(scroll, delta)) {\n    changeIndex -= 1;\n  }\n\n  return changeIndex;\n}\n\n\n\n//# sourceURL=webpack://Quill/./modules/history.js?')},"./modules/keyboard.js":
/*!*****************************!*\
  !*** ./modules/keyboard.js ***!
  \*****************************/
/*! exports provided: default, SHORTKEY, normalize */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Keyboard; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SHORTKEY\", function() { return SHORTKEY; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalize\", function() { return normalize; });\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clone */ \"./node_modules/clone/clone.js\");\n/* harmony import */ var clone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(clone__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! deep-equal */ \"./node_modules/deep-equal/index.js\");\n/* harmony import */ var deep_equal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(deep_equal__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! extend */ \"./node_modules/extend/index.js\");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! quill-delta */ \"./node_modules/quill-delta/dist/Delta.js\");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/quill */ \"./core/quill.js\");\n/* harmony import */ var _core_logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/logger */ \"./core/logger.js\");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/module */ \"./core/module.js\");\n\n\n\n\n\n\n\n\nconst debug = Object(_core_logger__WEBPACK_IMPORTED_MODULE_6__[\"default\"])('quill:keyboard');\nconst SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';\n\nclass Keyboard extends _core_module__WEBPACK_IMPORTED_MODULE_7__[\"default\"] {\n  static match(evt, binding) {\n    if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(key => {\n      return !!binding[key] !== evt[key] && binding[key] !== null;\n    })) {\n      return false;\n    }\n\n    return binding.key === evt.key || binding.key === evt.which;\n  }\n\n  constructor(quill, options) {\n    super(quill, options);\n    this.bindings = {};\n    Object.keys(this.options.bindings).forEach(name => {\n      if (this.options.bindings[name]) {\n        this.addBinding(this.options.bindings[name]);\n      }\n    });\n    this.addBinding({\n      key: 'Enter',\n      shiftKey: null\n    }, this.handleEnter);\n    this.addBinding({\n      key: 'Enter',\n      metaKey: null,\n      ctrlKey: null,\n      altKey: null\n    }, () => {});\n\n    if (/Firefox/i.test(navigator.userAgent)) {\n      // Need to handle delete and backspace for Firefox in the general case #1171\n      this.addBinding({\n        key: 'Backspace'\n      }, {\n        collapsed: true\n      }, this.handleBackspace);\n      this.addBinding({\n        key: 'Delete'\n      }, {\n        collapsed: true\n      }, this.handleDelete);\n    } else {\n      this.addBinding({\n        key: 'Backspace'\n      }, {\n        collapsed: true,\n        prefix: /^.?$/\n      }, this.handleBackspace);\n      this.addBinding({\n        key: 'Delete'\n      }, {\n        collapsed: true,\n        suffix: /^.?$/\n      }, this.handleDelete);\n    }\n\n    this.addBinding({\n      key: 'Backspace'\n    }, {\n      collapsed: false\n    }, this.handleDeleteRange);\n    this.addBinding({\n      key: 'Delete'\n    }, {\n      collapsed: false\n    }, this.handleDeleteRange);\n    this.addBinding({\n      key: 'Backspace',\n      altKey: null,\n      ctrlKey: null,\n      metaKey: null,\n      shiftKey: null\n    }, {\n      collapsed: true,\n      offset: 0\n    }, this.handleBackspace);\n    this.listen();\n  }\n\n  addBinding(keyBinding, context = {}, handler = {}) {\n    const binding = normalize(keyBinding);\n\n    if (binding == null) {\n      debug.warn('Attempted to add invalid keyboard binding', binding);\n      return;\n    }\n\n    if (typeof context === 'function') {\n      context = {\n        handler: context\n      };\n    }\n\n    if (typeof handler === 'function') {\n      handler = {\n        handler\n      };\n    }\n\n    const keys = Array.isArray(binding.key) ? binding.key : [binding.key];\n    keys.forEach(key => {\n      const singleBinding = extend__WEBPACK_IMPORTED_MODULE_2___default()({}, binding, {\n        key\n      }, context, handler);\n      this.bindings[singleBinding.key] = this.bindings[singleBinding.key] || [];\n      this.bindings[singleBinding.key].push(singleBinding);\n    });\n  }\n\n  listen() {\n    this.quill.root.addEventListener('keydown', evt => {\n      if (evt.defaultPrevented || evt.isComposing) return;\n      const bindings = (this.bindings[evt.key] || []).concat(this.bindings[evt.which] || []);\n      const matches = bindings.filter(binding => Keyboard.match(evt, binding));\n      if (matches.length === 0) return;\n      const range = this.quill.getSelection();\n      if (range == null || !this.quill.hasFocus()) return;\n      const [line, offset] = this.quill.getLine(range.index);\n      const [leafStart, offsetStart] = this.quill.getLeaf(range.index);\n      const [leafEnd, offsetEnd] = range.length === 0 ? [leafStart, offsetStart] : this.quill.getLeaf(range.index + range.length);\n      const prefixText = leafStart instanceof parchment__WEBPACK_IMPORTED_MODULE_4__[\"TextBlot\"] ? leafStart.value().slice(0, offsetStart) : '';\n      const suffixText = leafEnd instanceof parchment__WEBPACK_IMPORTED_MODULE_4__[\"TextBlot\"] ? leafEnd.value().slice(offsetEnd) : '';\n      const curContext = {\n        collapsed: range.length === 0,\n        empty: range.length === 0 && line.length() <= 1,\n        format: this.quill.getFormat(range),\n        line,\n        offset,\n        prefix: prefixText,\n        suffix: suffixText,\n        event: evt\n      };\n      const prevented = matches.some(binding => {\n        if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) {\n          return false;\n        }\n\n        if (binding.empty != null && binding.empty !== curContext.empty) {\n          return false;\n        }\n\n        if (binding.offset != null && binding.offset !== curContext.offset) {\n          return false;\n        }\n\n        if (Array.isArray(binding.format)) {\n          // any format is present\n          if (binding.format.every(name => curContext.format[name] == null)) {\n            return false;\n          }\n        } else if (typeof binding.format === 'object') {\n          // all formats must match\n          if (!Object.keys(binding.format).every(name => {\n            if (binding.format[name] === true) return curContext.format[name] != null;\n            if (binding.format[name] === false) return curContext.format[name] == null;\n            return deep_equal__WEBPACK_IMPORTED_MODULE_1___default()(binding.format[name], curContext.format[name]);\n          })) {\n            return false;\n          }\n        }\n\n        if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) {\n          return false;\n        }\n\n        if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) {\n          return false;\n        }\n\n        return binding.handler.call(this, range, curContext, binding) !== true;\n      });\n\n      if (prevented) {\n        evt.preventDefault();\n      }\n    });\n  }\n\n  handleBackspace(range, context) {\n    // Check for astral symbols\n    const length = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]$/.test(context.prefix) ? 2 : 1;\n    if (range.index === 0 || this.quill.getLength() <= 1) return;\n    let formats = {};\n    const [line] = this.quill.getLine(range.index);\n    let delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index - length).delete(length);\n\n    if (context.offset === 0) {\n      // Always deleting newline here, length always 1\n      const [prev] = this.quill.getLine(range.index - 1);\n\n      if (prev) {\n        const curFormats = line.formats();\n        const prevFormats = this.quill.getFormat(range.index - 1, 1);\n        formats = quill_delta__WEBPACK_IMPORTED_MODULE_3__[\"AttributeMap\"].diff(curFormats, prevFormats) || {};\n\n        if (Object.keys(formats).length > 0) {\n          // line.length() - 1 targets \\n in line, another -1 for newline being deleted\n          const formatDelta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index + line.length() - 2).retain(1, formats);\n          delta = delta.compose(formatDelta);\n        }\n      }\n    }\n\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    this.quill.focus();\n  }\n\n  handleDelete(range, context) {\n    // Check for astral symbols\n    const length = /^[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/.test(context.suffix) ? 2 : 1;\n    if (range.index >= this.quill.getLength() - length) return;\n    let formats = {};\n    const [line] = this.quill.getLine(range.index);\n    let delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index).delete(length);\n\n    if (context.offset >= line.length() - 1) {\n      const [next] = this.quill.getLine(range.index + 1);\n\n      if (next) {\n        const curFormats = line.formats();\n        const nextFormats = this.quill.getFormat(range.index, 1);\n        formats = quill_delta__WEBPACK_IMPORTED_MODULE_3__[\"AttributeMap\"].diff(curFormats, nextFormats) || {};\n\n        if (Object.keys(formats).length > 0) {\n          delta = delta.retain(next.length() - 1).retain(1, formats);\n        }\n      }\n    }\n\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    this.quill.focus();\n  }\n\n  handleDeleteRange(range) {\n    const lines = this.quill.getLines(range);\n    let formats = {};\n\n    if (lines.length > 1) {\n      const firstFormats = lines[0].formats();\n      const lastFormats = lines[lines.length - 1].formats();\n      formats = quill_delta__WEBPACK_IMPORTED_MODULE_3__[\"AttributeMap\"].diff(lastFormats, firstFormats) || {};\n    }\n\n    this.quill.deleteText(range, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n\n    if (Object.keys(formats).length > 0) {\n      this.quill.formatLine(range.index, 1, formats, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    }\n\n    this.quill.setSelection(range.index, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n    this.quill.focus();\n  }\n\n  handleEnter(range, context) {\n    const lineFormats = Object.keys(context.format).reduce((formats, format) => {\n      if (this.quill.scroll.query(format, parchment__WEBPACK_IMPORTED_MODULE_4__[\"Scope\"].BLOCK) && !Array.isArray(context.format[format])) {\n        formats[format] = context.format[format];\n      }\n\n      return formats;\n    }, {});\n    const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index).delete(range.length).insert('\\n', lineFormats);\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    this.quill.setSelection(range.index + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n    this.quill.focus();\n    Object.keys(context.format).forEach(name => {\n      if (lineFormats[name] != null) return;\n      if (Array.isArray(context.format[name])) return;\n      if (name === 'code' || name === 'link') return;\n      this.quill.format(name, context.format[name], _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    });\n  }\n\n}\n\nKeyboard.DEFAULTS = {\n  bindings: {\n    bold: makeFormatHandler('bold'),\n    italic: makeFormatHandler('italic'),\n    underline: makeFormatHandler('underline'),\n    indent: {\n      // highlight tab or tab at beginning of list, indent or blockquote\n      key: 'Tab',\n      format: ['blockquote', 'indent', 'list'],\n\n      handler(range, context) {\n        if (context.collapsed && context.offset !== 0) return true;\n        this.quill.format('indent', '+1', _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        return false;\n      }\n\n    },\n    outdent: {\n      key: 'Tab',\n      shiftKey: true,\n      format: ['blockquote', 'indent', 'list'],\n\n      // highlight tab or tab at beginning of list, indent or blockquote\n      handler(range, context) {\n        if (context.collapsed && context.offset !== 0) return true;\n        this.quill.format('indent', '-1', _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        return false;\n      }\n\n    },\n    'outdent backspace': {\n      key: 'Backspace',\n      collapsed: true,\n      shiftKey: null,\n      metaKey: null,\n      ctrlKey: null,\n      altKey: null,\n      format: ['indent', 'list'],\n      offset: 0,\n\n      handler(range, context) {\n        if (context.format.indent != null) {\n          this.quill.format('indent', '-1', _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        } else if (context.format.list != null) {\n          this.quill.format('list', false, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        }\n      }\n\n    },\n    'indent code-block': makeCodeBlockHandler(true),\n    'outdent code-block': makeCodeBlockHandler(false),\n    'remove tab': {\n      key: 'Tab',\n      shiftKey: true,\n      collapsed: true,\n      prefix: /\\t$/,\n\n      handler(range) {\n        this.quill.deleteText(range.index - 1, 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      }\n\n    },\n    tab: {\n      key: 'Tab',\n\n      handler(range, context) {\n        if (context.format.table) return true;\n        this.quill.history.cutoff();\n        const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index).delete(range.length).insert('\\t');\n        this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        this.quill.history.cutoff();\n        this.quill.setSelection(range.index + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n        return false;\n      }\n\n    },\n    'blockquote empty enter': {\n      key: 'Enter',\n      collapsed: true,\n      format: ['blockquote'],\n      empty: true,\n\n      handler() {\n        this.quill.format('blockquote', false, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      }\n\n    },\n    'list empty enter': {\n      key: 'Enter',\n      collapsed: true,\n      format: ['list'],\n      empty: true,\n\n      handler(range, context) {\n        const formats = {\n          list: false\n        };\n\n        if (context.format.indent) {\n          formats.indent = false;\n        }\n\n        this.quill.formatLine(range.index, range.length, formats, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      }\n\n    },\n    'checklist enter': {\n      key: 'Enter',\n      collapsed: true,\n      format: {\n        list: 'checked'\n      },\n\n      handler(range) {\n        const [line, offset] = this.quill.getLine(range.index);\n        const formats = extend__WEBPACK_IMPORTED_MODULE_2___default()({}, line.formats(), {\n          list: 'checked'\n        });\n        const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index).insert('\\n', formats).retain(line.length() - offset - 1).retain(1, {\n          list: 'unchecked'\n        });\n        this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        this.quill.setSelection(range.index + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n        this.quill.scrollIntoView();\n      }\n\n    },\n    'header enter': {\n      key: 'Enter',\n      collapsed: true,\n      format: ['header'],\n      suffix: /^$/,\n\n      handler(range, context) {\n        const [line, offset] = this.quill.getLine(range.index);\n        const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index).insert('\\n', context.format).retain(line.length() - offset - 1).retain(1, {\n          header: null\n        });\n        this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        this.quill.setSelection(range.index + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n        this.quill.scrollIntoView();\n      }\n\n    },\n    'table backspace': {\n      key: 'Backspace',\n      format: ['table'],\n      collapsed: true,\n      offset: 0,\n\n      handler() {}\n\n    },\n    'table delete': {\n      key: 'Delete',\n      format: ['table'],\n      collapsed: true,\n      suffix: /^$/,\n\n      handler() {}\n\n    },\n    'table enter': {\n      key: 'Enter',\n      shiftKey: null,\n      format: ['table'],\n\n      handler(range) {\n        const module = this.quill.getModule('table');\n\n        if (module) {\n          const [table, row, cell, offset] = module.getTable(range);\n          const shift = tableSide(table, row, cell, offset);\n          if (shift == null) return;\n          let index = table.offset();\n\n          if (shift < 0) {\n            const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).insert('\\n');\n            this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n            this.quill.setSelection(range.index + 1, range.length, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n          } else if (shift > 0) {\n            index += table.length();\n            const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(index).insert('\\n');\n            this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n            this.quill.setSelection(index, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n          }\n        }\n      }\n\n    },\n    'table tab': {\n      key: 'Tab',\n      shiftKey: null,\n      format: ['table'],\n\n      handler(range, context) {\n        const {\n          event,\n          line: cell\n        } = context;\n        const offset = cell.offset(this.quill.scroll);\n\n        if (event.shiftKey) {\n          this.quill.setSelection(offset - 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        } else {\n          this.quill.setSelection(offset + cell.length(), _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        }\n      }\n\n    },\n    'list autofill': {\n      key: ' ',\n      shiftKey: null,\n      collapsed: true,\n      format: {\n        list: false,\n        'code-block': false,\n        blockquote: false,\n        header: false,\n        table: false\n      },\n      prefix: /^\\s*?(\\d+\\.|-|\\*|\\[ ?\\]|\\[x\\])$/,\n\n      handler(range, context) {\n        if (this.quill.scroll.query('list') == null) return true;\n        const {\n          length\n        } = context.prefix;\n        const [line, offset] = this.quill.getLine(range.index);\n        if (offset > length) return true;\n        let value;\n\n        switch (context.prefix.trim()) {\n          case '[]':\n          case '[ ]':\n            value = 'unchecked';\n            break;\n\n          case '[x]':\n            value = 'checked';\n            break;\n\n          case '-':\n          case '*':\n            value = 'bullet';\n            break;\n\n          default:\n            value = 'ordered';\n        }\n\n        this.quill.insertText(range.index, ' ', _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        this.quill.history.cutoff();\n        const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, {\n          list: value\n        });\n        this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        this.quill.history.cutoff();\n        this.quill.setSelection(range.index - length, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n        return false;\n      }\n\n    },\n    'code exit': {\n      key: 'Enter',\n      collapsed: true,\n      format: ['code-block'],\n      prefix: /^$/,\n      suffix: /^\\s*$/,\n\n      handler(range) {\n        const [line, offset] = this.quill.getLine(range.index);\n        let numLines = 2;\n        let cur = line;\n\n        while (cur != null && cur.length() <= 1 && cur.formats()['code-block']) {\n          cur = cur.prev;\n          numLines -= 1; // Requisite prev lines are empty\n\n          if (numLines <= 0) {\n            const delta = new quill_delta__WEBPACK_IMPORTED_MODULE_3___default.a().retain(range.index + line.length() - offset - 2).retain(1, {\n              'code-block': null\n            }).delete(1);\n            this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n            this.quill.setSelection(range.index - 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n            return false;\n          }\n        }\n\n        return true;\n      }\n\n    },\n    'embed left': makeEmbedArrowHandler('ArrowLeft', false),\n    'embed left shift': makeEmbedArrowHandler('ArrowLeft', true),\n    'embed right': makeEmbedArrowHandler('ArrowRight', false),\n    'embed right shift': makeEmbedArrowHandler('ArrowRight', true),\n    'table down': makeTableArrowHandler(false),\n    'table up': makeTableArrowHandler(true)\n  }\n};\n\nfunction makeCodeBlockHandler(indent) {\n  return {\n    key: 'Tab',\n    shiftKey: !indent,\n    format: {\n      'code-block': true\n    },\n\n    handler(range) {\n      const CodeBlock = this.quill.scroll.query('code-block');\n      const lines = range.length === 0 ? this.quill.getLines(range.index, 1) : this.quill.getLines(range);\n      let {\n        index,\n        length\n      } = range;\n      lines.forEach((line, i) => {\n        if (indent) {\n          line.insertAt(0, CodeBlock.TAB);\n\n          if (i === 0) {\n            index += CodeBlock.TAB.length;\n          } else {\n            length += CodeBlock.TAB.length;\n          }\n        } else if (line.domNode.textContent.startsWith(CodeBlock.TAB)) {\n          line.deleteAt(0, CodeBlock.TAB.length);\n\n          if (i === 0) {\n            index -= CodeBlock.TAB.length;\n          } else {\n            length -= CodeBlock.TAB.length;\n          }\n        }\n      });\n      this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      this.quill.setSelection(index, length, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.SILENT);\n    }\n\n  };\n}\n\nfunction makeEmbedArrowHandler(key, shiftKey) {\n  const where = key === 'ArrowLeft' ? 'prefix' : 'suffix';\n  return {\n    key,\n    shiftKey,\n    altKey: null,\n    [where]: /^$/,\n\n    handler(range) {\n      let {\n        index\n      } = range;\n\n      if (key === 'ArrowRight') {\n        index += range.length + 1;\n      }\n\n      const [leaf] = this.quill.getLeaf(index);\n      if (!(leaf instanceof parchment__WEBPACK_IMPORTED_MODULE_4__[\"EmbedBlot\"])) return true;\n\n      if (key === 'ArrowLeft') {\n        if (shiftKey) {\n          this.quill.setSelection(range.index - 1, range.length + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        } else {\n          this.quill.setSelection(range.index - 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        }\n      } else if (shiftKey) {\n        this.quill.setSelection(range.index, range.length + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      } else {\n        this.quill.setSelection(range.index + range.length + 1, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n      }\n\n      return false;\n    }\n\n  };\n}\n\nfunction makeFormatHandler(format) {\n  return {\n    key: format[0],\n    shortKey: true,\n\n    handler(range, context) {\n      this.quill.format(format, !context.format[format], _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n    }\n\n  };\n}\n\nfunction makeTableArrowHandler(up) {\n  return {\n    key: up ? 'ArrowUp' : 'ArrowDown',\n    collapsed: true,\n    format: ['table'],\n\n    handler(range, context) {\n      // TODO move to table module\n      const key = up ? 'prev' : 'next';\n      const cell = context.line;\n      const targetRow = cell.parent[key];\n\n      if (targetRow != null) {\n        if (targetRow.statics.blotName === 'table-row') {\n          let targetCell = targetRow.children.head;\n          let cur = cell;\n\n          while (cur.prev != null) {\n            cur = cur.prev;\n            targetCell = targetCell.next;\n          }\n\n          const index = targetCell.offset(this.quill.scroll) + Math.min(context.offset, targetCell.length() - 1);\n          this.quill.setSelection(index, 0, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n        }\n      } else {\n        const targetLine = cell.table()[key];\n\n        if (targetLine != null) {\n          if (up) {\n            this.quill.setSelection(targetLine.offset(this.quill.scroll) + targetLine.length() - 1, 0, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n          } else {\n            this.quill.setSelection(targetLine.offset(this.quill.scroll), 0, _core_quill__WEBPACK_IMPORTED_MODULE_5__[\"default\"].sources.USER);\n          }\n        }\n      }\n\n      return false;\n    }\n\n  };\n}\n\nfunction normalize(binding) {\n  if (typeof binding === 'string' || typeof binding === 'number') {\n    binding = {\n      key: binding\n    };\n  } else if (typeof binding === 'object') {\n    binding = clone__WEBPACK_IMPORTED_MODULE_0___default()(binding, false);\n  } else {\n    return null;\n  }\n\n  if (binding.shortKey) {\n    binding[SHORTKEY] = binding.shortKey;\n    delete binding.shortKey;\n  }\n\n  return binding;\n}\n\nfunction tableSide(table, row, cell, offset) {\n  if (row.prev == null && row.next == null) {\n    if (cell.prev == null && cell.next == null) {\n      return offset === 0 ? -1 : 1;\n    }\n\n    return cell.prev == null ? -1 : 1;\n  }\n\n  if (row.prev == null) {\n    return -1;\n  }\n\n  if (row.next == null) {\n    return 1;\n  }\n\n  return null;\n}\n\n\n\n//# sourceURL=webpack://Quill/./modules/keyboard.js?")},"./modules/syntax.js":
/*!***************************!*\
  !*** ./modules/syntax.js ***!
  \***************************/
/*! exports provided: CodeBlock, CodeToken, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CodeBlock\", function() { return SyntaxCodeBlock; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CodeToken\", function() { return CodeToken; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Syntax; });\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill-delta */ \"./node_modules/quill-delta/dist/Delta.js\");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _blots_inline__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../blots/inline */ \"./blots/inline.js\");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/quill */ \"./core/quill.js\");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/module */ \"./core/module.js\");\n/* harmony import */ var _blots_block__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../blots/block */ \"./blots/block.js\");\n/* harmony import */ var _blots_break__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../blots/break */ \"./blots/break.js\");\n/* harmony import */ var _blots_cursor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../blots/cursor */ \"./blots/cursor.js\");\n/* harmony import */ var _blots_text__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../blots/text */ \"./blots/text.js\");\n/* harmony import */ var _formats_code__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../formats/code */ \"./formats/code.js\");\n/* harmony import */ var _clipboard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./clipboard */ \"./modules/clipboard.js\");\n\n\n\n\n\n\n\n\n\n\n\nconst TokenAttributor = new parchment__WEBPACK_IMPORTED_MODULE_1__[\"ClassAttributor\"]('code-token', 'hljs', {\n  scope: parchment__WEBPACK_IMPORTED_MODULE_1__[\"Scope\"].INLINE\n});\n\nclass CodeToken extends _blots_inline__WEBPACK_IMPORTED_MODULE_2__[\"default\"] {\n  static formats(node, scroll) {\n    while (node != null && node !== scroll.domNode) {\n      if (node.classList && node.classList.contains(_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].className)) {\n        return super.formats(node, scroll);\n      }\n\n      node = node.parentNode;\n    }\n\n    return undefined;\n  }\n\n  constructor(scroll, domNode, value) {\n    super(scroll, domNode, value);\n    TokenAttributor.add(this.domNode, value);\n  }\n\n  format(format, value) {\n    if (format !== CodeToken.blotName) {\n      super.format(format, value);\n    } else if (value) {\n      TokenAttributor.add(this.domNode, value);\n    } else {\n      TokenAttributor.remove(this.domNode);\n      this.domNode.classList.remove(this.statics.className);\n    }\n  }\n\n  optimize(...args) {\n    super.optimize(...args);\n\n    if (!TokenAttributor.value(this.domNode)) {\n      this.unwrap();\n    }\n  }\n\n}\n\nCodeToken.blotName = 'code-token';\nCodeToken.className = 'ql-token';\n\nclass SyntaxCodeBlock extends _formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"] {\n  static create(value) {\n    const domNode = super.create(value);\n\n    if (typeof value === 'string') {\n      domNode.setAttribute('data-language', value);\n    }\n\n    return domNode;\n  }\n\n  static formats(domNode) {\n    return domNode.getAttribute('data-language') || 'plain';\n  }\n\n  static register() {} // Syntax module will register\n\n\n  format(name, value) {\n    if (name === this.statics.blotName && value) {\n      this.domNode.setAttribute('data-language', value);\n    } else {\n      super.format(name, value);\n    }\n  }\n\n  replaceWith(name, value) {\n    this.formatAt(0, this.length(), CodeToken.blotName, false);\n    return super.replaceWith(name, value);\n  }\n\n}\n\nclass SyntaxCodeBlockContainer extends _formats_code__WEBPACK_IMPORTED_MODULE_9__[\"CodeBlockContainer\"] {\n  attach() {\n    super.attach();\n    this.forceNext = false;\n    this.scroll.emitMount(this);\n  }\n\n  format(name, value) {\n    if (name === SyntaxCodeBlock.blotName) {\n      this.forceNext = true;\n      this.children.forEach(child => {\n        child.format(name, value);\n      });\n    }\n  }\n\n  formatAt(index, length, name, value) {\n    if (name === SyntaxCodeBlock.blotName) {\n      this.forceNext = true;\n    }\n\n    super.formatAt(index, length, name, value);\n  }\n\n  highlight(highlight, forced = false) {\n    if (this.children.head == null) return;\n    const nodes = Array.from(this.domNode.childNodes).filter(node => node !== this.uiNode);\n    const text = \"\".concat(nodes.map(node => node.textContent).join('\\n'), \"\\n\");\n    const language = SyntaxCodeBlock.formats(this.children.head.domNode);\n\n    if (forced || this.forceNext || this.cachedText !== text) {\n      if (text.trim().length > 0 || this.cachedText == null) {\n        const oldDelta = this.children.reduce((delta, child) => {\n          return delta.concat(Object(_blots_block__WEBPACK_IMPORTED_MODULE_5__[\"blockDelta\"])(child, false));\n        }, new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a());\n        const delta = highlight(text, language);\n        oldDelta.diff(delta).reduce((index, {\n          retain,\n          attributes\n        }) => {\n          // Should be all retains\n          if (!retain) return index;\n\n          if (attributes) {\n            Object.keys(attributes).forEach(format => {\n              if ([SyntaxCodeBlock.blotName, CodeToken.blotName].includes(format)) {\n                this.formatAt(index, retain, format, attributes[format]);\n              }\n            });\n          }\n\n          return index + retain;\n        }, 0);\n      }\n\n      this.cachedText = text;\n      this.forceNext = false;\n    }\n  }\n\n  optimize(context) {\n    super.optimize(context);\n\n    if (this.parent != null && this.children.head != null && this.uiNode != null) {\n      const language = SyntaxCodeBlock.formats(this.children.head.domNode);\n\n      if (language !== this.uiNode.value) {\n        this.uiNode.value = language;\n      }\n    }\n  }\n\n}\n\nSyntaxCodeBlockContainer.allowedChildren = [SyntaxCodeBlock];\nSyntaxCodeBlock.requiredContainer = SyntaxCodeBlockContainer;\nSyntaxCodeBlock.allowedChildren = [CodeToken, _blots_cursor__WEBPACK_IMPORTED_MODULE_7__[\"default\"], _blots_text__WEBPACK_IMPORTED_MODULE_8__[\"default\"], _blots_break__WEBPACK_IMPORTED_MODULE_6__[\"default\"]];\n\nclass Syntax extends _core_module__WEBPACK_IMPORTED_MODULE_4__[\"default\"] {\n  static register() {\n    _core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].register(CodeToken, true);\n    _core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].register(SyntaxCodeBlock, true);\n    _core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].register(SyntaxCodeBlockContainer, true);\n  }\n\n  constructor(quill, options) {\n    super(quill, options);\n\n    if (this.options.hljs == null) {\n      throw new Error('Syntax module requires highlight.js. Please include the library on the page before Quill.');\n    }\n\n    this.languages = this.options.languages.reduce((memo, {\n      key\n    }) => {\n      memo[key] = true;\n      return memo;\n    }, {});\n    this.highlightBlot = this.highlightBlot.bind(this);\n    this.initListener();\n    this.initTimer();\n  }\n\n  initListener() {\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].events.SCROLL_BLOT_MOUNT, blot => {\n      if (!(blot instanceof SyntaxCodeBlockContainer)) return;\n      const select = this.quill.root.ownerDocument.createElement('select');\n      this.options.languages.forEach(({\n        key,\n        label\n      }) => {\n        const option = select.ownerDocument.createElement('option');\n        option.textContent = label;\n        option.setAttribute('value', key);\n        select.appendChild(option);\n      });\n      select.addEventListener('change', () => {\n        blot.format(SyntaxCodeBlock.blotName, select.value);\n        this.quill.root.focus(); // Prevent scrolling\n\n        this.highlight(blot, true);\n      });\n\n      if (blot.uiNode == null) {\n        blot.attachUI(select);\n\n        if (blot.children.head) {\n          select.value = SyntaxCodeBlock.formats(blot.children.head.domNode);\n        }\n      }\n    });\n  }\n\n  initTimer() {\n    let timer = null;\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].events.SCROLL_OPTIMIZE, () => {\n      clearTimeout(timer);\n      timer = setTimeout(() => {\n        this.highlight();\n        timer = null;\n      }, this.options.interval);\n    });\n  }\n\n  highlight(blot = null, force = false) {\n    if (this.quill.selection.composing) return;\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].sources.USER);\n    const range = this.quill.getSelection();\n    const blots = blot == null ? this.quill.scroll.descendants(SyntaxCodeBlockContainer) : [blot];\n    blots.forEach(container => {\n      container.highlight(this.highlightBlot, force);\n    });\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].sources.SILENT);\n\n    if (range != null) {\n      this.quill.setSelection(range, _core_quill__WEBPACK_IMPORTED_MODULE_3__[\"default\"].sources.SILENT);\n    }\n  }\n\n  highlightBlot(text, language = 'plain') {\n    language = this.languages[language] ? language : 'plain';\n\n    if (language === 'plain') {\n      return Object(_blots_text__WEBPACK_IMPORTED_MODULE_8__[\"escapeText\"])(text).split('\\n').reduce((delta, line, i) => {\n        if (i !== 0) {\n          delta.insert('\\n', {\n            [_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].blotName]: language\n          });\n        }\n\n        return delta.insert(line);\n      }, new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a());\n    }\n\n    const container = this.quill.root.ownerDocument.createElement('div');\n    container.classList.add(_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].className);\n    container.innerHTML = this.options.hljs.highlight(language, text).value;\n    return Object(_clipboard__WEBPACK_IMPORTED_MODULE_10__[\"traverse\"])(this.quill.scroll, container, [(node, delta) => {\n      const value = TokenAttributor.value(node);\n\n      if (value) {\n        return delta.compose(new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a().retain(delta.length(), {\n          [CodeToken.blotName]: value\n        }));\n      }\n\n      return delta;\n    }], [(node, delta) => {\n      return node.data.split('\\n').reduce((memo, nodeText, i) => {\n        if (i !== 0) memo.insert('\\n', {\n          [_formats_code__WEBPACK_IMPORTED_MODULE_9__[\"default\"].blotName]: language\n        });\n        return memo.insert(nodeText);\n      }, delta);\n    }], new WeakMap());\n  }\n\n}\n\nSyntax.DEFAULTS = {\n  hljs: (() => {\n    return window.hljs;\n  })(),\n  interval: 1000,\n  languages: [{\n    key: 'plain',\n    label: 'Plain'\n  }, {\n    key: 'bash',\n    label: 'Bash'\n  }, {\n    key: 'cpp',\n    label: 'C++'\n  }, {\n    key: 'cs',\n    label: 'C#'\n  }, {\n    key: 'css',\n    label: 'CSS'\n  }, {\n    key: 'diff',\n    label: 'Diff'\n  }, {\n    key: 'xml',\n    label: 'HTML/XML'\n  }, {\n    key: 'java',\n    label: 'Java'\n  }, {\n    key: 'javascript',\n    label: 'Javascript'\n  }, {\n    key: 'markdown',\n    label: 'Markdown'\n  }, {\n    key: 'php',\n    label: 'PHP'\n  }, {\n    key: 'python',\n    label: 'Python'\n  }, {\n    key: 'ruby',\n    label: 'Ruby'\n  }, {\n    key: 'sql',\n    label: 'SQL'\n  }]\n};\n\n\n//# sourceURL=webpack://Quill/./modules/syntax.js?")},"./modules/table.js":
/*!**************************!*\
  !*** ./modules/table.js ***!
  \**************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill-delta */ "./node_modules/quill-delta/dist/Delta.js");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/quill */ "./core/quill.js");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/module */ "./core/module.js");\n/* harmony import */ var _formats_table__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../formats/table */ "./formats/table.js");\n\n\n\n\n\nclass Table extends _core_module__WEBPACK_IMPORTED_MODULE_2__["default"] {\n  static register() {\n    _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].register(_formats_table__WEBPACK_IMPORTED_MODULE_3__["TableCell"]);\n    _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].register(_formats_table__WEBPACK_IMPORTED_MODULE_3__["TableRow"]);\n    _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].register(_formats_table__WEBPACK_IMPORTED_MODULE_3__["TableBody"]);\n    _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].register(_formats_table__WEBPACK_IMPORTED_MODULE_3__["TableContainer"]);\n  }\n\n  constructor(...args) {\n    super(...args);\n    this.listenBalanceCells();\n  }\n\n  balanceTables() {\n    this.quill.scroll.descendants(_formats_table__WEBPACK_IMPORTED_MODULE_3__["TableContainer"]).forEach(table => {\n      table.balanceCells();\n    });\n  }\n\n  deleteColumn() {\n    const [table,, cell] = this.getTable();\n    if (cell == null) return;\n    table.deleteColumn(cell.cellOffset());\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n  }\n\n  deleteRow() {\n    const [, row] = this.getTable();\n    if (row == null) return;\n    row.remove();\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n  }\n\n  deleteTable() {\n    const [table] = this.getTable();\n    if (table == null) return;\n    const offset = table.offset();\n    table.remove();\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n    this.quill.setSelection(offset, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n  }\n\n  getTable(range = this.quill.getSelection()) {\n    if (range == null) return [null, null, null, -1];\n    const [cell, offset] = this.quill.getLine(range.index);\n\n    if (cell == null || cell.statics.blotName !== _formats_table__WEBPACK_IMPORTED_MODULE_3__["TableCell"].blotName) {\n      return [null, null, null, -1];\n    }\n\n    const row = cell.parent;\n    const table = row.parent.parent;\n    return [table, row, cell, offset];\n  }\n\n  insertColumn(offset) {\n    const range = this.quill.getSelection();\n    const [table, row, cell] = this.getTable(range);\n    if (cell == null) return;\n    const column = cell.cellOffset();\n    table.insertColumn(column + offset);\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n    let shift = row.rowOffset();\n\n    if (offset === 0) {\n      shift += 1;\n    }\n\n    this.quill.setSelection(range.index + shift, range.length, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n  }\n\n  insertColumnLeft() {\n    this.insertColumn(0);\n  }\n\n  insertColumnRight() {\n    this.insertColumn(1);\n  }\n\n  insertRow(offset) {\n    const range = this.quill.getSelection();\n    const [table, row, cell] = this.getTable(range);\n    if (cell == null) return;\n    const index = row.rowOffset();\n    table.insertRow(index + offset);\n    this.quill.update(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n\n    if (offset > 0) {\n      this.quill.setSelection(range, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n    } else {\n      this.quill.setSelection(range.index + row.children.length, range.length, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n    }\n  }\n\n  insertRowAbove() {\n    this.insertRow(0);\n  }\n\n  insertRowBelow() {\n    this.insertRow(1);\n  }\n\n  insertTable(rows, columns) {\n    const range = this.quill.getSelection();\n    if (range == null) return;\n    const delta = new Array(rows).fill(0).reduce(memo => {\n      const text = new Array(columns).fill(\'\\n\').join(\'\');\n      return memo.insert(text, {\n        table: Object(_formats_table__WEBPACK_IMPORTED_MODULE_3__["tableId"])()\n      });\n    }, new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a().retain(range.index));\n    this.quill.updateContents(delta, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n    this.quill.setSelection(range.index, _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n    this.balanceTables();\n  }\n\n  listenBalanceCells() {\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_OPTIMIZE, mutations => {\n      mutations.some(mutation => {\n        if ([\'TD\', \'TR\', \'TBODY\', \'TABLE\'].includes(mutation.target.tagName)) {\n          this.quill.once(_core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].events.TEXT_CHANGE, (delta, old, source) => {\n            if (source !== _core_quill__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER) return;\n            this.balanceTables();\n          });\n          return true;\n        }\n\n        return false;\n      });\n    });\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__["default"] = (Table);\n\n//# sourceURL=webpack://Quill/./modules/table.js?')},"./modules/toolbar.js":
/*!****************************!*\
  !*** ./modules/toolbar.js ***!
  \****************************/
/*! exports provided: default, addControls */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Toolbar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addControls\", function() { return addControls; });\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill-delta */ \"./node_modules/quill-delta/dist/Delta.js\");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var parchment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! parchment */ \"./node_modules/parchment/src/parchment.ts\");\n/* harmony import */ var _core_quill__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/quill */ \"./core/quill.js\");\n/* harmony import */ var _core_logger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/logger */ \"./core/logger.js\");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/module */ \"./core/module.js\");\n\n\n\n\n\nconst debug = Object(_core_logger__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('quill:toolbar');\n\nclass Toolbar extends _core_module__WEBPACK_IMPORTED_MODULE_4__[\"default\"] {\n  constructor(quill, options) {\n    super(quill, options);\n\n    if (Array.isArray(this.options.container)) {\n      const container = document.createElement('div');\n      addControls(container, this.options.container);\n      quill.container.parentNode.insertBefore(container, quill.container);\n      this.container = container;\n    } else if (typeof this.options.container === 'string') {\n      this.container = document.querySelector(this.options.container);\n    } else {\n      this.container = this.options.container;\n    }\n\n    if (!(this.container instanceof HTMLElement)) {\n      return debug.error('Container required for toolbar', this.options);\n    }\n\n    this.container.classList.add('ql-toolbar');\n    this.controls = [];\n    this.handlers = {};\n    Object.keys(this.options.handlers).forEach(format => {\n      this.addHandler(format, this.options.handlers[format]);\n    });\n    Array.from(this.container.querySelectorAll('button, select')).forEach(input => {\n      this.attach(input);\n    });\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].events.EDITOR_CHANGE, (type, range) => {\n      if (type === _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].events.SELECTION_CHANGE) {\n        this.update(range);\n      }\n    });\n    this.quill.on(_core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].events.SCROLL_OPTIMIZE, () => {\n      const [range] = this.quill.selection.getRange(); // quill.getSelection triggers update\n\n      this.update(range);\n    });\n  }\n\n  addHandler(format, handler) {\n    this.handlers[format] = handler;\n  }\n\n  attach(input) {\n    let format = Array.from(input.classList).find(className => {\n      return className.indexOf('ql-') === 0;\n    });\n    if (!format) return;\n    format = format.slice('ql-'.length);\n\n    if (input.tagName === 'BUTTON') {\n      input.setAttribute('type', 'button');\n    }\n\n    if (this.handlers[format] == null && this.quill.scroll.query(format) == null) {\n      debug.warn('ignoring attaching to nonexistent format', format, input);\n      return;\n    }\n\n    const eventName = input.tagName === 'SELECT' ? 'change' : 'click';\n    input.addEventListener(eventName, e => {\n      let value;\n\n      if (input.tagName === 'SELECT') {\n        if (input.selectedIndex < 0) return;\n        const selected = input.options[input.selectedIndex];\n\n        if (selected.hasAttribute('selected')) {\n          value = false;\n        } else {\n          value = selected.value || false;\n        }\n      } else {\n        if (input.classList.contains('ql-active')) {\n          value = false;\n        } else {\n          value = input.value || !input.hasAttribute('value');\n        }\n\n        e.preventDefault();\n      }\n\n      this.quill.focus();\n      const [range] = this.quill.selection.getRange();\n\n      if (this.handlers[format] != null) {\n        this.handlers[format].call(this, value);\n      } else if (this.quill.scroll.query(format).prototype instanceof parchment__WEBPACK_IMPORTED_MODULE_1__[\"EmbedBlot\"]) {\n        value = prompt(\"Enter \".concat(format)); // eslint-disable-line no-alert\n\n        if (!value) return;\n        this.quill.updateContents(new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a().retain(range.index).delete(range.length).insert({\n          [format]: value\n        }), _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      } else {\n        this.quill.format(format, value, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      }\n\n      this.update(range);\n    });\n    this.controls.push([format, input]);\n  }\n\n  update(range) {\n    const formats = range == null ? {} : this.quill.getFormat(range);\n    this.controls.forEach(pair => {\n      const [format, input] = pair;\n\n      if (input.tagName === 'SELECT') {\n        let option;\n\n        if (range == null) {\n          option = null;\n        } else if (formats[format] == null) {\n          option = input.querySelector('option[selected]');\n        } else if (!Array.isArray(formats[format])) {\n          let value = formats[format];\n\n          if (typeof value === 'string') {\n            value = value.replace(/\"/g, '\\\\\"');\n          }\n\n          option = input.querySelector(\"option[value=\\\"\".concat(value, \"\\\"]\"));\n        }\n\n        if (option == null) {\n          input.value = ''; // TODO make configurable?\n\n          input.selectedIndex = -1;\n        } else {\n          option.selected = true;\n        }\n      } else if (range == null) {\n        input.classList.remove('ql-active');\n      } else if (input.hasAttribute('value')) {\n        // both being null should match (default values)\n        // '1' should match with 1 (headers)\n        const isActive = formats[format] === input.getAttribute('value') || formats[format] != null && formats[format].toString() === input.getAttribute('value') || formats[format] == null && !input.getAttribute('value');\n        input.classList.toggle('ql-active', isActive);\n      } else {\n        input.classList.toggle('ql-active', formats[format] != null);\n      }\n    });\n  }\n\n}\n\nToolbar.DEFAULTS = {};\n\nfunction addButton(container, format, value) {\n  const input = document.createElement('button');\n  input.setAttribute('type', 'button');\n  input.classList.add(\"ql-\".concat(format));\n\n  if (value != null) {\n    input.value = value;\n  }\n\n  container.appendChild(input);\n}\n\nfunction addControls(container, groups) {\n  if (!Array.isArray(groups[0])) {\n    groups = [groups];\n  }\n\n  groups.forEach(controls => {\n    const group = document.createElement('span');\n    group.classList.add('ql-formats');\n    controls.forEach(control => {\n      if (typeof control === 'string') {\n        addButton(group, control);\n      } else {\n        const format = Object.keys(control)[0];\n        const value = control[format];\n\n        if (Array.isArray(value)) {\n          addSelect(group, format, value);\n        } else {\n          addButton(group, format, value);\n        }\n      }\n    });\n    container.appendChild(group);\n  });\n}\n\nfunction addSelect(container, format, values) {\n  const input = document.createElement('select');\n  input.classList.add(\"ql-\".concat(format));\n  values.forEach(value => {\n    const option = document.createElement('option');\n\n    if (value !== false) {\n      option.setAttribute('value', value);\n    } else {\n      option.setAttribute('selected', 'selected');\n    }\n\n    input.appendChild(option);\n  });\n  container.appendChild(input);\n}\n\nToolbar.DEFAULTS = {\n  container: null,\n  handlers: {\n    clean() {\n      const range = this.quill.getSelection();\n      if (range == null) return;\n\n      if (range.length === 0) {\n        const formats = this.quill.getFormat();\n        Object.keys(formats).forEach(name => {\n          // Clean functionality in existing apps only clean inline formats\n          if (this.quill.scroll.query(name, parchment__WEBPACK_IMPORTED_MODULE_1__[\"Scope\"].INLINE) != null) {\n            this.quill.format(name, false, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n          }\n        });\n      } else {\n        this.quill.removeFormat(range, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      }\n    },\n\n    direction(value) {\n      const {\n        align\n      } = this.quill.getFormat();\n\n      if (value === 'rtl' && align == null) {\n        this.quill.format('align', 'right', _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      } else if (!value && align === 'right') {\n        this.quill.format('align', false, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      }\n\n      this.quill.format('direction', value, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n    },\n\n    indent(value) {\n      const range = this.quill.getSelection();\n      const formats = this.quill.getFormat(range);\n      const indent = parseInt(formats.indent || 0, 10);\n\n      if (value === '+1' || value === '-1') {\n        let modifier = value === '+1' ? 1 : -1;\n        if (formats.direction === 'rtl') modifier *= -1;\n        this.quill.format('indent', indent + modifier, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      }\n    },\n\n    link(value) {\n      if (value === true) {\n        value = prompt('Enter link URL:'); // eslint-disable-line no-alert\n      }\n\n      this.quill.format('link', value, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n    },\n\n    list(value) {\n      const range = this.quill.getSelection();\n      const formats = this.quill.getFormat(range);\n\n      if (value === 'check') {\n        if (formats.list === 'checked' || formats.list === 'unchecked') {\n          this.quill.format('list', false, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n        } else {\n          this.quill.format('list', 'unchecked', _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n        }\n      } else {\n        this.quill.format('list', value, _core_quill__WEBPACK_IMPORTED_MODULE_2__[\"default\"].sources.USER);\n      }\n    }\n\n  }\n};\n\n\n//# sourceURL=webpack://Quill/./modules/toolbar.js?")},"./modules/uploader.js":
/*!*****************************!*\
  !*** ./modules/uploader.js ***!
  \*****************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill-delta */ "./node_modules/quill-delta/dist/Delta.js");\n/* harmony import */ var quill_delta__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill_delta__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _core_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/emitter */ "./core/emitter.js");\n/* harmony import */ var _core_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/module */ "./core/module.js");\n\n\n\n\nclass Uploader extends _core_module__WEBPACK_IMPORTED_MODULE_2__["default"] {\n  constructor(quill, options) {\n    super(quill, options);\n    quill.root.addEventListener(\'drop\', e => {\n      e.preventDefault();\n      let native;\n\n      if (document.caretRangeFromPoint) {\n        native = document.caretRangeFromPoint(e.clientX, e.clientY);\n      } else if (document.caretPositionFromPoint) {\n        const position = document.caretPositionFromPoint(e.clientX, e.clientY);\n        native = document.createRange();\n        native.setStart(position.offsetNode, position.offset);\n        native.setEnd(position.offsetNode, position.offset);\n      } else {\n        return;\n      }\n\n      const normalized = quill.selection.normalizeNative(native);\n      const range = quill.selection.normalizedToRange(normalized);\n      this.upload(range, e.dataTransfer.files);\n    });\n  }\n\n  upload(range, files) {\n    const uploads = [];\n    Array.from(files).forEach(file => {\n      if (file && this.options.mimetypes.includes(file.type)) {\n        uploads.push(file);\n      }\n    });\n\n    if (uploads.length > 0) {\n      this.options.handler.call(this, range, uploads);\n    }\n  }\n\n}\n\nUploader.DEFAULTS = {\n  mimetypes: [\'image/png\', \'image/jpeg\'],\n\n  handler(range, files) {\n    const promises = files.map(file => {\n      return new Promise(resolve => {\n        const reader = new FileReader();\n\n        reader.onload = e => {\n          resolve(e.target.result);\n        };\n\n        reader.readAsDataURL(file);\n      });\n    });\n    Promise.all(promises).then(images => {\n      const update = images.reduce((delta, image) => {\n        return delta.insert({\n          image\n        });\n      }, new quill_delta__WEBPACK_IMPORTED_MODULE_0___default.a().retain(range.index).delete(range.length));\n      this.quill.updateContents(update, _core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER);\n      this.quill.setSelection(range.index + images.length, _core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].sources.SILENT);\n    });\n  }\n\n};\n/* harmony default export */ __webpack_exports__["default"] = (Uploader);\n\n//# sourceURL=webpack://Quill/./modules/uploader.js?')},"./node_modules/array-filter/index.js":
/*!********************************************!*\
  !*** ./node_modules/array-filter/index.js ***!
  \********************************************/
/*! no static exports found */function(module,exports){eval("\n/**\n * Array#filter.\n *\n * @param {Array} arr\n * @param {Function} fn\n * @param {Object=} self\n * @return {Array}\n * @throw TypeError\n */\n\nmodule.exports = function (arr, fn, self) {\n  if (arr.filter) return arr.filter(fn, self);\n  if (void 0 === arr || null === arr) throw new TypeError;\n  if ('function' != typeof fn) throw new TypeError;\n  var ret = [];\n  for (var i = 0; i < arr.length; i++) {\n    if (!hasOwn.call(arr, i)) continue;\n    var val = arr[i];\n    if (fn.call(self, val, i, arr)) ret.push(val);\n  }\n  return ret;\n};\n\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n\n//# sourceURL=webpack://Quill/./node_modules/array-filter/index.js?")},"./node_modules/available-typed-arrays/index.js":
/*!******************************************************!*\
  !*** ./node_modules/available-typed-arrays/index.js ***!
  \******************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("/* WEBPACK VAR INJECTION */(function(global) {\n\nvar filter = __webpack_require__(/*! array-filter */ \"./node_modules/array-filter/index.js\");\n\nmodule.exports = function availableTypedArrays() {\n\treturn filter([\n\t\t'BigInt64Array',\n\t\t'BigUint64Array',\n\t\t'Float32Array',\n\t\t'Float64Array',\n\t\t'Int16Array',\n\t\t'Int32Array',\n\t\t'Int8Array',\n\t\t'Uint16Array',\n\t\t'Uint32Array',\n\t\t'Uint8Array',\n\t\t'Uint8ClampedArray'\n\t], function (typedArray) {\n\t\treturn typeof global[typedArray] === 'function';\n\t});\n};\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://Quill/./node_modules/available-typed-arrays/index.js?")},"./node_modules/clone/clone.js":
/*!*************************************!*\
  !*** ./node_modules/clone/clone.js ***!
  \*************************************/
/*! no static exports found */function(module,exports){eval("var clone = (function() {\n'use strict';\n\nfunction _instanceof(obj, type) {\n  return type != null && obj instanceof type;\n}\n\nvar nativeMap;\ntry {\n  nativeMap = Map;\n} catch(_) {\n  // maybe a reference error because no `Map`. Give it a dummy value that no\n  // value will ever be an instanceof.\n  nativeMap = function() {};\n}\n\nvar nativeSet;\ntry {\n  nativeSet = Set;\n} catch(_) {\n  nativeSet = function() {};\n}\n\nvar nativePromise;\ntry {\n  nativePromise = Promise;\n} catch(_) {\n  nativePromise = function() {};\n}\n\n/**\n * Clones (copies) an Object using deep copying.\n *\n * This function supports circular references by default, but if you are certain\n * there are no circular references in your object, you can save some CPU time\n * by calling clone(obj, false).\n *\n * Caution: if `circular` is false and `parent` contains circular references,\n * your program may enter an infinite loop and crash.\n *\n * @param `parent` - the object to be cloned\n * @param `circular` - set to true if the object to be cloned may contain\n *    circular references. (optional - true by default)\n * @param `depth` - set to a number if the object is only to be cloned to\n *    a particular depth. (optional - defaults to Infinity)\n * @param `prototype` - sets the prototype to be used when cloning an object.\n *    (optional - defaults to parent prototype).\n * @param `includeNonEnumerable` - set to true if the non-enumerable properties\n *    should be cloned as well. Non-enumerable properties on the prototype\n *    chain will be ignored. (optional - false by default)\n*/\nfunction clone(parent, circular, depth, prototype, includeNonEnumerable) {\n  if (typeof circular === 'object') {\n    depth = circular.depth;\n    prototype = circular.prototype;\n    includeNonEnumerable = circular.includeNonEnumerable;\n    circular = circular.circular;\n  }\n  // maintain two arrays for circular references, where corresponding parents\n  // and children have the same index\n  var allParents = [];\n  var allChildren = [];\n\n  var useBuffer = typeof Buffer != 'undefined';\n\n  if (typeof circular == 'undefined')\n    circular = true;\n\n  if (typeof depth == 'undefined')\n    depth = Infinity;\n\n  // recurse this function so we don't reset allParents and allChildren\n  function _clone(parent, depth) {\n    // cloning null always returns null\n    if (parent === null)\n      return null;\n\n    if (depth === 0)\n      return parent;\n\n    var child;\n    var proto;\n    if (typeof parent != 'object') {\n      return parent;\n    }\n\n    if (_instanceof(parent, nativeMap)) {\n      child = new nativeMap();\n    } else if (_instanceof(parent, nativeSet)) {\n      child = new nativeSet();\n    } else if (_instanceof(parent, nativePromise)) {\n      child = new nativePromise(function (resolve, reject) {\n        parent.then(function(value) {\n          resolve(_clone(value, depth - 1));\n        }, function(err) {\n          reject(_clone(err, depth - 1));\n        });\n      });\n    } else if (clone.__isArray(parent)) {\n      child = [];\n    } else if (clone.__isRegExp(parent)) {\n      child = new RegExp(parent.source, __getRegExpFlags(parent));\n      if (parent.lastIndex) child.lastIndex = parent.lastIndex;\n    } else if (clone.__isDate(parent)) {\n      child = new Date(parent.getTime());\n    } else if (useBuffer && Buffer.isBuffer(parent)) {\n      if (Buffer.allocUnsafe) {\n        // Node.js >= 4.5.0\n        child = Buffer.allocUnsafe(parent.length);\n      } else {\n        // Older Node.js versions\n        child = new Buffer(parent.length);\n      }\n      parent.copy(child);\n      return child;\n    } else if (_instanceof(parent, Error)) {\n      child = Object.create(parent);\n    } else {\n      if (typeof prototype == 'undefined') {\n        proto = Object.getPrototypeOf(parent);\n        child = Object.create(proto);\n      }\n      else {\n        child = Object.create(prototype);\n        proto = prototype;\n      }\n    }\n\n    if (circular) {\n      var index = allParents.indexOf(parent);\n\n      if (index != -1) {\n        return allChildren[index];\n      }\n      allParents.push(parent);\n      allChildren.push(child);\n    }\n\n    if (_instanceof(parent, nativeMap)) {\n      parent.forEach(function(value, key) {\n        var keyChild = _clone(key, depth - 1);\n        var valueChild = _clone(value, depth - 1);\n        child.set(keyChild, valueChild);\n      });\n    }\n    if (_instanceof(parent, nativeSet)) {\n      parent.forEach(function(value) {\n        var entryChild = _clone(value, depth - 1);\n        child.add(entryChild);\n      });\n    }\n\n    for (var i in parent) {\n      var attrs;\n      if (proto) {\n        attrs = Object.getOwnPropertyDescriptor(proto, i);\n      }\n\n      if (attrs && attrs.set == null) {\n        continue;\n      }\n      child[i] = _clone(parent[i], depth - 1);\n    }\n\n    if (Object.getOwnPropertySymbols) {\n      var symbols = Object.getOwnPropertySymbols(parent);\n      for (var i = 0; i < symbols.length; i++) {\n        // Don't need to worry about cloning a symbol because it is a primitive,\n        // like a number or string.\n        var symbol = symbols[i];\n        var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);\n        if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {\n          continue;\n        }\n        child[symbol] = _clone(parent[symbol], depth - 1);\n        if (!descriptor.enumerable) {\n          Object.defineProperty(child, symbol, {\n            enumerable: false\n          });\n        }\n      }\n    }\n\n    if (includeNonEnumerable) {\n      var allPropertyNames = Object.getOwnPropertyNames(parent);\n      for (var i = 0; i < allPropertyNames.length; i++) {\n        var propertyName = allPropertyNames[i];\n        var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);\n        if (descriptor && descriptor.enumerable) {\n          continue;\n        }\n        child[propertyName] = _clone(parent[propertyName], depth - 1);\n        Object.defineProperty(child, propertyName, {\n          enumerable: false\n        });\n      }\n    }\n\n    return child;\n  }\n\n  return _clone(parent, depth);\n}\n\n/**\n * Simple flat clone using prototype, accepts only objects, usefull for property\n * override on FLAT configuration object (no nested props).\n *\n * USE WITH CAUTION! This may not behave as you wish if you do not know how this\n * works.\n */\nclone.clonePrototype = function clonePrototype(parent) {\n  if (parent === null)\n    return null;\n\n  var c = function () {};\n  c.prototype = parent;\n  return new c();\n};\n\n// private utility functions\n\nfunction __objToStr(o) {\n  return Object.prototype.toString.call(o);\n}\nclone.__objToStr = __objToStr;\n\nfunction __isDate(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object Date]';\n}\nclone.__isDate = __isDate;\n\nfunction __isArray(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object Array]';\n}\nclone.__isArray = __isArray;\n\nfunction __isRegExp(o) {\n  return typeof o === 'object' && __objToStr(o) === '[object RegExp]';\n}\nclone.__isRegExp = __isRegExp;\n\nfunction __getRegExpFlags(re) {\n  var flags = '';\n  if (re.global) flags += 'g';\n  if (re.ignoreCase) flags += 'i';\n  if (re.multiline) flags += 'm';\n  return flags;\n}\nclone.__getRegExpFlags = __getRegExpFlags;\n\nreturn clone;\n})();\n\nif (typeof module === 'object' && module.exports) {\n  module.exports = clone;\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/clone/clone.js?")},"./node_modules/deep-equal/index.js":
/*!******************************************!*\
  !*** ./node_modules/deep-equal/index.js ***!
  \******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar objectKeys = __webpack_require__(/*! object-keys */ \"./node_modules/deep-equal/node_modules/object-keys/index.js\");\nvar isArguments = __webpack_require__(/*! is-arguments */ \"./node_modules/is-arguments/index.js\");\nvar is = __webpack_require__(/*! object-is */ \"./node_modules/object-is/index.js\");\nvar isRegex = __webpack_require__(/*! is-regex */ \"./node_modules/deep-equal/node_modules/is-regex/index.js\");\nvar flags = __webpack_require__(/*! regexp.prototype.flags */ \"./node_modules/regexp.prototype.flags/index.js\");\nvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/deep-equal/node_modules/isarray/index.js\");\nvar isDate = __webpack_require__(/*! is-date-object */ \"./node_modules/deep-equal/node_modules/is-date-object/index.js\");\nvar whichBoxedPrimitive = __webpack_require__(/*! which-boxed-primitive */ \"./node_modules/which-boxed-primitive/index.js\");\nvar GetIntrinsic = __webpack_require__(/*! es-abstract/GetIntrinsic */ \"./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js\");\nvar callBound = __webpack_require__(/*! es-abstract/helpers/callBound */ \"./node_modules/deep-equal/node_modules/es-abstract/helpers/callBound.js\");\nvar whichCollection = __webpack_require__(/*! which-collection */ \"./node_modules/which-collection/index.js\");\nvar getIterator = __webpack_require__(/*! es-get-iterator */ \"./node_modules/es-get-iterator/index.js\");\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\nvar whichTypedArray = __webpack_require__(/*! which-typed-array */ \"./node_modules/which-typed-array/index.js\");\nvar assign = __webpack_require__(/*! object.assign */ \"./node_modules/object.assign/index.js\");\n\nvar $getTime = callBound('Date.prototype.getTime');\nvar gPO = Object.getPrototypeOf;\nvar $objToString = callBound('Object.prototype.toString');\n\nvar $Set = GetIntrinsic('%Set%', true);\nvar $mapHas = callBound('Map.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSize = callBound('Map.prototype.size', true);\nvar $setAdd = callBound('Set.prototype.add', true);\nvar $setDelete = callBound('Set.prototype.delete', true);\nvar $setHas = callBound('Set.prototype.has', true);\nvar $setSize = callBound('Set.prototype.size', true);\n\n// taken from https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/util/comparisons.js#L401-L414\nfunction setHasEqualElement(set, val1, opts, channel) {\n  var i = getIterator(set);\n  var result;\n  while ((result = i.next()) && !result.done) {\n    if (internalDeepEqual(val1, result.value, opts, channel)) { // eslint-disable-line no-use-before-define\n      // Remove the matching element to make sure we do not check that again.\n      $setDelete(set, result.value);\n      return true;\n    }\n  }\n\n  return false;\n}\n\n// taken from https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/util/comparisons.js#L416-L439\nfunction findLooseMatchingPrimitives(prim) {\n  if (typeof prim === 'undefined') {\n    return null;\n  }\n  if (typeof prim === 'object') { // Only pass in null as object!\n    return void 0;\n  }\n  if (typeof prim === 'symbol') {\n    return false;\n  }\n  if (typeof prim === 'string' || typeof prim === 'number') {\n    // Loose equal entries exist only if the string is possible to convert to a regular number and not NaN.\n    return +prim === +prim; // eslint-disable-line no-implicit-coercion\n  }\n  return true;\n}\n\n// taken from https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/util/comparisons.js#L449-L460\nfunction mapMightHaveLoosePrim(a, b, prim, item, opts, channel) {\n  var altValue = findLooseMatchingPrimitives(prim);\n  if (altValue != null) {\n    return altValue;\n  }\n  var curB = $mapGet(b, altValue);\n  var looseOpts = assign({}, opts, { strict: false });\n  if (\n    (typeof curB === 'undefined' && !$mapHas(b, altValue))\n    // eslint-disable-next-line no-use-before-define\n    || !internalDeepEqual(item, curB, looseOpts, channel)\n  ) {\n    return false;\n  }\n  // eslint-disable-next-line no-use-before-define\n  return !$mapHas(a, altValue) && internalDeepEqual(item, curB, looseOpts, channel);\n}\n\n// taken from https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/util/comparisons.js#L441-L447\nfunction setMightHaveLoosePrim(a, b, prim) {\n  var altValue = findLooseMatchingPrimitives(prim);\n  if (altValue != null) {\n    return altValue;\n  }\n\n  return $setHas(b, altValue) && !$setHas(a, altValue);\n}\n\n// taken from https://github.com/browserify/commonjs-assert/blob/bba838e9ba9e28edf3127ce6974624208502f6bc/internal/util/comparisons.js#L518-L533\nfunction mapHasEqualEntry(set, map, key1, item1, opts, channel) {\n  var i = getIterator(set);\n  var result;\n  var key2;\n  while ((result = i.next()) && !result.done) {\n    key2 = result.value;\n    if (\n      // eslint-disable-next-line no-use-before-define\n      internalDeepEqual(key1, key2, opts, channel)\n      // eslint-disable-next-line no-use-before-define\n      && internalDeepEqual(item1, $mapGet(map, key2), opts, channel)\n    ) {\n      $setDelete(set, key2);\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction internalDeepEqual(actual, expected, options, channel) {\n  var opts = options || {};\n\n  // 7.1. All identical values are equivalent, as determined by ===.\n  if (opts.strict ? is(actual, expected) : actual === expected) {\n    return true;\n  }\n\n  var actualBoxed = whichBoxedPrimitive(actual);\n  var expectedBoxed = whichBoxedPrimitive(expected);\n  if (actualBoxed !== expectedBoxed) {\n    return false;\n  }\n\n  // 7.3. Other pairs that do not both pass typeof value == 'object', equivalence is determined by ==.\n  if (!actual || !expected || (typeof actual !== 'object' && typeof expected !== 'object')) {\n    return opts.strict ? is(actual, expected) : actual == expected; // eslint-disable-line eqeqeq\n  }\n\n  /*\n   * 7.4. For all other Object pairs, including Array objects, equivalence is\n   * determined by having the same number of owned properties (as verified\n   * with Object.prototype.hasOwnProperty.call), the same set of keys\n   * (although not necessarily the same order), equivalent values for every\n   * corresponding key, and an identical 'prototype' property. Note: this\n   * accounts for both named and indexed properties on Arrays.\n   */\n  // see https://github.com/nodejs/node/commit/d3aafd02efd3a403d646a3044adcf14e63a88d32 for memos/channel inspiration\n\n  var hasActual = channel.has(actual);\n  var hasExpected = channel.has(expected);\n  var sentinel;\n  if (hasActual && hasExpected) {\n    if (channel.get(actual) === channel.get(expected)) {\n      return true;\n    }\n  } else {\n    sentinel = {};\n  }\n  if (!hasActual) { channel.set(actual, sentinel); }\n  if (!hasExpected) { channel.set(expected, sentinel); }\n\n  // eslint-disable-next-line no-use-before-define\n  return objEquiv(actual, expected, opts, channel);\n}\n\nfunction isBuffer(x) {\n  if (!x || typeof x !== 'object' || typeof x.length !== 'number') {\n    return false;\n  }\n  if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {\n    return false;\n  }\n  if (x.length > 0 && typeof x[0] !== 'number') {\n    return false;\n  }\n\n  return !!(x.constructor && x.constructor.isBuffer && x.constructor.isBuffer(x));\n}\n\nfunction setEquiv(a, b, opts, channel) {\n  if ($setSize(a) !== $setSize(b)) {\n    return false;\n  }\n  var iA = getIterator(a);\n  var iB = getIterator(b);\n  var resultA;\n  var resultB;\n  var set;\n  while ((resultA = iA.next()) && !resultA.done) {\n    if (resultA.value && typeof resultA.value === 'object') {\n      if (!set) { set = new $Set(); }\n      $setAdd(set, resultA.value);\n    } else if (!$setHas(b, resultA.value)) {\n      if (opts.strict) { return false; }\n      if (!setMightHaveLoosePrim(a, b, resultA.value)) {\n        return false;\n      }\n      if (!set) { set = new $Set(); }\n      $setAdd(set, resultA.value);\n    }\n  }\n  if (set) {\n    while ((resultB = iB.next()) && !resultB.done) {\n      // We have to check if a primitive value is already matching and only if it's not, go hunting for it.\n      if (resultB.value && typeof resultB.value === 'object') {\n        if (!setHasEqualElement(set, resultB.value, opts.strict, channel)) {\n          return false;\n        }\n      } else if (\n        !opts.strict\n        && !$setHas(a, resultB.value)\n        && !setHasEqualElement(set, resultB.value, opts.strict, channel)\n      ) {\n        return false;\n      }\n    }\n    return $setSize(set) === 0;\n  }\n  return true;\n}\n\nfunction mapEquiv(a, b, opts, channel) {\n  if ($mapSize(a) !== $mapSize(b)) {\n    return false;\n  }\n  var iA = getIterator(a);\n  var iB = getIterator(b);\n  var resultA;\n  var resultB;\n  var set;\n  var key;\n  var item1;\n  var item2;\n  while ((resultA = iA.next()) && !resultA.done) {\n    key = resultA.value[0];\n    item1 = resultA.value[1];\n    if (key && typeof key === 'object') {\n      if (!set) { set = new $Set(); }\n      $setAdd(set, key);\n    } else {\n      item2 = $mapGet(b, key);\n      if ((typeof item2 === 'undefined' && !$mapHas(b, key)) || !internalDeepEqual(item1, item2, opts, channel)) {\n        if (opts.strict) {\n          return false;\n        }\n        if (!mapMightHaveLoosePrim(a, b, key, item1, opts, channel)) {\n          return false;\n        }\n        if (!set) { set = new $Set(); }\n        $setAdd(set, key);\n      }\n    }\n  }\n\n  if (set) {\n    while ((resultB = iB.next()) && !resultB.done) {\n      key = resultB.value[0];\n      item2 = resultB.value[1];\n      if (key && typeof key === 'object') {\n        if (!mapHasEqualEntry(set, a, key, item2, opts, channel)) {\n          return false;\n        }\n      } else if (\n        !opts.strict\n        && (!a.has(key) || !internalDeepEqual($mapGet(a, key), item2, opts, channel))\n        && !mapHasEqualEntry(set, a, key, item2, assign({}, opts, { strict: false }), channel)\n      ) {\n        return false;\n      }\n    }\n    return $setSize(set) === 0;\n  }\n  return true;\n}\n\nfunction objEquiv(a, b, opts, channel) {\n  /* eslint max-statements: [2, 100], max-lines-per-function: [2, 120], max-depth: [2, 5] */\n  var i, key;\n\n  if (typeof a !== typeof b) { return false; }\n  if (a == null || b == null) { return false; }\n\n  if ($objToString(a) !== $objToString(b)) { return false; }\n\n  if (isArguments(a) !== isArguments(b)) { return false; }\n\n  var aIsArray = isArray(a);\n  var bIsArray = isArray(b);\n  if (aIsArray !== bIsArray) { return false; }\n\n  // TODO: replace when a cross-realm brand check is available\n  var aIsError = a instanceof Error;\n  var bIsError = b instanceof Error;\n  if (aIsError !== bIsError) { return false; }\n  if (aIsError || bIsError) {\n    if (a.name !== b.name || a.message !== b.message) { return false; }\n  }\n\n  var aIsRegex = isRegex(a);\n  var bIsRegex = isRegex(b);\n  if (aIsRegex !== bIsRegex) { return false; }\n  if ((aIsRegex || bIsRegex) && (a.source !== b.source || flags(a) !== flags(b))) {\n    return false;\n  }\n\n  var aIsDate = isDate(a);\n  var bIsDate = isDate(b);\n  if (aIsDate !== bIsDate) { return false; }\n  if (aIsDate || bIsDate) { // && would work too, because both are true or both false here\n    if ($getTime(a) !== $getTime(b)) { return false; }\n  }\n  if (opts.strict && gPO && gPO(a) !== gPO(b)) { return false; }\n\n  if (whichTypedArray(a) !== whichTypedArray(b)) {\n    return false;\n  }\n\n  var aIsBuffer = isBuffer(a);\n  var bIsBuffer = isBuffer(b);\n  if (aIsBuffer !== bIsBuffer) { return false; }\n  if (aIsBuffer || bIsBuffer) { // && would work too, because both are true or both false here\n    if (a.length !== b.length) { return false; }\n    for (i = 0; i < a.length; i++) {\n      if (a[i] !== b[i]) { return false; }\n    }\n    return true;\n  }\n\n  if (typeof a !== typeof b) { return false; }\n\n  var ka = objectKeys(a);\n  var kb = objectKeys(b);\n  // having the same number of owned properties (keys incorporates hasOwnProperty)\n  if (ka.length !== kb.length) { return false; }\n\n  // the same set of keys (although not necessarily the same order),\n  ka.sort();\n  kb.sort();\n  // ~~~cheap key test\n  for (i = ka.length - 1; i >= 0; i--) {\n    if (ka[i] != kb[i]) { return false; } // eslint-disable-line eqeqeq\n  }\n\n  // equivalent values for every corresponding key, and ~~~possibly expensive deep test\n  for (i = ka.length - 1; i >= 0; i--) {\n    key = ka[i];\n    if (!internalDeepEqual(a[key], b[key], opts, channel)) { return false; }\n  }\n\n  var aCollection = whichCollection(a);\n  var bCollection = whichCollection(b);\n  if (aCollection !== bCollection) {\n    return false;\n  }\n  if (aCollection === 'Set' || bCollection === 'Set') { // aCollection === bCollection\n    return setEquiv(a, b, opts, channel);\n  }\n  if (aCollection === 'Map') { // aCollection === bCollection\n    return mapEquiv(a, b, opts, channel);\n  }\n\n  return true;\n}\n\nmodule.exports = function deepEqual(a, b, opts) {\n  return internalDeepEqual(a, b, opts, getSideChannel());\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/index.js?")},"./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js":
/*!**************************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js ***!
  \**************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/deep-equal/node_modules/es-abstract/helpers/callBind.js":
/*!******************************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/es-abstract/helpers/callBind.js ***!
  \******************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/deep-equal/node_modules/es-abstract/helpers/callBound.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/es-abstract/helpers/callBound.js ***!
  \*******************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/deep-equal/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar callBind = __webpack_require__(/*! ./callBind */ \"./node_modules/deep-equal/node_modules/es-abstract/helpers/callBind.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/es-abstract/helpers/callBound.js?")},"./node_modules/deep-equal/node_modules/is-date-object/index.js":
/*!**********************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/is-date-object/index.js ***!
  \**********************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar getDay = Date.prototype.getDay;\nvar tryDateObject = function tryDateGetDayCall(value) {\n\ttry {\n\t\tgetDay.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\nvar toStr = Object.prototype.toString;\nvar dateClass = '[object Date]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/is-date-object/index.js?")},"./node_modules/deep-equal/node_modules/is-regex/index.js":
/*!****************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/is-regex/index.js ***!
  \****************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar has = __webpack_require__(/*! has */ \"./node_modules/has/src/index.js\");\nvar regexExec = RegExp.prototype.exec;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar tryRegexExecCall = function tryRegexExec(value) {\n\ttry {\n\t\tvar lastIndex = value.lastIndex;\n\t\tvalue.lastIndex = 0; // eslint-disable-line no-param-reassign\n\n\t\tregexExec.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t} finally {\n\t\tvalue.lastIndex = lastIndex; // eslint-disable-line no-param-reassign\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar regexClass = '[object RegExp]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isRegex(value) {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\tif (!hasToStringTag) {\n\t\treturn toStr.call(value) === regexClass;\n\t}\n\n\tvar descriptor = gOPD(value, 'lastIndex');\n\tvar hasLastIndexDataProperty = descriptor && has(descriptor, 'value');\n\tif (!hasLastIndexDataProperty) {\n\t\treturn false;\n\t}\n\n\treturn tryRegexExecCall(value);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/is-regex/index.js?")},"./node_modules/deep-equal/node_modules/isarray/index.js":
/*!***************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/isarray/index.js ***!
  \***************************************************************/
/*! no static exports found */function(module,exports){eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n  return toString.call(arr) == '[object Array]';\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/isarray/index.js?")},"./node_modules/deep-equal/node_modules/object-keys/implementation.js":
/*!****************************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/object-keys/implementation.js ***!
  \****************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar keysShim;\nif (!Object.keys) {\n\t// modified from https://github.com/es-shims/es5-shim\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar toStr = Object.prototype.toString;\n\tvar isArgs = __webpack_require__(/*! ./isArguments */ \"./node_modules/deep-equal/node_modules/object-keys/isArguments.js\"); // eslint-disable-line global-require\n\tvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\tvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\n\tvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\n\tvar dontEnums = [\n\t\t'toString',\n\t\t'toLocaleString',\n\t\t'valueOf',\n\t\t'hasOwnProperty',\n\t\t'isPrototypeOf',\n\t\t'propertyIsEnumerable',\n\t\t'constructor'\n\t];\n\tvar equalsConstructorPrototype = function (o) {\n\t\tvar ctor = o.constructor;\n\t\treturn ctor && ctor.prototype === o;\n\t};\n\tvar excludedKeys = {\n\t\t$applicationCache: true,\n\t\t$console: true,\n\t\t$external: true,\n\t\t$frame: true,\n\t\t$frameElement: true,\n\t\t$frames: true,\n\t\t$innerHeight: true,\n\t\t$innerWidth: true,\n\t\t$onmozfullscreenchange: true,\n\t\t$onmozfullscreenerror: true,\n\t\t$outerHeight: true,\n\t\t$outerWidth: true,\n\t\t$pageXOffset: true,\n\t\t$pageYOffset: true,\n\t\t$parent: true,\n\t\t$scrollLeft: true,\n\t\t$scrollTop: true,\n\t\t$scrollX: true,\n\t\t$scrollY: true,\n\t\t$self: true,\n\t\t$webkitIndexedDB: true,\n\t\t$webkitStorageInfo: true,\n\t\t$window: true\n\t};\n\tvar hasAutomationEqualityBug = (function () {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined') { return false; }\n\t\tfor (var k in window) {\n\t\t\ttry {\n\t\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}());\n\tvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t}\n\t\ttry {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\tkeysShim = function keys(object) {\n\t\tvar isObject = object !== null && typeof object === 'object';\n\t\tvar isFunction = toStr.call(object) === '[object Function]';\n\t\tvar isArguments = isArgs(object);\n\t\tvar isString = isObject && toStr.call(object) === '[object String]';\n\t\tvar theKeys = [];\n\n\t\tif (!isObject && !isFunction && !isArguments) {\n\t\t\tthrow new TypeError('Object.keys called on a non-object');\n\t\t}\n\n\t\tvar skipProto = hasProtoEnumBug && isFunction;\n\t\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\t\ttheKeys.push(String(i));\n\t\t\t}\n\t\t}\n\n\t\tif (isArguments && object.length > 0) {\n\t\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\t\ttheKeys.push(String(j));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var name in object) {\n\t\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\t\ttheKeys.push(String(name));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasDontEnumBug) {\n\t\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theKeys;\n\t};\n}\nmodule.exports = keysShim;\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/object-keys/implementation.js?")},"./node_modules/deep-equal/node_modules/object-keys/index.js":
/*!*******************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/object-keys/index.js ***!
  \*******************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar slice = Array.prototype.slice;\nvar isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/deep-equal/node_modules/object-keys/isArguments.js");\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(/*! ./implementation */ "./node_modules/deep-equal/node_modules/object-keys/implementation.js");\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/object-keys/index.js?')},"./node_modules/deep-equal/node_modules/object-keys/isArguments.js":
/*!*************************************************************************!*\
  !*** ./node_modules/deep-equal/node_modules/object-keys/isArguments.js ***!
  \*************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/deep-equal/node_modules/object-keys/isArguments.js?")},"./node_modules/define-properties/index.js":
/*!*************************************************!*\
  !*** ./node_modules/define-properties/index.js ***!
  \*************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar keys = __webpack_require__(/*! object-keys */ \"./node_modules/object-keys/index.js\");\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';\n\nvar toStr = Object.prototype.toString;\nvar concat = Array.prototype.concat;\nvar origDefineProperty = Object.defineProperty;\n\nvar isFunction = function (fn) {\n\treturn typeof fn === 'function' && toStr.call(fn) === '[object Function]';\n};\n\nvar arePropertyDescriptorsSupported = function () {\n\tvar obj = {};\n\ttry {\n\t\torigDefineProperty(obj, 'x', { enumerable: false, value: obj });\n\t\t// eslint-disable-next-line no-unused-vars, no-restricted-syntax\n\t\tfor (var _ in obj) { // jscs:ignore disallowUnusedVariables\n\t\t\treturn false;\n\t\t}\n\t\treturn obj.x === obj;\n\t} catch (e) { /* this is IE 8. */\n\t\treturn false;\n\t}\n};\nvar supportsDescriptors = origDefineProperty && arePropertyDescriptorsSupported();\n\nvar defineProperty = function (object, name, value, predicate) {\n\tif (name in object && (!isFunction(predicate) || !predicate())) {\n\t\treturn;\n\t}\n\tif (supportsDescriptors) {\n\t\torigDefineProperty(object, name, {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\tvalue: value,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\tobject[name] = value;\n\t}\n};\n\nvar defineProperties = function (object, map) {\n\tvar predicates = arguments.length > 2 ? arguments[2] : {};\n\tvar props = keys(map);\n\tif (hasSymbols) {\n\t\tprops = concat.call(props, Object.getOwnPropertySymbols(map));\n\t}\n\tfor (var i = 0; i < props.length; i += 1) {\n\t\tdefineProperty(object, props[i], map[props[i]], predicates[props[i]]);\n\t}\n};\n\ndefineProperties.supportsDescriptors = !!supportsDescriptors;\n\nmodule.exports = defineProperties;\n\n\n//# sourceURL=webpack://Quill/./node_modules/define-properties/index.js?")},"./node_modules/es-get-iterator/index.js":
/*!***********************************************!*\
  !*** ./node_modules/es-get-iterator/index.js ***!
  \***********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("/* WEBPACK VAR INJECTION */(function(process) {\n\n/* eslint global-require: 0 */\n// the code is structured this way so that bundlers can\n// alias out `has-symbols` to `() => true` or `() => false` if your target\n// environments' Symbol capabilities are known, and then use\n// dead code elimination on the rest of this module.\n//\n// Similarly, `isarray` can be aliased to `Array.isArray` if\n// available in all target environments.\n\nvar isArguments = __webpack_require__(/*! is-arguments */ \"./node_modules/is-arguments/index.js\");\n\nif (__webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")() || __webpack_require__(/*! has-symbols/shams */ \"./node_modules/has-symbols/shams.js\")()) {\n\tvar $iterator = Symbol.iterator;\n\t// Symbol is available natively or shammed\n\t// natively:\n\t//  - Chrome >= 38\n\t//  - Edge 12-14?, Edge >= 15 for sure\n\t//  - FF >= 36\n\t//  - Safari >= 9\n\t//  - node >= 0.12\n\tmodule.exports = function getIterator(iterable) {\n\t\t// alternatively, `iterable[$iterator]?.()`\n\t\tif (iterable != null && typeof iterable[$iterator] !== 'undefined') {\n\t\t\treturn iterable[$iterator]();\n\t\t}\n\t\tif (isArguments(iterable)) {\n\t\t\t// arguments objects lack Symbol.iterator\n\t\t\t// - node 0.12\n\t\t\treturn Array.prototype[$iterator].call(iterable);\n\t\t}\n\t};\n} else {\n\t// Symbol is not available, native or shammed\n\tvar isArray = __webpack_require__(/*! isarray */ \"./node_modules/es-get-iterator/node_modules/isarray/index.js\");\n\tvar isString = __webpack_require__(/*! is-string */ \"./node_modules/is-string/index.js\");\n\tvar GetIntrinsic = __webpack_require__(/*! es-abstract/GetIntrinsic */ \"./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js\");\n\tvar $Map = GetIntrinsic('%Map%', true);\n\tvar $Set = GetIntrinsic('%Set%', true);\n\tvar callBound = __webpack_require__(/*! es-abstract/helpers/callBound */ \"./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBound.js\");\n\tvar $arrayPush = callBound('Array.prototype.push');\n\tvar $charCodeAt = callBound('String.prototype.charCodeAt');\n\tvar $stringSlice = callBound('String.prototype.slice');\n\n\tvar advanceStringIndex = function advanceStringIndex(S, index) {\n\t\tvar length = S.length;\n\t\tif ((index + 1) >= length) {\n\t\t\treturn index + 1;\n\t\t}\n\n\t\tvar first = $charCodeAt(S, index);\n\t\tif (first < 0xD800 || first > 0xDBFF) {\n\t\t\treturn index + 1;\n\t\t}\n\n\t\tvar second = $charCodeAt(S, index + 1);\n\t\tif (second < 0xDC00 || second > 0xDFFF) {\n\t\t\treturn index + 1;\n\t\t}\n\n\t\treturn index + 2;\n\t};\n\n\tvar getArrayIterator = function getArrayIterator(arraylike) {\n\t\tvar i = 0;\n\t\treturn {\n\t\t\tnext: function next() {\n\t\t\t\tvar done = i >= arraylike.length;\n\t\t\t\tvar value;\n\t\t\t\tif (!done) {\n\t\t\t\t\tvalue = arraylike[i];\n\t\t\t\t\ti += 1;\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\tdone: done,\n\t\t\t\t\tvalue: value\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t};\n\n\tvar getNonCollectionIterator = function getNonCollectionIterator(iterable) {\n\t\tif (isArray(iterable) || isArguments(iterable)) {\n\t\t\treturn getArrayIterator(iterable);\n\t\t}\n\t\tif (isString(iterable)) {\n\t\t\tvar i = 0;\n\t\t\treturn {\n\t\t\t\tnext: function next() {\n\t\t\t\t\tvar nextIndex = advanceStringIndex(iterable, i);\n\t\t\t\t\tvar value = $stringSlice(iterable, i, nextIndex);\n\t\t\t\t\ti = nextIndex;\n\t\t\t\t\treturn {\n\t\t\t\t\t\tdone: nextIndex > iterable.length,\n\t\t\t\t\t\tvalue: value\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t};\n\n\tif (!$Map && !$Set) {\n\t\t// the only language iterables are Array, String, arguments\n\t\t// - Safari <= 6.0\n\t\t// - Chrome < 38\n\t\t// - node < 0.12\n\t\t// - FF < 13\n\t\t// - IE < 11\n\t\t// - Edge < 11\n\n\t\tmodule.exports = getNonCollectionIterator;\n\t} else {\n\t\t// either Map or Set are available, but Symbol is not\n\t\t// - es6-shim on an ES5 browser\n\t\t// - Safari 6.2 (maybe 6.1?)\n\t\t// - FF v[13, 36)\n\t\t// - IE 11\n\t\t// - Edge 11\n\t\t// - Safari v[6, 9)\n\n\t\tvar isMap = __webpack_require__(/*! is-map */ \"./node_modules/is-map/index.js\");\n\t\tvar isSet = __webpack_require__(/*! is-set */ \"./node_modules/is-set/index.js\");\n\n\t\t// Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach\n\t\tvar $mapForEach = callBound('Map.prototype.forEach', true);\n\t\tvar $setForEach = callBound('Set.prototype.forEach', true);\n\t\tif (typeof process === 'undefined' || !process.versions || !process.versions.node) { // \"if is not node\"\n\n\t\t\t// Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either\n\t\t\t// returns a value, or throws a StopIteration object. These browsers\n\t\t\t// do not have any other mechanism for iteration.\n\t\t\tvar $mapIterator = callBound('Map.prototype.iterator', true);\n\t\t\tvar $setIterator = callBound('Set.prototype.iterator', true);\n\t\t\tvar getStopIterationIterator = function (iterator) {\n\t\t\t\tvar done = false;\n\t\t\t\treturn {\n\t\t\t\t\tnext: function next() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tdone: done,\n\t\t\t\t\t\t\t\tvalue: done ? undefined : iterator.next()\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tdone: true,\n\t\t\t\t\t\t\t\tvalue: undefined\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\t\t// Firefox 27-35, and some older es6-shim versions, use a string \"@@iterator\" property\n\t\t// this returns a proper iterator object, so we should use it instead of forEach.\n\t\t// newer es6-shim versions use a string \"_es6-shim iterator_\" property.\n\t\tvar $mapAtAtIterator = callBound('Map.prototype.@@iterator', true) || callBound('Map.prototype._es6-shim iterator_', true);\n\t\tvar $setAtAtIterator = callBound('Set.prototype.@@iterator', true) || callBound('Set.prototype._es6-shim iterator_', true);\n\n\t\tvar getCollectionIterator = function getCollectionIterator(iterable) {\n\t\t\tif (isMap(iterable)) {\n\t\t\t\tif ($mapIterator) {\n\t\t\t\t\treturn getStopIterationIterator($mapIterator(iterable));\n\t\t\t\t}\n\t\t\t\tif ($mapAtAtIterator) {\n\t\t\t\t\treturn $mapAtAtIterator(iterable);\n\t\t\t\t}\n\t\t\t\tif ($mapForEach) {\n\t\t\t\t\tvar entries = [];\n\t\t\t\t\t$mapForEach(iterable, function (v, k) {\n\t\t\t\t\t\t$arrayPush(entries, [k, v]);\n\t\t\t\t\t});\n\t\t\t\t\treturn getArrayIterator(entries);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isSet(iterable)) {\n\t\t\t\tif ($setIterator) {\n\t\t\t\t\treturn getStopIterationIterator($setIterator(iterable));\n\t\t\t\t}\n\t\t\t\tif ($setAtAtIterator) {\n\t\t\t\t\treturn $setAtAtIterator(iterable);\n\t\t\t\t}\n\t\t\t\tif ($setForEach) {\n\t\t\t\t\tvar values = [];\n\t\t\t\t\t$setForEach(iterable, function (v) {\n\t\t\t\t\t\t$arrayPush(values, v);\n\t\t\t\t\t});\n\t\t\t\t\treturn getArrayIterator(values);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tmodule.exports = function getIterator(iterable) {\n\t\t\treturn getCollectionIterator(iterable) || getNonCollectionIterator(iterable);\n\t\t};\n\t}\n}\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://Quill/./node_modules/es-get-iterator/index.js?")},"./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js ***!
  \*******************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBind.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBind.js ***!
  \***********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBound.js":
/*!************************************************************************************!*\
  !*** ./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBound.js ***!
  \************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/es-get-iterator/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar callBind = __webpack_require__(/*! ./callBind */ \"./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBind.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/es-get-iterator/node_modules/es-abstract/helpers/callBound.js?")},"./node_modules/es-get-iterator/node_modules/isarray/index.js":
/*!********************************************************************!*\
  !*** ./node_modules/es-get-iterator/node_modules/isarray/index.js ***!
  \********************************************************************/
/*! no static exports found */function(module,exports){eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n  return toString.call(arr) == '[object Array]';\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/es-get-iterator/node_modules/isarray/index.js?")},"./node_modules/eventemitter3/index.js":
/*!*********************************************!*\
  !*** ./node_modules/eventemitter3/index.js ***!
  \*********************************************/
/*! no static exports found */function(module,exports){eval("'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n  , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n  Events.prototype = Object.create(null);\n\n  //\n  // This hack is needed because the `__proto__` property is still inherited in\n  // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n  //\n  if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n  this.fn = fn;\n  this.context = context;\n  this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n  if (typeof fn !== 'function') {\n    throw new TypeError('The listener must be a function');\n  }\n\n  var listener = new EE(fn, context || emitter, once)\n    , evt = prefix ? prefix + event : event;\n\n  if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n  else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n  else emitter._events[evt] = [emitter._events[evt], listener];\n\n  return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n  if (--emitter._eventsCount === 0) emitter._events = new Events();\n  else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n  this._events = new Events();\n  this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n  var names = []\n    , events\n    , name;\n\n  if (this._eventsCount === 0) return names;\n\n  for (name in (events = this._events)) {\n    if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n  }\n\n  if (Object.getOwnPropertySymbols) {\n    return names.concat(Object.getOwnPropertySymbols(events));\n  }\n\n  return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n  var evt = prefix ? prefix + event : event\n    , handlers = this._events[evt];\n\n  if (!handlers) return [];\n  if (handlers.fn) return [handlers.fn];\n\n  for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n    ee[i] = handlers[i].fn;\n  }\n\n  return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n  var evt = prefix ? prefix + event : event\n    , listeners = this._events[evt];\n\n  if (!listeners) return 0;\n  if (listeners.fn) return 1;\n  return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n  var evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) return false;\n\n  var listeners = this._events[evt]\n    , len = arguments.length\n    , args\n    , i;\n\n  if (listeners.fn) {\n    if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n    switch (len) {\n      case 1: return listeners.fn.call(listeners.context), true;\n      case 2: return listeners.fn.call(listeners.context, a1), true;\n      case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n      case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n      case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n      case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n    }\n\n    for (i = 1, args = new Array(len -1); i < len; i++) {\n      args[i - 1] = arguments[i];\n    }\n\n    listeners.fn.apply(listeners.context, args);\n  } else {\n    var length = listeners.length\n      , j;\n\n    for (i = 0; i < length; i++) {\n      if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n      switch (len) {\n        case 1: listeners[i].fn.call(listeners[i].context); break;\n        case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n        case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n        case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n        default:\n          if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n            args[j - 1] = arguments[j];\n          }\n\n          listeners[i].fn.apply(listeners[i].context, args);\n      }\n    }\n  }\n\n  return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n  return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n  return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n  var evt = prefix ? prefix + event : event;\n\n  if (!this._events[evt]) return this;\n  if (!fn) {\n    clearEvent(this, evt);\n    return this;\n  }\n\n  var listeners = this._events[evt];\n\n  if (listeners.fn) {\n    if (\n      listeners.fn === fn &&\n      (!once || listeners.once) &&\n      (!context || listeners.context === context)\n    ) {\n      clearEvent(this, evt);\n    }\n  } else {\n    for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n      if (\n        listeners[i].fn !== fn ||\n        (once && !listeners[i].once) ||\n        (context && listeners[i].context !== context)\n      ) {\n        events.push(listeners[i]);\n      }\n    }\n\n    //\n    // Reset the array, or remove it completely if we have no more listeners.\n    //\n    if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n    else clearEvent(this, evt);\n  }\n\n  return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n  var evt;\n\n  if (event) {\n    evt = prefix ? prefix + event : event;\n    if (this._events[evt]) clearEvent(this, evt);\n  } else {\n    this._events = new Events();\n    this._eventsCount = 0;\n  }\n\n  return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n  module.exports = EventEmitter;\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/eventemitter3/index.js?")},"./node_modules/extend/index.js":
/*!**************************************!*\
  !*** ./node_modules/extend/index.js ***!
  \**************************************/
/*! no static exports found */function(module,exports){eval("'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar defineProperty = Object.defineProperty;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) { /**/ }\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\n// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target\nvar setProperty = function setProperty(target, options) {\n\tif (defineProperty && options.name === '__proto__') {\n\t\tdefineProperty(target, options.name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: options.newValue,\n\t\t\twritable: true\n\t\t});\n\t} else {\n\t\ttarget[options.name] = options.newValue;\n\t}\n};\n\n// Return undefined instead of __proto__ if '__proto__' is not an own property\nvar getProperty = function getProperty(obj, name) {\n\tif (name === '__proto__') {\n\t\tif (!hasOwn.call(obj, name)) {\n\t\t\treturn void 0;\n\t\t} else if (gOPD) {\n\t\t\t// In early versions of node, obj['__proto__'] is buggy when obj has\n\t\t\t// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.\n\t\t\treturn gOPD(obj, name).value;\n\t\t}\n\t}\n\n\treturn obj[name];\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone;\n\tvar target = arguments[0];\n\tvar i = 1;\n\tvar length = arguments.length;\n\tvar deep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t}\n\tif (target == null || (typeof target !== 'object' && typeof target !== 'function')) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = getProperty(target, name);\n\t\t\t\tcopy = getProperty(options, name);\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: extend(deep, clone, copy) });\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\tsetProperty(target, { name: name, newValue: copy });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/extend/index.js?")},"./node_modules/fast-diff/diff.js":
/*!****************************************!*\
  !*** ./node_modules/fast-diff/diff.js ***!
  \****************************************/
/*! no static exports found */function(module,exports){eval("/**\n * This library modifies the diff-patch-match library by Neil Fraser\n * by removing the patch and match functionality and certain advanced\n * options in the diff function. The original license is as follows:\n *\n * ===\n *\n * Diff Match and Patch\n *\n * Copyright 2006 Google Inc.\n * http://code.google.com/p/google-diff-match-patch/\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *   http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\n/**\n * The data structure representing a diff is an array of tuples:\n * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n * which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n */\nvar DIFF_DELETE = -1;\nvar DIFF_INSERT = 1;\nvar DIFF_EQUAL = 0;\n\n\n/**\n * Find the differences between two texts.  Simplifies the problem by stripping\n * any common prefix or suffix off the texts before diffing.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {Int|Object} [cursor_pos] Edit position in text1 or object with more info\n * @return {Array} Array of diff tuples.\n */\nfunction diff_main(text1, text2, cursor_pos, _fix_unicode) {\n  // Check for equality\n  if (text1 === text2) {\n    if (text1) {\n      return [[DIFF_EQUAL, text1]];\n    }\n    return [];\n  }\n\n  if (cursor_pos != null) {\n    var editdiff = find_cursor_edit_diff(text1, text2, cursor_pos);\n    if (editdiff) {\n      return editdiff;\n    }\n  }\n\n  // Trim off common prefix (speedup).\n  var commonlength = diff_commonPrefix(text1, text2);\n  var commonprefix = text1.substring(0, commonlength);\n  text1 = text1.substring(commonlength);\n  text2 = text2.substring(commonlength);\n\n  // Trim off common suffix (speedup).\n  commonlength = diff_commonSuffix(text1, text2);\n  var commonsuffix = text1.substring(text1.length - commonlength);\n  text1 = text1.substring(0, text1.length - commonlength);\n  text2 = text2.substring(0, text2.length - commonlength);\n\n  // Compute the diff on the middle block.\n  var diffs = diff_compute_(text1, text2);\n\n  // Restore the prefix and suffix.\n  if (commonprefix) {\n    diffs.unshift([DIFF_EQUAL, commonprefix]);\n  }\n  if (commonsuffix) {\n    diffs.push([DIFF_EQUAL, commonsuffix]);\n  }\n  diff_cleanupMerge(diffs, _fix_unicode);\n  return diffs;\n};\n\n\n/**\n * Find the differences between two texts.  Assumes that the texts do not\n * have any common prefix or suffix.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_compute_(text1, text2) {\n  var diffs;\n\n  if (!text1) {\n    // Just add some text (speedup).\n    return [[DIFF_INSERT, text2]];\n  }\n\n  if (!text2) {\n    // Just delete some text (speedup).\n    return [[DIFF_DELETE, text1]];\n  }\n\n  var longtext = text1.length > text2.length ? text1 : text2;\n  var shorttext = text1.length > text2.length ? text2 : text1;\n  var i = longtext.indexOf(shorttext);\n  if (i !== -1) {\n    // Shorter text is inside the longer text (speedup).\n    diffs = [\n      [DIFF_INSERT, longtext.substring(0, i)],\n      [DIFF_EQUAL, shorttext],\n      [DIFF_INSERT, longtext.substring(i + shorttext.length)]\n    ];\n    // Swap insertions for deletions if diff is reversed.\n    if (text1.length > text2.length) {\n      diffs[0][0] = diffs[2][0] = DIFF_DELETE;\n    }\n    return diffs;\n  }\n\n  if (shorttext.length === 1) {\n    // Single character string.\n    // After the previous speedup, the character can't be an equality.\n    return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n  }\n\n  // Check to see if the problem can be split in two.\n  var hm = diff_halfMatch_(text1, text2);\n  if (hm) {\n    // A half-match was found, sort out the return data.\n    var text1_a = hm[0];\n    var text1_b = hm[1];\n    var text2_a = hm[2];\n    var text2_b = hm[3];\n    var mid_common = hm[4];\n    // Send both pairs off for separate processing.\n    var diffs_a = diff_main(text1_a, text2_a);\n    var diffs_b = diff_main(text1_b, text2_b);\n    // Merge the results.\n    return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);\n  }\n\n  return diff_bisect_(text1, text2);\n};\n\n\n/**\n * Find the 'middle snake' of a diff, split the problem in two\n * and return the recursively constructed diff.\n * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @return {Array} Array of diff tuples.\n * @private\n */\nfunction diff_bisect_(text1, text2) {\n  // Cache the text lengths to prevent multiple calls.\n  var text1_length = text1.length;\n  var text2_length = text2.length;\n  var max_d = Math.ceil((text1_length + text2_length) / 2);\n  var v_offset = max_d;\n  var v_length = 2 * max_d;\n  var v1 = new Array(v_length);\n  var v2 = new Array(v_length);\n  // Setting all elements to -1 is faster in Chrome & Firefox than mixing\n  // integers and undefined.\n  for (var x = 0; x < v_length; x++) {\n    v1[x] = -1;\n    v2[x] = -1;\n  }\n  v1[v_offset + 1] = 0;\n  v2[v_offset + 1] = 0;\n  var delta = text1_length - text2_length;\n  // If the total number of characters is odd, then the front path will collide\n  // with the reverse path.\n  var front = (delta % 2 !== 0);\n  // Offsets for start and end of k loop.\n  // Prevents mapping of space beyond the grid.\n  var k1start = 0;\n  var k1end = 0;\n  var k2start = 0;\n  var k2end = 0;\n  for (var d = 0; d < max_d; d++) {\n    // Walk the front path one step.\n    for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {\n      var k1_offset = v_offset + k1;\n      var x1;\n      if (k1 === -d || (k1 !== d && v1[k1_offset - 1] < v1[k1_offset + 1])) {\n        x1 = v1[k1_offset + 1];\n      } else {\n        x1 = v1[k1_offset - 1] + 1;\n      }\n      var y1 = x1 - k1;\n      while (\n        x1 < text1_length && y1 < text2_length &&\n        text1.charAt(x1) === text2.charAt(y1)\n      ) {\n        x1++;\n        y1++;\n      }\n      v1[k1_offset] = x1;\n      if (x1 > text1_length) {\n        // Ran off the right of the graph.\n        k1end += 2;\n      } else if (y1 > text2_length) {\n        // Ran off the bottom of the graph.\n        k1start += 2;\n      } else if (front) {\n        var k2_offset = v_offset + delta - k1;\n        if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] !== -1) {\n          // Mirror x2 onto top-left coordinate system.\n          var x2 = text1_length - v2[k2_offset];\n          if (x1 >= x2) {\n            // Overlap detected.\n            return diff_bisectSplit_(text1, text2, x1, y1);\n          }\n        }\n      }\n    }\n\n    // Walk the reverse path one step.\n    for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {\n      var k2_offset = v_offset + k2;\n      var x2;\n      if (k2 === -d || (k2 !== d && v2[k2_offset - 1] < v2[k2_offset + 1])) {\n        x2 = v2[k2_offset + 1];\n      } else {\n        x2 = v2[k2_offset - 1] + 1;\n      }\n      var y2 = x2 - k2;\n      while (\n        x2 < text1_length && y2 < text2_length &&\n        text1.charAt(text1_length - x2 - 1) === text2.charAt(text2_length - y2 - 1)\n      ) {\n        x2++;\n        y2++;\n      }\n      v2[k2_offset] = x2;\n      if (x2 > text1_length) {\n        // Ran off the left of the graph.\n        k2end += 2;\n      } else if (y2 > text2_length) {\n        // Ran off the top of the graph.\n        k2start += 2;\n      } else if (!front) {\n        var k1_offset = v_offset + delta - k2;\n        if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] !== -1) {\n          var x1 = v1[k1_offset];\n          var y1 = v_offset + x1 - k1_offset;\n          // Mirror x2 onto top-left coordinate system.\n          x2 = text1_length - x2;\n          if (x1 >= x2) {\n            // Overlap detected.\n            return diff_bisectSplit_(text1, text2, x1, y1);\n          }\n        }\n      }\n    }\n  }\n  // Diff took too long and hit the deadline or\n  // number of diffs equals number of characters, no commonality at all.\n  return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n};\n\n\n/**\n * Given the location of the 'middle snake', split the diff in two parts\n * and recurse.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} x Index of split point in text1.\n * @param {number} y Index of split point in text2.\n * @return {Array} Array of diff tuples.\n */\nfunction diff_bisectSplit_(text1, text2, x, y) {\n  var text1a = text1.substring(0, x);\n  var text2a = text2.substring(0, y);\n  var text1b = text1.substring(x);\n  var text2b = text2.substring(y);\n\n  // Compute both diffs serially.\n  var diffs = diff_main(text1a, text2a);\n  var diffsb = diff_main(text1b, text2b);\n\n  return diffs.concat(diffsb);\n};\n\n\n/**\n * Determine the common prefix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the start of each\n *     string.\n */\nfunction diff_commonPrefix(text1, text2) {\n  // Quick check for common null cases.\n  if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n    return 0;\n  }\n  // Binary search.\n  // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n  var pointermin = 0;\n  var pointermax = Math.min(text1.length, text2.length);\n  var pointermid = pointermax;\n  var pointerstart = 0;\n  while (pointermin < pointermid) {\n    if (\n      text1.substring(pointerstart, pointermid) ==\n      text2.substring(pointerstart, pointermid)\n    ) {\n      pointermin = pointermid;\n      pointerstart = pointermin;\n    } else {\n      pointermax = pointermid;\n    }\n    pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n  }\n\n  if (is_surrogate_pair_start(text1.charCodeAt(pointermid - 1))) {\n    pointermid--;\n  }\n\n  return pointermid;\n};\n\n\n/**\n * Determine the common suffix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of each string.\n */\nfunction diff_commonSuffix(text1, text2) {\n  // Quick check for common null cases.\n  if (!text1 || !text2 || text1.slice(-1) !== text2.slice(-1)) {\n    return 0;\n  }\n  // Binary search.\n  // Performance analysis: http://neil.fraser.name/news/2007/10/09/\n  var pointermin = 0;\n  var pointermax = Math.min(text1.length, text2.length);\n  var pointermid = pointermax;\n  var pointerend = 0;\n  while (pointermin < pointermid) {\n    if (\n      text1.substring(text1.length - pointermid, text1.length - pointerend) ==\n      text2.substring(text2.length - pointermid, text2.length - pointerend)\n    ) {\n      pointermin = pointermid;\n      pointerend = pointermin;\n    } else {\n      pointermax = pointermid;\n    }\n    pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n  }\n\n  if (is_surrogate_pair_end(text1.charCodeAt(text1.length - pointermid))) {\n    pointermid--;\n  }\n\n  return pointermid;\n};\n\n\n/**\n * Do the two texts share a substring which is at least half the length of the\n * longer text?\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {Array.<string>} Five element Array, containing the prefix of\n *     text1, the suffix of text1, the prefix of text2, the suffix of\n *     text2 and the common middle.  Or null if there was no match.\n */\nfunction diff_halfMatch_(text1, text2) {\n  var longtext = text1.length > text2.length ? text1 : text2;\n  var shorttext = text1.length > text2.length ? text2 : text1;\n  if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {\n    return null;  // Pointless.\n  }\n\n  /**\n   * Does a substring of shorttext exist within longtext such that the substring\n   * is at least half the length of longtext?\n   * Closure, but does not reference any external variables.\n   * @param {string} longtext Longer string.\n   * @param {string} shorttext Shorter string.\n   * @param {number} i Start index of quarter length substring within longtext.\n   * @return {Array.<string>} Five element Array, containing the prefix of\n   *     longtext, the suffix of longtext, the prefix of shorttext, the suffix\n   *     of shorttext and the common middle.  Or null if there was no match.\n   * @private\n   */\n  function diff_halfMatchI_(longtext, shorttext, i) {\n    // Start with a 1/4 length substring at position i as a seed.\n    var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));\n    var j = -1;\n    var best_common = '';\n    var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;\n    while ((j = shorttext.indexOf(seed, j + 1)) !== -1) {\n      var prefixLength = diff_commonPrefix(\n        longtext.substring(i), shorttext.substring(j));\n      var suffixLength = diff_commonSuffix(\n        longtext.substring(0, i), shorttext.substring(0, j));\n      if (best_common.length < suffixLength + prefixLength) {\n        best_common = shorttext.substring(\n          j - suffixLength, j) + shorttext.substring(j, j + prefixLength);\n        best_longtext_a = longtext.substring(0, i - suffixLength);\n        best_longtext_b = longtext.substring(i + prefixLength);\n        best_shorttext_a = shorttext.substring(0, j - suffixLength);\n        best_shorttext_b = shorttext.substring(j + prefixLength);\n      }\n    }\n    if (best_common.length * 2 >= longtext.length) {\n      return [\n        best_longtext_a, best_longtext_b,\n        best_shorttext_a, best_shorttext_b, best_common\n      ];\n    } else {\n      return null;\n    }\n  }\n\n  // First check if the second quarter is the seed for a half-match.\n  var hm1 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 4));\n  // Check again based on the third quarter.\n  var hm2 = diff_halfMatchI_(longtext, shorttext, Math.ceil(longtext.length / 2));\n  var hm;\n  if (!hm1 && !hm2) {\n    return null;\n  } else if (!hm2) {\n    hm = hm1;\n  } else if (!hm1) {\n    hm = hm2;\n  } else {\n    // Both matched.  Select the longest.\n    hm = hm1[4].length > hm2[4].length ? hm1 : hm2;\n  }\n\n  // A half-match was found, sort out the return data.\n  var text1_a, text1_b, text2_a, text2_b;\n  if (text1.length > text2.length) {\n    text1_a = hm[0];\n    text1_b = hm[1];\n    text2_a = hm[2];\n    text2_b = hm[3];\n  } else {\n    text2_a = hm[0];\n    text2_b = hm[1];\n    text1_a = hm[2];\n    text1_b = hm[3];\n  }\n  var mid_common = hm[4];\n  return [text1_a, text1_b, text2_a, text2_b, mid_common];\n};\n\n\n/**\n * Reorder and merge like edit sections.  Merge equalities.\n * Any edit section can move as long as it doesn't cross an equality.\n * @param {Array} diffs Array of diff tuples.\n * @param {boolean} fix_unicode Whether to normalize to a unicode-correct diff\n */\nfunction diff_cleanupMerge(diffs, fix_unicode) {\n  diffs.push([DIFF_EQUAL, '']);  // Add a dummy entry at the end.\n  var pointer = 0;\n  var count_delete = 0;\n  var count_insert = 0;\n  var text_delete = '';\n  var text_insert = '';\n  var commonlength;\n  while (pointer < diffs.length) {\n    if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n      diffs.splice(pointer, 1);\n      continue;\n    }\n    switch (diffs[pointer][0]) {\n      case DIFF_INSERT:\n\n        count_insert++;\n        text_insert += diffs[pointer][1];\n        pointer++;\n        break;\n      case DIFF_DELETE:\n        count_delete++;\n        text_delete += diffs[pointer][1];\n        pointer++;\n        break;\n      case DIFF_EQUAL:\n        var previous_equality = pointer - count_insert - count_delete - 1;\n        if (fix_unicode) {\n          // prevent splitting of unicode surrogate pairs.  when fix_unicode is true,\n          // we assume that the old and new text in the diff are complete and correct\n          // unicode-encoded JS strings, but the tuple boundaries may fall between\n          // surrogate pairs.  we fix this by shaving off stray surrogates from the end\n          // of the previous equality and the beginning of this equality.  this may create\n          // empty equalities or a common prefix or suffix.  for example, if AB and AC are\n          // emojis, `[[0, 'A'], [-1, 'BA'], [0, 'C']]` would turn into deleting 'ABAC' and\n          // inserting 'AC', and then the common suffix 'AC' will be eliminated.  in this\n          // particular case, both equalities go away, we absorb any previous inequalities,\n          // and we keep scanning for the next equality before rewriting the tuples.\n          if (previous_equality >= 0 && ends_with_pair_start(diffs[previous_equality][1])) {\n            var stray = diffs[previous_equality][1].slice(-1);\n            diffs[previous_equality][1] = diffs[previous_equality][1].slice(0, -1);\n            text_delete = stray + text_delete;\n            text_insert = stray + text_insert;\n            if (!diffs[previous_equality][1]) {\n              // emptied out previous equality, so delete it and include previous delete/insert\n              diffs.splice(previous_equality, 1);\n              pointer--;\n              var k = previous_equality - 1;\n              if (diffs[k] && diffs[k][0] === DIFF_INSERT) {\n                count_insert++;\n                text_insert = diffs[k][1] + text_insert;\n                k--;\n              }\n              if (diffs[k] && diffs[k][0] === DIFF_DELETE) {\n                count_delete++;\n                text_delete = diffs[k][1] + text_delete;\n                k--;\n              }\n              previous_equality = k;\n            }\n          }\n          if (starts_with_pair_end(diffs[pointer][1])) {\n            var stray = diffs[pointer][1].charAt(0);\n            diffs[pointer][1] = diffs[pointer][1].slice(1);\n            text_delete += stray;\n            text_insert += stray;\n          }\n        }\n        if (pointer < diffs.length - 1 && !diffs[pointer][1]) {\n          // for empty equality not at end, wait for next equality\n          diffs.splice(pointer, 1);\n          break;\n        }\n        if (text_delete.length > 0 || text_insert.length > 0) {\n          // note that diff_commonPrefix and diff_commonSuffix are unicode-aware\n          if (text_delete.length > 0 && text_insert.length > 0) {\n            // Factor out any common prefixes.\n            commonlength = diff_commonPrefix(text_insert, text_delete);\n            if (commonlength !== 0) {\n              if (previous_equality >= 0) {\n                diffs[previous_equality][1] += text_insert.substring(0, commonlength);\n              } else {\n                diffs.splice(0, 0, [DIFF_EQUAL, text_insert.substring(0, commonlength)]);\n                pointer++;\n              }\n              text_insert = text_insert.substring(commonlength);\n              text_delete = text_delete.substring(commonlength);\n            }\n            // Factor out any common suffixes.\n            commonlength = diff_commonSuffix(text_insert, text_delete);\n            if (commonlength !== 0) {\n              diffs[pointer][1] =\n                text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1];\n              text_insert = text_insert.substring(0, text_insert.length - commonlength);\n              text_delete = text_delete.substring(0, text_delete.length - commonlength);\n            }\n          }\n          // Delete the offending records and add the merged ones.\n          var n = count_insert + count_delete;\n          if (text_delete.length === 0 && text_insert.length === 0) {\n            diffs.splice(pointer - n, n);\n            pointer = pointer - n;\n          } else if (text_delete.length === 0) {\n            diffs.splice(pointer - n, n, [DIFF_INSERT, text_insert]);\n            pointer = pointer - n + 1;\n          } else if (text_insert.length === 0) {\n            diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete]);\n            pointer = pointer - n + 1;\n          } else {\n            diffs.splice(pointer - n, n, [DIFF_DELETE, text_delete], [DIFF_INSERT, text_insert]);\n            pointer = pointer - n + 2;\n          }\n        }\n        if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n          // Merge this equality with the previous one.\n          diffs[pointer - 1][1] += diffs[pointer][1];\n          diffs.splice(pointer, 1);\n        } else {\n          pointer++;\n        }\n        count_insert = 0;\n        count_delete = 0;\n        text_delete = '';\n        text_insert = '';\n        break;\n    }\n  }\n  if (diffs[diffs.length - 1][1] === '') {\n    diffs.pop();  // Remove the dummy entry at the end.\n  }\n\n  // Second pass: look for single edits surrounded on both sides by equalities\n  // which can be shifted sideways to eliminate an equality.\n  // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC\n  var changes = false;\n  pointer = 1;\n  // Intentionally ignore the first and last element (don't need checking).\n  while (pointer < diffs.length - 1) {\n    if (diffs[pointer - 1][0] === DIFF_EQUAL &&\n      diffs[pointer + 1][0] === DIFF_EQUAL) {\n      // This is a single edit surrounded by equalities.\n      if (diffs[pointer][1].substring(diffs[pointer][1].length -\n        diffs[pointer - 1][1].length) === diffs[pointer - 1][1]) {\n        // Shift the edit over the previous equality.\n        diffs[pointer][1] = diffs[pointer - 1][1] +\n          diffs[pointer][1].substring(0, diffs[pointer][1].length -\n            diffs[pointer - 1][1].length);\n        diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n        diffs.splice(pointer - 1, 1);\n        changes = true;\n      } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==\n        diffs[pointer + 1][1]) {\n        // Shift the edit over the next equality.\n        diffs[pointer - 1][1] += diffs[pointer + 1][1];\n        diffs[pointer][1] =\n          diffs[pointer][1].substring(diffs[pointer + 1][1].length) +\n          diffs[pointer + 1][1];\n        diffs.splice(pointer + 1, 1);\n        changes = true;\n      }\n    }\n    pointer++;\n  }\n  // If shifts were made, the diff needs reordering and another shift sweep.\n  if (changes) {\n    diff_cleanupMerge(diffs, fix_unicode);\n  }\n};\n\nfunction is_surrogate_pair_start(charCode) {\n  return charCode >= 0xD800 && charCode <= 0xDBFF;\n}\n\nfunction is_surrogate_pair_end(charCode) {\n  return charCode >= 0xDC00 && charCode <= 0xDFFF;\n}\n\nfunction starts_with_pair_end(str) {\n  return is_surrogate_pair_end(str.charCodeAt(0));\n}\n\nfunction ends_with_pair_start(str) {\n  return is_surrogate_pair_start(str.charCodeAt(str.length - 1));\n}\n\nfunction remove_empty_tuples(tuples) {\n  var ret = [];\n  for (var i = 0; i < tuples.length; i++) {\n    if (tuples[i][1].length > 0) {\n      ret.push(tuples[i]);\n    }\n  }\n  return ret;\n}\n\nfunction make_edit_splice(before, oldMiddle, newMiddle, after) {\n  if (ends_with_pair_start(before) || starts_with_pair_end(after)) {\n    return null;\n  }\n  return remove_empty_tuples([\n    [DIFF_EQUAL, before],\n    [DIFF_DELETE, oldMiddle],\n    [DIFF_INSERT, newMiddle],\n    [DIFF_EQUAL, after]\n  ]);\n}\n\nfunction find_cursor_edit_diff(oldText, newText, cursor_pos) {\n  // note: this runs after equality check has ruled out exact equality\n  var oldRange = typeof cursor_pos === 'number' ?\n    { index: cursor_pos, length: 0 } : cursor_pos.oldRange;\n  var newRange = typeof cursor_pos === 'number' ?\n    null : cursor_pos.newRange;\n  // take into account the old and new selection to generate the best diff\n  // possible for a text edit.  for example, a text change from \"xxx\" to \"xx\"\n  // could be a delete or forwards-delete of any one of the x's, or the\n  // result of selecting two of the x's and typing \"x\".\n  var oldLength = oldText.length;\n  var newLength = newText.length;\n  if (oldRange.length === 0 && (newRange === null || newRange.length === 0)) {\n    // see if we have an insert or delete before or after cursor\n    var oldCursor = oldRange.index;\n    var oldBefore = oldText.slice(0, oldCursor);\n    var oldAfter = oldText.slice(oldCursor);\n    var maybeNewCursor = newRange ? newRange.index : null;\n    editBefore: {\n      // is this an insert or delete right before oldCursor?\n      var newCursor = oldCursor + newLength - oldLength;\n      if (maybeNewCursor !== null && maybeNewCursor !== newCursor) {\n        break editBefore;\n      }\n      if (newCursor < 0 || newCursor > newLength) {\n        break editBefore;\n      }\n      var newBefore = newText.slice(0, newCursor);\n      var newAfter = newText.slice(newCursor);\n      if (newAfter !== oldAfter) {\n        break editBefore;\n      }\n      var prefixLength = Math.min(oldCursor, newCursor);\n      var oldPrefix = oldBefore.slice(0, prefixLength);\n      var newPrefix = newBefore.slice(0, prefixLength);\n      if (oldPrefix !== newPrefix) {\n        break editBefore;\n      }\n      var oldMiddle = oldBefore.slice(prefixLength);\n      var newMiddle = newBefore.slice(prefixLength);\n      return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldAfter);\n    }\n    editAfter: {\n      // is this an insert or delete right after oldCursor?\n      if (maybeNewCursor !== null && maybeNewCursor !== oldCursor) {\n        break editAfter;\n      }\n      var cursor = oldCursor;\n      var newBefore = newText.slice(0, cursor);\n      var newAfter = newText.slice(cursor);\n      if (newBefore !== oldBefore) {\n        break editAfter;\n      }\n      var suffixLength = Math.min(oldLength - cursor, newLength - cursor);\n      var oldSuffix = oldAfter.slice(oldAfter.length - suffixLength);\n      var newSuffix = newAfter.slice(newAfter.length - suffixLength);\n      if (oldSuffix !== newSuffix) {\n        break editAfter;\n      }\n      var oldMiddle = oldAfter.slice(0, oldAfter.length - suffixLength);\n      var newMiddle = newAfter.slice(0, newAfter.length - suffixLength);\n      return make_edit_splice(oldBefore, oldMiddle, newMiddle, oldSuffix);\n    }\n  }\n  if (oldRange.length > 0 && newRange && newRange.length === 0) {\n    replaceRange: {\n      // see if diff could be a splice of the old selection range\n      var oldPrefix = oldText.slice(0, oldRange.index);\n      var oldSuffix = oldText.slice(oldRange.index + oldRange.length);\n      var prefixLength = oldPrefix.length;\n      var suffixLength = oldSuffix.length;\n      if (newLength < prefixLength + suffixLength) {\n        break replaceRange;\n      }\n      var newPrefix = newText.slice(0, prefixLength);\n      var newSuffix = newText.slice(newLength - suffixLength);\n      if (oldPrefix !== newPrefix || oldSuffix !== newSuffix) {\n        break replaceRange;\n      }\n      var oldMiddle = oldText.slice(prefixLength, oldLength - suffixLength);\n      var newMiddle = newText.slice(prefixLength, newLength - suffixLength);\n      return make_edit_splice(oldPrefix, oldMiddle, newMiddle, oldSuffix);\n    }\n  }\n\n  return null;\n}\n\nfunction diff(text1, text2, cursor_pos) {\n  // only pass fix_unicode=true at the top level, not when diff_main is\n  // recursively invoked\n  return diff_main(text1, text2, cursor_pos, true);\n}\n\ndiff.INSERT = DIFF_INSERT;\ndiff.DELETE = DIFF_DELETE;\ndiff.EQUAL = DIFF_EQUAL;\n\nmodule.exports = diff;\n\n\n//# sourceURL=webpack://Quill/./node_modules/fast-diff/diff.js?")},"./node_modules/foreach/index.js":
/*!***************************************!*\
  !*** ./node_modules/foreach/index.js ***!
  \***************************************/
/*! no static exports found */function(module,exports){eval("\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toString = Object.prototype.toString;\n\nmodule.exports = function forEach (obj, fn, ctx) {\n    if (toString.call(fn) !== '[object Function]') {\n        throw new TypeError('iterator must be a function');\n    }\n    var l = obj.length;\n    if (l === +l) {\n        for (var i = 0; i < l; i++) {\n            fn.call(ctx, obj[i], i, obj);\n        }\n    } else {\n        for (var k in obj) {\n            if (hasOwn.call(obj, k)) {\n                fn.call(ctx, obj[k], k, obj);\n            }\n        }\n    }\n};\n\n\n\n//# sourceURL=webpack://Quill/./node_modules/foreach/index.js?")},"./node_modules/function-bind/implementation.js":
/*!******************************************************!*\
  !*** ./node_modules/function-bind/implementation.js ***!
  \******************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar slice = Array.prototype.slice;\nvar toStr = Object.prototype.toString;\nvar funcType = '[object Function]';\n\nmodule.exports = function bind(that) {\n    var target = this;\n    if (typeof target !== 'function' || toStr.call(target) !== funcType) {\n        throw new TypeError(ERROR_MESSAGE + target);\n    }\n    var args = slice.call(arguments, 1);\n\n    var bound;\n    var binder = function () {\n        if (this instanceof bound) {\n            var result = target.apply(\n                this,\n                args.concat(slice.call(arguments))\n            );\n            if (Object(result) === result) {\n                return result;\n            }\n            return this;\n        } else {\n            return target.apply(\n                that,\n                args.concat(slice.call(arguments))\n            );\n        }\n    };\n\n    var boundLength = Math.max(0, target.length - args.length);\n    var boundArgs = [];\n    for (var i = 0; i < boundLength; i++) {\n        boundArgs.push('$' + i);\n    }\n\n    bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);\n\n    if (target.prototype) {\n        var Empty = function Empty() {};\n        Empty.prototype = target.prototype;\n        bound.prototype = new Empty();\n        Empty.prototype = null;\n    }\n\n    return bound;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/function-bind/implementation.js?")},"./node_modules/function-bind/index.js":
/*!*********************************************!*\
  !*** ./node_modules/function-bind/index.js ***!
  \*********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");\n\nmodule.exports = Function.prototype.bind || implementation;\n\n\n//# sourceURL=webpack://Quill/./node_modules/function-bind/index.js?')},"./node_modules/has-symbols/index.js":
/*!*******************************************!*\
  !*** ./node_modules/has-symbols/index.js ***!
  \*******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("/* WEBPACK VAR INJECTION */(function(global) {\n\nvar origSymbol = global.Symbol;\nvar hasSymbolSham = __webpack_require__(/*! ./shams */ \"./node_modules/has-symbols/shams.js\");\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://Quill/./node_modules/has-symbols/index.js?")},"./node_modules/has-symbols/shams.js":
/*!*******************************************!*\
  !*** ./node_modules/has-symbols/shams.js ***!
  \*******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/has-symbols/shams.js?")},"./node_modules/has/src/index.js":
/*!***************************************!*\
  !*** ./node_modules/has/src/index.js ***!
  \***************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nmodule.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack://Quill/./node_modules/has/src/index.js?')},"./node_modules/is-arguments/index.js":
/*!********************************************!*\
  !*** ./node_modules/is-arguments/index.js ***!
  \********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\nvar toStr = Object.prototype.toString;\n\nvar isStandardArguments = function isArguments(value) {\n\tif (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {\n\t\treturn false;\n\t}\n\treturn toStr.call(value) === '[object Arguments]';\n};\n\nvar isLegacyArguments = function isArguments(value) {\n\tif (isStandardArguments(value)) {\n\t\treturn true;\n\t}\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.length === 'number' &&\n\t\tvalue.length >= 0 &&\n\t\ttoStr.call(value) !== '[object Array]' &&\n\t\ttoStr.call(value.callee) === '[object Function]';\n};\n\nvar supportsStandardArguments = (function () {\n\treturn isStandardArguments(arguments);\n}());\n\nisStandardArguments.isLegacyArguments = isLegacyArguments; // for tests\n\nmodule.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-arguments/index.js?")},"./node_modules/is-bigint/index.js":
/*!*****************************************!*\
  !*** ./node_modules/is-bigint/index.js ***!
  \*****************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nif (typeof BigInt === 'function') {\n\tvar bigIntValueOf = BigInt.prototype.valueOf;\n\tvar tryBigInt = function tryBigIntObject(value) {\n\t\ttry {\n\t\t\tbigIntValueOf.call(value);\n\t\t\treturn true;\n\t\t} catch (e) {\n\t\t}\n\t\treturn false;\n\t};\n\n\tmodule.exports = function isBigInt(value) {\n\t\tif (\n\t\t\tvalue === null\n\t\t\t|| typeof value === 'undefined'\n\t\t\t|| typeof value === 'boolean'\n\t\t\t|| typeof value === 'string'\n\t\t\t|| typeof value === 'number'\n\t\t\t|| typeof value === 'symbol'\n\t\t\t|| typeof value === 'function'\n\t\t) {\n\t\t\treturn false;\n\t\t}\n\t\tif (typeof value === 'bigint') { // eslint-disable-line valid-typeof\n\t\t\treturn true;\n\t\t}\n\n\t\treturn tryBigInt(value);\n\t};\n} else {\n\tmodule.exports = function isBigInt(value) {\n\t\treturn  false && false;\n\t};\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-bigint/index.js?")},"./node_modules/is-boolean-object/index.js":
/*!*************************************************!*\
  !*** ./node_modules/is-boolean-object/index.js ***!
  \*************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar boolToStr = Boolean.prototype.toString;\n\nvar tryBooleanObject = function booleanBrandCheck(value) {\n\ttry {\n\t\tboolToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar boolClass = '[object Boolean]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isBoolean(value) {\n\tif (typeof value === 'boolean') {\n\t\treturn true;\n\t}\n\tif (value === null || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\treturn hasToStringTag && Symbol.toStringTag in value ? tryBooleanObject(value) : toStr.call(value) === boolClass;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-boolean-object/index.js?")},"./node_modules/is-date-object/index.js":
/*!**********************************************!*\
  !*** ./node_modules/is-date-object/index.js ***!
  \**********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar getDay = Date.prototype.getDay;\nvar tryDateObject = function tryDateObject(value) {\n\ttry {\n\t\tgetDay.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\nvar toStr = Object.prototype.toString;\nvar dateClass = '[object Date]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isDateObject(value) {\n\tif (typeof value !== 'object' || value === null) { return false; }\n\treturn hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-date-object/index.js?")},"./node_modules/is-map/index.js":
/*!**************************************!*\
  !*** ./node_modules/is-map/index.js ***!
  \**************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\n\nvar exported;\n\nif (!$Map) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isMap(x) {\n\t\t// `Map` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $Map ? Map.prototype.has : null;\nvar $setHas = $Set ? Set.prototype.has : null;\nif (!exported && !$mapHas) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isMap(x) {\n\t\t// `Map` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\nmodule.exports = exported || function isMap(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$mapHas.call(x);\n\t\tif ($setHas) {\n\t\t\ttry {\n\t\t\t\t$setHas.call(x);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn x instanceof $Map; // core-js workaround, pre-v2.5.0\n\t} catch (e) {}\n\treturn false;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-map/index.js?")},"./node_modules/is-number-object/index.js":
/*!************************************************!*\
  !*** ./node_modules/is-number-object/index.js ***!
  \************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar numToStr = Number.prototype.toString;\nvar tryNumberObject = function tryNumberObject(value) {\n\ttry {\n\t\tnumToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar numClass = '[object Number]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isNumberObject(value) {\n\tif (typeof value === 'number') {\n\t\treturn true;\n\t}\n\tif (typeof value !== 'object') {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryNumberObject(value) : toStr.call(value) === numClass;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-number-object/index.js?")},"./node_modules/is-regex/index.js":
/*!****************************************!*\
  !*** ./node_modules/is-regex/index.js ***!
  \****************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar has = __webpack_require__(/*! has */ \"./node_modules/has/src/index.js\");\nvar regexExec = RegExp.prototype.exec;\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nvar tryRegexExecCall = function tryRegexExec(value) {\n\ttry {\n\t\tvar lastIndex = value.lastIndex;\n\t\tvalue.lastIndex = 0;\n\n\t\tregexExec.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t} finally {\n\t\tvalue.lastIndex = lastIndex;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar regexClass = '[object RegExp]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isRegex(value) {\n\tif (!value || typeof value !== 'object') {\n\t\treturn false;\n\t}\n\tif (!hasToStringTag) {\n\t\treturn toStr.call(value) === regexClass;\n\t}\n\n\tvar descriptor = gOPD(value, 'lastIndex');\n\tvar hasLastIndexDataProperty = descriptor && has(descriptor, 'value');\n\tif (!hasLastIndexDataProperty) {\n\t\treturn false;\n\t}\n\n\treturn tryRegexExecCall(value);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-regex/index.js?")},"./node_modules/is-set/index.js":
/*!**************************************!*\
  !*** ./node_modules/is-set/index.js ***!
  \**************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar $Map = typeof Map === 'function' && Map.prototype ? Map : null;\nvar $Set = typeof Set === 'function' && Set.prototype ? Set : null;\n\nvar exported;\n\nif (!$Set) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isSet(x) {\n\t\t// `Set` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $Map ? Map.prototype.has : null;\nvar $setHas = $Set ? Set.prototype.has : null;\nif (!exported && !$setHas) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isSet(x) {\n\t\t// `Set` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\nmodule.exports = exported || function isSet(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$setHas.call(x);\n\t\tif ($mapHas) {\n\t\t\ttry {\n\t\t\t\t$mapHas.call(x);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn x instanceof $Set; // core-js workaround, pre-v2.5.0\n\t} catch (e) {}\n\treturn false;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-set/index.js?")},"./node_modules/is-string/index.js":
/*!*****************************************!*\
  !*** ./node_modules/is-string/index.js ***!
  \*****************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar strValue = String.prototype.valueOf;\nvar tryStringObject = function tryStringObject(value) {\n\ttry {\n\t\tstrValue.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar strClass = '[object String]';\nvar hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';\n\nmodule.exports = function isString(value) {\n\tif (typeof value === 'string') {\n\t\treturn true;\n\t}\n\tif (typeof value !== 'object') {\n\t\treturn false;\n\t}\n\treturn hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-string/index.js?")},"./node_modules/is-typed-array/index.js":
/*!**********************************************!*\
  !*** ./node_modules/is-typed-array/index.js ***!
  \**********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("/* WEBPACK VAR INJECTION */(function(global) {\n\nvar forEach = __webpack_require__(/*! foreach */ \"./node_modules/foreach/index.js\");\nvar availableTypedArrays = __webpack_require__(/*! available-typed-arrays */ \"./node_modules/available-typed-arrays/index.js\");\nvar callBound = __webpack_require__(/*! es-abstract/helpers/callBound */ \"./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBound.js\");\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\nvar hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';\n\nvar typedArrays = availableTypedArrays();\n\nvar $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {\n\tfor (var i = 0; i < array.length; i += 1) {\n\t\tif (array[i] === value) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar gOPD = __webpack_require__(/*! es-abstract/helpers/getOwnPropertyDescriptor */ \"./node_modules/is-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js\");\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tvar arr = new global[typedArray]();\n\t\tif (!(Symbol.toStringTag in arr)) {\n\t\t\tthrow new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');\n\t\t}\n\t\tvar proto = getPrototypeOf(arr);\n\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\tif (!descriptor) {\n\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t}\n\t\ttoStrTags[typedArray] = descriptor.get;\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar anyTrue = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!anyTrue) {\n\t\t\ttry {\n\t\t\t\tanyTrue = getter.call(value) === typedArray;\n\t\t\t} catch (e) { /**/ }\n\t\t}\n\t});\n\treturn anyTrue;\n};\n\nmodule.exports = function isTypedArray(value) {\n\tif (!value || typeof value !== 'object') { return false; }\n\tif (!hasToStringTag) {\n\t\tvar tag = $slice($toString(value), 8, -1);\n\t\treturn $indexOf(typedArrays, tag) > -1;\n\t}\n\tif (!gOPD) { return false; }\n\treturn tryTypedArrays(value);\n};\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://Quill/./node_modules/is-typed-array/index.js?")},"./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js":
/*!******************************************************************************!*\
  !*** ./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js ***!
  \******************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBind.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBind.js ***!
  \**********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBound.js":
/*!***********************************************************************************!*\
  !*** ./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBound.js ***!
  \***********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar callBind = __webpack_require__(/*! ./callBind */ \"./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBind.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-typed-array/node_modules/es-abstract/helpers/callBound.js?")},"./node_modules/is-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js":
/*!**************************************************************************************************!*\
  !*** ./node_modules/is-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js ***!
  \**************************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/is-typed-array/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js?")},"./node_modules/is-weakmap/index.js":
/*!******************************************!*\
  !*** ./node_modules/is-weakmap/index.js ***!
  \******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;\nvar $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;\n\nvar exported;\n\nif (!$WeakMap) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isWeakMap(x) {\n\t\t// `WeakMap` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $WeakMap ? $WeakMap.prototype.has : null;\nvar $setHas = $WeakSet ? $WeakSet.prototype.has : null;\nif (!exported && !$mapHas) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isWeakMap(x) {\n\t\t// `WeakMap` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\nmodule.exports = exported || function isWeakMap(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$mapHas.call(x, $mapHas);\n\t\tif ($setHas) {\n\t\t\ttry {\n\t\t\t\t$setHas.call(x, $setHas);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn x instanceof $WeakMap; // core-js workaround, pre-v3\n\t} catch (e) {}\n\treturn false;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-weakmap/index.js?")},"./node_modules/is-weakset/index.js":
/*!******************************************!*\
  !*** ./node_modules/is-weakset/index.js ***!
  \******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar $WeakMap = typeof WeakMap === 'function' && WeakMap.prototype ? WeakMap : null;\nvar $WeakSet = typeof WeakSet === 'function' && WeakSet.prototype ? WeakSet : null;\n\nvar exported;\n\nif (!$WeakMap) {\n\t// eslint-disable-next-line no-unused-vars\n\texported = function isWeakSet(x) {\n\t\t// `WeakSet` is not present in this environment.\n\t\treturn false;\n\t};\n}\n\nvar $mapHas = $WeakMap ? $WeakMap.prototype.has : null;\nvar $setHas = $WeakSet ? $WeakSet.prototype.has : null;\nif (!exported && !$setHas) {\n\t// eslint-disable-next-line no-unused-vars\n\tmodule.exports = function isWeakSet(x) {\n\t\t// `WeakSet` does not have a `has` method\n\t\treturn false;\n\t};\n}\n\nmodule.exports = exported || function isWeakSet(x) {\n\tif (!x || typeof x !== 'object') {\n\t\treturn false;\n\t}\n\ttry {\n\t\t$setHas.call(x, $setHas);\n\t\tif ($mapHas) {\n\t\t\ttry {\n\t\t\t\t$mapHas.call(x, $mapHas);\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn x instanceof $WeakSet; // core-js workaround, pre-v3\n\t} catch (e) {}\n\treturn false;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/is-weakset/index.js?")},"./node_modules/object-inspect/index.js":
/*!**********************************************!*\
  !*** ./node_modules/object-inspect/index.js ***!
  \**********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){eval("var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar match = String.prototype.match;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\n\nvar inspectCustom = __webpack_require__(/*! ./util.inspect */ 1).custom;\nvar inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n    var opts = options || {};\n\n    if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n        throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n    }\n\n    if (typeof obj === 'undefined') {\n        return 'undefined';\n    }\n    if (obj === null) {\n        return 'null';\n    }\n    if (typeof obj === 'boolean') {\n        return obj ? 'true' : 'false';\n    }\n\n    if (typeof obj === 'string') {\n        return inspectString(obj, opts);\n    }\n    if (typeof obj === 'number') {\n        if (obj === 0) {\n            return Infinity / obj > 0 ? '0' : '-0';\n        }\n        return String(obj);\n    }\n    if (typeof obj === 'bigint') { // eslint-disable-line valid-typeof\n        return String(obj) + 'n';\n    }\n\n    var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n    if (typeof depth === 'undefined') { depth = 0; }\n    if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n        return '[Object]';\n    }\n\n    if (typeof seen === 'undefined') {\n        seen = [];\n    } else if (indexOf(seen, obj) >= 0) {\n        return '[Circular]';\n    }\n\n    function inspect(value, from) {\n        if (from) {\n            seen = seen.slice();\n            seen.push(from);\n        }\n        return inspect_(value, opts, depth + 1, seen);\n    }\n\n    if (typeof obj === 'function') {\n        var name = nameOf(obj);\n        return '[Function' + (name ? ': ' + name : '') + ']';\n    }\n    if (isSymbol(obj)) {\n        var symString = Symbol.prototype.toString.call(obj);\n        return typeof obj === 'object' ? markBoxed(symString) : symString;\n    }\n    if (isElement(obj)) {\n        var s = '<' + String(obj.nodeName).toLowerCase();\n        var attrs = obj.attributes || [];\n        for (var i = 0; i < attrs.length; i++) {\n            s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n        }\n        s += '>';\n        if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n        s += '</' + String(obj.nodeName).toLowerCase() + '>';\n        return s;\n    }\n    if (isArray(obj)) {\n        if (obj.length === 0) { return '[]'; }\n        return '[ ' + arrObjKeys(obj, inspect).join(', ') + ' ]';\n    }\n    if (isError(obj)) {\n        var parts = arrObjKeys(obj, inspect);\n        if (parts.length === 0) { return '[' + String(obj) + ']'; }\n        return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';\n    }\n    if (typeof obj === 'object') {\n        if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {\n            return obj[inspectSymbol]();\n        } else if (typeof obj.inspect === 'function') {\n            return obj.inspect();\n        }\n    }\n    if (isMap(obj)) {\n        var mapParts = [];\n        mapForEach.call(obj, function (value, key) {\n            mapParts.push(inspect(key, obj) + ' => ' + inspect(value, obj));\n        });\n        return collectionOf('Map', mapSize.call(obj), mapParts);\n    }\n    if (isSet(obj)) {\n        var setParts = [];\n        setForEach.call(obj, function (value) {\n            setParts.push(inspect(value, obj));\n        });\n        return collectionOf('Set', setSize.call(obj), setParts);\n    }\n    if (isWeakMap(obj)) {\n        return weakCollectionOf('WeakMap');\n    }\n    if (isWeakSet(obj)) {\n        return weakCollectionOf('WeakSet');\n    }\n    if (isNumber(obj)) {\n        return markBoxed(inspect(Number(obj)));\n    }\n    if (isBigInt(obj)) {\n        return markBoxed(inspect(bigIntValueOf.call(obj)));\n    }\n    if (isBoolean(obj)) {\n        return markBoxed(booleanValueOf.call(obj));\n    }\n    if (isString(obj)) {\n        return markBoxed(inspect(String(obj)));\n    }\n    if (!isDate(obj) && !isRegExp(obj)) {\n        var xs = arrObjKeys(obj, inspect);\n        if (xs.length === 0) { return '{}'; }\n        return '{ ' + xs.join(', ') + ' }';\n    }\n    return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n    var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n    return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n    return String(s).replace(/\"/g, '&quot;');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]'; }\nfunction isDate(obj) { return toStr(obj) === '[object Date]'; }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]'; }\nfunction isError(obj) { return toStr(obj) === '[object Error]'; }\nfunction isSymbol(obj) { return toStr(obj) === '[object Symbol]'; }\nfunction isString(obj) { return toStr(obj) === '[object String]'; }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]'; }\nfunction isBigInt(obj) { return toStr(obj) === '[object BigInt]'; }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]'; }\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n    return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n    return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n    if (f.name) { return f.name; }\n    var m = match.call(f, /^function\\s*([\\w$]+)/);\n    if (m) { return m[1]; }\n    return null;\n}\n\nfunction indexOf(xs, x) {\n    if (xs.indexOf) { return xs.indexOf(x); }\n    for (var i = 0, l = xs.length; i < l; i++) {\n        if (xs[i] === x) { return i; }\n    }\n    return -1;\n}\n\nfunction isMap(x) {\n    if (!mapSize || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        mapSize.call(x);\n        try {\n            setSize.call(x);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof Map; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isWeakMap(x) {\n    if (!weakMapHas || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        weakMapHas.call(x, weakMapHas);\n        try {\n            weakSetHas.call(x, weakSetHas);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isSet(x) {\n    if (!setSize || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        setSize.call(x);\n        try {\n            mapSize.call(x);\n        } catch (m) {\n            return true;\n        }\n        return x instanceof Set; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isWeakSet(x) {\n    if (!weakSetHas || !x || typeof x !== 'object') {\n        return false;\n    }\n    try {\n        weakSetHas.call(x, weakSetHas);\n        try {\n            weakMapHas.call(x, weakMapHas);\n        } catch (s) {\n            return true;\n        }\n        return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n    } catch (e) {}\n    return false;\n}\n\nfunction isElement(x) {\n    if (!x || typeof x !== 'object') { return false; }\n    if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n        return true;\n    }\n    return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n    // eslint-disable-next-line no-control-regex\n    var s = str.replace(/(['\\\\])/g, '\\\\$1').replace(/[\\x00-\\x1f]/g, lowbyte);\n    return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n    var n = c.charCodeAt(0);\n    var x = {\n        8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r'\n    }[n];\n    if (x) { return '\\\\' + x; }\n    return '\\\\x' + (n < 0x10 ? '0' : '') + n.toString(16);\n}\n\nfunction markBoxed(str) {\n    return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n    return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries) {\n    return type + ' (' + size + ') {' + entries.join(', ') + '}';\n}\n\nfunction arrObjKeys(obj, inspect) {\n    var isArr = isArray(obj);\n    var xs = [];\n    if (isArr) {\n        xs.length = obj.length;\n        for (var i = 0; i < obj.length; i++) {\n            xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n        }\n    }\n    for (var key in obj) { // eslint-disable-line no-restricted-syntax\n        if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n        if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n        if ((/[^\\w$]/).test(key)) {\n            xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n        } else {\n            xs.push(key + ': ' + inspect(obj[key], obj));\n        }\n    }\n    return xs;\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/object-inspect/index.js?")},"./node_modules/object-is/index.js":
/*!*****************************************!*\
  !*** ./node_modules/object-is/index.js ***!
  \*****************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n// http://www.ecma-international.org/ecma-262/6.0/#sec-object.is\n\nvar numberIsNaN = function (value) {\n\treturn value !== value;\n};\n\nmodule.exports = function is(a, b) {\n\tif (a === 0 && b === 0) {\n\t\treturn 1 / a === 1 / b;\n\t}\n\tif (a === b) {\n\t\treturn true;\n\t}\n\tif (numberIsNaN(a) && numberIsNaN(b)) {\n\t\treturn true;\n\t}\n\treturn false;\n};\n\n\n\n//# sourceURL=webpack://Quill/./node_modules/object-is/index.js?")},"./node_modules/object-keys/index.js":
/*!*******************************************!*\
  !*** ./node_modules/object-keys/index.js ***!
  \*******************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n// modified from https://github.com/es-shims/es5-shim\nvar has = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\nvar slice = Array.prototype.slice;\nvar isArgs = __webpack_require__(/*! ./isArguments */ \"./node_modules/object-keys/isArguments.js\");\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\nvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\nvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\nvar dontEnums = [\n\t'toString',\n\t'toLocaleString',\n\t'valueOf',\n\t'hasOwnProperty',\n\t'isPrototypeOf',\n\t'propertyIsEnumerable',\n\t'constructor'\n];\nvar equalsConstructorPrototype = function (o) {\n\tvar ctor = o.constructor;\n\treturn ctor && ctor.prototype === o;\n};\nvar excludedKeys = {\n\t$applicationCache: true,\n\t$console: true,\n\t$external: true,\n\t$frame: true,\n\t$frameElement: true,\n\t$frames: true,\n\t$innerHeight: true,\n\t$innerWidth: true,\n\t$outerHeight: true,\n\t$outerWidth: true,\n\t$pageXOffset: true,\n\t$pageYOffset: true,\n\t$parent: true,\n\t$scrollLeft: true,\n\t$scrollTop: true,\n\t$scrollX: true,\n\t$scrollY: true,\n\t$self: true,\n\t$webkitIndexedDB: true,\n\t$webkitStorageInfo: true,\n\t$window: true\n};\nvar hasAutomationEqualityBug = (function () {\n\t/* global window */\n\tif (typeof window === 'undefined') { return false; }\n\tfor (var k in window) {\n\t\ttry {\n\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\ttry {\n\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t} catch (e) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (e) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}());\nvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t/* global window */\n\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\treturn equalsConstructorPrototype(o);\n\t}\n\ttry {\n\t\treturn equalsConstructorPrototype(o);\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n\nvar keysShim = function keys(object) {\n\tvar isObject = object !== null && typeof object === 'object';\n\tvar isFunction = toStr.call(object) === '[object Function]';\n\tvar isArguments = isArgs(object);\n\tvar isString = isObject && toStr.call(object) === '[object String]';\n\tvar theKeys = [];\n\n\tif (!isObject && !isFunction && !isArguments) {\n\t\tthrow new TypeError('Object.keys called on a non-object');\n\t}\n\n\tvar skipProto = hasProtoEnumBug && isFunction;\n\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\ttheKeys.push(String(i));\n\t\t}\n\t}\n\n\tif (isArguments && object.length > 0) {\n\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\ttheKeys.push(String(j));\n\t\t}\n\t} else {\n\t\tfor (var name in object) {\n\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\ttheKeys.push(String(name));\n\t\t\t}\n\t\t}\n\t}\n\n\tif (hasDontEnumBug) {\n\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t}\n\t\t}\n\t}\n\treturn theKeys;\n};\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\treturn (Object.keys(arguments) || '').length === 2;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tvar originalKeys = Object.keys;\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t} else {\n\t\t\t\t\treturn originalKeys(object);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n\n\n//# sourceURL=webpack://Quill/./node_modules/object-keys/index.js?")},"./node_modules/object-keys/isArguments.js":
/*!*************************************************!*\
  !*** ./node_modules/object-keys/isArguments.js ***!
  \*************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/object-keys/isArguments.js?")},"./node_modules/object.assign/implementation.js":
/*!******************************************************!*\
  !*** ./node_modules/object.assign/implementation.js ***!
  \******************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\n// modified from https://github.com/es-shims/es6-shim\nvar keys = __webpack_require__(/*! object-keys */ "./node_modules/object-keys/index.js");\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\nvar canBeObject = function (obj) {\n\treturn typeof obj !== \'undefined\' && obj !== null;\n};\nvar hasSymbols = __webpack_require__(/*! has-symbols/shams */ "./node_modules/has-symbols/shams.js")();\nvar toObject = Object;\nvar push = bind.call(Function.call, Array.prototype.push);\nvar propIsEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable);\nvar originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;\n\nmodule.exports = function assign(target, source1) {\n\tif (!canBeObject(target)) { throw new TypeError(\'target must be an object\'); }\n\tvar objTarget = toObject(target);\n\tvar s, source, i, props, syms, value, key;\n\tfor (s = 1; s < arguments.length; ++s) {\n\t\tsource = toObject(arguments[s]);\n\t\tprops = keys(source);\n\t\tvar getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);\n\t\tif (getSymbols) {\n\t\t\tsyms = getSymbols(source);\n\t\t\tfor (i = 0; i < syms.length; ++i) {\n\t\t\t\tkey = syms[i];\n\t\t\t\tif (propIsEnumerable(source, key)) {\n\t\t\t\t\tpush(props, key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < props.length; ++i) {\n\t\t\tkey = props[i];\n\t\t\tvalue = source[key];\n\t\t\tif (propIsEnumerable(source, key)) {\n\t\t\t\tobjTarget[key] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn objTarget;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/object.assign/implementation.js?')},"./node_modules/object.assign/index.js":
/*!*********************************************!*\
  !*** ./node_modules/object.assign/index.js ***!
  \*********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar defineProperties = __webpack_require__(/*! define-properties */ "./node_modules/define-properties/index.js");\n\nvar implementation = __webpack_require__(/*! ./implementation */ "./node_modules/object.assign/implementation.js");\nvar getPolyfill = __webpack_require__(/*! ./polyfill */ "./node_modules/object.assign/polyfill.js");\nvar shim = __webpack_require__(/*! ./shim */ "./node_modules/object.assign/shim.js");\n\nvar polyfill = getPolyfill();\n\ndefineProperties(polyfill, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = polyfill;\n\n\n//# sourceURL=webpack://Quill/./node_modules/object.assign/index.js?')},"./node_modules/object.assign/polyfill.js":
/*!************************************************!*\
  !*** ./node_modules/object.assign/polyfill.js ***!
  \************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/object.assign/implementation.js\");\n\nvar lacksProperEnumerationOrder = function () {\n\tif (!Object.assign) {\n\t\treturn false;\n\t}\n\t// v8, specifically in node 4.x, has a bug with incorrect property enumeration order\n\t// note: this does not detect the bug unless there's 20 characters\n\tvar str = 'abcdefghijklmnopqrst';\n\tvar letters = str.split('');\n\tvar map = {};\n\tfor (var i = 0; i < letters.length; ++i) {\n\t\tmap[letters[i]] = letters[i];\n\t}\n\tvar obj = Object.assign({}, map);\n\tvar actual = '';\n\tfor (var k in obj) {\n\t\tactual += k;\n\t}\n\treturn str !== actual;\n};\n\nvar assignHasPendingExceptions = function () {\n\tif (!Object.assign || !Object.preventExtensions) {\n\t\treturn false;\n\t}\n\t// Firefox 37 still has \"pending exception\" logic in its Object.assign implementation,\n\t// which is 72% slower than our shim, and Firefox 40's native implementation.\n\tvar thrower = Object.preventExtensions({ 1: 2 });\n\ttry {\n\t\tObject.assign(thrower, 'xy');\n\t} catch (e) {\n\t\treturn thrower[1] === 'y';\n\t}\n\treturn false;\n};\n\nmodule.exports = function getPolyfill() {\n\tif (!Object.assign) {\n\t\treturn implementation;\n\t}\n\tif (lacksProperEnumerationOrder()) {\n\t\treturn implementation;\n\t}\n\tif (assignHasPendingExceptions()) {\n\t\treturn implementation;\n\t}\n\treturn Object.assign;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/object.assign/polyfill.js?")},"./node_modules/object.assign/shim.js":
/*!********************************************!*\
  !*** ./node_modules/object.assign/shim.js ***!
  \********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar define = __webpack_require__(/*! define-properties */ "./node_modules/define-properties/index.js");\nvar getPolyfill = __webpack_require__(/*! ./polyfill */ "./node_modules/object.assign/polyfill.js");\n\nmodule.exports = function shimAssign() {\n\tvar polyfill = getPolyfill();\n\tdefine(\n\t\tObject,\n\t\t{ assign: polyfill },\n\t\t{ assign: function () { return Object.assign !== polyfill; } }\n\t);\n\treturn polyfill;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/object.assign/shim.js?')},"./node_modules/parchment/src/attributor/attributor.ts":
/*!*************************************************************!*\
  !*** ./node_modules/parchment/src/attributor/attributor.ts ***!
  \*************************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Attributor; });\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n\nclass Attributor {\n    constructor(attrName, keyName, options = {}) {\n        this.attrName = attrName;\n        this.keyName = keyName;\n        const attributeBit = _scope__WEBPACK_IMPORTED_MODULE_0__["default"].TYPE & _scope__WEBPACK_IMPORTED_MODULE_0__["default"].ATTRIBUTE;\n        this.scope =\n            options.scope != null\n                ? // Ignore type bits, force attribute bit\n                    (options.scope & _scope__WEBPACK_IMPORTED_MODULE_0__["default"].LEVEL) | attributeBit\n                : _scope__WEBPACK_IMPORTED_MODULE_0__["default"].ATTRIBUTE;\n        if (options.whitelist != null) {\n            this.whitelist = options.whitelist;\n        }\n    }\n    static keys(node) {\n        return Array.from(node.attributes).map((item) => item.name);\n    }\n    add(node, value) {\n        if (!this.canAdd(node, value)) {\n            return false;\n        }\n        node.setAttribute(this.keyName, value);\n        return true;\n    }\n    canAdd(_node, value) {\n        if (this.whitelist == null) {\n            return true;\n        }\n        if (typeof value === \'string\') {\n            return this.whitelist.indexOf(value.replace(/["\']/g, \'\')) > -1;\n        }\n        else {\n            return this.whitelist.indexOf(value) > -1;\n        }\n    }\n    remove(node) {\n        node.removeAttribute(this.keyName);\n    }\n    value(node) {\n        const value = node.getAttribute(this.keyName);\n        if (this.canAdd(node, value) && value) {\n            return value;\n        }\n        return \'\';\n    }\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/attributor/attributor.ts?')},"./node_modules/parchment/src/attributor/class.ts":
/*!********************************************************!*\
  !*** ./node_modules/parchment/src/attributor/class.ts ***!
  \********************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _attributor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attributor */ \"./node_modules/parchment/src/attributor/attributor.ts\");\n\nfunction match(node, prefix) {\n    const className = node.getAttribute('class') || '';\n    return className\n        .split(/\\s+/)\n        .filter((name) => name.indexOf(`${prefix}-`) === 0);\n}\nclass ClassAttributor extends _attributor__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    static keys(node) {\n        return (node.getAttribute('class') || '')\n            .split(/\\s+/)\n            .map((name) => name.split('-').slice(0, -1).join('-'));\n    }\n    add(node, value) {\n        if (!this.canAdd(node, value)) {\n            return false;\n        }\n        this.remove(node);\n        node.classList.add(`${this.keyName}-${value}`);\n        return true;\n    }\n    remove(node) {\n        const matches = match(node, this.keyName);\n        matches.forEach((name) => {\n            node.classList.remove(name);\n        });\n        if (node.classList.length === 0) {\n            node.removeAttribute('class');\n        }\n    }\n    value(node) {\n        const result = match(node, this.keyName)[0] || '';\n        const value = result.slice(this.keyName.length + 1); // +1 for hyphen\n        return this.canAdd(node, value) ? value : '';\n    }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (ClassAttributor);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/attributor/class.ts?")},"./node_modules/parchment/src/attributor/store.ts":
/*!********************************************************!*\
  !*** ./node_modules/parchment/src/attributor/store.ts ***!
  \********************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../registry */ "./node_modules/parchment/src/registry.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _attributor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./attributor */ "./node_modules/parchment/src/attributor/attributor.ts");\n/* harmony import */ var _class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./class */ "./node_modules/parchment/src/attributor/class.ts");\n/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./style */ "./node_modules/parchment/src/attributor/style.ts");\n\n\n\n\n\nclass AttributorStore {\n    constructor(domNode) {\n        this.attributes = {};\n        this.domNode = domNode;\n        this.build();\n    }\n    attribute(attribute, value) {\n        // verb\n        if (value) {\n            if (attribute.add(this.domNode, value)) {\n                if (attribute.value(this.domNode) != null) {\n                    this.attributes[attribute.attrName] = attribute;\n                }\n                else {\n                    delete this.attributes[attribute.attrName];\n                }\n            }\n        }\n        else {\n            attribute.remove(this.domNode);\n            delete this.attributes[attribute.attrName];\n        }\n    }\n    build() {\n        this.attributes = {};\n        const blot = _registry__WEBPACK_IMPORTED_MODULE_0__["default"].find(this.domNode);\n        if (blot == null) {\n            return;\n        }\n        const attributes = _attributor__WEBPACK_IMPORTED_MODULE_2__["default"].keys(this.domNode);\n        const classes = _class__WEBPACK_IMPORTED_MODULE_3__["default"].keys(this.domNode);\n        const styles = _style__WEBPACK_IMPORTED_MODULE_4__["default"].keys(this.domNode);\n        attributes\n            .concat(classes)\n            .concat(styles)\n            .forEach((name) => {\n            const attr = blot.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_1__["default"].ATTRIBUTE);\n            if (attr instanceof _attributor__WEBPACK_IMPORTED_MODULE_2__["default"]) {\n                this.attributes[attr.attrName] = attr;\n            }\n        });\n    }\n    copy(target) {\n        Object.keys(this.attributes).forEach((key) => {\n            const value = this.attributes[key].value(this.domNode);\n            target.format(key, value);\n        });\n    }\n    move(target) {\n        this.copy(target);\n        Object.keys(this.attributes).forEach((key) => {\n            this.attributes[key].remove(this.domNode);\n        });\n        this.attributes = {};\n    }\n    values() {\n        return Object.keys(this.attributes).reduce((attributes, name) => {\n            attributes[name] = this.attributes[name].value(this.domNode);\n            return attributes;\n        }, {});\n    }\n}\n/* harmony default export */ __webpack_exports__["default"] = (AttributorStore);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/attributor/store.ts?')},"./node_modules/parchment/src/attributor/style.ts":
/*!********************************************************!*\
  !*** ./node_modules/parchment/src/attributor/style.ts ***!
  \********************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _attributor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attributor */ \"./node_modules/parchment/src/attributor/attributor.ts\");\n\nfunction camelize(name) {\n    const parts = name.split('-');\n    const rest = parts\n        .slice(1)\n        .map((part) => part[0].toUpperCase() + part.slice(1))\n        .join('');\n    return parts[0] + rest;\n}\nclass StyleAttributor extends _attributor__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n    static keys(node) {\n        return (node.getAttribute('style') || '').split(';').map((value) => {\n            const arr = value.split(':');\n            return arr[0].trim();\n        });\n    }\n    add(node, value) {\n        if (!this.canAdd(node, value)) {\n            return false;\n        }\n        // @ts-ignore\n        node.style[camelize(this.keyName)] = value;\n        return true;\n    }\n    remove(node) {\n        // @ts-ignore\n        node.style[camelize(this.keyName)] = '';\n        if (!node.getAttribute('style')) {\n            node.removeAttribute('style');\n        }\n    }\n    value(node) {\n        // @ts-ignore\n        const value = node.style[camelize(this.keyName)];\n        return this.canAdd(node, value) ? value : '';\n    }\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (StyleAttributor);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/attributor/style.ts?")},"./node_modules/parchment/src/blot/abstract/container.ts":
/*!***************************************************************!*\
  !*** ./node_modules/parchment/src/blot/abstract/container.ts ***!
  \***************************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _parent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parent */ "./node_modules/parchment/src/blot/abstract/parent.ts");\n\n\nclass ContainerBlot extends _parent__WEBPACK_IMPORTED_MODULE_1__["default"] {\n    checkMerge() {\n        return (this.next !== null && this.next.statics.blotName === this.statics.blotName);\n    }\n    deleteAt(index, length) {\n        super.deleteAt(index, length);\n        this.enforceAllowedChildren();\n    }\n    formatAt(index, length, name, value) {\n        super.formatAt(index, length, name, value);\n        this.enforceAllowedChildren();\n    }\n    insertAt(index, value, def) {\n        super.insertAt(index, value, def);\n        this.enforceAllowedChildren();\n    }\n    optimize(context) {\n        super.optimize(context);\n        if (this.children.length > 0 && this.next != null && this.checkMerge()) {\n            this.next.moveChildren(this);\n            this.next.remove();\n        }\n    }\n}\nContainerBlot.blotName = \'container\';\nContainerBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_0__["default"].BLOCK_BLOT;\n/* harmony default export */ __webpack_exports__["default"] = (ContainerBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/abstract/container.ts?')},"./node_modules/parchment/src/blot/abstract/leaf.ts":
/*!**********************************************************!*\
  !*** ./node_modules/parchment/src/blot/abstract/leaf.ts ***!
  \**********************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _shadow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shadow */ "./node_modules/parchment/src/blot/abstract/shadow.ts");\n\n\nclass LeafBlot extends _shadow__WEBPACK_IMPORTED_MODULE_1__["default"] {\n    static value(_domNode) {\n        return true;\n    }\n    index(node, offset) {\n        if (this.domNode === node ||\n            this.domNode.compareDocumentPosition(node) &\n                Node.DOCUMENT_POSITION_CONTAINED_BY) {\n            return Math.min(offset, 1);\n        }\n        return -1;\n    }\n    position(index, _inclusive) {\n        const childNodes = Array.from(this.parent.domNode.childNodes);\n        let offset = childNodes.indexOf(this.domNode);\n        if (index > 0) {\n            offset += 1;\n        }\n        return [this.parent.domNode, offset];\n    }\n    value() {\n        return {\n            [this.statics.blotName]: this.statics.value(this.domNode) || true,\n        };\n    }\n}\nLeafBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_0__["default"].INLINE_BLOT;\n/* harmony default export */ __webpack_exports__["default"] = (LeafBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/abstract/leaf.ts?')},"./node_modules/parchment/src/blot/abstract/parent.ts":
/*!************************************************************!*\
  !*** ./node_modules/parchment/src/blot/abstract/parent.ts ***!
  \************************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _collection_linked_list__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../collection/linked-list */ "./node_modules/parchment/src/collection/linked-list.ts");\n/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../error */ "./node_modules/parchment/src/error.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _shadow__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./shadow */ "./node_modules/parchment/src/blot/abstract/shadow.ts");\n\n\n\n\nfunction makeAttachedBlot(node, scroll) {\n    let blot = scroll.find(node);\n    if (blot == null) {\n        try {\n            blot = scroll.create(node);\n        }\n        catch (e) {\n            blot = scroll.create(_scope__WEBPACK_IMPORTED_MODULE_2__["default"].INLINE);\n            Array.from(node.childNodes).forEach((child) => {\n                // @ts-ignore\n                blot.domNode.appendChild(child);\n            });\n            if (node.parentNode) {\n                node.parentNode.replaceChild(blot.domNode, node);\n            }\n            blot.attach();\n        }\n    }\n    return blot;\n}\nclass ParentBlot extends _shadow__WEBPACK_IMPORTED_MODULE_3__["default"] {\n    constructor(scroll, domNode) {\n        super(scroll, domNode);\n        this.uiNode = null;\n        this.build();\n    }\n    appendChild(other) {\n        this.insertBefore(other);\n    }\n    attach() {\n        super.attach();\n        this.children.forEach((child) => {\n            child.attach();\n        });\n    }\n    attachUI(node) {\n        if (this.uiNode != null) {\n            this.uiNode.remove();\n        }\n        this.uiNode = node;\n        if (ParentBlot.uiClass) {\n            this.uiNode.classList.add(ParentBlot.uiClass);\n        }\n        this.uiNode.setAttribute(\'contenteditable\', \'false\');\n        this.domNode.insertBefore(this.uiNode, this.domNode.firstChild);\n    }\n    build() {\n        this.children = new _collection_linked_list__WEBPACK_IMPORTED_MODULE_0__["default"]();\n        // Need to be reversed for if DOM nodes already in order\n        Array.from(this.domNode.childNodes)\n            .filter((node) => node !== this.uiNode)\n            .reverse()\n            .forEach((node) => {\n            try {\n                const child = makeAttachedBlot(node, this.scroll);\n                this.insertBefore(child, this.children.head || undefined);\n            }\n            catch (err) {\n                if (err instanceof _error__WEBPACK_IMPORTED_MODULE_1__["default"]) {\n                    return;\n                }\n                else {\n                    throw err;\n                }\n            }\n        });\n    }\n    deleteAt(index, length) {\n        if (index === 0 && length === this.length()) {\n            return this.remove();\n        }\n        this.children.forEachAt(index, length, (child, offset, childLength) => {\n            child.deleteAt(offset, childLength);\n        });\n    }\n    descendant(criteria, index = 0) {\n        const [child, offset] = this.children.find(index);\n        if ((criteria.blotName == null && criteria(child)) ||\n            (criteria.blotName != null && child instanceof criteria)) {\n            return [child, offset];\n        }\n        else if (child instanceof ParentBlot) {\n            return child.descendant(criteria, offset);\n        }\n        else {\n            return [null, -1];\n        }\n    }\n    descendants(criteria, index = 0, length = Number.MAX_VALUE) {\n        let descendants = [];\n        let lengthLeft = length;\n        this.children.forEachAt(index, length, (child, childIndex, childLength) => {\n            if ((criteria.blotName == null && criteria(child)) ||\n                (criteria.blotName != null && child instanceof criteria)) {\n                descendants.push(child);\n            }\n            if (child instanceof ParentBlot) {\n                descendants = descendants.concat(child.descendants(criteria, childIndex, lengthLeft));\n            }\n            lengthLeft -= childLength;\n        });\n        return descendants;\n    }\n    detach() {\n        this.children.forEach((child) => {\n            child.detach();\n        });\n        super.detach();\n    }\n    enforceAllowedChildren() {\n        let done = false;\n        this.children.forEach((child) => {\n            if (done) {\n                return;\n            }\n            const allowed = this.statics.allowedChildren.some((def) => child instanceof def);\n            if (allowed) {\n                return;\n            }\n            if (child.statics.scope === _scope__WEBPACK_IMPORTED_MODULE_2__["default"].BLOCK_BLOT) {\n                if (child.next != null) {\n                    this.splitAfter(child);\n                }\n                if (child.prev != null) {\n                    this.splitAfter(child.prev);\n                }\n                child.parent.unwrap();\n                done = true;\n            }\n            else if (child instanceof ParentBlot) {\n                child.unwrap();\n            }\n            else {\n                child.remove();\n            }\n        });\n    }\n    formatAt(index, length, name, value) {\n        this.children.forEachAt(index, length, (child, offset, childLength) => {\n            child.formatAt(offset, childLength, name, value);\n        });\n    }\n    insertAt(index, value, def) {\n        const [child, offset] = this.children.find(index);\n        if (child) {\n            child.insertAt(offset, value, def);\n        }\n        else {\n            const blot = def == null\n                ? this.scroll.create(\'text\', value)\n                : this.scroll.create(value, def);\n            this.appendChild(blot);\n        }\n    }\n    insertBefore(childBlot, refBlot) {\n        if (childBlot.parent != null) {\n            childBlot.parent.children.remove(childBlot);\n        }\n        let refDomNode = null;\n        this.children.insertBefore(childBlot, refBlot || null);\n        childBlot.parent = this;\n        if (refBlot != null) {\n            refDomNode = refBlot.domNode;\n        }\n        if (this.domNode.parentNode !== childBlot.domNode ||\n            this.domNode.nextSibling !== refDomNode) {\n            this.domNode.insertBefore(childBlot.domNode, refDomNode);\n        }\n        childBlot.attach();\n    }\n    length() {\n        return this.children.reduce((memo, child) => {\n            return memo + child.length();\n        }, 0);\n    }\n    moveChildren(targetParent, refNode) {\n        this.children.forEach((child) => {\n            targetParent.insertBefore(child, refNode);\n        });\n    }\n    optimize(context) {\n        super.optimize(context);\n        this.enforceAllowedChildren();\n        if (this.uiNode != null && this.uiNode !== this.domNode.firstChild) {\n            this.domNode.insertBefore(this.uiNode, this.domNode.firstChild);\n        }\n        if (this.children.length === 0) {\n            if (this.statics.defaultChild != null) {\n                const child = this.scroll.create(this.statics.defaultChild.blotName);\n                this.appendChild(child);\n                // TODO double check if necessary\n                // child.optimize(context);\n            }\n            else {\n                this.remove();\n            }\n        }\n    }\n    path(index, inclusive = false) {\n        const [child, offset] = this.children.find(index, inclusive);\n        const position = [[this, index]];\n        if (child instanceof ParentBlot) {\n            return position.concat(child.path(offset, inclusive));\n        }\n        else if (child != null) {\n            position.push([child, offset]);\n        }\n        return position;\n    }\n    removeChild(child) {\n        this.children.remove(child);\n    }\n    replaceWith(name, value) {\n        const replacement = typeof name === \'string\' ? this.scroll.create(name, value) : name;\n        if (replacement instanceof ParentBlot) {\n            this.moveChildren(replacement);\n        }\n        return super.replaceWith(replacement);\n    }\n    split(index, force = false) {\n        if (!force) {\n            if (index === 0) {\n                return this;\n            }\n            if (index === this.length()) {\n                return this.next;\n            }\n        }\n        const after = this.clone();\n        if (this.parent) {\n            this.parent.insertBefore(after, this.next || undefined);\n        }\n        this.children.forEachAt(index, this.length(), (child, offset, _length) => {\n            const split = child.split(offset, force);\n            if (split != null) {\n                after.appendChild(split);\n            }\n        });\n        return after;\n    }\n    splitAfter(child) {\n        const after = this.clone();\n        while (child.next != null) {\n            after.appendChild(child.next);\n        }\n        if (this.parent) {\n            this.parent.insertBefore(after, this.next || undefined);\n        }\n        return after;\n    }\n    unwrap() {\n        if (this.parent) {\n            this.moveChildren(this.parent, this.next || undefined);\n        }\n        this.remove();\n    }\n    update(mutations, _context) {\n        const addedNodes = [];\n        const removedNodes = [];\n        mutations.forEach((mutation) => {\n            if (mutation.target === this.domNode && mutation.type === \'childList\') {\n                addedNodes.push(...mutation.addedNodes);\n                removedNodes.push(...mutation.removedNodes);\n            }\n        });\n        removedNodes.forEach((node) => {\n            // Check node has actually been removed\n            // One exception is Chrome does not immediately remove IFRAMEs\n            // from DOM but MutationRecord is correct in its reported removal\n            if (node.parentNode != null &&\n                // @ts-ignore\n                node.tagName !== \'IFRAME\' &&\n                document.body.compareDocumentPosition(node) &\n                    Node.DOCUMENT_POSITION_CONTAINED_BY) {\n                return;\n            }\n            const blot = this.scroll.find(node);\n            if (blot == null) {\n                return;\n            }\n            if (blot.domNode.parentNode == null ||\n                blot.domNode.parentNode === this.domNode) {\n                blot.detach();\n            }\n        });\n        addedNodes\n            .filter((node) => {\n            return node.parentNode === this.domNode || node === this.uiNode;\n        })\n            .sort((a, b) => {\n            if (a === b) {\n                return 0;\n            }\n            if (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) {\n                return 1;\n            }\n            return -1;\n        })\n            .forEach((node) => {\n            let refBlot = null;\n            if (node.nextSibling != null) {\n                refBlot = this.scroll.find(node.nextSibling);\n            }\n            const blot = makeAttachedBlot(node, this.scroll);\n            if (blot.next !== refBlot || blot.next == null) {\n                if (blot.parent != null) {\n                    blot.parent.removeChild(this);\n                }\n                this.insertBefore(blot, refBlot || undefined);\n            }\n        });\n        this.enforceAllowedChildren();\n    }\n}\nParentBlot.uiClass = \'\';\n/* harmony default export */ __webpack_exports__["default"] = (ParentBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/abstract/parent.ts?')},"./node_modules/parchment/src/blot/abstract/shadow.ts":
/*!************************************************************!*\
  !*** ./node_modules/parchment/src/blot/abstract/shadow.ts ***!
  \************************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../error */ "./node_modules/parchment/src/error.ts");\n/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../registry */ "./node_modules/parchment/src/registry.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../scope */ "./node_modules/parchment/src/scope.ts");\n\n\n\nclass ShadowBlot {\n    constructor(scroll, domNode) {\n        this.scroll = scroll;\n        this.domNode = domNode;\n        _registry__WEBPACK_IMPORTED_MODULE_1__["default"].blots.set(domNode, this);\n        this.prev = null;\n        this.next = null;\n    }\n    static create(value) {\n        if (this.tagName == null) {\n            throw new _error__WEBPACK_IMPORTED_MODULE_0__["default"](\'Blot definition missing tagName\');\n        }\n        let node;\n        if (Array.isArray(this.tagName)) {\n            if (typeof value === \'string\') {\n                value = value.toUpperCase();\n                if (parseInt(value, 10).toString() === value) {\n                    value = parseInt(value, 10);\n                }\n            }\n            if (typeof value === \'number\') {\n                node = document.createElement(this.tagName[value - 1]);\n            }\n            else if (this.tagName.indexOf(value) > -1) {\n                node = document.createElement(value);\n            }\n            else {\n                node = document.createElement(this.tagName[0]);\n            }\n        }\n        else {\n            node = document.createElement(this.tagName);\n        }\n        if (this.className) {\n            node.classList.add(this.className);\n        }\n        return node;\n    }\n    // Hack for accessing inherited static methods\n    get statics() {\n        return this.constructor;\n    }\n    attach() {\n        // Nothing to do\n    }\n    clone() {\n        const domNode = this.domNode.cloneNode(false);\n        return this.scroll.create(domNode);\n    }\n    detach() {\n        if (this.parent != null) {\n            this.parent.removeChild(this);\n        }\n        _registry__WEBPACK_IMPORTED_MODULE_1__["default"].blots.delete(this.domNode);\n    }\n    deleteAt(index, length) {\n        const blot = this.isolate(index, length);\n        blot.remove();\n    }\n    formatAt(index, length, name, value) {\n        const blot = this.isolate(index, length);\n        if (this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].BLOT) != null && value) {\n            blot.wrap(name, value);\n        }\n        else if (this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].ATTRIBUTE) != null) {\n            const parent = this.scroll.create(this.statics.scope);\n            blot.wrap(parent);\n            parent.format(name, value);\n        }\n    }\n    insertAt(index, value, def) {\n        const blot = def == null\n            ? this.scroll.create(\'text\', value)\n            : this.scroll.create(value, def);\n        const ref = this.split(index);\n        this.parent.insertBefore(blot, ref || undefined);\n    }\n    isolate(index, length) {\n        const target = this.split(index);\n        if (target == null) {\n            throw new Error(\'Attempt to isolate at end\');\n        }\n        target.split(length);\n        return target;\n    }\n    length() {\n        return 1;\n    }\n    offset(root = this.parent) {\n        if (this.parent == null || this === root) {\n            return 0;\n        }\n        return this.parent.children.offset(this) + this.parent.offset(root);\n    }\n    optimize(_context) {\n        if (this.statics.requiredContainer &&\n            !(this.parent instanceof this.statics.requiredContainer)) {\n            this.wrap(this.statics.requiredContainer.blotName);\n        }\n    }\n    remove() {\n        if (this.domNode.parentNode != null) {\n            this.domNode.parentNode.removeChild(this.domNode);\n        }\n        this.detach();\n    }\n    replaceWith(name, value) {\n        const replacement = typeof name === \'string\' ? this.scroll.create(name, value) : name;\n        if (this.parent != null) {\n            this.parent.insertBefore(replacement, this.next || undefined);\n            this.remove();\n        }\n        return replacement;\n    }\n    split(index, _force) {\n        return index === 0 ? this : this.next;\n    }\n    update(_mutations, _context) {\n        // Nothing to do by default\n    }\n    wrap(name, value) {\n        const wrapper = typeof name === \'string\'\n            ? this.scroll.create(name, value)\n            : name;\n        if (this.parent != null) {\n            this.parent.insertBefore(wrapper, this.next || undefined);\n        }\n        if (typeof wrapper.appendChild !== \'function\') {\n            throw new _error__WEBPACK_IMPORTED_MODULE_0__["default"](`Cannot wrap ${name}`);\n        }\n        wrapper.appendChild(this);\n        return wrapper;\n    }\n}\nShadowBlot.blotName = \'abstract\';\n/* harmony default export */ __webpack_exports__["default"] = (ShadowBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/abstract/shadow.ts?')},"./node_modules/parchment/src/blot/block.ts":
/*!**************************************************!*\
  !*** ./node_modules/parchment/src/blot/block.ts ***!
  \**************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _attributor_attributor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../attributor/attributor */ "./node_modules/parchment/src/attributor/attributor.ts");\n/* harmony import */ var _attributor_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../attributor/store */ "./node_modules/parchment/src/attributor/store.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _abstract_leaf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./abstract/leaf */ "./node_modules/parchment/src/blot/abstract/leaf.ts");\n/* harmony import */ var _abstract_parent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./abstract/parent */ "./node_modules/parchment/src/blot/abstract/parent.ts");\n/* harmony import */ var _inline__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./inline */ "./node_modules/parchment/src/blot/inline.ts");\n\n\n\n\n\n\nclass BlockBlot extends _abstract_parent__WEBPACK_IMPORTED_MODULE_4__["default"] {\n    constructor(scroll, domNode) {\n        super(scroll, domNode);\n        this.attributes = new _attributor_store__WEBPACK_IMPORTED_MODULE_1__["default"](this.domNode);\n    }\n    static formats(domNode, scroll) {\n        const match = scroll.query(BlockBlot.blotName);\n        if (match != null &&\n            domNode.tagName === match.tagName) {\n            return undefined;\n        }\n        else if (typeof this.tagName === \'string\') {\n            return true;\n        }\n        else if (Array.isArray(this.tagName)) {\n            return domNode.tagName.toLowerCase();\n        }\n    }\n    format(name, value) {\n        const format = this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].BLOCK);\n        if (format == null) {\n            return;\n        }\n        else if (format instanceof _attributor_attributor__WEBPACK_IMPORTED_MODULE_0__["default"]) {\n            this.attributes.attribute(format, value);\n        }\n        else if (name === this.statics.blotName && !value) {\n            this.replaceWith(BlockBlot.blotName);\n        }\n        else if (value &&\n            (name !== this.statics.blotName || this.formats()[name] !== value)) {\n            this.replaceWith(name, value);\n        }\n    }\n    formats() {\n        const formats = this.attributes.values();\n        const format = this.statics.formats(this.domNode, this.scroll);\n        if (format != null) {\n            formats[this.statics.blotName] = format;\n        }\n        return formats;\n    }\n    formatAt(index, length, name, value) {\n        if (this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].BLOCK) != null) {\n            this.format(name, value);\n        }\n        else {\n            super.formatAt(index, length, name, value);\n        }\n    }\n    insertAt(index, value, def) {\n        if (def == null || this.scroll.query(value, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].INLINE) != null) {\n            // Insert text or inline\n            super.insertAt(index, value, def);\n        }\n        else {\n            const after = this.split(index);\n            if (after != null) {\n                const blot = this.scroll.create(value, def);\n                after.parent.insertBefore(blot, after);\n            }\n            else {\n                throw new Error(\'Attempt to insertAt after block boundaries\');\n            }\n        }\n    }\n    replaceWith(name, value) {\n        const replacement = super.replaceWith(name, value);\n        this.attributes.copy(replacement);\n        return replacement;\n    }\n    update(mutations, context) {\n        super.update(mutations, context);\n        const attributeChanged = mutations.some((mutation) => mutation.target === this.domNode && mutation.type === \'attributes\');\n        if (attributeChanged) {\n            this.attributes.build();\n        }\n    }\n}\nBlockBlot.blotName = \'block\';\nBlockBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_2__["default"].BLOCK_BLOT;\nBlockBlot.tagName = \'P\';\nBlockBlot.allowedChildren = [\n    _inline__WEBPACK_IMPORTED_MODULE_5__["default"],\n    BlockBlot,\n    _abstract_leaf__WEBPACK_IMPORTED_MODULE_3__["default"],\n];\n/* harmony default export */ __webpack_exports__["default"] = (BlockBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/block.ts?')},"./node_modules/parchment/src/blot/embed.ts":
/*!**************************************************!*\
  !*** ./node_modules/parchment/src/blot/embed.ts ***!
  \**************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _abstract_leaf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./abstract/leaf */ "./node_modules/parchment/src/blot/abstract/leaf.ts");\n\nclass EmbedBlot extends _abstract_leaf__WEBPACK_IMPORTED_MODULE_0__["default"] {\n    static formats(_domNode, _scroll) {\n        return undefined;\n    }\n    format(name, value) {\n        // super.formatAt wraps, which is what we want in general,\n        // but this allows subclasses to overwrite for formats\n        // that just apply to particular embeds\n        super.formatAt(0, this.length(), name, value);\n    }\n    formatAt(index, length, name, value) {\n        if (index === 0 && length === this.length()) {\n            this.format(name, value);\n        }\n        else {\n            super.formatAt(index, length, name, value);\n        }\n    }\n    formats() {\n        return this.statics.formats(this.domNode, this.scroll);\n    }\n}\n/* harmony default export */ __webpack_exports__["default"] = (EmbedBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/embed.ts?')},"./node_modules/parchment/src/blot/inline.ts":
/*!***************************************************!*\
  !*** ./node_modules/parchment/src/blot/inline.ts ***!
  \***************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _attributor_attributor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../attributor/attributor */ "./node_modules/parchment/src/attributor/attributor.ts");\n/* harmony import */ var _attributor_store__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../attributor/store */ "./node_modules/parchment/src/attributor/store.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _abstract_leaf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./abstract/leaf */ "./node_modules/parchment/src/blot/abstract/leaf.ts");\n/* harmony import */ var _abstract_parent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./abstract/parent */ "./node_modules/parchment/src/blot/abstract/parent.ts");\n\n\n\n\n\n// Shallow object comparison\nfunction isEqual(obj1, obj2) {\n    if (Object.keys(obj1).length !== Object.keys(obj2).length) {\n        return false;\n    }\n    // @ts-ignore\n    for (const prop in obj1) {\n        // @ts-ignore\n        if (obj1[prop] !== obj2[prop]) {\n            return false;\n        }\n    }\n    return true;\n}\nclass InlineBlot extends _abstract_parent__WEBPACK_IMPORTED_MODULE_4__["default"] {\n    constructor(scroll, domNode) {\n        super(scroll, domNode);\n        this.attributes = new _attributor_store__WEBPACK_IMPORTED_MODULE_1__["default"](this.domNode);\n    }\n    static formats(domNode, scroll) {\n        const match = scroll.query(InlineBlot.blotName);\n        if (match != null &&\n            domNode.tagName === match.tagName) {\n            return undefined;\n        }\n        else if (typeof this.tagName === \'string\') {\n            return true;\n        }\n        else if (Array.isArray(this.tagName)) {\n            return domNode.tagName.toLowerCase();\n        }\n        return undefined;\n    }\n    format(name, value) {\n        if (name === this.statics.blotName && !value) {\n            this.children.forEach((child) => {\n                if (!(child instanceof InlineBlot)) {\n                    child = child.wrap(InlineBlot.blotName, true);\n                }\n                this.attributes.copy(child);\n            });\n            this.unwrap();\n        }\n        else {\n            const format = this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].INLINE);\n            if (format == null) {\n                return;\n            }\n            if (format instanceof _attributor_attributor__WEBPACK_IMPORTED_MODULE_0__["default"]) {\n                this.attributes.attribute(format, value);\n            }\n            else if (value &&\n                (name !== this.statics.blotName || this.formats()[name] !== value)) {\n                this.replaceWith(name, value);\n            }\n        }\n    }\n    formats() {\n        const formats = this.attributes.values();\n        const format = this.statics.formats(this.domNode, this.scroll);\n        if (format != null) {\n            formats[this.statics.blotName] = format;\n        }\n        return formats;\n    }\n    formatAt(index, length, name, value) {\n        if (this.formats()[name] != null ||\n            this.scroll.query(name, _scope__WEBPACK_IMPORTED_MODULE_2__["default"].ATTRIBUTE)) {\n            const blot = this.isolate(index, length);\n            blot.format(name, value);\n        }\n        else {\n            super.formatAt(index, length, name, value);\n        }\n    }\n    optimize(context) {\n        super.optimize(context);\n        const formats = this.formats();\n        if (Object.keys(formats).length === 0) {\n            return this.unwrap(); // unformatted span\n        }\n        const next = this.next;\n        if (next instanceof InlineBlot &&\n            next.prev === this &&\n            isEqual(formats, next.formats())) {\n            next.moveChildren(this);\n            next.remove();\n        }\n    }\n    replaceWith(name, value) {\n        const replacement = super.replaceWith(name, value);\n        this.attributes.copy(replacement);\n        return replacement;\n    }\n    update(mutations, context) {\n        super.update(mutations, context);\n        const attributeChanged = mutations.some((mutation) => mutation.target === this.domNode && mutation.type === \'attributes\');\n        if (attributeChanged) {\n            this.attributes.build();\n        }\n    }\n    wrap(name, value) {\n        const wrapper = super.wrap(name, value);\n        if (wrapper instanceof InlineBlot) {\n            this.attributes.move(wrapper);\n        }\n        return wrapper;\n    }\n}\nInlineBlot.allowedChildren = [InlineBlot, _abstract_leaf__WEBPACK_IMPORTED_MODULE_3__["default"]];\nInlineBlot.blotName = \'inline\';\nInlineBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_2__["default"].INLINE_BLOT;\nInlineBlot.tagName = \'SPAN\';\n/* harmony default export */ __webpack_exports__["default"] = (InlineBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/inline.ts?')},"./node_modules/parchment/src/blot/scroll.ts":
/*!***************************************************!*\
  !*** ./node_modules/parchment/src/blot/scroll.ts ***!
  \***************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../registry */ "./node_modules/parchment/src/registry.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _abstract_container__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./abstract/container */ "./node_modules/parchment/src/blot/abstract/container.ts");\n/* harmony import */ var _abstract_parent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./abstract/parent */ "./node_modules/parchment/src/blot/abstract/parent.ts");\n/* harmony import */ var _block__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./block */ "./node_modules/parchment/src/blot/block.ts");\n\n\n\n\n\nconst OBSERVER_CONFIG = {\n    attributes: true,\n    characterData: true,\n    characterDataOldValue: true,\n    childList: true,\n    subtree: true,\n};\nconst MAX_OPTIMIZE_ITERATIONS = 100;\nclass ScrollBlot extends _abstract_parent__WEBPACK_IMPORTED_MODULE_3__["default"] {\n    constructor(registry, node) {\n        // @ts-ignore\n        super(null, node);\n        this.registry = registry;\n        this.scroll = this;\n        this.build();\n        this.observer = new MutationObserver((mutations) => {\n            this.update(mutations);\n        });\n        this.observer.observe(this.domNode, OBSERVER_CONFIG);\n        this.attach();\n    }\n    create(input, value) {\n        return this.registry.create(this, input, value);\n    }\n    find(node, bubble = false) {\n        return this.registry.find(node, bubble);\n    }\n    query(query, scope = _scope__WEBPACK_IMPORTED_MODULE_1__["default"].ANY) {\n        return this.registry.query(query, scope);\n    }\n    register(...definitions) {\n        return this.registry.register(...definitions);\n    }\n    build() {\n        if (this.scroll == null) {\n            return;\n        }\n        super.build();\n    }\n    detach() {\n        super.detach();\n        this.observer.disconnect();\n    }\n    deleteAt(index, length) {\n        this.update();\n        if (index === 0 && length === this.length()) {\n            this.children.forEach((child) => {\n                child.remove();\n            });\n        }\n        else {\n            super.deleteAt(index, length);\n        }\n    }\n    formatAt(index, length, name, value) {\n        this.update();\n        super.formatAt(index, length, name, value);\n    }\n    insertAt(index, value, def) {\n        this.update();\n        super.insertAt(index, value, def);\n    }\n    optimize(mutations = [], context = {}) {\n        super.optimize(context);\n        const mutationsMap = context.mutationsMap || new WeakMap();\n        // We must modify mutations directly, cannot make copy and then modify\n        let records = Array.from(this.observer.takeRecords());\n        // Array.push currently seems to be implemented by a non-tail recursive function\n        // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());\n        while (records.length > 0) {\n            mutations.push(records.pop());\n        }\n        const mark = (blot, markParent = true) => {\n            if (blot == null || blot === this) {\n                return;\n            }\n            if (blot.domNode.parentNode == null) {\n                return;\n            }\n            if (!mutationsMap.has(blot.domNode)) {\n                mutationsMap.set(blot.domNode, []);\n            }\n            if (markParent) {\n                mark(blot.parent);\n            }\n        };\n        const optimize = (blot) => {\n            // Post-order traversal\n            if (!mutationsMap.has(blot.domNode)) {\n                return;\n            }\n            if (blot instanceof _abstract_parent__WEBPACK_IMPORTED_MODULE_3__["default"]) {\n                blot.children.forEach(optimize);\n            }\n            mutationsMap.delete(blot.domNode);\n            blot.optimize(context);\n        };\n        let remaining = mutations;\n        for (let i = 0; remaining.length > 0; i += 1) {\n            if (i >= MAX_OPTIMIZE_ITERATIONS) {\n                throw new Error(\'[Parchment] Maximum optimize iterations reached\');\n            }\n            remaining.forEach((mutation) => {\n                const blot = this.find(mutation.target, true);\n                if (blot == null) {\n                    return;\n                }\n                if (blot.domNode === mutation.target) {\n                    if (mutation.type === \'childList\') {\n                        mark(this.find(mutation.previousSibling, false));\n                        Array.from(mutation.addedNodes).forEach((node) => {\n                            const child = this.find(node, false);\n                            mark(child, false);\n                            if (child instanceof _abstract_parent__WEBPACK_IMPORTED_MODULE_3__["default"]) {\n                                child.children.forEach((grandChild) => {\n                                    mark(grandChild, false);\n                                });\n                            }\n                        });\n                    }\n                    else if (mutation.type === \'attributes\') {\n                        mark(blot.prev);\n                    }\n                }\n                mark(blot);\n            });\n            this.children.forEach(optimize);\n            remaining = Array.from(this.observer.takeRecords());\n            records = remaining.slice();\n            while (records.length > 0) {\n                mutations.push(records.pop());\n            }\n        }\n    }\n    update(mutations, context = {}) {\n        mutations = mutations || this.observer.takeRecords();\n        const mutationsMap = new WeakMap();\n        mutations\n            .map((mutation) => {\n            const blot = _registry__WEBPACK_IMPORTED_MODULE_0__["default"].find(mutation.target, true);\n            if (blot == null) {\n                return null;\n            }\n            if (mutationsMap.has(blot.domNode)) {\n                mutationsMap.get(blot.domNode).push(mutation);\n                return null;\n            }\n            else {\n                mutationsMap.set(blot.domNode, [mutation]);\n                return blot;\n            }\n        })\n            .forEach((blot) => {\n            if (blot != null && blot !== this && mutationsMap.has(blot.domNode)) {\n                blot.update(mutationsMap.get(blot.domNode) || [], context);\n            }\n        });\n        context.mutationsMap = mutationsMap;\n        if (mutationsMap.has(this.domNode)) {\n            super.update(mutationsMap.get(this.domNode), context);\n        }\n        this.optimize(mutations, context);\n    }\n}\nScrollBlot.blotName = \'scroll\';\nScrollBlot.defaultChild = _block__WEBPACK_IMPORTED_MODULE_4__["default"];\nScrollBlot.allowedChildren = [_block__WEBPACK_IMPORTED_MODULE_4__["default"], _abstract_container__WEBPACK_IMPORTED_MODULE_2__["default"]];\nScrollBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_1__["default"].BLOCK_BLOT;\nScrollBlot.tagName = \'DIV\';\n/* harmony default export */ __webpack_exports__["default"] = (ScrollBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/scroll.ts?')},"./node_modules/parchment/src/blot/text.ts":
/*!*************************************************!*\
  !*** ./node_modules/parchment/src/blot/text.ts ***!
  \*************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony import */ var _abstract_leaf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./abstract/leaf */ "./node_modules/parchment/src/blot/abstract/leaf.ts");\n\n\nclass TextBlot extends _abstract_leaf__WEBPACK_IMPORTED_MODULE_1__["default"] {\n    constructor(scroll, node) {\n        super(scroll, node);\n        this.text = this.statics.value(this.domNode);\n    }\n    static create(value) {\n        return document.createTextNode(value);\n    }\n    static value(domNode) {\n        return domNode.data;\n    }\n    deleteAt(index, length) {\n        this.domNode.data = this.text =\n            this.text.slice(0, index) + this.text.slice(index + length);\n    }\n    index(node, offset) {\n        if (this.domNode === node) {\n            return offset;\n        }\n        return -1;\n    }\n    insertAt(index, value, def) {\n        if (def == null) {\n            this.text = this.text.slice(0, index) + value + this.text.slice(index);\n            this.domNode.data = this.text;\n        }\n        else {\n            super.insertAt(index, value, def);\n        }\n    }\n    length() {\n        return this.text.length;\n    }\n    optimize(context) {\n        super.optimize(context);\n        this.text = this.statics.value(this.domNode);\n        if (this.text.length === 0) {\n            this.remove();\n        }\n        else if (this.next instanceof TextBlot && this.next.prev === this) {\n            this.insertAt(this.length(), this.next.value());\n            this.next.remove();\n        }\n    }\n    position(index, _inclusive = false) {\n        return [this.domNode, index];\n    }\n    split(index, force = false) {\n        if (!force) {\n            if (index === 0) {\n                return this;\n            }\n            if (index === this.length()) {\n                return this.next;\n            }\n        }\n        const after = this.scroll.create(this.domNode.splitText(index));\n        this.parent.insertBefore(after, this.next || undefined);\n        this.text = this.statics.value(this.domNode);\n        return after;\n    }\n    update(mutations, _context) {\n        if (mutations.some((mutation) => {\n            return (mutation.type === \'characterData\' && mutation.target === this.domNode);\n        })) {\n            this.text = this.statics.value(this.domNode);\n        }\n    }\n    value() {\n        return this.text;\n    }\n}\nTextBlot.blotName = \'text\';\nTextBlot.scope = _scope__WEBPACK_IMPORTED_MODULE_0__["default"].INLINE_BLOT;\n/* harmony default export */ __webpack_exports__["default"] = (TextBlot);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/blot/text.ts?')},"./node_modules/parchment/src/collection/linked-list.ts":
/*!**************************************************************!*\
  !*** ./node_modules/parchment/src/collection/linked-list.ts ***!
  \**************************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\nclass LinkedList {\n    constructor() {\n        this.head = null;\n        this.tail = null;\n        this.length = 0;\n    }\n    append(...nodes) {\n        this.insertBefore(nodes[0], null);\n        if (nodes.length > 1) {\n            const rest = nodes.slice(1);\n            this.append(...rest);\n        }\n    }\n    at(index) {\n        const next = this.iterator();\n        let cur = next();\n        while (cur && index > 0) {\n            index -= 1;\n            cur = next();\n        }\n        return cur;\n    }\n    contains(node) {\n        const next = this.iterator();\n        let cur = next();\n        while (cur) {\n            if (cur === node) {\n                return true;\n            }\n            cur = next();\n        }\n        return false;\n    }\n    indexOf(node) {\n        const next = this.iterator();\n        let cur = next();\n        let index = 0;\n        while (cur) {\n            if (cur === node) {\n                return index;\n            }\n            index += 1;\n            cur = next();\n        }\n        return -1;\n    }\n    insertBefore(node, refNode) {\n        if (node == null) {\n            return;\n        }\n        this.remove(node);\n        node.next = refNode;\n        if (refNode != null) {\n            node.prev = refNode.prev;\n            if (refNode.prev != null) {\n                refNode.prev.next = node;\n            }\n            refNode.prev = node;\n            if (refNode === this.head) {\n                this.head = node;\n            }\n        }\n        else if (this.tail != null) {\n            this.tail.next = node;\n            node.prev = this.tail;\n            this.tail = node;\n        }\n        else {\n            node.prev = null;\n            this.head = this.tail = node;\n        }\n        this.length += 1;\n    }\n    offset(target) {\n        let index = 0;\n        let cur = this.head;\n        while (cur != null) {\n            if (cur === target) {\n                return index;\n            }\n            index += cur.length();\n            cur = cur.next;\n        }\n        return -1;\n    }\n    remove(node) {\n        if (!this.contains(node)) {\n            return;\n        }\n        if (node.prev != null) {\n            node.prev.next = node.next;\n        }\n        if (node.next != null) {\n            node.next.prev = node.prev;\n        }\n        if (node === this.head) {\n            this.head = node.next;\n        }\n        if (node === this.tail) {\n            this.tail = node.prev;\n        }\n        this.length -= 1;\n    }\n    iterator(curNode = this.head) {\n        // TODO use yield when we can\n        return () => {\n            const ret = curNode;\n            if (curNode != null) {\n                curNode = curNode.next;\n            }\n            return ret;\n        };\n    }\n    find(index, inclusive = false) {\n        const next = this.iterator();\n        let cur = next();\n        while (cur) {\n            const length = cur.length();\n            if (index < length ||\n                (inclusive &&\n                    index === length &&\n                    (cur.next == null || cur.next.length() !== 0))) {\n                return [cur, index];\n            }\n            index -= length;\n            cur = next();\n        }\n        return [null, 0];\n    }\n    forEach(callback) {\n        const next = this.iterator();\n        let cur = next();\n        while (cur) {\n            callback(cur);\n            cur = next();\n        }\n    }\n    forEachAt(index, length, callback) {\n        if (length <= 0) {\n            return;\n        }\n        const [startNode, offset] = this.find(index);\n        let curIndex = index - offset;\n        const next = this.iterator(startNode);\n        let cur = next();\n        while (cur && curIndex < index + length) {\n            const curLength = cur.length();\n            if (index > curIndex) {\n                callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));\n            }\n            else {\n                callback(cur, 0, Math.min(curLength, index + length - curIndex));\n            }\n            curIndex += curLength;\n            cur = next();\n        }\n    }\n    map(callback) {\n        return this.reduce((memo, cur) => {\n            memo.push(callback(cur));\n            return memo;\n        }, []);\n    }\n    reduce(callback, memo) {\n        const next = this.iterator();\n        let cur = next();\n        while (cur) {\n            memo = callback(memo, cur);\n            cur = next();\n        }\n        return memo;\n    }\n}\n/* harmony default export */ __webpack_exports__["default"] = (LinkedList);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/collection/linked-list.ts?')},"./node_modules/parchment/src/error.ts":
/*!*********************************************!*\
  !*** ./node_modules/parchment/src/error.ts ***!
  \*********************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ParchmentError; });\nclass ParchmentError extends Error {\n    constructor(message) {\n        message = '[Parchment] ' + message;\n        super(message);\n        this.message = message;\n        this.name = this.constructor.name;\n    }\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/error.ts?")},"./node_modules/parchment/src/parchment.ts":
/*!*************************************************!*\
  !*** ./node_modules/parchment/src/parchment.ts ***!
  \*************************************************/
/*! exports provided: ParentBlot, ContainerBlot, LeafBlot, EmbedBlot, ScrollBlot, BlockBlot, InlineBlot, TextBlot, Attributor, ClassAttributor, StyleAttributor, AttributorStore, Registry, Scope */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _blot_abstract_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./blot/abstract/container */ "./node_modules/parchment/src/blot/abstract/container.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ContainerBlot", function() { return _blot_abstract_container__WEBPACK_IMPORTED_MODULE_0__["default"]; });\n\n/* harmony import */ var _blot_abstract_leaf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./blot/abstract/leaf */ "./node_modules/parchment/src/blot/abstract/leaf.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LeafBlot", function() { return _blot_abstract_leaf__WEBPACK_IMPORTED_MODULE_1__["default"]; });\n\n/* harmony import */ var _blot_abstract_parent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./blot/abstract/parent */ "./node_modules/parchment/src/blot/abstract/parent.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ParentBlot", function() { return _blot_abstract_parent__WEBPACK_IMPORTED_MODULE_2__["default"]; });\n\n/* harmony import */ var _blot_block__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./blot/block */ "./node_modules/parchment/src/blot/block.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BlockBlot", function() { return _blot_block__WEBPACK_IMPORTED_MODULE_3__["default"]; });\n\n/* harmony import */ var _blot_embed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./blot/embed */ "./node_modules/parchment/src/blot/embed.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmbedBlot", function() { return _blot_embed__WEBPACK_IMPORTED_MODULE_4__["default"]; });\n\n/* harmony import */ var _blot_inline__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./blot/inline */ "./node_modules/parchment/src/blot/inline.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InlineBlot", function() { return _blot_inline__WEBPACK_IMPORTED_MODULE_5__["default"]; });\n\n/* harmony import */ var _blot_scroll__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./blot/scroll */ "./node_modules/parchment/src/blot/scroll.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ScrollBlot", function() { return _blot_scroll__WEBPACK_IMPORTED_MODULE_6__["default"]; });\n\n/* harmony import */ var _blot_text__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./blot/text */ "./node_modules/parchment/src/blot/text.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TextBlot", function() { return _blot_text__WEBPACK_IMPORTED_MODULE_7__["default"]; });\n\n/* harmony import */ var _attributor_attributor__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attributor/attributor */ "./node_modules/parchment/src/attributor/attributor.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Attributor", function() { return _attributor_attributor__WEBPACK_IMPORTED_MODULE_8__["default"]; });\n\n/* harmony import */ var _attributor_class__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./attributor/class */ "./node_modules/parchment/src/attributor/class.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ClassAttributor", function() { return _attributor_class__WEBPACK_IMPORTED_MODULE_9__["default"]; });\n\n/* harmony import */ var _attributor_store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./attributor/store */ "./node_modules/parchment/src/attributor/store.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AttributorStore", function() { return _attributor_store__WEBPACK_IMPORTED_MODULE_10__["default"]; });\n\n/* harmony import */ var _attributor_style__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./attributor/style */ "./node_modules/parchment/src/attributor/style.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StyleAttributor", function() { return _attributor_style__WEBPACK_IMPORTED_MODULE_11__["default"]; });\n\n/* harmony import */ var _registry__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./registry */ "./node_modules/parchment/src/registry.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Registry", function() { return _registry__WEBPACK_IMPORTED_MODULE_12__["default"]; });\n\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scope */ "./node_modules/parchment/src/scope.ts");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scope", function() { return _scope__WEBPACK_IMPORTED_MODULE_13__["default"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/parchment.ts?')},"./node_modules/parchment/src/registry.ts":
/*!************************************************!*\
  !*** ./node_modules/parchment/src/registry.ts ***!
  \************************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Registry; });\n/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./error */ "./node_modules/parchment/src/error.ts");\n/* harmony import */ var _scope__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scope */ "./node_modules/parchment/src/scope.ts");\n\n\nclass Registry {\n    constructor() {\n        this.attributes = {};\n        this.classes = {};\n        this.tags = {};\n        this.types = {};\n    }\n    static find(node, bubble = false) {\n        if (node == null) {\n            return null;\n        }\n        if (this.blots.has(node)) {\n            return this.blots.get(node) || null;\n        }\n        if (bubble) {\n            return this.find(node.parentNode, bubble);\n        }\n        return null;\n    }\n    create(scroll, input, value) {\n        const match = this.query(input);\n        if (match == null) {\n            throw new _error__WEBPACK_IMPORTED_MODULE_0__["default"](`Unable to create ${input} blot`);\n        }\n        const blotClass = match;\n        const node = \n        // @ts-ignore\n        input instanceof Node || input.nodeType === Node.TEXT_NODE\n            ? input\n            : blotClass.create(value);\n        const blot = new blotClass(scroll, node, value);\n        Registry.blots.set(blot.domNode, blot);\n        return blot;\n    }\n    find(node, bubble = false) {\n        return Registry.find(node, bubble);\n    }\n    query(query, scope = _scope__WEBPACK_IMPORTED_MODULE_1__["default"].ANY) {\n        let match;\n        if (typeof query === \'string\') {\n            match = this.types[query] || this.attributes[query];\n            // @ts-ignore\n        }\n        else if (query instanceof Text || query.nodeType === Node.TEXT_NODE) {\n            match = this.types.text;\n        }\n        else if (typeof query === \'number\') {\n            if (query & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].LEVEL & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].BLOCK) {\n                match = this.types.block;\n            }\n            else if (query & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].LEVEL & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].INLINE) {\n                match = this.types.inline;\n            }\n        }\n        else if (query instanceof HTMLElement) {\n            const names = (query.getAttribute(\'class\') || \'\').split(/\\s+/);\n            names.some((name) => {\n                match = this.classes[name];\n                if (match) {\n                    return true;\n                }\n                return false;\n            });\n            match = match || this.tags[query.tagName];\n        }\n        if (match == null) {\n            return null;\n        }\n        // @ts-ignore\n        if (scope & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].LEVEL & match.scope && scope & _scope__WEBPACK_IMPORTED_MODULE_1__["default"].TYPE & match.scope) {\n            return match;\n        }\n        return null;\n    }\n    register(...definitions) {\n        if (definitions.length > 1) {\n            return definitions.map((d) => {\n                return this.register(d);\n            });\n        }\n        const definition = definitions[0];\n        if (typeof definition.blotName !== \'string\' &&\n            typeof definition.attrName !== \'string\') {\n            throw new _error__WEBPACK_IMPORTED_MODULE_0__["default"](\'Invalid definition\');\n        }\n        else if (definition.blotName === \'abstract\') {\n            throw new _error__WEBPACK_IMPORTED_MODULE_0__["default"](\'Cannot register abstract class\');\n        }\n        this.types[definition.blotName || definition.attrName] = definition;\n        if (typeof definition.keyName === \'string\') {\n            this.attributes[definition.keyName] = definition;\n        }\n        else {\n            if (definition.className != null) {\n                this.classes[definition.className] = definition;\n            }\n            if (definition.tagName != null) {\n                if (Array.isArray(definition.tagName)) {\n                    definition.tagName = definition.tagName.map((tagName) => {\n                        return tagName.toUpperCase();\n                    });\n                }\n                else {\n                    definition.tagName = definition.tagName.toUpperCase();\n                }\n                const tagNames = Array.isArray(definition.tagName)\n                    ? definition.tagName\n                    : [definition.tagName];\n                tagNames.forEach((tag) => {\n                    if (this.tags[tag] == null || definition.className == null) {\n                        this.tags[tag] = definition;\n                    }\n                });\n            }\n        }\n        return definition;\n    }\n}\nRegistry.blots = new WeakMap();\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/registry.ts?')},"./node_modules/parchment/src/scope.ts":
/*!*********************************************!*\
  !*** ./node_modules/parchment/src/scope.ts ***!
  \*********************************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\nvar Scope;\n(function (Scope) {\n    Scope[Scope["TYPE"] = 3] = "TYPE";\n    Scope[Scope["LEVEL"] = 12] = "LEVEL";\n    Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";\n    Scope[Scope["BLOT"] = 14] = "BLOT";\n    Scope[Scope["INLINE"] = 7] = "INLINE";\n    Scope[Scope["BLOCK"] = 11] = "BLOCK";\n    Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";\n    Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";\n    Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";\n    Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";\n    Scope[Scope["ANY"] = 15] = "ANY";\n})(Scope || (Scope = {}));\n/* harmony default export */ __webpack_exports__["default"] = (Scope);\n\n\n//# sourceURL=webpack://Quill/./node_modules/parchment/src/scope.ts?')},"./node_modules/process/browser.js":
/*!*****************************************!*\
  !*** ./node_modules/process/browser.js ***!
  \*****************************************/
/*! no static exports found */function(module,exports){eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n    throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n    throw new Error('clearTimeout has not been defined');\n}\n(function () {\n    try {\n        if (typeof setTimeout === 'function') {\n            cachedSetTimeout = setTimeout;\n        } else {\n            cachedSetTimeout = defaultSetTimout;\n        }\n    } catch (e) {\n        cachedSetTimeout = defaultSetTimout;\n    }\n    try {\n        if (typeof clearTimeout === 'function') {\n            cachedClearTimeout = clearTimeout;\n        } else {\n            cachedClearTimeout = defaultClearTimeout;\n        }\n    } catch (e) {\n        cachedClearTimeout = defaultClearTimeout;\n    }\n} ())\nfunction runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n        //normal enviroments in sane situations\n        return setTimeout(fun, 0);\n    }\n    // if setTimeout wasn't available but was latter defined\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n        cachedSetTimeout = setTimeout;\n        return setTimeout(fun, 0);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedSetTimeout(fun, 0);\n    } catch(e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n            return cachedSetTimeout.call(null, fun, 0);\n        } catch(e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n            return cachedSetTimeout.call(this, fun, 0);\n        }\n    }\n\n\n}\nfunction runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n        //normal enviroments in sane situations\n        return clearTimeout(marker);\n    }\n    // if clearTimeout wasn't available but was latter defined\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n        cachedClearTimeout = clearTimeout;\n        return clearTimeout(marker);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedClearTimeout(marker);\n    } catch (e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n            return cachedClearTimeout.call(null, marker);\n        } catch (e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n            return cachedClearTimeout.call(this, marker);\n        }\n    }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n        return;\n    }\n    draining = false;\n    if (currentQueue.length) {\n        queue = currentQueue.concat(queue);\n    } else {\n        queueIndex = -1;\n    }\n    if (queue.length) {\n        drainQueue();\n    }\n}\n\nfunction drainQueue() {\n    if (draining) {\n        return;\n    }\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n\n    var len = queue.length;\n    while(len) {\n        currentQueue = queue;\n        queue = [];\n        while (++queueIndex < len) {\n            if (currentQueue) {\n                currentQueue[queueIndex].run();\n            }\n        }\n        queueIndex = -1;\n        len = queue.length;\n    }\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n    var args = new Array(arguments.length - 1);\n    if (arguments.length > 1) {\n        for (var i = 1; i < arguments.length; i++) {\n            args[i - 1] = arguments[i];\n        }\n    }\n    queue.push(new Item(fun, args));\n    if (queue.length === 1 && !draining) {\n        runTimeout(drainQueue);\n    }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n    this.fun = fun;\n    this.array = array;\n}\nItem.prototype.run = function () {\n    this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n    throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n    throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack://Quill/./node_modules/process/browser.js?")},"./node_modules/quill-delta/dist/AttributeMap.js":
/*!*******************************************************!*\
  !*** ./node_modules/quill-delta/dist/AttributeMap.js ***!
  \*******************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar deep_equal_1 = __importDefault(__webpack_require__(/*! deep-equal */ \"./node_modules/quill-delta/node_modules/deep-equal/index.js\"));\nvar extend_1 = __importDefault(__webpack_require__(/*! extend */ \"./node_modules/extend/index.js\"));\nvar AttributeMap;\n(function (AttributeMap) {\n    function compose(a, b, keepNull) {\n        if (a === void 0) { a = {}; }\n        if (b === void 0) { b = {}; }\n        if (typeof a !== 'object') {\n            a = {};\n        }\n        if (typeof b !== 'object') {\n            b = {};\n        }\n        var attributes = extend_1.default(true, {}, b);\n        if (!keepNull) {\n            attributes = Object.keys(attributes).reduce(function (copy, key) {\n                if (attributes[key] != null) {\n                    copy[key] = attributes[key];\n                }\n                return copy;\n            }, {});\n        }\n        for (var key in a) {\n            if (a[key] !== undefined && b[key] === undefined) {\n                attributes[key] = a[key];\n            }\n        }\n        return Object.keys(attributes).length > 0 ? attributes : undefined;\n    }\n    AttributeMap.compose = compose;\n    function diff(a, b) {\n        if (a === void 0) { a = {}; }\n        if (b === void 0) { b = {}; }\n        if (typeof a !== 'object') {\n            a = {};\n        }\n        if (typeof b !== 'object') {\n            b = {};\n        }\n        var attributes = Object.keys(a)\n            .concat(Object.keys(b))\n            .reduce(function (attrs, key) {\n            if (!deep_equal_1.default(a[key], b[key])) {\n                attrs[key] = b[key] === undefined ? null : b[key];\n            }\n            return attrs;\n        }, {});\n        return Object.keys(attributes).length > 0 ? attributes : undefined;\n    }\n    AttributeMap.diff = diff;\n    function invert(attr, base) {\n        if (attr === void 0) { attr = {}; }\n        if (base === void 0) { base = {}; }\n        attr = attr || {};\n        var baseInverted = Object.keys(base).reduce(function (memo, key) {\n            if (base[key] !== attr[key] && attr[key] !== undefined) {\n                memo[key] = base[key];\n            }\n            return memo;\n        }, {});\n        return Object.keys(attr).reduce(function (memo, key) {\n            if (attr[key] !== base[key] && base[key] === undefined) {\n                memo[key] = null;\n            }\n            return memo;\n        }, baseInverted);\n    }\n    AttributeMap.invert = invert;\n    function transform(a, b, priority) {\n        if (priority === void 0) { priority = false; }\n        if (typeof a !== 'object') {\n            return b;\n        }\n        if (typeof b !== 'object') {\n            return undefined;\n        }\n        if (!priority) {\n            return b; // b simply overwrites us without priority\n        }\n        var attributes = Object.keys(b).reduce(function (attrs, key) {\n            if (a[key] === undefined) {\n                attrs[key] = b[key]; // null is a valid value\n            }\n            return attrs;\n        }, {});\n        return Object.keys(attributes).length > 0 ? attributes : undefined;\n    }\n    AttributeMap.transform = transform;\n})(AttributeMap || (AttributeMap = {}));\nexports.default = AttributeMap;\n//# sourceMappingURL=AttributeMap.js.map\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/dist/AttributeMap.js?")},"./node_modules/quill-delta/dist/Delta.js":
/*!************************************************!*\
  !*** ./node_modules/quill-delta/dist/Delta.js ***!
  \************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar deep_equal_1 = __importDefault(__webpack_require__(/*! deep-equal */ \"./node_modules/quill-delta/node_modules/deep-equal/index.js\"));\nvar extend_1 = __importDefault(__webpack_require__(/*! extend */ \"./node_modules/extend/index.js\"));\nvar fast_diff_1 = __importDefault(__webpack_require__(/*! fast-diff */ \"./node_modules/fast-diff/diff.js\"));\nvar AttributeMap_1 = __importDefault(__webpack_require__(/*! ./AttributeMap */ \"./node_modules/quill-delta/dist/AttributeMap.js\"));\nvar Op_1 = __importDefault(__webpack_require__(/*! ./Op */ \"./node_modules/quill-delta/dist/Op.js\"));\nvar NULL_CHARACTER = String.fromCharCode(0); // Placeholder char for embed in diff()\nvar Delta = /** @class */ (function () {\n    function Delta(ops) {\n        // Assume we are given a well formed ops\n        if (Array.isArray(ops)) {\n            this.ops = ops;\n        }\n        else if (ops != null && Array.isArray(ops.ops)) {\n            this.ops = ops.ops;\n        }\n        else {\n            this.ops = [];\n        }\n    }\n    Delta.prototype.insert = function (arg, attributes) {\n        var newOp = {};\n        if (typeof arg === 'string' && arg.length === 0) {\n            return this;\n        }\n        newOp.insert = arg;\n        if (attributes != null &&\n            typeof attributes === 'object' &&\n            Object.keys(attributes).length > 0) {\n            newOp.attributes = attributes;\n        }\n        return this.push(newOp);\n    };\n    Delta.prototype.delete = function (length) {\n        if (length <= 0) {\n            return this;\n        }\n        return this.push({ delete: length });\n    };\n    Delta.prototype.retain = function (length, attributes) {\n        if (length <= 0) {\n            return this;\n        }\n        var newOp = { retain: length };\n        if (attributes != null &&\n            typeof attributes === 'object' &&\n            Object.keys(attributes).length > 0) {\n            newOp.attributes = attributes;\n        }\n        return this.push(newOp);\n    };\n    Delta.prototype.push = function (newOp) {\n        var index = this.ops.length;\n        var lastOp = this.ops[index - 1];\n        newOp = extend_1.default(true, {}, newOp);\n        if (typeof lastOp === 'object') {\n            if (typeof newOp.delete === 'number' &&\n                typeof lastOp.delete === 'number') {\n                this.ops[index - 1] = { delete: lastOp.delete + newOp.delete };\n                return this;\n            }\n            // Since it does not matter if we insert before or after deleting at the same index,\n            // always prefer to insert first\n            if (typeof lastOp.delete === 'number' && newOp.insert != null) {\n                index -= 1;\n                lastOp = this.ops[index - 1];\n                if (typeof lastOp !== 'object') {\n                    this.ops.unshift(newOp);\n                    return this;\n                }\n            }\n            if (deep_equal_1.default(newOp.attributes, lastOp.attributes)) {\n                if (typeof newOp.insert === 'string' &&\n                    typeof lastOp.insert === 'string') {\n                    this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };\n                    if (typeof newOp.attributes === 'object') {\n                        this.ops[index - 1].attributes = newOp.attributes;\n                    }\n                    return this;\n                }\n                else if (typeof newOp.retain === 'number' &&\n                    typeof lastOp.retain === 'number') {\n                    this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };\n                    if (typeof newOp.attributes === 'object') {\n                        this.ops[index - 1].attributes = newOp.attributes;\n                    }\n                    return this;\n                }\n            }\n        }\n        if (index === this.ops.length) {\n            this.ops.push(newOp);\n        }\n        else {\n            this.ops.splice(index, 0, newOp);\n        }\n        return this;\n    };\n    Delta.prototype.chop = function () {\n        var lastOp = this.ops[this.ops.length - 1];\n        if (lastOp && lastOp.retain && !lastOp.attributes) {\n            this.ops.pop();\n        }\n        return this;\n    };\n    Delta.prototype.filter = function (predicate) {\n        return this.ops.filter(predicate);\n    };\n    Delta.prototype.forEach = function (predicate) {\n        this.ops.forEach(predicate);\n    };\n    Delta.prototype.map = function (predicate) {\n        return this.ops.map(predicate);\n    };\n    Delta.prototype.partition = function (predicate) {\n        var passed = [];\n        var failed = [];\n        this.forEach(function (op) {\n            var target = predicate(op) ? passed : failed;\n            target.push(op);\n        });\n        return [passed, failed];\n    };\n    Delta.prototype.reduce = function (predicate, initialValue) {\n        return this.ops.reduce(predicate, initialValue);\n    };\n    Delta.prototype.changeLength = function () {\n        return this.reduce(function (length, elem) {\n            if (elem.insert) {\n                return length + Op_1.default.length(elem);\n            }\n            else if (elem.delete) {\n                return length - elem.delete;\n            }\n            return length;\n        }, 0);\n    };\n    Delta.prototype.length = function () {\n        return this.reduce(function (length, elem) {\n            return length + Op_1.default.length(elem);\n        }, 0);\n    };\n    Delta.prototype.slice = function (start, end) {\n        if (start === void 0) { start = 0; }\n        if (end === void 0) { end = Infinity; }\n        var ops = [];\n        var iter = Op_1.default.iterator(this.ops);\n        var index = 0;\n        while (index < end && iter.hasNext()) {\n            var nextOp = void 0;\n            if (index < start) {\n                nextOp = iter.next(start - index);\n            }\n            else {\n                nextOp = iter.next(end - index);\n                ops.push(nextOp);\n            }\n            index += Op_1.default.length(nextOp);\n        }\n        return new Delta(ops);\n    };\n    Delta.prototype.compose = function (other) {\n        var thisIter = Op_1.default.iterator(this.ops);\n        var otherIter = Op_1.default.iterator(other.ops);\n        var ops = [];\n        var firstOther = otherIter.peek();\n        if (firstOther != null &&\n            typeof firstOther.retain === 'number' &&\n            firstOther.attributes == null) {\n            var firstLeft = firstOther.retain;\n            while (thisIter.peekType() === 'insert' &&\n                thisIter.peekLength() <= firstLeft) {\n                firstLeft -= thisIter.peekLength();\n                ops.push(thisIter.next());\n            }\n            if (firstOther.retain - firstLeft > 0) {\n                otherIter.next(firstOther.retain - firstLeft);\n            }\n        }\n        var delta = new Delta(ops);\n        while (thisIter.hasNext() || otherIter.hasNext()) {\n            if (otherIter.peekType() === 'insert') {\n                delta.push(otherIter.next());\n            }\n            else if (thisIter.peekType() === 'delete') {\n                delta.push(thisIter.next());\n            }\n            else {\n                var length_1 = Math.min(thisIter.peekLength(), otherIter.peekLength());\n                var thisOp = thisIter.next(length_1);\n                var otherOp = otherIter.next(length_1);\n                if (typeof otherOp.retain === 'number') {\n                    var newOp = {};\n                    if (typeof thisOp.retain === 'number') {\n                        newOp.retain = length_1;\n                    }\n                    else {\n                        newOp.insert = thisOp.insert;\n                    }\n                    // Preserve null when composing with a retain, otherwise remove it for inserts\n                    var attributes = AttributeMap_1.default.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');\n                    if (attributes) {\n                        newOp.attributes = attributes;\n                    }\n                    delta.push(newOp);\n                    // Optimization if rest of other is just retain\n                    if (!otherIter.hasNext() &&\n                        deep_equal_1.default(delta.ops[delta.ops.length - 1], newOp)) {\n                        var rest = new Delta(thisIter.rest());\n                        return delta.concat(rest).chop();\n                    }\n                    // Other op should be delete, we could be an insert or retain\n                    // Insert + delete cancels out\n                }\n                else if (typeof otherOp.delete === 'number' &&\n                    typeof thisOp.retain === 'number') {\n                    delta.push(otherOp);\n                }\n            }\n        }\n        return delta.chop();\n    };\n    Delta.prototype.concat = function (other) {\n        var delta = new Delta(this.ops.slice());\n        if (other.ops.length > 0) {\n            delta.push(other.ops[0]);\n            delta.ops = delta.ops.concat(other.ops.slice(1));\n        }\n        return delta;\n    };\n    Delta.prototype.diff = function (other, cursor) {\n        if (this.ops === other.ops) {\n            return new Delta();\n        }\n        var strings = [this, other].map(function (delta) {\n            return delta\n                .map(function (op) {\n                if (op.insert != null) {\n                    return typeof op.insert === 'string' ? op.insert : NULL_CHARACTER;\n                }\n                var prep = delta === other ? 'on' : 'with';\n                throw new Error('diff() called ' + prep + ' non-document');\n            })\n                .join('');\n        });\n        var retDelta = new Delta();\n        var diffResult = fast_diff_1.default(strings[0], strings[1], cursor);\n        var thisIter = Op_1.default.iterator(this.ops);\n        var otherIter = Op_1.default.iterator(other.ops);\n        diffResult.forEach(function (component) {\n            var length = component[1].length;\n            while (length > 0) {\n                var opLength = 0;\n                switch (component[0]) {\n                    case fast_diff_1.default.INSERT:\n                        opLength = Math.min(otherIter.peekLength(), length);\n                        retDelta.push(otherIter.next(opLength));\n                        break;\n                    case fast_diff_1.default.DELETE:\n                        opLength = Math.min(length, thisIter.peekLength());\n                        thisIter.next(opLength);\n                        retDelta.delete(opLength);\n                        break;\n                    case fast_diff_1.default.EQUAL:\n                        opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);\n                        var thisOp = thisIter.next(opLength);\n                        var otherOp = otherIter.next(opLength);\n                        if (deep_equal_1.default(thisOp.insert, otherOp.insert)) {\n                            retDelta.retain(opLength, AttributeMap_1.default.diff(thisOp.attributes, otherOp.attributes));\n                        }\n                        else {\n                            retDelta.push(otherOp).delete(opLength);\n                        }\n                        break;\n                }\n                length -= opLength;\n            }\n        });\n        return retDelta.chop();\n    };\n    Delta.prototype.eachLine = function (predicate, newline) {\n        if (newline === void 0) { newline = '\\n'; }\n        var iter = Op_1.default.iterator(this.ops);\n        var line = new Delta();\n        var i = 0;\n        while (iter.hasNext()) {\n            if (iter.peekType() !== 'insert') {\n                return;\n            }\n            var thisOp = iter.peek();\n            var start = Op_1.default.length(thisOp) - iter.peekLength();\n            var index = typeof thisOp.insert === 'string'\n                ? thisOp.insert.indexOf(newline, start) - start\n                : -1;\n            if (index < 0) {\n                line.push(iter.next());\n            }\n            else if (index > 0) {\n                line.push(iter.next(index));\n            }\n            else {\n                if (predicate(line, iter.next(1).attributes || {}, i) === false) {\n                    return;\n                }\n                i += 1;\n                line = new Delta();\n            }\n        }\n        if (line.length() > 0) {\n            predicate(line, {}, i);\n        }\n    };\n    Delta.prototype.invert = function (base) {\n        var inverted = new Delta();\n        this.reduce(function (baseIndex, op) {\n            if (op.insert) {\n                inverted.delete(Op_1.default.length(op));\n            }\n            else if (op.retain && op.attributes == null) {\n                inverted.retain(op.retain);\n                return baseIndex + op.retain;\n            }\n            else if (op.delete || (op.retain && op.attributes)) {\n                var length_2 = (op.delete || op.retain);\n                var slice = base.slice(baseIndex, baseIndex + length_2);\n                slice.forEach(function (baseOp) {\n                    if (op.delete) {\n                        inverted.push(baseOp);\n                    }\n                    else if (op.retain && op.attributes) {\n                        inverted.retain(Op_1.default.length(baseOp), AttributeMap_1.default.invert(op.attributes, baseOp.attributes));\n                    }\n                });\n                return baseIndex + length_2;\n            }\n            return baseIndex;\n        }, 0);\n        return inverted.chop();\n    };\n    Delta.prototype.transform = function (arg, priority) {\n        if (priority === void 0) { priority = false; }\n        priority = !!priority;\n        if (typeof arg === 'number') {\n            return this.transformPosition(arg, priority);\n        }\n        var other = arg;\n        var thisIter = Op_1.default.iterator(this.ops);\n        var otherIter = Op_1.default.iterator(other.ops);\n        var delta = new Delta();\n        while (thisIter.hasNext() || otherIter.hasNext()) {\n            if (thisIter.peekType() === 'insert' &&\n                (priority || otherIter.peekType() !== 'insert')) {\n                delta.retain(Op_1.default.length(thisIter.next()));\n            }\n            else if (otherIter.peekType() === 'insert') {\n                delta.push(otherIter.next());\n            }\n            else {\n                var length_3 = Math.min(thisIter.peekLength(), otherIter.peekLength());\n                var thisOp = thisIter.next(length_3);\n                var otherOp = otherIter.next(length_3);\n                if (thisOp.delete) {\n                    // Our delete either makes their delete redundant or removes their retain\n                    continue;\n                }\n                else if (otherOp.delete) {\n                    delta.push(otherOp);\n                }\n                else {\n                    // We retain either their retain or insert\n                    delta.retain(length_3, AttributeMap_1.default.transform(thisOp.attributes, otherOp.attributes, priority));\n                }\n            }\n        }\n        return delta.chop();\n    };\n    Delta.prototype.transformPosition = function (index, priority) {\n        if (priority === void 0) { priority = false; }\n        priority = !!priority;\n        var thisIter = Op_1.default.iterator(this.ops);\n        var offset = 0;\n        while (thisIter.hasNext() && offset <= index) {\n            var length_4 = thisIter.peekLength();\n            var nextType = thisIter.peekType();\n            thisIter.next();\n            if (nextType === 'delete') {\n                index -= Math.min(length_4, index - offset);\n                continue;\n            }\n            else if (nextType === 'insert' && (offset < index || !priority)) {\n                index += length_4;\n            }\n            offset += length_4;\n        }\n        return index;\n    };\n    Delta.Op = Op_1.default;\n    Delta.AttributeMap = AttributeMap_1.default;\n    return Delta;\n}());\nmodule.exports = Delta;\n//# sourceMappingURL=Delta.js.map\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/dist/Delta.js?")},"./node_modules/quill-delta/dist/Iterator.js":
/*!***************************************************!*\
  !*** ./node_modules/quill-delta/dist/Iterator.js ***!
  \***************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Op_1 = __importDefault(__webpack_require__(/*! ./Op */ \"./node_modules/quill-delta/dist/Op.js\"));\nvar Iterator = /** @class */ (function () {\n    function Iterator(ops) {\n        this.ops = ops;\n        this.index = 0;\n        this.offset = 0;\n    }\n    Iterator.prototype.hasNext = function () {\n        return this.peekLength() < Infinity;\n    };\n    Iterator.prototype.next = function (length) {\n        if (!length) {\n            length = Infinity;\n        }\n        var nextOp = this.ops[this.index];\n        if (nextOp) {\n            var offset = this.offset;\n            var opLength = Op_1.default.length(nextOp);\n            if (length >= opLength - offset) {\n                length = opLength - offset;\n                this.index += 1;\n                this.offset = 0;\n            }\n            else {\n                this.offset += length;\n            }\n            if (typeof nextOp.delete === 'number') {\n                return { delete: length };\n            }\n            else {\n                var retOp = {};\n                if (nextOp.attributes) {\n                    retOp.attributes = nextOp.attributes;\n                }\n                if (typeof nextOp.retain === 'number') {\n                    retOp.retain = length;\n                }\n                else if (typeof nextOp.insert === 'string') {\n                    retOp.insert = nextOp.insert.substr(offset, length);\n                }\n                else {\n                    // offset should === 0, length should === 1\n                    retOp.insert = nextOp.insert;\n                }\n                return retOp;\n            }\n        }\n        else {\n            return { retain: Infinity };\n        }\n    };\n    Iterator.prototype.peek = function () {\n        return this.ops[this.index];\n    };\n    Iterator.prototype.peekLength = function () {\n        if (this.ops[this.index]) {\n            // Should never return 0 if our index is being managed correctly\n            return Op_1.default.length(this.ops[this.index]) - this.offset;\n        }\n        else {\n            return Infinity;\n        }\n    };\n    Iterator.prototype.peekType = function () {\n        if (this.ops[this.index]) {\n            if (typeof this.ops[this.index].delete === 'number') {\n                return 'delete';\n            }\n            else if (typeof this.ops[this.index].retain === 'number') {\n                return 'retain';\n            }\n            else {\n                return 'insert';\n            }\n        }\n        return 'retain';\n    };\n    Iterator.prototype.rest = function () {\n        if (!this.hasNext()) {\n            return [];\n        }\n        else if (this.offset === 0) {\n            return this.ops.slice(this.index);\n        }\n        else {\n            var offset = this.offset;\n            var index = this.index;\n            var next = this.next();\n            var rest = this.ops.slice(this.index);\n            this.offset = offset;\n            this.index = index;\n            return [next].concat(rest);\n        }\n    };\n    return Iterator;\n}());\nexports.default = Iterator;\n//# sourceMappingURL=Iterator.js.map\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/dist/Iterator.js?")},"./node_modules/quill-delta/dist/Op.js":
/*!*********************************************!*\
  !*** ./node_modules/quill-delta/dist/Op.js ***!
  \*********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Iterator_1 = __importDefault(__webpack_require__(/*! ./Iterator */ \"./node_modules/quill-delta/dist/Iterator.js\"));\nvar Op;\n(function (Op) {\n    function iterator(ops) {\n        return new Iterator_1.default(ops);\n    }\n    Op.iterator = iterator;\n    function length(op) {\n        if (typeof op.delete === 'number') {\n            return op.delete;\n        }\n        else if (typeof op.retain === 'number') {\n            return op.retain;\n        }\n        else {\n            return typeof op.insert === 'string' ? op.insert.length : 1;\n        }\n    }\n    Op.length = length;\n})(Op || (Op = {}));\nexports.default = Op;\n//# sourceMappingURL=Op.js.map\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/dist/Op.js?")},"./node_modules/quill-delta/node_modules/deep-equal/index.js":
/*!*******************************************************************!*\
  !*** ./node_modules/quill-delta/node_modules/deep-equal/index.js ***!
  \*******************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){eval("var objectKeys = __webpack_require__(/*! object-keys */ \"./node_modules/quill-delta/node_modules/object-keys/index.js\");\nvar isArguments = __webpack_require__(/*! is-arguments */ \"./node_modules/is-arguments/index.js\");\nvar is = __webpack_require__(/*! object-is */ \"./node_modules/object-is/index.js\");\nvar isRegex = __webpack_require__(/*! is-regex */ \"./node_modules/is-regex/index.js\");\nvar flags = __webpack_require__(/*! regexp.prototype.flags */ \"./node_modules/regexp.prototype.flags/index.js\");\nvar isDate = __webpack_require__(/*! is-date-object */ \"./node_modules/is-date-object/index.js\");\n\nvar getTime = Date.prototype.getTime;\n\nfunction deepEqual(actual, expected, options) {\n  var opts = options || {};\n\n  // 7.1. All identical values are equivalent, as determined by ===.\n  if (opts.strict ? is(actual, expected) : actual === expected) {\n    return true;\n  }\n\n  // 7.3. Other pairs that do not both pass typeof value == 'object', equivalence is determined by ==.\n  if (!actual || !expected || (typeof actual !== 'object' && typeof expected !== 'object')) {\n    return opts.strict ? is(actual, expected) : actual == expected;\n  }\n\n  /*\n   * 7.4. For all other Object pairs, including Array objects, equivalence is\n   * determined by having the same number of owned properties (as verified\n   * with Object.prototype.hasOwnProperty.call), the same set of keys\n   * (although not necessarily the same order), equivalent values for every\n   * corresponding key, and an identical 'prototype' property. Note: this\n   * accounts for both named and indexed properties on Arrays.\n   */\n  // eslint-disable-next-line no-use-before-define\n  return objEquiv(actual, expected, opts);\n}\n\nfunction isUndefinedOrNull(value) {\n  return value === null || value === undefined;\n}\n\nfunction isBuffer(x) {\n  if (!x || typeof x !== 'object' || typeof x.length !== 'number') {\n    return false;\n  }\n  if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {\n    return false;\n  }\n  if (x.length > 0 && typeof x[0] !== 'number') {\n    return false;\n  }\n  return true;\n}\n\nfunction objEquiv(a, b, opts) {\n  /* eslint max-statements: [2, 50] */\n  var i, key;\n  if (typeof a !== typeof b) { return false; }\n  if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) { return false; }\n\n  // an identical 'prototype' property.\n  if (a.prototype !== b.prototype) { return false; }\n\n  if (isArguments(a) !== isArguments(b)) { return false; }\n\n  var aIsRegex = isRegex(a);\n  var bIsRegex = isRegex(b);\n  if (aIsRegex !== bIsRegex) { return false; }\n  if (aIsRegex || bIsRegex) {\n    return a.source === b.source && flags(a) === flags(b);\n  }\n\n  if (isDate(a) && isDate(b)) {\n    return getTime.call(a) === getTime.call(b);\n  }\n\n  var aIsBuffer = isBuffer(a);\n  var bIsBuffer = isBuffer(b);\n  if (aIsBuffer !== bIsBuffer) { return false; }\n  if (aIsBuffer || bIsBuffer) { // && would work too, because both are true or both false here\n    if (a.length !== b.length) { return false; }\n    for (i = 0; i < a.length; i++) {\n      if (a[i] !== b[i]) { return false; }\n    }\n    return true;\n  }\n\n  if (typeof a !== typeof b) { return false; }\n\n  try {\n    var ka = objectKeys(a);\n    var kb = objectKeys(b);\n  } catch (e) { // happens when one is a string literal and the other isn't\n    return false;\n  }\n  // having the same number of owned properties (keys incorporates hasOwnProperty)\n  if (ka.length !== kb.length) { return false; }\n\n  // the same set of keys (although not necessarily the same order),\n  ka.sort();\n  kb.sort();\n  // ~~~cheap key test\n  for (i = ka.length - 1; i >= 0; i--) {\n    if (ka[i] != kb[i]) { return false; }\n  }\n  // equivalent values for every corresponding key, and ~~~possibly expensive deep test\n  for (i = ka.length - 1; i >= 0; i--) {\n    key = ka[i];\n    if (!deepEqual(a[key], b[key], opts)) { return false; }\n  }\n\n  return true;\n}\n\nmodule.exports = deepEqual;\n\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/node_modules/deep-equal/index.js?")},"./node_modules/quill-delta/node_modules/object-keys/implementation.js":
/*!*****************************************************************************!*\
  !*** ./node_modules/quill-delta/node_modules/object-keys/implementation.js ***!
  \*****************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar keysShim;\nif (!Object.keys) {\n\t// modified from https://github.com/es-shims/es5-shim\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar toStr = Object.prototype.toString;\n\tvar isArgs = __webpack_require__(/*! ./isArguments */ \"./node_modules/quill-delta/node_modules/object-keys/isArguments.js\"); // eslint-disable-line global-require\n\tvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\tvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\n\tvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\n\tvar dontEnums = [\n\t\t'toString',\n\t\t'toLocaleString',\n\t\t'valueOf',\n\t\t'hasOwnProperty',\n\t\t'isPrototypeOf',\n\t\t'propertyIsEnumerable',\n\t\t'constructor'\n\t];\n\tvar equalsConstructorPrototype = function (o) {\n\t\tvar ctor = o.constructor;\n\t\treturn ctor && ctor.prototype === o;\n\t};\n\tvar excludedKeys = {\n\t\t$applicationCache: true,\n\t\t$console: true,\n\t\t$external: true,\n\t\t$frame: true,\n\t\t$frameElement: true,\n\t\t$frames: true,\n\t\t$innerHeight: true,\n\t\t$innerWidth: true,\n\t\t$onmozfullscreenchange: true,\n\t\t$onmozfullscreenerror: true,\n\t\t$outerHeight: true,\n\t\t$outerWidth: true,\n\t\t$pageXOffset: true,\n\t\t$pageYOffset: true,\n\t\t$parent: true,\n\t\t$scrollLeft: true,\n\t\t$scrollTop: true,\n\t\t$scrollX: true,\n\t\t$scrollY: true,\n\t\t$self: true,\n\t\t$webkitIndexedDB: true,\n\t\t$webkitStorageInfo: true,\n\t\t$window: true\n\t};\n\tvar hasAutomationEqualityBug = (function () {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined') { return false; }\n\t\tfor (var k in window) {\n\t\t\ttry {\n\t\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}());\n\tvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t}\n\t\ttry {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\tkeysShim = function keys(object) {\n\t\tvar isObject = object !== null && typeof object === 'object';\n\t\tvar isFunction = toStr.call(object) === '[object Function]';\n\t\tvar isArguments = isArgs(object);\n\t\tvar isString = isObject && toStr.call(object) === '[object String]';\n\t\tvar theKeys = [];\n\n\t\tif (!isObject && !isFunction && !isArguments) {\n\t\t\tthrow new TypeError('Object.keys called on a non-object');\n\t\t}\n\n\t\tvar skipProto = hasProtoEnumBug && isFunction;\n\t\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\t\ttheKeys.push(String(i));\n\t\t\t}\n\t\t}\n\n\t\tif (isArguments && object.length > 0) {\n\t\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\t\ttheKeys.push(String(j));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var name in object) {\n\t\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\t\ttheKeys.push(String(name));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasDontEnumBug) {\n\t\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theKeys;\n\t};\n}\nmodule.exports = keysShim;\n\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/node_modules/object-keys/implementation.js?")},"./node_modules/quill-delta/node_modules/object-keys/index.js":
/*!********************************************************************!*\
  !*** ./node_modules/quill-delta/node_modules/object-keys/index.js ***!
  \********************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar slice = Array.prototype.slice;\nvar isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/quill-delta/node_modules/object-keys/isArguments.js");\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(/*! ./implementation */ "./node_modules/quill-delta/node_modules/object-keys/implementation.js");\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/node_modules/object-keys/index.js?')},"./node_modules/quill-delta/node_modules/object-keys/isArguments.js":
/*!**************************************************************************!*\
  !*** ./node_modules/quill-delta/node_modules/object-keys/isArguments.js ***!
  \**************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/quill-delta/node_modules/object-keys/isArguments.js?")},"./node_modules/regexp.prototype.flags/implementation.js":
/*!***************************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/implementation.js ***!
  \***************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar $Object = Object;\nvar $TypeError = TypeError;\n\nmodule.exports = function flags() {\n\tif (this != null && this !== $Object(this)) {\n\t\tthrow new $TypeError('RegExp.prototype.flags getter called on non-object');\n\t}\n\tvar result = '';\n\tif (this.global) {\n\t\tresult += 'g';\n\t}\n\tif (this.ignoreCase) {\n\t\tresult += 'i';\n\t}\n\tif (this.multiline) {\n\t\tresult += 'm';\n\t}\n\tif (this.dotAll) {\n\t\tresult += 's';\n\t}\n\tif (this.unicode) {\n\t\tresult += 'u';\n\t}\n\tif (this.sticky) {\n\t\tresult += 'y';\n\t}\n\treturn result;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/implementation.js?")},"./node_modules/regexp.prototype.flags/index.js":
/*!******************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/index.js ***!
  \******************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar define = __webpack_require__(/*! define-properties */ "./node_modules/define-properties/index.js");\nvar callBind = __webpack_require__(/*! es-abstract/helpers/callBind */ "./node_modules/regexp.prototype.flags/node_modules/es-abstract/helpers/callBind.js");\n\nvar implementation = __webpack_require__(/*! ./implementation */ "./node_modules/regexp.prototype.flags/implementation.js");\nvar getPolyfill = __webpack_require__(/*! ./polyfill */ "./node_modules/regexp.prototype.flags/polyfill.js");\nvar shim = __webpack_require__(/*! ./shim */ "./node_modules/regexp.prototype.flags/shim.js");\n\nvar flagsBound = callBind(implementation);\n\ndefine(flagsBound, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = flagsBound;\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/index.js?')},"./node_modules/regexp.prototype.flags/node_modules/es-abstract/GetIntrinsic.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/node_modules/es-abstract/GetIntrinsic.js ***!
  \**************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/regexp.prototype.flags/node_modules/es-abstract/helpers/callBind.js":
/*!******************************************************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/node_modules/es-abstract/helpers/callBind.js ***!
  \******************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/regexp.prototype.flags/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/regexp.prototype.flags/polyfill.js":
/*!*********************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/polyfill.js ***!
  \*********************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar implementation = __webpack_require__(/*! ./implementation */ \"./node_modules/regexp.prototype.flags/implementation.js\");\n\nvar supportsDescriptors = __webpack_require__(/*! define-properties */ \"./node_modules/define-properties/index.js\").supportsDescriptors;\nvar $gOPD = Object.getOwnPropertyDescriptor;\nvar $TypeError = TypeError;\n\nmodule.exports = function getPolyfill() {\n\tif (!supportsDescriptors) {\n\t\tthrow new $TypeError('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n\t}\n\tif ((/a/mig).flags === 'gim') {\n\t\tvar descriptor = $gOPD(RegExp.prototype, 'flags');\n\t\tif (descriptor && typeof descriptor.get === 'function' && typeof (/a/).dotAll === 'boolean') {\n\t\t\treturn descriptor.get;\n\t\t}\n\t}\n\treturn implementation;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/polyfill.js?")},"./node_modules/regexp.prototype.flags/shim.js":
/*!*****************************************************!*\
  !*** ./node_modules/regexp.prototype.flags/shim.js ***!
  \*****************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar supportsDescriptors = __webpack_require__(/*! define-properties */ \"./node_modules/define-properties/index.js\").supportsDescriptors;\nvar getPolyfill = __webpack_require__(/*! ./polyfill */ \"./node_modules/regexp.prototype.flags/polyfill.js\");\nvar gOPD = Object.getOwnPropertyDescriptor;\nvar defineProperty = Object.defineProperty;\nvar TypeErr = TypeError;\nvar getProto = Object.getPrototypeOf;\nvar regex = /a/;\n\nmodule.exports = function shimFlags() {\n\tif (!supportsDescriptors || !getProto) {\n\t\tthrow new TypeErr('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');\n\t}\n\tvar polyfill = getPolyfill();\n\tvar proto = getProto(regex);\n\tvar descriptor = gOPD(proto, 'flags');\n\tif (!descriptor || descriptor.get !== polyfill) {\n\t\tdefineProperty(proto, 'flags', {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\tget: polyfill\n\t\t});\n\t}\n\treturn polyfill;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/regexp.prototype.flags/shim.js?")},"./node_modules/side-channel/index.js":
/*!********************************************!*\
  !*** ./node_modules/side-channel/index.js ***!
  \********************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! es-abstract/GetIntrinsic */ \"./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js\");\nvar callBound = __webpack_require__(/*! es-abstract/helpers/callBound */ \"./node_modules/side-channel/node_modules/es-abstract/helpers/callBound.js\");\nvar inspect = __webpack_require__(/*! object-inspect */ \"./node_modules/object-inspect/index.js\");\n\nvar $TypeError = GetIntrinsic('%TypeError%');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\nvar $push = callBound('Array.prototype.push');\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\nvar objectGet = function (objects, key) { // eslint-disable-line consistent-return\n\tfor (var i = 0; i < objects.length; i += 1) {\n\t\tif (objects[i].key === key) {\n\t\t\treturn objects[i].value;\n\t\t}\n\t}\n};\nvar objectSet = function (objects, key, value) {\n\tfor (var i = 0; i < objects.length; i += 1) {\n\t\tif (objects[i].key === key) {\n\t\t\tobjects[i].value = value; // eslint-disable-line no-param-reassign\n\t\t\treturn;\n\t\t}\n\t}\n\t$push(objects, {\n\t\tkey: key,\n\t\tvalue: value\n\t});\n};\nvar objectHas = function (objects, key) {\n\tfor (var i = 0; i < objects.length; i += 1) {\n\t\tif (objects[i].key === key) {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n\nmodule.exports = function getSideChannel() {\n\tvar $wm;\n\tvar $m;\n\tvar $o;\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn objectGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn objectHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t$o = [];\n\t\t\t\t}\n\t\t\t\tobjectSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/side-channel/index.js?")},"./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js":
/*!****************************************************************************!*\
  !*** ./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js ***!
  \****************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/side-channel/node_modules/es-abstract/helpers/callBind.js":
/*!********************************************************************************!*\
  !*** ./node_modules/side-channel/node_modules/es-abstract/helpers/callBind.js ***!
  \********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/side-channel/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/side-channel/node_modules/es-abstract/helpers/callBound.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/side-channel/node_modules/es-abstract/helpers/callBound.js ***!
  \*********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/side-channel/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar callBind = __webpack_require__(/*! ./callBind */ \"./node_modules/side-channel/node_modules/es-abstract/helpers/callBind.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/side-channel/node_modules/es-abstract/helpers/callBound.js?")},"./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */function(module,exports){eval('var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function("return this")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === "object") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it\'s\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack://Quill/(webpack)/buildin/global.js?')},"./node_modules/which-boxed-primitive/index.js":
/*!*****************************************************!*\
  !*** ./node_modules/which-boxed-primitive/index.js ***!
  \*****************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar isString = __webpack_require__(/*! is-string */ \"./node_modules/is-string/index.js\");\nvar isNumber = __webpack_require__(/*! is-number-object */ \"./node_modules/is-number-object/index.js\");\nvar isBoolean = __webpack_require__(/*! is-boolean-object */ \"./node_modules/is-boolean-object/index.js\");\nvar isSymbol = __webpack_require__(/*! is-symbol */ \"./node_modules/which-boxed-primitive/node_modules/is-symbol/index.js\");\nvar isBigInt = __webpack_require__(/*! is-bigint */ \"./node_modules/is-bigint/index.js\");\n\n// eslint-disable-next-line consistent-return\nmodule.exports = function whichBoxedPrimitive(value) {\n\t// eslint-disable-next-line eqeqeq\n\tif (value == null || (typeof value !== 'object' && typeof value !== 'function')) {\n\t\treturn null;\n\t}\n\tif (isString(value)) {\n\t\treturn 'String';\n\t}\n\tif (isNumber(value)) {\n\t\treturn 'Number';\n\t}\n\tif (isBoolean(value)) {\n\t\treturn 'Boolean';\n\t}\n\tif (isSymbol(value)) {\n\t\treturn 'Symbol';\n\t}\n\tif (isBigInt(value)) {\n\t\treturn 'BigInt';\n\t}\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-boxed-primitive/index.js?")},"./node_modules/which-boxed-primitive/node_modules/is-symbol/index.js":
/*!****************************************************************************!*\
  !*** ./node_modules/which-boxed-primitive/node_modules/is-symbol/index.js ***!
  \****************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar toStr = Object.prototype.toString;\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nif (hasSymbols) {\n\tvar symToStr = Symbol.prototype.toString;\n\tvar symStringRegex = /^Symbol\\(.*\\)$/;\n\tvar isSymbolObject = function isRealSymbolObject(value) {\n\t\tif (typeof value.valueOf() !== 'symbol') {\n\t\t\treturn false;\n\t\t}\n\t\treturn symStringRegex.test(symToStr.call(value));\n\t};\n\n\tmodule.exports = function isSymbol(value) {\n\t\tif (typeof value === 'symbol') {\n\t\t\treturn true;\n\t\t}\n\t\tif (toStr.call(value) !== '[object Symbol]') {\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\treturn isSymbolObject(value);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n} else {\n\n\tmodule.exports = function isSymbol(value) {\n\t\t// this environment does not support Symbols.\n\t\treturn  false && false;\n\t};\n}\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-boxed-primitive/node_modules/is-symbol/index.js?")},"./node_modules/which-collection/index.js":
/*!************************************************!*\
  !*** ./node_modules/which-collection/index.js ***!
  \************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar isMap = __webpack_require__(/*! is-map */ \"./node_modules/is-map/index.js\");\nvar isSet = __webpack_require__(/*! is-set */ \"./node_modules/is-set/index.js\");\nvar isWeakMap = __webpack_require__(/*! is-weakmap */ \"./node_modules/is-weakmap/index.js\");\nvar isWeakSet = __webpack_require__(/*! is-weakset */ \"./node_modules/is-weakset/index.js\");\n\nmodule.exports = function whichCollection(value) {\n\tif (value && typeof value === 'object') {\n\t\tif (isMap(value)) {\n\t\t\treturn 'Map';\n\t\t}\n\t\tif (isSet(value)) {\n\t\t\treturn 'Set';\n\t\t}\n\t\tif (isWeakMap(value)) {\n\t\t\treturn 'WeakMap';\n\t\t}\n\t\tif (isWeakSet(value)) {\n\t\t\treturn 'WeakSet';\n\t\t}\n\t}\n\treturn false;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-collection/index.js?")},"./node_modules/which-typed-array/index.js":
/*!*************************************************!*\
  !*** ./node_modules/which-typed-array/index.js ***!
  \*************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("/* WEBPACK VAR INJECTION */(function(global) {\n\nvar forEach = __webpack_require__(/*! foreach */ \"./node_modules/foreach/index.js\");\nvar availableTypedArrays = __webpack_require__(/*! available-typed-arrays */ \"./node_modules/available-typed-arrays/index.js\");\nvar callBound = __webpack_require__(/*! es-abstract/helpers/callBound */ \"./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBound.js\");\n\nvar $toString = callBound('Object.prototype.toString');\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\nvar hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';\n\nvar typedArrays = availableTypedArrays();\n\nvar $slice = callBound('String.prototype.slice');\nvar toStrTags = {};\nvar gOPD = __webpack_require__(/*! es-abstract/helpers/getOwnPropertyDescriptor */ \"./node_modules/which-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js\");\nvar getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');\nif (hasToStringTag && gOPD && getPrototypeOf) {\n\tforEach(typedArrays, function (typedArray) {\n\t\tif (typeof global[typedArray] === 'function') {\n\t\t\tvar arr = new global[typedArray]();\n\t\t\tif (!(Symbol.toStringTag in arr)) {\n\t\t\t\tthrow new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');\n\t\t\t}\n\t\t\tvar proto = getPrototypeOf(arr);\n\t\t\tvar descriptor = gOPD(proto, Symbol.toStringTag);\n\t\t\tif (!descriptor) {\n\t\t\t\tvar superProto = getPrototypeOf(proto);\n\t\t\t\tdescriptor = gOPD(superProto, Symbol.toStringTag);\n\t\t\t}\n\t\t\ttoStrTags[typedArray] = descriptor.get;\n\t\t}\n\t});\n}\n\nvar tryTypedArrays = function tryAllTypedArrays(value) {\n\tvar foundName = false;\n\tforEach(toStrTags, function (getter, typedArray) {\n\t\tif (!foundName) {\n\t\t\ttry {\n\t\t\t\tvar name = getter.call(value);\n\t\t\t\tif (name === typedArray) {\n\t\t\t\t\tfoundName = name;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t}\n\t});\n\treturn foundName;\n};\n\nvar isTypedArray = __webpack_require__(/*! is-typed-array */ \"./node_modules/is-typed-array/index.js\");\n\nmodule.exports = function whichTypedArray(value) {\n\tif (!isTypedArray(value)) { return false; }\n\tif (!hasToStringTag) { return $slice($toString(value), 8, -1); }\n\treturn tryTypedArrays(value);\n};\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://Quill/./node_modules/which-typed-array/index.js?")},"./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js":
/*!*********************************************************************************!*\
  !*** ./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js ***!
  \*********************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\n/* globals\n\tAtomics,\n\tSharedArrayBuffer,\n*/\n\nvar undefined;\n\nvar $TypeError = TypeError;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () { throw new $TypeError(); };\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = __webpack_require__(/*! has-symbols */ \"./node_modules/has-symbols/index.js\")();\n\nvar getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto\n\nvar generator; // = function * () {};\nvar generatorFunction = generator ? getProto(generator) : undefined;\nvar asyncFn; // async function() {};\nvar asyncFunction = asyncFn ? asyncFn.constructor : undefined;\nvar asyncGen; // async function * () {};\nvar asyncGenFunction = asyncGen ? getProto(asyncGen) : undefined;\nvar asyncGenIterator = asyncGen ? asyncGen() : undefined;\n\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer.prototype,\n\t'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n\t'%ArrayPrototype%': Array.prototype,\n\t'%ArrayProto_entries%': Array.prototype.entries,\n\t'%ArrayProto_forEach%': Array.prototype.forEach,\n\t'%ArrayProto_keys%': Array.prototype.keys,\n\t'%ArrayProto_values%': Array.prototype.values,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': asyncFunction,\n\t'%AsyncFunctionPrototype%': asyncFunction ? asyncFunction.prototype : undefined,\n\t'%AsyncGenerator%': asyncGen ? getProto(asyncGenIterator) : undefined,\n\t'%AsyncGeneratorFunction%': asyncGenFunction,\n\t'%AsyncGeneratorPrototype%': asyncGenFunction ? asyncGenFunction.prototype : undefined,\n\t'%AsyncIteratorPrototype%': asyncGenIterator && hasSymbols && Symbol.asyncIterator ? asyncGenIterator[Symbol.asyncIterator]() : undefined,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%Boolean%': Boolean,\n\t'%BooleanPrototype%': Boolean.prototype,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined : DataView.prototype,\n\t'%Date%': Date,\n\t'%DatePrototype%': Date.prototype,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': Error,\n\t'%ErrorPrototype%': Error.prototype,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': EvalError,\n\t'%EvalErrorPrototype%': EvalError.prototype,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined : Float32Array.prototype,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined : Float64Array.prototype,\n\t'%Function%': Function,\n\t'%FunctionPrototype%': Function.prototype,\n\t'%Generator%': generator ? getProto(generator()) : undefined,\n\t'%GeneratorFunction%': generatorFunction,\n\t'%GeneratorPrototype%': generatorFunction ? generatorFunction.prototype : undefined,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined : Int8Array.prototype,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined : Int32Array.prototype,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%MapPrototype%': typeof Map === 'undefined' ? undefined : Map.prototype,\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%NumberPrototype%': Number.prototype,\n\t'%Object%': Object,\n\t'%ObjectPrototype%': Object.prototype,\n\t'%ObjProto_toString%': Object.prototype.toString,\n\t'%ObjProto_valueOf%': Object.prototype.valueOf,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%PromisePrototype%': typeof Promise === 'undefined' ? undefined : Promise.prototype,\n\t'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined : Promise.prototype.then,\n\t'%Promise_all%': typeof Promise === 'undefined' ? undefined : Promise.all,\n\t'%Promise_reject%': typeof Promise === 'undefined' ? undefined : Promise.reject,\n\t'%Promise_resolve%': typeof Promise === 'undefined' ? undefined : Promise.resolve,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': RangeError,\n\t'%RangeErrorPrototype%': RangeError.prototype,\n\t'%ReferenceError%': ReferenceError,\n\t'%ReferenceErrorPrototype%': ReferenceError.prototype,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%RegExpPrototype%': RegExp.prototype,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SetPrototype%': typeof Set === 'undefined' ? undefined : Set.prototype,\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer.prototype,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%StringPrototype%': String.prototype,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SymbolPrototype%': hasSymbols ? Symbol.prototype : undefined,\n\t'%SyntaxError%': SyntaxError,\n\t'%SyntaxErrorPrototype%': SyntaxError.prototype,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined,\n\t'%TypeError%': $TypeError,\n\t'%TypeErrorPrototype%': $TypeError.prototype,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array.prototype,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray.prototype,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array.prototype,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array.prototype,\n\t'%URIError%': URIError,\n\t'%URIErrorPrototype%': URIError.prototype,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined : WeakMap.prototype,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\t'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined : WeakSet.prototype\n};\n\nvar bind = __webpack_require__(/*! function-bind */ \"./node_modules/function-bind/index.js\");\nvar $replace = bind.call(Function.call, String.prototype.replace);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tif (!(name in INTRINSICS)) {\n\t\tthrow new SyntaxError('intrinsic ' + name + ' does not exist!');\n\t}\n\n\t// istanbul ignore if // hopefully this is impossible to test :-)\n\tif (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {\n\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t}\n\n\treturn INTRINSICS[name];\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tvar parts = stringToPath(name);\n\n\tvar value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);\n\tfor (var i = 1; i < parts.length; i += 1) {\n\t\tif (value != null) {\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, parts[i]);\n\t\t\t\tif (!allowMissing && !(parts[i] in value)) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\tvalue = desc ? (desc.get || desc.value) : value[parts[i]];\n\t\t\t} else {\n\t\t\t\tvalue = value[parts[i]];\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js?")},"./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBind.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBind.js ***!
  \*************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval('\n\nvar bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ "./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js");\n\nvar $Function = GetIntrinsic(\'%Function%\');\nvar $apply = $Function.apply;\nvar $call = $Function.call;\n\nmodule.exports = function callBind() {\n\treturn bind.apply($call, arguments);\n};\n\nmodule.exports.apply = function applyBind() {\n\treturn bind.apply($apply, arguments);\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBind.js?')},"./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBound.js":
/*!**************************************************************************************!*\
  !*** ./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBound.js ***!
  \**************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar callBind = __webpack_require__(/*! ./callBind */ \"./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBind.js\");\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-typed-array/node_modules/es-abstract/helpers/callBound.js?")},"./node_modules/which-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js":
/*!*****************************************************************************************************!*\
  !*** ./node_modules/which-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js ***!
  \*****************************************************************************************************/
/*! no static exports found */function(module,exports,__webpack_require__){"use strict";eval("\n\nvar GetIntrinsic = __webpack_require__(/*! ../GetIntrinsic */ \"./node_modules/which-typed-array/node_modules/es-abstract/GetIntrinsic.js\");\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n\n\n//# sourceURL=webpack://Quill/./node_modules/which-typed-array/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js?")},"./quill.js":
/*!******************!*\
  !*** ./quill.js ***!
  \******************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./core */ "./core.js");\n/* harmony import */ var _formats_align__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./formats/align */ "./formats/align.js");\n/* harmony import */ var _formats_direction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./formats/direction */ "./formats/direction.js");\n/* harmony import */ var _formats_indent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./formats/indent */ "./formats/indent.js");\n/* harmony import */ var _formats_blockquote__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./formats/blockquote */ "./formats/blockquote.js");\n/* harmony import */ var _formats_header__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./formats/header */ "./formats/header.js");\n/* harmony import */ var _formats_list__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./formats/list */ "./formats/list.js");\n/* harmony import */ var _formats_background__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./formats/background */ "./formats/background.js");\n/* harmony import */ var _formats_color__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./formats/color */ "./formats/color.js");\n/* harmony import */ var _formats_font__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./formats/font */ "./formats/font.js");\n/* harmony import */ var _formats_size__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./formats/size */ "./formats/size.js");\n/* harmony import */ var _formats_bold__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./formats/bold */ "./formats/bold.js");\n/* harmony import */ var _formats_italic__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./formats/italic */ "./formats/italic.js");\n/* harmony import */ var _formats_link__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./formats/link */ "./formats/link.js");\n/* harmony import */ var _formats_script__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./formats/script */ "./formats/script.js");\n/* harmony import */ var _formats_strike__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./formats/strike */ "./formats/strike.js");\n/* harmony import */ var _formats_underline__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./formats/underline */ "./formats/underline.js");\n/* harmony import */ var _formats_formula__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./formats/formula */ "./formats/formula.js");\n/* harmony import */ var _formats_image__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./formats/image */ "./formats/image.js");\n/* harmony import */ var _formats_video__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./formats/video */ "./formats/video.js");\n/* harmony import */ var _formats_code__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./formats/code */ "./formats/code.js");\n/* harmony import */ var _modules_syntax__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./modules/syntax */ "./modules/syntax.js");\n/* harmony import */ var _modules_table__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./modules/table */ "./modules/table.js");\n/* harmony import */ var _modules_toolbar__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./modules/toolbar */ "./modules/toolbar.js");\n/* harmony import */ var _ui_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ui/icons */ "./ui/icons.js");\n/* harmony import */ var _ui_picker__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ui/picker */ "./ui/picker.js");\n/* harmony import */ var _ui_color_picker__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./ui/color-picker */ "./ui/color-picker.js");\n/* harmony import */ var _ui_icon_picker__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ui/icon-picker */ "./ui/icon-picker.js");\n/* harmony import */ var _ui_tooltip__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ui/tooltip */ "./ui/tooltip.js");\n/* harmony import */ var _themes_bubble__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./themes/bubble */ "./themes/bubble.js");\n/* harmony import */ var _themes_snow__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./themes/snow */ "./themes/snow.js");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n_core__WEBPACK_IMPORTED_MODULE_0__["default"].register({\n  \'attributors/attribute/direction\': _formats_direction__WEBPACK_IMPORTED_MODULE_2__["DirectionAttribute"],\n  \'attributors/class/align\': _formats_align__WEBPACK_IMPORTED_MODULE_1__["AlignClass"],\n  \'attributors/class/background\': _formats_background__WEBPACK_IMPORTED_MODULE_7__["BackgroundClass"],\n  \'attributors/class/color\': _formats_color__WEBPACK_IMPORTED_MODULE_8__["ColorClass"],\n  \'attributors/class/direction\': _formats_direction__WEBPACK_IMPORTED_MODULE_2__["DirectionClass"],\n  \'attributors/class/font\': _formats_font__WEBPACK_IMPORTED_MODULE_9__["FontClass"],\n  \'attributors/class/size\': _formats_size__WEBPACK_IMPORTED_MODULE_10__["SizeClass"],\n  \'attributors/style/align\': _formats_align__WEBPACK_IMPORTED_MODULE_1__["AlignStyle"],\n  \'attributors/style/background\': _formats_background__WEBPACK_IMPORTED_MODULE_7__["BackgroundStyle"],\n  \'attributors/style/color\': _formats_color__WEBPACK_IMPORTED_MODULE_8__["ColorStyle"],\n  \'attributors/style/direction\': _formats_direction__WEBPACK_IMPORTED_MODULE_2__["DirectionStyle"],\n  \'attributors/style/font\': _formats_font__WEBPACK_IMPORTED_MODULE_9__["FontStyle"],\n  \'attributors/style/size\': _formats_size__WEBPACK_IMPORTED_MODULE_10__["SizeStyle"]\n}, true);\n_core__WEBPACK_IMPORTED_MODULE_0__["default"].register({\n  \'formats/align\': _formats_align__WEBPACK_IMPORTED_MODULE_1__["AlignClass"],\n  \'formats/direction\': _formats_direction__WEBPACK_IMPORTED_MODULE_2__["DirectionClass"],\n  \'formats/indent\': _formats_indent__WEBPACK_IMPORTED_MODULE_3__["default"],\n  \'formats/background\': _formats_background__WEBPACK_IMPORTED_MODULE_7__["BackgroundStyle"],\n  \'formats/color\': _formats_color__WEBPACK_IMPORTED_MODULE_8__["ColorStyle"],\n  \'formats/font\': _formats_font__WEBPACK_IMPORTED_MODULE_9__["FontClass"],\n  \'formats/size\': _formats_size__WEBPACK_IMPORTED_MODULE_10__["SizeClass"],\n  \'formats/blockquote\': _formats_blockquote__WEBPACK_IMPORTED_MODULE_4__["default"],\n  \'formats/code-block\': _formats_code__WEBPACK_IMPORTED_MODULE_20__["default"],\n  \'formats/header\': _formats_header__WEBPACK_IMPORTED_MODULE_5__["default"],\n  \'formats/list\': _formats_list__WEBPACK_IMPORTED_MODULE_6__["default"],\n  \'formats/bold\': _formats_bold__WEBPACK_IMPORTED_MODULE_11__["default"],\n  \'formats/code\': _formats_code__WEBPACK_IMPORTED_MODULE_20__["Code"],\n  \'formats/italic\': _formats_italic__WEBPACK_IMPORTED_MODULE_12__["default"],\n  \'formats/link\': _formats_link__WEBPACK_IMPORTED_MODULE_13__["default"],\n  \'formats/script\': _formats_script__WEBPACK_IMPORTED_MODULE_14__["default"],\n  \'formats/strike\': _formats_strike__WEBPACK_IMPORTED_MODULE_15__["default"],\n  \'formats/underline\': _formats_underline__WEBPACK_IMPORTED_MODULE_16__["default"],\n  \'formats/formula\': _formats_formula__WEBPACK_IMPORTED_MODULE_17__["default"],\n  \'formats/image\': _formats_image__WEBPACK_IMPORTED_MODULE_18__["default"],\n  \'formats/video\': _formats_video__WEBPACK_IMPORTED_MODULE_19__["default"],\n  \'modules/syntax\': _modules_syntax__WEBPACK_IMPORTED_MODULE_21__["default"],\n  \'modules/table\': _modules_table__WEBPACK_IMPORTED_MODULE_22__["default"],\n  \'modules/toolbar\': _modules_toolbar__WEBPACK_IMPORTED_MODULE_23__["default"],\n  \'themes/bubble\': _themes_bubble__WEBPACK_IMPORTED_MODULE_29__["default"],\n  \'themes/snow\': _themes_snow__WEBPACK_IMPORTED_MODULE_30__["default"],\n  \'ui/icons\': _ui_icons__WEBPACK_IMPORTED_MODULE_24__["default"],\n  \'ui/picker\': _ui_picker__WEBPACK_IMPORTED_MODULE_25__["default"],\n  \'ui/icon-picker\': _ui_icon_picker__WEBPACK_IMPORTED_MODULE_27__["default"],\n  \'ui/color-picker\': _ui_color_picker__WEBPACK_IMPORTED_MODULE_26__["default"],\n  \'ui/tooltip\': _ui_tooltip__WEBPACK_IMPORTED_MODULE_28__["default"]\n}, true);\n/* harmony default export */ __webpack_exports__["default"] = (_core__WEBPACK_IMPORTED_MODULE_0__["default"]);\n\n//# sourceURL=webpack://Quill/./quill.js?')},"./themes/base.js":
/*!************************!*\
  !*** ./themes/base.js ***!
  \************************/
/*! exports provided: BaseTooltip, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"BaseTooltip\", function() { return BaseTooltip; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return BaseTheme; });\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! extend */ \"./node_modules/extend/index.js\");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _core_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/emitter */ \"./core/emitter.js\");\n/* harmony import */ var _core_theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/theme */ \"./core/theme.js\");\n/* harmony import */ var _ui_color_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ui/color-picker */ \"./ui/color-picker.js\");\n/* harmony import */ var _ui_icon_picker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ui/icon-picker */ \"./ui/icon-picker.js\");\n/* harmony import */ var _ui_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ui/picker */ \"./ui/picker.js\");\n/* harmony import */ var _ui_tooltip__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../ui/tooltip */ \"./ui/tooltip.js\");\n\n\n\n\n\n\n\nconst ALIGNS = [false, 'center', 'right', 'justify'];\nconst COLORS = ['#000000', '#e60000', '#ff9900', '#ffff00', '#008a00', '#0066cc', '#9933ff', '#ffffff', '#facccc', '#ffebcc', '#ffffcc', '#cce8cc', '#cce0f5', '#ebd6ff', '#bbbbbb', '#f06666', '#ffc266', '#ffff66', '#66b966', '#66a3e0', '#c285ff', '#888888', '#a10000', '#b26b00', '#b2b200', '#006100', '#0047b2', '#6b24b2', '#444444', '#5c0000', '#663d00', '#666600', '#003700', '#002966', '#3d1466'];\nconst FONTS = [false, 'serif', 'monospace'];\nconst HEADERS = ['1', '2', '3', false];\nconst SIZES = ['small', false, 'large', 'huge'];\n\nclass BaseTheme extends _core_theme__WEBPACK_IMPORTED_MODULE_2__[\"default\"] {\n  constructor(quill, options) {\n    super(quill, options);\n\n    const listener = e => {\n      if (!document.body.contains(quill.root)) {\n        document.body.removeEventListener('click', listener);\n        return;\n      }\n\n      if (this.tooltip != null && !this.tooltip.root.contains(e.target) && document.activeElement !== this.tooltip.textbox && !this.quill.hasFocus()) {\n        this.tooltip.hide();\n      }\n\n      if (this.pickers != null) {\n        this.pickers.forEach(picker => {\n          if (!picker.container.contains(e.target)) {\n            picker.close();\n          }\n        });\n      }\n    };\n\n    quill.emitter.listenDOM('click', document.body, listener);\n  }\n\n  addModule(name) {\n    const module = super.addModule(name);\n\n    if (name === 'toolbar') {\n      this.extendToolbar(module);\n    }\n\n    return module;\n  }\n\n  buildButtons(buttons, icons) {\n    Array.from(buttons).forEach(button => {\n      const className = button.getAttribute('class') || '';\n      className.split(/\\s+/).forEach(name => {\n        if (!name.startsWith('ql-')) return;\n        name = name.slice('ql-'.length);\n        if (icons[name] == null) return;\n\n        if (name === 'direction') {\n          button.innerHTML = icons[name][''] + icons[name].rtl;\n        } else if (typeof icons[name] === 'string') {\n          button.innerHTML = icons[name];\n        } else {\n          const value = button.value || '';\n\n          if (value != null && icons[name][value]) {\n            button.innerHTML = icons[name][value];\n          }\n        }\n      });\n    });\n  }\n\n  buildPickers(selects, icons) {\n    this.pickers = Array.from(selects).map(select => {\n      if (select.classList.contains('ql-align')) {\n        if (select.querySelector('option') == null) {\n          fillSelect(select, ALIGNS);\n        }\n\n        return new _ui_icon_picker__WEBPACK_IMPORTED_MODULE_4__[\"default\"](select, icons.align);\n      }\n\n      if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {\n        const format = select.classList.contains('ql-background') ? 'background' : 'color';\n\n        if (select.querySelector('option') == null) {\n          fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');\n        }\n\n        return new _ui_color_picker__WEBPACK_IMPORTED_MODULE_3__[\"default\"](select, icons[format]);\n      }\n\n      if (select.querySelector('option') == null) {\n        if (select.classList.contains('ql-font')) {\n          fillSelect(select, FONTS);\n        } else if (select.classList.contains('ql-header')) {\n          fillSelect(select, HEADERS);\n        } else if (select.classList.contains('ql-size')) {\n          fillSelect(select, SIZES);\n        }\n      }\n\n      return new _ui_picker__WEBPACK_IMPORTED_MODULE_5__[\"default\"](select);\n    });\n\n    const update = () => {\n      this.pickers.forEach(picker => {\n        picker.update();\n      });\n    };\n\n    this.quill.on(_core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].events.EDITOR_CHANGE, update);\n  }\n\n}\n\nBaseTheme.DEFAULTS = extend__WEBPACK_IMPORTED_MODULE_0___default()(true, {}, _core_theme__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        formula() {\n          this.quill.theme.tooltip.edit('formula');\n        },\n\n        image() {\n          let fileInput = this.container.querySelector('input.ql-image[type=file]');\n\n          if (fileInput == null) {\n            fileInput = document.createElement('input');\n            fileInput.setAttribute('type', 'file');\n            fileInput.setAttribute('accept', this.quill.uploader.options.mimetypes.join(', '));\n            fileInput.classList.add('ql-image');\n            fileInput.addEventListener('change', () => {\n              const range = this.quill.getSelection(true);\n              this.quill.uploader.upload(range, fileInput.files);\n              fileInput.value = '';\n            });\n            this.container.appendChild(fileInput);\n          }\n\n          fileInput.click();\n        },\n\n        video() {\n          this.quill.theme.tooltip.edit('video');\n        }\n\n      }\n    }\n  }\n});\n\nclass BaseTooltip extends _ui_tooltip__WEBPACK_IMPORTED_MODULE_6__[\"default\"] {\n  constructor(quill, boundsContainer) {\n    super(quill, boundsContainer);\n    this.textbox = this.root.querySelector('input[type=\"text\"]');\n    this.listen();\n  }\n\n  listen() {\n    this.textbox.addEventListener('keydown', event => {\n      if (event.key === 'Enter') {\n        this.save();\n        event.preventDefault();\n      } else if (event.key === 'Escape') {\n        this.cancel();\n        event.preventDefault();\n      }\n    });\n  }\n\n  cancel() {\n    this.hide();\n  }\n\n  edit(mode = 'link', preview = null) {\n    this.root.classList.remove('ql-hidden');\n    this.root.classList.add('ql-editing');\n\n    if (preview != null) {\n      this.textbox.value = preview;\n    } else if (mode !== this.root.getAttribute('data-mode')) {\n      this.textbox.value = '';\n    }\n\n    this.position(this.quill.getBounds(this.quill.selection.savedRange));\n    this.textbox.select();\n    this.textbox.setAttribute('placeholder', this.textbox.getAttribute(\"data-\".concat(mode)) || '');\n    this.root.setAttribute('data-mode', mode);\n  }\n\n  restoreFocus() {\n    const {\n      scrollTop\n    } = this.quill.scrollingContainer;\n    this.quill.focus();\n    this.quill.scrollingContainer.scrollTop = scrollTop;\n  }\n\n  save() {\n    let {\n      value\n    } = this.textbox;\n\n    switch (this.root.getAttribute('data-mode')) {\n      case 'link':\n        {\n          const {\n            scrollTop\n          } = this.quill.root;\n\n          if (this.linkRange) {\n            this.quill.formatText(this.linkRange, 'link', value, _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n            delete this.linkRange;\n          } else {\n            this.restoreFocus();\n            this.quill.format('link', value, _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n          }\n\n          this.quill.root.scrollTop = scrollTop;\n          break;\n        }\n\n      case 'video':\n        {\n          value = extractVideoUrl(value);\n        }\n      // eslint-disable-next-line no-fallthrough\n\n      case 'formula':\n        {\n          if (!value) break;\n          const range = this.quill.getSelection(true);\n\n          if (range != null) {\n            const index = range.index + range.length;\n            this.quill.insertEmbed(index, this.root.getAttribute('data-mode'), value, _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n\n            if (this.root.getAttribute('data-mode') === 'formula') {\n              this.quill.insertText(index + 1, ' ', _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n            }\n\n            this.quill.setSelection(index + 2, _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n          }\n\n          break;\n        }\n\n      default:\n    }\n\n    this.textbox.value = '';\n    this.hide();\n  }\n\n}\n\nfunction extractVideoUrl(url) {\n  let match = url.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtube\\.com\\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\\/\\/)?(?:(?:www|m)\\.)?youtu\\.be\\/([a-zA-Z0-9_-]+)/);\n\n  if (match) {\n    return \"\".concat(match[1] || 'https', \"://www.youtube.com/embed/\").concat(match[2], \"?showinfo=0\");\n  } // eslint-disable-next-line no-cond-assign\n\n\n  if (match = url.match(/^(?:(https?):\\/\\/)?(?:www\\.)?vimeo\\.com\\/(\\d+)/)) {\n    return \"\".concat(match[1] || 'https', \"://player.vimeo.com/video/\").concat(match[2], \"/\");\n  }\n\n  return url;\n}\n\nfunction fillSelect(select, values, defaultValue = false) {\n  values.forEach(value => {\n    const option = document.createElement('option');\n\n    if (value === defaultValue) {\n      option.setAttribute('selected', 'selected');\n    } else {\n      option.setAttribute('value', value);\n    }\n\n    select.appendChild(option);\n  });\n}\n\n\n\n//# sourceURL=webpack://Quill/./themes/base.js?")},"./themes/bubble.js":
/*!**************************!*\
  !*** ./themes/bubble.js ***!
  \**************************/
/*! exports provided: BubbleTooltip, default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BubbleTooltip", function() { return BubbleTooltip; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return BubbleTheme; });\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! extend */ "./node_modules/extend/index.js");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _core_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/emitter */ "./core/emitter.js");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ "./themes/base.js");\n/* harmony import */ var _core_selection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/selection */ "./core/selection.js");\n/* harmony import */ var _ui_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ui/icons */ "./ui/icons.js");\n\n\n\n\n\nconst TOOLBAR_CONFIG = [[\'bold\', \'italic\', \'link\'], [{\n  header: 1\n}, {\n  header: 2\n}, \'blockquote\']];\n\nclass BubbleTooltip extends _base__WEBPACK_IMPORTED_MODULE_2__["BaseTooltip"] {\n  constructor(quill, bounds) {\n    super(quill, bounds);\n    this.quill.on(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.EDITOR_CHANGE, (type, range, oldRange, source) => {\n      if (type !== _core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SELECTION_CHANGE) return;\n\n      if (range != null && range.length > 0 && source === _core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].sources.USER) {\n        this.show(); // Lock our width so we will expand beyond our offsetParent boundaries\n\n        this.root.style.left = \'0px\';\n        this.root.style.width = \'\';\n        this.root.style.width = "".concat(this.root.offsetWidth, "px");\n        const lines = this.quill.getLines(range.index, range.length);\n\n        if (lines.length === 1) {\n          this.position(this.quill.getBounds(range));\n        } else {\n          const lastLine = lines[lines.length - 1];\n          const index = this.quill.getIndex(lastLine);\n          const length = Math.min(lastLine.length() - 1, range.index + range.length - index);\n          const indexBounds = this.quill.getBounds(new _core_selection__WEBPACK_IMPORTED_MODULE_3__["Range"](index, length));\n          this.position(indexBounds);\n        }\n      } else if (document.activeElement !== this.textbox && this.quill.hasFocus()) {\n        this.hide();\n      }\n    });\n  }\n\n  listen() {\n    super.listen();\n    this.root.querySelector(\'.ql-close\').addEventListener(\'click\', () => {\n      this.root.classList.remove(\'ql-editing\');\n    });\n    this.quill.on(_core_emitter__WEBPACK_IMPORTED_MODULE_1__["default"].events.SCROLL_OPTIMIZE, () => {\n      // Let selection be restored by toolbar handlers before repositioning\n      setTimeout(() => {\n        if (this.root.classList.contains(\'ql-hidden\')) return;\n        const range = this.quill.getSelection();\n\n        if (range != null) {\n          this.position(this.quill.getBounds(range));\n        }\n      }, 1);\n    });\n  }\n\n  cancel() {\n    this.show();\n  }\n\n  position(reference) {\n    const shift = super.position(reference);\n    const arrow = this.root.querySelector(\'.ql-tooltip-arrow\');\n    arrow.style.marginLeft = \'\';\n\n    if (shift !== 0) {\n      arrow.style.marginLeft = "".concat(-1 * shift - arrow.offsetWidth / 2, "px");\n    }\n\n    return shift;\n  }\n\n}\n\nBubbleTooltip.TEMPLATE = [\'<span class="ql-tooltip-arrow"></span>\', \'<div class="ql-tooltip-editor">\', \'<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">\', \'<a class="ql-close"></a>\', \'</div>\'].join(\'\');\n\nclass BubbleTheme extends _base__WEBPACK_IMPORTED_MODULE_2__["default"] {\n  constructor(quill, options) {\n    if (options.modules.toolbar != null && options.modules.toolbar.container == null) {\n      options.modules.toolbar.container = TOOLBAR_CONFIG;\n    }\n\n    super(quill, options);\n    this.quill.container.classList.add(\'ql-bubble\');\n  }\n\n  extendToolbar(toolbar) {\n    this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);\n    this.tooltip.root.appendChild(toolbar.container);\n    this.buildButtons(toolbar.container.querySelectorAll(\'button\'), _ui_icons__WEBPACK_IMPORTED_MODULE_4__["default"]);\n    this.buildPickers(toolbar.container.querySelectorAll(\'select\'), _ui_icons__WEBPACK_IMPORTED_MODULE_4__["default"]);\n  }\n\n}\n\nBubbleTheme.DEFAULTS = extend__WEBPACK_IMPORTED_MODULE_0___default()(true, {}, _base__WEBPACK_IMPORTED_MODULE_2__["default"].DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        link(value) {\n          if (!value) {\n            this.quill.format(\'link\', false);\n          } else {\n            this.quill.theme.tooltip.edit();\n          }\n        }\n\n      }\n    }\n  }\n});\n\n\n//# sourceURL=webpack://Quill/./themes/bubble.js?')},"./themes/snow.js":
/*!************************!*\
  !*** ./themes/snow.js ***!
  \************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! extend */ \"./node_modules/extend/index.js\");\n/* harmony import */ var extend__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(extend__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _core_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/emitter */ \"./core/emitter.js\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./base */ \"./themes/base.js\");\n/* harmony import */ var _formats_link__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../formats/link */ \"./formats/link.js\");\n/* harmony import */ var _core_selection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/selection */ \"./core/selection.js\");\n/* harmony import */ var _ui_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ui/icons */ \"./ui/icons.js\");\n\n\n\n\n\n\nconst TOOLBAR_CONFIG = [[{\n  header: ['1', '2', '3', false]\n}], ['bold', 'italic', 'underline', 'link'], [{\n  list: 'ordered'\n}, {\n  list: 'bullet'\n}], ['clean']];\n\nclass SnowTooltip extends _base__WEBPACK_IMPORTED_MODULE_2__[\"BaseTooltip\"] {\n  constructor(quill, bounds) {\n    super(quill, bounds);\n    this.preview = this.root.querySelector('a.ql-preview');\n  }\n\n  listen() {\n    super.listen();\n    this.root.querySelector('a.ql-action').addEventListener('click', event => {\n      if (this.root.classList.contains('ql-editing')) {\n        this.save();\n      } else {\n        this.edit('link', this.preview.textContent);\n      }\n\n      event.preventDefault();\n    });\n    this.root.querySelector('a.ql-remove').addEventListener('click', event => {\n      if (this.linkRange != null) {\n        const range = this.linkRange;\n        this.restoreFocus();\n        this.quill.formatText(range, 'link', false, _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER);\n        delete this.linkRange;\n      }\n\n      event.preventDefault();\n      this.hide();\n    });\n    this.quill.on(_core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].events.SELECTION_CHANGE, (range, oldRange, source) => {\n      if (range == null) return;\n\n      if (range.length === 0 && source === _core_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"].sources.USER) {\n        const [link, offset] = this.quill.scroll.descendant(_formats_link__WEBPACK_IMPORTED_MODULE_3__[\"default\"], range.index);\n\n        if (link != null) {\n          this.linkRange = new _core_selection__WEBPACK_IMPORTED_MODULE_4__[\"Range\"](range.index - offset, link.length());\n          const preview = _formats_link__WEBPACK_IMPORTED_MODULE_3__[\"default\"].formats(link.domNode);\n          this.preview.textContent = preview;\n          this.preview.setAttribute('href', preview);\n          this.show();\n          this.position(this.quill.getBounds(this.linkRange));\n          return;\n        }\n      } else {\n        delete this.linkRange;\n      }\n\n      this.hide();\n    });\n  }\n\n  show() {\n    super.show();\n    this.root.removeAttribute('data-mode');\n  }\n\n}\n\nSnowTooltip.TEMPLATE = ['<a class=\"ql-preview\" rel=\"noopener noreferrer\" target=\"_blank\" href=\"about:blank\"></a>', '<input type=\"text\" data-formula=\"e=mc^2\" data-link=\"https://quilljs.com\" data-video=\"Embed URL\">', '<a class=\"ql-action\"></a>', '<a class=\"ql-remove\"></a>'].join('');\n\nclass SnowTheme extends _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"] {\n  constructor(quill, options) {\n    if (options.modules.toolbar != null && options.modules.toolbar.container == null) {\n      options.modules.toolbar.container = TOOLBAR_CONFIG;\n    }\n\n    super(quill, options);\n    this.quill.container.classList.add('ql-snow');\n  }\n\n  extendToolbar(toolbar) {\n    toolbar.container.classList.add('ql-snow');\n    this.buildButtons(toolbar.container.querySelectorAll('button'), _ui_icons__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n    this.buildPickers(toolbar.container.querySelectorAll('select'), _ui_icons__WEBPACK_IMPORTED_MODULE_5__[\"default\"]);\n    this.tooltip = new SnowTooltip(this.quill, this.options.bounds);\n\n    if (toolbar.container.querySelector('.ql-link')) {\n      this.quill.keyboard.addBinding({\n        key: 'k',\n        shortKey: true\n      }, (range, context) => {\n        toolbar.handlers.link.call(toolbar, !context.format.link);\n      });\n    }\n  }\n\n}\n\nSnowTheme.DEFAULTS = extend__WEBPACK_IMPORTED_MODULE_0___default()(true, {}, _base__WEBPACK_IMPORTED_MODULE_2__[\"default\"].DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        link(value) {\n          if (value) {\n            const range = this.quill.getSelection();\n            if (range == null || range.length === 0) return;\n            let preview = this.quill.getText(range);\n\n            if (/^\\S+@\\S+\\.\\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {\n              preview = \"mailto:\".concat(preview);\n            }\n\n            const {\n              tooltip\n            } = this.quill.theme;\n            tooltip.edit('link', preview);\n          } else {\n            this.quill.format('link', false);\n          }\n        }\n\n      }\n    }\n  }\n});\n/* harmony default export */ __webpack_exports__[\"default\"] = (SnowTheme);\n\n//# sourceURL=webpack://Quill/./themes/snow.js?")},"./ui/color-picker.js":
/*!****************************!*\
  !*** ./ui/color-picker.js ***!
  \****************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./picker */ \"./ui/picker.js\");\n\n\nclass ColorPicker extends _picker__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  constructor(select, label) {\n    super(select);\n    this.label.innerHTML = label;\n    this.container.classList.add('ql-color-picker');\n    Array.from(this.container.querySelectorAll('.ql-picker-item')).slice(0, 7).forEach(item => {\n      item.classList.add('ql-primary');\n    });\n  }\n\n  buildItem(option) {\n    const item = super.buildItem(option);\n    item.style.backgroundColor = option.getAttribute('value') || '';\n    return item;\n  }\n\n  selectItem(item, trigger) {\n    super.selectItem(item, trigger);\n    const colorLabel = this.label.querySelector('.ql-color-label');\n    const value = item ? item.getAttribute('data-value') || '' : '';\n\n    if (colorLabel) {\n      if (colorLabel.tagName === 'line') {\n        colorLabel.style.stroke = value;\n      } else {\n        colorLabel.style.fill = value;\n      }\n    }\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (ColorPicker);\n\n//# sourceURL=webpack://Quill/./ui/color-picker.js?")},"./ui/icon-picker.js":
/*!***************************!*\
  !*** ./ui/icon-picker.js ***!
  \***************************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _picker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./picker */ \"./ui/picker.js\");\n\n\nclass IconPicker extends _picker__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n  constructor(select, icons) {\n    super(select);\n    this.container.classList.add('ql-icon-picker');\n    Array.from(this.container.querySelectorAll('.ql-picker-item')).forEach(item => {\n      item.innerHTML = icons[item.getAttribute('data-value') || ''];\n    });\n    this.defaultItem = this.container.querySelector('.ql-selected');\n    this.selectItem(this.defaultItem);\n  }\n\n  selectItem(target, trigger) {\n    super.selectItem(target, trigger);\n    const item = target || this.defaultItem;\n    if (this.label.innerHTML === item.innerHTML) return;\n    this.label.innerHTML = item.innerHTML;\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (IconPicker);\n\n//# sourceURL=webpack://Quill/./ui/icon-picker.js?")},"./ui/icons.js":
/*!*********************!*\
  !*** ./ui/icons.js ***!
  \*********************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _assets_icons_align_left_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../assets/icons/align-left.svg */ "./assets/icons/align-left.svg");\n/* harmony import */ var _assets_icons_align_left_svg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_align_left_svg__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _assets_icons_align_center_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../assets/icons/align-center.svg */ "./assets/icons/align-center.svg");\n/* harmony import */ var _assets_icons_align_center_svg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_align_center_svg__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _assets_icons_align_right_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../assets/icons/align-right.svg */ "./assets/icons/align-right.svg");\n/* harmony import */ var _assets_icons_align_right_svg__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_align_right_svg__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _assets_icons_align_justify_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../assets/icons/align-justify.svg */ "./assets/icons/align-justify.svg");\n/* harmony import */ var _assets_icons_align_justify_svg__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_align_justify_svg__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _assets_icons_background_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../assets/icons/background.svg */ "./assets/icons/background.svg");\n/* harmony import */ var _assets_icons_background_svg__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_background_svg__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _assets_icons_blockquote_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../assets/icons/blockquote.svg */ "./assets/icons/blockquote.svg");\n/* harmony import */ var _assets_icons_blockquote_svg__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_blockquote_svg__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _assets_icons_bold_svg__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../assets/icons/bold.svg */ "./assets/icons/bold.svg");\n/* harmony import */ var _assets_icons_bold_svg__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_bold_svg__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _assets_icons_clean_svg__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../assets/icons/clean.svg */ "./assets/icons/clean.svg");\n/* harmony import */ var _assets_icons_clean_svg__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_clean_svg__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _assets_icons_code_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../assets/icons/code.svg */ "./assets/icons/code.svg");\n/* harmony import */ var _assets_icons_code_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_code_svg__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _assets_icons_color_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../assets/icons/color.svg */ "./assets/icons/color.svg");\n/* harmony import */ var _assets_icons_color_svg__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_color_svg__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _assets_icons_direction_ltr_svg__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../assets/icons/direction-ltr.svg */ "./assets/icons/direction-ltr.svg");\n/* harmony import */ var _assets_icons_direction_ltr_svg__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_direction_ltr_svg__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _assets_icons_direction_rtl_svg__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../assets/icons/direction-rtl.svg */ "./assets/icons/direction-rtl.svg");\n/* harmony import */ var _assets_icons_direction_rtl_svg__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_direction_rtl_svg__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _assets_icons_formula_svg__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../assets/icons/formula.svg */ "./assets/icons/formula.svg");\n/* harmony import */ var _assets_icons_formula_svg__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_formula_svg__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _assets_icons_header_svg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../assets/icons/header.svg */ "./assets/icons/header.svg");\n/* harmony import */ var _assets_icons_header_svg__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_header_svg__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _assets_icons_header_2_svg__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../assets/icons/header-2.svg */ "./assets/icons/header-2.svg");\n/* harmony import */ var _assets_icons_header_2_svg__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_header_2_svg__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _assets_icons_italic_svg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../assets/icons/italic.svg */ "./assets/icons/italic.svg");\n/* harmony import */ var _assets_icons_italic_svg__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_italic_svg__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _assets_icons_image_svg__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../assets/icons/image.svg */ "./assets/icons/image.svg");\n/* harmony import */ var _assets_icons_image_svg__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_image_svg__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _assets_icons_indent_svg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../assets/icons/indent.svg */ "./assets/icons/indent.svg");\n/* harmony import */ var _assets_icons_indent_svg__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_indent_svg__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _assets_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../assets/icons/outdent.svg */ "./assets/icons/outdent.svg");\n/* harmony import */ var _assets_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _assets_icons_link_svg__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../assets/icons/link.svg */ "./assets/icons/link.svg");\n/* harmony import */ var _assets_icons_link_svg__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_link_svg__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _assets_icons_list_bullet_svg__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../assets/icons/list-bullet.svg */ "./assets/icons/list-bullet.svg");\n/* harmony import */ var _assets_icons_list_bullet_svg__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_list_bullet_svg__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var _assets_icons_list_check_svg__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../assets/icons/list-check.svg */ "./assets/icons/list-check.svg");\n/* harmony import */ var _assets_icons_list_check_svg__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_list_check_svg__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _assets_icons_list_ordered_svg__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../assets/icons/list-ordered.svg */ "./assets/icons/list-ordered.svg");\n/* harmony import */ var _assets_icons_list_ordered_svg__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_list_ordered_svg__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var _assets_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../assets/icons/subscript.svg */ "./assets/icons/subscript.svg");\n/* harmony import */ var _assets_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var _assets_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../assets/icons/superscript.svg */ "./assets/icons/superscript.svg");\n/* harmony import */ var _assets_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var _assets_icons_strike_svg__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../assets/icons/strike.svg */ "./assets/icons/strike.svg");\n/* harmony import */ var _assets_icons_strike_svg__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_strike_svg__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var _assets_icons_table_svg__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../assets/icons/table.svg */ "./assets/icons/table.svg");\n/* harmony import */ var _assets_icons_table_svg__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_table_svg__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var _assets_icons_underline_svg__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../assets/icons/underline.svg */ "./assets/icons/underline.svg");\n/* harmony import */ var _assets_icons_underline_svg__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_underline_svg__WEBPACK_IMPORTED_MODULE_27__);\n/* harmony import */ var _assets_icons_video_svg__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../assets/icons/video.svg */ "./assets/icons/video.svg");\n/* harmony import */ var _assets_icons_video_svg__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_video_svg__WEBPACK_IMPORTED_MODULE_28__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n  align: {\n    \'\': _assets_icons_align_left_svg__WEBPACK_IMPORTED_MODULE_0___default.a,\n    center: _assets_icons_align_center_svg__WEBPACK_IMPORTED_MODULE_1___default.a,\n    right: _assets_icons_align_right_svg__WEBPACK_IMPORTED_MODULE_2___default.a,\n    justify: _assets_icons_align_justify_svg__WEBPACK_IMPORTED_MODULE_3___default.a\n  },\n  background: _assets_icons_background_svg__WEBPACK_IMPORTED_MODULE_4___default.a,\n  blockquote: _assets_icons_blockquote_svg__WEBPACK_IMPORTED_MODULE_5___default.a,\n  bold: _assets_icons_bold_svg__WEBPACK_IMPORTED_MODULE_6___default.a,\n  clean: _assets_icons_clean_svg__WEBPACK_IMPORTED_MODULE_7___default.a,\n  code: _assets_icons_code_svg__WEBPACK_IMPORTED_MODULE_8___default.a,\n  \'code-block\': _assets_icons_code_svg__WEBPACK_IMPORTED_MODULE_8___default.a,\n  color: _assets_icons_color_svg__WEBPACK_IMPORTED_MODULE_9___default.a,\n  direction: {\n    \'\': _assets_icons_direction_ltr_svg__WEBPACK_IMPORTED_MODULE_10___default.a,\n    rtl: _assets_icons_direction_rtl_svg__WEBPACK_IMPORTED_MODULE_11___default.a\n  },\n  formula: _assets_icons_formula_svg__WEBPACK_IMPORTED_MODULE_12___default.a,\n  header: {\n    \'1\': _assets_icons_header_svg__WEBPACK_IMPORTED_MODULE_13___default.a,\n    \'2\': _assets_icons_header_2_svg__WEBPACK_IMPORTED_MODULE_14___default.a\n  },\n  italic: _assets_icons_italic_svg__WEBPACK_IMPORTED_MODULE_15___default.a,\n  image: _assets_icons_image_svg__WEBPACK_IMPORTED_MODULE_16___default.a,\n  indent: {\n    \'+1\': _assets_icons_indent_svg__WEBPACK_IMPORTED_MODULE_17___default.a,\n    \'-1\': _assets_icons_outdent_svg__WEBPACK_IMPORTED_MODULE_18___default.a\n  },\n  link: _assets_icons_link_svg__WEBPACK_IMPORTED_MODULE_19___default.a,\n  list: {\n    bullet: _assets_icons_list_bullet_svg__WEBPACK_IMPORTED_MODULE_20___default.a,\n    check: _assets_icons_list_check_svg__WEBPACK_IMPORTED_MODULE_21___default.a,\n    ordered: _assets_icons_list_ordered_svg__WEBPACK_IMPORTED_MODULE_22___default.a\n  },\n  script: {\n    sub: _assets_icons_subscript_svg__WEBPACK_IMPORTED_MODULE_23___default.a,\n    super: _assets_icons_superscript_svg__WEBPACK_IMPORTED_MODULE_24___default.a\n  },\n  strike: _assets_icons_strike_svg__WEBPACK_IMPORTED_MODULE_25___default.a,\n  table: _assets_icons_table_svg__WEBPACK_IMPORTED_MODULE_26___default.a,\n  underline: _assets_icons_underline_svg__WEBPACK_IMPORTED_MODULE_27___default.a,\n  video: _assets_icons_video_svg__WEBPACK_IMPORTED_MODULE_28___default.a\n});\n\n//# sourceURL=webpack://Quill/./ui/icons.js?')},"./ui/picker.js":
/*!**********************!*\
  !*** ./ui/picker.js ***!
  \**********************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _assets_icons_dropdown_svg__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../assets/icons/dropdown.svg */ \"./assets/icons/dropdown.svg\");\n/* harmony import */ var _assets_icons_dropdown_svg__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_assets_icons_dropdown_svg__WEBPACK_IMPORTED_MODULE_0__);\n\nlet optionsCounter = 0;\n\nfunction toggleAriaAttribute(element, attribute) {\n  element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));\n}\n\nclass Picker {\n  constructor(select) {\n    this.select = select;\n    this.container = document.createElement('span');\n    this.buildPicker();\n    this.select.style.display = 'none';\n    this.select.parentNode.insertBefore(this.container, this.select);\n    this.label.addEventListener('mousedown', () => {\n      this.togglePicker();\n    });\n    this.label.addEventListener('keydown', event => {\n      switch (event.key) {\n        case 'Enter':\n          this.togglePicker();\n          break;\n\n        case 'Escape':\n          this.escape();\n          event.preventDefault();\n          break;\n\n        default:\n      }\n    });\n    this.select.addEventListener('change', this.update.bind(this));\n  }\n\n  togglePicker() {\n    this.container.classList.toggle('ql-expanded'); // Toggle aria-expanded and aria-hidden to make the picker accessible\n\n    toggleAriaAttribute(this.label, 'aria-expanded');\n    toggleAriaAttribute(this.options, 'aria-hidden');\n  }\n\n  buildItem(option) {\n    const item = document.createElement('span');\n    item.tabIndex = '0';\n    item.setAttribute('role', 'button');\n    item.classList.add('ql-picker-item');\n\n    if (option.hasAttribute('value')) {\n      item.setAttribute('data-value', option.getAttribute('value'));\n    }\n\n    if (option.textContent) {\n      item.setAttribute('data-label', option.textContent);\n    }\n\n    item.addEventListener('click', () => {\n      this.selectItem(item, true);\n    });\n    item.addEventListener('keydown', event => {\n      switch (event.key) {\n        case 'Enter':\n          this.selectItem(item, true);\n          event.preventDefault();\n          break;\n\n        case 'Escape':\n          this.escape();\n          event.preventDefault();\n          break;\n\n        default:\n      }\n    });\n    return item;\n  }\n\n  buildLabel() {\n    const label = document.createElement('span');\n    label.classList.add('ql-picker-label');\n    label.innerHTML = _assets_icons_dropdown_svg__WEBPACK_IMPORTED_MODULE_0___default.a;\n    label.tabIndex = '0';\n    label.setAttribute('role', 'button');\n    label.setAttribute('aria-expanded', 'false');\n    this.container.appendChild(label);\n    return label;\n  }\n\n  buildOptions() {\n    const options = document.createElement('span');\n    options.classList.add('ql-picker-options'); // Don't want screen readers to read this until options are visible\n\n    options.setAttribute('aria-hidden', 'true');\n    options.tabIndex = '-1'; // Need a unique id for aria-controls\n\n    options.id = \"ql-picker-options-\".concat(optionsCounter);\n    optionsCounter += 1;\n    this.label.setAttribute('aria-controls', options.id);\n    this.options = options;\n    Array.from(this.select.options).forEach(option => {\n      const item = this.buildItem(option);\n      options.appendChild(item);\n\n      if (option.selected === true) {\n        this.selectItem(item);\n      }\n    });\n    this.container.appendChild(options);\n  }\n\n  buildPicker() {\n    Array.from(this.select.attributes).forEach(item => {\n      this.container.setAttribute(item.name, item.value);\n    });\n    this.container.classList.add('ql-picker');\n    this.label = this.buildLabel();\n    this.buildOptions();\n  }\n\n  escape() {\n    // Close menu and return focus to trigger label\n    this.close(); // Need setTimeout for accessibility to ensure that the browser executes\n    // focus on the next process thread and after any DOM content changes\n\n    setTimeout(() => this.label.focus(), 1);\n  }\n\n  close() {\n    this.container.classList.remove('ql-expanded');\n    this.label.setAttribute('aria-expanded', 'false');\n    this.options.setAttribute('aria-hidden', 'true');\n  }\n\n  selectItem(item, trigger = false) {\n    const selected = this.container.querySelector('.ql-selected');\n    if (item === selected) return;\n\n    if (selected != null) {\n      selected.classList.remove('ql-selected');\n    }\n\n    if (item == null) return;\n    item.classList.add('ql-selected');\n    this.select.selectedIndex = Array.from(item.parentNode.children).indexOf(item);\n\n    if (item.hasAttribute('data-value')) {\n      this.label.setAttribute('data-value', item.getAttribute('data-value'));\n    } else {\n      this.label.removeAttribute('data-value');\n    }\n\n    if (item.hasAttribute('data-label')) {\n      this.label.setAttribute('data-label', item.getAttribute('data-label'));\n    } else {\n      this.label.removeAttribute('data-label');\n    }\n\n    if (trigger) {\n      this.select.dispatchEvent(new Event('change'));\n      this.close();\n    }\n  }\n\n  update() {\n    let option;\n\n    if (this.select.selectedIndex > -1) {\n      const item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];\n      option = this.select.options[this.select.selectedIndex];\n      this.selectItem(item);\n    } else {\n      this.selectItem(null);\n    }\n\n    const isActive = option != null && option !== this.select.querySelector('option[selected]');\n    this.label.classList.toggle('ql-active', isActive);\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Picker);\n\n//# sourceURL=webpack://Quill/./ui/picker.js?")},"./ui/tooltip.js":
/*!***********************!*\
  !*** ./ui/tooltip.js ***!
  \***********************/
/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\nclass Tooltip {\n  constructor(quill, boundsContainer) {\n    this.quill = quill;\n    this.boundsContainer = boundsContainer || document.body;\n    this.root = quill.addContainer(\'ql-tooltip\');\n    this.root.innerHTML = this.constructor.TEMPLATE;\n\n    if (this.quill.root === this.quill.scrollingContainer) {\n      this.quill.root.addEventListener(\'scroll\', () => {\n        this.root.style.marginTop = "".concat(-1 * this.quill.root.scrollTop, "px");\n      });\n    }\n\n    this.hide();\n  }\n\n  hide() {\n    this.root.classList.add(\'ql-hidden\');\n  }\n\n  position(reference) {\n    const left = reference.left + reference.width / 2 - this.root.offsetWidth / 2; // root.scrollTop should be 0 if scrollContainer !== root\n\n    const top = reference.bottom + this.quill.root.scrollTop;\n    this.root.style.left = "".concat(left, "px");\n    this.root.style.top = "".concat(top, "px");\n    this.root.classList.remove(\'ql-flip\');\n    const containerBounds = this.boundsContainer.getBoundingClientRect();\n    const rootBounds = this.root.getBoundingClientRect();\n    let shift = 0;\n\n    if (rootBounds.right > containerBounds.right) {\n      shift = containerBounds.right - rootBounds.right;\n      this.root.style.left = "".concat(left + shift, "px");\n    }\n\n    if (rootBounds.left < containerBounds.left) {\n      shift = containerBounds.left - rootBounds.left;\n      this.root.style.left = "".concat(left + shift, "px");\n    }\n\n    if (rootBounds.bottom > containerBounds.bottom) {\n      const height = rootBounds.bottom - rootBounds.top;\n      const verticalShift = reference.bottom - reference.top + height;\n      this.root.style.top = "".concat(top - verticalShift, "px");\n      this.root.classList.add(\'ql-flip\');\n    }\n\n    return shift;\n  }\n\n  show() {\n    this.root.classList.remove(\'ql-editing\');\n    this.root.classList.remove(\'ql-hidden\');\n  }\n\n}\n\n/* harmony default export */ __webpack_exports__["default"] = (Tooltip);\n\n//# sourceURL=webpack://Quill/./ui/tooltip.js?')},0:
/*!************************!*\
  !*** multi ./quill.js ***!
  \************************/
/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__(/*! ./quill.js */"./quill.js");\n\n\n//# sourceURL=webpack://Quill/multi_./quill.js?')},1:
/*!********************************!*\
  !*** ./util.inspect (ignored) ***!
  \********************************/
/*! no static exports found */function(module,exports){eval("/* (ignored) */\n\n//# sourceURL=webpack://Quill/./util.inspect_(ignored)?")}})["default"]}))},"93ed":function(e,t,n){var r=n("4245");function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},9490:function(e,t,n){"use strict";n("0a55")},9520:function(e,t,n){var r=n("3729"),i=n("1a8c"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}e.exports=u},9638:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},"964c":function(e,t,n){"use strict";var r=n("09ee");function i(e){var t=new e.constructor(e.byteLength);return new r["a"](t).set(new r["a"](e)),t}t["a"]=i},9822:function(e,t,n){"use strict";var r=n("db72"),i=n("2250"),o=n("7129"),a=n("2332"),s=n("4dc8");function l(e,t,n,l){if(!Object(a["a"])(e))return e;t=Object(i["a"])(t,e);var u=-1,c=t.length,f=c-1,d=e;while(null!=d&&++u<c){var h=Object(s["a"])(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(u!=f){var g=d[h];p=l?l(g,h,d):void 0,void 0===p&&(p=Object(a["a"])(g)?g:Object(o["a"])(t[u+1])?[]:{})}Object(r["a"])(d,h,p),d=d[h]}return e}t["a"]=l},9934:function(e,t,n){var r=n("6fcd"),i=n("41c3"),o=n("30c9");function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},"99d1":function(e,t,n){},"99d3":function(e,t,n){(function(e){var r=n("585a"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l}).call(this,n("62e4")(e))},"9a4b":function(e,t,n){"use strict";var r=n("ee03"),i=n("a724"),o=n("53a2"),a=Object(o["a"])(Object.keys,Object),s=a,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!Object(i["a"])(e))return s(e);var t=[];for(var n in Object(e))u.call(e,n)&&"constructor"!=n&&t.push(n);return t}var f=c,d=n("e56b");function h(e){return Object(d["a"])(e)?Object(r["a"])(e):f(e)}t["a"]=h},"9b02":function(e,t,n){var r=n("656b");function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},"9c56":function(e,t,n){"use strict";var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),i=function e(t){var n=r[t%r.length];return t>r.length?"".concat(e(Math.floor(t/r.length))).concat(n):n},o=function(e,t){return t.reduce((function(t,n,r){return t.concat(n,e[r+1])}),[e[0]])};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){return h(e)||p(e)||g(e)||v()}function h(e){if(Array.isArray(e))return m(e)}function p(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var y="[object Object]";function b(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function _(e,t){return function(n){return e(t(n))}}var w=Function.prototype,x=Object.prototype,O=w.toString,S=x.hasOwnProperty,C=O.call(Object),k=x.toString,E=_(Object.getPrototypeOf,Object);function A(e){return!!e&&"object"==typeof e}function T(e){if(!A(e)||k.call(e)!=y||b(e))return!1;var t=E(e);if(null===t)return!0;var n=S.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==C}var D=T,M=/([A-Z])/g,P=/^ms-/;function I(e){return e.replace(M,"-$1").toLowerCase()}function j(e){return I(e).replace(P,"-ms-")}var L=j,N=function e(t,n){var r=Object.keys(t).map((function(n){return D(t[n])?e(t[n],n):"".concat(L(n),": ").concat(t[n],";")})).join(" ");return n?"".concat(n," {\n  ").concat(r,"\n}"):r},R=function e(t,n){return t.reduce((function(t,r){return void 0===r||null===r||!1===r||""===r?t:Array.isArray(r)?[].concat(d(t),d(e(r,n))):"function"===typeof r?n?t.concat.apply(t,d(e([r(n)],n))):t.concat(r):t.concat(D(r)?N(r):r.toString())}),[])},B=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return R(o(e,n))};function $(e){return e[e.length-1]}function F(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}var z=function(e){return"development"===e||!e}("development"),q=!1,U="undefined"!==typeof document&&!q,H=function(){if(U){var e=document.createElement("div");return e.innerHTML="\x3c!--[if lt IE 10]><i></i><![endif]--\x3e",1===e.getElementsByTagName("i").length}}();function V(){var e=document.createElement("style");return e.type="text/css",e.appendChild(document.createTextNode("")),(document.head||document.getElementsByTagName("head")[0]).appendChild(e),e}var W=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,r=void 0===n?!z&&!q:n,i=t.maxLength,o=void 0===i?U&&H?4e3:65e3:i;a(this,e),this.isSpeedy=r,this.sheet=void 0,this.tags=[],this.maxLength=o,this.ctr=0}return l(e,[{key:"inject",value:function(){var e=this;if(this.injected)throw new Error("already injected stylesheet!");U?(this.tags[0]=V(),this.sheet=F(this.tags[0])):this.sheet={cssRules:[],insertRule:function(t){var n={cssText:t};return e.sheet.cssRules.push(n),{serverRule:n,appendRule:function(e){return n.cssText+=e}}}},this.injected=!0}},{key:"speedy",value:function(e){if(0!==this.ctr)throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy(".concat(e,") earlier in your app, or call flush() before speedy(").concat(e,")"));this.isSpeedy=!!e}},{key:"_insert",value:function(e){try{this.sheet.insertRule(e,this.sheet.cssRules.length)}catch(t){z&&console.warn("whoops, illegal rule inserted",e)}}},{key:"insert",value:function(e){var t;if(U)if(this.isSpeedy&&this.sheet.insertRule)this._insert(e);else{var n=document.createTextNode(e);$(this.tags).appendChild(n),t={textNode:n,appendRule:function(e){return n.appendData(e)}},this.isSpeedy||(this.sheet=F($(this.tags)))}else t=this.sheet.insertRule(e);return this.ctr++,U&&this.ctr%this.maxLength===0&&(this.tags.push(V()),this.sheet=F($(this.tags))),t}},{key:"flush",value:function(){U?(this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1}},{key:"rules",value:function(){if(!U)return this.sheet.cssRules;var e=[];return this.tags.forEach((function(t){return e.splice.apply(e,[e.length,0].concat(d(Array.from(F(t).cssRules))))})),e}}]),e}(),K=function(){function e(){a(this,e),this.globalStyleSheet=new W({speedy:!1}),this.componentStyleSheet=new W({speedy:!1,maxLength:40})}return l(e,[{key:"inject",value:function(){this.globalStyleSheet.inject(),this.componentStyleSheet.inject()}},{key:"flush",value:function(){this.globalStyleSheet.sheet&&this.globalStyleSheet.flush(),this.componentStyleSheet.sheet&&this.componentStyleSheet.flush()}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1},n=t.global?this.globalStyleSheet:this.componentStyleSheet;return n.insert(e)}},{key:"rules",value:function(){return this.globalStyleSheet.rules().concat(this.componentStyleSheet.rules())}},{key:"injected",get:function(){return this.globalStyleSheet.injected&&this.componentStyleSheet.injected}}]),e}(),G=new K;function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function X(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Z=X((function(e,t){function n(e,t){var n=1540483477,a=24,s=t^e.length,l=e.length,u=0;while(l>=4){var c=r(e,u);c=o(c,n),c^=c>>>a,c=o(c,n),s=o(s,n),s^=c,u+=4,l-=4}switch(l){case 3:s^=i(e,u),s^=e.charCodeAt(u+2)<<16,s=o(s,n);break;case 2:s^=i(e,u),s=o(s,n);break;case 1:s^=e.charCodeAt(u),s=o(s,n);break}return s^=s>>>13,s=o(s,n),s^=s>>>15,s>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function o(e,t){e|=0,t|=0;var n=65535&e,r=e>>>16,i=n*t+((r*t&65535)<<16)|0;return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n})),Q=Y(Z),J=X((function(e,t){(function(t){e["exports"]=t(null)})((function e(t){var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,l=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,c=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,h=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,m=/:(read-only)/g,v=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,_=/\s{2,}/g,w=/([^\(])(:+) */g,x=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,C=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,A=/([^-])(image-set\()/,T="-webkit-",D="-moz-",M="-ms-",P=59,I=125,j=123,L=40,N=41,R=91,B=93,$=10,F=13,z=9,q=64,U=32,H=38,V=45,W=95,K=42,G=44,Y=58,X=39,Z=34,Q=47,J=62,ee=43,te=126,ne=0,re=12,ie=11,oe=107,ae=109,se=115,le=112,ue=111,ce=105,fe=99,de=100,he=112,pe=1,ge=1,me=0,ve=1,ye=1,be=1,_e=0,we=0,xe=0,Oe=[],Se=[],Ce=0,ke=null,Ee=-2,Ae=-1,Te=0,De=1,Me=2,Pe=3,Ie=0,je=1,Le="",Ne="",Re="";function Be(e,t,i,o,a){var s,l,u=0,c=0,f=0,d=0,h=0,v=0,y=0,b=0,_=0,w=0,x=0,S=0,C=0,k=0,E=0,A=0,W=0,be=0,_e=0,Se=i.length,ke=Se-1,Ee="",Ae="",Fe="",He="",Ge="",Ye="";while(E<Se){if(y=i.charCodeAt(E),E===ke&&c+d+f+u!==0&&(0!==c&&(y=c===Q?$:Q),d=f=u=0,Se++,ke++),c+d+f+u===0){if(E===ke&&(A>0&&(Ae=Ae.replace(r,"")),Ae.trim().length>0)){switch(y){case U:case z:case P:case F:case $:break;default:Ae+=i.charAt(E)}y=P}if(1===W)switch(y){case j:case I:case P:case Z:case X:case L:case N:case G:W=0;case z:case F:case $:case U:break;default:W=0,_e=E,h=y,E--,y=P;while(_e<Se)switch(i.charCodeAt(_e++)){case $:case F:case P:++E,y=h,_e=Se;break;case Y:A>0&&(++E,y=h);case j:_e=Se}}switch(y){case j:Ae=Ae.trim(),h=Ae.charCodeAt(0),x=1,_e=++E;while(E<Se){switch(y=i.charCodeAt(E)){case j:x++;break;case I:x--;break;case Q:switch(v=i.charCodeAt(E+1)){case K:case Q:E=Ke(v,E,ke,i)}break;case R:y++;case L:y++;case Z:case X:while(E++<ke)if(i.charCodeAt(E)===y)break}if(0===x)break;E++}switch(Fe=i.substring(_e,E),h===ne&&(h=(Ae=Ae.replace(n,"").trim()).charCodeAt(0)),h){case q:switch(A>0&&(Ae=Ae.replace(r,"")),v=Ae.charCodeAt(1),v){case de:case ae:case se:case V:s=t;break;default:s=Oe}if(Fe=Be(t,s,Fe,v,a+1),_e=Fe.length,xe>0&&0===_e&&(_e=Ae.length),Ce>0&&(s=$e(Oe,Ae,be),l=We(Pe,Fe,s,t,ge,pe,_e,v,a,o),Ae=s.join(""),void 0!==l&&0===(_e=(Fe=l.trim()).length)&&(v=0,Fe="")),_e>0)switch(v){case se:Ae=Ae.replace(O,Ue);case de:case ae:case V:Fe=Ae+"{"+Fe+"}";break;case oe:Ae=Ae.replace(p,"$1 $2"+(je>0?Le:"")),Fe=Ae+"{"+Fe+"}",Fe=1===ye||2===ye&&qe("@"+Fe,3)?"@"+T+Fe+"@"+Fe:"@"+Fe;break;default:Fe=Ae+Fe,o===he&&(He+=Fe,Fe="")}else Fe="";break;default:Fe=Be(t,$e(t,Ae,be),Fe,o,a+1)}Ge+=Fe,S=0,W=0,k=0,A=0,be=0,C=0,Ae="",Fe="",y=i.charCodeAt(++E);break;case I:case P:if(Ae=(A>0?Ae.replace(r,""):Ae).trim(),(_e=Ae.length)>1)switch(0===k&&(h=Ae.charCodeAt(0),(h===V||h>96&&h<123)&&(_e=(Ae=Ae.replace(" ",":")).length)),Ce>0&&void 0!==(l=We(De,Ae,t,e,ge,pe,He.length,o,a,o))&&0===(_e=(Ae=l.trim()).length)&&(Ae="\0\0"),h=Ae.charCodeAt(0),v=Ae.charCodeAt(1),h){case ne:break;case q:if(v===ce||v===fe){Ye+=Ae+i.charAt(E);break}default:if(Ae.charCodeAt(_e-1)===Y)break;He+=ze(Ae,h,v,Ae.charCodeAt(2))}S=0,W=0,k=0,A=0,be=0,Ae="",y=i.charCodeAt(++E);break}}switch(y){case F:case $:if(c+d+f+u+we===0)switch(w){case N:case X:case Z:case q:case te:case J:case K:case ee:case Q:case V:case Y:case G:case P:case j:case I:break;default:k>0&&(W=1)}c===Q?c=0:ve+S===0&&o!==oe&&Ae.length>0&&(A=1,Ae+="\0"),Ce*Ie>0&&We(Te,Ae,t,e,ge,pe,He.length,o,a,o),pe=1,ge++;break;case P:case I:if(c+d+f+u===0){pe++;break}default:switch(pe++,Ee=i.charAt(E),y){case z:case U:if(d+u+c===0)switch(b){case G:case Y:case z:case U:Ee="";break;default:y!==U&&(Ee=" ")}break;case ne:Ee="\\0";break;case re:Ee="\\f";break;case ie:Ee="\\v";break;case H:d+c+u===0&&ve>0&&(be=1,A=1,Ee="\f"+Ee);break;case 108:if(d+c+u+me===0&&k>0)switch(E-k){case 2:b===le&&i.charCodeAt(E-3)===Y&&(me=b);case 8:_===ue&&(me=_)}break;case Y:d+c+u===0&&(k=E);break;case G:c+f+d+u===0&&(A=1,Ee+="\r");break;case Z:case X:0===c&&(d=d===y?0:0===d?y:d);break;case R:d+c+f===0&&u++;break;case B:d+c+f===0&&u--;break;case N:d+c+u===0&&f--;break;case L:if(d+c+u===0){if(0===S)switch(2*b+3*_){case 533:break;default:x=0,S=1}f++}break;case q:c+f+d+u+k+C===0&&(C=1);break;case K:case Q:if(d+u+f>0)break;switch(c){case 0:switch(2*y+3*i.charCodeAt(E+1)){case 235:c=Q;break;case 220:_e=E,c=K;break}break;case K:y===Q&&b===K&&_e+2!==E&&(33===i.charCodeAt(_e+2)&&(He+=i.substring(_e,E+1)),Ee="",c=0)}}if(0===c){if(ve+d+u+C===0&&o!==oe&&y!==P)switch(y){case G:case te:case J:case ee:case N:case L:if(0===S){switch(b){case z:case U:case $:case F:Ee+="\0";break;default:Ee="\0"+Ee+(y===G?"":"\0")}A=1}else switch(y){case L:k+7===E&&108===b&&(k=0),S=++x;break;case N:0===(S=--x)&&(A=1,Ee+="\0");break}break;case z:case U:switch(b){case ne:case j:case I:case P:case G:case re:case z:case U:case $:case F:break;default:0===S&&(A=1,Ee+="\0")}}Ae+=Ee,y!==U&&y!==z&&(w=y)}}_=b,b=y,E++}if(_e=He.length,xe>0&&0===_e&&0===Ge.length&&0===t[0].length===!1&&(o!==ae||1===t.length&&(ve>0?Ne:Re)===t[0])&&(_e=t.join(",").length+2),_e>0){if(s=0===ve&&o!==oe?Ve(t):t,Ce>0&&(l=We(Me,He,s,e,ge,pe,_e,o,a,o),void 0!==l&&0===(He=l).length))return Ye+He+Ge;if(He=s.join(",")+"{"+He+"}",ye*me!==0){switch(2!==ye||qe(He,2)||(me=0),me){case ue:He=He.replace(m,":"+D+"$1")+He;break;case le:He=He.replace(g,"::"+T+"input-$1")+He.replace(g,"::"+D+"$1")+He.replace(g,":"+M+"input-$1")+He;break}me=0}}return Ye+He+Ge}function $e(e,t,n){var r=t.trim().split(c),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var s=0,l=0===a?"":e[0]+" ";s<o;++s)i[s]=Fe(l,i[s],n,a).trim();break;default:s=0;var u=0;for(i=[];s<o;++s)for(var f=0;f<a;++f)i[u++]=Fe(e[f]+" ",r[s],n,a).trim()}return i}function Fe(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case H:switch(ve+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(f,"$1"+e.trim())}break;case Y:switch(i.charCodeAt(1)){case 103:if(be>0&&ve>0)return i.replace(d,"$1").replace(f,"$1"+Re);break;default:return e.trim()+i.replace(f,"$1"+e.trim())}default:if(n*ve>0&&i.indexOf("\f")>0)return i.replace(f,(e.charCodeAt(0)===Y?"":"$1")+e.trim())}return e+i}function ze(e,t,n,r){var s,l=0,u=e+";",c=2*t+3*n+4*r;if(944===c)return He(u);if(0===ye||2===ye&&!qe(u,1))return u;switch(c){case 1015:return 97===u.charCodeAt(10)?T+u+u:u;case 951:return 116===u.charCodeAt(3)?T+u+u:u;case 963:return 110===u.charCodeAt(5)?T+u+u:u;case 1009:if(100!==u.charCodeAt(4))break;case 969:case 942:return T+u+u;case 978:return T+u+D+u+u;case 1019:case 983:return T+u+D+u+M+u+u;case 883:return u.charCodeAt(8)===V?T+u+u:u.indexOf("image-set(",11)>0?u.replace(A,"$1"+T+"$2")+u:u;case 932:if(u.charCodeAt(4)===V)switch(u.charCodeAt(5)){case 103:return T+"box-"+u.replace("-grow","")+T+u+M+u.replace("grow","positive")+u;case 115:return T+u+M+u.replace("shrink","negative")+u;case 98:return T+u+M+u.replace("basis","preferred-size")+u}return T+u+M+u+u;case 964:return T+u+M+"flex-"+u+u;case 1023:if(99!==u.charCodeAt(8))break;return s=u.substring(u.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),T+"box-pack"+s+T+u+M+"flex-pack"+s+u;case 1005:return o.test(u)?u.replace(i,":"+T)+u.replace(i,":"+D)+u:u;case 1e3:switch(s=u.substring(13).trim(),l=s.indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(l)){case 226:s=u.replace(x,"tb");break;case 232:s=u.replace(x,"tb-rl");break;case 220:s=u.replace(x,"lr");break;default:return u}return T+u+M+s+u;case 1017:if(-1===u.indexOf("sticky",9))return u;case 975:switch(l=(u=e).length-10,s=(33===u.charCodeAt(l)?u.substring(0,l):u).substring(e.indexOf(":",7)+1).trim(),c=s.charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:u=u.replace(s,T+s)+";"+u;break;case 207:case 102:u=u.replace(s,T+(c>102?"inline-":"")+"box")+";"+u.replace(s,T+s)+";"+u.replace(s,M+s+"box")+";"+u}return u+";";case 938:if(u.charCodeAt(5)===V)switch(u.charCodeAt(6)){case 105:return s=u.replace("-items",""),T+u+T+"box-"+s+M+"flex-"+s+u;case 115:return T+u+M+"flex-item-"+u.replace(C,"")+u;default:return T+u+M+"flex-line-pack"+u.replace("align-content","").replace(C,"")+u}break;case 973:case 989:if(u.charCodeAt(3)!==V||122===u.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):u.replace(s,T+s)+u.replace(s,D+s.replace("fill-",""))+u;break;case 962:if(u=T+u+(102===u.charCodeAt(5)?M+u:"")+u,n+r===211&&105===u.charCodeAt(13)&&u.indexOf("transform",10)>0)return u.substring(0,u.indexOf(";",27)+1).replace(a,"$1"+T+"$2")+u;break}return u}function qe(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return ke(2!==t?r:r.replace(k,"$1"),i,t)}function Ue(e,t){var n=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function He(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*je){case 0:break;case V:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){var u=o[a],c=u.split(l);while(u=c[n]){var f=u.charCodeAt(0);if(1===je&&(f>q&&f<90||f>96&&f<123||f===W||f===V&&u.charCodeAt(1)!==V))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:u+=Le}}c[n++]=u}i+=(0===a?"":",")+c.join(" ")}}return i=r+i+";",1===ye||2===ye&&qe(i,1)?T+i+i:i}function Ve(e){for(var t,n,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(u),l="",c=0,f=0,d=0,h=0,p=s.length;c<p;++c)if(!(0===(f=(n=s[c]).length)&&p>1)){if(d=l.charCodeAt(l.length-1),h=n.charCodeAt(0),t="",0!==c)switch(d){case K:case te:case J:case ee:case U:case L:break;default:t=" "}switch(h){case H:n=t+Ne;case te:case J:case ee:case U:case N:case L:break;case R:n=t+n+Ne;break;case Y:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(be>0){n=t+n.substring(8,f-1);break}default:(c<1||s[c-1].length<1)&&(n=t+Ne+n)}break;case G:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+Ne+"$2"):t+n+Ne}l+=n}a[i]=l.replace(r,"").trim()}return a}function We(e,t,n,r,i,o,a,s,l,u){for(var c,f=0,d=t;f<Ce;++f)switch(c=Se[f].call(Ze,e,d,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:d=c}if(d!==t)return d}function Ke(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case Q:if(e===K&&r.charCodeAt(i-1)===K&&t+2!==i)return i+1;break;case $:if(e===Q)return i+1}return i}function Ge(e){return e.replace(r,"").replace(v,"").replace(y,"$1").replace(b,"$1").replace(_," ")}function Ye(e){switch(e){case void 0:case null:Ce=Se.length=0;break;default:if("function"===typeof e)Se[Ce++]=e;else if("object"===typeof e)for(var t=0,n=e.length;t<n;++t)Ye(e[t]);else Ie=0|!!e}return Ye}function Xe(e){for(var t in e){var n=e[t];switch(t){case"keyframe":je=0|n;break;case"global":be=0|n;break;case"cascade":ve=0|n;break;case"compress":_e=0|n;break;case"semicolon":we=0|n;break;case"preserve":xe=0|n;break;case"prefix":ke=null,n?"function"!==typeof n?ye=1:(ye=2,ke=n):ye=0}}return Xe}function Ze(t,n){if(void 0!==this&&this.constructor===Ze)return e(t);var r=t,i=r.charCodeAt(0);i<33&&(i=(r=r.trim()).charCodeAt(0)),je>0&&(Le=r.replace(h,i===R?"":"-")),i=1,1===ve?Re=r:Ne=r;var o,a=[Re];Ce>0&&(o=We(Ae,n,a,a,ge,pe,0,0,0,0),void 0!==o&&"string"===typeof o&&(n=o));var s=Be(Oe,a,n,0,0);return Ce>0&&(o=We(Ee,s,a,a,ge,pe,s.length,0,0,0),void 0!==o&&"string"!==typeof(s=o)&&(i=0)),Le="",Re="",Ne="",me=0,ge=1,pe=1,_e*i===0?s:Ge(s)}return Ze["use"]=Ye,Ze["set"]=Xe,void 0!==t&&Xe(t),Ze}))})),ee=(function(){function e(t,n){a(this,e),this.rules=t,this.selector=n}l(e,[{key:"generateAndInject",value:function(){G.injected||G.inject();var e=R(this.rules).join(""),t=this.selector?"".concat(this.selector," { ").concat(e," }"):e,n=J("",t,!1,!1);G.insert(n,{global:!0})}}])}(),Object.prototype),te=ee.hasOwnProperty;function ne(e,t,n){var r=e[t];te.call(e,t)&&oe(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function re(e,t,n){var r=-1,i=e.length,o=t.length,a={};while(++r<i){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function ie(e,t){return re(e||[],t||[],ne)}function oe(e,t){return e===t||e!==e&&t!==t}var ae=ie;function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?ae(e):e}function le(e){return e&&("function"===typeof e.render||"string"===typeof e.template)}var ue=function(e){var t=function t(n,r,i,o){var a=o.attrs,s=void 0===a?[]:a,l=new e(r),u=se(i),c=se(n.props),d={inject:{$theme:{default:function(){return function(){return{}}}}},props:f({as:[String,Object],value:null},u,{},c),data:function(){return{localValue:this.value}},render:function(e){var t=this,r=[];for(var i in this.$slots)"default"===i?r.push(this.$slots[i]):r.push(e("template",{slot:i},this.$slots[i]));return e(le(n)?n:this.$props.as||n,{class:[this.generatedClassName],props:this.$props,domProps:f({},this.attrs,{value:this.localValue}),on:f({},this.$listeners,{input:function(e){e&&e.target&&(t.localValue=e.target.value)}}),scopedSlots:this.$scopedSlots},r)},methods:{generateAndInjectStyles:function(e){return l.generateAndInjectStyles(e)}},computed:{generatedClassName:function(){var e=this.context,t=this.attrs,n=f({},e,{},t);return this.generateAndInjectStyles(n)},theme:function(){return this.$theme()},context:function(){return f({theme:this.theme},this.$props)},attrs:function(){var e={},t=this.context;return s.forEach((function(n){var r=n;for(var i in"function"===typeof r&&(r=r(t)),r)t[i]=e[i]=r[i]})),e}},watch:{value:function(e){this.localValue=e},localValue:function(){this.$emit("input",this.localValue)}},extend:function(e){for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];var u=B.apply(void 0,[e].concat(s));return t(n,r.concat(u),i,o)},withComponent:function(e){return t(e,r,i,o)}};return d};return t},ce=function(e){var t={},n=function(){function n(e){a(this,n),this.rules=e,J.set({keyframe:!1}),G.injected||G.inject(),this.insertedRule=G.insert("")}return l(n,[{key:"generateAndInjectStyles",value:function(n){var r=R(this.rules,n).join("").replace(/^\s*\/\/.*$/gm,""),i=Q(r);if(!t[i]){var o=e(i);t[i]=o;var a=J(".".concat(o),r);this.insertedRule.appendRule(a)}return t[i]}}]),n}();return n},fe=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];function de(e){if("string"===typeof e)return-1!==fe.indexOf(e)}function he(e){return e&&e.methods&&"function"===typeof e.methods.generateAndInjectStyles}function pe(e){return he(e)||le(e)||de(e)}var ge=function(e){var t=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!pe(n))throw new Error(n+" is not allowed for styled tag type.");var o=function(t){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return e(n,B.apply(void 0,[t].concat(a)),r,i)};return o.attrs=function(e){return t(n,r,f({},i,{attrs:Array.prototype.concat(i.attrs,e).filter(Boolean)}))},o};return fe.forEach((function(e){t[e]=t(e)})),t},me=ge(ue(ce(i)));t["a"]=me},"9cbb":function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}var i=r,o=n("6071");function a(e,t){var n=e.length;while(n--)if(Object(o["a"])(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),--this.size,!0}var f=c;function d(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var h=d;function p(e){return s(this.__data__,e)>-1}var g=p;function m(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v=m;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}y.prototype.clear=i,y.prototype["delete"]=f,y.prototype.get=h,y.prototype.has=g,y.prototype.set=v,t["a"]=y},"9e69":function(e,t,n){var r=n("2b3e"),i=r.Symbol;e.exports=i},a029:function(e,t,n){var r=n("087d"),i=n("2dcb"),o=n("32f4"),a=n("d327"),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,o(e)),e=i(e);return t}:a;e.exports=l},a0ee:function(e,t,n){},a12c:function(e,t,n){"use strict";var r=n("9cbb");function i(){this.__data__=new r["a"],this.size=0}var o=i;function a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=a;function l(e){return this.__data__.get(e)}var u=l;function c(e){return this.__data__.has(e)}var f=c,d=n("ddc9"),h=n("0e59"),p=200;function g(e,t){var n=this.__data__;if(n instanceof r["a"]){var i=n.__data__;if(!d["a"]||i.length<p-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new h["a"](i)}return n.set(e,t),this.size=n.size,this}var m=g;function v(e){var t=this.__data__=new r["a"](e);this.size=t.size}v.prototype.clear=o,v.prototype["delete"]=s,v.prototype.get=u,v.prototype.has=f,v.prototype.set=m,t["a"]=v},a187:function(e,t,n){"use strict";var r=n("f0ce"),i=n("26ce"),o=n("1147"),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",D={};function M(e){return Object(o["a"])(e)&&Object(i["a"])(e.length)&&!!D[Object(r["a"])(e)]}D[w]=D[x]=D[O]=D[S]=D[C]=D[k]=D[E]=D[A]=D[T]=!0,D[a]=D[s]=D[b]=D[l]=D[_]=D[u]=D[c]=D[f]=D[d]=D[h]=D[p]=D[g]=D[m]=D[v]=D[y]=!1;var P=M,I=n("a2fb"),j=n("c6eb"),L=j["a"]&&j["a"].isTypedArray,N=L?Object(I["a"])(L):P;t["a"]=N},a1a3:function(e,t,n){"use strict";var r=n("a12c"),i=n("b84d"),o=n("6071");function a(e,t,n){(void 0!==n&&!Object(o["a"])(e[t],n)||void 0===n&&!(t in e))&&Object(i["a"])(e,t,n)}var s=a,l=n("6999"),u=n("dff1"),c=n("1b89"),f=n("7804"),d=n("8583"),h=n("f5fe"),p=n("ff51"),g=n("e56b"),m=n("1147");function v(e){return Object(m["a"])(e)&&Object(g["a"])(e)}var y=v,b=n("58e0"),_=n("bc9b"),w=n("2332"),x=n("f0ce"),O=n("52e7"),S="[object Object]",C=Function.prototype,k=Object.prototype,E=C.toString,A=k.hasOwnProperty,T=E.call(Object);function D(e){if(!Object(m["a"])(e)||Object(x["a"])(e)!=S)return!1;var t=Object(O["a"])(e);if(null===t)return!0;var n=A.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&E.call(n)==T}var M=D,P=n("a187");function I(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var j=I,L=n("f842"),N=n("e3fa");function R(e){return Object(L["a"])(e,Object(N["a"])(e))}var B=R;function $(e,t,n,r,i,o,a){var l=j(e,n),g=j(t,n),m=a.get(g);if(m)s(e,n,m);else{var v=o?o(l,g,n+"",e,t,a):void 0,x=void 0===v;if(x){var O=Object(p["a"])(g),S=!O&&Object(b["a"])(g),C=!O&&!S&&Object(P["a"])(g);v=g,O||S||C?Object(p["a"])(l)?v=l:y(l)?v=Object(f["a"])(l):S?(x=!1,v=Object(u["a"])(g,!0)):C?(x=!1,v=Object(c["a"])(g,!0)):v=[]:M(g)||Object(h["a"])(g)?(v=l,Object(h["a"])(l)?v=B(l):Object(w["a"])(l)&&!Object(_["a"])(l)||(v=Object(d["a"])(g))):x=!1}x&&(a.set(g,v),i(v,g,r,o,a),a["delete"](g)),s(e,n,v)}}var F=$;function z(e,t,n,i,o){e!==t&&Object(l["a"])(t,(function(a,l){if(o||(o=new r["a"]),Object(w["a"])(a))F(e,t,l,n,z,i,o);else{var u=i?i(j(e,l),a,l+"",e,t,o):void 0;void 0===u&&(u=a),s(e,l,u)}}),N["a"])}var q=z,U=n("f976"),H=n("500e"),V=n("c619");function W(e,t){return Object(V["a"])(Object(H["a"])(e,t,U["a"]),e+"")}var K=W,G=n("7129");function Y(e,t,n){if(!Object(w["a"])(n))return!1;var r=typeof t;return!!("number"==r?Object(g["a"])(n)&&Object(G["a"])(t,n.length):"string"==r&&t in n)&&Object(o["a"])(n[t],e)}var X=Y;function Z(e){return K((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&X(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++r<i){var s=n[r];s&&e(t,s,r,o)}return t}))}var Q=Z,J=Q((function(e,t,n){q(e,t,n)}));t["a"]=J},a2db:function(e,t,n){var r=n("9e69"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(e){return o?Object(o.call(e)):{}}e.exports=a},a2fb:function(e,t,n){"use strict";function r(e){return function(t){return e(t)}}t["a"]=r},a474:function(e,t,n){"use strict";var r=n("b84d");function i(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}var o=i,a=n("6999"),s=n("9a4b");function l(e,t){return e&&Object(a["a"])(e,t,s["a"])}var u=l,c=n("e56b");function f(e,t){return function(n,r){if(null==n)return n;if(!Object(c["a"])(n))return e(n,r);var i=n.length,o=t?i:-1,a=Object(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var d=f,h=d(u),p=h;function g(e,t,n,r){return p(e,(function(e,i,o){t(r,e,n(e),o)})),r}var m=g,v=n("7f2c"),y=n("ff51");function b(e,t){return function(n,r){var i=Object(y["a"])(n)?o:m,a=t?t():{};return i(n,e,Object(v["a"])(r,2),a)}}var _=b,w=Object.prototype,x=w.hasOwnProperty,O=_((function(e,t,n){x.call(e,n)?e[n].push(t):Object(r["a"])(e,n,[t])}));t["a"]=O},a524:function(e,t,n){var r=n("4245");function i(e){return r(this,e).has(e)}e.exports=i},a724:function(e,t,n){"use strict";var r=Object.prototype;function i(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}t["a"]=i},a753:function(e,t,n){},a78e:function(e,t,n){var r,i;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */(function(o){var a;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,l=window.Cookies=o();l.noConflict=function(){return window.Cookies=s,l}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function o(t,n,o){if("undefined"!==typeof document){o=e({path:"/"},i.defaults,o),"number"===typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(c){}if(i[u]=l,e===u)break}catch(c){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n((function(){}))}))},a8d6:function(e,t,n){},a994:function(e,t,n){var r=n("7d1f"),i=n("32f4"),o=n("ec69");function a(e){return r(e,o,i)}e.exports=a},a9e7:function(e,t,n){"use strict";n("1f25")},ad40:function(e,t,n){"use strict";n("c482")},b047:function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},b218:function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},b4c0:function(e,t,n){var r=n("cb5a");function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},b4cb:function(module,__webpack_exports__,__webpack_require__){"use strict";var lodash_get__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("9b02"),lodash_get__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_0__),lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("0644"),lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1__),_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("e74d"),_columns__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("ee18");__webpack_exports__["a"]={name:"SGroupTable",components:{Columns:_columns__WEBPACK_IMPORTED_MODULE_3__["a"]},data(){return{selectList:[],content:"",dialogVisible:!1,currentRow:{},formData:{},scrollTimer:null,activeScroll:!0}},props:{id:[String,Number],spanKey:{type:Array,default:()=>[]},showHeader:{type:Boolean,default:!0},props:{type:Object,default:()=>({rowKey:"_rowKey"})},loopConfig:{type:Object,default:()=>({loop:!1,plus:1})},headerCellStyle:{type:Object,default(){return{background:"#F6F6F7",color:"#8689a3",fontSize:"14px"}}},mapper:{type:Object,default(){return{label:"label",value:"value",children:"children"}}},queryProps:{type:Object,default(){return{}}},queryItemStyle:{type:Object,default(){return{}}},columns:Array,value:Array,border:{type:Boolean,default:!0},query:{type:Boolean,default:!0},index:{type:Boolean,default:!0},type:{type:String,default:"readonly"},select:{type:Boolean,default:!1},option:Object,height:[String,Number],size:{type:String,default:"small"},pageConfig:{type:Object,default(){return{page:0,total:0,pageSize:10,pageSizes:[10,20,50,100],layout:"total,prev, pager, next, sizes, jumper",background:!0}}}},computed:{tableData:{get(){return this.value.map((e,t)=>{e._rowKey=t}),lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(this.value)},set(e){this.$emit("input",e)}},groupForm(){return this.columns&&this.columns.filter(e=>e.isQuery)},columnsUse(){return this.columns.map(e=>{"readonly"===this.type&&this.setRead(e),"columns"===e.type&&e.columns.map(e=>{"readonly"===this.type&&this.setRead(e),e.type||(e.type="text")}),e.type||(e.type="text")}),this.columns},usePage:{get(){return this.pageConfig.page||0},set(e){this.$emit("changePageNumber",e)}},usePageSize:{get(){return this.pageConfig.pageSize},set(e){this.$emit("changePageSize",e)}},spanCol(){const e=[];return this.spanKey.map(t=>{const n=this.columns.findIndex(e=>e.key===t);(this.index&&!this.select||!this.index&&this.select)&&e.push(n+1),this.index&&this.select&&e.push(n+2),this.index||this.select||e.push(n)}),e}},watch:{columns:{deep:!0,handler(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})}},tableData(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})}},mounted(){this.initLoop()},methods:{get:lodash_get__WEBPACK_IMPORTED_MODULE_0___default(),initLoop(){if(!this.loopConfig.loop)return;const e=this.$refs.table,t=e.bodyWrapper,n=()=>{this.activeScroll&&(t.scrollTop+=this.loopConfig.plus),Math.abs(t.clientHeight+t.scrollTop-t.scrollHeight)<1&&t.scrollTop>0&&setTimeout(()=>{t.scrollTop=0},500),requestAnimationFrame(n)};n(),t.onmouseenter=()=>{this.activeScroll=!1},t.onmouseleave=()=>{this.activeScroll=!0}},setRead(e){let t=e.type;switch(e.type){case"input":case"inputNumber":case"number":t="text";break;case"timePicker":e.props=Object.assign({format:e.props&&e.props.format||"HH:mm:ss"},e.props||{}),t="time";break;case"datePicker":e.props=Object.assign({format:e.props?e.props.format||"HH:mm:ss":"yyyy-MM-dd"},e.props||{}),t="time";break;case"checkTag":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"radio":case"select":case"checkbox":case"switch":t="dict";break;case"cascader":t="treeDict";break;case"upload":t="fileView",e.props=Object.assign({},e.props),e.props.remove=!1;break;case"code":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"richText":e.props=Object.assign({},e.props),e.props.readonly=!0;break;case"slider":e.props=Object.assign({},e.props),e.props.disabled=!0;break;case"colorPicker":e.props=Object.assign({},e.props),e.props.disabled=!0;break}e.type=t},mergeMapper(e){return e.props&&e.props.mapper?Object.assign(this.mapper,e.props.mapper):this.mapper},showFunction(row,show,value,index){if(void 0===show)return!0;if("function"===typeof show)return show(row,value,index);if("string"===typeof show)try{const str=`((row)=>${show})(row)`;return eval(str)}catch(e){return!1}},calcIndex(e){return((this.usePage||1)-1)*(this.usePageSize||10)+e+1},handleSizeChange(e){this.usePageSize=e},handleCurrentChange(e){this.usePage=e},handleSelectionChange(e){this.$emit("selectChange",e)},sortChange(e){this.$emit("sortChange",e)},rowClick(e){this.$emit("rowClick",e)},filterChange(e){this.$emit("filterChange",e)},calcSpanObj(){const e=[];return this.spanKey.map((t,n)=>{const r=lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(this.tableData);let i=[];r.map(e=>{if(n>=1){let r=t,o=e[t];for(let t=0;t<n;t++)r+=this.spanKey[n-1-t],o+=e[this.spanKey[n-1-t]];e[r]=o,i.push(o)}else i.push(e[t])});const o=[];i=[...new Set(i)],i.map(e=>{const r={};if(r.qqqqq=e,n>=1){let e=t;for(let t=0;t<n;t++)e+=this.spanKey[n-1-t];r[e]=0}else r[t]=0;o.push(r)});const a=lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(r).concat([...new Set(o)]);let s=t;for(let e=0;e<n;e++)s+=this.spanKey[n-1-e];const l=Object(_utils__WEBPACK_IMPORTED_MODULE_2__["transformToTree"])(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_1___default()(a),{children:"children",idKey:"qqqqq",pIdKey:s,label:"name"});e.push(l)}),e},objectSpanMethod({rowIndex:e,columnIndex:t}){const n=this.calcSpanObj(),r=[],i=[];let o={};const a=this.spanCol.indexOf(t);if(a>=0){n[a].map((e,t)=>{e.children&&i.push(e.children.length)});let s=0;if(i.map((e,t)=>{r.push(s),s+=e}),o=r.indexOf(e)>=0?{rowspan:i[r.indexOf(e)],colspan:1}:{rowspan:0,colspan:0},t===this.spanCol[a])return o}}}}},b4f1:function(e,t,n){"use strict";function r(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}t["a"]=r},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(p+":"+g)}var m=s(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),a(m,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 r="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,o=e.responseType&&"text"!==e.responseType?h.response:h.responseText,a={data:o,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,a),h=null}},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(m))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in h&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"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(),n(e),h=null)})),f||(f=null),h.send(f)}))}},b5a7:function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"DataView");e.exports=o},b639:function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var r=n("1fb5"),i=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 u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(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 h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){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,r):"string"===typeof t?p(e,t,n):v(e,t)}function f(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 d(e,t,n,r){return f(t),t<=0?l(e,t):void 0!==n?"string"===typeof r?l(e,t).fill(n,r):l(e,t).fill(n):l(e,t)}function h(e,t){if(f(t),e=l(e,t<0?0:0|y(t)),!u.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"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(t,n);e=l(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function g(e,t){var n=t.length<0?0:0|y(t.length);e=l(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=g(e,t),e}function v(e,t){if(u.isBuffer(t)){var n=0|y(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 y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),u.alloc(+e)}function _(e,t){if(u.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 r=!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(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!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 R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function O(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;d<l;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function k(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee(Z(t),e,n,r)}function A(e,t,n,r){return E(e,t,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function D(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}function M(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,l,u=e[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return j(r)}t.Buffer=u,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return d(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.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},u.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},u.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},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.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===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return O(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return O(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=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===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function j(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function R(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Y(e[o]);return i}function B(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function $(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 F(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function q(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,o){return o||U(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||U(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||$(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||$(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||$(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||$(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||$(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||$(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||$(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||$(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||$(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||$(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||$(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||$(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||$(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||$(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||$(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,e,t,n,i,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},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}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},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}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},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===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(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}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=u.isBuffer(e)?e:X(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=G(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(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 r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function J(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b6b6:function(e,t,n){"use strict";n("670f")},b84d:function(e,t,n){"use strict";var r=n("0305");function i(e,t,n){"__proto__"==t&&r["a"]?Object(r["a"])(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t["a"]=i},bb01:function(e,t,n){"use strict";n("cbaa")},bbc0:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},bc3a:function(e,t,n){e.exports=n("cee4")},bc48:function(e,t,n){"use strict";var r=n("9822");function i(e,t,n){return null==e?e:Object(r["a"])(e,t,n)}t["a"]=i},bc9b:function(e,t,n){"use strict";var r=n("f0ce"),i=n("2332"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!Object(i["a"])(e))return!1;var t=Object(r["a"])(e);return t==a||t==s||t==o||t==l}t["a"]=u},bd8f:function(e,t,n){"use strict";var r=n("ff51"),i=n("1bc6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(Object(r["a"])(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Object(i["a"])(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}t["a"]=s},c098:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}e.exports=i},c0da:function(e,t,n){(function(e){(function(){ace.require(["ace/snippets/json"],(function(t){e&&(e.exports=t)}))})()}).call(this,n("62e4")(e))},c2b6:function(e,t,n){var r=n("f8af"),i=n("5d89"),o=n("6f6c"),a=n("a2db"),s=n("c8fe"),l="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",C="[object Uint16Array]",k="[object Uint32Array]";function E(e,t,n){var E=e.constructor;switch(t){case m:return r(e);case l:case u:return new E(+e);case v:return i(e,n);case y:case b:case _:case w:case x:case O:case S:case C:case k:return s(e,n);case c:return new E;case f:case p:return new E(e);case d:return o(e);case h:return new E;case g:return a(e)}}e.exports=E},c345:function(e,t,n){"use strict";var r=n("c532"),i=["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?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c3fc:function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Set]";function a(e){return i(e)&&r(e)==o}e.exports=a},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c45d:function(e,t,n){(function(t){
/*!
 * Quill Editor v1.2.3
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(t,n){e.exports=n()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=136)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(22),o=n(23),a=n(59),s=n(58),l=n(56),u=n(57),c=n(60),f=n(13),d=n(31),h=n(33),p=n(32),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};t.default=m},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},u={};function c(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node?e:r.create(t);return new r(o,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=u[e]||a[e];else if(e instanceof Text)n=u["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=u["block"]:e&o.LEVEL&o.INLINE&&(n=u["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=c,t.find=f,t.query=d,t.register=h},function(e,t,n){var r=n(54),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i<t&&r.hasNext()){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=new l;while(t.hasNext()||n.hasNext())if("insert"===n.peekType())r.push(n.next());else if("delete"===t.peekType())r.push(t.next());else{var i=Math.min(t.peekLength(),n.peekLength()),o=t.next(i),s=n.next(i);if("number"===typeof s.retain){var u={};"number"===typeof o.retain?u.retain=i:u.insert=o.insert;var c=a.attributes.compose(o.attributes,s.attributes,"number"===typeof o.retain);c&&(u.attributes=c),r.push(u)}else"number"===typeof s["delete"]&&"number"===typeof o.retain&&r.push(s)}return r.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),l=f.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)};e.exports=function e(){var t,n,r,a,s,l,u=arguments[0],c=1,f=arguments.length,d=!1;for("boolean"===typeof u?(d=u,u=arguments[1]||{},c=2):("object"!==typeof u&&"function"!==typeof u||null==u)&&(u={});c<f;++c)if(t=arguments[c],null!=t)for(n in t)r=u[n],a=t[n],u!==a&&(d&&a&&(o(a)||(s=i(a)))?(s?(s=!1,l=r&&i(r)?r:[]):l=r&&o(r)?r:{},u[n]=e(d,l,a)):"undefined"!==typeof a&&(u[n]=a));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=b(o),s=n(2),l=b(s),u=n(0),c=b(u),f=n(17),d=b(f),h=n(7),p=b(h),g=n(8),m=b(g),v=n(12),y=b(v);function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=1,S=function(e){function t(){return _(this,t),w(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return x(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=c.default.query(e,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(C.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(p.default);S.scope=c.default.Scope.BLOCK_BLOT;var C=function(e){function t(e){_(this,t);var n=w(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return x(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),k(t))}),new l.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return s=s.split(e,!0),s.insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof d.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+O),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-O)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(c.default.Block);function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:k(e.parent,t))}C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[m.default,p.default,y.default],t.bubbleFormats=k,t.BlockEmbed=S,t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(53),a=u(o),s=n(10),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(0,l.default)("quill:events"),p=function(e){function t(){c(this,t);var e=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.on("error",h.error),e}return d(t,e),r(t,[{key:"emit",value:function(){h.log.apply(h,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}}]),t}(a.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(43);var a=n(2),s=S(a),l=n(14),u=S(l),c=n(5),f=S(c),d=n(9),h=S(d),p=n(0),g=S(p),m=n(15),v=S(m),y=n(3),b=S(y),_=n(10),w=S(_),x=n(29),O=S(x);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=(0,w.default)("quill"),A=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,e),this.options=T(t,r),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,scrollingContainer:this.scrollingContainer,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e){e===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;D.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||g.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&E.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||E.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?g.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=M(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.selection.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return D.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(g.default.query(e,g.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,C({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,C({},e,t))}return n.setSelection(r,f.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],D.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],D.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return D.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,0,n,r,o),u=i(l,4);return e=u[0],s=u[2],o=u[3],D.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=M(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=M(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new m.Range(t,n),r)}r!==f.default.sources.SILENT&&this.selection.scrollIntoView()}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function T(e,t){if(t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==A.DEFAULTS.theme){if(t.theme=A.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=O.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=A.import("modules/"+t);return null==n?E.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},A.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function D(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===f.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=P(i,a,t):0!==r&&(i=P(i,n,r,t)),this.setSelection(i,f.default.sources.SILENT)),a.length()>0){var l,u,c=[f.default.events.TEXT_CHANGE,a,o,t];(l=this.emitter).emit.apply(l,[f.default.events.EDITOR_CHANGE].concat(c)),t!==f.default.sources.SILENT&&(u=this.emitter).emit.apply(u,c)}return a}function M(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||f.default.sources.API,[e,t,a,o]}function P(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r===f.default.sources.USER)})),u=i(l,2);o=u[0],a=u[1]}else{var c=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r!==f.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=i(c,2);o=d[0],a=d[1]}return new m.Range(o,a-o)}A.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},A.events=f.default.events,A.sources=f.default.sources,A.version="1.2.3",A.imports={delta:s.default,parchment:g.default,"core/module":h.default,"core/theme":O.default},t.expandConfig=T,t.overload=M,t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default.Embed);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=f(o),s=n(12),l=f(s),u=n(0),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return d(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&c.default.query(r,c.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(c.default.Inline);g.allowedChildren=[g,a.default,l.default],g.order=["cursor","inline","code","underline","strike","italic","bold","script","link"],t.default=g},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];console[e].apply(console,n)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(51),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}function u(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=i(e),d=i(t)}catch(h){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default.Text);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||this.whitelist.indexOf(t)>-1)},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)?t:""},e}();t.default=i},function(e,t,n){"use strict";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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),s=S(a),l=n(20),u=S(l),c=n(0),f=S(c),d=n(16),h=S(d),p=n(25),g=S(p),m=n(4),v=S(m),y=n(19),b=S(y),_=n(11),w=S(_),x=n(3),O=S(x);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=function(){function e(t){k(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batch=!0,e=T(e),e.reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),e>=o&&!c.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,c);var d=t.scroll.line(e),h=i(d,2),p=h[0],g=h[1],y=(0,O.default)({},(0,m.bubbleFormats)(p));if(p instanceof v.default){var b=p.descendant(f.default.Leaf,g),_=i(b,1),w=_[0];y=(0,O.default)(y,(0,m.bubbleFormats)(w))}l=u.default.attributes.diff(y,l)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batch=!1,this.scroll.optimize(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof h.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,b.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,b.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof f.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(f.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,m.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=A((0,m.bubbleFormats)(n),t)}return t}));return O.default.apply(O.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(C({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,b.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.length()<=1&&0==Object.keys(e.formats()).length}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(e,t+u),d=f.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&f.default.find(t[0].target)){var i=f.default.find(t[0].target),o=(0,m.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(g.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(u.diff(c,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,w.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function A(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function T(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,b.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,b.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=g(o),s=n(19),l=g(s),u=n(11),c=g(u),f=n(5),d=g(f),h=n(10),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function m(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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},_=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.root=this.scroll.domNode,this.root.addEventListener("compositionstart",(function(){r.composing=!0})),this.root.addEventListener("compositionend",(function(){r.composing=!1})),this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),["keyup","mouseup","mouseleave","touchend","touchleave","focus","blur"].forEach((function(e){r.root.addEventListener(e,(function(){setTimeout(r.update.bind(r,d.default.sources.USER),100)}))})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))})),this.update(d.default.sources.SILENT)}return i(e,[{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var f=document.createRange();if(t>0){f.setStart(i,l);var d=this.scroll.leaf(e+t),h=r(d,2);if(s=h[0],l=h[1],null==s)return null;var p=s.position(l,!0),g=r(p,2);return i=g[0],l=g[1],f.setEnd(i,l),f.getBoundingClientRect()}var m="left",v=void 0;return i instanceof Text?(l<i.data.length?(f.setStart(i,l),f.setEnd(i,l+1)):(f.setStart(i,l-1),f.setEnd(i,l),m="right"),v=f.getBoundingClientRect()):(v=s.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;if(!w(this.root,t.startContainer)||!t.collapsed&&!w(this.root,t.endContainer))return null;var n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this,t=this.getNativeRange();if(null==t)return[null,null];var n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(e.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min.apply(Math,m(i)),s=Math.max.apply(Math,m(i));return s=Math.min(s,this.scroll.length()-1),[new b(o,s-o),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"scrollIntoView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.lastRange;if(null!=e){var t=this.getBounds(e.index,e.length);if(null!=t){var n=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,n)),o=r(i,1),a=o[0],s=a;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,n)),u=r(l,1);s=u[0]}if(null!=a&&null!=s){var c=this.scroll.scrollingContainer,f=c.getBoundingClientRect();t.top<f.top?c.scrollTop-=f.top-t.top:t.bottom>f.bottom&&(c.scrollTop+=t.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof n&&(i=n,n=!1),y.info("setRange",e),null!=e){var o=e.collapsed?[e.index]:[e.index,e.index+e.length],a=[],s=this.scroll.length();o.forEach((function(e,n){e=Math.min(s-1,e);var i=void 0,o=t.scroll.leaf(e),l=r(o,2),u=l[0],c=l[1],f=u.position(c,0!==n),d=r(f,2);i=d[0],c=d[1],a.push(i,c)})),a.length<2&&(a=a.concat(a)),this.setNativeRange.apply(this,m(a).concat([n]))}else this.setNativeRange(null);this.update(i)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];(s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(f)),e!==d.default.sources.SILENT&&(u=this.emitter).emit.apply(u,f)}}}]),e}();function w(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=b,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(2),s=m(a),l=n(0),u=m(l),c=n(4),f=m(c),d=n(8),h=m(d),p=n(12),g=m(p);function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),t}(h.default);_.blotName="code",_.tagName="CODE";var w=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(g.default,this.length()-1),a=r(i,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(g.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(),e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(f.default);w.blotName="code-block",w.tagName="PRE",w.TAB="  ",t.Code=_,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(a.default);f.blotName="break",f.tagName="BR",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=y(a),l=n(5),u=y(l),c=n(4),f=y(c),d=n(17),h=y(d),p=n(24),g=y(p),m=n(16),v=y(m);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function x(e){return e instanceof f.default||e instanceof c.BlockEmbed}var O=function(e){function t(e,n){b(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,r.scrollingContainer=n.scrollingContainer,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.optimize(),r.enable(),r}return w(t,e),i(t,[{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],l=a[1],u=this.line(e+n),f=r(u,1),d=f[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&s!==d&&l>0&&!(s instanceof c.BlockEmbed)&&!(d instanceof c.BlockEmbed)){d instanceof v.default&&d.deleteAt(d.length()-1,1);var p=d.children.head instanceof h.default?null:d.children.head;s.moveChildren(d,p),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(x,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){x(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[f.default,c.BlockEmbed,g.default],t.default=O},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{i=Promise}catch(f){i=function(){}}function o(a,s,l,u,f){"object"===typeof s&&(l=s.depth,u=s.prototype,f=s.includeNonEnumerable,s=s.circular);var d=[],h=[],p="undefined"!=typeof t;function g(a,l){if(null===a)return null;if(0===l)return a;var m,v;if("object"!=typeof a)return a;if(e(a,n))m=new n;else if(e(a,r))m=new r;else if(e(a,i))m=new i((function(e,t){a.then((function(t){e(g(t,l-1))}),(function(e){t(g(e,l-1))}))}));else if(o.__isArray(a))m=[];else if(o.__isRegExp(a))m=new RegExp(a.source,c(a)),a.lastIndex&&(m.lastIndex=a.lastIndex);else if(o.__isDate(a))m=new Date(a.getTime());else{if(p&&t.isBuffer(a))return m=new t(a.length),a.copy(m),m;e(a,Error)?m=Object.create(a):"undefined"==typeof u?(v=Object.getPrototypeOf(a),m=Object.create(v)):(m=Object.create(u),v=u)}if(s){var y=d.indexOf(a);if(-1!=y)return h[y];d.push(a),h.push(m)}for(var b in e(a,n)&&a.forEach((function(e,t){var n=g(t,l-1),r=g(e,l-1);m.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=g(e,l-1);m.add(t)})),a){var _;v&&(_=Object.getOwnPropertyDescriptor(v,b)),_&&null==_.set||(m[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(a);for(b=0;b<w.length;b++){var x=w[b],O=Object.getOwnPropertyDescriptor(a,x);(!O||O.enumerable||f)&&(m[x]=g(a[x],l-1),O.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(f){var S=Object.getOwnPropertyNames(a);for(b=0;b<S.length;b++){var C=S[b];O=Object.getOwnPropertyDescriptor(a,C),O&&O.enumerable||(m[C]=g(a[C],l-1),Object.defineProperty(m,C,{enumerable:!1}))}}return m}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),g(a,l)}function a(e){return Object.prototype.toString.call(e)}function s(e){return"object"===typeof e&&"[object Date]"===a(e)}function l(e){return"object"===typeof e&&"[object Array]"===a(e)}function u(e){return"object"===typeof e&&"[object RegExp]"===a(e)}function c(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=c,o}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(61),o=n(34),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){var t=this;e.prototype.attach.call(this),this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(){if(e.prototype.optimize.call(this),0===this.children.length)if(null!=this.statics.defaultChild){var t=a.create(this.statics.defaultChild);this.appendChild(t),t.optimize()}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e){var t=this,n=[],r=[];e.forEach((function(e){e.target===t.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var n=a.find(e);null!=n&&(null!=n.domNode.parentNode&&n.domNode.parentNode!==t.domNode||n.detach())}})),n.filter((function(e){return e.parentNode==t.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var n=null;null!=e.nextSibling&&(n=a.find(e.nextSibling));var r=l(e);r.next==n&&null!=r.next||(null!=r.parent&&r.parent.removeChild(t),t.insertBefore(r,n))}))},t}(o.default);function l(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),o=n(32),a=n(21),s=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.attach=function(){e.prototype.attach.call(this),this.attributes=new o.default(this.domNode)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t){var n=this;e.prototype.update.call(this,t),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return e!==this.domNode?-1:Math.min(t,1)},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t}(i.default);a.scope=o.Scope.INLINE_BLOT,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=s(r),o=n(4),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),t}(i.default.Container);f.allowedChildren=[a.default,o.BlockEmbed,f],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=p(a),l=n(7),u=p(l),c=n(12),f=p(c),d=n(5),h=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(e){function t(e,n){g(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return v(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var r=this,o=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){var e=this;if(!this.selection.composing&&null!=this.parent){var n=this.textNode,i=this.selection.getNativeRange(),o=void 0,a=void 0,l=void 0;if(null!=i&&i.start.node===n&&i.end.node===n){var u=[n,i.start.offset,i.end.offset];o=u[0],a=u[1],l=u[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof f.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}this.remove(),null!=a&&this.selection.emitter.once(h.default.events.SCROLL_OPTIMIZE,(function(){var t=[a,l].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),n=r(t,2);a=n[0],l=n[1],e.selection.setNativeRange(o,a,o,l)}))}}},{key:"update",value:function(e){var t=this;e.forEach((function(e){"characterData"===e.type&&e.target===t.textNode&&t.restore()}))}},{key:"value",value:function(){return""}}]),t}(u.default);y.blotName="cursor",y.className="ql-cursor",y.tagName="span",y.CONTENTS="\ufeff",t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new f("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=f,t.ColorClass=d,t.ColorStyle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(8),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return d(e,["http","https","mailto"])?e:this.SANITIZED_URL}}]),t}(a.default);function d(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",t.default=f,t.sanitize=d},function(e,t,n){"use strict";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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(88),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(t){var n=this;l(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.container.classList.toggle("ql-expanded")})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),n.hasAttribute("selected")&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(19),s=x(a),l=n(11),u=x(l),c=n(3),f=x(c),d=n(20),h=x(d),p=n(0),g=x(p),m=n(6),v=x(m),y=n(10),b=x(y),_=n(9),w=x(_);function x(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var k=(0,b.default)("quill:keyboard"),E=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",A=function(e){function t(e,n){O(this,t);var r=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},P),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},T),r.addBinding({key:t.keys.DELETE},{collapsed:!0},D)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},T),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},M),r.addBinding({key:t.keys.DELETE},{collapsed:!1},M),r.addBinding({key:t.keys.BACKSPACE},{empty:!0,shortKey:!0},T),r.listen(),r}return C(t,e),o(t,null,[{key:"match",value:function(e,t){return t=L(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L(e);if(null==r||null==r.key)return k.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=i(l,2),f=c[0],d=c[1],h=e.quill.getLeaf(s.index),p=i(h,2),m=p[0],v=p[1],y=0===s.length?[m,v]:e.quill.getLeaf(s.index+s.length),b=i(y,2),_=b[0],w=b[1],x=m instanceof g.default.Text?m.value().slice(0,v):"",O=_ instanceof g.default.Text?_.value().slice(w):"",S={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:x,suffix:O},C=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,u.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,s,S)}));C&&n.preventDefault()}}}}))}}]),t}(w.default);function T(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=o.formats(),l=this.quill.getFormat(e.index-1,1);a=h.default.attributes.diff(s,l)||{}}var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-u,u,v.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-u,u,a,v.default.sources.USER),this.quill.selection.scrollIntoView()}}function D(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;e.index>=this.quill.getLength()-n||this.quill.deleteText(e.index,n,v.default.sources.USER)}function M(e){this.quill.deleteText(e,v.default.sources.USER),this.quill.setSelection(e.index,v.default.sources.SILENT),this.quill.selection.scrollIntoView()}function P(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return g.default.query(n,g.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,v.default.sources.USER),this.quill.setSelection(e.index+1,v.default.sources.SILENT),this.quill.selection.scrollIntoView(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],v.default.sources.USER))}))}function I(e){return{key:A.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=g.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,d=l.newlineIndex(c+u+o),h=l.domNode.textContent.slice(f,d).split("\n");u=0,h.forEach((function(t,i){e?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=t.length+1})),this.quill.update(v.default.sources.USER),this.quill.setSelection(r,o,v.default.sources.SILENT)}}}}function j(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],v.default.sources.USER)}}}function L(e){if("string"===typeof e||"number"===typeof e)return L({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=A.keys[e.key.toUpperCase()])e.key=A.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[E]=e.shortKey,delete e.shortKey),e}A.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},A.DEFAULTS={bindings:{bold:j("bold"),italic:j("italic"),underline:j("underline"),indent:{key:A.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:A.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},"outdent backspace":{key:A.keys.BACKSPACE,collapsed:!0,format:["blockquote","indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",v.default.sources.USER):null!=t.format.blockquote?this.quill.format("blockquote",!1,v.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":I(!0),"outdent code-block":I(!1),"remove tab":{key:A.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,v.default.sources.USER)}},tab:{key:A.keys.TAB,handler:function(e,t){t.collapsed||this.quill.scroll.deleteAt(e.index,e.length),this.quill.insertText(e.index,"\t",v.default.sources.USER),this.quill.setSelection(e.index+1,v.default.sources.SILENT)}},"list empty enter":{key:A.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,v.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:A.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){this.quill.scroll.insertAt(e.index,"\n");var t=this.quill.getLine(e.index+1),n=i(t,1),r=n[0];r.format("list","unchecked"),this.quill.update(v.default.sources.USER),this.quill.setSelection(e.index+1,v.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"header enter":{key:A.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e){this.quill.scroll.insertAt(e.index,"\n"),this.quill.formatText(e.index+1,1,"header",!1,v.default.sources.USER),this.quill.setSelection(e.index+1,v.default.sources.SILENT),this.quill.selection.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(1\.|-|\[ \]|\[x\])$/,handler:function(e,t){if(null!=this.quill.scroll.whitelist&&!this.quill.scroll.whitelist["list"])return!0;var n=t.prefix.length,r=void 0;switch(t.prefix.trim()){case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":r="bullet";break;default:r="ordered"}this.quill.scroll.deleteAt(e.index-n,n),this.quill.formatLine(e.index-n,1,"list",r,v.default.sources.USER),this.quill.setSelection(e.index-n,v.default.sources.SILENT)}},"code exit":{key:A.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){this.quill.format("code-block",!1,v.default.sources.USER),this.quill.deleteText(e.index-2,1,v.default.sources.USER)}}}},t.default=A,t.SHORTKEY=E},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(13);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),i=n(31),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(13);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.attach()}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){this.domNode[r.DATA_KEY]={blot:this}},e.prototype.clone=function(){var e=this.domNode.cloneNode();return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){if(null!=this.parent&&this.parent.children.remove(this),e.children.insertBefore(this,t),null!=t)var n=t.domNode;null!=this.next&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,"undefined"!==typeof n?n:null),this.parent=e},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e){void 0===e&&(e=[])},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e}();i.blotName="abstract",t.default=i},function(e,t,n){"use strict";var r=n(0),i=T(r),o=n(6),a=T(o),s=n(4),l=T(s),u=n(17),c=T(u),f=n(24),d=T(f),h=n(25),p=T(h),g=n(7),m=T(g),v=n(8),y=T(v),b=n(18),_=T(b),w=n(12),x=T(w),O=n(45),S=T(O),C=n(42),k=T(C),E=n(30),A=T(E);function T(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":m.default,"blots/inline":y.default,"blots/scroll":_.default,"blots/text":x.default,"modules/clipboard":S.default,"modules/history":k.default,"modules/keyboard":A.default}),i.default.register(l.default,c.default,p.default,y.default,_.default,x.default),e.exports=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),l=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=n(0),i=a(r),o=n(26);function a(e){return e&&e.__esModule?e:{default:e}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),l=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",f),h=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new h("font","font-family",f);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(79),center:n(77),right:n(80),justify:n(78)},background:n(81),blockquote:n(82),bold:n(83),clean:n(84),code:n(55),"code-block":n(55),color:n(85),direction:{"":n(86),rtl:n(87)},float:{center:n(89),full:n(90),left:n(91),right:n(92)},formula:n(93),header:{1:n(95),2:n(94)},italic:n(98),image:n(96),indent:{"+1":n(97),"-1":n(103)},link:n(99),list:{ordered:n(102),bullet:n(100),check:n(101)},script:{sub:n(105),super:n(106)},strike:n(104),underline:n(107),video:n(108)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=c(i),a=n(6),s=c(a),l=n(9),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return h(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],s.default.sources.USER),this.ignoreChange=!1;var r=m(n[e]);this.quill.setSelection(r),this.quill.selection.scrollIntoView(),this.stack[t].push(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(u.default);function g(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function m(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return g(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=m},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(8),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"optimize",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=w(o),s=n(0),l=w(s),u=n(6),c=w(u),f=n(10),d=w(f),h=n(9),p=w(h),g=n(36),m=n(37),v=n(26),y=n(38),b=n(39),_=n(40);function w(e){return e&&e.__esModule?e:{default:e}}function x(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(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 S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function k(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=(0,d.default)("quill:clipboard"),A="__ql-matcher",T=[[Node.TEXT_NODE,V],["br",F],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,H],["b",R.bind(R,"bold")],["i",R.bind(R,"italic")],["style",z]],D=[g.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),M=[g.AlignStyle,m.BackgroundStyle,v.ColorStyle,y.DirectionStyle,b.FontStyle,_.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),P=function(e){function t(e,n){S(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],T.concat(r.options.matchers).forEach((function(e){r.addMatcher.apply(r,O(e))})),r}return k(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){"string"===typeof e&&(this.container.innerHTML=e);var t=this.prepareMatching(),n=r(t,2),i=n[0],o=n[1],s=N(this.container,i,o);return j(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new a.default).retain(s.length()-1).delete(1))),E.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"===typeof e)return this.quill.setContents(this.convert(e),t);var r=this.convert(t);return this.quill.updateContents((new a.default).retain(e).concat(r),n)}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new a.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),setTimeout((function(){t.quill.selection.update(c.default.sources.SILENT),r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,c.default.sources.USER),t.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.selection.scrollIntoView()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[A]=e[A]||[],e[A].push(s)}));break}})),[t,n]}}]),t}(p.default);function I(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function j(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function L(e){if(0===e.childNodes.length)return!1;var t=I(e);return["block","list-item"].indexOf(t.display)>-1}function N(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=N(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[A]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new a.default):new a.default}function R(e,t,n){return n.compose((new a.default).retain(n.length(),x({},e,!0)))}function B(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null!=D[t]&&(n=D[t],o[n.attrName]=n.value(e)||void 0),null!=M[t]&&(n=M[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=t.compose((new a.default).retain(t.length(),o))),t}function $(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new a.default).insert(r,n.formats(e)))}else if("function"===typeof n.formats){var o=x({},n.blotName,n.formats(e));t=t.compose((new a.default).retain(t.length(),o))}return t}function F(e,t){return j(t,"\n")||t.insert("\n"),t}function z(){return new a.default}function q(e,t){return L(e)&&!j(t,"\n")&&t.insert("\n"),t}function U(e,t){if(L(e)&&null!=e.nextElementSibling&&!j(t,"\n\n")){var n=e.offsetHeight+parseFloat(I(e).marginTop)+parseFloat(I(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function H(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===I(e).fontStyle&&(n.italic=!0),r.fontWeight&&"bold"===I(e).fontWeight&&(n.bold=!0),Object.keys(n).length>0&&(t=t.compose((new a.default).retain(t.length(),n))),parseFloat(r.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}function V(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(!I(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&L(e.parentNode)||null!=e.previousSibling&&L(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&L(e.parentNode)||null!=e.nextSibling&&L(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}P.DEFAULTS={matchers:[]},t.default=P,t.matchAttributor=B,t.matchBlot=$,t.matchNewline=q,t.matchSpacing=U,t.matchText=V},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=g(o),s=n(0),l=g(s),u=n(6),c=g(u),f=n(10),d=g(f),h=n(9),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=(0,d.default)("quill:toolbar"),w=function(e){function t(e,n){v(this,t);var i,o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");O(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1),n=t[0];o.update(n)})),o):(i=_.error("Container required for toolbar",o.options),y(o,i))}return b(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var o=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),f=r(u,1),d=f[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(m({},n,o)),c.default.sources.USER)}else t.quill.format(n,o,c.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(p.default);function x(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function O(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)x(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?S(n,t,r):x(n,t,r)}})),e.appendChild(n)}))}function S(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,c.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",c.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",e,c.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,c.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",e,c.default.sources.USER)}}},t.default=w,t.addControls=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=O(o),s=n(2),l=O(s),u=n(5),c=O(u),f=n(30),d=O(f),h=n(29),p=O(h),g=n(48),m=O(g),v=n(49),y=O(v),b=n(28),_=O(b),w=n(50),x=O(w);function O(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function k(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=[!1,"center","right","justify"],A=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],T=[!1,"serif","monospace"],D=["1","2","3",!1],M=["small",!1,"large","huge"],P=function(e){function t(e,n){S(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return document.body.addEventListener("click",i),r}return k(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&j(e,E),new y.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&j(e,A,"background"===n?"#ffffff":"#000000"),new m.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?j(e,T):e.classList.contains("ql-header")?j(e,D):e.classList.contains("ql-size")&&j(e,M)),new _.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(c.default.events.SELECTION_CHANGE,r).on(c.default.events.SCROLL_OPTIMIZE,r)}}]),t}(p.default);P.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon, image/svg+xml"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(e){function t(e,n){S(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return k(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){d.default.match(t,"enter")?(e.save(),t.preventDefault()):d.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,c.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":var n=e.match(/^(https?):\/\/(www\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(https?):\/\/(www\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);n?e=n[1]+"://www.youtube.com/embed/"+n[3]+"?showinfo=0":(n=e.match(/^(https?):\/\/(www\.)?vimeo\.com\/(\d+)/))&&(e=n[1]+"://player.vimeo.com/video/"+n[3]+"/");case"formula":if(!e)break;var r=this.quill.getSelection(!0),i=r.index+r.length;null!=r&&(this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",c.default.sources.USER),this.quill.setSelection(i+2,c.default.sources.USER));break;default:}this.textbox.value="",this.hide()}}]),t}(x.default);function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=I,t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return c(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?r:i,t.supported=r,t.unsupported=i},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.length<n)&&(n=null);var r=u(e,t),o=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=c(e,t);var s=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var l=a(e,t);return o&&l.unshift([i,o]),s&&l.push([i,s]),d(l),null!=n&&(l=g(l,n)),l}function a(e,t){var a;if(!e)return[[r,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[r,t]];var d=f(e,t);if(d){var h=d[0],p=d[1],g=d[2],m=d[3],v=d[4],y=o(h,g),b=o(p,m);return y.concat([[i,v]],b)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),d=0;d<u;d++)c[d]=-1,f[d]=-1;c[s+1]=0,f[s+1]=0;for(var h=i-o,p=h%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var _=-b+g;_<=b-m;_+=2){var w=s+_;E=_==-b||_!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1;var x=E-_;while(E<i&&x<o&&e.charAt(E)==t.charAt(x))E++,x++;if(c[w]=E,E>i)m+=2;else if(x>o)g+=2;else if(p){var O=s+h-_;if(O>=0&&O<u&&-1!=f[O]){var S=i-f[O];if(E>=S)return l(e,t,E,x)}}}for(var C=-b+v;C<=b-y;C+=2){O=s+C,S=C==-b||C!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1;var k=S-C;while(S<i&&k<o&&e.charAt(i-S-1)==t.charAt(o-k-1))S++,k++;if(f[O]=S,S>i)y+=2;else if(k>o)v+=2;else if(!p&&(w=s+h-C,w>=0&&w<u&&-1!=c[w])){var E=c[w];if(x=s+E-w,S=i-S,E>=S)return l(e,t,E,x)}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function f(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){var r,i,o,a,s=e.substring(n,n+Math.floor(e.length/4)),l=-1,f="";while(-1!=(l=t.indexOf(s,l+1))){var d=u(e.substring(n),t.substring(l)),h=c(e.substring(0,n),t.substring(0,l));f.length<h+d&&(f=t.substring(l-h,l)+t.substring(l,l+d),r=e.substring(0,n-h),i=e.substring(n+d),o=t.substring(0,l-h),a=t.substring(l+d))}return 2*f.length>=e.length?[r,i,o,a,f]:null}var o,a,s,l,f,d=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!d&&!h)return null;o=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],f=o[3]):(l=o[0],f=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,f,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",f="";while(o<e.length)switch(e[o][0]){case r:s++,f+=e[o][1],o++;break;case n:a++,l+=e[o][1],o++;break;case i:a+s>1?(0!==a&&0!==s&&(t=u(f,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=f.substring(0,t):(e.splice(0,0,[i,f.substring(0,t)]),o++),f=f.substring(t),l=l.substring(t)),t=c(f,l),0!==t&&(e[o][1]=f.substring(f.length-t)+e[o][1],f=f.substring(0,f.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,f]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,f]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",f="";break}""===e[e.length-1][1]&&e.pop();var h=!1;o=1;while(o<e.length-1)e[o-1][0]==i&&e[o+1][0]==i&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),h=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),h=!0)),o++;h&&d(e)}var h=o;function p(e,t){if(0===t)return[i,e];for(var r=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var l=t-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return e.splice(o,1,u,c),[o+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=p(e,t),r=n[1],o=n[0],a=r[o],s=r[o+1];if(null==a)return e;if(a[0]!==i)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(o,2,s,a),m(r,o,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(o+2,0,[s[0],l]),m(r,o,3)}return e}function m(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}h.INSERT=r,h.DELETE=n,h.EQUAL=i,e.exports=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t){navigator.userAgent.match(/Trident/)?this.attach():e.prototype.update.call(this,t)},t}(i.default);a.blotName="block",a.scope=o.Scope.BLOCK_BLOT,a.tagName="P",t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(){e.prototype.optimize.call(this);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&a(n,r.formats())&&(r.moveChildren(this),r.remove())},t}(i.default);s.blotName="inline",s.scope=o.Scope.INLINE_BLOT,s.tagName="SPAN",t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.parent=null,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t){var n=this;void 0===t&&(t=[]),e.prototype.optimize.call(this);var r=[].slice.call(this.observer.takeRecords());while(r.length>0)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&a(e.parent))},l=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize())},u=t,c=0;u.length>0;c+=1){if(c>=s)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);a(t,!1),t instanceof i.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(l),u=[].slice.call(this.observer.takeRecords()),r=u.slice();while(r.length>0)t.push(r.pop())}},t.prototype.update=function(t){var n=this;t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);if(null!=t)return null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[])})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations),this.optimize(t)},t}(i.default);l.blotName="scroll",l.defaultChild="block",l.scope=o.Scope.BLOCK_BLOT,l.tagName="DIV",t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){return e.data},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(){e.prototype.optimize.call(this),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e){var t=this;e.some((function(e){return"characterData"===e.type&&e.target===t.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t}(i.default);a.blotName="text",a.scope=o.Scope.INLINE_BLOT,t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=void 0,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],void 0),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=void 0,this.head=this.tail=e),this.length+=1},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var r,i=this.find(e),o=i[0],a=i[1],s=e-a,l=this.iterator(o);while((r=l())&&s<e+t){var u=r.length();e>s?n(r,e-s,Math.min(t,s+u-e)):n(r,0,Math.min(u,e+t-s)),s+=u}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=n(35),i=ne(r),o=n(36),a=n(38),s=n(67),l=n(64),u=ne(l),c=n(65),f=ne(c),d=n(69),h=ne(d),p=n(37),g=n(26),m=n(39),v=n(40),y=n(44),b=ne(y),_=n(68),w=ne(_),x=n(27),O=ne(x),S=n(70),C=ne(S),k=n(71),E=ne(k),A=n(72),T=ne(A),D=n(66),M=ne(D),P=n(73),I=ne(P),j=n(16),L=ne(j),N=n(74),R=ne(N),B=n(75),$=ne(B),F=n(46),z=ne(F),q=n(41),U=ne(q),H=n(28),V=ne(H),W=n(48),K=ne(W),G=n(49),Y=ne(G),X=n(50),Z=ne(X),Q=n(76),J=ne(Q),ee=n(63),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":m.FontClass,"formats/size":v.SizeClass,"formats/blockquote":u.default,"formats/code-block":L.default,"formats/header":f.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":j.Code,"formats/italic":w.default,"formats/link":O.default,"formats/script":C.default,"formats/strike":E.default,"formats/underline":T.default,"formats/image":M.default,"formats/video":I.default,"formats/list/item":d.ListItem,"modules/formula":R.default,"modules/syntax":$.default,"modules/toolbar":z.default,"themes/bubble":J.default,"themes/snow":te.default,"ui/icons":U.default,"ui/picker":V.default,"ui/icon-picker":Y.default,"ui/color-picker":K.default,"ui/tooltip":Z.default},!0),e.exports=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=v(a),l=n(5),u=v(l),c=n(47),f=v(c),d=n(27),h=v(d),p=n(15),g=n(41),m=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(e){function t(e,n){y(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return _(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),m.default),this.tooltip=new O(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(f.default);x.DEFAULTS=(0,s.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(e){function t(e,n){y(this,t);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return _(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,u.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===u.default.sources.USER){var o=e.quill.scroll.descendant(h.default,t.index),a=r(o,2),s=a[0],l=a[1];if(null!=s){e.linkRange=new p.Range(t.index-l,s.length());var c=h.default.formats(s.domNode);return e.preview.textContent=c,e.preview.setAttribute("href",c),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=l(o),s=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),d=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=f(o),s=n(4),l=f(s),u=n(24),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:"format",value:function(e,n){e!==v.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);m.blotName="list-item",m.tagName="LI";var v=function(e){function t(e){h(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.addEventListener("click",(function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=a.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}})),n}return g(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof m)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===this.statics.blotName&&e.domNode.tagName===this.domNode.tagName&&e.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(e.moveChildren(this),e.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(c.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[m],t.ListItem=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(8),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="strike",u.tagName="S",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="underline",u.tagName="U",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(4),a=n(27),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=f(o),s=n(6),l=f(s),u=n(9),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return d(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,[{key:"index",value:function(){return 1}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n),n.setAttribute("data-value",e)),n.setAttribute("contenteditable",!1),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var m=function(e){function t(){d(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){l.default.register(g,!0)}}]),t}(c.default);t.FormulaBlot=g,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=h(o),s=n(6),l=h(s),u=n(9),c=h(u),f=n(16),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return p(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){if(this.cachedHTML!==this.domNode.innerHTML){var t=this.domNode.textContent;(t.trim().length>0||null==this.cachedHTML)&&(this.domNode.innerHTML=e(t),this.attach()),this.cachedHTML=this.domNode.innerHTML}}}]),t}(d.default);v.className="ql-syntax";var y=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(e){function t(e,n){p(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){null==i&&(i=setTimeout((function(){r.highlight(),i=null}),100))})),r.highlight(),r}return m(t,e),r(t,null,[{key:"register",value:function(){l.default.register(y,!0),l.default.register(v,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}()},t.CodeBlock=v,t.CodeToken=y,t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=p(o),s=n(5),l=p(s),u=n(47),c=p(u),f=n(15),d=n(41),h=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(e){function t(e,n){g(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(e){function t(e,n){g(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-s),c=r.quill.getBounds(new f.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=_,t.default=b},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9></line> <path class="ql-stroke ql-thin" d=M15.5,14.5h-2c0-.234,1.85-1.076,1.85-2.234a0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=3 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=11 y1=4 y2=14></line> <line class=ql-stroke x1=11 x2=3 y1=9 y2=9></line> <line class="ql-stroke ql-thin" x1=13.5 x2=15.5 y1=14.5 y2=14.5></line> <path class=ql-fill d=M14.5,15a0.5,0.5,0,0,1-.5-0.5V12.085l-0.276.138A0.5,0.5,0,0,1,13.053,12c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,15,11.5v3A0.5,0.5,0,0,1,14.5,15Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(62)}])}))}).call(this,n("b639").Buffer)},c482:function(e,t,n){},c49b:function(e,t,n){(function(e){ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})),function(){ace.require(["ace/theme/monokai"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(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 f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return h(e)&&y(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document}function O(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)O(arguments[n],t);return e}function C(e,t,n){return O(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:c,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:x,forEach:O,merge:S,extend:C,trim:w,stripBOM:k}},c619:function(e,t,n){"use strict";function r(e){return function(){return e}}var i=r,o=n("0305"),a=n("f976"),s=o["a"]?function(e,t){return Object(o["a"])(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:a["a"],l=s,u=800,c=16,f=Date.now;function d(e){var t=0,n=0;return function(){var r=f(),i=c-(r-n);if(n=r,i>0){if(++t>=u)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var h=d,p=h(l);t["a"]=p},c6eb:function(e,t,n){"use strict";(function(e){var r=n("5ea3"),i=exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r["a"].process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t["a"]=l}).call(this,n("dd40")(e))},c739:function(e,t,n){"use strict";n.r(t);var r=n("cec2"),i=n("6944"),o=n.n(i);n("0808"),n("4e48"),r["a"].install=function(e){e.component("SFileView",r["a"]),e.use(o.a)},t["default"]=r["a"]},c743:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"time"},[e._v(" "+e._s(e.showTime)+" ")])},i=[],o=n("e74d"),a={name:"sTime",data(){return{}},props:{value:{type:[String,Number,Date,Array],default:""},format:String,rangeSeparator:{type:String,default:"至"}},computed:{showTime(){if(Array.isArray(this.value)&&this.value.length>0){const e=Object(o["dateFormat"])(this.format||"yyyy-MM-dd HH:mm:ss",this.value[0]||""),t=Object(o["dateFormat"])(this.format||"yyyy-MM-dd HH:mm:ss",this.value[1]||"");return e+this.rangeSeparator+t}return!Array.isArray(this.value)&&this.value?Object(o["dateFormat"])(this.format||"yyyy-MM-dd HH:mm:ss",this.value):""}}},s=a,l=(n("b6b6"),n("2877")),u=Object(l["a"])(s,r,i,!1,null,null,null),c=u.exports;c.install=function(e){e.component("STime",c)},t["default"]=c},c82c:function(e,t,n){
/*!
 * Viewer.js v1.9.2
 * https://fengyuanchen.github.io/viewerjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2021-05-29T03:50:07.891Z
 */
(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e){return 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},n(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},l='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',u="undefined"!==typeof window&&"undefined"!==typeof window.document,c=u?window:{},f=!(!u||!c.document.documentElement)&&"ontouchstart"in c.document.documentElement,d=!!u&&"PointerEvent"in c,h="viewer",p="move",g="switch",m="zoom",v="".concat(h,"-active"),y="".concat(h,"-close"),b="".concat(h,"-fade"),_="".concat(h,"-fixed"),w="".concat(h,"-fullscreen"),x="".concat(h,"-fullscreen-exit"),O="".concat(h,"-hide"),S="".concat(h,"-hide-md-down"),C="".concat(h,"-hide-sm-down"),k="".concat(h,"-hide-xs-down"),E="".concat(h,"-in"),A="".concat(h,"-invisible"),T="".concat(h,"-loading"),D="".concat(h,"-move"),M="".concat(h,"-open"),P="".concat(h,"-show"),I="".concat(h,"-transition"),j="click",L="dblclick",N="dragstart",R="focusin",B="keydown",$="load",F=f?"touchend touchcancel":"mouseup",z=f?"touchmove":"mousemove",q=f?"touchstart":"mousedown",U=d?"pointerdown":q,H=d?"pointermove":z,V=d?"pointerup pointercancel":F,W="resize",K="transitionend",G="wheel",Y="ready",X="show",Z="shown",Q="hide",J="hidden",ee="view",te="viewed",ne="move",re="moved",ie="rotate",oe="rotated",ae="scale",se="scaled",le="zoom",ue="zoomed",ce="play",fe="stop",de="".concat(h,"Action"),he=/\s\s*/,pe=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function ge(e){return"string"===typeof e}var me=Number.isNaN||c.isNaN;function ve(e){return"number"===typeof e&&!me(e)}function ye(e){return"undefined"===typeof e}function be(e){return"object"===n(e)&&null!==e}var _e=Object.prototype.hasOwnProperty;function we(e){if(!be(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&_e.call(n,"isPrototypeOf")}catch(r){return!1}}function xe(e){return"function"===typeof e}function Oe(e,t){if(e&&xe(t))if(Array.isArray(e)||ve(e.length)){var n,r=e.length;for(n=0;n<r;n+=1)if(!1===t.call(e,e[n],n,e))break}else be(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}));return e}var Se=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return be(e)&&n.length>0&&n.forEach((function(t){be(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},Ce=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ke(e,t){var n=e.style;Oe(t,(function(e,t){Ce.test(t)&&ve(e)&&(e+="px"),n[t]=e}))}function Ee(e){return ge(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function Ae(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function Te(e,t){if(e&&t)if(ve(e.length))Oe(e,(function(e){Te(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function De(e,t){e&&t&&(ve(e.length)?Oe(e,(function(e){De(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Me(e,t,n){t&&(ve(e.length)?Oe(e,(function(e){Me(e,t,n)})):n?Te(e,t):De(e,t))}var Pe=/([a-z\d])([A-Z])/g;function Ie(e){return e.replace(Pe,"$1-$2").toLowerCase()}function je(e,t){return be(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Ie(t)))}function Le(e,t,n){be(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Ie(t)),n)}var Ne=function(){var e=!1;if(u){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function Re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(he).forEach((function(t){if(!Ne){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function Be(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(he).forEach((function(t){if(r.once&&!Ne){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function $e(e,n,r,i){var o;return xe(Event)&&xe(CustomEvent)?o=new CustomEvent(n,t({bubbles:!0,cancelable:!0,detail:r},i)):(o=document.createEvent("CustomEvent"),o.initCustomEvent(n,!0,!0,r)),e.dispatchEvent(o)}function Fe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function ze(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];ve(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),ve(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),ve(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),ve(n)&&1!==n&&a.push("scaleX(".concat(n,")")),ve(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function qe(e){return ge(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var Ue=c.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(c.navigator.userAgent);function He(e,t,n){var r=document.createElement("img");if(e.naturalWidth&&!Ue)return n(e.naturalWidth,e.naturalHeight),r;var i=document.body||document.documentElement;return r.onload=function(){n(r.width,r.height),Ue||i.removeChild(r)},Oe(t.inheritedAttributes,(function(t){var n=e.getAttribute(t);null!==n&&r.setAttribute(t,n)})),r.src=e.src,Ue||(r.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",i.appendChild(r)),r}function Ve(e){switch(e){case 2:return k;case 3:return C;case 4:return S;default:return""}}function We(e){var n=t({},e),r=[];return Oe(e,(function(e,t){delete n[t],Oe(n,(function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=Math.sqrt(o*o+a*a),u=(l-s)/s;r.push(u)}))})),r.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),r[0]}function Ke(e,n){var r=e.pageX,i=e.pageY,o={endX:r,endY:i};return n?o:t({timeStamp:Date.now(),startX:r,startY:i},o)}function Ge(e){var t=0,n=0,r=0;return Oe(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),t/=r,n/=r,{pageX:t,pageY:n}}var Ye={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=Se({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&ke(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,r=this.list,i=[];r.innerHTML="",Oe(this.images,(function(t,o){var a=t.src,s=t.alt||qe(a),l=e.getImageURL(t);if(a||l){var u=document.createElement("li"),c=document.createElement("img");Oe(n.inheritedAttributes,(function(e){var n=t.getAttribute(e);null!==n&&c.setAttribute(e,n)})),c.src=a||l,c.alt=s,c.setAttribute("data-original-url",l||a),u.setAttribute("data-index",o),u.setAttribute("data-viewer-action","view"),u.setAttribute("role","button"),n.keyboard&&u.setAttribute("tabindex",0),u.appendChild(c),r.appendChild(u),i.push(u)}})),this.items=i,Oe(i,(function(t){var r=t.firstElementChild;Le(r,"filled",!0),n.loading&&Te(t,T),Be(r,$,(function(r){n.loading&&De(t,T),e.loadImage(r)}),{once:!0})})),n.transition&&Be(t,te,(function(){Te(r,I)}),{once:!0})},renderList:function(e){var t=e||this.index,n=this.items[t].offsetWidth||30,r=n+1;ke(this.list,Se({width:r*this.length},ze({translateX:(this.viewerData.width-n)/2-r*t})))},resetList:function(){var e=this.list;e.innerHTML="",De(e,I),ke(e,ze({translateX:0}))},initImage:function(e){var t,n=this,r=this.options,i=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),u=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=He(i,r,(function(t,i){var o=t/i,a=s,c=l;n.imageInitializing=!1,l*o>s?c=s/o:a=l*o,a=Math.min(.9*a,t),c=Math.min(.9*c,i);var f=(s-a)/2,d=(l-c)/2,h={left:f,top:d,x:f,y:d,width:a,height:c,ratio:a/t,aspectRatio:o,naturalWidth:t,naturalHeight:i},p=Se({},h);r.rotatable&&(h.rotate=u.rotate||0,p.rotate=0),r.scalable&&(h.scaleX=u.scaleX||1,h.scaleY=u.scaleY||1,p.scaleX=1,p.scaleY=1),n.imageData=h,n.initialImageData=p,e&&e()}))},renderImage:function(e){var t=this,n=this.image,r=this.imageData;if(ke(n,Se({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},ze(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Ae(n,I)){var i=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Re(n,K,i)}},Be(n,K,i,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},Xe={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;Be(t,j,this.onClick=this.click.bind(this)),Be(t,N,this.onDragStart=this.dragstart.bind(this)),Be(n,U,this.onPointerDown=this.pointerdown.bind(this)),Be(r,H,this.onPointerMove=this.pointermove.bind(this)),Be(r,V,this.onPointerUp=this.pointerup.bind(this)),Be(r,B,this.onKeyDown=this.keydown.bind(this)),Be(window,W,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Be(t,G,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Be(n,L,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,r=this.element.ownerDocument;Re(t,j,this.onClick),Re(t,N,this.onDragStart),Re(n,U,this.onPointerDown),Re(r,H,this.onPointerMove),Re(r,V,this.onPointerUp),Re(r,B,this.onKeyDown),Re(window,W,this.onResize),e.zoomable&&e.zoomOnWheel&&Re(t,G,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Re(n,L,this.onDblclick)}},Ze={click:function(e){var t=this.options,n=this.imageData,r=e.target,i=je(r,de);switch(i||"img"!==r.localName||"li"!==r.parentElement.localName||(r=r.parentElement,i=je(r,de)),f&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),i){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(je(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(f&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle())},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,r=this.image,i=this.index,o=this.viewerData;De(r,A),n.loading&&De(this.canvas,T),r.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:absolute;width:0;",this.initImage((function(){Me(r,D,n.movable),Me(r,I,n.transition),e.renderImage((function(){e.viewed=!0,e.viewing=!1,xe(n.viewed)&&Be(t,te,n.viewed,{once:!0}),$e(t,te,{originalImage:e.images[i],index:i,image:r},{cancelable:!1})}))}))},loadImage:function(e){var t=e.target,n=t.parentNode,r=n.offsetWidth||30,i=n.offsetHeight||50,o=!!je(t,"filled");He(t,this.options,(function(e,n){var a=e/n,s=r,l=i;i*a>r?o?s=i*a:l=r/a:o?l=r/a:s=i*a,ke(t,Se({width:s,height:l},ze({translateX:(r-s)/2,translateY:(i-l)/2})))}))},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;switch(n){case 13:this.viewer.contains(e.target)&&this.click(e);break}if(this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle());break}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,i=e.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ve(r)&&1!==r||ve(i)&&0!==i||e.ctrlKey))){e.preventDefault(),e.changedTouches?Oe(e.changedTouches,(function(e){n[e.identifier]=Ke(e)})):n[e.pointerId||0]=Ke(e);var o=!!t.movable&&p;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o=m:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o=g),!t.transition||o!==p&&o!==m||De(this.image,I),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?Oe(e.changedTouches,(function(e){Se(t[e.identifier]||{},Ke(e,!0))})):Se(t[e.pointerId||0]||{},Ke(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,i=this.action,o=this.pointers;e.changedTouches?Oe(e.changedTouches,(function(e){t=o[e.identifier],delete o[e.identifier]})):(t=o[e.pointerId||0],delete o[e.pointerId||0]),i&&(e.preventDefault(),!r.transition||i!==p&&i!==m||Te(this.image,I),this.action=!1,f&&i!==m&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout((function(){$e(n.image,L)}),50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout((function(){n.imageClicked=!1}),500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout((function(){$e(n.canvas,j)}),50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage()})),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();Oe(this.player.getElementsByTagName("img"),(function(t){Be(t,$,e.loadImage.bind(e),{once:!0}),$e(t,$)}))}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,e)}}},Qe={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(xe(n.show)&&Be(t,X,n.show,{once:!0}),!1===$e(t,X)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(De(r,O),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),n.transition&&!e){var i=this.shown.bind(this);this.transitioning={abort:function(){Re(r,K,i),De(r,E)}},Te(r,I),r.initialOffsetWidth=r.offsetWidth,Be(r,K,i,{once:!0}),Te(r,E)}else Te(r,E),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.element,r=this.options;if(r.inline||this.hiding||!this.isShown&&!this.showing)return this;if(xe(r.hide)&&Be(n,Q,r.hide,{once:!0}),!1===$e(n,Q))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer,o=this.image,a=function(){De(i,E),e.hidden()};if(r.transition&&!t){var s=function t(n){n&&n.target===i&&(Re(i,K,t),e.hidden())},l=function(){Ae(i,I)?(Be(i,K,s),De(i,E)):a()};this.transitioning={abort:function(){e.viewed&&Ae(o,I)?Re(o,K,l):Ae(i,I)&&Re(i,K,s)}},this.viewed&&Ae(o,I)?(Be(o,K,l,{once:!0}),this.zoomTo(0,!1,!1,!0)):l()}else a();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,r=this.options,i=this.title,o=this.canvas,a=this.items[t],s=a.querySelector("img"),l=je(s,"originalUrl"),u=s.getAttribute("alt"),c=document.createElement("img");if(Oe(r.inheritedAttributes,(function(e){var t=s.getAttribute(e);null!==t&&c.setAttribute(e,t)})),c.src=l,c.alt=u,xe(r.view)&&Be(n,ee,r.view,{once:!0}),!1===$e(n,ee,{originalImage:this.images[t],index:t,image:c})||!this.isShown||this.hiding||this.played)return this;var f=this.items[this.index];De(f,v),f.removeAttribute("aria-selected"),Te(a,v),a.setAttribute("aria-selected",!0),r.focus&&a.focus(),this.image=c,this.viewed=!1,this.index=t,this.imageData={},Te(c,A),r.loading&&Te(o,T),o.innerHTML="",o.appendChild(c),this.renderList(),i.innerHTML="";var d,h=function(){var t=e.imageData,n=Array.isArray(r.title)?r.title[1]:r.title;i.innerHTML=Ee(xe(n)?n.call(e,c,t):"".concat(u," (").concat(t.naturalWidth," × ").concat(t.naturalHeight,")"))};return Be(n,te,h,{once:!0}),this.viewing={abort:function(){Re(n,te,h),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",Re(c,$,d),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(Be(c,$,d=this.load.bind(this),{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout((function(){De(c,A),e.timeout=!1}),1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(ye(e)?e:n.x+Number(e),ye(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.element,o=this.options,a=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var s=a.x,l=a.y,u=!1;if(ve(e)?u=!0:e=s,ve(n)?u=!0:n=l,u){if(xe(o.move)&&Be(i,ne,o.move,{once:!0}),!1===$e(i,ne,{x:e,y:n,oldX:s,oldY:l,originalEvent:r}))return this;a.x=e,a.y=n,a.left=e,a.top=n,this.moving=!0,this.renderImage((function(){t.moving=!1,xe(o.moved)&&Be(i,re,o.moved,{once:!0}),$e(i,re,{x:e,y:n,oldX:s,oldY:l,originalEvent:r},{cancelable:!1})}))}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,n=this.element,r=this.options,i=this.imageData;if(e=Number(e),ve(e)&&this.viewed&&!this.played&&r.rotatable){var o=i.rotate;if(xe(r.rotate)&&Be(n,ie,r.rotate,{once:!0}),!1===$e(n,ie,{degree:e,oldDegree:o}))return this;i.rotate=e,this.rotating=!0,this.renderImage((function(){t.rotating=!1,xe(r.rotated)&&Be(n,oe,r.rotated,{once:!0}),$e(n,oe,{degree:e,oldDegree:o},{cancelable:!1})}))}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=this.element,i=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&i.scalable){var a=o.scaleX,s=o.scaleY,l=!1;if(ve(e)?l=!0:e=a,ve(n)?l=!0:n=s,l){if(xe(i.scale)&&Be(r,ae,i.scale,{once:!0}),!1===$e(r,ae,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage((function(){t.scaling=!1,xe(i.scaled)&&Be(r,se,i.scaled,{once:!0}),$e(r,se,{scaleX:e,scaleY:n,oldScaleX:a,oldScaleY:s},{cancelable:!1})}))}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.imageData;return e=Number(e),e=e<0?1/(1-e):1+e,this.zoomTo(r.width*e/r.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.element,a=this.options,s=this.pointers,l=this.imageData,u=l.x,c=l.y,f=l.width,d=l.height,h=l.naturalWidth,p=l.naturalHeight;if(e=Math.max(0,e),ve(e)&&this.viewed&&!this.played&&(i||a.zoomable)){if(!i){var g=Math.max(.01,a.minZoomRatio),m=Math.min(100,a.maxZoomRatio);e=Math.min(Math.max(e,g),m)}r&&a.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);var v=h*e,y=p*e,b=v-f,_=y-d,w=f/h;if(xe(a.zoom)&&Be(o,le,a.zoom,{once:!0}),!1===$e(o,le,{ratio:e,oldRatio:w,originalEvent:r}))return this;if(this.zooming=!0,r){var x=Fe(this.viewer),O=s&&Object.keys(s).length?Ge(s):{pageX:r.pageX,pageY:r.pageY};l.x-=b*((O.pageX-x.left-u)/f),l.y-=_*((O.pageY-x.top-c)/d)}else l.x-=b/2,l.y-=_/2;l.left=l.x,l.top=l.y,l.width=v,l.height=y,l.ratio=e,this.renderImage((function(){t.zooming=!1,xe(a.zoomed)&&Be(o,ue,a.zoomed,{once:!0}),$e(o,ue,{ratio:e,oldRatio:w,originalEvent:r},{cancelable:!1})})),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.element,r=this.options;if(xe(r.play)&&Be(n,ce,r.play,{once:!0}),!1===$e(n,ce))return this;var i=this.player,o=this.loadImage.bind(this),a=[],s=0,l=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(),Te(i,P),Oe(this.items,(function(e,t){var n=e.querySelector("img"),u=document.createElement("img");u.src=je(n,"originalUrl"),u.alt=n.getAttribute("alt"),u.referrerPolicy=n.referrerPolicy,s+=1,Te(u,b),Me(u,I,r.transition),Ae(e,v)&&(Te(u,E),l=t),a.push(u),Be(u,$,o,{once:!0}),i.appendChild(u)})),ve(r.interval)&&r.interval>0){var u=function t(){e.playing=setTimeout((function(){De(a[l],E),l+=1,l=l<s?l:0,Te(a[l],E),t()}),r.interval)};s>1&&u()}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.element,n=this.options;if(xe(n.stop)&&Be(t,fe,n.stop,{once:!0}),!1===$e(t,fe))return this;var r=this.player;return this.played=!1,clearTimeout(this.playing),Oe(r.getElementsByTagName("img"),(function(t){Re(t,$,e.onLoadWhenPlay)})),De(r,P),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),Te(this.button,x),t.transition&&(De(i,I),this.viewed&&De(r,I)),Te(n,_),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),ke(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Se({},this.containerData),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Te(r,I),Te(i,I)}),0)}))}))),this},exit:function(){var e=this,t=this.options,n=this.viewer,r=this.image,i=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),De(this.button,x),t.transition&&(De(i,I),this.viewed&&De(r,I)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),De(n,_),ke(n,{zIndex:t.zIndexInline}),this.viewerData=Se({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage((function(){e.renderImage((function(){t.transition&&setTimeout((function(){Te(r,I),Te(i,I)}),0)}))})),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&$e(n,K),Te(n,P),Te(n,b),Te(n,I),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,Te(n,E)):(Te(n,P),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout((function(){t.transition?(Be(n,K,(function(){De(n,P),De(n,b),De(n,I),n.setAttribute("aria-hidden",!0),e.fading=!1}),{once:!0}),De(n,E),e.fading=!0):(De(n,P),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1}),1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.initialImageData.ratio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Se({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,r=this.isImg;if(r&&!t.parentNode)return this.destroy();var i=[];if(Oe(r?[t]:t.querySelectorAll("img"),(function(t){xe(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),!i.length)return this;if(this.images=i,this.length=i.length,this.ready){var o=[];if(Oe(this.items,(function(e,t){var n=e.querySelector("img"),r=i[t];r&&n&&r.src===n.src&&r.alt===n.alt||o.push(t)})),ke(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var a=o.indexOf(this.index);if(a>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-a,this.length-1),0));else{var s=this.items[this.index];Te(s,v),s.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e[h]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||Re(e,j,this.onStart),e[h]=void 0,this):this}},Je={getImageURL:function(e){var t=this.options.url;return t=ge(t)?e.getAttribute(t):xe(t)?t.call(this,e):"",t},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Be(document,R,this.onFocusin=function(t){var n=e.viewer,r=t.target;r===document||r===n||n.contains(r)||null!==r.getAttribute("tabindex")&&"true"===r.getAttribute("aria-modal")||n.focus()})},clearEnforceFocus:function(){this.onFocusin&&(Re(document,R,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;Te(e,M),e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var e=this.body;De(e,M),e.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var e=this.element,t=this.options,n=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,t.focus&&(n.focus(),this.enforceFocus()),xe(t.shown)&&Be(e,Z,t.shown,{once:!0}),!1!==$e(e,Z)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options,n=this.viewer;t.fucus&&this.clearEnforceFocus(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),Te(n,O),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),n.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(xe(t.hidden)&&Be(e,J,t.hidden,{once:!0}),$e(e,J,null,{cancelable:!1}))},requestFullscreen:function(){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var t=e.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var i=r.endX-r.startX,o=r.endY-r.startY;switch(this.action){case p:this.move(i,o,e);break;case m:this.zoom(We(n),!1,e);break;case g:this.action="switched";var a=Math.abs(i);a>1&&a>Math.abs(o)&&(this.pointers={},i>1?this.prev(t.loop):i<-1&&this.next(t.loop));break}Oe(n,(function(e){e.startX=e.endX,e.startY=e.endY}))}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},et=c.Viewer,tt=function(e){return function(){return e+=1,e}}(-1),nt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Se({},s,we(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.id=tt(),this.init()}return o(e,[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t[h]){t[h]=this,n.focus&&!n.keyboard&&(n.focus=!1);var r="img"===t.localName,i=[];if(Oe(r?[t]:t.querySelectorAll("img"),(function(t){xe(n.filter)?n.filter.call(e,t)&&i.push(t):e.getImageURL(t)&&i.push(t)})),this.isImg=r,this.length=i.length,this.images=i,this.initBody(),ye(document.createElement(h).style.transition)&&(n.transition=!1),n.inline){var o=0,a=function(){var t;o+=1,o===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout((function(){e.delaying=!1,e.build()}),0))};this.initializing={abort:function(){Oe(i,(function(e){e.complete||Re(e,$,a)}))}},Oe(i,(function(e){e.complete?a():Be(e,$,a,{once:!0})}))}else Be(t,j,this.onStart=function(t){var r=t.target;"img"!==r.localName||xe(n.filter)&&!n.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,r=document.createElement("div");r.innerHTML=l;var i=r.querySelector(".".concat(h,"-container")),o=i.querySelector(".".concat(h,"-title")),a=i.querySelector(".".concat(h,"-toolbar")),s=i.querySelector(".".concat(h,"-navbar")),u=i.querySelector(".".concat(h,"-button")),c=i.querySelector(".".concat(h,"-canvas"));if(this.parent=n,this.viewer=i,this.title=o,this.toolbar=a,this.navbar=s,this.button=u,this.canvas=c,this.footer=i.querySelector(".".concat(h,"-footer")),this.tooltipBox=i.querySelector(".".concat(h,"-tooltip")),this.player=i.querySelector(".".concat(h,"-player")),this.list=i.querySelector(".".concat(h,"-list")),i.id="".concat(h).concat(this.id),o.id="".concat(h,"Title").concat(this.id),Te(o,t.title?Ve(Array.isArray(t.title)?t.title[0]:t.title):O),Te(s,t.navbar?Ve(t.navbar):O),Me(u,O,!t.button),t.keyboard&&u.setAttribute("tabindex",0),t.backdrop&&(Te(i,"".concat(h,"-backdrop")),t.inline||"static"===t.backdrop||Le(c,de,"hide")),ge(t.className)&&t.className&&t.className.split(he).forEach((function(e){Te(i,e)})),t.toolbar){var f=document.createElement("ul"),d=we(t.toolbar),p=pe.slice(0,3),g=pe.slice(7,9),m=pe.slice(9);d||Te(a,Ve(t.toolbar)),Oe(d?t.toolbar:pe,(function(e,n){var r=d&&we(e),i=d?Ie(n):e,o=r&&!ye(e.show)?e.show:e;if(o&&(t.zoomable||-1===p.indexOf(i))&&(t.rotatable||-1===g.indexOf(i))&&(t.scalable||-1===m.indexOf(i))){var a=r&&!ye(e.size)?e.size:e,s=r&&!ye(e.click)?e.click:e,l=document.createElement("li");t.keyboard&&l.setAttribute("tabindex",0),l.setAttribute("role","button"),Te(l,"".concat(h,"-").concat(i)),xe(s)||Le(l,de,i),ve(o)&&Te(l,Ve(o)),-1!==["small","large"].indexOf(a)?Te(l,"".concat(h,"-").concat(a)):"play"===i&&Te(l,"".concat(h,"-large")),xe(s)&&Be(l,j,s),f.appendChild(l)}})),a.appendChild(f)}else Te(a,O);if(!t.rotatable){var v=a.querySelectorAll('li[class*="rotate"]');Te(v,A),Oe(v,(function(e){a.appendChild(e)}))}if(t.inline)Te(u,w),ke(i,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&ke(n,{position:"relative"}),n.insertBefore(i,e.nextSibling);else{Te(u,y),Te(i,_),Te(i,b),Te(i,O),ke(i,{zIndex:t.zIndex});var x=t.container;ge(x)&&(x=e.ownerDocument.querySelector(x)),x||(x=this.body),x.appendChild(i)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,xe(t.ready)&&Be(e,Y,t.ready,{once:!0}),!1!==$e(e,Y)?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=et,e}},{key:"setDefaults",value:function(e){Se(s,we(e)&&e)}}]),e}();return Se(nt.prototype,Ye,Xe,Ze,Qe,Je),nt}))},c85b:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-"+e.config.type,e._b({tag:"div",attrs:{options:e.config.options},on:{input:e.change,focus:e.focus,blur:e.blur},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},"div",e.config.props,!1))},i=[],o={name:"singleTag",data(){return{}},props:{value:String|Number,config:Object,mapper:Object,inputStyle:Object},computed:{model:{set(e){this.config.props&&"timestamp"===this.config.props.valueFormat&&!e?this.$emit("changeValue",e):(this.$emit("changeValue",e||""),this.$emit("input",e))},get(){return this.value}}},methods:{change(e){this.config.change&&this.$emit("change",e)},focus(){this.config.focus&&this.$emit("focus",this.value)},blur(){this.config.blur&&this.$emit("blur",this.value)}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["a"]=l.exports},c869:function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Set");e.exports=o},c87c:function(e,t){var n=Object.prototype,r=n.hasOwnProperty;function i(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}e.exports=i},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8fe:function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},ca54:function(e,t,n){"use strict";var r=n("26ee"),i=r["a"].Symbol;t["a"]=i},cb4c:function(e,t,n){"use strict";n("9005")},cb5a:function(e,t,n){var r=n("9638");function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},cbaa:function(e,t,n){},cc45:function(e,t,n){var r=n("1a2d"),i=n("b047"),o=n("99d3"),a=o&&o.isMap,s=a?i(a):r;e.exports=s},cc84:function(e,t,n){},cceb:function(e,t,n){"use strict";n("eb71")},cd26:function(e,t,n){"use strict";n("38c1")},ce86:function(e,t,n){var r=n("9e69"),i=n("7948"),o=n("6747"),a=n("ffd6"),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return i(e,c)+"";if(a(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=c},cec2:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fileView"},["file"===e.view?n("ul",{staticClass:"fileList"},e._l(e.showLength?e.viewList.slice(0,e.showLength):e.viewList,(function(t,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:t.name,expression:"item.name"}],key:"file"+r},[n("p",{on:{click:function(n){return e.previewHandle(t)}}},[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[n("use",{attrs:{"xlink:href":e._f("typeFilter")(t.name)}})]),e._v(" "+e._s(t.name)+" ")]),n("span",[n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.download(t)}}},[n("use",{attrs:{"xlink:href":"#icon-download"}})]),e.remove?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeFile(t)}}},[n("use",{attrs:{"xlink:href":"#icon-remove"}})]):e._e()])])})),0):e._e(),"image"===e.view?n("viewer",{ref:"viewer",attrs:{images:e.images}},[n("ul",{staticClass:"imageList",class:{remove:e.remove}},e._l(e.viewList,(function(t,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:!e.showLength||r<e.showLength,expression:"showLength?index<showLength:true"}],key:"file"+r,style:e.imageStyle},[String(t.url).indexOf(".mp4")>0||t.name&&".mp4"===t.name.substr(t.name.lastIndexOf(".")).slice(".")?[n("video",{attrs:{src:e.mergeConfig.domain+t.url},on:{click:function(n){return e.viewVideo(t.url)}}}),e.remove?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeFile(t)}}},[n("use",{attrs:{"xlink:href":"#icon-remove"}})]):e._e()]:[n("s-image",{attrs:{fileGetPath:e.fileGetPath,domain:e.mergeConfig.domain,value:t},on:{preview:e.previewHandler}}),n("div",{staticClass:"iconGroup"},[e.remove?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:function(n){return e.removeFile(t)}}},[n("use",{attrs:{"xlink:href":"#icon-remove"}})]):e._e(),e.preview?n("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:e.previewHandler}},[n("use",{attrs:{"xlink:href":"#icon-yulan"}})]):e._e()])]],2)})),0)]):e._e(),"slot"===e.view?n("div",{staticClass:"fileViewSlot"},[e._t("default",null,{data:e.viewList})],2):e._e(),e.model?n("div",{staticClass:"model"},[n("i",{staticClass:"el-icon el-icon-close",on:{click:function(t){e.model=!1}}}),n("video",{attrs:{controls:"",src:e.mergeConfig.domain+e.current}})]):e._e()],1)},i=[],o=n("a1a3"),a=n("e74d"),s=n("470b"),l={name:"SFileView",filters:{typeFilter(e){const t=e&&e.substr(e.lastIndexOf(".")).slice(".");switch(t){case".pdf":return"#icon-ppt1";case".doc":case".docx":return"#icon-word";case".ppt":case".pptx":return"#icon-ppt";case".xls":case".xlsx":return"#icon-excel";case".txt":return"#icon-txt";case".png":case".jpg":case".jpeg":case".gif":return"#icon-Image_File";case".zip":case".rar":return"#icon-yasuobao";case".mp4":return"#icon-icon-test"}}},props:{value:{type:[Array,String],default(){return[]}},remove:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},showLength:Number,view:{type:String,default:"file"},imageStyle:{type:Object,default(){return{}}},fileGetPath:{type:String,default:""},asyncConfig:{type:Object,default(){return{}}}},data(){return{current:"",model:!1,viewList:[]}},components:{SImage:s["a"]},computed:{images(){return this.viewList},mergeConfig(){return Object(o["a"])(this.$UploadConfig,this.asyncConfig)}},watch:{value:{deep:!0,handler(){this.buildViewList()}}},created(){this.buildViewList()},methods:{previewHandler(){this.preview&&(this.$refs.viewer.rebuildViewer(),this.$refs.viewer.$viewer.show())},viewVideo(e){this.current=e,this.model=!0},removeFile(e){Object(a["removeObjWithArr"])(this.viewList,e),this.$emit("input",this.viewList)},download(e){const t=document.createElement("a");t.setAttribute("download",""),e.url.indexOf("http")>=0?t.setAttribute("href",e.url):t.setAttribute("href",this.mergeConfig.domain+e.url),t.click()},previewHandle(e){const t=e.name.substr(e.name.lastIndexOf("."));switch(t){case".pdf":case".xls":case".xlsx":default:e.url.indexOf("http")>=0?window.open(e.url):window.open(this.mergeConfig.domain+e.url)}},buildViewList(){let e=[];this.value&&"string"===typeof this.value?this.value.indexOf("[{")<0?this.value.indexOf("base64")<0?this.value.split(",").map(t=>{e.push({name:t.split("&&")[1],url:t.split("&&")[0]})}):e.push({name:this.value.split("&&")[1],url:this.value.split("&&")[0]}):e=JSON.parse(this.value).map(e=>({...e,name:e[this.mergeConfig.nameKey]||e.name,url:e[this.mergeConfig.urlKey]||e.url})):e=this.value&&this.value.map(e=>({...e,name:e[this.mergeConfig.nameKey]||e.name,url:e[this.mergeConfig.urlKey]||e.url})),this.viewList=e}}},u=l,c=(n("ad40"),n("5dc1"),n("2877")),f=Object(c["a"])(u,r,i,!1,null,"98084d64",null);t["a"]=f.exports},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=l(s);u.Axios=o,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),e.exports=u,e.exports.default=u},d02c:function(e,t,n){var r=n("5e2e"),i=n("79bc"),o=n("7b83"),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},d04e:function(e,t,n){"use strict";n.r(t);var r=n("9c56"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"box",staticClass:"sl-group",class:{border:e.border},on:{dblclick:function(t){return t.stopPropagation(),e.setting(t)}}},[e.edit&&e.border?e._l(e.cols*e.rows,(function(t){return n("div",{key:t,staticClass:"sl-item",class:{active:e.active.indexOf(t)>=0},on:{click:function(n){return e.pickItem(t)}}},[n("span",{staticClass:"sl-index"},[e._v(e._s(t))])])})):e._e(),e.edit&&e.border?n("layout",{staticClass:"view",attrs:{cols:e.cols,rows:e.rows,option:e.option}},[e._t("default")],2):e._e(),e.edit||e.border?e._e():e._t("default")],2)},o=[],a={name:"Group",provide(){return{changeHeight:this.changeHeight}},props:{cols:{default:5,type:[String,Number,String]},colScale:{default:"1fr",type:[String,Number,String]},rowScale:{default:"1fr",type:[String,Number,String]},rows:{default:5,type:[String,Number,String]},gap:{type:[Array,Number,String],default:0},option:{type:Array,default(){return[]}},edit:Boolean},data(){return{border:!1,rowStartArr:[],rowEndArr:[],colStartArr:[],colEndArr:[],rowStart:1,rowEnd:1,colStart:1,colEnd:1,type:0,active:[],current:0}},mounted(){this.edit&&(document.addEventListener("keydown",e=>{"Space"===e.code?this.type=1:this.type=0}),document.addEventListener("keyup",e=>{"Space"===e.code&&this.buildResult()}))},methods:{changeHeight(e,t){const n=this.option[Array.prototype.indexOf.call(this.$refs.box.children,e)],r=n.split("/");r[2]=t,e.style="grid-area:"+r.join("/")},setting(e){this.edit&&(this.current=Array.prototype.indexOf.call(this.$refs.box.children,e.target),this.current>=0&&(this.border=!this.border),this.border&&(this.rowStart=1,this.rowEnd=1,this.colStart=1,this.colEnd=1,this.active=[],this.rowStartArr=[],this.rowEndArr=[],this.colStartArr=[],this.colEndArr=[]))},pickItem(e){this.type&&(this.pickRange(e),this.calcActive(this.rowStart,this.rowEnd,this.colStart,this.colEnd))},indexToRowCol(e){const t=e%this.cols===0?e/this.cols:Math.floor(e/this.cols)+1,n=e%this.rows===0||e%this.cols===0?this.cols:e%this.cols;return{rowNum:Number(t),colNum:Number(n)}},indexRange(e){const{rowNum:t,colNum:n}=this.indexToRowCol(e);return{rowStart:t,colStart:n,rowEnd:t+1,colEnd:n+1}},pickRange(e){const{rowStart:t,colStart:n,rowEnd:r,colEnd:i}=this.indexRange(e);this.rowStartArr.push(t),this.rowEndArr.push(r),this.colStartArr.push(n),this.colEndArr.push(i),this.rowStart=Math.min.apply(null,this.rowStartArr),this.rowEnd=Math.max.apply(null,this.rowEndArr),this.colStart=Math.min.apply(null,this.colStartArr),this.colEnd=Math.max.apply(null,this.colEndArr)},calcActive(e,t,n,r){const i=[];for(let o=e;o<t;o++)for(let e=n;e<r;e++)i.push((o-1)*this.cols+e);this.active=i},buildResult(){this.border=!1,this.$emit("change",this.current,[this.rowStart,this.colStart,this.rowEnd,this.colEnd].join("/"))}}},s=a,l=(n("e088"),n("2877")),u=Object(l["a"])(s,i,o,!1,null,"406092c2",null),c=u.exports;const f=Object(r["a"])(c)`
  display: grid;
  grid-template-columns: repeat(${e=>e.cols}, ${e=>e.colScale});
  grid-template-rows: repeat(${e=>e.rows}, ${e=>e.rowScale});
  grid-column-gap: ${e=>Array.isArray(e.gap)?e.gap[1]:e.gap};
  grid-row-gap: ${e=>Array.isArray(e.gap)?e.gap[0]:e.gap};

  ${e=>e.option.map((e,t)=>` &:not(.border) > :nth-child(${t+1}) {grid-area: ${e};}`)}
`;var d=f,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sl-item"},[e._t("default")],2)},p=[],g={name:"item",props:{x:[Number,String],y:[Number,String],w:[Number,String],h:[Number,String]}},m=g,v=Object(l["a"])(m,h,p,!1,null,"593ff5b8",null),y=v.exports;const b=Object(r["a"])(y)`
  grid-column: ${e=>Number(e.x)+1} / span ${e=>e.w};
  grid-row: ${e=>Number(e.y)+1} / span ${e=>e.h};
`;var _=b;d.install=function(e){e.component("layout",d),e.component("item",_)},t["default"]=d},d327:function(e,t){function n(){return[]}e.exports=n},d370:function(e,t,n){var r=n("253c"),i=n("1310"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},d7ee:function(e,t,n){var r=n("c3fc"),i=n("b047"),o=n("99d3"),a=o&&o.isSet,s=a?i(a):r;e.exports=s},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da03:function(e,t,n){var r=n("2b3e"),i=r["__core-js_shared__"];e.exports=i},da79:function(e,t,n){(function(e){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=e("./lib/lang"),a=e("./range").Range,s=e("./range_list").RangeList,l=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,c=e("./clipboard"),f={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return c.getText&&c.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){var t=e.session.$mode||{};return t.lineCommentStart||""},CURRENT_YEAR:d.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:d.bind(null,{year:"2-digit"}),CURRENT_MONTH:d.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:d.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:d.bind(null,{month:"short"}),CURRENT_DATE:d.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:d.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:d.bind(null,{weekday:"short"}),CURRENT_HOUR:d.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:d.bind(null,{minute:"2-digit"}),CURRENT_SECOND:d.bind(null,{second:"2-digit"})};function d(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}f.SELECTED_TEXT=f.SELECTION;var h=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){return h.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag="",""},next:"formatString"};return h.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return("}"==r&&n.length||-1!="`$\\".indexOf(r))&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1));return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=r,[r[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:"n"==r?e="\n":"t"==r?e="\t":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){var r=n[0];return r.formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),h.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var r=this.variables[t];return"function"==typeof r&&(r=this.variables[t](e,t,n)),null==r?"":r},this.variables=f,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||"",i=t.guard;i=new RegExp(i,r.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,a=this,s=e.replace(i,(function(){var e=a.variables.__;a.variables.__=[].slice.call(arguments);for(var t=a.resolveVariables(o,n),r="E",i=0;i<t.length;i++){var s=t[i];if("object"==typeof s)if(t[i]="",s.changeCase&&s.local){var l=t[i+1];l&&"string"==typeof l&&("u"==s.changeCase?t[i]=l[0].toUpperCase():t[i]=l[0].toLowerCase(),t[i+1]=l.substr(1))}else s.changeCase&&(r=s.changeCase);else"U"==r?t[i]=s.toUpperCase():"L"==r&&(t[i]=s.toLowerCase())}return a.variables.__=e,t.join("")}));return s},this.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},this.resolveVariables=function(e,t){for(var n=[],r="",i=!0,o=0;o<e.length;o++){var a=e[o];if("string"!=typeof a){if(a){if(i=!1,a.fmtString){var s=e.indexOf(a,o+1);-1==s&&(s=e.length),a.fmt=e.slice(o+1,s),o=s}if(a.text){var l=this.getVariableValue(t,a.text,r)+"";a.fmtString&&(l=this.tmStrFormat(l,a,t)),a.formatFunction&&(l=this.tmFormatFunction(l,a,t)),l&&!a.ifEnd?(n.push(l),u(a)):!l&&a.ifEnd&&u(a.ifEnd)}else a.elseEnd?u(a.elseEnd):(null!=a.tabstopId||null!=a.changeCase)&&n.push(a)}}else n.push(a),"\n"==a?(i=!0,r=""):i&&(r=/^\t*/.exec(a)[0],i=/\S/.test(a))}function u(t){var n=e.indexOf(t,o+1);-1!=n&&(o=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),o=r.match(/^\s*/)[0];n.column<o.length&&(o=o.slice(0,n.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+o:"string"==typeof e?e.replace(/\t/g,i):e}));var s=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=s[n];if(r||(r=s[n]=[],r.index=n,r.value="",r.parents={}),-1===r.indexOf(e)){e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var i=a.indexOf(e,t+1);if(-1!==i){var o=a.slice(t+1,i),l=o.some((function(e){return"object"===typeof e}));l&&!r.value?r.value=o:!o.length||r.value&&"string"===typeof r.value||(r.value=o.join(""))}}}})),s.forEach((function(e){e.length=0}));var l={};function u(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(l[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}for(var c=0;c<a.length;c++){var f=a[c];if("object"==typeof f){var d=f.tabstopId,h=s[d],g=a.indexOf(f,c+1);if(l[d])l[d]===f&&(delete l[d],Object.keys(l).forEach((function(e){h.parents[e]=!0})));else{l[d]=f;var m=h.value;"string"!==typeof m?m=u(m):f.fmt&&(m=this.tmStrFormat(m,f,e)),a.splice.apply(a,[c+1,Math.max(0,g-c)].concat(m,f)),-1===h.indexOf(f)&&h.push(f)}}}var v=0,y=0,b="";a.forEach((function(e){if("string"===typeof e){var t=e.split("\n");t.length>1?(y=t[t.length-1].length,v+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:v,column:y}:e.start={row:v,column:y})}));var _=e.getSelectionRange(),w=e.session.replace(_,b),x=new p(e),O=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(s,_.start,w,O)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"===typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),a=i.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,o,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&(!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function a(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=a(e),t=a(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var a=r[t];if(e.name){var l=a[e.name];l&&i.unregister(l),a[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=o.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach((function(t){l(e[t])})),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],a=o&&o.indexOf(e);a>=0&&o.splice(a,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=i.exec(e)){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(l){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],a=t[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==o?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):o&&(r[o]=a)}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(h.prototype);var p=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},r=n.parents||{},i=(this.tabstops||[]).slice(),o=0;o<i.length;o++){var a=i[o],s=a==n||r[a.index];if(a.rangeList.$bias=s?0:1,"remove"==e.action&&a!==n){var l=a.parents&&a.parents[n.index],u=a.rangeList.pointIndex(e.start,l);u=u<0?-u-1:u+1;var c=a.rangeList.pointIndex(e.end,l);c=c<0?-c-1:c-1;for(var f=a.rangeList.ranges.slice(u,c),d=0;d<f.length;d++)this.removeRange(f[d])}a.rangeList.$onChange(e)}var h=this.editor.session;this.$inChange||!t||1!=h.getLength()||h.getValue()||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.editor.session,r=n.getTextRange(e.firstNonLinked),i=0;i<e.length;i++){var o=e[i];if(o.linked){var a=o.original,s=t.snippetManager.tmStrFormat(r,a,this.editor);n.replace(o,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=0;r<this.ranges.length;r++)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var r=this.editor.multiSelect;r.toSingleRange(n);for(var i=0;i<t.length;i++)t.hasLinkedRanges&&t[i].linked||r.addRange(t[i].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},this.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var i=a.fromPoints(n,n);m(i.start,t),m(i.end,t),e[0]=[i],e[0].index=0}var o=this.index,l=[o+1,0],u=this.ranges;e.forEach((function(e,n){for(var i=this.$openTabstops[n]||e,o=0;o<e.length;o++){var c=e[o],f=a.fromPoints(c.start,c.end||c.start);g(f.start,t),g(f.end,t),f.original=c,f.tabstop=i,u.push(f),i!=e?i.unshift(f):i[o]=f,c.fmtString||i.firstNonLinked&&r?(f.linked=!0,i.hasLinkedRanges=!0):i.firstNonLinked||(i.firstNonLinked=f)}i.firstNonLinked||(i.hasLinkedRanges=!1),i===e&&(l.push(i),this.$openTabstops[n]=i),this.addTabstopMarkers(i),i.rangeList=i.rangeList||new s,i.rangeList.$bias=0,i.rangeList.addList(i)}),this),l.length>2&&(this.tabstops.length&&l.push(l.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,l))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),t=this.ranges.indexOf(e),-1!=t&&this.ranges.splice(t,1),t=e.tabstop.rangeList.ranges.indexOf(e),-1!=t&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(p.prototype);var g=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker {    -moz-box-sizing: border-box;    box-sizing: border-box;    background: rgba(194, 193, 208, 0.09);    border: 1px dotted rgba(211, 208, 235, 0.62);    position: absolute;}"),t.snippetManager=new h;var v=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(v.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),u=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},c=function(e){var t=l.createElement("div"),n=new u(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),f.start.row=f.end.row=t.row,e.stop()}));var c=new o(-1,0,-1,1/0),f=new o(-1,0,-1,1/0);f.id=n.session.addMarker(f,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?c.id&&(n.session.removeMarker(c.id),c.id=null):c.id=n.session.addMarker(c,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){r=e,r.scrollTop=n.renderer.scrollTop;var t=r.getDocumentPosition().row;c.start.row!=t&&(c.id||n.setRow(t),h(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=c.start.row){r.$pos=null;var e=r.getDocumentPosition().row;c.id||n.setRow(e),h(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=r,r&&l.addCssClass(r,"ace_selected")}));var d=function(){h(-1)},h=function(e,t){e!==c.start.row&&(c.start.row=c.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return c.start.row},a.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var p=n.session.bgTokenizer;return p.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t});var i=t.caption||t.value||t.name;function o(e,n){e&&r.push({type:(t.className||"")+(n||""),value:e})}for(var a=i.toLowerCase(),s=(n.filterText||"").toLowerCase(),l=0,u=0,c=0;c<=s.length;c++)if(c!=u&&(t.matchMask&1<<c||c==s.length)){var f=s.slice(u,c);u=c;var d=a.indexOf(f,l);if(-1==d)continue;o(i.slice(l,d),""),l=d+f.length,o(i.slice(d,l),"completion-highlight")}return o(i.slice(l,i.length),""),t.meta&&r.push({type:"completion-meta",value:t.meta}),t.message&&r.push({type:"completion-message",value:t.message}),r},p.$updateOnChange=i,p.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(s.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return f.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),f.start.row!=e&&(n.selection.clearSelection(),f.start.row=f.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,i){var o=this.container,a=window.innerHeight,s=window.innerWidth,l=this.renderer,u=l.$maxLines*t*1.4,c=e.top+this.$borderSize,f=c>a/2&&!i;f&&c+t+u>a?(l.$maxPixelHeight=c-2*this.$borderSize,o.style.top="",o.style.bottom=a-c+"px",n.isTopdown=!1):(c+=t,l.$maxPixelHeight=a-c-.2*t,o.style.top=c+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="";var d=e.left;d+o.offsetWidth>s&&(d=s-o.offsetWidth),o.style.left=d+"px",this._signal("show"),r=null,n.isOpen=!0},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n;break}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #CAD6FA;    z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {    background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid #abbffe;    margin-top: -1px;    background: rgba(233,233,253,0.4);    position: absolute;    z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {    border: 1px solid rgba(109, 150, 13, 0.8);    background: rgba(58, 103, 78, 0.62);}.ace_completion-meta {    opacity: 0.5;    margin: 0.9em;}.ace_completion-message {    color: blue;}.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{    color: #93ca12;}.ace_editor.ace_autocomplete {    width: 300px;    z-index: 200000;    border: 1px lightgray solid;    position: fixed;    box-shadow: 2px 3px 5px rgba(0,0,0,.2);    line-height: 1.4;    background: #fefefe;    color: #111;}.ace_dark.ace_editor.ace_autocomplete {    border: 1px #484747 solid;    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);    line-height: 1.4;    background: #25282c;    color: #c1c1c1;}","autocompletion.css"),t.AcePopup=c,t.$singleLineEditor=u})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o<i;o++)t(e[o],(function(e,t){r++,r===i&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;o>=0;o--){if(!n.test(e[o]))break;i.push(e[o])}return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length;o++){if(!n.test(e[o]))break;i.push(e[o])}return i},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(r,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(r,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,o=e("./autocomplete/util"),a=e("./lib/lang"),s=e("./lib/dom"),l=e("./snippets").snippetManager,u=e("./config"),c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered,this.completions.filterText),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,o=r.$cursorLayer.getPixelPosition(this.base,!0);o.left-=this.popup.getTextLeftOffset();var a=e.container.getBoundingClientRect();o.top+=a.top-r.layerConfig.offset,o.left+=a.left-e.renderer.scrollLeft,o.left+=r.gutterWidth,this.popup.show(o,i)}this.changeTimer.cancel()},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t==n||t.parentNode==i||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){this.popup.goTo(e)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;var n=this.completions;if(this.editor.startOperation({command:{name:"insertMatch"}}),e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(n.filterText)for(var r,i=this.editor.selection.getAllRanges(),o=0;r=i[o];o++)r.start.column-=n.filterText.length,this.editor.session.remove(r);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.completions==n&&this.detach(),this.editor.endOperation()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=o.getCompletionPrefix(e);this.base=n.doc.createAnchor(r.row,r.column-i.length),this.base.$insertRight=!0;var a=[],s=e.completers.length;return e.completers.forEach((function(l,u){l.getCompletions(e,n,r,i,(function(n,r){!n&&r&&(a=a.concat(r)),t(null,{prefix:o.getCompletionPrefix(e),matches:a,finished:0===--s})}))})),!0},this.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},this.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition(),r=this.editor.session.getTextRange({start:this.base,end:n});if(r==this.completions.filterText)return;return this.completions.setFilter(r),this.completions.filtered.length&&(1!=this.completions.filtered.length||this.completions.filtered[0].value!=r||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,r,e):this.detach()}if(t&&t.matches)return n=this.editor.getSelectionRange().start,this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new f(t.matches),this.openPopup(this.editor,"",e);var i=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(n.finished)return this.detach()}.bind(this),o=n.prefix,a=n&&n.matches;if(!a||!a.length)return r();if(0===o.indexOf(n.prefix)&&i==this.gatherCompletionsId){this.completions=new f(a),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(o);var s=this.completions.filtered;return s.length&&(1!=s.length||s[0].value!=o||s[0].snippet)?this.autoInsert&&1==s.length&&n.finished?this.insertMatch(s[0]):void this.openPopup(this.editor,o,e):r()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r})),r||"string"==typeof n||(r=n),"string"==typeof r&&(r={docText:r}),r&&(r.docHTML||r.docText)?void this.showDocTooltip(r):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,t.style.display="block",window.innerWidth-r.right<320?r.left<320?n.isTopdown?(t.style.top=r.bottom+"px",t.style.left=r.left+"px",t.style.right="",t.style.bottom=""):(t.style.top=n.container.offsetTop-t.offsetHeight+"px",t.style.left=r.left+"px",t.style.right="",t.style.bottom=""):(t.style.right=window.innerWidth-r.left+"px",t.style.left=""):(t.style.left=r.right+1+"px",t.style.right="")},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},this.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&this.editor.completer,this.popup=null}}).call(c.prototype),c.for=function(e){return e.completer||(u.get("sharedPopups")?(c.$shared||(c.$sharedInstance=new c),e.completer=c.$sharedInstance):(e.completer=new c,e.once("destroy",(function(e,t){t.completer.destroy()})))),e.completer},c.startCommand={name:"startAutocomplete",exec:function(e,t){var n=c.for(e);n.autoInsert=!1,n.autoSelect=!0,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var f=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,a=0;o=e[a];a++){var s=o.caption||o.value||o.snippet;if(s){var l,u,c=-1,f=0,d=0;if(this.exactMatch){if(t!==s.substr(0,t.length))continue e}else{var h=s.toLowerCase().indexOf(i);if(h>-1)d=h;else for(var p=0;p<t.length;p++){var g=s.indexOf(i[p],c+1),m=s.indexOf(r[p],c+1);if(l=g>=0&&(m<0||g<m)?g:m,l<0)continue e;u=l-c-1,u>0&&(-1===c&&(d+=10),d+=u,f|=1<<p),c=l}}o.matchMask=f,o.exactMatch=d?0:1,o.$score=(o.score||0)-d,n.push(o)}}return n}}).call(f.prototype),t.Autocomplete=c,t.FilteredList=f})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function o(e,t){var n=e.getTextRange(r.fromPoints({row:0,column:0},t));return n.split(i).length-1}function a(e,t){var n=o(e,t),r=e.getValue().split(i),a=Object.create(null),s=r[n];return r.forEach((function(e,t){if(e&&e!==s){var i=Math.abs(n-t),o=r.length-i;a[e]?a[e]=Math.max(o,a[e]):a[e]=o}})),a}t.getCompletions=function(e,t,n,r,i){var o=a(t,n),s=Object.keys(o);i(null,s.map((function(e){return{caption:e,value:e,score:o[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("../autocomplete").Autocomplete,o=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),u={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var o=e.session.getState(n.row),a=t.$mode.getCompletions(o,t,n,r);i(null,a)}},c={getCompletions:function(e,t,n,i,o){var a=[],s=t.getTokenAt(n.row,n.column);s&&s.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?a.push("html-tag"):a=r.getActiveScopes(e);var l=r.snippetMap,u=[];a.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;i&&u.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),o(null,u)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",a.escapeHTML(e.caption),"</b>","<hr></hr>",a.escapeHTML(e.snippet)].join(""))}},f=[c,l,u];t.setCompleters=function(e){f.length=0,e&&f.push.apply(f,e)},t.addCompleter=function(e){f.push(e)},t.textCompleter=l,t.keyWordCompleter=u,t.snippetCompleter=c;var d={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},h=function(e,t){p(t.session.$mode)},p=function(e){"string"==typeof e&&(e=o.$modes[e]),e&&(r.files||(r.files={}),g(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(p))},g=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},o.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){p("ace/mode/"+e)}))))})))},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){var r=s.getCompletionPrefix(t);if(r&&!n){var o=i.for(t);o.autoInsert=!1,o.showPopup(t)}}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:f),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:f),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(d),this.on("changeMode",h),h(null,this)):(this.commands.removeCommand(d),this.off("changeMode",h))},value:!1}})})),function(){ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},db72:function(e,t,n){"use strict";var r=n("b84d"),i=n("6071"),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&Object(i["a"])(o,n)&&(void 0!==n||t in e)||Object(r["a"])(e,t,n)}t["a"]=s},db97:function(e,t,n){"use strict";var r=n("b4f1"),i=n("ff51");function o(e,t,n){var o=t(e);return Object(i["a"])(e)?o:Object(r["a"])(o,n(e))}t["a"]=o},dc57:function(e,t){var n=Function.prototype,r=n.toString;function i(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=i},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},ddc9:function(e,t,n){"use strict";var r=n("63bc"),i=n("26ee"),o=Object(r["a"])(i["a"],"Map");t["a"]=o},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;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,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(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 r(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 i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.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,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(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,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};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("4362"))},dff1:function(e,t,n){"use strict";(function(e){var r=n("26ee"),i=exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}t["a"]=u}).call(this,n("dd40")(e))},e088:function(e,t,n){"use strict";n("a8d6")},e24b:function(e,t,n){var r=n("49f4"),i=n("1efc"),o=n("bbc0"),a=n("7a48"),s=n("2524");function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},e2c5:function(e,t,n){},e2e4:function(e,t,n){var r=n("6747"),i=n("f608"),o=n("18d8"),a=n("76dd");function s(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}e.exports=s},e380:function(e,t,n){var r=n("7b83"),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3fa:function(e,t,n){"use strict";var r=n("ee03"),i=n("2332"),o=n("a724");function a(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var s=a,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!Object(i["a"])(e))return s(e);var t=Object(o["a"])(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var f=c,d=n("e56b");function h(e){return Object(d["a"])(e)?Object(r["a"])(e,!0):f(e)}t["a"]=h},e538:function(e,t,n){(function(e){var r=n("2b3e"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=u}).call(this,n("62e4")(e))},e56b:function(e,t,n){"use strict";var r=n("bc9b"),i=n("26ce");function o(e){return null!=e&&Object(i["a"])(e.length)&&!Object(r["a"])(e)}t["a"]=o},e67a:function(e,t,n){"use strict";n("6053")},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e74d:function(e,t,n){"use strict";function r(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n=t.toLocaleLowerCase(),r="0123456789",i=t+n+r,o=new Array;for(let s=0;s<i.length;s++)o[s]=i.charAt(s);let a="";for(let s=0;s<e;s++)a+=o[Math.floor(Math.random()*o.length)];return a}function i(e,t){const n=e.length;for(let r=0;r<n;r++)if(e[r]===t)return 0===r?void e.shift():r===n-1?void e.pop():void e.splice(r,1)}function o(e,t){const n=new Date(t);let r;const i={"y+":n.getFullYear().toString(),"M+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"m+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(const o in i)r=new RegExp("("+o+")").exec(e),r&&(e=e.replace(r[1],1===r[1].length?i[o]:i[o].padStart(r[1].length,"0")));return e}function a(e,t){let n={children:"children",idKey:"id",pIdKey:"pId",label:"name"};var r,i;t&&(n=Object.assign(n,t));var o=n.idKey,a=n.pIdKey,s=n.children;if(!o||""===o||!e)return[];if(Array.isArray(e)){var l=[],u=[];for(r=0,i=e.length;r<i;r++)u[e[r][o]]=e[r];for(r=0,i=e.length;r<i;r++)u[e[r][a]]&&e[r][o]!==e[r][a]?(u[e[r][a]][s]||(u[e[r][a]][s]=[]),u[e[r][a]][s].push(e[r])):l.push(e[r]);return l}return[e]}function s(e,t){let n={idKey:"id",pIdKey:"pId",children:"children"};t&&(n=Object.assign(n,t));let r=[];const i=n.children,o=(e,t,a)=>{e.forEach(e=>{t&&a&&(e[t]=a),r.push(e),e[i]&&e[i].length>0&&o(e[i],n.pIdKey,e[n.idKey]),delete e[i]})};return o(e,null,null),r}n.r(t),n.d(t,"randomCode",(function(){return r})),n.d(t,"removeObjWithArr",(function(){return i})),n.d(t,"dateFormat",(function(){return o})),n.d(t,"transformToTree",(function(){return a})),n.d(t,"treeToTransForm",(function(){return s}))},e841:function(e,t,n){"use strict";n("a0ee")},eac5:function(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}e.exports=r},eb71:function(e,t,n){},ec41:function(e,t,n){"use strict";var r=n("5132");function i(e,t,n){var i=null==e?void 0:Object(r["a"])(e,t);return void 0===i?n:i}t["a"]=i},ec4f:function(e,t,n){(function(e){ace.define("ace/snippets/javascript",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Prototype\nsnippet proto\n\t${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\t\t${4:// body...}\n\t};\n# Function\nsnippet fun\n\tfunction ${1?:function_name}(${2:argument}) {\n\t\t${3:// body...}\n\t}\n# Anonymous Function\nregex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\nsnippet f\n\tfunction${M1?: ${1:functionName}}($2) {\n\t\t${0:$TM_SELECTED_TEXT}\n\t}${M2?;}${M3?,}${M4?)}\n# Immediate function\ntrigger \\(?f\\(\nendTrigger \\)?\nsnippet f(\n\t(function(${1}) {\n\t\t${0:${TM_SELECTED_TEXT:/* code */}}\n\t}(${1}));\n# if\nsnippet if\n\tif (${1:true}) {\n\t\t${0}\n\t}\n# if ... else\nsnippet ife\n\tif (${1:true}) {\n\t\t${2}\n\t} else {\n\t\t${0}\n\t}\n# tertiary conditional\nsnippet ter\n\t${1:/* condition */} ? ${2:a} : ${3:b}\n# switch\nsnippet switch\n\tswitch (${1:expression}) {\n\t\tcase \'${3:case}\':\n\t\t\t${4:// code}\n\t\t\tbreak;\n\t\t${5}\n\t\tdefault:\n\t\t\t${2:// code}\n\t}\n# case\nsnippet case\n\tcase \'${1:case}\':\n\t\t${2:// code}\n\t\tbreak;\n\t${3}\n\n# while (...) {...}\nsnippet wh\n\twhile (${1:/* condition */}) {\n\t\t${0:/* code */}\n\t}\n# try\nsnippet try\n\ttry {\n\t\t${0:/* code */}\n\t} catch (e) {}\n# do...while\nsnippet do\n\tdo {\n\t\t${2:/* code */}\n\t} while (${1:/* condition */});\n# Object Method\nsnippet :f\nregex /([,{[])|^\\s*/:f/\n\t${1:method_name}: function(${2:attribute}) {\n\t\t${0}\n\t}${3:,}\n# setTimeout function\nsnippet setTimeout\nregex /\\b/st|timeout|setTimeo?u?t?/\n\tsetTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n# Get Elements\nsnippet gett\n\tgetElementsBy${1:TagName}(\'${2}\')${3}\n# Get Element\nsnippet get\n\tgetElementBy${1:Id}(\'${2}\')${3}\n# console.log (Firebug)\nsnippet cl\n\tconsole.log(${1});\n# return\nsnippet ret\n\treturn ${1:result}\n# for (property in object ) { ... }\nsnippet fori\n\tfor (var ${1:prop} in ${2:Things}) {\n\t\t${0:$2[$1]}\n\t}\n# hasOwnProperty\nsnippet has\n\thasOwnProperty(${1})\n# docstring\nsnippet /**\n\t/**\n\t * ${1:description}\n\t *\n\t */\nsnippet @par\nregex /^\\s*\\*\\s*/@(para?m?)?/\n\t@param {${1:type}} ${2:name} ${3:description}\nsnippet @ret\n\t@return {${1:type}} ${2:description}\n# JSON.parse\nsnippet jsonp\n\tJSON.parse(${1:jstr});\n# JSON.stringify\nsnippet jsons\n\tJSON.stringify(${1:object});\n# self-defining function\nsnippet sdf\n\tvar ${1:function_name} = function(${2:argument}) {\n\t\t${3:// initial code ...}\n\n\t\t$1 = function($2) {\n\t\t\t${4:// main code}\n\t\t};\n\t}\n# singleton\nsnippet sing\n\tfunction ${1:Singleton} (${2:argument}) {\n\t\t// the cached instance\n\t\tvar instance;\n\n\t\t// rewrite the constructor\n\t\t$1 = function $1($2) {\n\t\t\treturn instance;\n\t\t};\n\t\t\n\t\t// carry over the prototype properties\n\t\t$1.prototype = this;\n\n\t\t// the instance\n\t\tinstance = new $1();\n\n\t\t// reset the constructor pointer\n\t\tinstance.constructor = $1;\n\n\t\t${3:// code ...}\n\n\t\treturn instance;\n\t}\n# class\nsnippet class\nregex /^\\s*/clas{0,2}/\n\tvar ${1:class} = function(${20}) {\n\t\t$40$0\n\t};\n\t\n\t(function() {\n\t\t${60:this.prop = ""}\n\t}).call(${1:class}.prototype);\n\t\n\texports.${1:class} = ${1:class};\n# \nsnippet for-\n\tfor (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\t\t${0:${2:Things}[${1:i}];}\n\t}\n# for (...) {...}\nsnippet for\n\tfor (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\t\t${3:$2[$1]}$0\n\t}\n# for (...) {...} (Improved Native For-Loop)\nsnippet forr\n\tfor (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\t\t${3:$2[$1]}$0\n\t}\n\n\n#modules\nsnippet def\n\tdefine(function(require, exports, module) {\n\t"use strict";\n\tvar ${1/.*\\///} = require("${1}");\n\t\n\t$TM_SELECTED_TEXT\n\t});\nsnippet req\nguard ^\\s*\n\tvar ${1/.*\\///} = require("${1}");\n\t$0\nsnippet requ\nguard ^\\s*\n\tvar ${1/.*\\/(.)/\\u$1/} = require("${1}").${1/.*\\/(.)/\\u$1/};\n\t$0\n',t.scope="javascript"})),function(){ace.require(["ace/snippets/javascript"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},ec69:function(e,t,n){var r=n("6fcd"),i=n("03dd"),o=n("30c9");function a(e){return o(e)?r(e):i(e)}e.exports=a},ec8c:function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},ee03:function(e,t,n){"use strict";function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var i=r,o=n("f5fe"),a=n("ff51"),s=n("58e0"),l=n("7129"),u=n("a187"),c=Object.prototype,f=c.hasOwnProperty;function d(e,t){var n=Object(a["a"])(e),r=!n&&Object(o["a"])(e),c=!n&&!r&&Object(s["a"])(e),d=!n&&!r&&!c&&Object(u["a"])(e),h=n||r||c||d,p=h?i(e.length,String):[],g=p.length;for(var m in e)!t&&!f.call(e,m)||h&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||Object(l["a"])(m,g))||p.push(m);return p}t["a"]=d},ee18:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table-column",e._b({key:Math.random(),scopedSlots:e._u([{key:"default",fn:function(t){return"columns"===e.item.type&&e.item.type?void 0:[Array.isArray(e.item.key)?n("div",{style:e.item.style},e._l(e.item.key,(function(r,i){return n("span",{key:"s"+i,staticClass:"item-cell"},[e.item.type&&"slot"===e.item.type?e._t(e.item.key,null,{row:t.row,config:e.item}):e._e(),e.item.type&&"slot"!==e.item.type?n("item-cell",{attrs:{"merge-mapper":e.mergeMapper,item:e.item,scope:t,value:t.row[r]},on:{change:function(n){return e.valueChange(n,t.row,e.item.key)}}}):e._e(),e.item.separator&&i!==e.item.key.length-1?[e._v(e._s(e.item.separator))]:e._e()],2)})),0):e._e(),e.item.type&&"slot"===e.item.type?e._t(e.item.key,null,{row:t.row,config:e.item}):e._e(),e.item.type&&"slot"!==e.item.type?n("item-cell",{attrs:{"merge-mapper":e.mergeMapper,item:e.item,scope:t},on:{change:function(n){return e.valueChange(n,t.row,e.item.key)}},model:{value:t.row[e.item.key],callback:function(n){e.$set(t.row,e.item.key,n)},expression:"scope.row[item.key]"}}):e._e()]}}],null,!0)},"el-table-column",e.item,!1),["columns"===e.item.type?e._l(e.item.columns,(function(t,r){return n("columns",{key:r,attrs:{tableProps:e.tableProps,item:t,mergeMapper:e.mergeMapper},model:{value:e.tableData,callback:function(t){e.tableData=t},expression:"tableData"}})})):e._e()],2)},i=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"items"},[e.item.type&&e.singleTag.indexOf(e.item.type)>=0?n("single-tag",{attrs:{mapper:e.mergeMapper(e.item),config:e.item},on:{change:function(t){return e.$emit("change",e.item,e.scope.row)}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):e._e(),e.item.type&&e.groupTag.indexOf(e.item.type)>=0?n("group-tag",{attrs:{mapper:e.mergeMapper(e.item),config:e.item},on:{change:function(t){return e.$emit("change",e.item,e.scope.row)}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):e._e(),e.item.type&&e.optionsTag.indexOf(e.item.type)>=0?n("options-tag",{attrs:{mapper:e.mergeMapper(e.item),config:e.item},on:{change:function(t){return e.$emit("change",e.item,e.scope.row)}},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):e._e(),e.item.type&&e.selfTag.indexOf(e.item.type)>=0?n("self-tag",{attrs:{mapper:e.mergeMapper(e.item),config:e.item},on:{change:function(t){return e.$emit("change",e.item,e.scope.row)}},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("content-"+e.item._code,null,{option:e.item,data:t})]}}],null,!0),model:{value:e.model,callback:function(t){e.model=t},expression:"model"}}):e._e()],1)},a=[],s=n("1e55"),l=n("c85b"),u=n("81fc"),c=n("2c98"),f=n("ff7d"),d={name:"item-cell",data(){return{...s["default"]}},components:{SelfTag:f["a"],OptionsTag:c["a"],GroupTag:u["a"],SingleTag:l["a"]},computed:{model:{get(){return this.value},set(e){console.log(e),this.$emit("change",e),this.$emit("input",e)}}},props:{value:[Object,Array,String,Number,Boolean,Array],mergeMapper:Function,item:Object,scope:Object}},h=d,p=(n("e841"),n("2877")),g=Object(p["a"])(h,o,a,!1,null,"ea411e8e",null),m=g.exports,v=n("ec41"),y=n("5c8a"),b=n("e74d"),_={name:"columns",components:{ItemCell:m},data(){return{}},computed:{tableData:{get(){return this.value},set(e){this.$emit("input",e)}}},props:{item:Object,mergeMapper:Function,tableProps:{type:Object,default:()=>({})},value:{type:Array,default:()=>[]}},methods:{get:v["a"],valueChange(e,t,n){const r=Object(y["a"])(this.tableData),i=this.tableProps.rowKey||Object.keys(t)[0],o=Object(b["treeToTransForm"])(r,this.tableProps.treeProps),a=o.find(e=>e[i]===t[i]);this.$set(a,n,e),this.$emit("changeRow",a),this.tableData=Object(b["transformToTree"])(o,this.tableProps.treeProps)}}},w=_,x=(n("9490"),Object(p["a"])(w,r,i,!1,null,"6c640862",null));t["a"]=x.exports},efb6:function(e,t,n){var r=n("5e2e");function i(){this.__data__=new r,this.size=0}e.exports=i},f0ce:function(e,t,n){"use strict";var r=n("ca54"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r["a"]?r["a"].toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}var u=l,c=Object.prototype,f=c.toString;function d(e){return f.call(e)}var h=d,p="[object Null]",g="[object Undefined]",m=r["a"]?r["a"].toStringTag:void 0;function v(e){return null==e?void 0===e?g:p:m&&m in Object(e)?u(e):h(e)}t["a"]=v},f318:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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=38)}([function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){var r=n(22),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(75),o=n(76),a=n(77),s=n(78),l=n(79);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}var i=n(8);e.exports=r},function(e,t,n){function r(e){return null==e?void 0===e?l:s:u&&u in Object(e)?o(e):a(e)}var i=n(16),o=n(64),a=n(87),s="[object Null]",l="[object Undefined]",u=i?i.toStringTag:void 0;e.exports=r},function(e,t,n){function r(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}var i=n(73);e.exports=r},function(e,t,n){var r=n(11),i=r(Object,"create");e.exports=i},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return i}));var i=function e(t){r(this,e),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=t.overlay,this.img=t.img,this.options=t.options,this.requestUpdate=t.onUpdate}},function(e,t,n){function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=n(21);e.exports=r},function(e,t,n){function r(e,t){var n=o(e,t);return i(n)?n:void 0}var i=n(48),o=n(65);e.exports=r},function(e,t,n){function r(e){return null!=e&&o(e.length)&&!i(e)}var i=n(13),o=n(30);e.exports=r},function(e,t,n){function r(e){if(!o(e))return!1;var t=i(e);return t==s||t==l||t==a||t==u}var i=n(5),o=n(0),a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",u="[object Proxy]";e.exports=r},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}},function(e,t,n){var r=n(11),i=n(1),o=r(i,"Map");e.exports=o},function(e,t,n){var r=n(1),i=r.Symbol;e.exports=i},function(e,t){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)}e.exports=n},function(e,t,n){function r(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||i(e,t,n)}var i=n(10),o=n(8);e.exports=r},function(e,t,n){function r(e,t,n,c,f){e!==t&&a(t,(function(a,u){if(l(a))f||(f=new i),s(e,t,u,n,r,c,f);else{var d=c?c(e[u],a,u+"",e,t,f):void 0;void 0===d&&(d=a),o(e,u,d)}}),u)}var i=n(41),o=n(18),a=n(46),s=n(51),l=n(0),u=n(32);e.exports=r},function(e,t,n){function r(e,t){return a(o(e,t,i),e+"")}var i=n(26),o=n(89),a=n(90);e.exports=r},function(e,t,n){var r=n(11),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(107))},function(e,t,n){var r=n(88),i=r(Object.getPrototypeOf,Object);e.exports=i},function(e,t){function n(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){var r=n(47),i=n(2),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){(function(e){var r=n(1),i=n(102),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||i;e.exports=c}).call(t,n(14)(e))},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t,n){var r=n(49),i=n(54),o=n(86),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){function r(e){return a(e)?i(e,!0):o(e)}var i=n(43),o=n(50),a=n(12);e.exports=r},function(e,t,n){"use strict";t.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(9);n.d(t,"a",(function(){return s}));var s=function(e){function t(){var e,n,o,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.onCreate=function(){o.display=document.createElement("div"),Object.assign(o.display.style,o.options.displayStyles),o.overlay.appendChild(o.display)},o.onDestroy=function(){},o.onUpdate=function(){if(o.display&&o.img){var e=o.getCurrentSize();if(o.display.innerHTML=e.join(" &times; "),e[0]>120&&e[1]>30)Object.assign(o.display.style,{right:"4px",bottom:"4px",left:"auto"});else if("right"==o.img.style.float){var t=o.display.getBoundingClientRect();Object.assign(o.display.style,{right:"auto",bottom:"-"+(t.height+4)+"px",left:"-"+(t.width+4)+"px"})}else{var n=o.display.getBoundingClientRect();Object.assign(o.display.style,{right:"-"+(n.width+4)+"px",bottom:"-"+(n.height+4)+"px",left:"auto"})}}},o.getCurrentSize=function(){return[o.img.width,Math.round(o.img.width/o.img.naturalWidth*o.img.naturalHeight)]},a=n,i(o,a)}return o(t,e),t}(a.a)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(9);n.d(t,"a",(function(){return s}));var s=function(e){function t(){var e,n,o,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u<s;u++)l[u]=arguments[u];return n=o=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.onCreate=function(){o.boxes=[],o.addBox("nwse-resize"),o.addBox("nesw-resize"),o.addBox("nwse-resize"),o.addBox("nesw-resize"),o.positionBoxes()},o.onDestroy=function(){o.setCursor("")},o.positionBoxes=function(){var e=-parseFloat(o.options.handleStyles.width)/2+"px",t=-parseFloat(o.options.handleStyles.height)/2+"px";[{left:e,top:t},{right:e,top:t},{right:e,bottom:t},{left:e,bottom:t}].forEach((function(e,t){Object.assign(o.boxes[t].style,e)}))},o.addBox=function(e){var t=document.createElement("div");Object.assign(t.style,o.options.handleStyles),t.style.cursor=e,t.style.width=o.options.handleStyles.width+"px",t.style.height=o.options.handleStyles.height+"px",t.addEventListener("mousedown",o.handleMousedown,!1),o.overlay.appendChild(t),o.boxes.push(t)},o.handleMousedown=function(e){o.dragBox=e.target,o.dragStartX=e.clientX,o.preDragWidth=o.img.width||o.img.naturalWidth,o.setCursor(o.dragBox.style.cursor),document.addEventListener("mousemove",o.handleDrag,!1),document.addEventListener("mouseup",o.handleMouseup,!1)},o.handleMouseup=function(){o.setCursor(""),document.removeEventListener("mousemove",o.handleDrag),document.removeEventListener("mouseup",o.handleMouseup)},o.handleDrag=function(e){if(o.img){var t=e.clientX-o.dragStartX;o.dragBox===o.boxes[0]||o.dragBox===o.boxes[3]?o.img.width=Math.round(o.preDragWidth-t):o.img.width=Math.round(o.preDragWidth+t),o.requestUpdate()}},o.setCursor=function(e){[document.body,o.img].forEach((function(t){t.style.cursor=e}))},a=n,i(o,a)}return o(t,e),t}(a.a)},function(e,n,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=r(105),l=r.n(s),u=r(104),c=r.n(u),f=r(106),d=r.n(f),h=r(9);r.d(n,"a",(function(){return y}));var p=t.imports.parchment,g=new p.Attributor.Style("float","float"),m=new p.Attributor.Style("margin","margin"),v=new p.Attributor.Style("display","display"),y=function(e){function t(){var e,n,r,a;i(this,t);for(var s=arguments.length,u=Array(s),f=0;f<s;f++)u[f]=arguments[f];return n=r=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.onCreate=function(){r.toolbar=document.createElement("div"),Object.assign(r.toolbar.style,r.options.toolbarStyles),r.overlay.appendChild(r.toolbar),r._defineAlignments(),r._addToolbarButtons()},r.onDestroy=function(){},r.onUpdate=function(){},r._defineAlignments=function(){r.alignments=[{icon:l.a,apply:function(){v.add(r.img,"inline"),g.add(r.img,"left"),m.add(r.img,"0 1em 1em 0")},isApplied:function(){return"left"==g.value(r.img)}},{icon:c.a,apply:function(){v.add(r.img,"block"),g.remove(r.img),m.add(r.img,"auto")},isApplied:function(){return"auto"==m.value(r.img)}},{icon:d.a,apply:function(){v.add(r.img,"inline"),g.add(r.img,"right"),m.add(r.img,"0 0 1em 1em")},isApplied:function(){return"right"==g.value(r.img)}}]},r._addToolbarButtons=function(){var e=[];r.alignments.forEach((function(t,n){var i=document.createElement("span");e.push(i),i.innerHTML=t.icon,i.addEventListener("click",(function(){e.forEach((function(e){return e.style.filter=""})),t.isApplied()?(g.remove(r.img),m.remove(r.img),v.remove(r.img)):(r._selectButton(i),t.apply()),r.requestUpdate()})),Object.assign(i.style,r.options.toolbarButtonStyles),n>0&&(i.style.borderLeftWidth="0"),Object.assign(i.children[0].style,r.options.toolbarButtonSvgStyles),t.isApplied()&&r._selectButton(i),r.toolbar.appendChild(i)}))},r._selectButton=function(e){e.style.filter="invert(20%)"},a=n,o(r,a)}return a(t,e),t}(h.a)},function(e,t,n){var r=n(17),i=n(20),o=n(63),a=n(101),s=i((function(e){return e.push(void 0,o),r(a,void 0,e)}));e.exports=s},function(e,n,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=r(37),a=r.n(o),s=r(33),l=r(34),u=r(36),c=r(35),f={DisplaySize:l.a,Toolbar:u.a,Resize:c.a},d=function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.initializeModules=function(){r.removeModules(),r.modules=r.moduleClasses.map((function(e){return new(f[e]||e)(r)})),r.modules.forEach((function(e){e.onCreate()})),r.onUpdate()},this.onUpdate=function(){r.repositionElements(),r.modules.forEach((function(e){e.onUpdate()}))},this.removeModules=function(){r.modules.forEach((function(e){e.onDestroy()})),r.modules=[]},this.handleClick=function(e){if(e.target&&e.target.tagName&&"IMG"===e.target.tagName.toUpperCase()){if(r.img===e.target)return;r.img&&r.hide(),r.show(e.target)}else r.img&&r.hide()},this.show=function(e){r.img=e,r.showOverlay(),r.initializeModules()},this.showOverlay=function(){r.overlay&&r.hideOverlay(),r.quill.setSelection(null),r.setUserSelect("none"),document.addEventListener("keyup",r.checkImage,!0),r.quill.root.addEventListener("input",r.checkImage,!0),r.overlay=document.createElement("div"),Object.assign(r.overlay.style,r.options.overlayStyles),r.quill.root.parentNode.appendChild(r.overlay),r.repositionElements()},this.hideOverlay=function(){r.overlay&&(r.quill.root.parentNode.removeChild(r.overlay),r.overlay=void 0,document.removeEventListener("keyup",r.checkImage),r.quill.root.removeEventListener("input",r.checkImage),r.setUserSelect(""))},this.repositionElements=function(){if(r.overlay&&r.img){var e=r.quill.root.parentNode,t=r.img.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(r.overlay.style,{left:t.left-n.left-1+e.scrollLeft+"px",top:t.top-n.top+e.scrollTop+"px",width:t.width+"px",height:t.height+"px"})}},this.hide=function(){r.hideOverlay(),r.removeModules(),r.img=void 0},this.setUserSelect=function(e){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach((function(t){r.quill.root.style[t]=e,document.documentElement.style[t]=e}))},this.checkImage=function(e){r.img&&(46!=e.keyCode&&8!=e.keyCode||t.find(r.img).deleteAt(0),r.hide())},this.quill=n;var l=!1;o.modules&&(l=o.modules.slice()),this.options=a()({},o,s.a),!1!==l&&(this.options.modules=l),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,console.log("this.options.modules",this.options.modules),this.modules=[]};n.default=d,t&&t.register("modules/imageResize",d)},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(66),o=n(67),a=n(68),s=n(69),l=n(70);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(80),o=n(81),a=n(82),s=n(83),l=n(84);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=s,r.prototype.set=l,e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(3),o=n(92),a=n(93),s=n(94),l=n(95),u=n(96);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=l,r.prototype.set=u,e.exports=r},function(e,t,n){var r=n(1),i=r.Uint8Array;e.exports=i},function(e,t,n){function r(e,t){var n=a(e),r=!n&&o(e),c=!n&&!r&&s(e),d=!n&&!r&&!c&&u(e),h=n||r||c||d,p=h?i(e.length,String):[],g=p.length;for(var m in e)!t&&!f.call(e,m)||h&&("length"==m||c&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,g))||p.push(m);return p}var i=n(53),o=n(27),a=n(28),s=n(29),l=n(24),u=n(31),c=Object.prototype,f=c.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=n(10),o=n(8),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){var r=n(0),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(62),i=r();e.exports=i},function(e,t,n){function r(e){return o(e)&&i(e)==a}var i=n(5),o=n(2),a="[object Arguments]";e.exports=r},function(e,t,n){function r(e){return!(!a(e)||o(e))&&(i(e)?h:l).test(s(e))}var i=n(13),o=n(74),a=n(0),s=n(97),l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,d=c.hasOwnProperty,h=RegExp("^"+f.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){function r(e){return a(e)&&o(e.length)&&!!s[i(e)]}var i=n(5),o=n(30),a=n(2),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=r},function(e,t,n){function r(e){if(!i(e))return a(e);var t=o(e),n=[];for(var r in e)("constructor"!=r||!t&&l.call(e,r))&&n.push(r);return n}var i=n(0),o=n(25),a=n(85),s=Object.prototype,l=s.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,r,y,b,_){var w=e[n],x=t[n],O=_.get(x);if(O)i(e,n,O);else{var S=b?b(w,x,n+"",e,t,_):void 0,C=void 0===S;if(C){var k=c(x),E=!k&&d(x),A=!k&&!E&&m(x);S=x,k||E||A?c(w)?S=w:f(w)?S=s(w):E?(C=!1,S=o(x,!0)):A?(C=!1,S=a(x,!0)):S=[]:g(x)||u(x)?(S=w,u(w)?S=v(w):(!p(w)||r&&h(w))&&(S=l(x))):C=!1}C&&(_.set(x,S),y(S,x,r,b,_),_.delete(x)),i(e,n,S)}}var i=n(18),o=n(56),a=n(57),s=n(58),l=n(71),u=n(27),c=n(28),f=n(99),d=n(29),h=n(13),p=n(0),g=n(100),m=n(31),v=n(103);e.exports=r},function(e,t,n){var r=n(98),i=n(21),o=n(26),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}var i=n(42);e.exports=r},function(e,t,n){(function(e){function r(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}var i=n(1),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i.Buffer:void 0,u=l?l.allocUnsafe:void 0;e.exports=r}).call(t,n(14)(e))},function(e,t,n){function r(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var i=n(55);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function r(e,t,n,r){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):i(n,u,c)}return n}var i=n(44),o=n(10);e.exports=r},function(e,t,n){var r=n(1),i=r["__core-js_shared__"];e.exports=i},function(e,t,n){function r(e){return i((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}var i=n(20),o=n(72);e.exports=r},function(e,t){function n(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}e.exports=n},function(e,t,n){function r(e,t,n,a,s,l){return o(e)&&o(t)&&(l.set(t,e),i(e,t,void 0,r,l),l.delete(t)),e}var i=n(19),o=n(0);e.exports=r},function(e,t,n){function r(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0}catch(e){}var r=s.call(e);return t?e[l]=n:delete e[l],r}var i=n(16),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=i?i.toStringTag:void 0;e.exports=r},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=n(7);e.exports=r},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function r(e){var t=this.__data__;if(i){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var i=n(7),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){function r(e){var t=this.__data__;return i?void 0!==t[e]:a.call(t,e)}var i=n(7),o=Object.prototype,a=o.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?o:t,this}var i=n(7),o="__lodash_hash_undefined__";e.exports=r},function(e,t,n){function r(e){return"function"!=typeof e.constructor||a(e)?{}:i(o(e))}var i=n(45),o=n(23),a=n(25);e.exports=r},function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=typeof t;return!!("number"==r?o(n)&&a(t,n.length):"string"==r&&t in n)&&i(n[t],e)}var i=n(8),o=n(12),a=n(24),s=n(0);e.exports=r},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function r(e){return!!o&&o in e}var i=n(60),o=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=r},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}var i=n(4),o=Array.prototype,a=o.splice;e.exports=r},function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=n(4);e.exports=r},function(e,t,n){function r(e){return i(this.__data__,e)>-1}var i=n(4);e.exports=r},function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=n(4);e.exports=r},function(e,t,n){function r(){this.size=0,this.__data__={hash:new i,map:new(a||o),string:new i}}var i=n(39),o=n(3),a=n(15);e.exports=r},function(e,t,n){function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=n(6);e.exports=r},function(e,t,n){function r(e){return i(this,e).get(e)}var i=n(6);e.exports=r},function(e,t,n){function r(e){return i(this,e).has(e)}var i=n(6);e.exports=r},function(e,t,n){function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=n(6);e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){(function(e){var r=n(22),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,l=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(t,n(14)(e))},function(e,t){function n(e){return i.call(e)}var r=Object.prototype,i=r.toString;e.exports=n},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function r(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);++a<s;)l[a]=r[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=r[a];return u[t]=n(l),i(e,this,u)}}var i=n(17),o=Math.max;e.exports=r},function(e,t,n){var r=n(52),i=n(91),o=i(r);e.exports=o},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=i-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;e.exports=n},function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=n(3);e.exports=r},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this}var i=n(3),o=n(15),a=n(40),s=200;e.exports=r},function(e,t){function n(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,i=r.toString;e.exports=n},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function r(e){return o(e)&&i(e)}var i=n(12),o=n(2);e.exports=r},function(e,t,n){function r(e){if(!a(e)||i(e)!=s)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var i=n(5),o=n(23),a=n(2),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=c.call(Object);e.exports=r},function(e,t,n){var r=n(19),i=n(61),o=i((function(e,t,n,i){r(e,t,n,i)}));e.exports=o},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function r(e){return i(e,o(e))}var i=n(59),o=n(32);e.exports=r},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n  <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n  <line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>\n  <line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>\n</svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n  <line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>\n  <line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>\n  <line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>\n</svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18">\n  <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>\n  <line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>\n  <line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>\n</svg>'},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n}])}))}).call(this,n("c45d"))},f3eb:function(e,t,n){"use strict";n("cc84")},f440:function(e,t,n){"use strict";n("05e7")},f4d6:function(e,t,n){var r=n("ffd6"),i=1/0;function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=o},f5e4:function(e,t,n){(function(e){ace.define("ace/snippets/css",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n",t.scope="css"})),function(){ace.require(["ace/snippets/css"],(function(t){e&&(e.exports=t)}))}()}).call(this,n("62e4")(e))},f5fe:function(e,t,n){"use strict";var r=n("f0ce"),i=n("1147"),o="[object Arguments]";function a(e){return Object(i["a"])(e)&&Object(r["a"])(e)==o}var s=a,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,f=s(function(){return arguments}())?s:function(e){return Object(i["a"])(e)&&u.call(e,"callee")&&!c.call(e,"callee")};t["a"]=f},f608:function(e,t,n){var r=n("6747"),i=n("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}e.exports=s},f660:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ace-container"},[n("div",{ref:"ace",staticClass:"ace-editor"})])},i=[],o=n("6d4f"),a=n.n(o),s=(n("ec4f"),n("5208"),n("f5e4"),n("710b"),n("c0da"),n("53d7"),n("c49b"),n("2e38"),n("da79"),n("9222"),{name:"sCode",data(){return{editor:null,toggle:!1,themePath:"ace/theme/",modePath:"ace/mode/"}},props:{value:[Array,String],theme:{type:String,default:"monokai"},inputStyle:Object,wrap:{type:Boolean,default:!0},mode:String,readOnly:{type:Boolean,default:!1},tabSize:{type:Number,default:2},fontSize:{type:Number,default:14}},methods:{init(){this.editor=a.a.edit(this.$refs.ace,{minLines:10,fontSize:this.fontSize,value:this.value,theme:this.themePath+this.theme,mode:this.modePath+this.mode,wrap:this.wrap,tabSize:this.tabSize,readOnly:this.readOnly}),this.editor.setOptions({enableSnippets:!0,enableLiveAutocompletion:!0,enableBasicAutocompletion:!0}),this.value&&this.editor.setValue(this.value),this.editor.on("change",()=>{this.$emit("input",this.editor.getValue()),this.$emit("change",this.editor.getValue())}),this.editor.on("blur",()=>{this.$emit("blur")}),this.editor.on("focus",()=>{this.$emit("focus")})}},mounted(){this.init()}}),l=s,u=(n("cceb"),n("2877")),c=Object(u["a"])(l,r,i,!1,null,"6ca9e41a",null),f=c.exports;f.install=function(e){e.component("SCode",f)},t["default"]=f},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f842:function(e,t,n){"use strict";var r=n("db72"),i=n("b84d");function o(e,t,n,o){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?Object(i["a"])(n,u,c):Object(r["a"])(n,u,c)}return n}t["a"]=o},f8af:function(e,t,n){var r=n("2474");function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},f8be:function(e,t,n){},f976:function(e,t,n){"use strict";function r(e){return e}t["a"]=r},fa21:function(e,t,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}e.exports=a},fba5:function(e,t,n){var r=n("cb5a");function i(e){return r(this.__data__,e)>-1}e.exports=i},ff51:function(e,t,n){"use strict";var r=Array.isArray;t["a"]=r},ff7d:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("s-"+e.config.type,e._b({tag:"div",attrs:{options:e.config.options,mapper:e.mapper},on:{input:e.change,focus:e.focus,blur:e.blur},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("content-"+e.config._code,null,{option:e.config,data:t})]}}],null,!0),model:{value:e.model,callback:function(t){e.model=t},expression:"model"}},"div",e.config.props,!1))},i=[],o={name:"selfTag",props:{value:String|Number,config:Object,mapper:Object,inputStyle:Object},computed:{model:{set(e){this.$emit("changeValue",e),this.$emit("input",e)},get(){return this.value}}},methods:{change(e){this.config.change&&this.$emit("change",e)},focus(){this.config.focus&&this.$emit("focus",this.value)},blur(){this.config.blur&&this.$emit("blur",this.value)}}},a=o,s=n("2877"),l=Object(s["a"])(a,r,i,!1,null,null,null);t["a"]=l.exports},ffd6:function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a},fffd:function(e,t,n){"use strict";n("4d00")}})},4237:function(e,t,n){n("be7f")},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42e5":function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=r},4319:function(e,t,n){"use strict";var r=n("22d1"),i=n("625e"),o=n("282b"),a=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],s=Object(o["a"])(a),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return s(this,e,t)},e}(),u=n("7837"),c=n("76a5"),f=["textStyle","color"],d=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],h=new c["a"],p=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(f):null)},e.prototype.getFont=function(){return Object(u["d"])({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<d.length;n++)t[d[n]]=this.getShallow(d[n]);return h.useStyle(t),h.update(),h.getBoundingRect()},e}(),g=p,m=n("3901"),v=n("551f"),y=n("6d8b"),b=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 r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Object(y["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,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),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(y["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(!r["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 r=0;r<e.length;r++)if(e[r]&&(n=n&&"object"===typeof n?n[e[r]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Object(i["b"])(b),Object(i["a"])(b),Object(y["mixin"])(b,m["b"]),Object(y["mixin"])(b,v["b"]),Object(y["mixin"])(b,l),Object(y["mixin"])(b,g);t["a"]=b},4328:function(e,t,n){"use strict";var r=n("4127"),i=n("9e6a"),o=n("b313");e.exports={formats:o,parse:i,stringify:r}},4362: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,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},4573:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i["b"]);a.prototype.type="ring",t["a"]=a},"466d":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),a=n("1d80"),s=n("8aa5"),l=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=i(e),u=String(this);if(!a.global)return l(a,u);var c=a.unicode;a.lastIndex=0;var f,d=[],h=0;while(null!==(f=l(a,u))){var p=String(f[0]);d[h]=p,""===p&&(a.lastIndex=s(u,o(a.lastIndex),c)),h++}return 0===h?null:d}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},4726:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},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 r=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)},i=[];r._withStripped=!0;var o,a,s=n(26),l=n.n(s),u=n(15),c=n.n(u),f=n(18),d=n.n(f),h=n(52),p=n.n(h),g=n(3),m=function(e){return e.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:d.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,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):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,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(e):i?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,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=m),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(g["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},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,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,u=this.nodeId,c=s.expandTrigger,f=s.checkStrictly,d=s.multiple,h=!f&&a,p={on:{}};return"click"===c?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||f||d||(p.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:u,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":f,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":h}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},y=v,b=n(0),_=Object(b["a"])(y,o,a,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-node.vue";var w,x,O=_.exports,S=n(6),C=n.n(S),k={name:"ElCascaderMenu",mixins:[C.a],inject:["panel"],components:{ElScrollbar:c.a,CascaderNode:O},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,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,u=s.offsetHeight,c=t.offsetTop,f=c+t.offsetHeight;r.innerHTML='\n          <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+l+" 0 V"+c+' Z" />\n          <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+l+" "+u+" V"+f+' 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,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.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"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},E=k,A=Object(b["a"])(E,w,x,!1,null,null,null);A.options.__file="packages/cascader-panel/src/cascader-menu.vue";var T=A.exports,D=n(21),M=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var I=0,j=function(){function e(t,n,r){P(this,e),this.data=t,this.config=n,this.parent=r||null,this.level=this.parent?this.parent.level+1:1,this.uid=I++,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,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,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),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(g["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(g["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},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")))},M(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(D["isDef"])(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),L=j;function N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var R=function e(t,n){return t.reduce((function(t,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},B=function(){function e(t,n){N(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 L(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new L(e,this.config,t),r=t?t.children:this.nodes;r.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:R(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,F=n(9),z=n.n(F),q=n(41),U=n.n(q),H=n(31),V=n.n(H),W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K=U.a.keys,G={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 r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+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:T},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 z()(W({},G),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 $(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,r=n.emitPath;return!(!t&&!r)&&Object(g["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(g["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=r.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,r=n?Object(g["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.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 K.up:var r=X(t,-1);Q(r);break;case K.down:var i=X(t,1);Q(i);break;case K.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 K.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 K.enter:J(t);break;case K.esc:case K.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.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,r=this.config;e||(e=e||{root:!0,level:0},this.store=new $([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),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(r)&&r.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(r)};r.lazyLoad(e,i)},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"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");V()(n,r)}}))}},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 r=this.getFlattedNodes(e);return r.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,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},te=ee,ne=Object(b["a"])(te,r,i,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var re=ne.exports;re.install=function(e){e.component(re.name,re)};t["default"]=re},9:function(e,t){e.exports=n("7f4d")}})},4840:function(e,t,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("f0d9"),i=f(r),o=n("2b0e"),a=f(o),s=n("3c4e"),l=f(s),u=n("9d7e"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var d=(0,c.default)(a.default),h=i.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)(h,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 r=e.split("."),i=h,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return d(n,t);if(!n)return"";i=n}return""},v=t.use=function(e){h=e||h},y=t.i18n=function(e){g=e||g};t.default={use:v,t:m,i18n:y}},"48a9":function(e,t,n){"use strict";var r=n("9ab4"),i=n("42e5"),o=function(e){function t(t,n,r,i,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==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4a0c":function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},"4a3f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return O})),n.d(t,"m",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"n",(function(){return k})),n.d(t,"l",(function(){return E})),n.d(t,"k",(function(){return A}));var r=n("401b"),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),u=1/3,c=Object(r["create"])(),f=Object(r["create"])(),d=Object(r["create"])();function h(e){return e>-a&&e<a}function p(e){return e>a||e<-a}function g(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function m(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function v(e,t,n,r,a,s){var c=r+3*(t-n)-e,f=3*(n-2*t+e),d=3*(t-e),p=e-a,g=f*f-3*c*d,m=f*d-9*c*p,v=d*d-3*f*p,y=0;if(h(g)&&h(m))if(h(f))s[0]=0;else{var b=-d/f;b>=0&&b<=1&&(s[y++]=b)}else{var _=m*m-4*g*v;if(h(_)){var w=m/g,x=(b=-f/c+w,-w/2);b>=0&&b<=1&&(s[y++]=b),x>=0&&x<=1&&(s[y++]=x)}else if(_>0){var O=o(_),S=g*f+1.5*c*(-m+O),C=g*f+1.5*c*(-m-O);S=S<0?-i(-S,u):i(S,u),C=C<0?-i(-C,u):i(C,u);b=(-f-(S+C))/(3*c);b>=0&&b<=1&&(s[y++]=b)}else{var k=(2*g*f-3*c*m)/(2*o(g*g*g)),E=Math.acos(k)/3,A=o(g),T=Math.cos(E),D=(b=(-f-2*A*T)/(3*c),x=(-f+A*(T+l*Math.sin(E)))/(3*c),(-f+A*(T-l*Math.sin(E)))/(3*c));b>=0&&b<=1&&(s[y++]=b),x>=0&&x<=1&&(s[y++]=x),D>=0&&D<=1&&(s[y++]=D)}}return y}function y(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(h(s)){if(p(a)){var c=-l/a;c>=0&&c<=1&&(i[u++]=c)}}else{var f=a*a-4*s*l;if(h(f))i[0]=-a/(2*s);else if(f>0){var d=o(f),g=(c=(-a+d)/(2*s),(-a-d)/(2*s));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function b(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function _(e,t,n,i,a,l,u,h,p,m,v){var y,b,_,w,x,O=.005,S=1/0;c[0]=p,c[1]=m;for(var C=0;C<1;C+=.05)f[0]=g(e,n,a,u,C),f[1]=g(t,i,l,h,C),w=Object(r["distSquare"])(c,f),w<S&&(y=C,S=w);S=1/0;for(var k=0;k<32;k++){if(O<s)break;b=y-O,_=y+O,f[0]=g(e,n,a,u,b),f[1]=g(t,i,l,h,b),w=Object(r["distSquare"])(f,c),b>=0&&w<S?(y=b,S=w):(d[0]=g(e,n,a,u,_),d[1]=g(t,i,l,h,_),x=Object(r["distSquare"])(d,c),_<=1&&x<S?(y=_,S=x):O*=.5)}return v&&(v[0]=g(e,n,a,u,y),v[1]=g(t,i,l,h,y)),o(S)}function w(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,m=g(e,n,i,a,p),v=g(t,r,o,s,p),y=m-u,b=v-c;f+=Math.sqrt(y*y+b*b),u=m,c=v}return f}function x(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function O(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function S(e,t,n,r,i){var a=e-2*t+n,s=2*(t-e),l=e-r,u=0;if(h(a)){if(p(s)){var c=-l/s;c>=0&&c<=1&&(i[u++]=c)}}else{var f=s*s-4*a*l;if(h(f)){c=-s/(2*a);c>=0&&c<=1&&(i[u++]=c)}else if(f>0){var d=o(f),g=(c=(-s+d)/(2*a),(-s-d)/(2*a));c>=0&&c<=1&&(i[u++]=c),g>=0&&g<=1&&(i[u++]=g)}}return u}function C(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function k(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function E(e,t,n,i,a,l,u,h,p){var g,m=.005,v=1/0;c[0]=u,c[1]=h;for(var y=0;y<1;y+=.05){f[0]=x(e,n,a,y),f[1]=x(t,i,l,y);var b=Object(r["distSquare"])(c,f);b<v&&(g=y,v=b)}v=1/0;for(var _=0;_<32;_++){if(m<s)break;var w=g-m,O=g+m;f[0]=x(e,n,a,w),f[1]=x(t,i,l,w);b=Object(r["distSquare"])(f,c);if(w>=0&&b<v)g=w,v=b;else{d[0]=x(e,n,a,O),d[1]=x(t,i,l,O);var S=Object(r["distSquare"])(d,c);O<=1&&S<v?(g=O,v=S):m*=.5}}return p&&(p[0]=x(e,n,a,g),p[1]=x(t,i,l,g)),o(v)}function A(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=x(e,n,i,d),p=x(t,r,o,d),g=h-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=h,l=p}return u}},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=l(void 0,e[i])):n[i]=l(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},"4aa2":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("6d8b"),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,c=Math.acos,f=Math.atan2,d=Math.abs,h=Math.sqrt,p=Math.max,g=Math.min,m=1e-4;function v(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<m))return d=(c*(t-o)-f*(e-i))/d,[e+d*l,t+d*u]}function y(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/h(s*s+l*l),c=u*l,f=-u*s,d=e+c,g=t+f,m=n+c,v=r+f,y=(d+m)/2,b=(g+v)/2,_=m-d,w=v-g,x=_*_+w*w,O=i-o,S=d*v-m*g,C=(w<0?-1:1)*h(p(0,O*O*x-S*S)),k=(S*w-_*C)/x,E=(-S*_-w*C)/x,A=(S*w+_*C)/x,T=(-S*_+w*C)/x,D=k-y,M=E-b,P=A-y,I=T-b;return D*D+M*M>P*P+I*I&&(k=A,E=T),{cx:k,cy:E,x0:-c,y0:-f,x1:k*(i/O-1),y1:E*(i/O-1)}}function b(e){var t;if(Object(o["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 _(e,t){var n,r=p(t.r,0),i=p(t.r0||0,0),o=r>0,_=i>0;if(o||_){if(o||(r=i,i=0),i>r){var w=r;r=i,i=w}var x=t.startAngle,O=t.endAngle;if(!isNaN(x)&&!isNaN(O)){var S=t.cx,C=t.cy,k=!!t.clockwise,E=d(O-x),A=E>s&&E%s;if(A>m&&(E=A),r>m)if(E>s-m)e.moveTo(S+r*u(x),C+r*l(x)),e.arc(S,C,r,x,O,!k),i>m&&(e.moveTo(S+i*u(O),C+i*l(O)),e.arc(S,C,i,O,x,k));else{var T=void 0,D=void 0,M=void 0,P=void 0,I=void 0,j=void 0,L=void 0,N=void 0,R=void 0,B=void 0,$=void 0,F=void 0,z=void 0,q=void 0,U=void 0,H=void 0,V=r*u(x),W=r*l(x),K=i*u(O),G=i*l(O),Y=E>m;if(Y){var X=t.cornerRadius;X&&(n=b(X),T=n[0],D=n[1],M=n[2],P=n[3]);var Z=d(r-i)/2;if(I=g(Z,M),j=g(Z,P),L=g(Z,T),N=g(Z,D),$=R=p(I,j),F=B=p(L,N),(R>m||B>m)&&(z=r*u(O),q=r*l(O),U=i*u(x),H=i*l(x),E<a)){var Q=v(V,W,U,H,z,q,K,G);if(Q){var J=V-Q[0],ee=W-Q[1],te=z-Q[0],ne=q-Q[1],re=1/l(c((J*te+ee*ne)/(h(J*J+ee*ee)*h(te*te+ne*ne)))/2),ie=h(Q[0]*Q[0]+Q[1]*Q[1]);$=g(R,(r-ie)/(re+1)),F=g(B,(i-ie)/(re-1))}}}if(Y)if($>m){var oe=g(M,$),ae=g(P,$),se=y(U,H,V,W,r,oe,k),le=y(z,q,K,G,r,ae,k);e.moveTo(S+se.cx+se.x0,C+se.cy+se.y0),$<R&&oe===ae?e.arc(S+se.cx,C+se.cy,$,f(se.y0,se.x0),f(le.y0,le.x0),!k):(oe>0&&e.arc(S+se.cx,C+se.cy,oe,f(se.y0,se.x0),f(se.y1,se.x1),!k),e.arc(S,C,r,f(se.cy+se.y1,se.cx+se.x1),f(le.cy+le.y1,le.cx+le.x1),!k),ae>0&&e.arc(S+le.cx,C+le.cy,ae,f(le.y1,le.x1),f(le.y0,le.x0),!k))}else e.moveTo(S+V,C+W),e.arc(S,C,r,x,O,!k);else e.moveTo(S+V,C+W);if(i>m&&Y)if(F>m){oe=g(T,F),ae=g(D,F),se=y(K,G,z,q,i,-ae,k),le=y(V,W,U,H,i,-oe,k);e.lineTo(S+se.cx+se.x0,C+se.cy+se.y0),F<B&&oe===ae?e.arc(S+se.cx,C+se.cy,F,f(se.y0,se.x0),f(le.y0,le.x0),!k):(ae>0&&e.arc(S+se.cx,C+se.cy,ae,f(se.y0,se.x0),f(se.y1,se.x1),!k),e.arc(S,C,i,f(se.cy+se.y1,se.cx+se.x1),f(le.cy+le.y1,le.cx+le.x1),k),oe>0&&e.arc(S+le.cx,C+le.cy,oe,f(le.y1,le.x1),f(le.y0,le.x0),!k))}else e.lineTo(S+K,C+G),e.arc(S,C,i,O,x,k);else e.lineTo(S+K,C+G)}else e.moveTo(S,C);e.closePath()}}}var w=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}(),x=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new w},t.prototype.buildPath=function(e,t){_(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i["b"]);x.prototype.type="sector";t["a"]=x},"4ae6":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},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="/dist/",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t=void 0;if("string"!=typeof e)try{t=JSON.stringify(e)}catch(e){throw"Failed to copy value to clipboard. Unknown type."}else t=e;var n=document.createElement("textarea");if(n.value=t,n.setAttribute("readonly",""),n.style.cssText="position:fixed;pointer-events:none;z-index:-9999;opacity:0;",document.body.appendChild(n),navigator.userAgent.match(/ipad|ipod|iphone/i)){n.contentEditable=!0,n.readOnly=!0;var r=document.createRange();r.selectNodeContents(n);var i=window.getSelection();i.removeAllRanges(),i.addRange(r),n.setSelectionRange(0,999999)}else n.select();var o=!1;try{o=document.execCommand("copy")}catch(e){console.warn(e)}return document.body.removeChild(n),o};t.default={install:function(e){e.prototype.$clipboard=r;var t=function(e){return function(){return"$"+e++}}(1),n={},i=function(e){e&&(n[e]=null,delete n[e])},o=function(e){var r=t();return n[r]=e,r};e.directive("clipboard",{bind:function(e,t){var i=t.arg,a=t.value;switch(i){case"error":var s=o(a);return void(e.dataset.clipboardErrorHandler=s);case"success":var l=o(a);return void(e.dataset.clipboardSuccessHandler=l);default:var u=function(i){if(t.hasOwnProperty("value")){var o={value:"function"==typeof a?a():a,event:i},s=r(o.value)?e.dataset.clipboardSuccessHandler:e.dataset.clipboardErrorHandler,l=n[s];l&&l(o)}},c=o(u);return e.dataset.clipboardClickHandler=c,void e.addEventListener("click",n[c])}},unbind:function(e){var t=e.dataset,r=t.clipboardSuccessHandler,o=t.clipboardErrorHandler,a=t.clipboardClickHandler;i(r),i(o),a&&(e.removeEventListener("click",n[a]),i(a))}})}}}])}))},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,u=void 0,c=function(){if(!i.default.prototype.$isServer){var e=d.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),d.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){d.doOnModalClick&&d.doOnModalClick()}))),e}},f={},d={modalFade:!0,getInstance:function(e){return f[e]},register:function(e,t){e&&t&&(f[e]=t)},deregister:function(e){e&&(f[e]=null,delete f[e])},nextZIndex:function(){return d.zIndex++},modalStack:[],doOnModalClick:function(){var e=d.modalStack[d.modalStack.length-1];if(e){var t=d.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,a){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,u=0,f=l.length;u<f;u++){var d=l[u];if(d.id===e)return}var h=c();if((0,o.addClass)(h,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(h,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(h,e)}))}setTimeout((function(){(0,o.removeClass)(h,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(h):document.body.appendChild(h),t&&(h.style.zIndex=t),h.tabIndex=0,h.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=c();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.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",d.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(d,"zIndex",{configurable:!0,get:function(){return l||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),u},set:function(e){u=e}});var h=function(){if(!i.default.prototype.$isServer&&d.modalStack.length>0){var e=d.modalStack[d.modalStack.length-1];if(!e)return;var t=d.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=h();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=d},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4bc4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));var r=1,i=2,o=4},"4d20":function(e,t,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),u=Object.getOwnPropertyDescriptor;t.f=n("0bad")?u:function(e,t){if(e=o(e),t=a(t,!0),l)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,l=n("241c").f,u=n("44e7"),c=n("ad6d"),f=n("9f7f"),d=n("6eeb"),h=n("d039"),p=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),y=i.RegExp,b=y.prototype,_=/a/g,w=/a/g,x=new y(_)!==_,O=f.UNSUPPORTED_Y,S=r&&o("RegExp",!x||O||h((function(){return w[v]=!1,y(_)!=_||y(w)==w||"/a/i"!=y(_,"i")})));if(S){var C=function(e,t){var n,r=this instanceof C,i=u(e),o=void 0===t;if(!r&&i&&e.constructor===C&&o)return e;x?i&&!o&&(e=e.source):e instanceof C&&(o&&(t=c.call(e)),e=e.source),O&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(x?new y(e,t):y(e,t),r?this:b,C);return O&&n&&p(s,{sticky:n}),s},k=function(e){e in C||s(C,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},E=l(y),A=0;while(E.length>A)k(E[A++]);b.constructor=C,C.prototype=b,d(i,"RegExp",C)}g("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),u=n("35a1");e.exports=function(e){var t,n,c,f,d,h,p=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=u(p),_=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),void 0==b||g==Array&&a(b))for(t=s(p.length),n=new g(t);t>_;_++)h=y?v(p[_],_):p[_],l(n,_,h);else for(f=b.call(p),d=f.next,n=new g;!(c=d.call(f)).done;_++)h=y?o(f,v,[c.value,_],!0):c.value,l(n,_,h);return n.length=_,n}},"4e15":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("2b0e"),i=n("cb23"),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e){var t="请使用 '@".concat(e,"' 事件，不要放在 props 中");return t+"\nPlease use '@".concat(e,"' event instead of props")}var s=r["default"].extend({render:function(e){return e("div",{ref:"box"})},name:"Editor",data:function(){return{curValue:"",editor:null}},props:["defaultContent","defaultConfig","mode","defaultHtml","value"],mounted:function(){this.create()},watch:{value:function(e){e===this.curValue||this.setHtml(e)}},methods:{setHtml:function(e){var t=this.editor;null!=t&&t.setHtml(e)},create:function(){var e=this;if(null!=this.$refs.box){var t=this.defaultConfig||{},n=JSON.stringify(Array.isArray(this.defaultContent)?this.defaultContent:[]);Object(i["createEditor"])({selector:this.$refs.box,html:this.defaultHtml||this.value||"",config:o(o({},t),{onCreated:function(n){if(e.editor=Object.seal(n),e.$emit("onCreated",n),t.onCreated){var r=a("onCreated");throw new Error(r)}},onChange:function(n){var r=n.getHtml();if(e.curValue=r,e.$emit("input",r),e.$emit("onChange",n),t.onChange){var i=a("onChange");throw new Error(i)}},onDestroyed:function(n){if(e.$emit("onDestroyed",n),t.onDestroyed){var r=a("onDestroyed");throw new Error(r)}},onMaxLength:function(n){if(e.$emit("onMaxLength",n),t.onMaxLength){var r=a("onMaxLength");throw new Error(r)}},onFocus:function(n){if(e.$emit("onFocus",n),t.onFocus){var r=a("onFocus");throw new Error(r)}},onBlur:function(n){if(e.$emit("onBlur",n),t.onBlur){var r=a("onBlur");throw new Error(r)}},customAlert:function(n,r){if(e.$emit("customAlert",n,r),t.customAlert){var i=a("customAlert");throw new Error(i)}},customPaste:function(n,r){if(t.customPaste){var i=a("customPaste");throw new Error(i)}var o;return e.$emit("customPaste",n,r,(function(e){o=e})),o}}),content:JSON.parse(n),mode:this.mode||"default"})}}}}),l=r["default"].extend({name:"Toolbar",render:function(e){return e("div",{ref:"box"})},props:["editor","defaultConfig","mode"],methods:{create:function(e){null!=this.$refs.box&&null!=e&&(i["DomEditor"].getToolbar(e)||Object(i["createToolbar"])({editor:e,selector:this.$refs.box,config:this.defaultConfig||{},mode:this.mode||"default"}))}},watch:{editor:{handler:function(e){null!=e&&this.create(e)},immediate:!0}}})},"4e3e":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("825a");r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(o(this),e,void 0,!1,!0)}})},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},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 r=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)},i=[];r._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},u={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,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[i]===t[i])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,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=u,f=n(0),d=Object(f["a"])(c,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.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 r=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)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),l=n.n(s),u=n(6),c=n.n(u),f=n(10),d=n.n(f),h=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=[];h._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)}},y=v,b=n(0),_=Object(b["a"])(y,h,p,!1,null,null,null);_.options.__file="packages/select/src/select-dropdown.vue";var w=_.exports,x=n(33),O=n(38),S=n.n(O),C=n(15),k=n.n(C),E=n(19),A=n.n(E),T=n(12),D=n.n(T),M=n(16),P=n(31),I=n.n(P),j=n(3),L={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}}},N=n(21),R={mixins:[a.a,c.a,l()("reference"),L],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(j["isIE"])()&&!Object(j["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:d.a,ElSelectMenu:w,ElOption:x["a"],ElTag:S.a,ElScrollbar:k.a},directives:{Clickoutside:D.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(j["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 r=n[n.length-1]||"";this.isOnComposition=!Object(N["isKorean"])(r)}},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");I()(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(j["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(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(j["getValueByPath"])(a.value,this.valueKey)===Object(j["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||r||i?"":String(e),u={value:e,currentLabel:l};return this.multiple&&(u.hitState=!1),u},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],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>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 r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),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 r=this.valueKey,i=-1;return e.some((function(e,n){return Object(j["getValueByPath"])(e,r)===Object(j["getValueByPath"])(t,r)&&(i=n,!0)})),i}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 r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),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 r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(j["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=A()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=A()(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(M["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.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(M["removeResizeListener"])(this.$el,this.handleResize)}},B=R,$=Object(b["a"])(B,r,i,!1,null,null,null);$.options.__file="packages/select/src/select.vue";var F=$.exports;F.install=function(e){e.component(F.name,F)};t["default"]=F}})},"4e71":function(e,t,n){n("e198")("observable")},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("1c0b"),o=n("7b0b"),a=n("d039"),s=n("a640"),l=[],u=l.sort,c=a((function(){l.sort(void 0)})),f=a((function(){l.sort(null)})),d=s("sort"),h=c||!f||!d;r({target:"Array",proto:!0,forced:h},{sort:function(e){return void 0===e?u.call(o(this)):u.call(o(this),i(e))}})},"4ea8":function(e,t,n){n("cdd9")},"4ebc":function(e,t,n){var r=n("4d88");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"4ec9":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"4f85":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n("9ab4"),i=n("6d8b"),o=n("22d1"),a=n("e0d3"),s=n("6cb7"),l=n("4041"),u=n("38a2"),c=n("f934"),f=n("9fbc"),d=n("625e"),h=n("f72b"),p=n("f6d8"),g=a["o"]();function m(e,t){return e.getName(t)||e.getId(t)}var v="__universalTransitionEnabled",y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(f["a"])({count:w,reset:x}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=g(this).sourceManager=new h["a"](this);r.prepareSource();var i=this.getInitialData(e,n);S(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,b(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(c["d"])(this),r=n?Object(c["f"])(e):{},o=this.subType;s["a"].hasClass(o)&&(o+="Series"),i["merge"](e,t.getTheme().get(this.subType)),i["merge"](e,this.getDefaultOption()),a["f"](e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(c["h"])(e,r,n)},t.prototype.mergeOption=function(e,t){e=i["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(c["d"])(this);n&&Object(c["h"])(this.option,e,n);var r=g(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(e,t);S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,b(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!i["isTypedArray"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&a["f"](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=k(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return g(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=k(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return i["createHashMap"](e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return g(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 Object(p["a"])({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o["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 r=this.ecModel,i=l["a"].prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},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 r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=m(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],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=i["keys"](e),n=[],r=0;r<t.length;r++){var o=e[t[r]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[m(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,o=this.option,a=o.selectedMode,s=t.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i["isObject"](o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var c=t[u],f=m(e,c);l[f]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(c)}}else if("single"===a||!0===a){var d=t[s-1];f=m(e,d);o.selectedMap=(n={},n[f]=!0,n),this._selectedDataIndicesMap=(r={},r[f]=e.getRawIndex(d),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s["a"].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}(s["a"]);function b(e){var t=e.name;a["n"](e)||(e.name=_(e)||t)}function _(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function w(e){return e.model.getRawData().count()}function x(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),O}function O(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function S(e,t){i["each"](i["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i["curry"](C,t))}))}function C(e,t){var n=k(e);return n&&n.setOutputEnd((t||this).count()),t}function k(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i["mixin"](y,u["a"]),i["mixin"](y,l["a"]),Object(d["e"])(y,s["a"]),t["b"]=y},"4fac":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("401b");function i(e,t,n,i){var o,a,s,l,u=[],c=[],f=[],d=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,p=e.length;h<p;h++)Object(r["min"])(s,s,e[h]),Object(r["max"])(l,l,e[h]);Object(r["min"])(s,s,i[0]),Object(r["max"])(l,l,i[1])}for(h=0,p=e.length;h<p;h++){var g=e[h];if(n)o=e[h?h-1:p-1],a=e[(h+1)%p];else{if(0===h||h===p-1){u.push(Object(r["clone"])(e[h]));continue}o=e[h-1],a=e[h+1]}Object(r["sub"])(c,a,o),Object(r["scale"])(c,c,t);var m=Object(r["distance"])(g,o),v=Object(r["distance"])(g,a),y=m+v;0!==y&&(m/=y,v/=y),Object(r["scale"])(f,c,-m),Object(r["scale"])(d,c,v);var b=Object(r["add"])([],g,f),_=Object(r["add"])([],g,d);i&&(Object(r["max"])(b,b,s),Object(r["min"])(b,b,l),Object(r["max"])(_,_,s),Object(r["min"])(_,_,l)),u.push(b),u.push(_)}return n&&u.push(u.shift()),u}function o(e,t,n){var r=t.smooth,o=t.points;if(o&&o.length>=2){if(r){var a=i(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],f=o[(l+1)%s];e.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)e.lineTo(o[l][0],o[l][1])}n&&e.closePath()}}},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n("2b0e"),i=d(r),o=n("7f4d"),a=d(o),s=n("4b26"),l=d(s),u=n("e62d"),c=d(u),f=n("5924");function d(e){return e&&e.__esModule?e:{default:e}}var h=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-"+h++,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,i.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 r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):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,r=e.zIndex;if(r&&(l.default.zIndex=r),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,f.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,f.getStyle)(document.body,"paddingRight"),10)),p=(0,c.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,f.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,f.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,f.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},"512c":function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",u=function(e,t,n){var c,f,d,h=e&u.F,p=e&u.G,g=e&u.S,m=e&u.P,v=e&u.B,y=e&u.W,b=p?i:i[t]||(i[t]={}),_=b[l],w=p?r:g?r[t]:(r[t]||{})[l];for(c in p&&(n=t),n)f=!h&&w&&void 0!==w[c],f&&s(b,c)||(d=f?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:v&&f?o(d,r):y&&w[c]==d?function(e){var t=function(t,n,r){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,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[c]=d,e&u.R&&_&&!_[c]&&a(_,c,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"51eb":function(e,t,n){"use strict";var r=n("825a"),i=n("c04e");e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},5210:function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return $})),n.d(t,"a",(function(){return F}));var r=n("19eb"),i=n("20c8"),o=n("5e76"),a=n("3437"),s=n("cbe5"),l=n("0da8"),u=n("dd4f"),c=n("6d8b"),f=n("8d1d"),d=n("4bc4"),h=n("726e"),p=new i["a"](!0);function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function m(e){return"string"===typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function y(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 b(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 _(e,t,n){var r=Object(o["a"])(t.image,t.__image,n);if(Object(o["c"])(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*c["RADIAN_TO_DEGREE"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function w(e,t,n,r){var i,o=g(n),s=v(n),l=n.strokePercent,u=l<1,c=!t.path;t.silent&&!u||!c||t.createPathProxy();var h=t.path||p,m=t.__dirty;if(!r){var w=n.fill,x=n.stroke,O=s&&!!w.colorStops,S=o&&!!x.colorStops,C=s&&!!w.image,k=o&&!!x.image,E=void 0,A=void 0,T=void 0,D=void 0,M=void 0;(O||S)&&(M=t.getBoundingRect()),O&&(E=m?Object(a["a"])(e,w,M):t.__canvasFillGradient,t.__canvasFillGradient=E),S&&(A=m?Object(a["a"])(e,x,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=A),C&&(T=m||!t.__canvasFillPattern?_(e,w,t):t.__canvasFillPattern,t.__canvasFillPattern=T),k&&(D=m||!t.__canvasStrokePattern?_(e,x,t):t.__canvasStrokePattern,t.__canvasStrokePattern=T),O?e.fillStyle=E:C&&(T?e.fillStyle=T:s=!1),S?e.strokeStyle=A:k&&(D?e.strokeStyle=D:o=!1)}var P,I,j=t.getGlobalScale();h.setScale(j[0],j[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=Object(f["a"])(t),P=i[0],I=i[1]);var L=!0;(c||m&d["b"])&&(h.setDPR(e.dpr),u?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,u?l:1),P&&(e.setLineDash(P),e.lineDashOffset=I),r||(n.strokeFirst?(o&&b(e,n),s&&y(e,n)):(s&&y(e,n),o&&b(e,n))),P&&e.setLineDash([])}function x(e,t,n){var r=t.__image=Object(o["a"])(n.image,t.__image,t,t.onload);if(r&&Object(o["c"])(r)){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),u=r.width/r.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,f=n.sy||0;e.drawImage(r,c,f,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){c=n.sx,f=n.sy;var d=s-c,h=l-f;e.drawImage(r,c,f,d,h,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function O(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||h["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Object(f["a"])(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(g(n)&&e.strokeText(i,n.x,n.y),v(n)&&e.fillText(i,n.x,n.y)):(v(n)&&e.fillText(i,n.x,n.y),g(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],C=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k(e,t,n,i,o){var a=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){R(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r["b"].opacity:s}(i||t.blend!==n.blend)&&(a||(R(e,o),a=!0),e.globalCompositeOperation=t.blend||r["b"].blend);for(var l=0;l<S.length;l++){var u=S[l];(i||t[u]!==n[u])&&(a||(R(e,o),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==n.shadowColor)&&(a||(R(e,o),a=!0),e.shadowColor=t.shadowColor||r["b"].shadowColor),a}function E(e,t,n,r,i){var o=B(t,i.inHover),a=r?null:n&&B(n,i.inHover)||{};if(o===a)return!1;var s=k(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(R(e,i),s=!0),m(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(R(e,i),s=!0),m(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(R(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(R(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<C.length;c++){var f=C[c],d=f[0];(r||o[d]!==a[d])&&(s||(R(e,i),s=!0),e[d]=o[d]||f[1])}return s}function A(e,t,n,r,i){return k(e,B(t,i.inHover),n&&B(n,i.inHover),r,i)}function T(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function D(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),T(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function M(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 P=1,I=2,j=3,L=4;function N(e){var t=v(e),n=g(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 R(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function B(e,t){return t&&e.__hoverStyle||e.style}function $(e,t){F(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function F(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~d["a"],void(t.__isRendered=!1);var o=t.__clipPaths,c=n.prevElClipPaths,f=!1,h=!1;if(c&&!Object(a["c"])(o,c)||(c&&c.length&&(R(e,n),e.restore(),h=f=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(R(e,n),e.save(),D(o,e,n),f=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(h=f=!0);var g=t instanceof s["b"]&&t.autoBatch&&N(t.style);f||M(i,p.transform)?(R(e,n),T(e,t)):g||R(e,n);var m=B(t,n.inHover);t instanceof s["b"]?(n.lastDrawType!==P&&(h=!0,n.lastDrawType=P),E(e,t,p,h,n),g&&(n.batchFill||n.batchStroke)||e.beginPath(),w(e,t,m,g),g&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"")):t instanceof u["a"]?(n.lastDrawType!==j&&(h=!0,n.lastDrawType=j),E(e,t,p,h,n),O(e,t,m)):t instanceof l["a"]?(n.lastDrawType!==I&&(h=!0,n.lastDrawType=I),A(e,t,p,h,n),x(e,t,m)):t.getTemporalDisplayables&&(n.lastDrawType!==L&&(h=!0,n.lastDrawType=L),z(e,t,n)),g&&r&&R(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function z(e,t,n){var r=t.getDisplayables(),i=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=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),F(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),F(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.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 s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),u=n("8aa5"),c=n("14c3"),f=Math.max,d=Math.min,h=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var v=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,b=v?"$":"$0";return[function(n,r){var i=l(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!v&&y||"string"===typeof r&&-1===r.indexOf(b)){var o=n(t,e,this,r);if(o.done)return o.value}var l=i(e),h=String(this),p="function"===typeof r;p||(r=String(r));var g=l.global;if(g){var w=l.unicode;l.lastIndex=0}var x=[];while(1){var O=c(l,h);if(null===O)break;if(x.push(O),!g)break;var S=String(O[0]);""===S&&(l.lastIndex=u(h,a(l.lastIndex),w))}for(var C="",k=0,E=0;E<x.length;E++){O=x[E];for(var A=String(O[0]),T=f(d(s(O.index),h.length),0),D=[],M=1;M<O.length;M++)D.push(m(O[M]));var P=O.groups;if(p){var I=[A].concat(D,T,h);void 0!==P&&I.push(P);var j=String(r.apply(void 0,I))}else j=_(A,h,T,D,P,r);T>=k&&(C+=h.slice(k,T)+j,k=T+A.length)}return C+h.slice(k)}];function _(e,n,r,i,a,s){var l=r+e.length,u=i.length,c=g;return void 0!==a&&(a=o(a),c=p),t.call(s,c,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>u){var f=h(c/10);return 0===f?t:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):t}s=i[c-1]}return void 0===s?"":s}))}}))},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function r(e){return 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},r(e)}},5488:function(e,t,n){"use strict";t.__esModule=!0;var r=n("5924");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){i(this,e)}return e.prototype.beforeEnter=function(e){(0,r.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,r.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,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,r.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,r={on:new o};return e("transition",r,n)}}},"551f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n("282b"),i=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(r["a"])(i),a=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return o(this,e,t)},e}()},5524:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("0643"),n("2382"),n("4e3e"),n("159b");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5858:function(e,t,n){"use strict";(function(e,r){var i,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};
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var a,s="4.17.10",l=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,g=2,m=4,v=1,y=2,b=1,_=2,w=4,x=8,O=16,S=32,C=64,k=128,E=256,A=512,T=30,D="...",M=800,P=16,I=1,j=2,L=3,N=1/0,R=9007199254740991,B=17976931348623157e292,$=NaN,F=4294967295,z=F-1,q=F>>>1,U=[["ary",k],["bind",b],["bindKey",_],["curry",x],["curryRight",O],["flip",A],["partial",S],["partialRight",C],["rearg",E]],H="[object Arguments]",V="[object Array]",W="[object AsyncFunction]",K="[object Boolean]",G="[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]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",le="[object Symbol]",ue="[object Undefined]",ce="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",ge="[object Float64Array]",me="[object Int8Array]",ve="[object Int16Array]",ye="[object Int32Array]",be="[object Uint8Array]",_e="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",Oe=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,Ce=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ae=RegExp(ke.source),Te=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,je=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ne=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Ne.source),Be=/^\s+|\s+$/g,$e=/^\s+/,Fe=/\s+$/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,Ge=/^[-+]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",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ut="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",dt=" \\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",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",gt=ut+ct+ft+dt,mt="['’]",vt="["+nt+"]",yt="["+gt+"]",bt="["+at+"]",_t="\\d+",wt="["+st+"]",xt="["+lt+"]",Ot="[^"+nt+gt+_t+st+lt+ht+"]",St="\\ud83c[\\udffb-\\udfff]",Ct="(?:"+bt+"|"+St+")",kt="[^"+nt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+ht+"]",Dt="\\u200d",Mt="(?:"+xt+"|"+Ot+")",Pt="(?:"+Tt+"|"+Ot+")",It="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Lt=Ct+"?",Nt="["+pt+"]?",Rt="(?:"+Dt+"(?:"+[kt,Et,At].join("|")+")"+Nt+Lt+")*",Bt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ft=Nt+Lt+Rt,zt="(?:"+[wt,Et,At].join("|")+")"+Ft,qt="(?:"+[kt+bt+"?",bt,Et,At,vt].join("|")+")",Ut=RegExp(mt,"g"),Ht=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+qt+Ft,"g"),Wt=RegExp([Tt+"?"+xt+"+"+It+"(?="+[yt,Tt,"$"].join("|")+")",Pt+"+"+jt+"(?="+[yt,Tt+Mt,"$"].join("|")+")",Tt+"?"+Mt+"+"+It,Tt+"+"+jt,$t,Bt,_t,zt].join("|"),"g"),Kt=RegExp("["+Dt+nt+at+pt+"]"),Gt=/[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[ye]=Zt[be]=Zt[_e]=Zt[we]=Zt[xe]=!0,Zt[H]=Zt[V]=Zt[de]=Zt[K]=Zt[he]=Zt[G]=Zt[X]=Zt[Z]=Zt[J]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ce]=!1;var Qt={};Qt[H]=Qt[V]=Qt[de]=Qt[he]=Qt[K]=Qt[G]=Qt[pe]=Qt[ge]=Qt[me]=Qt[ve]=Qt[ye]=Qt[J]=Qt[ee]=Qt[ne]=Qt[oe]=Qt[ae]=Qt[se]=Qt[le]=Qt[be]=Qt[_e]=Qt[we]=Qt[xe]=!0,Qt[X]=Qt[Z]=Qt[ce]=!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","Œ":"Oe","œ":"oe","ŉ":"'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")(),un="object"===o(t)&&t&&!t.nodeType&&t,cn=un&&"object"===o(r)&&r&&!r.nodeType&&r,fn=cn&&cn.exports===un,dn=fn&&an.process,hn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,gn=hn&&hn.isDate,mn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,bn=hn&&hn.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,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}function xn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function On(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,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function Cn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function kn(e,t){var n=null==e?0:e.length;return!!n&&Bn(e,t,0)>-1}function En(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function An(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Tn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Dn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Mn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Pn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var In=qn("length");function jn(e){return e.split("")}function Ln(e){return e.match(He)||[]}function Nn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Rn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Bn(e,t,n){return t===t?pr(e,t,n):Rn(e,Fn,n)}function $n(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function Fn(e){return e!==e}function zn(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:$}function qn(e){return function(t){return null==t?a:t[e]}}function Un(e){return function(t){return null==e?a:e[t]}}function Hn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Vn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,i=e.length;while(++r<i){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Kn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Gn(e,t){return An(t,(function(t){return[t,e[t]]}))}function Yn(e){return function(t){return e(t)}}function Xn(e,t){return An(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function Qn(e,t){var n=-1,r=e.length;while(++n<r&&Bn(t,e[n],0)>-1);return n}function Jn(e,t){var n=e.length;while(n--&&Bn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var tr=Un(Jt),nr=Un(en);function rr(e){return"\\"+nn[e]}function ir(e,t){return null==e?a:e[t]}function or(e){return Kt.test(e)}function ar(e){return Gt.test(e)}function sr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ur(e,t){return function(n){return e(t(n))}}function cr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function fr(e,t){return"__proto__"==t?a:e[t]}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function gr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function mr(e){return or(e)?br(e):In(e)}function vr(e){return or(e)?_r(e):jn(e)}var yr=Un(tn);function br(e){var t=Vt.lastIndex=0;while(Vt.test(e))++t;return t}function _r(e){return e.match(Vt)||[]}function wr(e){return e.match(Wt)||[]}var xr=function e(t){t=null==t?ln:Or.defaults(ln.Object(),t,Or.pick(ln,Yt));var n=t.Array,r=t.Date,i=t.Error,He=t.Function,nt=t.Math,rt=t.Object,it=t.RegExp,ot=t.String,at=t.TypeError,st=n.prototype,lt=He.prototype,ut=rt.prototype,ct=t["__core-js_shared__"],ft=lt.toString,dt=ut.hasOwnProperty,ht=0,pt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gt=ut.toString,mt=ft.call(rt),vt=ln._,yt=it("^"+ft.call(dt).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=fn?t.Buffer:a,_t=t.Symbol,wt=t.Uint8Array,xt=bt?bt.allocUnsafe:a,Ot=ur(rt.getPrototypeOf,rt),St=rt.create,Ct=ut.propertyIsEnumerable,kt=st.splice,Et=_t?_t.isConcatSpreadable:a,At=_t?_t.iterator:a,Tt=_t?_t.toStringTag:a,Dt=function(){try{var e=Ka(rt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Mt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,Pt=r&&r.now!==ln.Date.now&&r.now,It=t.setTimeout!==ln.setTimeout&&t.setTimeout,jt=nt.ceil,Lt=nt.floor,Nt=rt.getOwnPropertySymbols,Rt=bt?bt.isBuffer:a,Bt=t.isFinite,$t=st.join,Ft=ur(rt.keys,rt),zt=nt.max,qt=nt.min,Vt=r.now,Wt=t.parseInt,Kt=nt.random,Gt=st.reverse,Jt=Ka(t,"DataView"),en=Ka(t,"Map"),tn=Ka(t,"Promise"),nn=Ka(t,"Set"),an=Ka(t,"WeakMap"),sn=Ka(rt,"create"),un=an&&new an,cn={},dn=Ms(Jt),hn=Ms(en),In=Ms(tn),jn=Ms(nn),Un=Ms(an),pr=_t?_t.prototype:a,br=pr?pr.valueOf:a,_r=pr?pr.toString:a;function xr(e){if(Sc(e)&&!sc(e)&&!(e instanceof Er)){if(e instanceof kr)return e;if(dt.call(e,"__wrapped__"))return Is(e)}return new kr(e)}var Sr=function(){function e(){}return function(t){if(!Oc(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Cr(){}function kr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function Ar(){var e=new Er(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Tr(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Dr(){var e=this.__wrapped__.value(),t=this.__dir__,n=sc(e),r=t<0,i=n?e.length:0,o=Qa(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=qt(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return $o(e,this.__actions__);var p=[];e:while(l--&&d<h){u+=t;var g=-1,m=e[u];while(++g<f){var v=c[g],y=v.iteratee,b=v.type,_=y(m);if(b==j)m=_;else if(!_){if(b==I)continue e;break e}}p[d++]=m}return p}function Mr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pr(){this.__data__=sn?sn(null):{},this.size=0}function Ir(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function jr(e){var t=this.__data__;if(sn){var n=t[e];return n===f?a:n}return dt.call(t,e)?t[e]:a}function Lr(e){var t=this.__data__;return sn?t[e]!==a:dt.call(t,e)}function Nr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===a?f:t,this}function Rr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Br(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ci(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function Fr(e){var t=this.__data__,n=ci(t,e);return n<0?a:t[n][1]}function zr(e){return ci(this.__data__,e)>-1}function qr(e,t){var n=this.__data__,r=ci(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Mr,map:new(en||Rr),string:new Mr}}function Vr(e){var t=Va(this,e)["delete"](e);return this.size-=t?1:0,t}function Wr(e){return Va(this,e).get(e)}function Kr(e){return Va(this,e).has(e)}function Gr(e,t){var n=Va(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Ur;while(++t<n)this.add(e[t])}function Xr(e){return this.__data__.set(e,f),this}function Zr(e){return this.__data__.has(e)}function Qr(e){var t=this.__data__=new Rr(e);this.size=t.size}function Jr(){this.__data__=new Rr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Rr){var r=n.__data__;if(!en||r.length<l-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ur(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=sc(e),r=!n&&ac(e),i=!n&&!r&&dc(e),o=!n&&!r&&!i&&$c(e),a=n||r||i||o,s=a?Kn(e.length,ot):[],l=s.length;for(var u in e)!t&&!dt.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,l))||s.push(u);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:a}function ai(e,t){return As(ia(e),mi(t,0,e.length))}function si(e){return As(ia(e))}function li(e,t,n){(n!==a&&!rc(e[t],n)||n===a&&!(t in e))&&pi(e,t,n)}function ui(e,t,n){var r=e[t];dt.call(e,t)&&rc(r,n)&&(n!==a||t in e)||pi(e,t,n)}function ci(e,t){var n=e.length;while(n--)if(rc(e[n][0],t))return n;return-1}function fi(e,t,n,r){return xi(e,(function(e,i,o){t(r,e,n(e),o)})),r}function di(e,t){return e&&oa(t,xf(t),e)}function hi(e,t){return e&&oa(t,Of(t),e)}function pi(e,t,n){"__proto__"==t&&Dt?Dt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){var r=-1,i=t.length,o=n(i),s=null==e;while(++r<i)o[r]=s?a:mf(e,t[r]);return o}function mi(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function vi(e,t,n,r,i,o){var s,l=t&p,u=t&g,c=t&m;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!Oc(e))return e;var f=sc(e);if(f){if(s=ts(e),!l)return ia(e,s)}else{var d=Za(e),h=d==Z||d==Q;if(dc(e))return Go(e,l);if(d==ne||d==H||h&&!i){if(s=u||h?{}:ns(e),!l)return u?sa(e,hi(s,e)):aa(e,di(s,e))}else{if(!Qt[d])return i?e:{};s=rs(e,d,l)}}o||(o=new Qr);var v=o.get(e);if(v)return v;if(o.set(e,s),Nc(e))return e.forEach((function(r){s.add(vi(r,t,n,r,e,o))})),s;if(Cc(e))return e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,o))})),s;var y=c?u?Fa:$a:u?Of:xf,b=f?a:y(e);return xn(b||e,(function(r,i){b&&(i=r,r=e[i]),ui(s,i,vi(r,t,n,i,e,o))})),s}function yi(e){var t=xf(e);return function(n){return bi(n,e,t)}}function bi(e,t,n){var r=n.length;if(null==e)return!r;e=rt(e);while(r--){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function _i(e,t,n){if("function"!==typeof e)throw new at(c);return Ss((function(){e.apply(a,n)}),t)}function wi(e,t,n,r){var i=-1,o=kn,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=An(t,Yn(n))),r?(o=En,a=!1):t.length>=l&&(o=Zn,a=!1,t=new Yr(t));e:while(++i<s){var f=e[i],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=c;while(h--)if(t[h]===d)continue e;u.push(f)}else o(t,d,r)||u.push(f)}return u}xr.templateSettings={escape:De,evaluate:Me,interpolate:Pe,variable:"",imports:{_:xr}},xr.prototype=Cr.prototype,xr.prototype.constructor=xr,kr.prototype=Sr(Cr.prototype),kr.prototype.constructor=kr,Er.prototype=Sr(Cr.prototype),Er.prototype.constructor=Er,Mr.prototype.clear=Pr,Mr.prototype["delete"]=Ir,Mr.prototype.get=jr,Mr.prototype.has=Lr,Mr.prototype.set=Nr,Rr.prototype.clear=Br,Rr.prototype["delete"]=$r,Rr.prototype.get=Fr,Rr.prototype.has=zr,Rr.prototype.set=qr,Ur.prototype.clear=Hr,Ur.prototype["delete"]=Vr,Ur.prototype.get=Wr,Ur.prototype.has=Kr,Ur.prototype.set=Gr,Yr.prototype.add=Yr.prototype.push=Xr,Yr.prototype.has=Zr,Qr.prototype.clear=Jr,Qr.prototype["delete"]=ei,Qr.prototype.get=ti,Qr.prototype.has=ni,Qr.prototype.set=ri;var xi=ca(Mi),Oi=ca(Pi,!0);function Si(e,t){var n=!0;return xi(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function Ci(e,t,n){var r=-1,i=e.length;while(++r<i){var o=e[r],s=t(o);if(null!=s&&(l===a?s===s&&!Bc(s):n(s,l)))var l=s,u=o}return u}function ki(e,t,n,r){var i=e.length;n=Kc(n),n<0&&(n=-n>i?0:i+n),r=r===a||r>i?i:Kc(r),r<0&&(r+=i),r=n>r?0:Gc(r);while(n<r)e[n++]=t;return e}function Ei(e,t){var n=[];return xi(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ai(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Ai(s,t-1,n,r,i):Tn(i,s):r||(i[i.length]=s)}return i}var Ti=fa(),Di=fa(!0);function Mi(e,t){return e&&Ti(e,t,xf)}function Pi(e,t){return e&&Di(e,t,xf)}function Ii(e,t){return Cn(t,(function(t){return _c(e[t])}))}function ji(e,t){t=Ho(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ds(t[n++])];return n&&n==r?e:a}function Li(e,t,n){var r=t(e);return sc(e)?r:Tn(r,n(e))}function Ni(e){return null==e?e===a?ue:te:Tt&&Tt in rt(e)?Ga(e):bs(e)}function Ri(e,t){return e>t}function Bi(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in rt(e)}function Fi(e,t,n){return e>=qt(t,n)&&e<zt(t,n)}function zi(e,t,r){var i=r?En:kn,o=e[0].length,s=e.length,l=s,u=n(s),c=1/0,f=[];while(l--){var d=e[l];l&&t&&(d=An(d,Yn(t))),c=qt(d.length,c),u[l]=!r&&(t||o>=120&&d.length>=120)?new Yr(l&&d):a}d=e[0];var h=-1,p=u[0];e:while(++h<o&&f.length<c){var g=d[h],m=t?t(g):g;if(g=r||0!==g?g:0,!(p?Zn(p,m):i(f,m,r))){l=s;while(--l){var v=u[l];if(!(v?Zn(v,m):i(e[l],m,r)))continue e}p&&p.push(m),f.push(g)}}return f}function qi(e,t,n,r){return Mi(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Ui(e,t,n){t=Ho(t,e),e=ws(e,t);var r=null==e?e:e[Ds(il(t))];return null==r?a:_n(r,e,n)}function Hi(e){return Sc(e)&&Ni(e)==H}function Vi(e){return Sc(e)&&Ni(e)==de}function Wi(e){return Sc(e)&&Ni(e)==G}function Ki(e,t,n,r,i){return e===t||(null==e||null==t||!Sc(e)&&!Sc(t)?e!==e&&t!==t:Gi(e,t,n,r,Ki,i))}function Gi(e,t,n,r,i,o){var a=sc(e),s=sc(t),l=a?V:Za(e),u=s?V:Za(t);l=l==H?ne:l,u=u==H?ne:u;var c=l==ne,f=u==ne,d=l==u;if(d&&dc(e)){if(!dc(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Qr),a||$c(e)?La(e,t,n,r,i,o):Na(e,t,l,n,r,i,o);if(!(n&v)){var h=c&&dt.call(e,"__wrapped__"),p=f&&dt.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,m=p?t.value():t;return o||(o=new Qr),i(g,m,n,r,o)}}return!!d&&(o||(o=new Qr),Ra(e,t,n,r,i,o))}function Yi(e){return Sc(e)&&Za(e)==J}function Xi(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;e=rt(e);while(i--){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++i<o){l=n[i];var u=l[0],c=e[u],f=l[1];if(s&&l[2]){if(c===a&&!(u in e))return!1}else{var d=new Qr;if(r)var h=r(c,f,u,e,t,d);if(!(h===a?Ki(f,c,v|y,r,d):h))return!1}}return!0}function Zi(e){if(!Oc(e)||fs(e))return!1;var t=_c(e)?yt:Xe;return t.test(Ms(e))}function Qi(e){return Sc(e)&&Ni(e)==oe}function Ji(e){return Sc(e)&&Za(e)==ae}function eo(e){return Sc(e)&&xc(e.length)&&!!Zt[Ni(e)]}function to(e){return"function"===typeof e?e:null==e?Dd:"object"===("undefined"===typeof e?"undefined":o(e))?sc(e)?so(e[0],e[1]):ao(e):Ud(e)}function no(e){if(!hs(e))return Ft(e);var t=[];for(var n in rt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!Oc(e))return ys(e);var t=hs(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=uc(e)?n(e.length):[];return xi(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=Wa(e);return 1==t.length&&t[0][2]?gs(t[0][0],t[0][1]):function(n){return n===e||Xi(n,e,t)}}function so(e,t){return ls(e)&&ps(t)?gs(Ds(e),t):function(n){var r=mf(n,e);return r===a&&r===t?yf(n,e):Ki(t,r,v|y)}}function lo(e,t,n,r,i){e!==t&&Ti(t,(function(o,s){if(Oc(o))i||(i=new Qr),uo(e,t,s,n,lo,r,i);else{var l=r?r(fr(e,s),o,s+"",e,t,i):a;l===a&&(l=o),li(e,s,l)}}),Of)}function uo(e,t,n,r,i,o,s){var l=fr(e,n),u=fr(t,n),c=s.get(u);if(c)li(e,n,c);else{var f=o?o(l,u,n+"",e,t,s):a,d=f===a;if(d){var h=sc(u),p=!h&&dc(u),g=!h&&!p&&$c(u);f=u,h||p||g?sc(l)?f=l:cc(l)?f=ia(l):p?(d=!1,f=Go(u,!0)):g?(d=!1,f=Jo(u,!0)):f=[]:Ic(u)||ac(u)?(f=l,ac(l)?f=Xc(l):(!Oc(l)||r&&_c(l))&&(f=ns(u))):d=!1}d&&(s.set(u,f),i(f,u,r,o,s),s["delete"](u)),li(e,n,f)}}function co(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:a}function fo(e,t,n){var r=-1;t=An(t.length?t:[Dd],Yn(Ha()));var i=oo(e,(function(e,n,i){var o=An(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Vn(i,(function(e,t){return ta(e,t,n)}))}function ho(e,t){return po(e,t,(function(t,n){return yf(e,n)}))}function po(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=ji(e,a);n(s,a)&&So(o,Ho(a,e),s)}return o}function go(e){return function(t){return ji(t,e)}}function mo(e,t,n,r){var i=r?$n:Bn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=An(e,Yn(n)));while(++o<a){var l=0,u=t[o],c=n?n(u):u;while((l=i(s,c,l,r))>-1)s!==e&&kt.call(s,l,1),kt.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?kt.call(e,i,1):No(e,i)}}return e}function yo(e,t){return e+Lt(Kt()*(t-e+1))}function bo(e,t,r,i){var o=-1,a=zt(jt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function _o(e,t){var n="";if(!e||t<1||t>R)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return Cs(_s(e,t,Dd),e+"")}function xo(e){return oi(zf(e))}function Oo(e,t){var n=zf(e);return As(n,mi(t,0,n.length))}function So(e,t,n,r){if(!Oc(e))return e;t=Ho(t,e);var i=-1,o=t.length,s=o-1,l=e;while(null!=l&&++i<o){var u=Ds(t[i]),c=n;if(i!=s){var f=l[u];c=r?r(f,u,l):a,c===a&&(c=Oc(f)?f:as(t[i+1])?[]:{})}ui(l,u,c),l=l[u]}return e}var Co=un?function(e,t){return un.set(e,t),e}:Dd,ko=Dt?function(e,t){return Dt(e,"toString",{configurable:!0,enumerable:!1,value:kd(t),writable:!0})}:Dd;function Eo(e){return As(zf(e))}function Ao(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i<o)a[i]=e[i+t];return a}function To(e,t){var n;return xi(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Do(e,t,n){var r=0,i=null==e?r:e.length;if("number"===typeof t&&t===t&&i<=q){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!Bc(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Mo(e,t,Dd,n)}function Mo(e,t,n,r){t=n(t);var i=0,o=null==e?0:e.length,s=t!==t,l=null===t,u=Bc(t),c=t===a;while(i<o){var f=Lt((i+o)/2),d=n(e[f]),h=d!==a,p=null===d,g=d===d,m=Bc(d);if(s)var v=r||g;else v=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);v?i=f+1:o=f}return qt(o,z)}function Po(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!rc(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function Io(e){return"number"===typeof e?e:Bc(e)?$:+e}function jo(e){if("string"===typeof e)return e;if(sc(e))return An(e,jo)+"";if(Bc(e))return _r?_r.call(e):"";var t=e+"";return"0"==t&&1/e==-N?"-0":t}function Lo(e,t,n){var r=-1,i=kn,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=En;else if(o>=l){var c=t?null:Ta(e);if(c)return dr(c);a=!1,i=Zn,u=new Yr}else u=t?[]:s;e:while(++r<o){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=u.length;while(h--)if(u[h]===d)continue e;t&&u.push(d),s.push(f)}else i(u,d,n)||(u!==s&&u.push(d),s.push(f))}return s}function No(e,t){return t=Ho(t,e),e=ws(e,t),null==e||delete e[Ds(il(t))]}function Ro(e,t,n,r){return So(e,t,n(ji(e,t)),r)}function Bo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?Ao(e,r?0:o,r?o+1:i):Ao(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Er&&(n=n.value()),Dn(t,(function(e,t){return t.func.apply(t.thisArg,Tn([e],t.args))}),n)}function Fo(e,t,r){var i=e.length;if(i<2)return i?Lo(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],l=-1;while(++l<i)l!=o&&(a[o]=wi(a[o]||s,e[l],t,r))}return Lo(Ai(a,1),t,r)}function zo(e,t,n){var r=-1,i=e.length,o=t.length,s={};while(++r<i){var l=r<o?t[r]:a;n(s,e[r],l)}return s}function qo(e){return cc(e)?e:[]}function Uo(e){return"function"===typeof e?e:Dd}function Ho(e,t){return sc(e)?e:ls(e,t)?[e]:Ts(Qc(e))}var Vo=wo;function Wo(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:Ao(e,t,n)}var Ko=Mt||function(e){return ln.clearTimeout(e)};function Go(e,t){if(t)return e.slice();var n=e.length,r=xt?xt(n):new e.constructor(n);return e.copy(r),r}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,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Qo(e){return br?rt(br.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,r=null===e,i=e===e,o=Bc(e),s=t!==a,l=null===t,u=t===t,c=Bc(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=ea(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,l=-1,u=t.length,c=zt(a-s,0),f=n(u+c),d=!i;while(++l<u)f[l]=t[l];while(++o<s)(d||o<a)&&(f[r[o]]=e[o]);while(c--)f[l++]=e[o++];return f}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,l=r.length,u=-1,c=t.length,f=zt(a-l,0),d=n(f+c),h=!i;while(++o<f)d[o]=e[o];var p=o;while(++u<c)d[p+u]=t[u];while(++s<l)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var i=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var l=t[o],u=r?r(n[l],e[l],l,n,e):a;u===a&&(u=e[l]),i?pi(n,l,u):ui(n,l,u)}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,r){var i=sc(n)?wn:fi,o=t?t():{};return i(n,e,Ha(r,2),o)}}function ua(e){return wo((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;o=e.length>3&&"function"===typeof o?(i--,o):a,s&&ss(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=rt(t);while(++r<i){var l=n[r];l&&e(t,l,r,o)}return t}))}function ca(e,t){return function(n,r){if(null==n)return n;if(!uc(n))return e(n,r);var i=n.length,o=t?i:-1,a=rt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(e){return function(t,n,r){var i=-1,o=rt(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}function da(e,t,n){var r=t&b,i=ga(e);function o(){var t=this&&this!==ln&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ha(e){return function(t){t=Qc(t);var n=or(t)?vr(t):a,r=n?n[0]:t.charAt(0),i=n?Wo(n,1).join(""):t.slice(1);return r[e]()+i}}function pa(e){return function(t){return Dn(wd(Gf(t).replace(Ut,"")),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=Sr(e.prototype),r=e.apply(n,t);return Oc(r)?r:n}}function ma(e,t,r){var i=ga(e);function o(){var s=arguments.length,l=n(s),u=s,c=Ua(o);while(u--)l[u]=arguments[u];var f=s<3&&l[0]!==c&&l[s-1]!==c?[]:cr(l,c);if(s-=f.length,s<r)return Ea(e,t,ba,o.placeholder,a,l,f,a,a,r-s);var d=this&&this!==ln&&this instanceof o?i:e;return _n(d,this,l)}return o}function va(e){return function(t,n,r){var i=rt(t);if(!uc(t)){var o=Ha(n,3);t=xf(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function ya(e){return Ba((function(t){var n=t.length,r=n,i=kr.prototype.thru;e&&t.reverse();while(r--){var o=t[r];if("function"!==typeof o)throw new at(c);if(i&&!s&&"wrapper"==qa(o))var s=new kr([],!0)}r=s?r:n;while(++r<n){o=t[r];var l=qa(o),u="wrapper"==l?za(o):a;s=u&&cs(u[0])&&u[1]==(k|x|S|E)&&!u[4].length&&1==u[9]?s[qa(u[0])].apply(s,u[3]):1==o.length&&cs(o)?s[l]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&sc(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ba(e,t,r,i,o,s,l,u,c,f){var d=t&k,h=t&b,p=t&_,g=t&(x|O),m=t&A,v=p?a:ga(e);function y(){var a=arguments.length,b=n(a),_=a;while(_--)b[_]=arguments[_];if(g)var w=Ua(y),x=er(b,w);if(i&&(b=na(b,i,o,g)),s&&(b=ra(b,s,l,g)),a-=x,g&&a<f){var O=cr(b,w);return Ea(e,t,ba,y.placeholder,r,b,O,u,c,f-a)}var S=h?r:this,C=p?S[e]:e;return a=b.length,u?b=xs(b,u):m&&a>1&&b.reverse(),d&&c<a&&(b.length=c),this&&this!==ln&&this instanceof y&&(C=v||ga(C)),C.apply(S,b)}return y}function _a(e,t){return function(n,r){return qi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"===typeof n||"string"===typeof r?(n=jo(n),r=jo(r)):(n=Io(n),r=Io(r)),i=e(n,r)}return i}}function xa(e){return Ba((function(t){return t=An(t,Yn(Ha())),wo((function(n){var r=this;return e(t,(function(e){return _n(e,r,n)}))}))}))}function Oa(e,t){t=t===a?" ":jo(t);var n=t.length;if(n<2)return n?_o(t,e):t;var r=_o(t,jt(e/mr(t)));return or(t)?Wo(vr(r),0,e).join(""):r.slice(0,e)}function Sa(e,t,r,i){var o=t&b,a=ga(e);function s(){var t=-1,l=arguments.length,u=-1,c=i.length,f=n(c+l),d=this&&this!==ln&&this instanceof s?a:e;while(++u<c)f[u]=i[u];while(l--)f[u++]=arguments[++t];return _n(d,o?r:this,f)}return s}function Ca(e){return function(t,n,r){return r&&"number"!==typeof r&&ss(t,n,r)&&(n=r=a),t=Wc(t),n===a?(n=t,t=0):n=Wc(n),r=r===a?t<n?1:-1:Wc(r),bo(t,n,r,e)}}function ka(e){return function(t,n){return"string"===typeof t&&"string"===typeof n||(t=Yc(t),n=Yc(n)),e(t,n)}}function Ea(e,t,n,r,i,o,s,l,u,c){var f=t&x,d=f?s:a,h=f?a:s,p=f?o:a,g=f?a:o;t|=f?S:C,t&=~(f?C:S),t&w||(t&=~(b|_));var m=[e,t,i,p,d,g,h,l,u,c],v=n.apply(a,m);return cs(e)&&Os(v,m),v.placeholder=r,ks(v,e,t)}function Aa(e){var t=nt[e];return function(e,n){if(e=Yc(e),n=null==n?0:qt(Kc(n),292),n){var r=(Qc(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Qc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ta=nn&&1/dr(new nn([,-0]))[1]==N?function(e){return new nn(e)}:Bd;function Da(e){return function(t){var n=Za(t);return n==J?lr(t):n==ae?hr(t):Gn(t,e(t))}}function Ma(e,t,n,r,i,o,s,l){var u=t&_;if(!u&&"function"!==typeof e)throw new at(c);var f=r?r.length:0;if(f||(t&=~(S|C),r=i=a),s=s===a?s:zt(Kc(s),0),l=l===a?l:Kc(l),f-=i?i.length:0,t&C){var d=r,h=i;r=i=a}var p=u?a:za(e),g=[e,t,n,r,i,d,h,o,s,l];if(p&&vs(g,p),e=g[0],t=g[1],n=g[2],r=g[3],i=g[4],l=g[9]=g[9]===a?u?0:e.length:zt(g[9]-f,0),!l&&t&(x|O)&&(t&=~(x|O)),t&&t!=b)m=t==x||t==O?ma(e,t,l):t!=S&&t!=(b|S)||i.length?ba.apply(a,g):Sa(e,t,n,r);else var m=da(e,t,n);var v=p?Co:Os;return ks(v(m,g),e,t)}function Pa(e,t,n,r){return e===a||rc(e,ut[n])&&!dt.call(r,n)?t:e}function Ia(e,t,n,r,i,o){return Oc(e)&&Oc(t)&&(o.set(t,e),lo(e,t,a,Ia,o),o["delete"](t)),e}function ja(e){return Ic(e)?a:e}function La(e,t,n,r,i,o){var s=n&v,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var f=-1,d=!0,h=n&y?new Yr:a;o.set(e,t),o.set(t,e);while(++f<l){var p=e[f],g=t[f];if(r)var m=s?r(g,p,f,t,e,o):r(p,g,f,e,t,o);if(m!==a){if(m)continue;d=!1;break}if(h){if(!Pn(t,(function(e,t){if(!Zn(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){d=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){d=!1;break}}return o["delete"](e),o["delete"](t),d}function Na(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case K:case G:case ee:return rc(+e,+t);case X:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case J:var s=lr;case ae:var l=r&v;if(s||(s=dr),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=y,a.set(e,t);var c=La(s(e),s(t),r,i,o,a);return a["delete"](e),c;case le:if(br)return br.call(e)==br.call(t)}return!1}function Ra(e,t,n,r,i,o){var s=n&v,l=$a(e),u=l.length,c=$a(t),f=c.length;if(u!=f&&!s)return!1;var d=u;while(d--){var h=l[d];if(!(s?h in t:dt.call(t,h)))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(++d<u){h=l[d];var y=e[h],b=t[h];if(r)var _=s?r(b,y,h,t,e,o):r(y,b,h,e,t,o);if(!(_===a?y===b||i(y,b,n,r,o):_)){g=!1;break}m||(m="constructor"==h)}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 Ba(e){return Cs(_s(e,a,Ks),e+"")}function $a(e){return Li(e,xf,Ya)}function Fa(e){return Li(e,Of,Xa)}var za=un?function(e){return un.get(e)}:Bd;function qa(e){var t=e.name+"",n=cn[t],r=dt.call(cn,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ua(e){var t=dt.call(xr,"placeholder")?xr:e;return t.placeholder}function Ha(){var e=xr.iteratee||Md;return e=e===Md?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Va(e,t){var n=e.__data__;return us(t)?n["string"===typeof t?"string":"hash"]:n.map}function Wa(e){var t=xf(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ps(i)]}return t}function Ka(e,t){var n=ir(e,t);return Zi(n)?n:a}function Ga(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=a;var r=!0}catch(o){}var i=gt.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),i}var Ya=Nt?function(e){return null==e?[]:(e=rt(e),Cn(Nt(e),(function(t){return Ct.call(e,t)})))}:Kd,Xa=Nt?function(e){var t=[];while(e)Tn(t,Ya(e)),e=Ot(e);return t}:Kd,Za=Ni;function Qa(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=qt(t,e+a);break;case"takeRight":e=zt(e,t-a);break}}return{start:e,end:t}}function Ja(e){var t=e.match(qe);return t?t[1].split(Ue):[]}function es(e,t,n){t=Ho(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ds(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&xc(i)&&as(a,i)&&(sc(e)||ac(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"===typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!==typeof e.constructor||hs(e)?{}:Sr(Ot(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Yo(e);case K:case G:return new r(+e);case he:return Xo(e,n);case pe:case ge:case me:case ve:case ye:case be:case _e:case we:case xe:return Jo(e,n);case J:return new r;case ee:case se:return new r(e);case oe:return Zo(e);case ae:return new r;case le:return Qo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return sc(e)||ac(e)||!!(Et&&e&&e[Et])}function as(e,t){var n="undefined"===typeof e?"undefined":o(e);return t=null==t?R:t,!!t&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Oc(n))return!1;var r="undefined"===typeof t?"undefined":o(t);return!!("number"==r?uc(n)&&as(t,n.length):"string"==r&&t in n)&&rc(n[t],e)}function ls(e,t){if(sc(e))return!1;var n="undefined"===typeof e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Bc(e))||(je.test(e)||!Ie.test(e)||null!=t&&e in rt(t))}function us(e){var t="undefined"===typeof e?"undefined":o(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function cs(e){var t=qa(e),n=xr[t];if("function"!==typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=za(n);return!!r&&e===r[0]}function fs(e){return!!pt&&pt in e}(Jt&&Za(new Jt(new ArrayBuffer(1)))!=he||en&&Za(new en)!=J||tn&&Za(tn.resolve())!=re||nn&&Za(new nn)!=ae||an&&Za(new an)!=ce)&&(Za=function(e){var t=Ni(e),n=t==ne?e.constructor:a,r=n?Ms(n):"";if(r)switch(r){case dn:return he;case hn:return J;case In:return re;case jn:return ae;case Un:return ce}return t});var ds=ct?_c:Gd;function hs(e){var t=e&&e.constructor,n="function"===typeof t&&t.prototype||ut;return e===n}function ps(e){return e===e&&!Oc(e)}function gs(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in rt(n)))}}function ms(e){var t=$u(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(b|_|k),a=r==k&&n==x||r==k&&n==E&&e[7].length<=t[8]||r==(k|E)&&t[7].length<=t[8]&&n==x;if(!o&&!a)return e;r&b&&(e[2]=t[2],i|=n&b?0:w);var s=t[3];if(s){var l=e[3];e[3]=l?na(l,s,t[4]):s,e[4]=l?cr(e[3],h):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ra(l,s,t[6]):s,e[6]=l?cr(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&k&&(e[8]=null==e[8]?t[8]:qt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}function bs(e){return gt.call(e)}function _s(e,t,r){return t=zt(t===a?e.length-1:t,0),function(){var i=arguments,o=-1,a=zt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=i[o];return l[t]=r(s),_n(e,this,l)}}function ws(e,t){return t.length<2?e:ji(e,Ao(t,0,-1))}function xs(e,t){var n=e.length,r=qt(t.length,n),i=ia(e);while(r--){var o=t[r];e[r]=as(o,n)?i[o]:a}return e}var Os=Es(Co),Ss=It||function(e,t){return ln.setTimeout(e,t)},Cs=Es(ko);function ks(e,t,n){var r=t+"";return Cs(e,is(r,Ps(Ja(r),n)))}function Es(e){var t=0,n=0;return function(){var r=Vt(),i=P-(r-n);if(n=r,i>0){if(++t>=M)return arguments[0]}else t=0;return e.apply(a,arguments)}}function As(e,t){var n=-1,r=e.length,i=r-1;t=t===a?r:t;while(++n<t){var o=yo(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Ts=ms((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace(Ve,"$1"):n||e)})),t}));function Ds(e){if("string"===typeof e||Bc(e))return e;var t=e+"";return"0"==t&&1/e==-N?"-0":t}function Ms(e){if(null!=e){try{return ft.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ps(e,t){return xn(U,(function(n){var r="_."+n[0];t&n[1]&&!kn(e,r)&&e.push(r)})),e.sort()}function Is(e){if(e instanceof Er)return e.clone();var t=new kr(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function js(e,t,r){t=(r?ss(e,t,r):t===a)?1:zt(Kc(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var o=0,s=0,l=n(jt(i/t));while(o<i)l[s++]=Ao(e,o,o+=t);return l}function Ls(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Ns(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Tn(sc(r)?ia(r):[r],Ai(t,1))}var Rs=wo((function(e,t){return cc(e)?wi(e,Ai(t,1,cc,!0)):[]})),Bs=wo((function(e,t){var n=il(t);return cc(n)&&(n=a),cc(e)?wi(e,Ai(t,1,cc,!0),Ha(n,2)):[]})),$s=wo((function(e,t){var n=il(t);return cc(n)&&(n=a),cc(e)?wi(e,Ai(t,1,cc,!0),a,n):[]}));function Fs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Kc(t),Ao(e,t<0?0:t,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Kc(t),t=r-t,Ao(e,0,t<0?0:t)):[]}function qs(e,t){return e&&e.length?Bo(e,Ha(t,3),!0,!0):[]}function Us(e,t){return e&&e.length?Bo(e,Ha(t,3),!0):[]}function Hs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!==typeof n&&ss(e,t,n)&&(n=0,r=i),ki(e,t,n,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Kc(n);return i<0&&(i=zt(r+i,0)),Rn(e,Ha(t,3),i)}function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=Kc(n),i=n<0?zt(r+i,0):qt(i,r-1)),Rn(e,Ha(t,3),i,!0)}function Ks(e){var t=null==e?0:e.length;return t?Ai(e,1):[]}function Gs(e){var t=null==e?0:e.length;return t?Ai(e,N):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===a?1:Kc(t),Ai(e,t)):[]}function Xs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Zs(e){return e&&e.length?e[0]:a}function Qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Kc(n);return i<0&&(i=zt(r+i,0)),Bn(e,t,i)}function Js(e){var t=null==e?0:e.length;return t?Ao(e,0,-1):[]}var el=wo((function(e){var t=An(e,qo);return t.length&&t[0]===e[0]?zi(t):[]})),tl=wo((function(e){var t=il(e),n=An(e,qo);return t===il(n)?t=a:n.pop(),n.length&&n[0]===e[0]?zi(n,Ha(t,2)):[]})),nl=wo((function(e){var t=il(e),n=An(e,qo);return t="function"===typeof t?t:a,t&&n.pop(),n.length&&n[0]===e[0]?zi(n,a,t):[]}));function rl(e,t){return null==e?"":$t.call(e,t)}function il(e){var t=null==e?0:e.length;return t?e[t-1]:a}function ol(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=Kc(n),i=i<0?zt(r+i,0):qt(i,r-1)),t===t?gr(e,t,i):Rn(e,Fn,i,!0)}function al(e,t){return e&&e.length?co(e,Kc(t)):a}var sl=wo(ll);function ll(e,t){return e&&e.length&&t&&t.length?mo(e,t):e}function ul(e,t,n){return e&&e.length&&t&&t.length?mo(e,t,Ha(n,2)):e}function cl(e,t,n){return e&&e.length&&t&&t.length?mo(e,t,a,n):e}var fl=Ba((function(e,t){var n=null==e?0:e.length,r=gi(e,t);return vo(e,An(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function dl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ha(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function hl(e){return null==e?e:Gt.call(e)}function pl(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!==typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Kc(t),n=n===a?r:Kc(n)),Ao(e,t,n)):[]}function gl(e,t){return Do(e,t)}function ml(e,t,n){return Mo(e,t,Ha(n,2))}function vl(e,t){var n=null==e?0:e.length;if(n){var r=Do(e,t);if(r<n&&rc(e[r],t))return r}return-1}function yl(e,t){return Do(e,t,!0)}function bl(e,t,n){return Mo(e,t,Ha(n,2),!0)}function _l(e,t){var n=null==e?0:e.length;if(n){var r=Do(e,t,!0)-1;if(rc(e[r],t))return r}return-1}function wl(e){return e&&e.length?Po(e):[]}function xl(e,t){return e&&e.length?Po(e,Ha(t,2)):[]}function Ol(e){var t=null==e?0:e.length;return t?Ao(e,1,t):[]}function Sl(e,t,n){return e&&e.length?(t=n||t===a?1:Kc(t),Ao(e,0,t<0?0:t)):[]}function Cl(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===a?1:Kc(t),t=r-t,Ao(e,t<0?0:t,r)):[]}function kl(e,t){return e&&e.length?Bo(e,Ha(t,3),!1,!0):[]}function El(e,t){return e&&e.length?Bo(e,Ha(t,3)):[]}var Al=wo((function(e){return Lo(Ai(e,1,cc,!0))})),Tl=wo((function(e){var t=il(e);return cc(t)&&(t=a),Lo(Ai(e,1,cc,!0),Ha(t,2))})),Dl=wo((function(e){var t=il(e);return t="function"===typeof t?t:a,Lo(Ai(e,1,cc,!0),a,t)}));function Ml(e){return e&&e.length?Lo(e):[]}function Pl(e,t){return e&&e.length?Lo(e,Ha(t,2)):[]}function Il(e,t){return t="function"===typeof t?t:a,e&&e.length?Lo(e,a,t):[]}function jl(e){if(!e||!e.length)return[];var t=0;return e=Cn(e,(function(e){if(cc(e))return t=zt(e.length,t),!0})),Kn(t,(function(t){return An(e,qn(t))}))}function Ll(e,t){if(!e||!e.length)return[];var n=jl(e);return null==t?n:An(n,(function(e){return _n(t,a,e)}))}var Nl=wo((function(e,t){return cc(e)?wi(e,t):[]})),Rl=wo((function(e){return Fo(Cn(e,cc))})),Bl=wo((function(e){var t=il(e);return cc(t)&&(t=a),Fo(Cn(e,cc),Ha(t,2))})),$l=wo((function(e){var t=il(e);return t="function"===typeof t?t:a,Fo(Cn(e,cc),a,t)})),Fl=wo(jl);function zl(e,t){return zo(e||[],t||[],ui)}function ql(e,t){return zo(e||[],t||[],So)}var Ul=wo((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"===typeof n?(e.pop(),n):a,Ll(e,n)}));function Hl(e){var t=xr(e);return t.__chain__=!0,t}function Vl(e,t){return t(e),e}function Wl(e,t){return t(e)}var Kl=Ba((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return gi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Er&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Wl,args:[i],thisArg:a}),new kr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));function Gl(){return Hl(this)}function Yl(){return new kr(this.value(),this.__chain__)}function Xl(){this.__values__===a&&(this.__values__=Vc(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 Cr){var r=Is(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function Jl(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),t=t.reverse(),t.__actions__.push({func:Wl,args:[hl],thisArg:a}),new kr(t,this.__chain__)}return this.thru(hl)}function eu(){return $o(this.__wrapped__,this.__actions__)}var tu=la((function(e,t,n){dt.call(e,n)?++e[n]:pi(e,n,1)}));function nu(e,t,n){var r=sc(e)?Sn:Si;return n&&ss(e,t,n)&&(t=a),r(e,Ha(t,3))}function ru(e,t){var n=sc(e)?Cn:Ei;return n(e,Ha(t,3))}var iu=va(Vs),ou=va(Ws);function au(e,t){return Ai(gu(e,t),1)}function su(e,t){return Ai(gu(e,t),N)}function lu(e,t,n){return n=n===a?1:Kc(n),Ai(gu(e,t),n)}function uu(e,t){var n=sc(e)?xn:xi;return n(e,Ha(t,3))}function cu(e,t){var n=sc(e)?On:Oi;return n(e,Ha(t,3))}var fu=la((function(e,t,n){dt.call(e,n)?e[n].push(t):pi(e,n,[t])}));function du(e,t,n,r){e=uc(e)?e:zf(e),n=n&&!r?Kc(n):0;var i=e.length;return n<0&&(n=zt(i+n,0)),Rc(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bn(e,t,n)>-1}var hu=wo((function(e,t,r){var i=-1,o="function"===typeof t,a=uc(e)?n(e.length):[];return xi(e,(function(e){a[++i]=o?_n(t,e,r):Ui(e,t,r)})),a})),pu=la((function(e,t,n){pi(e,n,t)}));function gu(e,t){var n=sc(e)?An:oo;return n(e,Ha(t,3))}function mu(e,t,n,r){return null==e?[]:(sc(t)||(t=null==t?[]:[t]),n=r?a:n,sc(n)||(n=null==n?[]:[n]),fo(e,t,n))}var vu=la((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function yu(e,t,n){var r=sc(e)?Dn:Hn,i=arguments.length<3;return r(e,Ha(t,4),n,i,xi)}function bu(e,t,n){var r=sc(e)?Mn:Hn,i=arguments.length<3;return r(e,Ha(t,4),n,i,Oi)}function _u(e,t){var n=sc(e)?Cn:Ei;return n(e,Fu(Ha(t,3)))}function wu(e){var t=sc(e)?oi:xo;return t(e)}function xu(e,t,n){t=(n?ss(e,t,n):t===a)?1:Kc(t);var r=sc(e)?ai:Oo;return r(e,t)}function Ou(e){var t=sc(e)?si:Eo;return t(e)}function Su(e){if(null==e)return 0;if(uc(e))return Rc(e)?mr(e):e.length;var t=Za(e);return t==J||t==ae?e.size:no(e).length}function Cu(e,t,n){var r=sc(e)?Pn:To;return n&&ss(e,t,n)&&(t=a),r(e,Ha(t,3))}var ku=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]]),fo(e,Ai(t,1),[])})),Eu=Pt||function(){return ln.Date.now()};function Au(e,t){if("function"!==typeof t)throw new at(c);return e=Kc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Tu(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ma(e,k,a,a,a,a,t)}function Du(e,t){var n;if("function"!==typeof t)throw new at(c);return e=Kc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Mu=wo((function(e,t,n){var r=b;if(n.length){var i=cr(n,Ua(Mu));r|=S}return Ma(e,r,t,n,i)})),Pu=wo((function(e,t,n){var r=b|_;if(n.length){var i=cr(n,Ua(Pu));r|=S}return Ma(t,r,e,n,i)}));function Iu(e,t,n){t=n?a:t;var r=Ma(e,x,a,a,a,a,a,t);return r.placeholder=Iu.placeholder,r}function ju(e,t,n){t=n?a:t;var r=Ma(e,O,a,a,a,a,a,t);return r.placeholder=ju.placeholder,r}function Lu(e,t,n){var r,i,o,s,l,u,f=0,d=!1,h=!1,p=!0;if("function"!==typeof e)throw new at(c);function g(t){var n=r,o=i;return r=i=a,f=t,s=e.apply(o,n),s}function m(e){return f=e,l=Ss(b,t),d?g(e):s}function v(e){var n=e-u,r=e-f,i=t-n;return h?qt(i,o-r):i}function y(e){var n=e-u,r=e-f;return u===a||n>=t||n<0||h&&r>=o}function b(){var e=Eu();if(y(e))return _(e);l=Ss(b,v(e))}function _(e){return l=a,p&&r?g(e):(r=i=a,s)}function w(){l!==a&&Ko(l),f=0,r=u=i=l=a}function x(){return l===a?s:_(Eu())}function O(){var e=Eu(),n=y(e);if(r=arguments,i=this,u=e,n){if(l===a)return m(u);if(h)return l=Ss(b,t),g(u)}return l===a&&(l=Ss(b,t)),s}return t=Yc(t)||0,Oc(n)&&(d=!!n.leading,h="maxWait"in n,o=h?zt(Yc(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),O.cancel=w,O.flush=x,O}var Nu=wo((function(e,t){return _i(e,1,t)})),Ru=wo((function(e,t,n){return _i(e,Yc(t)||0,n)}));function Bu(e){return Ma(e,A)}function $u(e,t){if("function"!==typeof e||null!=t&&"function"!==typeof t)throw new at(c);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new($u.Cache||Ur),n}function Fu(e){if("function"!==typeof e)throw new at(c);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 zu(e){return Du(2,e)}$u.Cache=Ur;var qu=Vo((function(e,t){t=1==t.length&&sc(t[0])?An(t[0],Yn(Ha())):An(Ai(t,1),Yn(Ha()));var n=t.length;return wo((function(r){var i=-1,o=qt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return _n(e,this,r)}))})),Uu=wo((function(e,t){var n=cr(t,Ua(Uu));return Ma(e,S,a,t,n)})),Hu=wo((function(e,t){var n=cr(t,Ua(Hu));return Ma(e,C,a,t,n)})),Vu=Ba((function(e,t){return Ma(e,E,a,a,a,t)}));function Wu(e,t){if("function"!==typeof e)throw new at(c);return t=t===a?t:Kc(t),wo(e,t)}function Ku(e,t){if("function"!==typeof e)throw new at(c);return t=null==t?0:zt(Kc(t),0),wo((function(n){var r=n[t],i=Wo(n,0,t);return r&&Tn(i,r),_n(e,this,i)}))}function Gu(e,t,n){var r=!0,i=!0;if("function"!==typeof e)throw new at(c);return Oc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Lu(e,t,{leading:r,maxWait:t,trailing:i})}function Yu(e){return Tu(e,1)}function Xu(e,t){return Uu(Uo(t),e)}function Zu(){if(!arguments.length)return[];var e=arguments[0];return sc(e)?e:[e]}function Qu(e){return vi(e,m)}function Ju(e,t){return t="function"===typeof t?t:a,vi(e,m,t)}function ec(e){return vi(e,p|m)}function tc(e,t){return t="function"===typeof t?t:a,vi(e,p|m,t)}function nc(e,t){return null==t||bi(e,t,xf(t))}function rc(e,t){return e===t||e!==e&&t!==t}var ic=ka(Ri),oc=ka((function(e,t){return e>=t})),ac=Hi(function(){return arguments}())?Hi:function(e){return Sc(e)&&dt.call(e,"callee")&&!Ct.call(e,"callee")},sc=n.isArray,lc=pn?Yn(pn):Vi;function uc(e){return null!=e&&xc(e.length)&&!_c(e)}function cc(e){return Sc(e)&&uc(e)}function fc(e){return!0===e||!1===e||Sc(e)&&Ni(e)==K}var dc=Rt||Gd,hc=gn?Yn(gn):Wi;function pc(e){return Sc(e)&&1===e.nodeType&&!Ic(e)}function gc(e){if(null==e)return!0;if(uc(e)&&(sc(e)||"string"===typeof e||"function"===typeof e.splice||dc(e)||$c(e)||ac(e)))return!e.length;var t=Za(e);if(t==J||t==ae)return!e.size;if(hs(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function mc(e,t){return Ki(e,t)}function vc(e,t,n){n="function"===typeof n?n:a;var r=n?n(e,t):a;return r===a?Ki(e,t,a,n):!!r}function yc(e){if(!Sc(e))return!1;var t=Ni(e);return t==X||t==Y||"string"===typeof e.message&&"string"===typeof e.name&&!Ic(e)}function bc(e){return"number"===typeof e&&Bt(e)}function _c(e){if(!Oc(e))return!1;var t=Ni(e);return t==Z||t==Q||t==W||t==ie}function wc(e){return"number"===typeof e&&e==Kc(e)}function xc(e){return"number"===typeof e&&e>-1&&e%1==0&&e<=R}function Oc(e){var t="undefined"===typeof e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)}function Sc(e){return null!=e&&"object"===("undefined"===typeof e?"undefined":o(e))}var Cc=mn?Yn(mn):Yi;function kc(e,t){return e===t||Xi(e,t,Wa(t))}function Ec(e,t,n){return n="function"===typeof n?n:a,Xi(e,t,Wa(t),n)}function Ac(e){return Pc(e)&&e!=+e}function Tc(e){if(ds(e))throw new i(u);return Zi(e)}function Dc(e){return null===e}function Mc(e){return null==e}function Pc(e){return"number"===typeof e||Sc(e)&&Ni(e)==ee}function Ic(e){if(!Sc(e)||Ni(e)!=ne)return!1;var t=Ot(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n instanceof n&&ft.call(n)==mt}var jc=vn?Yn(vn):Qi;function Lc(e){return wc(e)&&e>=-R&&e<=R}var Nc=yn?Yn(yn):Ji;function Rc(e){return"string"===typeof e||!sc(e)&&Sc(e)&&Ni(e)==se}function Bc(e){return"symbol"===("undefined"===typeof e?"undefined":o(e))||Sc(e)&&Ni(e)==le}var $c=bn?Yn(bn):eo;function Fc(e){return e===a}function zc(e){return Sc(e)&&Za(e)==ce}function qc(e){return Sc(e)&&Ni(e)==fe}var Uc=ka(io),Hc=ka((function(e,t){return e<=t}));function Vc(e){if(!e)return[];if(uc(e))return Rc(e)?vr(e):ia(e);if(At&&e[At])return sr(e[At]());var t=Za(e),n=t==J?lr:t==ae?dr:zf;return n(e)}function Wc(e){if(!e)return 0===e?e:0;if(e=Yc(e),e===N||e===-N){var t=e<0?-1:1;return t*B}return e===e?e:0}function Kc(e){var t=Wc(e),n=t%1;return t===t?n?t-n:t:0}function Gc(e){return e?mi(Kc(e),0,F):0}function Yc(e){if("number"===typeof e)return e;if(Bc(e))return $;if(Oc(e)){var t="function"===typeof e.valueOf?e.valueOf():e;e=Oc(t)?t+"":t}if("string"!==typeof e)return 0===e?e:+e;e=e.replace(Be,"");var n=Ye.test(e);return n||Ze.test(e)?on(e.slice(2),n?2:8):Ge.test(e)?$:+e}function Xc(e){return oa(e,Of(e))}function Zc(e){return e?mi(Kc(e),-R,R):0===e?e:0}function Qc(e){return null==e?"":jo(e)}var Jc=ua((function(e,t){if(hs(t)||uc(t))oa(t,xf(t),e);else for(var n in t)dt.call(t,n)&&ui(e,n,t[n])})),ef=ua((function(e,t){oa(t,Of(t),e)})),tf=ua((function(e,t,n,r){oa(t,Of(t),e,r)})),nf=ua((function(e,t,n,r){oa(t,xf(t),e,r)})),rf=Ba(gi);function of(e,t){var n=Sr(e);return null==t?n:di(n,t)}var af=wo((function(e,t){e=rt(e);var n=-1,r=t.length,i=r>2?t[2]:a;i&&ss(t[0],t[1],i)&&(r=1);while(++n<r){var o=t[n],s=Of(o),l=-1,u=s.length;while(++l<u){var c=s[l],f=e[c];(f===a||rc(f,ut[c])&&!dt.call(e,c))&&(e[c]=o[c])}}return e})),sf=wo((function(e){return e.push(a,Ia),_n(Ef,a,e)}));function lf(e,t){return Nn(e,Ha(t,3),Mi)}function uf(e,t){return Nn(e,Ha(t,3),Pi)}function cf(e,t){return null==e?e:Ti(e,Ha(t,3),Of)}function ff(e,t){return null==e?e:Di(e,Ha(t,3),Of)}function df(e,t){return e&&Mi(e,Ha(t,3))}function hf(e,t){return e&&Pi(e,Ha(t,3))}function pf(e){return null==e?[]:Ii(e,xf(e))}function gf(e){return null==e?[]:Ii(e,Of(e))}function mf(e,t,n){var r=null==e?a:ji(e,t);return r===a?n:r}function vf(e,t){return null!=e&&es(e,t,Bi)}function yf(e,t){return null!=e&&es(e,t,$i)}var bf=_a((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=gt.call(t)),e[t]=n}),kd(Dd)),_f=_a((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=gt.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),wf=wo(Ui);function xf(e){return uc(e)?ii(e):no(e)}function Of(e){return uc(e)?ii(e,!0):ro(e)}function Sf(e,t){var n={};return t=Ha(t,3),Mi(e,(function(e,r,i){pi(n,t(e,r,i),e)})),n}function Cf(e,t){var n={};return t=Ha(t,3),Mi(e,(function(e,r,i){pi(n,r,t(e,r,i))})),n}var kf=ua((function(e,t,n){lo(e,t,n)})),Ef=ua((function(e,t,n,r){lo(e,t,n,r)})),Af=Ba((function(e,t){var n={};if(null==e)return n;var r=!1;t=An(t,(function(t){return t=Ho(t,e),r||(r=t.length>1),t})),oa(e,Fa(e),n),r&&(n=vi(n,p|g|m,ja));var i=t.length;while(i--)No(n,t[i]);return n}));function Tf(e,t){return Mf(e,Fu(Ha(t)))}var Df=Ba((function(e,t){return null==e?{}:ho(e,t)}));function Mf(e,t){if(null==e)return{};var n=An(Fa(e),(function(e){return[e]}));return t=Ha(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Pf(e,t,n){t=Ho(t,e);var r=-1,i=t.length;i||(i=1,e=a);while(++r<i){var o=null==e?a:e[Ds(t[r])];o===a&&(r=i,o=n),e=_c(o)?o.call(e):o}return e}function If(e,t,n){return null==e?e:So(e,t,n)}function jf(e,t,n,r){return r="function"===typeof r?r:a,null==e?e:So(e,t,n,r)}var Lf=Da(xf),Nf=Da(Of);function Rf(e,t,n){var r=sc(e),i=r||dc(e)||$c(e);if(t=Ha(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Oc(e)&&_c(o)?Sr(Ot(e)):{}}return(i?xn:Mi)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Bf(e,t){return null==e||No(e,t)}function $f(e,t,n){return null==e?e:Ro(e,t,Uo(n))}function Ff(e,t,n,r){return r="function"===typeof r?r:a,null==e?e:Ro(e,t,Uo(n),r)}function zf(e){return null==e?[]:Xn(e,xf(e))}function qf(e){return null==e?[]:Xn(e,Of(e))}function Uf(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=Yc(n),n=n===n?n:0),t!==a&&(t=Yc(t),t=t===t?t:0),mi(Yc(e),t,n)}function Hf(e,t,n){return t=Wc(t),n===a?(n=t,t=0):n=Wc(n),e=Yc(e),Fi(e,t,n)}function Vf(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=Wc(e),t===a?(t=e,e=0):t=Wc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Kt();return qt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return yo(e,t)}var Wf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Kf(t):t)}));function Kf(e){return _d(Qc(e).toLowerCase())}function Gf(e){return e=Qc(e),e&&e.replace(Je,tr).replace(Ht,"")}function Yf(e,t,n){e=Qc(e),t=jo(t);var r=e.length;n=n===a?r:mi(Kc(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Xf(e){return e=Qc(e),e&&Te.test(e)?e.replace(Ee,nr):e}function Zf(e){return e=Qc(e),e&&Re.test(e)?e.replace(Ne,"\\$&"):e}var Qf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Jf=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ed=ha("toLowerCase");function td(e,t,n){e=Qc(e),t=Kc(t);var r=t?mr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Oa(Lt(i),n)+e+Oa(jt(i),n)}function nd(e,t,n){e=Qc(e),t=Kc(t);var r=t?mr(e):0;return t&&r<t?e+Oa(t-r,n):e}function rd(e,t,n){e=Qc(e),t=Kc(t);var r=t?mr(e):0;return t&&r<t?Oa(t-r,n)+e:e}function id(e,t,n){return n||null==t?t=0:t&&(t=+t),Wt(Qc(e).replace($e,""),t||0)}function od(e,t,n){return t=(n?ss(e,t,n):t===a)?1:Kc(t),_o(Qc(e),t)}function ad(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sd=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ld(e,t,n){return n&&"number"!==typeof n&&ss(e,t,n)&&(t=n=a),n=n===a?F:n>>>0,n?(e=Qc(e),e&&("string"===typeof t||null!=t&&!jc(t))&&(t=jo(t),!t&&or(e))?Wo(vr(e),0,n):e.split(t,n)):[]}var ud=pa((function(e,t,n){return e+(n?" ":"")+_d(t)}));function cd(e,t,n){return e=Qc(e),n=null==n?0:mi(Kc(n),0,e.length),t=jo(t),e.slice(n,n+t.length)==t}function fd(e,t,n){var r=xr.templateSettings;n&&ss(e,t,n)&&(t=a),e=Qc(e),t=tf({},t,r,Pa);var i,o,s=tf({},t.imports,r.imports,Pa),l=xf(s),u=Xn(s,l),c=0,f=t.interpolate||et,d="__p += '",h=it((t.escape||et).source+"|"+f.source+"|"+(f===Pe?We:et).source+"|"+(t.evaluate||et).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(tt,rr),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var g=t.variable;g||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(Oe,""):d).replace(Se,"$1").replace(Ce,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=xd((function(){return He(l,p+"return "+d).apply(a,u)}));if(m.source=d,yc(m))throw m;return m}function dd(e){return Qc(e).toLowerCase()}function hd(e){return Qc(e).toUpperCase()}function pd(e,t,n){if(e=Qc(e),e&&(n||t===a))return e.replace(Be,"");if(!e||!(t=jo(t)))return e;var r=vr(e),i=vr(t),o=Qn(r,i),s=Jn(r,i)+1;return Wo(r,o,s).join("")}function gd(e,t,n){if(e=Qc(e),e&&(n||t===a))return e.replace(Fe,"");if(!e||!(t=jo(t)))return e;var r=vr(e),i=Jn(r,vr(t))+1;return Wo(r,0,i).join("")}function md(e,t,n){if(e=Qc(e),e&&(n||t===a))return e.replace($e,"");if(!e||!(t=jo(t)))return e;var r=vr(e),i=Qn(r,vr(t));return Wo(r,i).join("")}function vd(e,t){var n=T,r=D;if(Oc(t)){var i="separator"in t?t.separator:i;n="length"in t?Kc(t.length):n,r="omission"in t?jo(t.omission):r}e=Qc(e);var o=e.length;if(or(e)){var s=vr(e);o=s.length}if(n>=o)return e;var l=n-mr(r);if(l<1)return r;var u=s?Wo(s,0,l).join(""):e.slice(0,l);if(i===a)return u+r;if(s&&(l+=u.length-l),jc(i)){if(e.slice(l).search(i)){var c,f=u;i.global||(i=it(i.source,Qc(Ke.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var d=c.index;u=u.slice(0,d===a?l:d)}}else if(e.indexOf(jo(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function yd(e){return e=Qc(e),e&&Ae.test(e)?e.replace(ke,yr):e}var bd=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),_d=ha("toUpperCase");function wd(e,t,n){return e=Qc(e),t=n?a:t,t===a?ar(e)?wr(e):Ln(e):e.match(t)||[]}var xd=wo((function(e,t){try{return _n(e,a,t)}catch(n){return yc(n)?n:new i(n)}})),Od=Ba((function(e,t){return xn(t,(function(t){t=Ds(t),pi(e,t,Mu(e[t],e))})),e}));function Sd(e){var t=null==e?0:e.length,n=Ha();return e=t?An(e,(function(e){if("function"!==typeof e[1])throw new at(c);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++r<t){var i=e[r];if(_n(i[0],this,n))return _n(i[1],this,n)}}))}function Cd(e){return yi(vi(e,p))}function kd(e){return function(){return e}}function Ed(e,t){return null==e||e!==e?t:e}var Ad=ya(),Td=ya(!0);function Dd(e){return e}function Md(e){return to("function"===typeof e?e:vi(e,p))}function Pd(e){return ao(vi(e,p))}function Id(e,t){return so(e,vi(t,p))}var jd=wo((function(e,t){return function(n){return Ui(n,e,t)}})),Ld=wo((function(e,t){return function(n){return Ui(e,n,t)}}));function Nd(e,t,n){var r=xf(t),i=Ii(t,r);null!=n||Oc(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ii(t,xf(t)));var o=!(Oc(n)&&"chain"in n)||!!n.chain,a=_c(e);return xn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Tn([this.value()],arguments))})})),e}function Rd(){return ln._===this&&(ln._=vt),this}function Bd(){}function $d(e){return e=Kc(e),wo((function(t){return co(t,e)}))}var Fd=xa(An),zd=xa(Sn),qd=xa(Pn);function Ud(e){return ls(e)?qn(Ds(e)):go(e)}function Hd(e){return function(t){return null==e?a:ji(e,t)}}var Vd=Ca(),Wd=Ca(!0);function Kd(){return[]}function Gd(){return!1}function Yd(){return{}}function Xd(){return""}function Zd(){return!0}function Qd(e,t){if(e=Kc(e),e<1||e>R)return[];var n=F,r=qt(e,F);t=Ha(t),e-=F;var i=Kn(r,t);while(++n<e)t(n);return i}function Jd(e){return sc(e)?An(e,Ds):Bc(e)?[e]:ia(Ts(Qc(e)))}function eh(e){var t=++ht;return Qc(e)+t}var th=wa((function(e,t){return e+t}),0),nh=Aa("ceil"),rh=wa((function(e,t){return e/t}),1),ih=Aa("floor");function oh(e){return e&&e.length?Ci(e,Dd,Ri):a}function ah(e,t){return e&&e.length?Ci(e,Ha(t,2),Ri):a}function sh(e){return zn(e,Dd)}function lh(e,t){return zn(e,Ha(t,2))}function uh(e){return e&&e.length?Ci(e,Dd,io):a}function ch(e,t){return e&&e.length?Ci(e,Ha(t,2),io):a}var fh=wa((function(e,t){return e*t}),1),dh=Aa("round"),hh=wa((function(e,t){return e-t}),0);function ph(e){return e&&e.length?Wn(e,Dd):0}function gh(e,t){return e&&e.length?Wn(e,Ha(t,2)):0}return xr.after=Au,xr.ary=Tu,xr.assign=Jc,xr.assignIn=ef,xr.assignInWith=tf,xr.assignWith=nf,xr.at=rf,xr.before=Du,xr.bind=Mu,xr.bindAll=Od,xr.bindKey=Pu,xr.castArray=Zu,xr.chain=Hl,xr.chunk=js,xr.compact=Ls,xr.concat=Ns,xr.cond=Sd,xr.conforms=Cd,xr.constant=kd,xr.countBy=tu,xr.create=of,xr.curry=Iu,xr.curryRight=ju,xr.debounce=Lu,xr.defaults=af,xr.defaultsDeep=sf,xr.defer=Nu,xr.delay=Ru,xr.difference=Rs,xr.differenceBy=Bs,xr.differenceWith=$s,xr.drop=Fs,xr.dropRight=zs,xr.dropRightWhile=qs,xr.dropWhile=Us,xr.fill=Hs,xr.filter=ru,xr.flatMap=au,xr.flatMapDeep=su,xr.flatMapDepth=lu,xr.flatten=Ks,xr.flattenDeep=Gs,xr.flattenDepth=Ys,xr.flip=Bu,xr.flow=Ad,xr.flowRight=Td,xr.fromPairs=Xs,xr.functions=pf,xr.functionsIn=gf,xr.groupBy=fu,xr.initial=Js,xr.intersection=el,xr.intersectionBy=tl,xr.intersectionWith=nl,xr.invert=bf,xr.invertBy=_f,xr.invokeMap=hu,xr.iteratee=Md,xr.keyBy=pu,xr.keys=xf,xr.keysIn=Of,xr.map=gu,xr.mapKeys=Sf,xr.mapValues=Cf,xr.matches=Pd,xr.matchesProperty=Id,xr.memoize=$u,xr.merge=kf,xr.mergeWith=Ef,xr.method=jd,xr.methodOf=Ld,xr.mixin=Nd,xr.negate=Fu,xr.nthArg=$d,xr.omit=Af,xr.omitBy=Tf,xr.once=zu,xr.orderBy=mu,xr.over=Fd,xr.overArgs=qu,xr.overEvery=zd,xr.overSome=qd,xr.partial=Uu,xr.partialRight=Hu,xr.partition=vu,xr.pick=Df,xr.pickBy=Mf,xr.property=Ud,xr.propertyOf=Hd,xr.pull=sl,xr.pullAll=ll,xr.pullAllBy=ul,xr.pullAllWith=cl,xr.pullAt=fl,xr.range=Vd,xr.rangeRight=Wd,xr.rearg=Vu,xr.reject=_u,xr.remove=dl,xr.rest=Wu,xr.reverse=hl,xr.sampleSize=xu,xr.set=If,xr.setWith=jf,xr.shuffle=Ou,xr.slice=pl,xr.sortBy=ku,xr.sortedUniq=wl,xr.sortedUniqBy=xl,xr.split=ld,xr.spread=Ku,xr.tail=Ol,xr.take=Sl,xr.takeRight=Cl,xr.takeRightWhile=kl,xr.takeWhile=El,xr.tap=Vl,xr.throttle=Gu,xr.thru=Wl,xr.toArray=Vc,xr.toPairs=Lf,xr.toPairsIn=Nf,xr.toPath=Jd,xr.toPlainObject=Xc,xr.transform=Rf,xr.unary=Yu,xr.union=Al,xr.unionBy=Tl,xr.unionWith=Dl,xr.uniq=Ml,xr.uniqBy=Pl,xr.uniqWith=Il,xr.unset=Bf,xr.unzip=jl,xr.unzipWith=Ll,xr.update=$f,xr.updateWith=Ff,xr.values=zf,xr.valuesIn=qf,xr.without=Nl,xr.words=wd,xr.wrap=Xu,xr.xor=Rl,xr.xorBy=Bl,xr.xorWith=$l,xr.zip=Fl,xr.zipObject=zl,xr.zipObjectDeep=ql,xr.zipWith=Ul,xr.entries=Lf,xr.entriesIn=Nf,xr.extend=ef,xr.extendWith=tf,Nd(xr,xr),xr.add=th,xr.attempt=xd,xr.camelCase=Wf,xr.capitalize=Kf,xr.ceil=nh,xr.clamp=Uf,xr.clone=Qu,xr.cloneDeep=ec,xr.cloneDeepWith=tc,xr.cloneWith=Ju,xr.conformsTo=nc,xr.deburr=Gf,xr.defaultTo=Ed,xr.divide=rh,xr.endsWith=Yf,xr.eq=rc,xr.escape=Xf,xr.escapeRegExp=Zf,xr.every=nu,xr.find=iu,xr.findIndex=Vs,xr.findKey=lf,xr.findLast=ou,xr.findLastIndex=Ws,xr.findLastKey=uf,xr.floor=ih,xr.forEach=uu,xr.forEachRight=cu,xr.forIn=cf,xr.forInRight=ff,xr.forOwn=df,xr.forOwnRight=hf,xr.get=mf,xr.gt=ic,xr.gte=oc,xr.has=vf,xr.hasIn=yf,xr.head=Zs,xr.identity=Dd,xr.includes=du,xr.indexOf=Qs,xr.inRange=Hf,xr.invoke=wf,xr.isArguments=ac,xr.isArray=sc,xr.isArrayBuffer=lc,xr.isArrayLike=uc,xr.isArrayLikeObject=cc,xr.isBoolean=fc,xr.isBuffer=dc,xr.isDate=hc,xr.isElement=pc,xr.isEmpty=gc,xr.isEqual=mc,xr.isEqualWith=vc,xr.isError=yc,xr.isFinite=bc,xr.isFunction=_c,xr.isInteger=wc,xr.isLength=xc,xr.isMap=Cc,xr.isMatch=kc,xr.isMatchWith=Ec,xr.isNaN=Ac,xr.isNative=Tc,xr.isNil=Mc,xr.isNull=Dc,xr.isNumber=Pc,xr.isObject=Oc,xr.isObjectLike=Sc,xr.isPlainObject=Ic,xr.isRegExp=jc,xr.isSafeInteger=Lc,xr.isSet=Nc,xr.isString=Rc,xr.isSymbol=Bc,xr.isTypedArray=$c,xr.isUndefined=Fc,xr.isWeakMap=zc,xr.isWeakSet=qc,xr.join=rl,xr.kebabCase=Qf,xr.last=il,xr.lastIndexOf=ol,xr.lowerCase=Jf,xr.lowerFirst=ed,xr.lt=Uc,xr.lte=Hc,xr.max=oh,xr.maxBy=ah,xr.mean=sh,xr.meanBy=lh,xr.min=uh,xr.minBy=ch,xr.stubArray=Kd,xr.stubFalse=Gd,xr.stubObject=Yd,xr.stubString=Xd,xr.stubTrue=Zd,xr.multiply=fh,xr.nth=al,xr.noConflict=Rd,xr.noop=Bd,xr.now=Eu,xr.pad=td,xr.padEnd=nd,xr.padStart=rd,xr.parseInt=id,xr.random=Vf,xr.reduce=yu,xr.reduceRight=bu,xr.repeat=od,xr.replace=ad,xr.result=Pf,xr.round=dh,xr.runInContext=e,xr.sample=wu,xr.size=Su,xr.snakeCase=sd,xr.some=Cu,xr.sortedIndex=gl,xr.sortedIndexBy=ml,xr.sortedIndexOf=vl,xr.sortedLastIndex=yl,xr.sortedLastIndexBy=bl,xr.sortedLastIndexOf=_l,xr.startCase=ud,xr.startsWith=cd,xr.subtract=hh,xr.sum=ph,xr.sumBy=gh,xr.template=fd,xr.times=Qd,xr.toFinite=Wc,xr.toInteger=Kc,xr.toLength=Gc,xr.toLower=dd,xr.toNumber=Yc,xr.toSafeInteger=Zc,xr.toString=Qc,xr.toUpper=hd,xr.trim=pd,xr.trimEnd=gd,xr.trimStart=md,xr.truncate=vd,xr.unescape=yd,xr.uniqueId=eh,xr.upperCase=bd,xr.upperFirst=_d,xr.each=uu,xr.eachRight=cu,xr.first=Zs,Nd(xr,function(){var e={};return Mi(xr,(function(t,n){dt.call(xr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),xr.VERSION=s,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xr[e].placeholder=xr})),xn(["drop","take"],(function(e,t){Er.prototype[e]=function(n){n=n===a?1:zt(Kc(n),0);var r=this.__filtered__&&!t?new Er(this):this.clone();return r.__filtered__?r.__takeCount__=qt(n,r.__takeCount__):r.__views__.push({size:qt(n,F),type:e+(r.__dir__<0?"Right":"")}),r},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==I||n==L;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(Dd)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=wo((function(e,t){return"function"===typeof e?new Er(this):this.map((function(n){return Ui(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(Fu(Ha(e)))},Er.prototype.slice=function(e,t){e=Kc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Er(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(t=Kc(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(F)},Mi(Er.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=xr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(xr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Er,u=s[0],c=l||sc(t),f=function(e){var t=i.apply(xr,Tn([e],s));return r&&d?t[0]:t};c&&n&&"function"===typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,g=l&&!h;if(!o&&c){t=g?t:new Er(this);var m=e.apply(t,s);return m.__actions__.push({func:Wl,args:[f],thisArg:a}),new kr(m,d)}return p&&g?e.apply(this,s):(m=this.thru(f),p?r?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",r=/^(?:pop|shift)$/.test(e);xr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(sc(i)?i:[],e)}return this[n]((function(n){return t.apply(sc(n)?n:[],e)}))}})),Mi(Er.prototype,(function(e,t){var n=xr[t];if(n){var r=n.name+"",i=cn[r]||(cn[r]=[]);i.push({name:t,func:n})}})),cn[ba(a,_).name]=[{name:"wrapper",func:a}],Er.prototype.clone=Ar,Er.prototype.reverse=Tr,Er.prototype.value=Dr,xr.prototype.at=Kl,xr.prototype.chain=Gl,xr.prototype.commit=Yl,xr.prototype.next=Xl,xr.prototype.plant=Ql,xr.prototype.reverse=Jl,xr.prototype.toJSON=xr.prototype.valueOf=xr.prototype.value=eu,xr.prototype.first=xr.prototype.head,At&&(xr.prototype[At]=Zl),xr},Or=xr();"object"===o(n("3c35"))&&n("3c35")?(ln._=Or,i=function(){return Or}.call(t,n,t,r),i===a||(r.exports=i)):cn?((cn.exports=Or)._=Or,un._=Or):ln._=Or}).call(void 0)}).call(this,n("c8ba"),n("62e4")(e))},5899:function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(r(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)}},"58c9":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r={};function i(e,t){r[e]=t}function o(e){return r[e]}},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 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};t.hasClass=g,t.addClass=m,t.removeClass=v,t.setStyle=b;var i=n("2b0e"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,u=/^moz([A-Z])/,c=s?0:Number(document.documentMode),f=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},d=function(e){return e.replace(l,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(u,"Moz$1")},h=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 r=function r(){n&&n.apply(this,arguments),p(e,t,r)};h(e,t,r)};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,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];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(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):g(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",f(r))}}var y=t.getStyle=c<9?function(e,t){if(!s){if(!e||!t)return null;t=d(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=d(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function b(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":r(t)))for(var i in t)t.hasOwnProperty(i)&&b(e,i,t[i]);else t=d(t),"opacity"===t&&c<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,r=y(e,n?t?"overflow-y":"overflow-x":"overflow");return r.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(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?c:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a94":function(e,t,n){var r=n("b367")("keys"),i=n("8b1a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5c7f":function(e,t,n){"use strict";n.d(t,"a",(function(){return dn}));var r=n("2b0e"),i=function(e,t){return i=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])},i(e,t)};function o(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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a,s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)};function l(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var f=[],d=function(){function e(e){this.active=!0,this.effects=[],this.cleanups=[],this.vm=e}return e.prototype.run=function(e){if(this.active)try{return this.on(),e()}finally{this.off()}else 0},e.prototype.on=function(){this.active&&(f.push(this),a=this)},e.prototype.off=function(){this.active&&(f.pop(),a=f[f.length-1])},e.prototype.stop=function(){this.active&&(this.vm.$destroy(),this.effects.forEach((function(e){return e.stop()})),this.cleanups.forEach((function(e){return e()})),this.active=!1)},e}();(function(e){function t(t){void 0===t&&(t=!1);var n=this,r=void 0;return A((function(){r=te(C())})),n=e.call(this,r)||this,t||h(n),n}o(t,e)})(d);function h(e,t){var n;if(t=t||a,t&&t.active)t.effects.push(e);else{var r=null===(n=D())||void 0===n?void 0:n.proxy;r&&r.$on("hook:destroyed",(function(){return e.stop()}))}}function p(){return a}function g(){var e,t;return(null===(e=p())||void 0===e?void 0:e.vm)||(null===(t=D())||void 0===t?void 0:t.proxy)}function m(e){if(!e.scope){var t=new d(e.proxy);e.scope=t,e.proxy.$on("hook:destroyed",(function(){return t.stop()}))}return e.scope}var v=void 0;try{var y=n("2b0e");y&&O(y)?v=y:y&&"default"in y&&O(y.default)&&(v=y.default)}catch(hn){}var b=null,_=null,w=!0,x="__composition_api_installed__";function O(e){return e&&Z(e)&&"Vue"===e.name}function S(e){return b&&$(e,x)}function C(){return b}function k(){var e=b||v;return e}function E(e){b=e,Object.defineProperty(e,x,{configurable:!0,writable:!0,value:!0})}function A(e){var t=w;w=!1;try{e()}finally{w=t}}function T(e){if(w){var t=_;null===t||void 0===t||t.scope.off(),_=e,null===_||void 0===_||_.scope.on()}}function D(){return _}var M=new WeakMap;function P(e){if(M.has(e))return M.get(e);var t={proxy:e,update:e.$forceUpdate,type:e.$options,uid:e._uid,emit:e.$emit.bind(e),parent:null,root:null};m(t);var n=["data","props","attrs","refs","vnode","slots"];return n.forEach((function(n){R(t,n,{get:function(){return e["$".concat(n)]}})})),R(t,"isMounted",{get:function(){return e._isMounted}}),R(t,"isUnmounted",{get:function(){return e._isDestroyed}}),R(t,"isDeactivated",{get:function(){return e._inactive}}),R(t,"emitted",{get:function(){return e._events}}),M.set(e,t),e.$parent&&(t.parent=P(e.$parent)),e.$root&&(t.root=P(e.$root)),t}var I=function(e){return Object.prototype.toString.call(e)};function j(e){return"function"===typeof e&&/native code/.test(e.toString())}var L="undefined"!==typeof Symbol&&j(Symbol)&&"undefined"!==typeof Reflect&&j(Reflect.ownKeys),N=function(e){return e};function R(e,t,n){var r=n.get,i=n.set;Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:r||N,set:i||N})}function B(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function $(e,t){return Object.hasOwnProperty.call(e,t)}function F(e,t){if(!e)throw new Error("[vue-composition-api] ".concat(t))}function z(e){return Array.isArray(e)}var q,U=Object.prototype.toString,H=function(e){return U.call(e)},V=function(e){return"[object Map]"===H(e)},W=function(e){return"[object Set]"===H(e)},K=4294967295;function G(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)&&t<=K}function Y(e){return null!==e&&"object"===typeof e}function X(e){return"[object Object]"===I(e)}function Z(e){return"function"===typeof e}function Q(e,t,n){if("undefined"===typeof window||"undefined"===typeof console)throw e;console.error(e)}function J(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function ee(e,t){return t=t||D(),t}function te(e,t){void 0===t&&(t={});var n=e.config.silent;e.config.silent=!0;var r=new e(t);return e.config.silent=n,r}function ne(e){var t=C();return t&&e instanceof t}function re(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(e.$scopedSlots[t])return e.$scopedSlots[t].apply(e,n)}}function ie(e,t){var n;if(e){if(e._normalized)return e._normalized;for(var r in n={},e)e[r]&&"$"!==r[0]&&(n[r]=!0)}else n={};for(var r in t)r in n||(n[r]=!0);return n}var oe=function(){if(!q){var e=te(C(),{computed:{value:function(){return 0}}}),t=e._computedWatchers.value.constructor,n=e._data.__ob__.dep.constructor;q={Watcher:t,Dep:n},e.$destroy()}return q};function ae(e){return L?Symbol.for(e):e}var se=ae("composition-api.preFlushQueue"),le=ae("composition-api.postFlushQueue"),ue="composition-api.refKey",ce=new WeakMap,fe=new WeakMap,de=new WeakMap;function he(e,t,n){var r=C(),i=r.util,o=(i.warn,i.defineReactive);var a=e.__ob__;function s(){a&&Y(n)&&!$(n,"__ob__")&&De(n)}if(z(e)){if(G(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),s(),n;if("length"===t&&n!==e.length)return e.length=n,null===a||void 0===a||a.dep.notify(),n}return t in e&&!(t in Object.prototype)?(e[t]=n,s(),n):e._isVue||a&&a.vmCount?n:a?(o(a.value,t,n),Ae(e,t,n),s(),a.dep.notify(),n):(e[t]=n,n)}var pe=!1;function ge(){return pe}var me=function(){function e(e){var t=e.get,n=e.set;R(this,"value",{get:t,set:n})}return e}();function ve(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new me(e);n&&(r.effect=!0);var i=Object.seal(r);return t&&de.set(i,!0),i}function ye(e){var t;if(be(e))return e;var n=je((t={},t[ue]=e,t));return ve({get:function(){return n[ue]},set:function(e){return n[ue]=e}})}function be(e){return e instanceof me}function _e(e){return be(e)?e.value:e}function we(e){if(!X(e))return e;var t={};for(var n in e)t[n]=xe(e,n);return t}function xe(e,t){t in e||he(e,t,void 0);var n=e[t];return be(n)?n:ve({get:function(){return e[t]},set:function(n){return e[t]=n}})}function Oe(e){var t;if(be(e))return e;var n=Ie((t={},t[ue]=e,t));return ve({get:function(){return n[ue]},set:function(e){return n[ue]=e}})}var Se="__v_skip";function Ce(e){var t;return Boolean(e&&$(e,"__ob__")&&"object"===typeof e.__ob__&&(null===(t=e.__ob__)||void 0===t?void 0:t[Se]))}function ke(e){var t;return Boolean(e&&$(e,"__ob__")&&"object"===typeof e.__ob__&&!(null===(t=e.__ob__)||void 0===t?void 0:t[Se]))}function Ee(e){if(!(!X(e)||Ce(e)||z(e)||be(e)||ne(e)||ce.has(e))){ce.set(e,!0);for(var t=Object.keys(e),n=0;n<t.length;n++)Ae(e,t[n])}}function Ae(e,t,n){if("__ob__"!==t&&!Ce(e[t])){var r,i,o=Object.getOwnPropertyDescriptor(e,t);if(o){if(!1===o.configurable)return;r=o.get,i=o.set,r&&!i||2!==arguments.length||(n=e[t])}Ee(n),R(e,t,{get:function(){var i=r?r.call(e):n;return t!==ue&&be(i)?i.value:i},set:function(o){r&&!i||(t!==ue&&be(n)&&!be(o)?n.value=o:i?(i.call(e,o),n=o):n=o,Ee(o))}})}}function Te(e){var t,n=k();if(n.observable)t=n.observable(e);else{var r=te(n,{data:{$$state:e}});t=r._data.$$state}return $(t,"__ob__")||De(t),t}function De(e,t){var n,r;if(void 0===t&&(t=new Set),!t.has(e)&&!$(e,"__ob__")&&Object.isExtensible(e)){B(e,"__ob__",Me(e)),t.add(e);try{for(var i=l(Object.keys(e)),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];(X(s)||z(s))&&!Ce(s)&&Object.isExtensible(s)&&De(s,t)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}function Me(e){return void 0===e&&(e={}),{value:e,dep:{notify:N,depend:N,addSub:N,removeSub:N}}}function Pe(){return Te({}).__ob__}function Ie(e){var t,n;if(!Y(e))return e;if(!X(e)&&!z(e)||Ce(e)||!Object.isExtensible(e))return e;var r=Te(z(e)?[]:{}),i=r.__ob__,o=function(t){var n,o,a=e[t],s=Object.getOwnPropertyDescriptor(e,t);if(s){if(!1===s.configurable)return"continue";n=s.get,o=s.set}R(r,t,{get:function(){var e;return null===(e=i.dep)||void 0===e||e.depend(),a},set:function(t){var r;n&&!o||(ge()||a!==t)&&(o?o.call(e,t):a=t,null===(r=i.dep)||void 0===r||r.notify())}})};try{for(var a=l(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;o(u)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}function je(e){if(!Y(e))return e;if(!X(e)&&!z(e)||Ce(e)||!Object.isExtensible(e))return e;var t=Te(e);return Ee(t),t}var Le=function(e){return"on".concat(e[0].toUpperCase()+e.slice(1))};function Ne(e){return function(t,n){var r=ee(Le(e),n);return r&&Re(C(),r,e,t)}}function Re(e,t,n,r){var i=t.proxy.$options,o=e.config.optionMergeStrategies[n],a=Be(t,r);return i[n]=o(i[n],a),a}function Be(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=D();T(e);try{return t.apply(void 0,c([],u(n),!1))}finally{T(i)}}}Ne("beforeMount");var $e,Fe=Ne("mounted"),ze=(Ne("beforeUpdate"),Ne("updated"),Ne("beforeDestroy"));Ne("destroyed"),Ne("errorCaptured"),Ne("activated"),Ne("deactivated"),Ne("serverPrefetch");function qe(){Ye(this,se)}function Ue(){Ye(this,le)}function He(e){return void 0!==e[se]}function Ve(e){e[se]=[],e[le]=[],e.$on("hook:beforeUpdate",qe),e.$on("hook:updated",Ue)}function We(e){return s({immediate:!1,deep:!1,flush:"pre"},e)}function Ke(e){return s({flush:"pre"},e)}function Ge(){var e=g();return e?He(e)||Ve(e):($e||($e=te(C())),e=$e),e}function Ye(e,t){for(var n=e[t],r=0;r<n.length;r++)n[r]();n.length=0}function Xe(e,t,n){var r=function(){e.$nextTick((function(){e[se].length&&Ye(e,se),e[le].length&&Ye(e,le)}))};switch(n){case"pre":r(),e[se].push(t);break;case"post":r(),e[le].push(t);break;default:F(!1,'flush must be one of ["post", "pre", "sync"], but got '.concat(n));break}}function Ze(e,t,n,r){var i=e._watchers.length;return e.$watch(t,n,{immediate:r.immediateInvokeCallback,deep:r.deep,lazy:r.noRun,sync:r.sync,before:r.before}),e._watchers[i]}function Qe(e,t){var n=e.teardown;e.teardown=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n.apply(e,r),t()}}function Je(e,t,n,r){var i;var o,a=r.flush,s="sync"===a,l=function(t){o=function(){try{t()}catch(n){Q(n,e,"onCleanup()")}}},f=function(){o&&(o(),o=null)},d=function(t){return s||e===$e?t:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return Xe(e,(function(){t.apply(void 0,c([],u(n),!1))}),a)}};if(null===n){var h=!1,p=function(){if(!h)try{h=!0,t(l)}finally{h=!1}},g=Ze(e,p,N,{deep:r.deep||!1,sync:s,before:f});Qe(g,f),g.lazy=!1;var m=g.get.bind(g);return g.get=d(m),function(){g.teardown()}}var v,y=r.deep,b=!1;if(be(t)?v=function(){return t.value}:ke(t)?(v=function(){return t},y=!0):z(t)?(b=!0,v=function(){return t.map((function(e){return be(e)?e.value:ke(e)?nt(e):Z(e)?e():N}))}):v=Z(t)?t:N,y){var _=v;v=function(){return nt(_())}}var w=function(e,t){if(y||!b||!e.every((function(e,n){return J(e,t[n])})))return f(),n(e,t,l)},x=d(w);if(r.immediate){var O=x,S=function(e,t){return S=O,w(e,z(e)?[]:t)};x=function(e,t){return S(e,t)}}var C=e.$watch(v,x,{immediate:r.immediate,deep:y,sync:s}),k=e._watchers[e._watchers.length-1];return ke(k.value)&&(null===(i=k.value.__ob__)||void 0===i?void 0:i.dep)&&y&&k.value.__ob__.dep.addSub({update:function(){k.run()}}),Qe(k,f),function(){C()}}function et(e,t){var n=Ke(t),r=Ge();return Je(r,e,null,n)}function tt(e,t,n){var r=null;Z(t)?r=t:(n=t,r=null);var i=We(n),o=Ge();return Je(o,e,r,i)}function nt(e,t){if(void 0===t&&(t=new Set),!Y(e)||t.has(e)||fe.has(e))return e;if(t.add(e),be(e))nt(e.value,t);else if(z(e))for(var n=0;n<e.length;n++)nt(e[n],t);else if(W(e)||V(e))e.forEach((function(e){nt(e,t)}));else if(X(e))for(var r in e)nt(e[r],t);return e}function rt(e){var t,n,r,i,o=g();if(Z(e)?t=e:(t=e.get,n=e.set),o&&!o.$isServer){var a,s=oe(),l=s.Watcher,u=s.Dep;i=function(){return a||(a=new l(o,t,N,{lazy:!0})),a.dirty&&a.evaluate(),u.target&&a.depend(),a.value},r=function(e){n&&n(e)}}else{var c=te(C(),{computed:{$$state:{get:t,set:n}}});o&&o.$on("hook:destroyed",(function(){return c.$destroy()})),i=function(){return c.$$state},r=function(e){c.$$state=e}}return ve({get:i,set:r},!n,!0)}var it={};function ot(e,t){var n=t;while(n){if(n._provided&&$(n._provided,e))return n._provided[e];n=n.$parent}return it}function at(e,t,n){var r;void 0===n&&(n=!1);var i=null===(r=D())||void 0===r?void 0:r.proxy;if(i){if(!e)return t;var o=ot(e,i);return o!==it?o:arguments.length>1?n&&Z(t)?t():t:void 0}}var st,lt=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null===(e=C())||void 0===e?void 0:e.nextTick.apply(this,t)},ut=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=(null===this||void 0===this?void 0:this.proxy)||(null===(e=D())||void 0===e?void 0:e.proxy);return r?r.$createElement.apply(r,t):(st||(st=te(C()).$createElement),st.apply(st,t))};function ct(e,t,n){var r=e.__composition_api_state__=e.__composition_api_state__||{};r[t]=n}function ft(e,t){return(e.__composition_api_state__||{})[t]}var dt={set:ct,get:ft};function ht(e,t,n){var r=e.$options.props;t in e||r&&$(r,t)||(be(n)?R(e,t,{get:function(){return n.value},set:function(e){n.value=e}}):R(e,t,{get:function(){return ke(n)&&n.__ob__.dep.depend(),n},set:function(e){n=e}}))}function pt(e){var t=dt.get(e,"rawBindings")||{};if(t&&Object.keys(t).length){for(var n=e.$refs,r=dt.get(e,"refs")||[],i=0;i<r.length;i++){var o=r[i],a=t[o];!n[o]&&a&&be(a)&&(a.value=null)}var s=Object.keys(n),l=[];for(i=0;i<s.length;i++){o=s[i],a=t[o];n[o]&&a&&be(a)&&(a.value=n[o],l.push(o))}dt.set(e,"refs",l)}}function gt(e){var t=[e._vnode];while(t.length){var n=t.pop();if(n&&(n.context&&pt(n.context),n.children))for(var r=0;r<n.children.length;++r)t.push(n.children[r])}}function mt(e,t){var n,r;if(e){var i=dt.get(e,"attrBindings");if(i||t){if(!i){var o=je({});i={ctx:t,data:o},dt.set(e,"attrBindings",i),R(t,"attrs",{get:function(){return null===i||void 0===i?void 0:i.data},set:function(){}})}var a=e.$attrs,s=function(t){$(i.data,t)||R(i.data,t,{get:function(){return e.$attrs[t]}})};try{for(var u=l(Object.keys(a)),c=u.next();!c.done;c=u.next()){var f=c.value;s(f)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}}function vt(e,t){var n=e.$options._parentVnode;if(n){for(var r=dt.get(e,"slots")||[],i=ie(n.data.scopedSlots,e.$slots),o=0;o<r.length;o++){var a=r[o];i[a]||delete t[a]}var s=Object.keys(i);for(o=0;o<s.length;o++){a=s[o];t[a]||(t[a]=re(e,a))}dt.set(e,"slots",s)}}function yt(e,t,n){var r=D();T(e);try{return t(e)}catch(i){if(!n)throw i;n(i)}finally{T(r)}}function bt(e){function t(){var e=this,t=e.$options,r=t.setup,i=t.render;if(i&&(t.render=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return yt(P(e),(function(){return i.apply(t,n)}))}),r&&Z(r)){var o=t.data;t.data=function(){return n(e,e.$props),Z(o)?o.call(e,e):o||{}}}}function n(e,t){void 0===t&&(t={});var n,a=e.$options.setup,s=o(e),l=P(e);if(l.setupContext=s,B(t,"__ob__",Pe()),vt(e,s.slots),yt(l,(function(){n=a(t,s)})),n)if(Z(n)){var u=n;e.$options.render=function(){return vt(e,s.slots),yt(l,(function(){return u()}))}}else if(Y(n)){ke(n)&&(n=we(n)),dt.set(e,"rawBindings",n);var c=n;Object.keys(c).forEach((function(t){var n=c[t];if(!be(n))if(ke(n))z(n)&&(n=ye(n));else if(Z(n)){var o=n;n=n.bind(e),Object.keys(o).forEach((function(e){n[e]=o[e]}))}else Y(n)?i(n)&&r(n):n=ye(n);ht(e,t,n)}))}else 0}function r(e,t){if(void 0===t&&(t=new Set),!t.has(e)&&X(e)&&!be(e)&&!ke(e)&&!Ce(e)){var n=C(),i=n.util.defineReactive;Object.keys(e).forEach((function(n){var o=e[n];i(e,n,o),o&&(t.add(o),r(o,t))}))}}function i(e,t){return void 0===t&&(t=new Map),t.has(e)?t.get(e):(t.set(e,!1),z(e)&&ke(e)?(t.set(e,!0),!0):!(!X(e)||Ce(e)||be(e))&&Object.keys(e).some((function(n){return i(e[n],t)})))}function o(e){var t={slots:{}},n=["root","parent","refs","listeners","isServer","ssrContext"],r=["emit"];return n.forEach((function(n){var r="$".concat(n);R(t,n,{get:function(){return e[r]},set:function(){}})})),mt(e,t),r.forEach((function(n){var r="$".concat(n);R(t,n,{get:function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=e[r];i.apply(e,t)}}})})),t}e.mixin({beforeCreate:t,mounted:function(){gt(this)},beforeUpdate:function(){mt(this)},updated:function(){gt(this)}})}function _t(e,t){if(!e)return t;if(!t)return e;for(var n,r,i,o=L?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],$(t,n)?r!==i&&X(r)&&!be(r)&&X(i)&&!be(i)&&_t(i,r):t[n]=i);return t}function wt(e){S(e)||(e.config.optionMergeStrategies.setup=function(e,t){return function(n,r){return _t(Z(e)?e(n,r)||{}:void 0,Z(t)?t(n,r)||{}:void 0)}},E(e),bt(e))}var xt={install:function(e){return wt(e)}};function Ot(e){return e}function St(e){e=e||r["default"],e&&!e["__composition_api_installed__"]&&e.use(xt)}"undefined"!==typeof window&&window.Vue&&window.Vue.use(xt),St(r["default"]);var Ct=r["default"],kt=(r["default"].version,n("1be7")),Et=n("88b3"),At=null;function Tt(e){return At||(At=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),At(e)}var Dt=null;function Mt(e){Dt||(Dt=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),Dt(e)}function Pt(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function It(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function jt(e,t,n){var r=window.getComputedStyle(e,n||null)||{display:"none"};return r[t]}function Lt(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};var t=e;while(t!==document){if("none"===jt(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var Nt='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',Rt=0,Bt=null;function $t(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=qt.bind(e));var n=e.__resize_listeners__;if(!n)if(e.__resize_listeners__=[],window.ResizeObserver){var r=e.offsetWidth,i=e.offsetHeight,o=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==r||e.offsetHeight!==i))&&Ht(e)})),a=Lt(e),s=a.detached,l=a.rendered;e.__resize_observer_triggered__=!1===s&&!1===l,e.__resize_observer__=o,o.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){Ht(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(Rt||(Bt=Pt(Nt)),Vt(e),e.__resize_rendered__=Lt(e).rendered,window.MutationObserver){var u=new MutationObserver(e.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=u}e.__resize_listeners__.push(t),Rt++}function Ft(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",Ut),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--Rt&&Bt&&Bt.parentNode.removeChild(Bt)}}function zt(e){var t=e.__resize_last__,n=t.width,r=t.height,i=e.offsetWidth,o=e.offsetHeight;return i!==n||o!==r?{width:i,height:o}:null}function qt(){var e=Lt(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(Wt(this),this.addEventListener("scroll",Ut,!0)),this.__resize_rendered__=t,Ht(this))}function Ut(){var e=this;Wt(this),this.__resize_raf__&&Mt(this.__resize_raf__),this.__resize_raf__=Tt((function(){var t=zt(e);t&&(e.__resize_last__=t,Ht(e))}))}function Ht(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function Vt(e){var t=jt(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=It("div",{className:"resize-triggers"}),r=It("div",{className:"resize-expand-trigger"}),i=It("div"),o=It("div",{className:"resize-contract-trigger"});r.appendChild(i),n.appendChild(r),n.appendChild(o),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:i,contract:o},Wt(e),e.addEventListener("scroll",Ut,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function Wt(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,i=t.contract,o=i.scrollWidth,a=i.scrollHeight,s=n.offsetWidth,l=n.offsetHeight,u=n.scrollWidth,c=n.scrollHeight;i.scrollLeft=o,i.scrollTop=a,r.style.width=s+1+"px",r.style.height=l+1+"px",n.scrollLeft=u,n.scrollTop=c}var Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kt.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Gt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Yt(e){return t=Object.create(null),Gt.forEach((function(n){t[n]=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[t].apply(e.value,n)}}(n)})),t;var t}var Xt={autoresize:[Boolean,Object]},Zt=/^on[^a-z]/,Qt=function(e){return Zt.test(e)};function Jt(e,t){var n=be(e)?_e(e):e;return n&&"object"==typeof n&&"value"in n?n.value||t:n||t}var en="ecLoadingOptions",tn={loading:Boolean,loadingOptions:Object},nn=null,rn="x-vue-echarts",on=[],an=[];!function(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var a=on.indexOf(o);-1===a&&(a=on.push(o)-1,an[a]={}),n=an[a]&&an[a][r]?an[a][r]:an[a][r]=s()}else n=s();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function s(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var a="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(a,e),e}}("x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}\n.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}\n",{});var sn=function(){if(null!=nn)return nn;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return nn=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n  __dispose = null;\n\n  disconnectedCallback() {\n    if (this.__dispose) {\n      this.__dispose();\n      this.__dispose = null;\n    }\n  }\n}\n\nif (customElements.get(tag) == null) {\n  customElements.define(tag, EChartsElement);\n}\n")(rn)}catch(e){return nn=!1}return nn=!0}();Ct&&Ct.config.ignoredElements.push(rn);var ln="ecTheme",un="ecInitOptions",cn="ecUpdateOptions",fn=/(^&?~?!?)native:/,dn=Ot({name:"echarts",props:Kt(Kt({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},Xt),tn),emits:{},inheritAttrs:!1,setup:function(e,t){var n=t.attrs,r=Oe(),i=Oe(),o=Oe(),a=Oe(),s=at(ln,null),l=at(un,null),u=at(cn,null),c=we(e),f=c.autoresize,d=c.manualUpdate,h=c.loading,p=c.loadingOptions,g=rt((function(){return a.value||e.option||null})),m=rt((function(){return e.theme||Jt(s,{})})),v=rt((function(){return e.initOptions||Jt(l,{})})),y=rt((function(){return e.updateOptions||Jt(u,{})})),b=rt((function(){return function(e){var t={};for(var n in e)Qt(n)||(t[n]=e[n]);return t}(n)})),_={},w=D().proxy.$listeners,x={};function O(t){if(i.value){var n=o.value=Object(kt["l"])(i.value,m.value,v.value);e.group&&(n.group=e.group),Object.keys(x).forEach((function(e){var t=x[e];if(t){var r=e.toLowerCase();"~"===r.charAt(0)&&(r=r.substring(1),t.__once__=!0);var i=n;if(0===r.indexOf("zr:")&&(i=n.getZr(),r=r.substring(3)),t.__once__){delete t.__once__;var o=t;t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o.apply(void 0,e),i.off(r,t)}}i.on(r,t)}})),f.value?lt((function(){n&&!n.isDisposed()&&n.resize(),r()})):r()}function r(){var e=t||g.value;e&&n.setOption(e,y.value)}}function S(){o.value&&(o.value.dispose(),o.value=void 0)}w?Object.keys(w).forEach((function(e){fn.test(e)?_[e.replace(fn,"$1")]=w[e]:x[e]=w[e]})):Object.keys(n).filter((function(e){return Qt(e)})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);if(0!==t.indexOf("native:"))"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),x[t]=n[e];else{var r="on".concat(t.charAt(7).toUpperCase()).concat(t.slice(8));_[r]=n[e]}}));var C=null;tt(d,(function(t){"function"==typeof C&&(C(),C=null),t||(C=tt((function(){return e.option}),(function(e,t){e&&(o.value?o.value.setOption(e,Kt({notMerge:e!==t},y.value)):O())}),{deep:!0}))}),{immediate:!0}),tt([m,v],(function(){S(),O()}),{deep:!0}),et((function(){e.group&&o.value&&(o.value.group=e.group)}));var k=Yt(o);return function(e,t,n){var r=at(en,{}),i=rt((function(){return Kt(Kt({},Jt(r,{})),null==n?void 0:n.value)}));et((function(){var n=e.value;n&&(t.value?n.showLoading(i.value):n.hideLoading())}))}(o,h,p),function(e,t,n){var r=null;tt([n,e,t],(function(e,t,n){var i=e[0],o=e[1],a=e[2];if(i&&o&&a){var s=!0===a?{}:a,l=s.throttle,u=void 0===l?100:l,c=s.onResize,f=function(){o.resize(),null==c||c()};r=u?Object(Et["c"])(f,u):f,$t(i,r)}n((function(){i&&r&&Ft(i,r)}))}))}(o,f,i),Fe((function(){O()})),ze((function(){sn&&r.value?r.value.__dispose=S:S()})),Kt({chart:o,root:r,inner:i,setOption:function(t,n){e.manualUpdate&&(a.value=t),o.value?o.value.setOption(t,n||{}):O(t)},nonEventAttrs:b,nativeListeners:_},k)},render:function(){var e=Ct?{attrs:this.nonEventAttrs,on:this.nativeListeners}:Kt(Kt({},this.nonEventAttrs),this.nativeListeners);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",ut(rn,e,[ut("div",{ref:"inner",class:"vue-echarts-inner"})])}})},"5c96":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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("a15e")},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 r=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)},i=[];r._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),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=i-o:-1!==t.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&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),r=Number(this.pageCount),i=!1,o=!1;r>e&&(n>e-t&&(i=!0),n<r-t&&(o=!0));var a=[];if(i&&!o)for(var s=r-(e-2),l=s;l<r;l++)a.push(l);else if(!i&&o)for(var u=2;u<e;u++)a.push(u);else if(i&&o)for(var c=Math.floor(e/2)-1,f=n-c;f<=n+c;f++)a.push(f);else for(var d=2;d<r;d++)a.push(d);return this.showPrevMore=i,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,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}var l=s(a,r,i,!1,null,null,null);l.options.__file="packages/pagination/src/pager.vue";var u=l.exports,c=n(37),f=n.n(c),d=n(38),h=n.n(d),p=n(8),g=n.n(p),m=n(4),v=n.n(m),y=n(2),b={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}]}),r={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")},i=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||[],i.forEach((function(e){"->"!==e?a?o.children.push(r[e]):n.children.push(r[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(y["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:f.a,ElOption:h.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:u},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(b.name,b)}},_=b,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 O=n(11),S=n.n(O),C=n(9),k=n.n(C),E=n(3),A=n.n(E),T={name:"ElDialog",mixins:[S.a,A.a,k.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)}},D=T,M=s(D,w,x,!1,null,null,null);M.options.__file="packages/dialog/src/component.vue";var P=M.exports;P.install=function(e){e.component(P.name,P)};var I=P,j=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,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n        "+e._s(t[e.valueKey])+"\n      ")],{item:t})],2)})),0)],1)},L=[];j._withStripped=!0;var N=n(17),R=n.n(N),B=n(10),$=n.n(B),F=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)])},z=[];F._withStripped=!0;var q=n(5),U=n.n(q),H=n(18),V=n.n(H),W={components:{ElScrollbar:V.a},mixins:[U.a,A.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}))}},K=W,G=s(K,F,z,!1,null,null,null);G.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var Y=G.exports,X=n(23),Z=n.n(X),Q={name:"ElAutocomplete",mixins:[A.a,Z()("input"),k.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:g.a,ElAutocompleteSuggestions:Y},directives:{Clickoutside:$.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(y["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"),r=n[e],i=t.scrollTop,o=r.offsetTop;o+r.scrollHeight>i+t.clientHeight&&(t.scrollTop+=r.scrollHeight),o<i&&(t.scrollTop-=r.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=R()(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,j,L,!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,re,ie=te,oe=n(13),ae=n.n(oe),se=n(29),le=n.n(se),ue={name:"ElDropdown",componentName:"ElDropdown",mixins:[A.a,k.a],directives:{Clickoutside:$.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(y["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,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==r?r-1:0:r<i?r+1:i,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,r=this.hide,i=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",r),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},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,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=function(e){t.$emit("click",e),n()},l=null;if(r)l=e("el-button-group",[e("el-button",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,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 u=l[0].data||{},c=u.attrs,f=void 0===c?{}:c;a&&!f.disabled&&(f.disabled=!0,u.attrs=f)}var d=a?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[l,d])}},ce=ue,fe=s(ce,ne,re,!1,null,null,null);fe.options.__file="packages/dropdown/src/dropdown.vue";var de=fe.exports;de.install=function(e){e.component(de.name,de)};var he=de,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:[U.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,ye=s(ve,pe,ge,!1,null,null,null);ye.options.__file="packages/dropdown/src/dropdown-menu.vue";var be=ye.exports;be.install=function(e){e.component(be.name,be)};var _e=be,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 Oe={name:"ElDropdownItem",mixins:[A.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},Se=Oe,Ce=s(Se,we,xe,!1,null,null,null);Ce.options.__file="packages/dropdown/src/dropdown-item.vue";var ke=Ce.exports;ke.install=function(e){e.component(ke.name,ke)};var Ee=ke,Ae=Ae||{};Ae.Utils=Ae.Utils||{},Ae.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(Ae.Utils.attemptFocus(n)||Ae.Utils.focusFirstDescendant(n))return!0}return!1},Ae.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(Ae.Utils.attemptFocus(n)||Ae.Utils.focusLastDescendant(n))return!0}return!1},Ae.Utils.attemptFocus=function(e){if(!Ae.Utils.isFocusable(e))return!1;Ae.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return Ae.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},Ae.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}},Ae.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},Ae.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Te=Ae.Utils,De=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};De.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},De.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},De.prototype.addListeners=function(){var e=this,t=Te.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(r){r.addEventListener("keydown",(function(r){var i=!1;switch(r.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),i=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),i=!0;break;case t.tab:Te.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:i=!0,r.currentTarget.click();break}return i&&(r.preventDefault(),r.stopPropagation()),!1}))}))};var Me=De,Pe=function(e){this.domNode=e,this.submenu=null,this.init()};Pe.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Me(this,e)),this.addListeners()},Pe.prototype.addListeners=function(){var e=this,t=Te.keys;this.domNode.addEventListener("keydown",(function(n){var r=!1;switch(n.keyCode){case t.down:Te.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),r=!0;break;case t.up:Te.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),r=!0;break;case t.tab:Te.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:r=!0,n.currentTarget.click();break}r&&n.preventDefault()}))};var Ie=Pe,je=function(e){this.domNode=e,this.init()};je.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Ie(e)}))};var Le,Ne,Re=je,Be=n(1),$e={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:[A.a,k.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(Be["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(Be["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(Be["hasClass"])(e,"el-menu--collapse")?(Object(Be["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["addClass"])(e,"el-menu--collapse")):(Object(Be["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(Be["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(Be["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),r=n.red,i=n.green,o=n.blue;return t>0?(r*=1-t,i*=1-t,o*=1-t):(r+=(255-r)*t,i+=(255-i)*t,o+=(255-o)*t),"rgb("+Math.round(r)+", "+Math.round(i)+", "+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,r=-1!==this.openedMenus.indexOf(t);r?(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,r=e.indexPath,i=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,r,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=i,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 r=n.indexPath;r.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(r){console.error(r)}},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 Re(this.$el),this.$watch("items",this.updateActiveIndex)}},Fe=$e,ze=s(Fe,Le,Ne,!1,null,null,null);ze.options.__file="packages/menu/src/menu.vue";var qe=ze.exports;qe.install=function(e){e.component(qe.name,qe)};var Ue,He,Ve=qe,We=n(21),Ke=n.n(We),Ge={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:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,popperOptions:U.a.props.popperOptions},data:U.a.data,methods:U.a.methods,beforeDestroy:U.a.beforeDestroy,deactivated:U.a.deactivated},Xe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ge,A.a,Ye],components:{ElCollapseTransition:Ke.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 r=this.rootMenu,i=this.disabled;"click"===r.menuTrigger&&"horizontal"===r.mode||!r.collapse&&"vertical"===r.mode||i||(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,r=this.opened,i=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,u=this.menuTransitionName,c=this.mode,f=this.disabled,d=this.popperClass,h=this.$slots,p=this.isFirstLevel,g=e("transition",{attrs:{name:u}},[e("div",{ref:"menu",directives:[{name:"show",value:r}],class:["el-menu--"+c,d],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||""}},[h.default])])]),m=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:r}],style:{backgroundColor:s.backgroundColor||""}},[h.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":r,"is-disabled":f},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":r},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:[i,o,{backgroundColor:a}]},[h.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?g:m])}},Ze=Xe,Qe=s(Ze,Ue,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 rt=n(26),it=n.n(rt),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ge,A.a],components:{ElTooltip:it.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 ut=lt,ct=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)])},ft=[];ct._withStripped=!0;var dt={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}}},ht=dt,pt=s(ht,ct,ft,!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)},yt=[];vt._withStripped=!0;var bt=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"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=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:r,borderSize:i,boxSizing:n}}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;bt||(bt=document.createElement("textarea"),document.body.appendChild(bt));var r=xt(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;bt.setAttribute("style",s+";"+_t),bt.value=e.value||e.placeholder||"";var l=bt.scrollHeight,u={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),bt.value="";var c=bt.scrollHeight-i;if(null!==t){var f=c*t;"border-box"===a&&(f=f+i+o),l=Math.max(f,l),u.minHeight=f+"px"}if(null!==n){var d=c*n;"border-box"===a&&(d=d+i+o),l=Math.min(d,l)}return u.height=l+"px",bt.parentNode&&bt.parentNode.removeChild(bt),bt=null,u}var St=n(7),Ct=n.n(St),kt=n(19),Et={name:"ElInput",componentName:"ElInput",mixins:[A.a,k.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 Ct()({},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,r=e.maxRows;this.textareaCalcStyle=Ot(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:Ot(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(kt["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,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[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)}},At=Et,Tt=s(At,vt,yt,!1,null,null,null);Tt.options.__file="packages/input/src/input.vue";var Dt=Tt.exports;Dt.install=function(e){e.component(Dt.name,Dt)};var Mt=Dt,Pt=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)},It=[];Pt._withStripped=!0;var jt={bind:function(e,t,n){var r=null,i=void 0,o=Object(y["isMac"])()?100:200,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-i<o&&a(),clearInterval(r),r=null};Object(Be["on"])(e,"mousedown",(function(e){0===e.button&&(i=Date.now(),Object(Be["once"])(document,"mouseup",s),clearInterval(r),r=setInterval(a,o))}))}},Lt={name:"ElInputNumber",mixins:[Z()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:jt},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),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}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,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},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("."),r=0;return-1!==n&&(r=t.length-n-1),r},_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)}}},Nt=Lt,Rt=s(Nt,Pt,It,!1,null,null,null);Rt.options.__file="packages/input-number/src/input-number.vue";var Bt=Rt.exports;Bt.install=function(e){e.component(Bt.name,Bt)};var $t=Bt,Ft=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)])},zt=[];Ft._withStripped=!0;var qt={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)}))}}},Ut=qt,Ht=s(Ut,Ft,zt,!1,null,null,null);Ht.options.__file="packages/radio/src/radio.vue";var Vt=Ht.exports;Vt.install=function(e){e.component(Vt.name,Vt)};var Wt=Vt,Kt=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)},Gt=[];Kt._withStripped=!0;var Yt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Xt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[A.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]",r=this.$el.querySelectorAll(n),i=r.length,o=[].indexOf.call(r,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Yt.LEFT:case Yt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[i-1].click(),a[i-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Yt.RIGHT:case Yt.DOWN:o===i-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,Kt,Gt,!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:[A.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,un=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,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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()])},cn=[];un._withStripped=!0;var fn={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)}}},dn=fn,hn=s(dn,un,cn,!1,null,null,null);hn.options.__file="packages/checkbox/src/checkbox.vue";var pn=hn.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,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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 yn={name:"ElCheckboxButton",mixins:[A.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()}},bn=yn,_n=s(bn,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,On=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=[];On._withStripped=!0;var Cn={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])}}},kn=Cn,En=s(kn,On,Sn,!1,null,null,null);En.options.__file="packages/checkbox/src/checkbox-group.vue";var An=En.exports;An.install=function(e){e.component(An.name,An)};var Tn=An,Dn=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()])},Mn=[];Dn._withStripped=!0;var Pn={name:"ElSwitch",mixins:[Z()("input"),k.a,A.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}},In=Pn,jn=s(In,Dn,Mn,!1,null,null,null);jn.options.__file="packages/switch/src/component.vue";var Ln=jn.exports;Ln.install=function(e){e.component(Ln.name,Ln)};var Nn=Ln,Rn=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)},Bn=[];Rn._withStripped=!0;var $n=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)},Fn=[];$n._withStripped=!0;var zn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[U.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)}},qn=zn,Un=s(qn,$n,Fn,!1,null,null,null);Un.options.__file="packages/select/src/select-dropdown.vue";var Hn=Un.exports,Vn=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)},Wn=[];Vn._withStripped=!0;var Kn="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},Gn={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,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":Kn(e))&&"object"===("undefined"===typeof t?"undefined":Kn(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(y["getValueByPath"])(e,n)===Object(y["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(y["getValueByPath"])(e,n)===Object(y["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(y["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,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Yn=Gn,Xn=s(Yn,Vn,Wn,!1,null,null,null);Xn.options.__file="packages/select/src/option.vue";var Zn=Xn.exports,Qn=n(30),Jn=n.n(Qn),er=n(15),tr=n(27),nr=n.n(tr),rr={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}}},ir={mixins:[A.a,v.a,Z()("reference"),rr],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(y["isIE"])()&&!Object(y["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:V.a},directives:{Clickoutside:$.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(y["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 r=n[n.length-1]||"";this.isOnComposition=!Object(kt["isKorean"])(r)}},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");nr()(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(y["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(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(y["getValueByPath"])(a.value,this.valueKey)===Object(y["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||r||i?"":String(e),u={value:e,currentLabel:l};return this.multiple&&(u.hitState=!1),u},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],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>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 r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),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 r=this.valueKey,i=-1;return e.some((function(e,n){return Object(y["getValueByPath"])(e,r)===Object(y["getValueByPath"])(t,r)&&(i=n,!0)})),i}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 r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),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 r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(y["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=R()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=R()(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(er["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.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(er["removeResizeListener"])(this.$el,this.handleResize)}},or=ir,ar=s(or,Rn,Bn,!1,null,null,null);ar.options.__file="packages/select/src/select.vue";var sr=ar.exports;sr.install=function(e){e.component(sr.name,sr)};var lr=sr;Zn.install=function(e){e.component(Zn.name,Zn)};var ur=Zn,cr=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)])])},fr=[];cr._withStripped=!0;var dr={mixins:[A.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)}},hr=dr,pr=s(hr,cr,fr,!1,null,null,null);pr.options.__file="packages/select/src/option-group.vue";var gr=pr.exports;gr.install=function(e){e.component(gr.name,gr)};var mr=gr,vr=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()])},yr=[];vr._withStripped=!0;var br={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)}}},_r=br,wr=s(_r,vr,yr,!1,null,null,null);wr.options.__file="packages/button/src/button.vue";var xr=wr.exports;xr.install=function(e){e.component(xr.name,xr)};var Or=xr,Sr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},Cr=[];Sr._withStripped=!0;var kr={name:"ElButtonGroup"},Er=kr,Ar=s(Er,Sr,Cr,!1,null,null,null);Ar.options.__file="packages/button/src/button-group.vue";var Tr=Ar.exports;Tr.install=function(e){e.component(Tr.name,Tr)};var Dr=Tr,Mr=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"})])},Pr=[];Mr._withStripped=!0;var Ir=n(14),jr=n.n(Ir),Lr=n(36),Nr=n(39),Rr=n.n(Nr),Br="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,$r=function(e,t){e&&e.addEventListener&&e.addEventListener(Br?"DOMMouseScroll":"mousewheel",(function(e){var n=Rr()(e);t&&t.apply(this,[e,n])}))},Fr={bind:function(e,t){$r(e,t.value)}},zr=n(6),qr=n.n(zr),Ur="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},Hr=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Vr=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":Ur(e))},Wr=function(e,t,n,r,i){if(!t&&!r&&(!i||Array.isArray(i)&&!i.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=r?null:function(n,r){return i?(Array.isArray(i)||(i=[i]),i.map((function(t){return"string"===typeof t?Object(y["getValueByPath"])(n,t):t(n,r,e)}))):("$key"!==t&&Vr(n)&&"$value"in n&&(n=n.$value),[Vr(n)?Object(y["getValueByPath"])(n,t):n])},a=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;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 r=a(e,t);return r||(r=e.index-t.index),r*n})).map((function(e){return e.value}))},Kr=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Gr=function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},Yr=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?Kr(e,n[0]):null},Xr=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("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof t)return t.call(null,e)},Zr=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[Xr(e,t)]={row:e,index:r}})),n};function Qr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Jr(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(Qr(t,r)){var i=t[r];"undefined"!==typeof i&&(n[r]=i)}return n}function ei(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function ti(e){return"undefined"!==typeof e&&(e=ei(e),isNaN(e)&&(e=80)),e}function ni(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ri(){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 ii(e,t,n){var r=!1,i=e.indexOf(t),o=-1!==i,a=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function oi(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[r])t(e,null,s+1);else{var a=e[n];i(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var a=e[n];i(a)||o(e,a,0)}}))}var ai=function(e,t){var n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},si={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,i=e.defaultExpandAll,o=e.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=Zr(o,r);this.states.expandRows=n.reduce((function(e,t){var n=Xr(t,r),i=a[n];return i&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=ii(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,r=t.rowKey,i=Zr(n,r);this.states.expandRows=e.reduce((function(e,t){var n=i[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,i=t.rowKey;if(i){var o=Zr(r,i);return!!o[Xr(e,i)]}return-1!==r.indexOf(e)}}},li={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,r=void 0===n?[]:n,i=t.rowKey,o=null;i&&(o=Object(y["arrayFind"])(r,(function(t){return Xr(t,i)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,r=t.currentRow;if(e&&e!==r)return t.currentRow=e,void n.$emit("current-change",e,r);!e&&r&&(t.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,r=e._currentRowKey,i=e.data||[],o=e.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=Xr(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},ui=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ci={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,r=e.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(e){if(n[e].length){var i={children:[]};n[e].forEach((function(e){var n=Xr(e,t);i.children.push(n),e[r]&&!o[n]&&(o[n]={children:[]})})),o[e]=i}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,r=t.lazyColumnIdentifier,i=t.rowKey,o=t.lazy,a={};return oi(e,(function(e,t,n){var r=Xr(e,i);Array.isArray(t)?a[r]={children:t.map((function(e){return Xr(e,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,l=i.lazy,u=[],c=function(e,t){var n=a||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=o[t],i=ui({},e[t]);if(i.expanded=c(n,t),i.lazy){var a=n||{},s=a.loaded,l=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;i.loaded=!!l,i.loading=!!d,u.push(t)}r[t]=i}));var f=Object.keys(t);l&&f.length&&u.length&&f.forEach((function(e){var n=o[e],i=t[e].children;if(-1!==u.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=i}else{var a=n||{},s=a.loaded,l=void 0!==s&&s,f=a.loading,d=void 0!==f&&f;r[e]={lazy:!0,loaded:!!l,loading:!!d,expanded:c(n,e),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=Xr(e,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;t="undefined"===typeof t?!a.expanded:t,i[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,r=t.treeData,i=t.rowKey,o=Xr(e,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(e,o,a):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[t].loaded&&(o[t].loading=!0,i(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[t].loading=!1,a[t].loaded=!0,a[t].expanded=!0,n.length&&r.$set(o,t,n),r.table.$emit("expand-change",e,!0)})))}}},fi=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?Wr(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},di=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},hi=qr.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:[si,li,ci],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 r=di(n),i=di(e.fixedColumns),o=di(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=i.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(i).concat(r).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,r=e.selection,i=void 0;if(n){i=[];var o=Zr(r,n),a=Zr(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(e){return-1===t.indexOf(e)}));if(i.length){var l=r.filter((function(e){return-1===i.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],r=ii(this.states.selection,e,t);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,e),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.selection,i=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||r.length);e.isAllSelected=i;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&ii(r,t,i)&&(o=!0):ii(r,t,i)&&(o=!0)})),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.data,i=Zr(t,n);r.forEach((function(e){var r=Xr(e,n),o=i[r];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,i=e.data||[];if(0!==i.length){var o=void 0;n&&(o=Zr(t,n));for(var a=function(e){return o?!!o[Xr(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,u=0,c=i.length;u<c;u++){var f=i[u],d=r&&r.call(null,f,u);if(a(f))l++;else if(!r||d){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,r={};return e.forEach((function(e){n.filters[e.id]=t,r[e.columnKey||e.id]=t})),r},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,r=t.filters,i=n;Object.keys(r).forEach((function(n){var r=t.filters[n];if(r&&0!==r.length){var o=Kr(e.states,n);o&&o.filterMethod&&(i=i.filter((function(e){return r.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=i},execSort:function(){var e=this.states;e.data=fi(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=Ct()(a,r.filterPanels)),i&&(a=Ct()(a,i.filterPanels)),o&&(a=Ct()(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 Gr(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)}}});hi.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,r){var i=e._columns;r&&(i=r.children,i||(i=r.children=[])),"undefined"!==typeof n?i.splice(n,0,t):i.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 r=e._columns;n&&(r=n.children,r||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order,i=t.init;if(n){var o=Object(y["arrayFind"])(e.columns,(function(e){return e.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,i=e.sortOrder;null===i&&(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:r,order:i}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,i=t.silent,o=this.updateFilters(n,r);this.execQuery(),i||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)}},hi.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t[e].apply(this,[this.states].concat(r))},hi.prototype.updateTableScrollY=function(){qr.a.nextTick(this.table.updateScrollY)};var pi=hi;function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new pi;return n.table=e,n.toggleAllSelection=R()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function mi(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],i=void 0;"string"===typeof r?i=function(){return this.store.states[r]}:"function"===typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(t[n]=i)})),t}var vi=n(31),yi=n.n(vi);function bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _i=function(){function e(t){for(var n in bi(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=yi()(),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"),r=this.scrollY,i=n.offsetHeight>this.bodyHeight;return this.scrollY=i,r!==i}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!qr.a.prototype.$isServer){var r=this.table.$el;if(e=ni(e),this.height=e,!r&&(e||0===e))return qr.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(r.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 qr.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,i=t.footerWrapper;if(this.appendHeight=r?r.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 qr.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-u+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var c=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(c?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(!qr.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(e){return"number"!==typeof e.width}));if(r.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){r.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===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=i.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=a/s,u=0;i.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);u+=n,e.realWidth=(e.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-u}}else this.scrollX=!0,i.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.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 c=this.store.states.fixedColumns;if(c.length>0){var f=0;c.forEach((function(e){f+=e.realWidth||e.width})),this.fixedWidth=f}var d=this.store.states.rightFixedColumns;if(d.length>0){var h=0;d.forEach((function(e){h+=e.realWidth||e.width})),this.rightFixedWidth=h}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}(),wi=_i,xi={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(),r={};n.forEach((function(e){r[e.id]=e}));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=a.getAttribute("name"),l=r[s];l&&a.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=t.length;n<r;n++){var i=t[n];i.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"}}}},Oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:jr.a},render:function(){var e=this,t=arguments[0],n=this.columns,r=this.row,i=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,l=this.treeRowData,u=this.treeIndent,c=this.columnsHidden,f=void 0===c?[]:c,d=this.isSelected,h=this.isExpanded;return t("tr",[n.map((function(c,p){var g=e.getSpan(r,c,i,p),m=g.rowspan,v=g.colspan;if(!m||!v)return null;var y=Oi({},c);y.realWidth=e.getColspanRealWidth(n,v,p);var b={store:o,isSelected:d,isExpanded:h,_self:a,column:y,row:r,$index:i};return p===s&&l&&(b.treeNode={indent:l.level*u,level:l.level},"boolean"===typeof l.expanded&&(b.treeNode.expanded=l.expanded,"loading"in l&&(b.treeNode.loading=l.loading),"noLazyChildren"in l&&(b.treeNode.noLazyChildren=l.noLazyChildren))),t("td",{style:e.getCellStyle(i,p,r,c),class:e.getCellClass(i,p,r,c),attrs:{rowspan:m,colspan:v},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,r)},mouseleave:e.handleCellMouseLeave}},[c.renderCell.call(e._renderProxy,e.$createElement,b,f[p])])}))])}},Ci="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},ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ei={name:"ElTableBody",mixins:[xi],components:{ElCheckbox:jr.a,ElTooltip:it.a,TableRow:Si},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:ki({table:function(){return this.$parent}},mi({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(y["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 r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[t],o=r[e];i&&Object(Be["removeClass"])(i,"hover-row"),o&&Object(Be["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=R()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Xr(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,r){var i=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Ci(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,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=this.store.states.selection,r=["el-table__row"];if(this.table.highlightCurrentRow&&e===this.store.states.currentRow&&r.push("current-row"),this.table.highlightSelectionRow)for(var i=0;i<n.length;i++)ai(e,n[i])&&r.push("selection-row");this.stripe&&t%2===1&&r.push("el-table__row--striped");var o=this.table.rowClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&r.push("expanded"),r},getCellStyle:function(e,t,n,r){var i=this.table.cellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getCellClass:function(e,t,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(t)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var r=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return r.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,r=Hr(e);if(r){var i=Yr(n,r),o=n.hoverState={cell:r,column:i,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(Be["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,u=(parseInt(Object(Be["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(Be["getStyle"])(a,"paddingRight"),10)||0);if((l+u>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var c=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,c.referenceElm=r,c.$refs.popper&&(c.$refs.popper.style.display="none"),c.doDestroy(),c.setExpectedState(!0),this.activateTooltip(c)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=Hr(e);if(n){var r=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",r.row,r.column,r.cell,e)}},handleMouseEnter:R()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:R()(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 r=this.table,i=Hr(e),o=void 0;i&&(o=Yr(r,i),o&&r.$emit("cell-"+n,t,o,i,e)),r.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=this.getRowClass(e,t),u=!0;n&&(l.push("el-table__row--level-"+n.level),u=n.display);var c=u?null:{display:"none"};return i(Si,{style:[c,this.getRowStyle(e,t)],class:l,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.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,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,l=s.treeData,u=s.lazyTreeNodeMap,c=s.childrenColumnName,f=s.rowKey;if(this.hasExpandColumn&&o(e)){var d=this.table.renderExpanded,h=this.rowRender(e,t);return d?[[h,r("tr",{key:"expanded-row__"+h.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[d(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),h)}if(Object.keys(l).length){a();var p=Xr(e,f),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 y=0,b=function e(r,i){r&&r.length&&i&&r.forEach((function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=Xr(r,f);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=ki({},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)),y++,v.push(n.rowRender(r,t+y,o)),g){var s=u[a]||r[c];e(s,g)}}))};g.display=!0;var _=u[p]||e[c];b(_,g)}return v}return this.rowRender(e,t)}}},Ai=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)])])},Ti=[];Ai._withStripped=!0;var Di=[];!qr.a.prototype.$isServer&&document.addEventListener("click",(function(e){Di.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Mi={open:function(e){e&&Di.push(e)},close:function(e){var t=Di.indexOf(e);-1!==t&&Di.splice(e,1)}},Pi=n(32),Ii=n.n(Pi),ji={name:"ElTableFilterPanel",mixins:[U.a,v.a],directives:{Clickoutside:$.a},components:{ElCheckbox:jr.a,ElCheckboxGroup:Ii.a,ElScrollbar:V.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?Mi.open(e):Mi.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<O["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=O["PopupManager"].nextZIndex())}}},Li=ji,Ni=s(Li,Ai,Ti,!1,null,null,null);Ni.options.__file="packages/table/src/filter-panel.vue";var Ri=Ni.exports,Bi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i=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},Fi=function(e){var t=1,n=function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var i=0;n.children.forEach((function(t){e(t,n),i+=t.colSpan})),n.colSpan=i}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var r=[],i=0;i<t;i++)r.push([]);var o=$i(e);return o.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r},zi={name:"ElTableHeader",mixins:[xi],render:function(e){var t=this,n=this.store.states.originColumns,r=Fi(n,this.columns),i=r.length>1;return i&&(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":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map((function(i,o){return e("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,i)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,i)},click:function(e){return t.handleHeaderClick(e,i)},contextmenu:function(e){return t.handleHeaderContextMenu(e,i)}},style:t.getHeaderCellStyle(r,o,n,i),class:t.getHeaderCellClass(r,o,n,i),key:i.id},[e("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(t._renderProxy,e,{column:i,$index:o,store:t.store,_self:t.$parent.$vnode.context}):i.label,i.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,i)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,i,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,i,"descending")}}})]):"",i.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,i)}}},[e("i",{class:["el-icon-arrow-down",i.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:jr.a},computed:Bi({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mi({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,r=t.order,i=!0;e.store.commit("sort",{prop:n,order:r,init:i})}))},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,r=0;r<e;r++)n+=t[r].colSpan;var i=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<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,r){var i=this.table.headerCellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(Be["hasClass"])(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new qr.a(Ri),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=i,o.cell=r,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 r=this.$parent,i=r.$el,o=i.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),l=s.left-o+30;Object(Be["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var u=r.$refs.resizeProxy;u.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var c=function(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;u.style.left=Math.max(l,r)+"px"},f=function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,l=o.startLeft,f=parseInt(u.style.left,10),d=f-s;t.width=t.realWidth=d,r.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(Be["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",f)}},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 r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-e.pageX<8?(i.cursor="col-resize",Object(Be["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(Be["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 r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();var r=t.order===n?null:n||this.toggleOrder(t),i=e.target;while(i&&"TH"!==i.tagName)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(Be["hasClass"])(i,"noclick"))Object(Be["removeClass"])(i,"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=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},qi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui={name:"ElTableFooter",mixins:[xi],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,r){if(0!==r){var i=t.store.states.data.map((function(t){return Number(t[e.property])})),o=[],a=!0;i.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[r]=a?"":i.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[r]=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(r,i){return e("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(t.getRowClasses(r,i),["el-table__cell"])},[e("div",{class:["cell",r.labelClassName]},[n[i]])])})),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:qi({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},mi({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 r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<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}}},Hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vi=1,Wi={name:"ElTable",mixins:[v.a,k.a],directives:{Mousewheel:Fr},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,highlightSelectionRow:{type:Boolean,default:!1},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:zi,TableFooter:Ui,TableBody:Ei,ElCheckbox:jr.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 r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&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,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,u=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),u&&(u.scrollTop=n);var c=i-r-1;this.scrollPosition=t>=c?"right":0===t?"left":"middle"},throttleSyncPostion:Object(Lr["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(er["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(er["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,i=n.height,o=t.offsetWidth;r!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==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:Hi({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,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,i=e.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=ni(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=ni(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}}},mi({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_"+Vi++,this.debouncedUpdateLayout=Object(Lr["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,r=e.children,i=void 0===r?"children":r;this.store=gi(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i});var o=new wi({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"}}},Ki=Wi,Gi=s(Ki,Mr,Pr,!1,null,null,null);Gi.options.__file="packages/table/src/table.vue";var Yi=Gi.exports;Yi.install=function(e){e.component(Yi.name,Yi)};var Xi=Yi,Zi={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:""}},Qi={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,r=t.column,i=t.isSelected,o=t.store,a=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:i,disabled:!!r.selectable&&!r.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,r=t.column,i=n+1,o=r.index;return"number"===typeof o?i=n+o:"function"===typeof o&&(i=o(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,r=t.store,i=t.isExpanded,o=["el-table__expand-icon"];i&&o.push("el-table__expand-icon--expanded");var a=function(e){e.stopPropagation(),r.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 Ji(e,t){var n=t.row,r=t.column,i=t.$index,o=r.property,a=o&&Object(y["getPropByPath"])(n,o).v;return r&&r.formatter?r.formatter(n,r,a,i):a}function eo(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var o=[],a=function(e){e.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!==typeof r.expanded||r.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];r.loading&&(l=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:l})]))}return o}var to=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no=1,ro={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 ei(this.width)},realMinWidth:function(){return ti(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),r=0;r<t;r++)n[r]=arguments[r];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=Qi[t]||{};return Object.keys(n).forEach((function(t){var r=n[t];void 0!==r&&(e[t]="className"===t?e[t]+" "+r:r)})),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,r){var i=t.$scopedSlots.header;return i?i(r):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||Ji,e.renderCell=function(r,i){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(i):n(r,i);var a=eo(r,i),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("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"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:jr.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_"+no++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=to({},Zi[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}),i=["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(i,o,a,s);l=Jr(r,l);var u=ri(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=u(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,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,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(ro.name,ro)}},io=ro,oo=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()])},ao=[];oo._withStripped=!0;var so=n(0),lo={props:{appendToBody:U.a.props.appendToBody,offset:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,arrowOffset:U.a.props.arrowOffset,transformOrigin:U.a.props.transformOrigin},methods:U.a.methods,data:function(){return Ct()({visibleArrow:!0},U.a.data)},beforeDestroy:U.a.beforeDestroy},uo={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"],fo=function(e,t){return"timestamp"===t?e.getTime():Object(so["formatDate"])(e,t)},ho=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(so["parseDate"])(e,t)},po=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[fo(n,t),fo(r,t)]}return""},go=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],i=e[1];return[ho(r,t),ho(i,t)]}return[]},mo={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(so["getWeekNumber"])(e),r=e.getMonth(),i=new Date(e);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(so["formatDate"])(i,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(e,t){return mo.date.parser(e,t)}},date:{formatter:fo,parser:ho},datetime:{formatter:fo,parser:ho},daterange:{formatter:po,parser:go},monthrange:{formatter:po,parser:go},datetimerange:{formatter:po,parser:go},timerange:{formatter:po,parser:go},time:{formatter:fo,parser:ho},month:{formatter:fo,parser:ho},year:{formatter:fo,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 fo(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 fo(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 fo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}}},vo={left:"bottom-start",center:"bottom",right:"bottom-end"},yo=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var i=(mo[n]||mo["default"]).parser,o=t||uo[n];return i(e,o,r)},bo=function(e,t,n){if(!e)return null;var r=(mo[n]||mo["default"]).formatter,i=t||uo[n];return r(e,i)},_o=function(e,t){var n=function(e,t){var n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},r=e instanceof Array,i=t instanceof Array;return r&&i?e.length===t.length&&e.every((function(e,r){return n(e,t[r])})):!r&&!i&&n(e,t)},wo=function(e){return"string"===typeof e||e instanceof String},xo=function(e){return null===e||void 0===e||wo(e)||Array.isArray(e)&&2===e.length&&e.every(wo)},Oo={mixins:[A.a,lo],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:xo},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:xo},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:$.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){_o(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(so["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(so["isDateObject"]);return e?this.value:this.valueFormat?yo(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=vo[this.align]||vo.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(so["isDateObject"])(e)||Array.isArray(e)&&e.every(so["isDateObject"]);return this.valueFormat&&!t&&yo(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(so["isDateObject"])(e)||Array.isArray(e)&&e.every(so["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 yo(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=yo(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 qr.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,r=mo.datetimerange.parser,i=uo.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return r(t,i,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,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(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){_o(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);_o(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},So=Oo,Co=s(So,oo,ao,!1,null,null,null);Co.options.__file="packages/date-picker/src/picker.vue";var ko=Co.exports,Eo=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,r){return n("button",{key:r,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)])])},Ao=[];Eo._withStripped=!0;var To=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")))])])])])},Do=[];To._withStripped=!0;var Mo=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,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])})),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,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).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,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).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,r){return n("li",{key:r,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,r){return n("li",{key:r,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,r){return n("li",{key:r,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)},Po=[];Mo._withStripped=!0;var Io={components:{ElScrollbar:V.a},directives:{repeatClick:jt},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(so["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(so["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(so["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(so["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(so["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,r=t.disabled;r||(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,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=r.length;while(a--&&o)i=(i+e+r.length)%r.length,r[i]||o--;if(r[i])return}else i=(i+e+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),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,r=e<12?" am":" pm";return n&&(r=r.toUpperCase()),r},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},jo=Io,Lo=s(jo,Mo,Po,!1,null,null,null);Lo.options.__file="packages/date-picker/src/basic/time-spinner.vue";var No=Lo.exports,Ro={mixins:[v.a],components:{TimeSpinner:No},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(so["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(so["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(so["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(so["clearMilliseconds"])(Object(so["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 r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.$refs.spinner.scrollDown(i),void e.preventDefault()}},isValidValue:function(e){return Object(so["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"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Bo=Ro,$o=s(Bo,To,Do,!1,null,null,null);$o.options.__file="packages/date-picker/src/panel/time.vue";var Fo=$o.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")])])])},qo=[];zo._withStripped=!0;var Uo=function(e){var t=Object(so["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(so["range"])(t).map((function(e){return Object(so["nextDate"])(n,e)}))},Ho={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(so["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&&Uo(e).every(this.disabledDate),t.current=Object(y["arrayFindIndex"])(Object(y["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(Be["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;if("years"===this.selectionMode){var r=this.value||[],i=Object(y["arrayFindIndex"])(r,(function(e){return e.getFullYear()===Number(n)})),o=i>-1?[].concat(r.slice(0,i),r.slice(i+1)):[].concat(r,[new Date(n)]);this.$emit("pick",o)}else this.$emit("pick",Number(n))}}}},Vo=Ho,Wo=s(Vo,zo,qo,!1,null,null,null);Wo.options.__file="packages/date-picker/src/basic/year-table.vue";var Ko=Wo.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,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,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)])},Yo=[];Go._withStripped=!0;var Xo=function(e,t){var n=Object(so["getDayCountOfMonth"])(e,t),r=new Date(e,t,1);return Object(so["range"])(n).map((function(e){return Object(so["nextDate"])(r,e)}))},Zo=function(e){return new Date(e.getFullYear(),e.getMonth())},Qo=function(e){return"number"===typeof e||"string"===typeof e?Zo(new Date(e)).getTime():e instanceof Date?Zo(e).getTime():NaN},Jo=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},ea={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(so["isDate"])(e)||Array.isArray(e)&&e.every(so["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){Qo(e)!==Qo(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Qo(e)!==Qo(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={},r=this.date.getFullYear(),i=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Xo(r,o).every(this.disabledDate),n.current=Object(y["arrayFindIndex"])(Object(y["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===r&&e.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.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=Qo(e),t=Qo(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,l=a.length;s<l;s++){var u=a[s],c=4*i+s,f=new Date(this.date.getFullYear(),c).getTime();u.inRange=e&&f>=e&&f<=t,u.start=e&&f===e,u.end=t&&f===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,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},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(Be["hasClass"])(t,"disabled")){var n=t.cellIndex,r=t.parentNode.rowIndex,i=4*r+n,o=this.getMonthOfCell(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("months"===this.selectionMode){var a=this.value||[],s=this.date.getFullYear(),l=Object(y["arrayFindIndex"])(a,(function(e){return e.getFullYear()===s&&e.getMonth()===i}))>=0?Jo(a,(function(e){return e.getTime()===o.getTime()})):[].concat(a,[o]);this.$emit("pick",l)}else this.$emit("pick",i)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=Qo(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,u=new Date(e.date.getFullYear(),l).getTime();s.inRange=u>=Qo(e.minDate)&&u<=Qo(e.maxDate),s.start=e.minDate&&u===Qo(e.minDate),s.end=e.maxDate&&u===Qo(e.maxDate);var c=u===i;c&&(s.type="today"),s.text=l;var f=new Date(u);s.disabled="function"===typeof n&&n(f),s.selected=Object(y["arrayFind"])(r,(function(e){return e.getTime()===f.getTime()})),e.$set(a,t,s)},l=0;l<4;l++)s(l);return t}}},ta=ea,na=s(ta,Go,Yo,!1,null,null,null);na.options.__file="packages/date-picker/src/basic/month-table.vue";var ra=na.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,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n          "+e._s(t.text)+"\n        ")])])])})),0)}))],2)])},oa=[];ia._withStripped=!0;var aa=["sun","mon","tue","wed","thu","fri","sat"],sa=function(e){return"number"===typeof e||"string"===typeof e?Object(so["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(so["clearTime"])(e).getTime():NaN},la=function(e,t){var n="function"===typeof t?Object(y["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},ua={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(so["isDate"])(e)||Array.isArray(e)&&e.every(so["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 aa.concat(aa).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(so["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(so["getFirstDayOfMonth"])(t),r=Object(so["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),i=Object(so["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,u=this.disabledDate,c=this.cellClassName,f="dates"===this.selectionMode?Object(y["coerceTruthyValueToArray"])(this.value):[],d=sa(new Date),h=0;h<6;h++){var p=a[h];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(so["getWeekNumber"])(Object(so["nextDate"])(l,7*h+1))}));for(var g=function(t){var a=p[e.showWeekNumber?t+1:t];a||(a={row:h,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*h+t,m=Object(so["nextDate"])(l,g-o).getTime();a.inRange=m>=sa(e.minDate)&&m<=sa(e.maxDate),a.start=e.minDate&&m===sa(e.minDate),a.end=e.maxDate&&m===sa(e.maxDate);var v=m===d;if(v&&(a.type="today"),h>=0&&h<=1){var b=n+o<0?7+n+o:n+o;t+7*h>=b?a.text=s++:(a.text=i-(b-t%7)+1+7*h,a.type="prev-month")}else s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var _=new Date(m);a.disabled="function"===typeof u&&u(_),a.selected=Object(y["arrayFind"])(f,(function(e){return e.getTime()===_.getTime()})),a.customClass="function"===typeof c&&c(_),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,b=this.showWeekNumber?7:6,_=this.isWeekActive(p[v+1]);p[v].inRange=_,p[v].start=_,p[b].inRange=_,p[b].end=_}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){sa(e)!==sa(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){sa(e)!==sa(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,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(so["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(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(so["isDate"])(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(so["prevDate"])(this.value,i);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=sa(e),t=sa(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,i=this.rows,o=0,a=i.length;o<a;o++)for(var s=i[o],l=0,u=s.length;l<u;l++)if(!this.showWeekNumber||0!==l){var c=s[l],f=7*o+l+(this.showWeekNumber?-1:0),d=Object(so["nextDate"])(r,f-this.offsetDay).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("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},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,r="week"===this.selectionMode?1:t.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o=this.getDateOfCell(n,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("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(so["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||[],u=i.selected?la(l,(function(e){return e.getTime()===o.getTime()})):[].concat(l,[o]);this.$emit("pick",u)}}}}}},ca=ua,fa=s(ca,ia,oa,!1,null,null,null);fa.options.__file="packages/date-picker/src/basic/date-table.vue";var da=fa.exports,ha={mixins:[v.a],directives:{Clickoutside:$.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(so["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(so["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},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t(this.timeFormat),n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)if(Array.isArray(e)){var o=e.map((function(e){return t.showTime?Object(so["clearMilliseconds"])(e):Object(so["clearTime"])(e)}));this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(so["clearMilliseconds"])(e):Object(so["clearTime"])(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(so["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(so["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(so["prevYear"])(this.date,10):this.date=Object(so["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(so["nextYear"])(this.date,10):this.date=Object(so["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(so["isDate"])(e)){var r=this.value?Object(so["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(so["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=r,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(so["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):"months"===this.selectionMode?this.emit(e,!0):(this.date=Object(so["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(so["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(so["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(so["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(so["modifyDate"])(this.date,e,0,1),this.emit(this.date)):"years"===this.selectionMode?this.emit(e,!0):(this.date=Object(so["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(so["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,r=31536e6,i=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(i-o.getTime())<=r){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(so["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(so["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(so["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(so["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(so["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Fo,YearTable:Ko,MonthTable:ra,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(so["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(so["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(so["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(so["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(so["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},pa=ha,ga=s(pa,Eo,Ao,!1,null,null,null);ga.options.__file="packages/date-picker/src/panel/date.vue";var ma=ga.exports,va=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,r){return n("button",{key:r,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()])])},ya=[];va._withStripped=!0;var ba=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(so["nextDate"])(new Date(e),1)]:[new Date,Object(so["nextDate"])(new Date,1)]},_a={mixins:[v.a],directives:{Clickoutside:$.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(so["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(so["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(so["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(so["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(so["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(so["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(so["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(so["parseDate"])(Object(so["formatDate"])(t.minDate,e),e),Object(so["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(so["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(so["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(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=t===r&&n===i?Object(so["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(so["nextMonth"])(this.leftDate);else this.leftDate=ba(this.defaultValue)[0],this.rightDate=Object(so["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],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(so["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ba(this.defaultValue)[0],this.rightDate=Object(so["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(so["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(so["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))):(this.maxDate=Object(so["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(so["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(so["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(so["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(so["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 r=Object(so["parseDate"])(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(so["modifyTime"])(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(so["modifyTime"])(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(so["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(so["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(so["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],r=this.defaultTime||[],i=Object(so["modifyWithTimeString"])(e.minDate,r[0]),o=Object(so["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),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(so["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(so["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(so["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(so["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(so["nextYear"])(this.rightDate):(this.leftDate=Object(so["nextYear"])(this.leftDate),this.rightDate=Object(so["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(so["nextMonth"])(this.rightDate):(this.leftDate=Object(so["nextMonth"])(this.leftDate),this.rightDate=Object(so["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(so["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(so["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(so["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(so["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(so["isDate"])(e[0])&&Object(so["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(so["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Fo,DateTable:da,ElInput:g.a,ElButton:ae.a}},wa=_a,xa=s(wa,va,ya,!1,null,null,null);xa.options.__file="packages/date-picker/src/panel/date-range.vue";var Oa=xa.exports,Sa=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,r){return n("button",{key:r,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)])])},Ca=[];Sa._withStripped=!0;var ka=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(so["nextMonth"])(new Date(e))]:[new Date,Object(so["nextMonth"])(new Date)]},Ea={mixins:[v.a],directives:{Clickoutside:$.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(so["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(so["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(so["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(so["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(so["nextYear"])(this.leftDate);else this.leftDate=ka(this.defaultValue)[0],this.rightDate=Object(so["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],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(so["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ka(this.defaultValue)[0],this.rightDate=Object(so["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],r=this.defaultTime||[],i=Object(so["modifyWithTimeString"])(e.minDate,r[0]),o=Object(so["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(so["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(so["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(so["nextYear"])(this.leftDate)),this.rightDate=Object(so["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(so["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(so["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(so["isDate"])(e[0])&&Object(so["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(so["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(so["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:ra,ElInput:g.a,ElButton:ae.a}},Aa=Ea,Ta=s(Aa,Sa,Ca,!1,null,null,null);Ta.options.__file="packages/date-picker/src/panel/month-range.vue";var Da=Ta.exports,Ma=function(e){return"daterange"===e||"datetimerange"===e?Oa:"monthrange"===e?Da:ma},Pa={mixins:[ko],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Ma(e),this.mountPicker()):this.panel=Ma(e)}},created:function(){this.panel=Ma(this.type)},install:function(e){e.component(Pa.name,Pa)}},Ia=Pa,ja=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)])},La=[];ja._withStripped=!0;var Na=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),r=parseInt(t[1],10);return{hours:n,minutes:r}}return null},Ra=function(e,t){var n=Na(e),r=Na(t),i=n.minutes+60*n.hours,o=r.minutes+60*r.hours;return i===o?0:i>o?1:-1},Ba=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},$a=function(e,t){var n=Na(e),r=Na(t),i={hours:n.hours,minutes:n.minutes};return i.minutes+=r.minutes,i.hours+=r.hours,i.hours+=Math.floor(i.minutes/60),i.minutes=i.minutes%60,Ba(i)},Fa={components:{ElScrollbar:V.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");nr()(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),r=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(r)}))},scrollDown:function(e){var t=this.items,n=t.length,r=t.length,i=t.map((function(e){return e.value})).indexOf(this.value);while(r--)if(i=(i+e+n)%n,!t[i].disabled)return void this.$emit("pick",t[i].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},r=n[t.toString()];return this.scrollDown(r),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,r=[];if(e&&t&&n){var i=e;while(Ra(i,t)<=0)r.push({value:i,disabled:Ra(i,this.minTime||"-1:-1")<=0||Ra(i,this.maxTime||"100:100")>=0}),i=$a(i,n)}return r}}},za=Fa,qa=s(za,ja,La,!1,null,null,null);qa.options.__file="packages/date-picker/src/panel/time-select.vue";var Ua=qa.exports,Ha={mixins:[ko],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=Ua},install:function(e){e.component(Ha.name,Ha)}},Va=Ha,Wa=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")))])])])])},Ka=[];Wa._withStripped=!0;var Ga=Object(so["parseDate"])("00:00:00","HH:mm:ss"),Ya=Object(so["parseDate"])("23:59:59","HH:mm:ss"),Xa=function(e){return Object(so["modifyDate"])(Ga,e.getFullYear(),e.getMonth(),e.getDate())},Za=function(e){return Object(so["modifyDate"])(Ya,e.getFullYear(),e.getMonth(),e.getDate())},Qa=function(e,t){return new Date(Math.min(e.getTime()+t,Za(e).getTime()))},Ja={mixins:[v.a],components:{TimeSpinner:No},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=Qa(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Qa(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(so["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(so["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Xa(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Za(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(so["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(so["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"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length,o=t.length/2;i<o?this.$refs.minSpinner.emitSelectRange(n[i]):this.$refs.maxSpinner.emitSelectRange(n[i-o])},isValidValue:function(e){return Array.isArray(e)&&Object(so["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(so["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 r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.spinner.scrollDown(i),void e.preventDefault()}}}},es=Ja,ts=s(es,Wa,Ka,!1,null,null,null);ts.options.__file="packages/date-picker/src/panel/time-range.vue";var ns=ts.exports,rs={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?ns:Fo,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?ns:Fo)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?ns:Fo},install:function(e){e.component(rs.name,rs)}},is=rs,os=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)},as=[];os._withStripped=!0;var ss={name:"ElPopover",mixins:[U.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(y["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(Be["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(Be["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(Be["on"])(n,"focusin",this.handleFocus),Object(Be["on"])(t,"focusout",this.handleBlur),Object(Be["on"])(n,"focusout",this.handleBlur)),Object(Be["on"])(t,"keydown",this.handleKeydown),Object(Be["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(Be["on"])(t,"click",this.doToggle),Object(Be["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(Be["on"])(t,"mouseenter",this.handleMouseEnter),Object(Be["on"])(n,"mouseenter",this.handleMouseEnter),Object(Be["on"])(t,"mouseleave",this.handleMouseLeave),Object(Be["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(Be["on"])(t,"focusin",this.doShow),Object(Be["on"])(t,"focusout",this.doClose)):(Object(Be["on"])(t,"mousedown",this.doShow),Object(Be["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(Be["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(Be["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(Be["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(Be["off"])(e,"click",this.doToggle),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"focusin",this.doShow),Object(Be["off"])(e,"focusout",this.doClose),Object(Be["off"])(e,"mousedown",this.doShow),Object(Be["off"])(e,"mouseup",this.doClose),Object(Be["off"])(e,"mouseleave",this.handleMouseLeave),Object(Be["off"])(e,"mouseenter",this.handleMouseEnter),Object(Be["off"])(document,"click",this.handleDocumentClick)}},ls=ss,us=s(ls,os,as,!1,null,null,null);us.options.__file="packages/popover/src/main.vue";var cs=us.exports,fs=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$refs.reference=e)},ds={bind:function(e,t,n){fs(e,t,n)},inserted:function(e,t,n){fs(e,t,n)}};qr.a.directive("popover",ds),cs.install=function(e){e.directive("popover",ds),e.component(cs.name,cs)},cs.directive=ds;var hs=cs,ps={name:"ElTooltip",mixins:[U.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(y["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new qr.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=R()(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 r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.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(Be["on"])(this.referenceElm,"mouseenter",this.show),Object(Be["on"])(this.referenceElm,"mouseleave",this.hide),Object(Be["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(Be["on"])(this.referenceElm,"blur",this.handleBlur),Object(Be["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(Be["addClass"])(this.referenceElm,"focusing"):Object(Be["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(Be["off"])(e,"mouseenter",this.show),Object(Be["off"])(e,"mouseleave",this.hide),Object(Be["off"])(e,"focus",this.handleFocus),Object(Be["off"])(e,"blur",this.handleBlur),Object(Be["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(ps.name,ps)}},gs=ps,ms=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)])])])},vs=[];ms._withStripped=!0;var ys=n(12),bs=n.n(ys),_s=n(40),ws=n.n(_s),xs=void 0,Os={success:"success",info:"info",warning:"warning",error:"error"},Ss={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&&Os[e]?"el-icon-"+Os[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(),xs.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(ys["t"])("el.messagebox.error"),Object(Be["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(ys["t"])("el.messagebox.error"),Object(Be["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(Be["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(Be["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,xs=new ws.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(Be["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(){xs.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}}},Cs=Ss,ks=s(Cs,ms,vs,!1,null,null,null);ks.options.__file="packages/message-box/src/main.vue";var Es=ks.exports,As=n(22),Ts="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},Ds={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},Ms=qr.a.extend(Es),Ps=void 0,Is=void 0,js=[],Ls=function(e){if(Ps){var t=Ps.callback;"function"===typeof t&&(Is.showInput?t(Is.inputValue,e):t(e)),Ps.resolve&&("confirm"===e?Is.showInput?Ps.resolve({value:Is.inputValue,action:e}):Ps.resolve(e):!Ps.reject||"cancel"!==e&&"close"!==e||Ps.reject(e))}},Ns=function(){Is=new Ms({el:document.createElement("div")}),Is.callback=Ls},Rs=function e(){if(Is||Ns(),Is.action="",(!Is.visible||Is.closeTimer)&&js.length>0){Ps=js.shift();var t=Ps.options;for(var n in t)t.hasOwnProperty(n)&&(Is[n]=t[n]);void 0===t.callback&&(Is.callback=Ls);var r=Is.callback;Is.callback=function(t,n){r(t,n),e()},Object(As["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),qr.a.nextTick((function(){Is.visible=!0}))}},Bs=function e(t,n){if(!qr.a.prototype.$isServer){if("string"===typeof t||Object(As["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(r,i){js.push({options:Ct()({},Ds,e.defaults,t),callback:n,resolve:r,reject:i}),Rs()}));js.push({options:Ct()({},Ds,e.defaults,t),callback:n}),Rs()}};Bs.setDefaults=function(e){Bs.defaults=e},Bs.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ts(t))?(n=t,t=""):void 0===t&&(t=""),Bs(Ct()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Bs.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ts(t))?(n=t,t=""):void 0===t&&(t=""),Bs(Ct()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Bs.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ts(t))?(n=t,t=""):void 0===t&&(t=""),Bs(Ct()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Bs.close=function(){Is.doClose(),Is.visible=!1,js=[],Ps=null};var $s=Bs,Fs=$s,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)},qs=[];zs._withStripped=!0;var Us={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")}},Hs=Us,Vs=s(Hs,zs,qs,!1,null,null,null);Vs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Ws=Vs.exports;Ws.install=function(e){e.component(Ws.name,Ws)};var Ks=Ws,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))])])},Ys=[];Gs._withStripped=!0;var Xs={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,r=e.$router;n&&r&&(e.replace?r.replace(n):r.push(n))}))}},Zs=Xs,Qs=s(Zs,Gs,Ys,!1,null,null,null);Qs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Js=Qs.exports;Js.install=function(e){e.component(Js.name,Js)};var el=Js,tl=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)},nl=[];tl._withStripped=!0;var rl={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,r){e?t(e):n(r)}})));var r=!0,i=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(r=!1),o=Ct()({},o,a),"function"===typeof e&&++i===t.fields.length&&e(r,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=rl,ol=s(il,tl,nl,!1,null,null,null);ol.options.__file="packages/form/src/form.vue";var al=ol.exports;al.install=function(e){e.component(al.name,al)};var sl=al,ll=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)},ul=[];ll._withStripped=!0;var cl,fl,dl=n(41),hl=n.n(dl),pl={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,r={};if(n&&"auto"!==n){var i=parseInt(n,10)-this.computedWidth;i&&(r.marginLeft=i+"px")}return e("div",{class:"el-form-item__label-wrap",style:r},[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")}},gl=pl,ml=s(gl,cl,fl,!1,null,null,null);ml.options.__file="packages/form/src/label-wrap.vue";var vl=ml.exports,yl={name:"ElFormItem",componentName:"ElFormItem",mixins:[A.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:vl},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(y["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]:y["noop"];this.validateDisabled=!1;var r=this.getFilteredRule(e);if((!r||0===r.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var i={};r&&r.length>0&&r.forEach((function(e){delete e.trigger})),i[this.prop]=r;var o=new hl.a(i),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(e,r){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,r),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,r=this.prop;-1!==r.indexOf(":")&&(r=r.replace(/:/,"."));var i=Object(y["getPropByPath"])(t,r,!0);this.validateDisabled=!0,Array.isArray(n)?i.o[i.k]=[].concat(this.initialValue):i.o[i.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}:[],r=Object(y["getPropByPath"])(e,this.prop||"");return e=e?r.o[this.prop||""]||r.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 Ct()({},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=yl,_l=s(bl,ll,ul,!1,null,null,null);_l.options.__file="packages/form/src/form-item.vue";var wl=_l.exports;wl.install=function(e){e.component(wl.name,wl)};var xl=wl,Ol=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})},Sl=[];Ol._withStripped=!0;var Cl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,r=0,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===i?"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(y["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){r=s["client"+a(i)];var l=window.getComputedStyle(s);return"width"===i&&e.tabs.length>1&&(r-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===i&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(i)],!0}));var s="translate"+a(o)+"("+n+"px)";return t[i]=r+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},kl=Cl,El=s(kl,Ol,Sl,!1,null,null,null);El.options.__file="packages/tabs/src/tab-bar.vue";var Al=El.exports;function Tl(){}var Dl,Ml,Pl=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Il={name:"TabNav",components:{TabBar:Al},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:Tl},onTabRemove:{type:Function,default:Tl},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"+Pl(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"+Pl(this.sizeName)],t=this.$refs.navScroll["offset"+Pl(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var r=e-n>2*t?n+t:e-t;this.navOffset=r}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),i=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=r?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,l=s;r?(i.left<o.left&&(l=s-(o.left-i.left)),i.right>o.right&&(l=s+i.right-o.right)):(i.top<o.top&&(l=s-(o.top-i.top)),i.bottom>o.bottom&&(l=s+(i.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"+Pl(e)],n=this.$refs.navScroll["offset"+Pl(e)],r=this.navOffset;if(n<t){var i=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=i,this.scrollable.next=i+n<t,t-i<n&&(this.navOffset=t-n)}else this.scrollable=!1,r>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,r=void 0,i=void 0;-1!==[37,38,39,40].indexOf(t)&&(i=e.currentTarget.querySelectorAll("[role=tab]"),r=Array.prototype.indexOf.call(i,e.target),n=37===t||38===t?0===r?i.length-1:r-1:r<i.length-1?r+1:0,i[n].focus(),i[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,r=this.panes,i=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,l=this.navStyle,u=this.scrollable,c=this.scrollNext,f=this.scrollPrev,d=this.changeTab,h=this.setFocus,p=this.removeFocus,g=u?[e("span",{class:["el-tabs__nav-prev",u.prev?"":"is-disabled"],on:{click:f}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",u.next?"":"is-disabled"],on:{click:c}},[e("i",{class:"el-icon-arrow-right"})])]:null,m=this._l(r,(function(n,r){var o,l=n.name||n.index||r,u=n.isClosable||i;n.index=""+r;var c=u?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,f=n.$slots.label||n.label,d=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"]=u,o["is-focus"]=t.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:d},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){h()},blur:function(){p()},click:function(e){p(),a(n,l,e)},keydown:function(e){!u||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[f,c])}));return e("div",{class:["el-tabs__nav-wrap",u?"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:d}},[n?null:e("tab-bar",{attrs:{tabs:r}}),m])])])},mounted:function(){var e=this;Object(er["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(er["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},jl=Il,Ll=s(jl,Dl,Ml,!1,null,null,null);Ll.options.__file="packages/tabs/src/tab-nav.vue";var Nl,Rl,Bl=Ll.exports,$l={name:"ElTabs",components:{TabNav:Bl},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})),r=n.map((function(e){var t=e.componentInstance;return t})),i=!(r.length===this.panes.length&&r.every((function(t,n){return t===e.panes[n]})));(t||i)&&(this.panes=r)}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 r=this.beforeLeave(e,this.currentName);r&&r.then?r.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==r&&n()}else n()}},render:function(e){var t,n=this.type,r=this.handleTabClick,i=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,u=this.addable,c=this.tabPosition,f=this.stretch,d=l||u?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,h={props:{currentName:a,onTabClick:r,onTabRemove:i,editable:l,type:n,panes:s,stretch:f},ref:"nav"},p=e("div",{class:["el-tabs__header","is-"+c]},[d,e("tab-nav",h)]),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--"+c]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==c?[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()}},Fl=$l,zl=s(Fl,Nl,Rl,!1,null,null,null);zl.options.__file="packages/tabs/src/tabs.vue";var ql=zl.exports;ql.install=function(e){e.component(ql.name,ql)};var Ul=ql,Hl=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()},Vl=[];Hl._withStripped=!0;var Wl={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")}},Kl=Wl,Gl=s(Kl,Hl,Vl,!1,null,null,null);Gl.options.__file="packages/tabs/src/tab-pane.vue";var Yl=Gl.exports;Yl.install=function(e){e.component(Yl.name,Yl)};var Xl,Zl,Ql=Yl,Jl={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,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"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])}},eu=Jl,tu=s(eu,Xl,Zl,!1,null,null,null);tu.options.__file="packages/tag/src/tag.vue";var nu=tu.exports;nu.install=function(e){e.component(nu.name,nu)};var ru=nu,iu=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)},ou=[];iu._withStripped=!0;var au="$treeNodeId",su=function(e,t){t&&!t[au]&&Object.defineProperty(t,au,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},lu=function(e,t){return e?t[e]:t[au]},uu=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},cu=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var du=function(e){for(var t=!0,n=!0,r=!0,i=0,o=e.length;i<o;i++){var a=e[i];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(r=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},hu=function e(t){if(0!==t.childNodes.length&&!t.loading){var n=du(t.childNodes),r=n.all,i=n.none,o=n.half;r?(t.checked=!0,t.indeterminate=!1):o?(t.checked=!1,t.indeterminate=!0):i&&(t.checked=!1,t.indeterminate=!1);var a=t.parent;a&&0!==a.level&&(t.store.checkStrictly||e(a))}},pu=function(e,t){var n=e.store.props,r=e.data||{},i=n[t];if("function"===typeof i)return i(r,e);if("string"===typeof i)return r[i];if("undefined"===typeof i){var o=r[t];return void 0===o?"":o}},gu=0,mu=function(){function e(t){for(var n in fu(this,e),this.id=gu++,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 r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);var i=r.props;if(i&&"undefined"!==typeof i.isLeaf){var o=pu(this,"isLeaf");"boolean"===typeof o&&(this.isLeafByUser=o)}if(!0!==r.lazy&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||su(this,this.data),this.data){var a=r.defaultExpandedKeys,s=r.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,r.autoExpandParent),s&&void 0!==r.currentNodeKey&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||su(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:pu(this,"children")||[];for(var n=0,r=t.length;n<r;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(r){for(var i=r.childNodes||[],o=!1,a=0,s=i.length;a<s;a++){var l=i[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,r){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!r){var i=this.getChildren(!0)||[];-1===i.indexOf(t.data)&&("undefined"===typeof n||n<0?i.push(t.data):i.splice(n,0,t.data))}Ct()(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 r=this.childNodes.indexOf(e);r>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(r,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,r=function(){if(t){var r=n.parent;while(r.level>0)r.expanded=!0,r=r.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||hu(n),r())})):r()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(Ct()({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,r){var i=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=du(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=i.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];r=r||!1!==e;var l=s.disabled?s.checked:r;s.setChecked(l,t,!0,r)}var u=du(n),c=u.half,f=u.all;f||(i.checked=f,i.indeterminate=c)}};if(this.shouldLoadData())return void this.loadData((function(){l(),hu(i)}),{checked:!1!==e});l()}var u=this.parent;u&&0!==u.level&&(n||hu(u))}},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,r="children";return n&&(r=n.children||"children"),void 0===t[r]&&(t[r]=null),e&&!t[r]&&(t[r]=[]),t[r]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),r={},i=[];t.forEach((function(e,t){var o=e[au],a=!!o&&Object(y["arrayFindIndex"])(n,(function(e){return e[au]===o}))>=0;a?r[o]={index:t,data:e}:i.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){r[t[au]]||e.removeChildByData(t)})),i.forEach((function(t){var n=t.index,r=t.data;e.insertChild({data:r},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 r=function(r){t.childNodes=[],t.doCreateChildren(r,n),t.loaded=!0,t.loading=!1,t.updateLeafState(),e&&e.call(t,r)};this.store.load(this,r)}},cu(e,[{key:"label",get:function(){return pu(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return pu(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}(),vu=mu,yu="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 bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var _u=function(){function e(t){var n=this;for(var r in bu(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(r)&&(this[r]=t[r]);if(this.nodesMap={},this.root=new vu({data:this.data,store:this}),this.lazy&&this.load){var i=this.load;i(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,r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),r(n)})),!i.visible&&o.length){var a=!0;a=!o.some((function(e){return e.visible})),i.root?i.root.visible=!1===a:i.visible=!1===a}e&&(!i.visible||i.isLeaf||n||i.expand())};r(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 vu)return e;var t="object"!==("undefined"===typeof e?"undefined":yu(e))?e:lu(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 r=n[t];r&&r.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=[],r=function r(i){var o=i.root?i.root.childNodes:i.childNodes;o.forEach((function(i){(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&n.push(i.data),r(i)}))};return r(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 r=n.root?n.root.childNodes:n.childNodes;r.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 r=n.childNodes,i=r.length-1;i>=0;i--){var o=r[i];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],r=this._getAllNodes().sort((function(e,t){return t.level-e.level})),i=Object.create(null),o=Object.keys(n);r.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=r.length;a<s;a++){var l=r[a],u=l.data[e].toString(),c=o.indexOf(u)>-1;if(c){var f=l.parent;while(f&&f.level>0)i[f.data[e]]=!0,f=f.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&&!i[u]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,r={};e.forEach((function(e){r[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,r)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,r={};e.forEach((function(e){r[e]=!0})),this._setCheckedKeys(n,t,r)},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 r=this.getNode(e);r&&r.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}(),wu=_u,xu=function(){var e=this,t=this,n=t.$createElement,r=t._self._c||n;return r("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)}}},[r("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[r("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?r("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?r("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),r("node-content",{attrs:{node:t.node}})],1),r("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?r("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 r("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)},Ou=[];xu._withStripped=!0;var Su={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[A.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ke.a,ElCheckbox:jr.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,r=this.node,i=r.data,o=r.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:r,data:i,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:r,data:i}):e("span",{class:"el-tree-node__label"},[r.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 lu(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 r=n.props||{},i=r["children"]||"children";this.$watch("node.data."+i,(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()}))}},Cu=Su,ku=s(Cu,xu,Ou,!1,null,null,null);ku.options.__file="packages/tree/src/tree-node.vue";var Eu=ku.exports,Au={name:"ElTree",mixins:[A.a],components:{ElTreeNode:Eu},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(ys["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 lu(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],r=t.parent;while(r&&r!==this.root)n.push(r.data),r=r.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 r=this.treeItemArray.indexOf(t),i=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),i=38===n?0!==r?r-1:0:r<this.treeItemArray.length-1?r+1:0,this.treeItemArray[i].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 wu({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,r){if("function"===typeof e.allowDrag&&!e.allowDrag(r.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(i){}t.draggingNode=r,e.$emit("node-drag-start",r.node,n)})),this.$on("tree-node-drag-over",(function(n,r){var i=uu(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==i&&Object(Be["removeClass"])(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&i){var s=!0,l=!0,u=!0,c=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(a.node,i.node,"prev"),c=l=e.allowDrop(a.node,i.node,"inner"),u=e.allowDrop(a.node,i.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||u)&&o!==i&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,i.node,n)),(s||l||u)&&(t.dropNode=i),i.node.nextSibling===a.node&&(u=!1),i.node.previousSibling===a.node&&(s=!1),i.node.contains(a.node,!1)&&(l=!1),(a.node===i.node||a.node.contains(i.node))&&(s=!1,l=!1,u=!1);var f=i.$el.getBoundingClientRect(),d=e.$el.getBoundingClientRect(),h=void 0,p=s?l?.25:u?.45:1:-1,g=u?l?.75:s?.55:0:1,m=-9999,v=n.clientY-f.top;h=v<f.height*p?"before":v>f.height*g?"after":l?"inner":"none";var y=i.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),b=e.$refs.dropIndicator;"before"===h?m=y.top-d.top:"after"===h&&(m=y.bottom-d.top),b.style.top=m+"px",b.style.left=y.right-d.left+"px","inner"===h?Object(Be["addClass"])(i.$el,"is-drop-inner"):Object(Be["removeClass"])(i.$el,"is-drop-inner"),t.showDropIndicator="before"===h||"after"===h,t.allowDrop=t.showDropIndicator||c,t.dropType=h,e.$emit("node-drag-over",a.node,i.node,n)}})),this.$on("tree-node-drag-end",(function(n){var r=t.draggingNode,i=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",r&&o){var a={data:r.node.data};"none"!==i&&r.node.remove(),"before"===i?o.node.parent.insertBefore(a,o.node):"after"===i?o.node.parent.insertAfter(a,o.node):"inner"===i&&o.node.insertChild(a),"none"!==i&&e.store.registerNode(a),Object(Be["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",r.node,o.node,i,n),"none"!==i&&e.$emit("node-drop",r.node,o.node,i,n)}r&&!o&&e.$emit("node-drag-end",r.node,null,i,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]")}},Tu=Au,Du=s(Tu,iu,ou,!1,null,null,null);Du.options.__file="packages/tree/src/tree.vue";var Mu=Du.exports;Mu.install=function(e){e.component(Mu.name,Mu)};var Pu=Mu,Iu=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))])])])])},ju=[];Iu._withStripped=!0;var Lu={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Nu={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 Lu[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":""}}},Ru=Nu,Bu=s(Ru,Iu,ju,!1,null,null,null);Bu.options.__file="packages/alert/src/main.vue";var $u=Bu.exports;$u.install=function(e){e.component($u.name,$u)};var Fu=$u,zu=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()])])])},qu=[];zu._withStripped=!0;var Uu={success:"success",info:"info",warning:"warning",error:"error"},Hu={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&&Uu[this.type]?"el-icon-"+Uu[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)}},Vu=Hu,Wu=s(Vu,zu,qu,!1,null,null,null);Wu.options.__file="packages/notification/src/main.vue";var Ku=Wu.exports,Gu=qr.a.extend(Ku),Yu=void 0,Xu=[],Zu=1,Qu=function e(t){if(!qr.a.prototype.$isServer){t=Ct()({},t);var n=t.onClose,r="notification_"+Zu++,i=t.position||"top-right";t.onClose=function(){e.close(r,n)},Yu=new Gu({data:t}),Object(As["isVNode"])(t.message)&&(Yu.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Yu.id=r,Yu.$mount(),document.body.appendChild(Yu.$el),Yu.visible=!0,Yu.dom=Yu.$el,Yu.dom.style.zIndex=O["PopupManager"].nextZIndex();var o=t.offset||0;return Xu.filter((function(e){return e.position===i})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Yu.verticalOffset=o,Xu.push(Yu),Yu}};["success","warning","info","error"].forEach((function(e){Qu[e]=function(t){return("string"===typeof t||Object(As["isVNode"])(t))&&(t={message:t}),t.type=e,Qu(t)}})),Qu.close=function(e,t){var n=-1,r=Xu.length,i=Xu.filter((function(t,r){return t.id===e&&(n=r,!0)}))[0];if(i&&("function"===typeof t&&t(i),Xu.splice(n,1),!(r<=1)))for(var o=i.position,a=i.dom.offsetHeight,s=n;s<r-1;s++)Xu[s].position===o&&(Xu[s].dom.style[i.verticalProperty]=parseInt(Xu[s].dom.style[i.verticalProperty],10)-a-16+"px")},Qu.closeAll=function(){for(var e=Xu.length-1;e>=0;e--)Xu[e].close()};var Ju=Qu,ec=Ju,tc=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,r){return e.showStops?n("div",{key:r,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,r){return n("div",{key:r,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,r){return n("slider-marker",{key:r,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},nc=[];tc._withStripped=!0;var rc=n(42),ic=n.n(rc),oc=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)},ac=[];oc._withStripped=!0;var sc={name:"ElSliderButton",components:{ElTooltip:it.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),r=Math.round(e/n),i=r*n*(this.max-this.min)*.01+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},lc=sc,uc=s(lc,oc,ac,!1,null,null,null);uc.options.__file="packages/slider/src/button.vue";var cc=uc.exports,fc={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])}},dc={name:"ElSlider",mixins:[A.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:ic.a,SliderButton:cc,SliderMarker:fc},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),r=[],i=1;i<t;i++)r.push(i*n);return this.range?r.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):r.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)}},hc=dc,pc=s(hc,tc,nc,!1,null,null,null);pc.options.__file="packages/slider/src/main.vue";var gc=pc.exports;gc.install=function(e){e.component(gc.name,gc)};var mc=gc,vc=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()])])])},yc=[];vc._withStripped=!0;var bc={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}}},_c=bc,wc=s(_c,vc,yc,!1,null,null,null);wc.options.__file="packages/loading/src/loading.vue";var xc=wc.exports,Oc=n(33),Sc=n.n(Oc),Cc=qr.a.extend(xc),kc={install:function(e){if(!e.prototype.$isServer){var t=function(t,r){r.value?e.nextTick((function(){r.modifiers.fullscreen?(t.originalPosition=Object(Be["getStyle"])(document.body,"position"),t.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=O["PopupManager"].nextZIndex(),Object(Be["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,r)):(Object(Be["removeClass"])(t.mask,"is-fullscreen"),r.modifiers.body?(t.originalPosition=Object(Be["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(Be["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,r)):(t.originalPosition=Object(Be["getStyle"])(t,"position"),n(t,t,r)))})):(Sc()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=r.modifiers.fullscreen||r.modifiers.body?document.body:t;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,r){n.domVisible||"none"===Object(Be["getStyle"])(n,"display")||"hidden"===Object(Be["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(Be["addClass"])(t,"el-loading-parent--relative"),r.modifiers.fullscreen&&r.modifiers.lock&&Object(Be["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,r){var i=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=r.context,u=new Cc({el:document.createElement("div"),data:{text:l&&l[i]||i,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=u,e.mask=u.$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()}})}}},Ec=kc,Ac=qr.a.extend(xc),Tc={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Dc=void 0;Ac.prototype.originalPosition="",Ac.prototype.originalOverflow="",Ac.prototype.close=function(){var e=this;this.fullscreen&&(Dc=void 0),Sc()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(Be["removeClass"])(n,"el-loading-parent--relative"),Object(Be["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Mc=function(e,t,n){var r={};e.fullscreen?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),n.originalOverflow=Object(Be["getStyle"])(document.body,"overflow"),r.zIndex=O["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(Be["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";r[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){r[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(Be["getStyle"])(t,"position"),Object.keys(r).forEach((function(e){n.$el.style[e]=r[e]}))},Pc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!qr.a.prototype.$isServer){if(e=Ct()({},Tc,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&&Dc)return Dc;var t=e.body?document.body:e.target,n=new Ac({el:document.createElement("div"),data:e});return Mc(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(Be["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(Be["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),qr.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Dc=n),n}},Ic=Pc,jc={install:function(e){e.use(Ec),e.prototype.$loading=Ic},directive:Ec,service:Ic},Lc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Nc=[];Lc._withStripped=!0;var Rc={name:"ElIcon",props:{name:String}},Bc=Rc,$c=s(Bc,Lc,Nc,!1,null,null,null);$c.options.__file="packages/icon/src/icon.vue";var Fc=$c.exports;Fc.install=function(e){e.component(Fc.name,Fc)};var zc=Fc,qc={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(qc.name,qc)}},Uc=qc,Hc="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},Vc={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=[],r={};return this.gutter&&(r.paddingLeft=this.gutter/2+"px",r.paddingRight=r.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"===Hc(t[e])){var r=t[e];Object.keys(r).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+r[t]:"el-col-"+e+"-"+r[t])}))}})),e(this.tag,{class:["el-col",n],style:r},this.$slots.default)},install:function(e){e.component(Vc.name,Vc)}},Wc=Vc,Kc=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)},Gc=[];Kc._withStripped=!0;var Yc=n(34),Xc=n.n(Yc),Zc={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Xc.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)}}},Qc=Zc,Jc=s(Qc,Kc,Gc,!1,null,null,null);Jc.options.__file="packages/upload/src/upload-list.vue";var ef=Jc.exports,tf=n(24),nf=n.n(tf);function rf(e,t,n){var r=void 0;r=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var i=new Error(r);return i.status=n.status,i.method="post",i.url=e,i}function of(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function af(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 r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){r.append(t,e.data[t])})),r.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(rf(n,e,t));e.onSuccess(of(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var i=e.headers||{};for(var o in i)i.hasOwnProperty(o)&&null!==i[o]&&t.setRequestHeader(o,i[o]);return t.send(r),t}}var sf=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)},lf=[];sf._withStripped=!0;var uf={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,r=e.name,i=r.indexOf(".")>-1?"."+r.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)?i===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},cf=uf,ff=s(cf,sf,lf,!1,null,null,null);ff.options.__file="packages/upload/src/upload-dragger.vue";var df,hf,pf=ff.exports,gf={inject:["uploader"],components:{UploadDragger:pf},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:af},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 r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(i)&&(n[i]=e[i]);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,r={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(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},i=this.httpRequest(r);this.reqs[n]=i,i&&i.then&&i.then(r.onSuccess,r.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,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,u=this.disabled,c=this.handleKeydown,f={class:{"el-upload":!0},on:{click:t,keydown:c}};return f.class["el-upload--"+s]=!0,e("div",nf()([f,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:u},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},mf=gf,vf=s(mf,df,hf,!1,null,null,null);vf.options.__file="packages/upload/src/upload.vue";var yf=vf.exports;function bf(){}var _f,wf,xf={name:"ElUpload",mixins:[k.a],components:{ElProgress:Xc.a,UploadList:ef,Upload:yf},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:bf},onChange:{type:Function,default:bf},onPreview:{type:Function},onSuccess:{type:Function,default:bf},onProgress:{type:Function,default:bf},onError:{type:Function,default:bf},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:bf}},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),r=this.uploadFiles;n.status="fail",r.splice(r.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 r=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 i=this.beforeRemove(e,this.uploadFiles);i&&i.then?i.then((function(){r()}),bf):!1!==i&&r()}}else r()},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(ef,{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 r={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"},i=this.$slots.trigger||this.$slots.default,o=e("upload",r,[i]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},Of=xf,Sf=s(Of,_f,wf,!1,null,null,null);Sf.options.__file="packages/upload/src/index.vue";var Cf=Sf.exports;Cf.install=function(e){e.component(Cf.name,Cf)};var kf=Cf,Ef=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()])},Af=[];Ef._withStripped=!0;var Tf={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}))}}},Df=Tf,Mf=s(Df,Ef,Af,!1,null,null,null);Mf.options.__file="packages/progress/src/progress.vue";var Pf=Mf.exports;Pf.install=function(e){e.component(Pf.name,Pf)};var If=Pf,jf=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}})])])},Lf=[];jf._withStripped=!0;var Nf={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Rf=Nf,Bf=s(Rf,jf,Lf,!1,null,null,null);Bf.options.__file="packages/spinner/src/spinner.vue";var $f=Bf.exports;$f.install=function(e){e.component($f.name,$f)};var Ff=$f,zf=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)])},qf=[];zf._withStripped=!0;var Uf={success:"success",info:"info",warning:"warning",error:"error"},Hf={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-"+Uf[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)}},Vf=Hf,Wf=s(Vf,zf,qf,!1,null,null,null);Wf.options.__file="packages/message/src/main.vue";var Kf=Wf.exports,Gf=n(16),Yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xf=qr.a.extend(Kf),Zf=void 0,Qf=[],Jf=1,ed=function e(t){if(!qr.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,r="message_"+Jf++;t.onClose=function(){e.close(r,n)},Zf=new Xf({data:t}),Zf.id=r,Object(As["isVNode"])(Zf.message)&&(Zf.$slots.default=[Zf.message],Zf.message=null),Zf.$mount(),document.body.appendChild(Zf.$el);var i=t.offset||20;return Qf.forEach((function(e){i+=e.$el.offsetHeight+16})),Zf.verticalOffset=i,Zf.visible=!0,Zf.$el.style.zIndex=O["PopupManager"].nextZIndex(),Qf.push(Zf),Zf}};["success","warning","info","error"].forEach((function(e){ed[e]=function(t){return Object(Gf["isObject"])(t)&&!Object(As["isVNode"])(t)?ed(Yf({},t,{type:e})):ed({type:e,message:t})}})),ed.close=function(e,t){for(var n=Qf.length,r=-1,i=void 0,o=0;o<n;o++)if(e===Qf[o].id){i=Qf[o].$el.offsetHeight,r=o,"function"===typeof t&&t(Qf[o]),Qf.splice(o,1);break}if(!(n<=1||-1===r||r>Qf.length-1))for(var a=r;a<n-1;a++){var s=Qf[a].$el;s.style["top"]=parseInt(s.style["top"],10)-i-16+"px"}},ed.closeAll=function(){for(var e=Qf.length-1;e>=0;e--)Qf[e].close()};var td=ed,nd=td,rd=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)},id=[];rd._withStripped=!0;var od={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}}}},ad=od,sd=s(ad,rd,id,!1,null,null,null);sd.options.__file="packages/badge/src/main.vue";var ld=sd.exports;ld.install=function(e){e.component(ld.name,ld)};var ud=ld,cd=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)])},fd=[];cd._withStripped=!0;var dd={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},hd=dd,pd=s(hd,cd,fd,!1,null,null,null);pd.options.__file="packages/card/src/main.vue";var gd=pd.exports;gd.install=function(e){e.component(gd.name,gd)};var md=gd,vd=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,r){return n("span",{key:r,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)},yd=[];vd._withStripped=!0;var bd={name:"ElRate",mixins:[k.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 r=t[n],i=!!Object(Gf["isObject"])(r)&&r.excluded;return i?e<n:e<=n})).sort((function(e,t){return e-t})),r=t[n[0]];return Object(Gf["isObject"])(r)?r.value:r||""},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(Be["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(Be["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)}},_d=bd,wd=s(_d,vd,yd,!1,null,null,null);wd.options.__file="packages/rate/src/main.vue";var xd=wd.exports;xd.install=function(e){e.component(xd.name,xd)};var Od=xd,Sd=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)},Cd=[];Sd._withStripped=!0;var kd={name:"ElSteps",mixins:[k.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}))}}},Ed=kd,Ad=s(Ed,Sd,Cd,!1,null,null,null);Ad.options.__file="packages/steps/src/steps.vue";var Td=Ad.exports;Td.install=function(e){e.component(Td.name,Td)};var Dd=Td,Md=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)])])},Pd=[];Md._withStripped=!0;var Id={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,r="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=r,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()}))}},jd=Id,Ld=s(jd,Md,Pd,!1,null,null,null);Ld.options.__file="packages/steps/src/step.vue";var Nd=Ld.exports;Nd.install=function(e){e.component(Nd.name,Nd)};var Rd=Nd,Bd=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,r){return n("li",{key:r,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":r===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(r)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(r)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},$d=[];Bd._withStripped=!0;var Fd=n(25),zd=n.n(Fd),qd={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,r){e===t.itemInStage(n,r)&&(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,r){n.translateItem(r,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,r=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,r===this.activeIndex&&this.resetItemPosition(r),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=zd()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=zd()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(er["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(er["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Ud=qd,Hd=s(Ud,Bd,$d,!1,null,null,null);Hd.options.__file="packages/carousel/src/main.vue";var Vd=Hd.exports;Vd.install=function(e){e.component(Vd.name,Vd)};var Wd=Vd,Kd={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 Gd(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var Yd={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Kd[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:Gd({size:t,move:n,bar:r})})])},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,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(Be["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(Be["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]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(Be["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(Be["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},Xd={name:"ElScrollbar",components:{Bar:Yd},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=yi()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(y["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}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(Yd,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Yd,{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(er["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(er["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(Xd.name,Xd)}},Zd=Xd,Qd=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)},Jd=[];Qd._withStripped=!0;var eh=.83,th={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-eh)*(e-t)+1)/4:e<t?-(1+eh)*n/4:(3+eh)*n/4},calcTranslate:function(e,t,n){var r=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return r*(e-t)},translateItem:function(e,t,n){var r=this.$parent.type,i=this.parentDirection,o=this.$parent.items.length;if("card"!==r&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&o>2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===r)"vertical"===i&&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:eh;else{this.active=e===t;var a="vertical"===i;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(y["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},nh=th,rh=s(nh,Qd,Jd,!1,null,null,null);rh.options.__file="packages/carousel/src/item.vue";var ih=rh.exports;ih.install=function(e){e.component(ih.name,ih)};var oh=ih,ah=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)},sh=[];ah._withStripped=!0;var lh={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)}},uh=lh,ch=s(uh,ah,sh,!1,null,null,null);ch.options.__file="packages/collapse/src/collapse.vue";var fh=ch.exports;fh.install=function(e){e.component(fh.name,fh)};var dh=fh,hh=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)},ph=[];hh._withStripped=!0;var gh={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[A.a],components:{ElCollapseTransition:Ke.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(y["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)}}},mh=gh,vh=s(mh,hh,ph,!1,null,null,null);vh.options.__file="packages/collapse/src/collapse-item.vue";var yh=vh.exports;yh.install=function(e){e.component(yh.name,yh)};var bh=yh,_h=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,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[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)},wh=[];_h._withStripped=!0;var xh=n(43),Oh=n.n(xh),Sh=n(35),Ch=n.n(Sh),kh=Ch.a.keys,Eh={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Ah={props:{placement:{type:String,default:"bottom-start"},appendToBody:U.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:U.a.props.arrowOffset,offset:U.a.props.offset,boundariesPadding:U.a.props.boundariesPadding,popperOptions:U.a.props.popperOptions,transformOrigin:U.a.props.transformOrigin},methods:U.a.methods,data:U.a.data,beforeDestroy:U.a.beforeDestroy},Th={medium:36,small:32,mini:28},Dh={name:"ElCascader",directives:{Clickoutside:$.a},mixins:[Ah,A.a,v.a,k.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:g.a,ElTag:Jn.a,ElScrollbar:V.a,ElCascaderPanel:Oh.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(ys["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(Eh).forEach((function(n){var r=Eh[n],i=r.newProp,o=r.type,a=t[n]||t[Object(y["kebabCase"])(n)];Object(kt["isDef"])(n)&&!Object(kt["isDef"])(e[i])&&(o===Boolean&&""===a&&(a=!0),e[i]=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(y["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly,o=r.multiple;Object(y["isEqual"])(e,t)&&!Object(Gf["isUndefined"])(t)||(this.computePresentContent(),o||i||!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||Th[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=R()(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(er["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(er["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,r=this.$refs.input;e=Object(kt["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),r.$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 kh.enter:this.toggleDropDownVisible();break;case kh.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case kh.esc:case kh.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,r=n.popper,i=n.suggestionPanel,o=null;if(t&&i)o=i.$el.querySelector(".el-cascader__suggestion-item");else{var a=r.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(y["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,r=this.separator,i=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,r),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],u=o.slice(1),c=u.length;a.push(s(l)),c&&(i?a.push({key:-1,text:"+ "+c,closable:!1}):u.forEach((function(e){return a.push(s(e))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(Gf["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(y["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 kh.enter:n.click();break;case kh.up:var r=n.previousElementSibling;r&&r.focus();break;case kh.down:var i=n.nextElementSibling;i&&i.focus();break;case kh.esc:case kh.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,r=n.length-1,i=n[r];this.pressDeleteCount=e?0:t+1,i&&this.pressDeleteCount&&(i.hitState?this.deleteTag(i):i.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var r=n.checked;n.doCheck(!r),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),r=t.find((function(e){return Object(y["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(y["isEqual"])(e,n)})),this.$emit("remove-tag",r)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,r=e.querySelector(".el-input__inner");if(r){var i=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=r.offsetWidth+"px"}if(i){var s=Math.round(i.getBoundingClientRect().height),l=Math.max(s+6,t)+"px";r.style.height=l,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Mh=Dh,Ph=s(Mh,_h,wh,!1,null,null,null);Ph.options.__file="packages/cascader/src/cascader.vue";var Ih=Ph.exports;Ih.install=function(e){e.component(Ih.name,Ih)};var jh=Ih,Lh=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)},Nh=[];Lh._withStripped=!0;var Rh="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 Bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var $h=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Fh=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},zh=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},qh=function(e,t){Fh(e)&&(e="100%");var n=zh(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)},Uh={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Hh=function(e){var t=e.r,n=e.g,r=e.b,i=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+(Uh[t]||t)+(Uh[n]||n)};return isNaN(t)||isNaN(n)||isNaN(r)?"":"#"+i(t)+i(n)+i(r)},Vh={A:10,B:11,C:12,D:13,E:14,F:15},Wh=function(e){return 2===e.length?16*(Vh[e[0].toUpperCase()]||+e[0])+(Vh[e[1].toUpperCase()]||+e[1]):Vh[e[1].toUpperCase()]||+e[1]},Kh=function(e,t,n){t/=100,n/=100;var r=t,i=Math.max(n,.01),o=void 0,a=void 0;return n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i,a=(n+t)/2,o=0===n?2*r/(i+r):2*t/(n+t),{h:e,s:100*o,v:100*a}},Gh=function(e,t,n){e=qh(e,255),t=qh(t,255),n=qh(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=void 0,a=void 0,s=r,l=r-i;if(a=0===r?0:l/r,r===i)o=0;else{switch(r){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}},Yh=function(e,t,n){e=6*qh(e,360),t=qh(t,100),n=qh(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:Math.round(255*u),g:Math.round(255*c),b:Math.round(255*f)}},Xh=function(){function e(t){for(var n in Bh(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":Rh(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 Yh(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,r){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,r)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var r=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===r.length?this._alpha=Math.floor(100*parseFloat(r[3])):3===r.length&&(this._alpha=100),r.length>=3){var i=Kh(r[0],r[1],r[2]),o=i.h,a=i.s,s=i.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 u=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===u.length?this._alpha=Math.floor(100*parseFloat(u[3])):3===u.length&&(this._alpha=100),u.length>=3){var c=Gh(u[0],u[1],u[2]),f=c.h,d=c.s,h=c.v;n(f,d,h)}}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=Wh(p[0]+p[0]),m=Wh(p[1]+p[1]),v=Wh(p[2]+p[2])):6!==p.length&&8!==p.length||(g=Wh(p.substring(0,2)),m=Wh(p.substring(2,4)),v=Wh(p.substring(4,6))),8===p.length?this._alpha=Math.floor(Wh(p.substring(6))/255*100):3!==p.length&&6!==p.length||(this._alpha=100);var y=Gh(g,m,v),b=y.h,_=y.s,w=y.v;n(b,_,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,r=this._alpha,i=this.format;if(this.enableAlpha)switch(i){case"hsl":var o=$h(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+r/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+r/100+")";break;default:var a=Yh(e,t,n),s=a.r,l=a.g,u=a.b;this.value="rgba("+s+", "+l+", "+u+", "+r/100+")"}else switch(i){case"hsl":var c=$h(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*c[1])+"%, "+Math.round(100*c[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var f=Yh(e,t,n),d=f.r,h=f.g,p=f.b;this.value="rgb("+d+", "+h+", "+p+")";break;default:this.value=Hh(Yh(e,t,n))}},e}(),Zh=Xh,Qh=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)])},Jh=[];Qh._withStripped=!0;var ep=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")])])},tp=[];ep._withStripped=!0;var np=!1,rp=function(e,t){if(!qr.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},r=function e(r){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,np=!1,t.end&&t.end(r)};e.addEventListener("mousedown",(function(e){np||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),np=!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,r=n.clientWidth,i=n.clientHeight;this.cursorLeft=e*r/100,this.cursorTop=(100-t)*i/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;r=Math.max(0,r),r=Math.min(r,n.width),i=Math.max(0,i),i=Math.min(i,n.height),this.cursorLeft=r,this.cursorTop=i,this.color.set({saturation:r/n.width*100,value:100-i/n.height*100})}},mounted:function(){var e=this;rp(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%)"}}},op=ip,ap=s(op,ep,tp,!1,null,null,null);ap.options.__file="packages/color-picker/src/components/sv-panel.vue";var sp=ap.exports,lp=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"}})])},up=[];lp._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,r=void 0;if(this.vertical){var i=e.clientY-t.top;i=Math.min(i,t.height-n.offsetHeight/2),i=Math.max(n.offsetHeight/2,i),r=Math.round((i-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),r=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",r)},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,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};rp(n,i),rp(r,i),this.update()}},fp=cp,dp=s(fp,lp,up,!1,null,null,null);dp.options.__file="packages/color-picker/src/components/hue-slider.vue";var hp=dp.exports,pp=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"}})])},gp=[];pp._withStripped=!0;var mp={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 r=e.clientY-t.top;r=Math.max(n.offsetHeight/2,r),r=Math.min(r,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var i=e.clientX-t.left;i=Math.max(n.offsetWidth/2,i),i=Math.min(i,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((i-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,r=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+r+", 0) 0%, rgba("+t+", "+n+", "+r+", 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,r=t.thumb,i={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};rp(n,i),rp(r,i),this.update()}},vp=mp,yp=s(vp,pp,gp,!1,null,null,null);yp.options.__file="packages/color-picker/src/components/alpha-slider.vue";var bp=yp.exports,_p=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,r){return n("div",{key:e.colors[r],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(r)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},wp=[];_p._withStripped=!0;var xp={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 Zh;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 Zh;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)}}},Op=xp,Sp=s(Op,_p,wp,!1,null,null,null);Sp.options.__file="packages/color-picker/src/components/predefine.vue";var Cp=Sp.exports,kp={name:"el-color-picker-dropdown",mixins:[U.a,v.a],components:{SvPanel:sp,HueSlider:hp,AlphaSlider:bp,ElInput:g.a,ElButton:ae.a,Predefine:Cp},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,r=e.hue,i=e.alpha;n&&n.update(),r&&r.update(),i&&i.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Ep=kp,Ap=s(Ep,Qh,Jh,!1,null,null,null);Ap.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Tp=Ap.exports,Dp={name:"ElColorPicker",mixins:[A.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:$.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 Zh({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 Zh))throw Error("color should be instance of Color Class");var n=e.toRgb(),r=n.r,i=n.g,o=n.b;return t?"rgba("+r+", "+i+", "+o+", "+e.get("alpha")/100+")":"rgb("+r+", "+i+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Zh({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Tp}},Mp=Dp,Pp=s(Mp,Lh,Nh,!1,null,null,null);Pp.options.__file="packages/color-picker/src/main.vue";var Ip=Pp.exports;Ip.install=function(e){e.component(Ip.name,Ip)};var jp=Ip,Lp=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)},Np=[];Lp._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()])},Bp=[];Rp._withStripped=!0;var $p={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Ii.a,ElCheckbox:jr.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),r=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):r.$scopedSlots.default?r.$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 r=[],i=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){i.indexOf(e)>-1&&r.push(e)})),this.checkChangeByUser=!1,this.checked=r}}}},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,r=n.noChecked,i=n.hasChecked;return r&&i?e>0?i.replace(/\${checked}/g,e).replace(/\${total}/g,t):r.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="")}}},Fp=$p,zp=s(Fp,Rp,Bp,!1,null,null,null);zp.options.__file="packages/transfer/src/transfer-panel.vue";var qp=zp.exports,Up={name:"ElTransfer",mixins:[A.a,v.a,k.a],components:{TransferPanel:qp,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 r=e.dataObj[n];return r&&t.push(r),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=[],r=this.props.key;this.data.forEach((function(t){var i=t[r];e.leftChecked.indexOf(i)>-1&&-1===e.value.indexOf(i)&&n.push(i)})),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="")}}},Hp=Up,Vp=s(Hp,Lp,Np,!1,null,null,null);Vp.options.__file="packages/transfer/src/main.vue";var Wp=Vp.exports;Wp.install=function(e){e.component(Wp.name,Wp)};var Kp=Wp,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)},Yp=[];Gp._withStripped=!0;var Xp={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})))}}},Zp=Xp,Qp=s(Zp,Gp,Yp,!1,null,null,null);Qp.options.__file="packages/container/src/main.vue";var Jp=Qp.exports;Jp.install=function(e){e.component(Jp.name,Jp)};var eg=Jp,tg=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)},ng=[];tg._withStripped=!0;var rg={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},ig=rg,og=s(ig,tg,ng,!1,null,null,null);og.options.__file="packages/header/src/main.vue";var ag=og.exports;ag.install=function(e){e.component(ag.name,ag)};var sg=ag,lg=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)},ug=[];lg._withStripped=!0;var cg={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},fg=cg,dg=s(fg,lg,ug,!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 pg=hg,gg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},mg=[];gg._withStripped=!0;var vg={name:"ElMain",componentName:"ElMain"},yg=vg,bg=s(yg,gg,mg,!1,null,null,null);bg.options.__file="packages/main/src/main.vue";var _g=bg.exports;_g.install=function(e){e.component(_g.name,_g)};var wg=_g,xg=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)},Og=[];xg._withStripped=!0;var Sg={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Cg=Sg,kg=s(Cg,xg,Og,!1,null,null,null);kg.options.__file="packages/footer/src/main.vue";var Eg=kg.exports;Eg.install=function(e){e.component(Eg.name,Eg)};var Ag,Tg,Dg=Eg,Mg={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},r=this.$slots.default||[];return t&&(r=r.reverse()),e("ul",{class:n},[r])}},Pg=Mg,Ig=s(Pg,Ag,Tg,!1,null,null,null);Ig.options.__file="packages/timeline/src/main.vue";var jg=Ig.exports;jg.install=function(e){e.component(jg.name,jg)};var Lg=jg,Ng=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=[];Ng._withStripped=!0;var Bg={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}},$g=Bg,Fg=s($g,Ng,Rg,!1,null,null,null);Fg.options.__file="packages/timeline/src/item.vue";var zg=Fg.exports;zg.install=function(e){e.component(zg.name,zg)};var qg=zg,Ug=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)},Hg=[];Ug._withStripped=!0;var Vg={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)}}},Wg=Vg,Kg=s(Wg,Ug,Hg,!1,null,null,null);Kg.options.__file="packages/link/src/main.vue";var Gg=Kg.exports;Gg.install=function(e){e.component(Gg.name,Gg)};var Yg=Gg,Xg=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()])},Zg=[];Xg._withStripped=!0;var Qg={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)}}}},Jg=Qg,em=s(Jg,Xg,Zg,!0,null,null,null);em.options.__file="packages/divider/src/main.vue";var tm=em.exports;tm.install=function(e){e.component(tm.name,tm)};var nm=tm,rm=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=[];rm._withStripped=!0;var om=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,r){return r===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},am=[];om._withStripped=!0;var sm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lm={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},um=Object(y["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:lm.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,r=e.offsetX,i=e.offsetY,o=e.enableTransition,a={transform:"scale("+t+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===lm.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a},viewerZIndex:function(){var e=O["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(y["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(Be["on"])(document,"keydown",this._keyDownHandler),Object(Be["on"])(document,um,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(Be["off"])(document,"keydown",this._keyDownHandler),Object(Be["off"])(document,um,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,r=n.offsetX,i=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(y["rafThrottle"])((function(e){t.transform.offsetX=r+e.pageX-o,t.transform.offsetY=i+e.pageY-a})),Object(Be["on"])(document,"mousemove",this._dragHandler),Object(Be["on"])(document,"mouseup",(function(e){Object(Be["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(lm),t=Object.values(lm),n=t.indexOf(this.mode),r=(n+1)%e.length;this.mode=lm[e[r]],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=sm({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),r=n.zoomRate,i=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-r).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+r).toFixed(3));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;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)}},fm=cm,dm=s(fm,om,am,!1,null,null,null);dm.options.__file="packages/image/src/image-viewer.vue";var hm=dm.exports,pm=function(){return void 0!==document.documentElement.style.objectFit},gm={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},mm="",vm={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?pm()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!pm()&&this.fit!==gm.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 r=e.$attrs[n];t.setAttribute(n,r)})),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(Be["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(Gf["isHtmlElement"])(e)?e:Object(Gf["isString"])(e)?document.querySelector(e):Object(Be["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=zd()(200,this.handleLazyLoad),Object(Be["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(Be["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,r=this.$el,i=r.clientWidth,o=r.clientHeight;if(!t||!n||!i||!o)return{};var a=t/n,s=i/o;if(e===gm.SCALE_DOWN){var l=t<i&&n<o;e=l?gm.NONE:gm.CONTAIN}switch(e){case gm.NONE:return{width:"auto",height:"auto"};case gm.CONTAIN:return a<s?{width:"auto"}:{height:"auto"};case gm.COVER:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(mm=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=mm,this.showViewer=!1}}},ym=vm,bm=s(ym,rm,im,!1,null,null,null);bm.options.__file="packages/image/src/main.vue";var _m=bm.exports;_m.install=function(e){e.component(_m.name,_m)};var wm=_m,xm=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,r){return n("date-table",{key:r,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==r,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},Om=[];xm._withStripped=!0;var Sm,Cm,km=n(20),Em=n.n(km),Am={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(so["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(so["range"])(e.length/7).map((function(t,n){var r=7*n;return e.slice(r,r+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,r=[n];if("current"===n){var i=this.getFormateDate(t,n);i===this.selectedDay&&r.push("is-selected"),i===this.formatedToday&&r.push("is-today")}return r},pickDay:function(e){var t=e.text,n=e.type,r=this.getFormateDate(t,n);this.$emit("pick",r)},cellRenderProxy:function(e){var t=e.text,n=e.type,r=this.$createElement,i=this.elCalendar.$scopedSlots.dateCell;if(!i)return r("span",[t]);var o=this.getFormateDate(t,n),a=new Date(o),s={isSelected:this.selectedDay===o,type:n+"-month",day:o};return i({date:a,data:s})}},computed:{WEEK_DAYS:function(){return Object(so["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Em.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Em.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Em.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],r=t[1],i=Object(so["range"])(r.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),o=i.length%7;o=0===o?0:7-o;var a=Object(so["range"])(o).map((function(e,t){return{text:t+1,type:"next"}}));e=i.concat(a)}else{var s=this.date,l=Object(so["getFirstDayOfMonth"])(s);l=0===l?7:l;var u="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,c=(7+l-u)%7,f=Object(so["getPrevMonthLastDays"])(s,c).map((function(e){return{text:e,type:"prev"}})),d=Object(so["getMonthDays"])(s).map((function(e){return{text:e,type:"current"}}));e=[].concat(f,d);var h=Object(so["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(h)}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,r){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===r&&e.hideHeader},key:r},[n.map((function(n,r){return t("td",{key:r,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Tm=Am,Dm=s(Tm,Sm,Cm,!1,null,null,null);Dm.options.__file="packages/calendar/src/date-table.vue";var Mm=Dm.exports,Pm=["prev-month","today","next-month"],Im=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],jm=864e5,Lm={name:"ElCalendar",mixins:[v.a],components:{DateTable:Mm,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===Pm.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,r=t?n:0===n?6:n-1,i=(t?"start":"end")+" of range should be "+Im[r]+".";return e.getDay()===r||(console.warn("[ElementCalendar]",i,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Em.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Em.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Em.a.format(e,"yyyy-MM")},formatedDate:function(){return Em.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 Em.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,r){var i=e.toDate(n);return e.rangeValidator(i,0===r)&&(t=t.concat(i)),t}),[]),2===t.length){var n=t,r=n[0],i=n[1];if(r>i)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(so["validateRangeInOneMonth"])(r,i))return[[r,i]];var o=[],a=new Date(r.getFullYear(),r.getMonth()+1,1),s=this.toDate(a.getTime()-jm);if(!Object(so["validateRangeInOneMonth"])(a,i))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([r,s]);var l=this.realFirstDayOfWeek,u=a.getDay(),c=0;return u!==l&&(0===l?c=7-u:(c=l-u,c=c>0?c:7+c)),a=this.toDate(a.getTime()+c*jm),a.getDate()<i.getDate()&&o.push([a,i]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Nm=Lm,Rm=s(Nm,xm,Om,!1,null,null,null);Rm.options.__file="packages/calendar/src/main.vue";var Bm=Rm.exports;Bm.install=function(e){e.component(Bm.name,Bm)};var $m=Bm,Fm=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=[];Fm._withStripped=!0;var qm=function(e){return Math.pow(e,3)},Um=function(e){return e<.5?qm(2*e)/2:1-qm(2*(1-e))/2},Hm={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=zd()(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,r=window.requestAnimationFrame||function(e){return setTimeout(e,16)},i=function i(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-Um(o)),r(i)):e.scrollTop=0};r(i)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Vm=Hm,Wm=s(Vm,Fm,zm,!1,null,null,null);Wm.options.__file="packages/backtop/src/main.vue";var Km=Wm.exports;Km.install=function(e){e.component(Km.name,Km)};var Gm=Km,Ym=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Xm=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Zm=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Qm=function(e){return Zm(e,"offsetHeight")},Jm=function(e){return Zm(e,"clientHeight")},ev="ElInfiniteScroll",tv={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},nv=function(e,t){return Object(Gf["isHtmlElement"])(e)?Xm(tv).reduce((function(n,r){var i=r[0],o=r[1],a=o.type,s=o.default,l=e.getAttribute("infinite-scroll-"+i);switch(l=Object(Gf["isUndefined"])(t[l])?l:t[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(Gf["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[i]=l,n}),{}):{}},rv=function(e){return e.getBoundingClientRect().top},iv=function(e){var t=this[ev],n=t.el,r=t.vm,i=t.container,o=t.observer,a=nv(n,r),s=a.distance,l=a.disabled;if(!l){var u=i.getBoundingClientRect();if(u.width||u.height){var c=!1;if(i===n){var f=i.scrollTop+Jm(i);c=i.scrollHeight-f<=s}else{var d=Qm(n)+rv(n)-rv(i),h=Qm(i),p=Number.parseFloat(Ym(i,"borderBottomWidth"));c=d-h+p<=s}c&&Object(Gf["isFunction"])(e)?e.call(r):o&&(o.disconnect(),this[ev].observer=null)}}},ov={name:"InfiniteScroll",inserted:function(e,t,n){var r=t.value,i=n.context,o=Object(Be["getScrollContainer"])(e,!0),a=nv(e,i),s=a.delay,l=a.immediate,u=R()(s,iv.bind(e,r));if(e[ev]={el:e,vm:i,container:o,onScroll:u},o&&(o.addEventListener("scroll",u),l)){var c=e[ev].observer=new MutationObserver(u);c.observe(o,{childList:!0,subtree:!0}),u()}},unbind:function(e){var t=e[ev],n=t.container,r=t.onScroll;n&&n.removeEventListener("scroll",r)},install:function(e){e.directive(ov.name,ov)}},av=ov,sv=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)])},lv=[];sv._withStripped=!0;var uv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(ys["t"])("el.pageHeader.title")}},content:String}},cv=uv,fv=s(cv,sv,lv,!1,null,null,null);fv.options.__file="packages/page-header/src/main.vue";var dv=fv.exports;dv.install=function(e){e.component(dv.name,dv)};var hv=dv,pv=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)},gv=[];pv._withStripped=!0;var mv,vv,yv=n(44),bv=n.n(yv),_v=function(e){return e.stopPropagation()},wv={inject:["panel"],components:{ElCheckbox:jr.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,r=this.isDisabled,i=this.config,o=i.multiple,a=i.checkStrictly;!a&&r||n.loading||(i.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var r=!!t&&n.checked;e.handleMultiCheckChange(r)}})):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,r=this.config,i=r.checkStrictly,o=r.multiple;return o?this.renderCheckbox(e):i?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,r=this.isDisabled,i={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(i.nativeOn.click=_v),e("el-checkbox",nf()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:r}},i]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,r=this.isDisabled;return Object(y["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:r},on:{change:this.handleCheckChange},nativeOn:{click:_v}},[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,r=t.renderLabelFn,i=r?r({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[i||n.label])}},render:function(e){var t=this,n=this.inActivePath,r=this.inCheckedPath,i=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,u=s.expandTrigger,c=s.checkStrictly,f=s.multiple,d=!c&&a,h={on:{}};return"click"===u?h.on.click=this.handleExpand:(h.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},h.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||c||f||(h.on.click=this.handleCheckChange),e("li",nf()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:d?null:-1},class:{"el-cascader-node":!0,"is-selectable":c,"in-active-path":n,"in-checked-path":r,"is-active":i,"is-disabled":d}},h]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},xv=wv,Ov=s(xv,mv,vv,!1,null,null,null);Ov.options.__file="packages/cascader-panel/src/cascader-node.vue";var Sv,Cv,kv=Ov.exports,Ev={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:V.a,CascaderNode:kv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(y["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,r=this.$refs.hoverZone;if(t&&r)if(t.contains(e.target)){clearTimeout(n);var i=this.$el.getBoundingClientRect(),o=i.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,u=s.offsetHeight,c=t.offsetTop,f=c+t.offsetHeight;r.innerHTML='\n          <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+c+" L"+l+" 0 V"+c+' Z" />\n          <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+f+" L"+l+" "+u+" V"+f+' 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,r={on:{}};n&&(r.on.expand=this.handleExpand);var i=this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",nf()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))}));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",nf()([{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"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Av=Ev,Tv=s(Av,Sv,Cv,!1,null,null,null);Tv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Dv=Tv.exports,Mv=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Pv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Iv=0,jv=function(){function e(t,n,r){Pv(this,e),this.data=t,this.config=n,this.parent=r||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,r=n.children,i=this.data[r];this.hasChildren=Array.isArray(i),this.children=(i||[]).map((function(r){return new e(r,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(y["isEqual"])(e,t)})):Object(y["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i="onParent"+Object(y["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[i]&&t[i].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(y["capitalize"])(e);if(t){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t[n]&&t[n].apply(t,i),t.emit.apply(t,[e].concat(i))}},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")))},Mv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,r=n.disabled,i=n.checkStrictly;return e[r]||!i&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,r=this.children,i=this.config,o=i.lazy,a=i.leaf;if(o){var s=Object(kt["isDef"])(e[a])?e[a]:!!t&&!r.length;return this.hasChildren=!s,s}return!n}}]),e}(),Lv=jv;function Nv(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,r){return r.isLeaf?t.push(r):(!n&&t.push(r),t=t.concat(e(r.children,n))),t}),[])},Bv=function(){function e(t,n){Nv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(y["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Lv(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Lv(e,this.config,t),r=t?t.children:this.nodes;r.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(y["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(y["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),$v=Bv,Fv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv=Ch.a.keys,qv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:y["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Uv=function(e){return!e.getAttribute("aria-owns")},Hv=function(e,t){var n=e.parentNode;if(n){var r=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null}return null},Vv=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Wv=function(e){e&&(e.focus(),!Uv(e)&&e.click())},Kv=function(e){if(e){var t=e.querySelector("input");t?t.click():Uv(e)&&e.click()}},Gv={name:"ElCascaderPanel",components:{CascaderMenu:Dv},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 Ct()(Fv({},qv),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(y["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(y["isEmpty"])(t)?this.lazyLoad():(this.store=new $v(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(y["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,r=n.emitPath;return!(!t&&!r)&&Object(y["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,r=this.activePath,i=this.checkedValue;if(Object(y["isEmpty"])(r))if(this.isEmptyValue(i))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?i[0]:i,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=r.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,r=n?Object(y["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=r.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 r=Hv(t,-1);Wv(r);break;case zv.down:var i=Hv(t,1);Wv(i);break;case zv.left:var o=this.$refs.menu[Vv(t)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Wv(a)}break;case zv.right:var s=this.$refs.menu[Vv(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');Wv(l)}break;case zv.enter:Kv(t);break;case zv.esc:case zv.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,r=e.level,i=n.slice(0,r-1),o=this.menus.slice(0,r);if(e.isLeaf||(i.push(e),o.push(e.children)),this.activePath=i,this.menus=o,!t){var a=i.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(y["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,r=this.config;e||(e=e||{root:!0,level:0},this.store=new $v([],r),this.menus=[this.store.getNodes()]),e.loading=!0;var i=function(r){var i=e.root?null:e;if(r&&r.length&&n.store.appendNodes(r,i),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(r)&&r.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(r)};r.lazyLoad(e,i)},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"),r=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");nr()(n,r)}}))}},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 r=this.getFlattedNodes(e);return r.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,r=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=r?[]:null}}},Yv=Gv,Xv=s(Yv,pv,gv,!1,null,null,null);Xv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Zv=Xv.exports;Zv.install=function(e){e.component(Zv.name,Zv)};var Qv,Jv,ey=Zv,ty={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,r=["el-avatar"];return e&&"string"===typeof e&&r.push("el-avatar--"+e),t&&r.push("el-avatar--icon"),n&&r.push("el-avatar--"+n),r.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,r=this.alt,i=this.isImageExist,o=this.srcSet,a=this.fit;return i&&n?e("img",{attrs:{src:n,alt:r,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,r="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:r},[this.renderAvatar()])}},ny=ty,ry=s(ny,Qv,Jv,!1,null,null,null);ry.options.__file="packages/avatar/src/main.vue";var iy=ry.exports;iy.install=function(e){e.component(iy.name,iy)};var oy=iy,ay=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()])])])])},sy=[];ay._withStripped=!0;var ly={name:"ElDrawer",mixins:[S.a,A.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)}},uy=ly,cy=s(uy,ay,sy,!1,null,null,null);cy.options.__file="packages/drawer/src/main.vue";var fy=cy.exports;fy.install=function(e){e.component(fy.name,fy)};var dy=fy,hy=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()])])},py=[];hy._withStripped=!0;var gy=n(28),my={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,Date],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()},groupSeparator:function(){this.dispose()},mulriple:function(){this.dispose()}},methods:{branch:function(){var e=this.timeIndices,t=this.countDown,n=this.dispose;e?t(this.value.valueOf()||this.value):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]:",",r=String(t).length;return e.replace(new RegExp("(\\d)(?=(\\d{"+(r-1)+"})+$)","g"),"$1"+n)},dispose:function(){var e=this.value,t=this.rate,n=this.groupSeparator;if(!Object(gy["isNumber"])(e))return!1;this.precision&&(e=e.toFixed(this.precision));var r=String(e).split("."),i=r[0],o=r[1];n&&(i=this.magnification(i,t,n));var a=""+i+(o?this.decimalSeparator+o:"");return this.disposeValue=a,a},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,r=(t.match(n)||[]).map((function(e){return e.slice(1,-1)})),i=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],o=Object(gy["reduce"])(i,(function(t,n){var r=n[0];return t.replace(new RegExp(r+"+","g"),(function(t){var r=Object(gy["chain"])(e).divide(n[1]).floor(0).value();return e-=Object(gy["multiply"])(r,n[1]),Object(gy["padStart"])(String(r),String(t).length,0)}))}),t),a=0;return o.replace(n,(function(){var e=r[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(e){var t=this.REFRESH_INTERVAL,n=this.timeTask,r=this.diffDate,i=this.formatTimeStr,o=this.stopTime,a=this.suspend;if(!n){var s=this;this.timeTask=setInterval((function(){var t=r(e,Date.now());s.disposeValue=i(t),o(t)}),t),this.$once("hook:beforeDestroy",(function(){a(!0)}))}}}},vy=my,yy=s(vy,hy,py,!1,null,null,null);yy.options.__file="packages/statistic/src/main.vue";var by=yy.exports;by.install=function(e){e.component(by.name,by)};var _y=by,wy=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)},xy=[];wy._withStripped=!0;var Oy=n(45),Sy=n.n(Oy),Cy={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:Sy.a,ElButton:ae.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(ys["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(ys["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},ky=Cy,Ey=s(ky,wy,xy,!1,null,null,null);Ey.options.__file="packages/popconfirm/src/main.vue";var Ay=Ey.exports;Ay.install=function(e){e.component(Ay.name,Ay)};var Ty=Ay,Dy=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(r){return n("el-skeleton-item",{key:t+"-"+r,class:{"el-skeleton__paragraph":1!==r,"is-first":1===r,"is-last":r===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},My=[];Dy._withStripped=!0;var Py={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}}},Iy=Py,jy=s(Iy,Dy,My,!1,null,null,null);jy.options.__file="packages/skeleton/src/index.vue";var Ly=jy.exports;Ly.install=function(e){e.component(Ly.name,Ly)};var Ny=Ly,Ry=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)},By=[];Ry._withStripped=!0;var $y=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"}})])},Fy=[];$y._withStripped=!0;var zy={name:"ImgPlaceholder"},qy=zy,Uy=s(qy,$y,Fy,!1,null,null,null);Uy.options.__file="packages/skeleton/src/img-placeholder.vue";var Hy,Vy=Uy.exports,Wy={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Hy={},Hy[Vy.name]=Vy,Hy)},Ky=Wy,Gy=s(Ky,Ry,By,!1,null,null,null);Gy.options.__file="packages/skeleton/src/item.vue";var Yy=Gy.exports;Yy.install=function(e){e.component(Yy.name,Yy)};var Xy=Yy,Zy=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()])},Qy=[];Zy._withStripped=!0;var Jy=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"}})])])])])},eb=[];Jy._withStripped=!0;var tb=0,nb={name:"ImgEmpty",data:function(){return{id:++tb}}},rb=nb,ib=s(rb,Jy,eb,!1,null,null,null);ib.options.__file="packages/empty/src/img-empty.vue";var ob,ab=ib.exports,sb={name:"ElEmpty",components:(ob={},ob[ab.name]=ab,ob),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(ys["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},lb=sb,ub=s(lb,Zy,Qy,!1,null,null,null);ub.options.__file="packages/empty/src/index.vue";var cb=ub.exports;cb.install=function(e){e.component(cb.name,cb)};var fb,db=cb,hb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pb={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return hb({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,r){return n[r]=e.props[r]||t[r],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var r;return e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),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 r;return[e("th",{class:(r={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},r[n.labelClassName]=!0,r),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 r;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:(r={"el-descriptions-item__label":!0,"has-colon":t.colon},r[n.labelClassName]=!0,r),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},gb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb={name:"ElDescriptions",components:(fb={},fb[pb.name]=pb,fb),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,r=void 0===n?{}:n,i=t.Ctor,o=void 0===i?{}:i,a=(o.options||{}).props||{},s={};for(var l in a){var u=a[l],c=u.default;void 0!==c&&(s[l]=Object(Gf["isFunction"])(c)?c.call(e):c)}return gb({},s,r)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},r=e.children||n.children||[],i={};return r.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";i[n]=i[n]||[],"template"===e.tag?i[n].push(e.children):i[n].push(e)}})),gb({},i)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),r&&(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}})),r=[],i=[],o=this.column;return n.forEach((function(n,a){var s=n.props.span||1;if(a===t.length-1)return i.push(e.filledNode(n,s,o,!0)),void r.push(i);s<o?(o-=s,i.push(n)):(i.push(e.filledNode(n,s,o)),r.push(i),o=e.column,i=[])})),r}},render:function(){var e=arguments[0],t=this.title,n=this.extra,r=this.border,i=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":r},i?"el-descriptions--"+i:""]},[a.map((function(t){return e(pb,{attrs:{row:t}})}))])])])},install:function(e){e.component(mb.name,mb)}},vb=mb,yb={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(yb.name,yb)}},bb=yb,_b=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()])},wb=[];_b._withStripped=!0;var xb=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"}})])},Ob=[];xb._withStripped=!0;var Sb={name:"IconSuccess"},Cb=Sb,kb=s(Cb,xb,Ob,!1,null,null,null);kb.options.__file="packages/result/src/icon-success.vue";var Eb=kb.exports,Ab=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"}})])},Tb=[];Ab._withStripped=!0;var Db={name:"IconError"},Mb=Db,Pb=s(Mb,Ab,Tb,!1,null,null,null);Pb.options.__file="packages/result/src/icon-error.vue";var Ib=Pb.exports,jb=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"}})])},Lb=[];jb._withStripped=!0;var Nb={name:"IconWarning"},Rb=Nb,Bb=s(Rb,jb,Lb,!1,null,null,null);Bb.options.__file="packages/result/src/icon-warning.vue";var $b=Bb.exports,Fb=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"}})])},zb=[];Fb._withStripped=!0;var qb={name:"IconInfo"},Ub=qb,Hb=s(Ub,Fb,zb,!1,null,null,null);Hb.options.__file="packages/result/src/icon-info.vue";var Vb,Wb=Hb.exports,Kb={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Gb={name:"ElResult",components:(Vb={},Vb[Eb.name]=Eb,Vb[Ib.name]=Ib,Vb[$b.name]=$b,Vb[Wb.name]=Wb,Vb),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&Kb[e]?Kb[e]:"icon-info"}}},Yb=Gb,Xb=s(Yb,_b,wb,!1,null,null,null);Xb.options.__file="packages/result/src/index.vue";var Zb=Xb.exports;Zb.install=function(e){e.component(Zb.name,Zb)};var Qb=Zb,Jb=[_,I,ie,he,_e,Ee,Ve,et,ut,mt,Mt,$t,Wt,en,ln,gn,xn,Tn,Nn,lr,ur,mr,Or,Dr,Xi,io,Ia,Va,is,hs,gs,Ks,el,sl,xl,Ul,Ql,ru,Pu,Fu,mc,zc,Uc,Wc,kf,If,Ff,ud,md,Od,Dd,Rd,Wd,Zd,oh,dh,bh,jh,jp,Kp,eg,sg,pg,wg,Dg,Lg,qg,Yg,nm,wm,$m,Gm,hv,ey,oy,dy,_y,Ty,Ny,Xy,db,vb,bb,Qb,Ke.a],e_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};bs.a.use(t.locale),bs.a.i18n(t.i18n),Jb.forEach((function(t){e.component(t.name,t)})),e.use(av),e.use(jc.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=jc.service,e.prototype.$msgbox=Fs,e.prototype.$alert=Fs.alert,e.prototype.$confirm=Fs.confirm,e.prototype.$prompt=Fs.prompt,e.prototype.$notify=ec,e.prototype.$message=nd};"undefined"!==typeof window&&window.Vue&&e_(window.Vue);t["default"]={version:"2.15.14",locale:bs.a.use,i18n:bs.a.i18n,install:e_,CollapseTransition:Ke.a,Loading:jc,Pagination:_,Dialog:I,Autocomplete:ie,Dropdown:he,DropdownMenu:_e,DropdownItem:Ee,Menu:Ve,Submenu:et,MenuItem:ut,MenuItemGroup:mt,Input:Mt,InputNumber:$t,Radio:Wt,RadioGroup:en,RadioButton:ln,Checkbox:gn,CheckboxButton:xn,CheckboxGroup:Tn,Switch:Nn,Select:lr,Option:ur,OptionGroup:mr,Button:Or,ButtonGroup:Dr,Table:Xi,TableColumn:io,DatePicker:Ia,TimeSelect:Va,TimePicker:is,Popover:hs,Tooltip:gs,MessageBox:Fs,Breadcrumb:Ks,BreadcrumbItem:el,Form:sl,FormItem:xl,Tabs:Ul,TabPane:Ql,Tag:ru,Tree:Pu,Alert:Fu,Notification:ec,Slider:mc,Icon:zc,Row:Uc,Col:Wc,Upload:kf,Progress:If,Spinner:Ff,Message:nd,Badge:ud,Card:md,Rate:Od,Steps:Dd,Step:Rd,Carousel:Wd,Scrollbar:Zd,CarouselItem:oh,Collapse:dh,CollapseItem:bh,Cascader:jh,ColorPicker:jp,Transfer:Kp,Container:eg,Header:sg,Aside:pg,Main:wg,Footer:Dg,Timeline:Lg,TimelineItem:qg,Link:Yg,Divider:nm,Image:wm,Calendar:$m,Backtop:Gm,InfiniteScroll:av,PageHeader:hv,CascaderPanel:ey,Avatar:oy,Drawer:dy,Statistic:_y,Popconfirm:Ty,Skeleton:Ny,SkeletonItem:Xy,Empty:db,Descriptions:vb,DescriptionsItem:bb,Result:Qb}}])["default"]},"5e76":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return u}));var r=n("d51b"),i=n("726e"),o=new r["a"](50);function a(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function s(e,t,n,r,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=o.get(e),c={hostEl:n,cb:r,cbPayload:a};return s?(t=s.image,!u(t)&&s.pending.push(c)):(t=i["d"].loadImage(e,l,l),t.__zrImageSrc=e,o.put(e,t.__cachedImgObj={image:t,pending:[c]})),t}return e}return t}function l(){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],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function u(e){return e&&e.width&&e.height}},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5fb2":function(e,t,n){"use strict";var r=2147483647,i=36,o=1,a=26,s=38,l=700,u=72,c=128,f="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=i-o,m=Math.floor,v=String.fromCharCode,y=function(e){var t=[],n=0,r=e.length;while(n<r){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},b=function(e){return e+22+75*(e<26)},_=function(e,t,n){var r=0;for(e=n?m(e/l):e>>1,e+=m(e/t);e>g*a>>1;r+=i)e=m(e/g);return m(r+(g+1)*e/(e+s))},w=function(e){var t=[];e=y(e);var n,s,l=e.length,d=c,h=0,g=u;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(f);while(x<l){var O=r;for(n=0;n<e.length;n++)s=e[n],s>=d&&s<O&&(O=s);var S=x+1;if(O-d>m((r-h)/S))throw RangeError(p);for(h+=(O-d)*S,d=O,n=0;n<e.length;n++){if(s=e[n],s<d&&++h>r)throw RangeError(p);if(s==d){for(var C=h,k=i;;k+=i){var E=k<=g?o:k>=g+a?a:k-g;if(C<E)break;var A=C-E,T=i-E;t.push(v(b(E+A%T))),C=m(A/T)}t.push(v(b(C))),g=_(h,S,x==w),h=0,++x}}++h,++d}return t.join("")};e.exports=function(e){var t,n,r=[],i=e.toLowerCase().replace(h,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(d.test(n)?"xn--"+w(n):n);return r.join(".")}},6062:function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"607d":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n("22d1"),i=n("65ed"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r["a"].browser.firefox&&+r["a"].browser.version.split(".")[0]<39;function l(e,t,n,r){return n=n||{},r?u(e,t,n):s&&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):u(e,t,n),n}function u(e,t,n){if(r["a"].domSupported&&e.getBoundingClientRect){var o=t.clientX,s=t.clientY;if(Object(i["b"])(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if(Object(i["c"])(a,e,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(e){return e||window.event}function f(e,t,n){if(t=c(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&l(e,a,t,n)}else{l(e,t,t,n);var s=d(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var u=t.button;return null==t.which&&void 0!==u&&o.test(t.type)&&(t.which=1&u?1:2&u?3:4&u?2:0),t}function d(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function h(e,t,n,r){e.addEventListener(t,n,r)}function p(e,t,n,r){e.removeEventListener(t,n,r)}var g=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function m(e){return 2===e.which||3===e.which}},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),l=n("7b0b"),u=n("44ad"),c=Object.assign,f=Object.defineProperty;e.exports=!c||i((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||o(c({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,c=1,f=a.f,d=s.f;while(i>c){var h,p=u(arguments[c++]),g=f?o(p).concat(f(p)):o(p),m=g.length,v=0;while(m>v)h=g[v++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:c},6167:function(e,t,n){"use strict";var r,i;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(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,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),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),f(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(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,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){var r=e.getComputedStyle(t,null);return r[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function u(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:u(t.parentNode):t}function c(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?c(t.parentNode):t))}function f(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function d(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function h(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"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function g(e,t,n){var r=p(e),i=p(t);if(n){var o=u(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function m(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}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 r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),l(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=r.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(i),i;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 r=c(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=g(t,l(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,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=u(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,r){var i,o,a={};if("window"===r){var s=e.document.body,c=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var f=l(this._popper),d=u(this._popper),p=h(f),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(d),y="fixed"===t.offsets.popper.position?0:m(d);a={top:0-(p.top-v),right:e.document.documentElement.clientWidth-(p.left-y),bottom:e.document.documentElement.clientHeight-(p.top-v),left:0-(p.left-y)}}else a=l(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:h(r);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 r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){d(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},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=m("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),f(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&f(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={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,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(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=i(t),r=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=i(t);var u=o(e.offsets.popper),c=-1!==["right","bottom"].indexOf(t);(c&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!c&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=a[l+1],r&&(e.placement+="-"+r),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 i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,u=-1!==["left","right"].indexOf(a),c=u?"height":"width",f=u?"top":"left",d=u?"left":"top",h=u?"bottom":"right",p=r(t)[c];l[h]-p<s[f]&&(e.offsets.popper[f]-=s[f]-(l[h]-p)),l[f]+p>s[h]&&(e.offsets.popper[f]+=l[f]+p-s[h]);var g=l[f]+(n||l[c]/2-p/2),m=g-s[f];return m=Math.max(Math.min(s[c]-p-8,m),8),i[f]=m,i[d]="",e.offsets.arrow=i,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 r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}}return t}}),n}))},"625e":function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return y}));var r=n("9ab4"),i=n("6d8b"),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(o);t.main=n[0]||"",t.sub=n[1]||""}return t}function u(e){i["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e){return!(!e||!e[s])}function f(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return d(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return Object(r["a"])(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},i["inherits"](t,this)),i["extend"](t.prototype,e),t[s]=!0,t.extend=this.extend,t.superCall=m,t.superApply=v,t.superClass=n,t}}function d(e){return i["isFunction"](e)&&/^class\s/.test(Function.prototype.toString.call(e))}function h(e,t){e.extend=t.extend}var p=Math.round(10*Math.random());function g(e){var t=["__\0is_clz",p++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function m(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function v(e,t,n){return this.superClass.prototype[t].apply(e,n)}function y(e){var t={};function n(e){var n=t[e.main];return n&&n[a]||(n=t[e.main]={},n[a]=!0),n}e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){u(r),e.prototype.type=r;var i=l(r);if(i.sub){if(i.sub!==a){var o=n(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[a]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=l(e),r=[],o=t[n.main];return o&&o[a]?i["each"](o,(function(e,t){t!==a&&r.push(e)})):r.push(o),r},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return i["each"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),r=t[n.main];return r&&r[a]}}},"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}},6438:function(e,t,n){var r=n("03d6"),i=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"64d8":function(e,t,n){n("ef1f")},6547:function(e,t,n){var r=n("a691"),i=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(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 r=n("9bf2").f,i=n("7c73"),o=n("e2cc"),a=n("0366"),s=n("19aa"),l=n("2266"),u=n("7dd0"),c=n("2626"),f=n("83ab"),d=n("f183").fastKey,h=n("69f3"),p=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,c,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&l(r,e[u],e,n)})),h=g(t),m=function(e,t,n){var r,i,o=h(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),f?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=h(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(c.prototype,{clear:function(){var e=this,t=h(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=h(t),r=v(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(c.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)}}),f&&r(c.prototype,"size",{get:function(){return h(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:i(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),c(t)}}},"658f":function(e,t,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("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 u=s[l],c=r[u],f=c&&c.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},"65ed":function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m}));var r=n("22d1"),i=Math.log(2);function o(e,t,n,r,a,s){var l=r+"-"+a,u=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var c=Math.round(Math.log((1<<u)-1&~a)/i);return e[n][c]}var f=r|1<<n,d=n+1;while(r&1<<d)d++;for(var h=0,p=0,g=0;p<u;p++){var m=1<<p;m&a||(h+=(g%2?-1:1)*e[n][p]*o(e,t-1,d,f,a|m,s),g++)}return s[l]=h,h}function a(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]]],r={},i=o(n,8,0,0,0,r);if(0!==i){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,0===s?1:0,1<<s,1<<l,r)/i*t[s];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var s="___zrEVENTSAVED",l=[];function u(e,t,n,r,i){return c(l,t,r,i,!0)&&c(e,n,l[0],l[1])}function c(e,t,n,i,o){if(t.getBoundingClientRect&&r["a"].domSupported&&!h(t)){var a=t[s]||(t[s]={}),l=f(t,a),u=d(l,a,o);if(u)return u(e,n,i),!0}return!1}function f(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var f=e[c].getBoundingClientRect(),d=2*c,h=f.left,p=f.top;s.push(h,p),u=u&&o&&h===o[d]&&p===o[d+1],l.push(e[c].offsetLeft,e[c].offsetTop)}return u&&i?i:(t.srcCoords=s,t[r]=n?a(l,s):a(s,l))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}var p=/([&<>"'])/g,g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function m(e){return null==e?"":(e+"").replace(p,(function(e,t){return g[t]}))}},"65f0":function(e,t,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},6858:function(e,t,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"68ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("4a3f");function i(e,t,n,i,o,a,s,l,u){if(0===s)return!1;var c=s;if(u>t+c&&u>i+c&&u>a+c||u<t-c&&u<i-c&&u<a-c||l>e+c&&l>n+c&&l>o+c||l<e-c&&l<n-c&&l<o-c)return!1;var f=Object(r["l"])(e,t,n,i,o,a,l,u,null);return f<=c/2}},"693d":function(e,t,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),l=n("e34a").KEY,u=n("4b8b"),c=n("b367"),f=n("92f0"),d=n("8b1a"),h=n("cc15"),p=n("fcd4"),g=n("e198"),m=n("0ae2"),v=n("4ebc"),y=n("77e9"),b=n("7a41"),_=n("0983"),w=n("6ca1"),x=n("3397"),O=n("10db"),S=n("6f4f"),C=n("1836"),k=n("4d20"),E=n("fed5"),A=n("1a14"),T=n("9876"),D=k.f,M=A.f,P=C.f,I=r.Symbol,j=r.JSON,L=j&&j.stringify,N="prototype",R=h("_hidden"),B=h("toPrimitive"),$={}.propertyIsEnumerable,F=c("symbol-registry"),z=c("symbols"),q=c("op-symbols"),U=Object[N],H="function"==typeof I&&!!E.f,V=r.QObject,W=!V||!V[N]||!V[N].findChild,K=o&&u((function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=D(U,t);r&&delete U[t],M(e,t,n),r&&e!==U&&M(U,t,r)}:M,G=function(e){var t=z[e]=S(I[N]);return t._k=e,t},Y=H&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},X=function(e,t,n){return e===U&&X(q,t,n),y(e),t=x(t,!0),y(n),i(z,t)?(n.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),n=S(n,{enumerable:O(0,!1)})):(i(e,R)||M(e,R,O(1,{})),e[R][t]=!0),K(e,t,n)):M(e,t,n)},Z=function(e,t){y(e);var n,r=m(t=w(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):Z(S(e),t)},J=function(e){var t=$.call(this,e=x(e,!0));return!(this===U&&i(z,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==U||!i(z,t)||i(q,t)){var n=D(e,t);return!n||!i(z,t)||i(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){var t,n=P(w(e)),r=[],o=0;while(n.length>o)i(z,t=n[o++])||t==R||t==l||r.push(t);return r},ne=function(e){var t,n=e===U,r=P(n?q:w(e)),o=[],a=0;while(r.length>a)!i(z,t=r[a++])||n&&!i(U,t)||o.push(z[t]);return o};H||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(q,n),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),K(this,e,O(1,n))};return o&&W&&K(U,e,{configurable:!0,set:t}),G(e)},s(I[N],"toString",(function(){return this._k})),k.f=ee,A.f=X,n("6438").f=C.f=te,n("1917").f=J,E.f=ne,o&&!n("e444")&&s(U,"propertyIsEnumerable",J,!0),p.f=function(e){return G(h(e))}),a(a.G+a.W+a.F*!H,{Symbol:I});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=T(h.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=I(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:Q,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(_(e))}}),j&&a(a.S+a.F*(!H||u((function(){var e=I();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(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}),r[1]=t,L.apply(j,r)}}),I[N][B]||n("051b")(I[N],B,I[N].valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"697e":function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return me})),n.d(t,"dispose",(function(){return ve})),n.d(t,"disposeAll",(function(){return ye})),n.d(t,"getInstance",(function(){return be})),n.d(t,"registerPainter",(function(){return _e})),n.d(t,"getElementSSRData",(function(){return we})),n.d(t,"registerSSRDataGetter",(function(){return xe})),n.d(t,"version",(function(){return Oe}));var r=n("22d1"),i=n("6d8b"),o=n("9ab4"),a=n("401b"),s=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),l=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 s(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new s(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,e),"dragleave",e.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new s(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),u=l,c=n("6fd3"),f=n("607d"),d=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 r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=f["b"](n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in g)if(g.hasOwnProperty(t)){var n=g[t](this._track,e);if(n)return n}},e}();function h(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function p(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var g={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=h(r)/h(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=p(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},m=n("9850"),v="silent";function y(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:b}}function b(){f["g"](this.event)}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(o["a"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(c["a"]),w=function(){function e(e,t){this.x=e,this.y=t}return e}(),x=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],O=new m["a"](0,0,0,0),S=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new w(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new _,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new u(a),a}return Object(o["a"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i["each"](x,(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,r=E(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new w(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(i,"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 w(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 r=e.target;if(!r||!r.silent){var i="on"+t,o=y(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new w(e,t);if(k(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new m["a"](e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(O.copy(c.getBoundingRect()),c.transform&&O.applyTransform(c.transform),O.intersect(l)&&o.push(c))}if(o.length)for(var f=4,d=Math.PI/12,h=2*Math.PI,p=0;p<s;p+=f)for(var g=0;g<h;g+=d){var v=e+p*Math.cos(g),y=t+p*Math.sin(g);if(k(o,i,v,y,n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new d);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new w;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(c["a"]);function C(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r=e,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return!i||v}return!1}function k(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=C(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==v)){t.target=a;break}}}function E(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}i["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){S.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,s=E(this,i,o);if("mouseup"===e&&s||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a["dist"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var A=S,T=n("04f6"),D=n("4bc4"),M=!1;function P(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function I(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var j=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=I}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,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Object(T["a"])(n,I)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];var i=r,o=e;while(i)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=D["a"]),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(P(),u.z=0),isNaN(u.z2)&&(P(),u.z2=0),isNaN(u.zlevel)&&(P(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,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 r=i["indexOf"](this._roots,e);r>=0&&this._roots.splice(r,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}(),L=j,N=n("98b7"),R=n("06ad");function B(){return(new Date).getTime()}var $=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 Object(o["a"])(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=B()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}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&&(Object(N["a"])(t),!e._paused&&e.update())}this._running=!0,Object(N["a"])(t)},t.prototype.start=function(){this._running||(this._time=B(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=B(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=B()-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 R["b"](e,t.loop);return this.addAnimator(n),n},t}(c["a"]),F=$,z=300,q=r["a"].domSupported,U=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},r=i["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),H={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},V=!1;function W(e){var t=e.pointerType;return"pen"===t||"touch"===t}function K(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 G(e){e&&(e.zrByTouch=!0)}function Y(e,t){return Object(f["e"])(e.dom,new Z(e,t),!0)}function X(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Z=function(){function e(e,t){this.stopPropagation=i["noop"],this.stopImmediatePropagation=i["noop"],this.preventDefault=i["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}(),Q={mousedown:function(e){e=Object(f["e"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(f["e"])(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=Object(f["e"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(f["e"])(this.dom,e);var t=e.toElement||e.relatedTarget;X(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){V=!0,e=Object(f["e"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){V||(e=Object(f["e"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(f["e"])(this.dom,e),G(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Q.mousemove.call(this,e),Q.mousedown.call(this,e)},touchmove:function(e){e=Object(f["e"])(this.dom,e),G(e),this.handler.processGesture(e,"change"),Q.mousemove.call(this,e)},touchend:function(e){e=Object(f["e"])(this.dom,e),G(e),this.handler.processGesture(e,"end"),Q.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<z&&Q.click.call(this,e)},pointerdown:function(e){Q.mousedown.call(this,e)},pointermove:function(e){W(e)||Q.mousemove.call(this,e)},pointerup:function(e){Q.mouseup.call(this,e)},pointerout:function(e){W(e)||Q.mouseout.call(this,e)}};i["each"](["click","dblclick","contextmenu"],(function(e){Q[e]=function(t){t=Object(f["e"])(this.dom,t),this.trigger(e,t)}}));var J={pointermove:function(e){W(e)||J.mousemove.call(this,e)},pointerup:function(e){J.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 ee(e,t){var n=t.domHandlers;r["a"].pointerEventsSupported?i["each"](U.pointer,(function(r){ne(t,r,(function(t){n[r].call(e,t)}))})):(r["a"].touchEventsSupported&&i["each"](U.touch,(function(r){ne(t,r,(function(i){n[r].call(e,i),K(t)}))})),i["each"](U.mouse,(function(r){ne(t,r,(function(i){i=Object(f["c"])(i),t.touching||n[r].call(e,i)}))})))}function te(e,t){function n(n){function r(r){r=Object(f["c"])(r),X(e,r.target)||(r=Y(e,r),t.domHandlers[n].call(e,r))}ne(t,n,r,{capture:!0})}r["a"].pointerEventsSupported?i["each"](H.pointer,n):r["a"].touchEventsSupported||i["each"](H.mouse,n)}function ne(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Object(f["a"])(e.domTarget,t,n,r)}function re(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Object(f["f"])(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var ie=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),oe=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new ie(t,Q),q&&(r._globalHandlerScope=new ie(document,J)),ee(r,r._localHandlerScope),r}return Object(o["a"])(t,e),t.prototype.dispose=function(){re(this._localHandlerScope),q&&re(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,q&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?te(this,t):re(t)}},t}(c["a"]),ae=oe,se=n("41ef"),le=n("2cf4"),ue=n("2dc5"),ce={},fe={};function de(e){delete fe[e]}function he(e){if(!e)return!1;if("string"===typeof e)return Object(se["lum"])(e,1)<le["b"];if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(se["lum"])(t[i].color,1);return n/=r,n<le["b"]}return!1}var pe,ge=function(){function e(e,t,n){var o=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 a=new L,s=n.renderer||"canvas";ce[s]||(s=i["keys"](ce)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new ce[s](t,a,n,e),u=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c,f=r["a"].node||r["a"].worker||u?null:new ae(l.getViewportRoot(),l.root),d=n.useCoarsePointer,h=null==d||"auto"===d?r["a"].touchEventsSupported:!!d,p=44;h&&(c=i["retrieve2"](n.pointerSize,p)),this.handler=new A(a,l,f,l.root,c),this.animation=new F({stage:{update:u?null:function(){return o._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=he(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){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=B();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=B();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-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._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ue["a"]&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,de(this.id))},e}();function me(e,t){var n=new ge(i["guid"](),e,t);return fe[n.id]=n,n}function ve(e){e.dispose()}function ye(){for(var e in fe)fe.hasOwnProperty(e)&&fe[e].dispose();fe={}}function be(e){return fe[e]}function _e(e,t){ce[e]=t}function we(e){if("function"===typeof pe)return pe(e)}function xe(e){pe=e}var Oe="5.6.0"},"69a4":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(e){return parseInt(e.getParam("plugin_preview_width","650"),10)},r=function(e){return parseInt(e.getParam("plugin_preview_height","500"),10)},i=function(e){return e.getParam("content_style","")},o=function(e){return e.getParam("content_css_cors",!1,"boolean")},a={getPreviewDialogWidth:n,getPreviewDialogHeight:r,getContentStyle:i,shouldUseContentCssCors:o},s=tinymce.util.Tools.resolve("tinymce.Env"),l=function(e){var n="",r=e.dom.encode,i=a.getContentStyle(e);n+='<base href="'+r(e.documentBaseURI.getURI())+'">',i&&(n+='<style type="text/css">'+i+"</style>");var o=a.shouldUseContentCssCors(e)?' crossorigin="anonymous"':"";t.each(e.contentCSS,(function(t){n+='<link type="text/css" rel="stylesheet" href="'+r(e.documentBaseURI.toAbsolute(t))+'"'+o+">"}));var l=e.settings.body_id||"tinymce";-1!==l.indexOf("=")&&(l=e.getParam("body_id","","hash"),l=l[e.id]||l);var u=e.settings.body_class||"";-1!==u.indexOf("=")&&(u=e.getParam("body_class","","hash"),u=u[e.id]||"");var c=s.mac?"e.metaKey":"e.ctrlKey && !e.altKey",f='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+c+")) {e.preventDefault();}}}, false);<\/script> ",d=e.getBody().dir,h=d?' dir="'+r(d)+'"':"",p="<!DOCTYPE html><html><head>"+n+'</head><body id="'+r(l)+'" class="mce-content-body '+r(u)+'"'+h+">"+e.getContent()+f+"</body></html>";return p},u={getPreviewHtml:l},c=function(e){var t=u.getPreviewHtml(e),n=e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}});n.focus("close")},f=function(e){e.addCommand("mcePreview",(function(){c(e)}))},d={register:f},h=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})},p={register:h};function g(){e.add("preview",(function(e){d.register(e),p.register(e)}))}g()})()},"69f3":function(e,t,n){var r,i,o,a=n("7f9a"),s=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),f=n("f772"),d=n("d012"),h=s.WeakMap,p=function(e){return o(e)?i(e):r(e,{})},g=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var m=new h,v=m.get,y=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return y.call(m,e)}}else{var _=f("state");d[_]=!0,r=function(e,t){return u(e,_,t),t},i=function(e){return c(e,_)?e[_]:{}},o=function(e){return c(e,_)}}e.exports={set:r,get:i,has:o,enforce:p,getterFor:g}},"6ac9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},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 r=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)},i=[];r._withStripped=!0;var o=n(5),a=n.n(o),s=n(2),l=n(3),u={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)}},c=u,f=n(0),d=Object(f["a"])(c,r,i,!1,null,null,null);d.options.__file="packages/popover/src/main.vue";var h=d.exports,p=function(e,t,n){var r=t.expression?t.value:t.arg,i=n.context.$refs[r];i&&(Array.isArray(i)?i[0].$refs.reference=e:i.$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),h.install=function(e){e.directive("popover",g),e.component(h.name,h)},h.directive=g;t["default"]=h}})},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"6b7c":function(e,t,n){"use strict";t.__esModule=!0;var r=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 r.t.apply(this,t)}}}},"6bd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n("2b0e");let i=e=>{var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===typeof Int8Array||!r["default"].prototype.$isServer&&"function"===typeof document.childNodes||(i=function(e){return"function"===typeof e||!1});const o=Object.prototype.hasOwnProperty;function a(e,t){return o.call(e,t)}const s=function(){return!r["default"].prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function l(e){let t=!1;return function(...n){t||(t=!0,window.requestAnimationFrame(r=>{e.apply(this,n),t=!1}))}}},"6ca1":function(e,t,n){var r=n("9fbb"),i=n("c901");e.exports=function(e){return r(i(e))}},"6cb7":function(e,t,n){"use strict";var r=n("9ab4"),i=n("6d8b"),o=n("4319"),a=n("8918"),s=n("625e"),l=n("e0d3"),u=n("f934"),c=Object(l["o"])(),f=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=a["c"]("ec_cpt_model"),i}return Object(r["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u["d"](this),r=n?u["f"](e):{},o=t.getTheme();i["merge"](e,o.get(this.mainType)),i["merge"](e,this.getDefaultOption()),n&&u["h"](e,r,n)},t.prototype.mergeOption=function(e,t){i["merge"](this.option,e,!0);var n=u["d"](this);n&&u["h"](this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Object(s["d"])(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){var n=[],r=e;while(r){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var a={},l=n.length-1;l>=0;l--)a=i["merge"](a,n[l],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(l["v"])(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!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}(o["a"]);function d(e){var t=[];return i["each"](f.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=i["map"](t,(function(e){return Object(s["f"])(e).main})),"dataset"!==e&&i["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}Object(s["e"])(f,o["a"]),Object(s["c"])(f),a["a"](f),a["b"](f,d),t["a"]=f},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("f183"),l=n("2266"),u=n("19aa"),c=n("861d"),f=n("d039"),d=n("1c7e"),h=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",y=i[e],b=y&&y.prototype,_=y,w={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(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 y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))_=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(o(e,!0)){var O=new _,S=O[v](m?{}:-0,1)!=O,C=f((function(){O.has(1)})),k=d((function(e){new y(e)})),E=!m&&f((function(){var e=new y,t=5;while(t--)e[v](t,t);return!e.has(-0)}));k||(_=t((function(t,n){u(t,_,e);var r=p(new y,t,_);return void 0!=n&&l(n,r[v],r,g),r})),_.prototype=b,b.constructor=_),(C||E)&&(x("delete"),x("has"),g&&x("get")),(E||S)&&x(v),m&&b.clear&&delete b.clear}return w[e]=_,r({global:!0,forced:_!=y},w),h(_,e),m||n.setStrong(_,e,g),_}},"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 y})),n.d(t,"merge",(function(){return b})),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 O})),n.d(t,"indexOf",(function(){return S})),n.d(t,"inherits",(function(){return C})),n.d(t,"mixin",(function(){return k})),n.d(t,"isArrayLike",(function(){return E})),n.d(t,"each",(function(){return A})),n.d(t,"map",(function(){return T})),n.d(t,"reduce",(function(){return D})),n.d(t,"filter",(function(){return M})),n.d(t,"find",(function(){return P})),n.d(t,"keys",(function(){return I})),n.d(t,"bind",(function(){return L})),n.d(t,"curry",(function(){return N})),n.d(t,"isArray",(function(){return R})),n.d(t,"isFunction",(function(){return B})),n.d(t,"isString",(function(){return $})),n.d(t,"isStringSafe",(function(){return F})),n.d(t,"isNumber",(function(){return z})),n.d(t,"isObject",(function(){return q})),n.d(t,"isBuiltInObject",(function(){return U})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isDom",(function(){return V})),n.d(t,"isGradientObject",(function(){return W})),n.d(t,"isImagePatternObject",(function(){return K})),n.d(t,"isRegExp",(function(){return G})),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 ie})),n.d(t,"isPrimitive",(function(){return oe})),n.d(t,"HashMap",(function(){return ue})),n.d(t,"createHashMap",(function(){return ce})),n.d(t,"concatArray",(function(){return fe})),n.d(t,"createObject",(function(){return de})),n.d(t,"disableUserSelect",(function(){return he})),n.d(t,"hasOwn",(function(){return pe})),n.d(t,"noop",(function(){return ge})),n.d(t,"RADIAN_TO_DEGREE",(function(){return me}));var r=n("726e"),i=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),o=D(["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,u=s.filter,c=s.slice,f=s.map,d=function(){}.constructor,h=d?d.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 y(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 r=0,s=e.length;r<s;r++)t[r]=y(e[r])}}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(r=0,s=e.length;r<s;r++)t[r]=e[r]}}}else if(!i[n]&&!oe(e)&&!V(e))for(var u in t={},e)e.hasOwnProperty(u)&&u!==p&&(t[u]=y(e[u]));return t}function b(e,t,n){if(!q(t)||!q(e))return n?y(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==p){var i=e[r],o=t[r];!q(o)||!q(i)||R(o)||R(i)||V(o)||V(i)||U(o)||U(i)||oe(o)||oe(i)?!n&&r in e||(e[r]=y(t[r])):b(i,o,n)}return e}function _(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=b(n,e[r],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 r=I(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var O=r["d"].createCanvas;function S(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function C(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function k(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else x(e,t,n)}function E(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function A(e,t,n){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function T(e,t,n){if(!e)return[];if(!t)return J(e);if(e.map&&e.map===f)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function D(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function M(e,t,n){if(!e)return[];if(!t)return J(e);if(e.filter&&e.filter===u)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function P(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function I(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 j(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(c.call(arguments)))}}var L=h&&B(h.bind)?h.call.bind(h.bind):j;function N(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(c.call(arguments)))}}function R(e){return Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function B(e){return"function"===typeof e}function $(e){return"string"===typeof e}function F(e){return"[object String]"===a.call(e)}function z(e){return"number"===typeof e}function q(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function U(e){return!!i[a.call(e)]}function H(e){return!!o[a.call(e)]}function V(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function W(e){return null!=e.colorStops}function K(e){return null!=e.image}function G(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,r=e.length;n<r;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 c.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 re="__ec_primitive__";function ie(e){e[re]=!0}function oe(e){return e[re]}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 I(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 ue=function(){function e(t){var n=R(t);this.data=le();var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&A(t,i)}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,r){e.call(t,n,r)}))},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 ce(e){return new ue(e)}function fe(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function de(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&w(n,t),n}function he(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},"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,r){return e[0]===t&&(n=r,!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),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=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(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function l(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,f=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(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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(){r&&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,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},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 r=e["border-"+n+"-width"];return t+g(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(l+a)!==n&&(l-=m(r,"top","bottom")+a)),!w(e)){var u=Math.round(s+o)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return S(i.left,i.top,s,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===h(e).document.documentElement}function x(e){return r?_(e)?y(e):b(e):p}function O(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var C=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}(),k=function(){function e(e,t){var n=O(t);d(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,r){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_=r}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 h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C(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 h(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 k(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}(),A="undefined"!==typeof WeakMap?new WeakMap:new n,T=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=f.getInstance(),r=new E(t,n,this);A.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}}));var D=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:T}();t["default"]=D}.call(this,n("c8ba"))},"6eeb":function(e,t,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(u=!0):delete e[t],u?e[t]=n:i(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"6f4f":function(e,t,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("05f5")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("9141").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"6fd3":function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[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 r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}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 r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.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 i&&i.afterTrigger&&i.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 r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}();t["a"]=r},7156:function(e,t,n){var r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"722f":function(e,t,n){"use strict";t.__esModule=!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},i=n("e452"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s,l=l||{};l.Dialog=function(e,t,n){var i=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":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.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 r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-a)/s;t[r]=i}return t}var c=u(l),f={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,i){if(!e){var a=f.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==i&&(t=e.font=i||o),e.measureText(n);n=n||"",i=i||o;var s=/((?:\d+)?\.?\d*)px/.exec(i),l=s&&+s[1]||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var d=0;d<n.length;d++){var h=c[n[d]];u+=null==h?l:h*l}return{width:u}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function d(e){for(var t in f)e[t]&&(f[t]=e[t])}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"76a5":function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return x}));var r=n("9ab4"),i=n("d409"),o=n("dd4f"),a=n("6d8b"),s=n("e86a"),l=n("0da8"),u=n("c7a2"),c=n("9850"),f=n("19eb"),d=n("726e"),h={fill:"#000"},p=2,g={style:Object(a["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},f["a"].style)},m=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=h,n.attr(t),n}return Object(r["a"])(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,O(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 c["a"](0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||a.clone(),r.union(a))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||h},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(a["extend"])(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(a["keys"])(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(a["extend"])(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return g},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||d["a"],n=e.padding,r=A(e),a=Object(i["a"])(r,e),l=T(e),u=!!e.backgroundColor,f=a.outerHeight,h=a.outerWidth,g=a.contentWidth,m=a.lines,v=a.lineHeight,y=this._defaultStyle,b=e.x||0,_=e.y||0,x=e.align||y.align||"left",O=e.verticalAlign||y.verticalAlign||"top",S=b,D=Object(s["b"])(_,a.contentHeight,O);if(l||n){var M=Object(s["a"])(b,h,x),P=Object(s["b"])(_,f,O);l&&this._renderBackground(e,e,M,P,h,f)}D+=v/2,n&&(S=E(b,x,n),"top"===O?D+=n[0]:"bottom"===O&&(D-=n[2]));for(var I=0,j=!1,L=(k("fill"in e?e.fill:(j=!0,y.fill))),N=(C("stroke"in e?e.stroke:u||y.autoStroke&&!j?null:(I=p,y.stroke))),R=e.textShadowBlur>0,B=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),$=a.calculatedLineHeight,F=0;F<m.length;F++){var z=this._getOrCreateChild(o["a"]),q=z.createStyle();z.useStyle(q),q.text=m[F],q.x=S,q.y=D,x&&(q.textAlign=x),q.textBaseline="middle",q.opacity=e.opacity,q.strokeFirst=!0,R&&(q.shadowBlur=e.textShadowBlur||0,q.shadowColor=e.textShadowColor||"transparent",q.shadowOffsetX=e.textShadowOffsetX||0,q.shadowOffsetY=e.textShadowOffsetY||0),q.stroke=N,q.fill=L,N&&(q.lineWidth=e.lineWidth||I,q.lineDash=e.lineDash,q.lineDashOffset=e.lineDashOffset||0),q.font=t,w(q,e),D+=v,B&&z.setBoundingRect(new c["a"](Object(s["a"])(q.x,e.width,q.textAlign),Object(s["b"])(q.y,$,q.textBaseline),g,$))}},t.prototype._updateRichTexts=function(){var e=this.style,t=A(e),n=Object(i["b"])(t,e),r=n.width,o=n.outerWidth,a=n.outerHeight,l=e.padding,u=e.x||0,c=e.y||0,f=this._defaultStyle,d=e.align||f.align,h=e.verticalAlign||f.verticalAlign,p=Object(s["a"])(u,o,d),g=Object(s["b"])(c,a,h),m=p,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;T(e)&&this._renderBackground(e,e,p,g,o,a);for(var b=!!e.backgroundColor,_=0;_<n.lines.length;_++){var w=n.lines[_],x=w.tokens,O=x.length,S=w.lineHeight,C=w.width,k=0,E=m,D=y,M=O-1,P=void 0;while(k<O&&(P=x[k],!P.align||"left"===P.align))this._placeToken(P,e,S,v,E,"left",b),C-=P.width,E+=P.width,k++;while(M>=0&&(P=x[M],"right"===P.align))this._placeToken(P,e,S,v,D,"right",b),C-=P.width,D-=P.width,M--;E+=(r-(E-m)-(y-D)-C)/2;while(k<=M)P=x[k],this._placeToken(P,e,S,v,E+P.width/2,"center",b),E+=P.width,k++;v+=S}},t.prototype._placeToken=function(e,t,n,r,i,l,u){var f=t.rich[e.styleName]||{};f.text=e.text;var h=e.verticalAlign,g=r+n/2;"top"===h?g=r+e.height/2:"bottom"===h&&(g=r+n-e.height/2);var m=!e.isLineHolder&&T(f);m&&this._renderBackground(f,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,g-e.height/2,e.width,e.height);var v=!!f.backgroundColor,y=e.textPadding;y&&(i=E(i,l,y),g-=e.height/2-y[0]-e.innerHeight/2);var b=this._getOrCreateChild(o["a"]),_=b.createStyle();b.useStyle(_);var x=this._defaultStyle,O=!1,S=0,A=k("fill"in f?f.fill:"fill"in t?t.fill:(O=!0,x.fill)),D=C("stroke"in f?f.stroke:"stroke"in t?t.stroke:v||u||x.autoStroke&&!O?null:(S=p,x.stroke)),M=f.textShadowBlur>0||t.textShadowBlur>0;_.text=e.text,_.x=i,_.y=g,M&&(_.shadowBlur=f.textShadowBlur||t.textShadowBlur||0,_.shadowColor=f.textShadowColor||t.textShadowColor||"transparent",_.shadowOffsetX=f.textShadowOffsetX||t.textShadowOffsetX||0,_.shadowOffsetY=f.textShadowOffsetY||t.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=e.font||d["a"],_.opacity=Object(a["retrieve3"])(f.opacity,t.opacity,1),w(_,f),D&&(_.lineWidth=Object(a["retrieve3"])(f.lineWidth,t.lineWidth,S),_.lineDash=Object(a["retrieve2"])(f.lineDash,t.lineDash),_.lineDashOffset=t.lineDashOffset||0,_.stroke=D),A&&(_.fill=A);var P=e.contentWidth,I=e.contentHeight;b.setBoundingRect(new c["a"](Object(s["a"])(_.x,P,_.textAlign),Object(s["b"])(_.y,I,_.textBaseline),P,I))},t.prototype._renderBackground=function(e,t,n,r,i,o){var s,c,f=e.backgroundColor,d=e.borderWidth,h=e.borderColor,p=f&&f.image,g=f&&!p,m=e.borderRadius,v=this;if(g||e.lineHeight||d&&h){s=this._getOrCreateChild(u["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=m,s.dirtyShape()}if(g){var b=s.style;b.fill=f||null,b.fillOpacity=Object(a["retrieve2"])(e.fillOpacity,1)}else if(p){c=this._getOrCreateChild(l["a"]),c.onload=function(){v.dirtyStyle()};var _=c.style;_.image=f.image,_.x=n,_.y=r,_.width=i,_.height=o}if(d&&h){b=s.style;b.lineWidth=d,b.stroke=h,b.strokeOpacity=Object(a["retrieve2"])(e.strokeOpacity,1),b.lineDash=e.borderDash,b.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(s||c).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=Object(a["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return x(e)&&(t=[e.fontStyle,e.fontWeight,_(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(a["trim"])(t)||e.textFont||e.font},t}(f["c"]),v={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},b=["fontStyle","fontWeight","fontSize","fontFamily"];function _(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?d["c"]+"px":e+"px":e}function w(e,t){for(var n=0;n<b.length;n++){var r=b[n],i=t[r];null!=i&&(e[r]=i)}}function x(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function O(e){return S(e),Object(a["each"])(e.rich,S),e}function S(e){if(e){e.font=m.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||v[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||y[n]?n:"top";var r=e.padding;r&&(e.padding=Object(a["normalizeCssArray"])(e.padding))}}function C(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function k(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function E(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function A(e){var t=e.text;return null!=t&&(t+=""),t}function T(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t["a"]=m},"76d6":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("1c0b"),a=n("825a");r({target:"Iterator",proto:!0,real:!0},{every:function(e){return a(this),o(e),!i(this,(function(t){if(!e(t))return i.stop()}),void 0,!1,!0).stopped}})},"77e9":function(e,t,n){var r=n("7a41");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7837:function(e,t,n){"use strict";n.d(t,"g",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return x})),n.d(t,"h",(function(){return O})),n.d(t,"a",(function(){return S}));var r=n("76a5"),i=n("6d8b"),o=n("7d6c"),a=n("e0d3"),s=n("deca"),l={};function u(e,t){for(var n=0;n<o["g"].length;n++){var r=o["g"][n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var s=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(s,!0)}function c(e,t,n){var r,a=e.labelFetcher,s=e.labelDataIndex,l=e.labelDimIndex,u=t.normal;a&&(r=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(i["isFunction"])(e.defaultText)?e.defaultText(s,e,n):e.defaultText);for(var c={normal:r},f=0;f<o["g"].length;f++){var d=o["g"][f],h=t[d];c[d]=Object(i["retrieve2"])(a?a.getFormattedLabel(s,d,null,l,h&&h.get("formatter")):null,r)}return c}function f(e,t,n,a){n=n||l;for(var s=e instanceof r["a"],f=!1,d=0;d<o["a"].length;d++){var g=t[o["a"][d]];if(g&&g.getShallow("show")){f=!0;break}}var m=s?e:e.getTextContent();if(f){s||(m||(m=new r["a"],e.setTextContent(m)),e.stateProxy&&(m.stateProxy=e.stateProxy));var v=c(n,t),y=t.normal,b=!!y.getShallow("show"),_=h(y,a&&a.normal,n,!1,!s);_.text=v.normal,s||e.setTextConfig(p(y,n,!1));for(d=0;d<o["g"].length;d++){var w=o["g"][d];g=t[w];if(g){var O=m.ensureState(w),S=!!Object(i["retrieve2"])(g.getShallow("show"),b);if(S!==b&&(O.ignore=!S),O.style=h(g,a&&a[w],n,!0,!s),O.style.text=v[w],!s){var C=e.ensureState(w);C.textConfig=p(g,n,!0)}}}m.silent=!!y.getShallow("silent"),null!=m.style.x&&(_.x=m.style.x),null!=m.style.y&&(_.y=m.style.y),m.ignore=!b,m.useStyle(_),m.dirty(),n.enableTextSetter&&(x(m).setLabelText=function(e){var r=c(n,t,e);u(m,r)})}else m&&(m.ignore=!0);e.dirty()}function d(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<o["g"].length;r++){var i=o["g"][r];n[i]=e.getModel([i,t])}return n}function h(e,t,n,r,o){var a={};return g(a,e,n,r,o),t&&Object(i["extend"])(a,t),a}function p(e,t,n){t=t||{};var r,o={},a=e.getShallow("rotate"),s=Object(i["retrieve2"])(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=t.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}function g(e,t,n,r,i){n=n||l;var o,a=t.ecModel,s=a&&a.option.textStyle,u=m(t);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var f=t.getModel(["rich",c]);_(o[c]={},f,s,n,r,i,!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),_(e,t,s,n,r,i,!0,!1)}function m(e){var t;while(e&&e!==e.ecModel){var n=(e.option||l).rich;if(n){t=t||{};for(var r=Object(i["keys"])(n),o=0;o<r.length;o++){var a=r[o];t[a]=1}}e=e.parentModel}return t}var v=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],y=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],b=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _(e,t,n,r,o,a,s,u){n=!o&&n||l;var c=r&&r.inheritColor,f=t.getShallow("color"),d=t.getShallow("textBorderColor"),h=Object(i["retrieve2"])(t.getShallow("opacity"),n.opacity);"inherit"!==f&&"auto"!==f||(f=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(f=f||n.color,d=d||n.textBorderColor),null!=f&&(e.fill=f),null!=d&&(e.stroke=d);var p=Object(i["retrieve2"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var g=Object(i["retrieve2"])(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var m=Object(i["retrieve2"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(e.lineDashOffset=m),o||null!=h||u||(h=r&&r.defaultOpacity),null!=h&&(e.opacity=h),o||a||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var _=0;_<v.length;_++){var w=v[_],x=Object(i["retrieve2"])(t.getShallow(w),n[w]);null!=x&&(e[w]=x)}for(_=0;_<y.length;_++){w=y[_],x=t.getShallow(w);null!=x&&(e[w]=x)}if(null==e.verticalAlign){var O=t.getShallow("baseline");null!=O&&(e.verticalAlign=O)}if(!s||!r.disableBox){for(_=0;_<b.length;_++){w=b[_],x=t.getShallow(w);null!=x&&(e[w]=x)}var S=t.getShallow("borderType");null!=S&&(e.borderDash=S),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!c||(e.backgroundColor=c),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!c||(e.borderColor=c)}}function w(e,t){var n=t&&t.getModel("textStyle");return Object(i["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 x=Object(a["o"])();function O(e,t,n,r){if(e){var i=x(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function S(e,t,n,r,o){var l=x(e);if(l.valueAnimation&&l.prevValue!==l.value){var f=l.defaultInterpolatedText,d=Object(i["retrieve2"])(l.interpolatedValue,l.prevValue),h=l.value;e.percent=0,(null==l.prevValue?s["c"]:s["h"])(e,{percent:1},r,t,null,p)}function p(r){var i=Object(a["k"])(n,l.precision,d,h,r);l.interpolatedValue=1===r?null:i;var s=c({labelDataIndex:t,labelFetcher:o,defaultText:f?f(i):i+""},l.statesModels,i);u(e,s)}}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a29":function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return s})),n.d(t,"j",(function(){return u})),n.d(t,"q",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return h})),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 b})),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 O})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return C})),n.d(t,"c",(function(){return k}));var r=n("6d8b"),i=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(i["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 u(e){return e<l&&e>-l}function c(e){return a(1e3*e)/1e3}function f(e){return a(1e4*e)/1e4}function d(e){return"matrix("+c(e[0])+","+c(e[1])+","+c(e[2])+","+c(e[3])+","+f(e[4])+","+f(e[5])+")"}var h={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 y(e){return e&&!!e.svgElement}function b(e){return v(e)||y(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 O(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 C(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r["RADIAN_TO_DEGREE"],o=Object(r["retrieve2"])(e.scaleX,1),s=Object(r["retrieve2"])(e.scaleY,1),l=e.skewX||0,u=e.skewY||0,c=[];return(t||n)&&c.push("translate("+t+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r["RADIAN_TO_DEGREE"])+"deg, "+a(u*r["RADIAN_TO_DEGREE"])+"deg)"),c.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(r["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("1c35").Buffer)},"7a41":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.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(){}}}()},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7b1d":function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(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,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("fc6a"),i=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"0cb2":function(e,t,n){var r=n("7b0b"),i=Math.floor,o="".replace,a=/\$([$&'`]|\d\d?|<[^>]*>)/g,s=/\$([$&'`]|\d\d?)/g;e.exports=function(e,t,n,l,u,c){var f=n+e.length,d=l.length,h=s;return void 0!==u&&(u=r(u),h=a),o.call(c,h,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(f);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>d){var c=i(s/10);return 0===c?r:c<=d?void 0===l[c-1]?o.charAt(1):l[c-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a}))}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"14c3":function(e,t,n){var r=n("c6b6"),i=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"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"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 r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,f,d,h,p,g=e.target,m=e.global,v=e.stat;if(c=m?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(f in t){if(h=t[f],e.noTargetGet?(p=i(c,f),d=p&&p.value):d=c[f],n=u(m?f:g+(v?".":"#")+f,e.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(c,f,h,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,u=l[s],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=s;(c||f)&&r(RegExp.prototype,s,(function(){var e=i(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,u=l&&l.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",s=i.set,l=i.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,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,l=n("241c").f,u=n("44e7"),c=n("ad6d"),f=n("9f7f"),d=n("6eeb"),h=n("d039"),p=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),y=i.RegExp,b=y.prototype,_=/a/g,w=/a/g,x=new y(_)!==_,O=f.UNSUPPORTED_Y,S=r&&o("RegExp",!x||O||h((function(){return w[v]=!1,y(_)!=_||y(w)==w||"/a/i"!=y(_,"i")})));if(S){var C=function(e,t){var n,r=this instanceof C,i=u(e),o=void 0===t;if(!r&&i&&e.constructor===C&&o)return e;x?i&&!o&&(e=e.source):e instanceof C&&(o&&(t=c.call(e)),e=e.source),O&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(x?new y(e,t):y(e,t),r?this:b,C);return O&&n&&p(s,{sticky:n}),s},k=function(e){e in C||s(C,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},E=l(y),A=0;while(E.length>A)k(E[A++]);b.constructor=C,C.prototype=b,d(i,"RegExp",C)}g("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(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 r=n("d784"),i=n("825a"),o=n("50c4"),a=n("a691"),s=n("1d80"),l=n("8aa5"),u=n("0cb2"),c=n("14c3"),f=Math.max,d=Math.min,h=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,m=p?"$":"$0";return[function(n,r){var i=s(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!p&&g||"string"===typeof r&&-1===r.indexOf(m)){var s=n(t,e,this,r);if(s.done)return s.value}var v=i(e),y=String(this),b="function"===typeof r;b||(r=String(r));var _=v.global;if(_){var w=v.unicode;v.lastIndex=0}var x=[];while(1){var O=c(v,y);if(null===O)break;if(x.push(O),!_)break;var S=String(O[0]);""===S&&(v.lastIndex=l(y,o(v.lastIndex),w))}for(var C="",k=0,E=0;E<x.length;E++){O=x[E];for(var A=String(O[0]),T=f(d(a(O.index),y.length),0),D=[],M=1;M<O.length;M++)D.push(h(O[M]));var P=O.groups;if(b){var I=[A].concat(D,T,y);void 0!==P&&I.push(P);var j=String(r.apply(void 0,I))}else j=u(A,y,T,D,P,r);T>=k&&(C+=y.slice(k,T)+j,k=T+A.length)}return C+y.slice(k)}]}))},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6547:function(e,t,n){var r=n("a691"),i=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(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)}},"65f0":function(e,t,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(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 r,i,o,a=n("7f9a"),s=n("da84"),l=n("861d"),u=n("9112"),c=n("5135"),f=n("c6cd"),d=n("f772"),h=n("d012"),p=s.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},m=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=f.state||(f.state=new p),y=v.get,b=v.has,_=v.set;r=function(e,t){return t.facade=e,_.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=d("state");h[w]=!0,r=function(e,t){return t.facade=e,u(e,w,t),t},i=function(e){return c(e,w)?e[w]:{}},o=function(e){return c(e,w)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:m}},"6eeb":function(e,t,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),u=l.get,c=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,s){var l,u=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l=c(n),l.source||(l.source=f.join("string"==typeof t?t:""))),e!==r?(u?!h&&e[t]&&(d=!0):delete e[t],d?e[t]=n:i(e,t,n)):d?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},7156:function(e,t,n){var r=n("861d"),i=n("d2bb");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(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 r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),f=">",d="<",h="prototype",p="script",g=c("IE_PROTO"),m=function(){},v=function(e){return d+p+f+e+d+"/"+p+f},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("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{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?y(r):b();var e=a.length;while(e--)delete _[h][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=i(e),n=new m,m[h]=null,n[g]=e):n=_(),void 0===t?n:o(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),f=n("c430"),d=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,h,w,x){i(n,t,c);var O,S,C,k=function(e){if(e===h&&M)return M;if(!g&&e in T)return T[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",A=!1,T=e.prototype,D=T[m]||T["@@iterator"]||h&&T[h],M=!g&&D||k(h),P="Array"==t&&T.entries||D;if(P&&(O=o(P.call(new e)),p!==Object.prototype&&O.next&&(f||o(O)===p||(a?a(O,p):"function"!=typeof O[m]&&l(O,m,_)),s(O,E,!0,!0),f&&(d[E]=_))),h==y&&D&&D.name!==y&&(A=!0,M=function(){return D.call(this)}),f&&!x||T[m]===M||l(T,m,M),d[t]=M,h)if(S={values:k(y),keys:w?M:k(v),entries:k(b)},x)for(C in S)(g||A||!(C in T))&&u(T,C,S[C]);else r({target:t,proto:!0,forced:g||A},S);return S}},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,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(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(h.stack)||a.exec(h.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===l)return f[d];if(l===c&&f[d].innerHTML&&f[d].innerHTML.trim()===i)return f[d]}return null}}return e}))},8925:function(e,t,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var r=n("ad6d"),i=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}(),u=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],f=l||c||u;f&&(s=function(e){var t,n,i,s,f=this,d=u&&f.sticky,h=r.call(f),p=f.source,g=0,m=e;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",h)),c&&(n=new RegExp("^"+p+"$(?!\\s)",h)),l&&(t=f.lastIndex),i=o.call(d?n:f,m),d?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:l&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},"94ca":function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),u=n("8418"),c=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},_=!v||!y;r({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,r,i,o,a=s(this),f=c(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],b(o)){if(i=l(o.length),d+i>g)throw TypeError(m);for(n=0;n<i;n++,d++)n in o&&u(f,d,o[n])}else{if(d>=g)throw TypeError(m);u(f,d++,o)}return f.length=d,f}})},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}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 r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=l,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),u=n("fdbf"),c=n("d039"),f=n("5135"),d=n("e8b5"),h=n("861d"),p=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),y=n("5c6c"),b=n("7c73"),_=n("df75"),w=n("241c"),x=n("057f"),O=n("7418"),S=n("06cf"),C=n("9bf2"),k=n("d1e7"),E=n("9112"),A=n("6eeb"),T=n("5692"),D=n("f772"),M=n("d012"),P=n("90e3"),I=n("b622"),j=n("e538"),L=n("746f"),N=n("d44e"),R=n("69f3"),B=n("b727").forEach,$=D("hidden"),F="Symbol",z="prototype",q=I("toPrimitive"),U=R.set,H=R.getterFor(F),V=Object[z],W=i.Symbol,K=o("JSON","stringify"),G=S.f,Y=C.f,X=x.f,Z=k.f,Q=T("symbols"),J=T("op-symbols"),ee=T("string-to-symbol-registry"),te=T("symbol-to-string-registry"),ne=T("wks"),re=i.QObject,ie=!re||!re[z]||!re[z].findChild,oe=s&&c((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G(V,t);r&&delete V[t],Y(e,t,n),r&&e!==V&&Y(V,t,r)}:Y,ae=function(e,t){var n=Q[e]=b(W[z]);return U(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,n){e===V&&le(J,t,n),p(e);var r=v(t,!0);return p(n),f(Q,r)?(n.enumerable?(f(e,$)&&e[$][r]&&(e[$][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,$)||Y(e,$,y(1,{})),e[$][r]=!0),oe(e,r,n)):Y(e,r,n)},ue=function(e,t){p(e);var n=m(t),r=_(n).concat(pe(n));return B(r,(function(t){s&&!fe.call(n,t)||le(e,t,n[t])})),e},ce=function(e,t){return void 0===t?b(e):ue(b(e),t)},fe=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===V&&f(Q,t)&&!f(J,t))&&(!(n||!f(this,t)||!f(Q,t)||f(this,$)&&this[$][t])||n)},de=function(e,t){var n=m(e),r=v(t,!0);if(n!==V||!f(Q,r)||f(J,r)){var i=G(n,r);return!i||!f(Q,r)||f(n,$)&&n[$][r]||(i.enumerable=!0),i}},he=function(e){var t=X(m(e)),n=[];return B(t,(function(e){f(Q,e)||f(M,e)||n.push(e)})),n},pe=function(e){var t=e===V,n=X(t?J:m(e)),r=[];return B(n,(function(e){!f(Q,e)||t&&!f(V,e)||r.push(Q[e])})),r};if(l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function(e){this===V&&n.call(J,e),f(this,$)&&f(this[$],t)&&(this[$][t]=!1),oe(this,t,y(1,e))};return s&&ie&&oe(V,t,{configurable:!0,set:n}),ae(t,e)},A(W[z],"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(e){return ae(P(e),e)})),k.f=fe,C.f=le,S.f=de,w.f=x.f=he,O.f=pe,j.f=function(e){return ae(I(e),e)},s&&(Y(W[z],"description",{configurable:!0,get:function(){return H(this).description}}),a||A(V,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(_(ne),(function(e){L(e)})),r({target:F,stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ce,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){O.f(1)}))},{getOwnPropertySymbols:function(e){return O.f(g(e))}}),K){var ge=!l||c((function(){var e=W();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,K.apply(null,i)}})}W[z][q]||E(W[z],q,W[z].valueOf),N(W,F),M[$]=!0},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(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}},ae93:function(e,t,n){"use strict";var r,i,o,a=n("d039"),s=n("e163"),l=n("9112"),u=n("5135"),c=n("b622"),f=n("c430"),d=c("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):h=!0);var g=void 0==r||a((function(){var e={};return r[d].call(e)!==e}));g&&(r={}),f&&!g||u(r,d)||l(r,d,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),u=i("wks"),c=r.Symbol,f=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=f("Symbol."+e)),u[e]}},b727:function(e,t,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,f=6==e,d=7==e,h=5==e||f;return function(p,g,m,v){for(var y,b,_=o(p),w=i(_),x=r(g,m,3),O=a(w.length),S=0,C=v||s,k=t?C(p,O):n||d?C(p,0):void 0;O>S;S++)if((h||S in w)&&(y=w[S],b=x(y,S,_),e))if(t)k[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(k,y)}else switch(e){case 4:return!1;case 7:l.call(k,y)}return f?-1:u||c?c:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;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 r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},ca84:function(e,t,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[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 r=n("428f"),i=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),i=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 r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((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,f){var p=o(e),g=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!i((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&&(!u||!c||d)||"split"===e&&!h){var v=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===a?g&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[p],"sham",!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"))},ddb0:function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var f in i){var d=r[f],h=d&&d.prototype;if(h){if(h[l]!==c)try{a(h,l,c)}catch(g){h[l]=c}if(h[u]||a(h,u,f),i[f])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(g){h[p]=o[p]}}}},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,u=n("e893"),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};u(d,c);var h=d.prototype=c.prototype;h.constructor=d;var p=h.toString,g="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(f,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e163:function(e,t,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(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 r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",u=a.set,c=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){u(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},f5df:function(e,t,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}function a(e){return 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},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("5319"),n("ac1f"),n("4d63"),n("25f0"),n("99af");var c=function(){return!(!window.ActiveXobject&&!("ActiveXObject"in window))},f=function(){return!!/Trident\/7\./.test(navigator.userAgent)},d=function(e){return c()||f()?e.removeNode(!0):e.remove(),e},h=function(){function e(t){s(this,e),this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,t),this.init()}return u(e,[{key:"init",value:function(){this.counter++,this.settings.id="printArea_".concat(this.counter);var e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);var t=this;if(this.settings.asyncUrl)t.settings.asyncUrl((function(e){var n=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(n)}),t.settings.vue);else{var n=this.getPrintWindow(e);this.settings.url||this.write(n.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(n)}}},{key:"addEvent",value:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},{key:"previewIfrmaeLoad",value:function(){var e=document.getElementById("vue-pirnt-nb-previewBox");if(e){var t=this,n=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(n,"load",(function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()})),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",(function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),n.contentWindow.print(),t.settings.closeCallback()}))}}},{key:"removeCanvasImg",value:function(){var e=this;try{if(e.elsdom)for(var t=e.elsdom.querySelectorAll(".canvasImg"),n=0;n<t.length;n++)d(t[n])}catch(r){console.log(r)}}},{key:"print",value:function(e){var t=this,n=document.getElementById(this.settings.id)||e.f,r=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow,i=function(){r.focus(),t.settings.openCallback(),r.print(),d(n),t.settings.closeCallback(),t.removeCanvasImg()};t.settings.beforeOpenCallback(),t.addEvent(n,"load",(function(){i()}))}},{key:"write",value:function(e){e.open(),e.write("".concat(this.docType(),"<html>").concat(this.getHead()).concat(this.getBody(),"</html>")),e.close()}},{key:"docType",value:function(){if(this.settings.standard===this.standards.html5)return"<!DOCTYPE html>";var e=this.settings.standard===this.standards.loose?" Transitional":"",t=this.settings.standard===this.standards.loose?"loose":"strict";return'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01'.concat(e,'//EN" "http://www.w3.org/TR/html4/').concat(t,'.dtd">')}},{key:"getHead",value:function(){var e="",t="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(function(t){e+=t})),[].forEach.call(document.querySelectorAll("link"),(function(e){e.href.indexOf(".css")>=0&&(t+='<link type="text/css" rel="stylesheet" href="'.concat(e.href,'" >'))}));var r=document.styleSheets;if(r&&r.length>0)for(var i=0;i<r.length;i++)try{if(r[i].cssRules||r[i].rules)for(var o=r[i].cssRules||r[i].rules,a=0;a<o.length;a++)n+=o[a].cssText}catch(s){console.log(r[i].href+s)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,(function(e){t+='<link type="text/css" rel="stylesheet" href="'.concat(e,'">')})),"<head><title>".concat(this.settings.popTitle,"</title>").concat(e).concat(t,'<style type="text/css">').concat(n,"</style></head>")}},{key:"getBody",value:function(){var e=this.settings.ids;e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e));var t=this.getFormData(this.elsdom),n=t.outerHTML;return"<body>"+n+"</body>"}},{key:"beforeHanler",value:function(e){for(var t=e.querySelectorAll("canvas"),n=0;n<t.length;n++)if(!t[n].style.display){var r=t[n].parentNode,i=t[n].toDataURL("image/png"),o=new Image;o.className="canvasImg",o.style.display="none",o.src=i,r.appendChild(o)}return e}},{key:"getFormData",value:function(e){for(var t=e.cloneNode(!0),n=t.querySelectorAll("input,select,textarea"),r=t.querySelectorAll(".canvasImg,canvas"),i=-1,o=0;o<r.length;o++){var a=r[o].parentNode,s=r[o];"canvas"===s.tagName.toLowerCase()?a.removeChild(s):s.style.display="block"}for(var l=0;l<n.length;l++){var u=n[l],c=u.getAttribute("type"),f=n[l];if(c||(c="SELECT"===u.tagName?"select":"TEXTAREA"===u.tagName?"textarea":""),"INPUT"===u.tagName)"radio"===c||"checkbox"===c?u.checked&&f.setAttribute("checked",u.checked):(f.value=u.value,f.setAttribute("value",u.value));else if("select"===c){i++;for(var d=0;d<e.querySelectorAll("select").length;d++){var h=e.querySelectorAll("select")[d];if(!h.getAttribute("newbs")&&h.setAttribute("newbs",d),h.getAttribute("newbs")==i){var p=e.querySelectorAll("select")[i].selectedIndex;u.options[p].setAttribute("selected",!0)}}}else f.innerHTML=u.value,f.setAttribute("html",u.value)}return t}},{key:"getPrintWindow",value:function(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}},{key:"previewBoxShow",value:function(){var e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}},{key:"previewBoxHide",value:function(){var e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&d(e.querySelector("iframe")),e.style.display="none")}},{key:"previewBox",value:function(){var e=document.getElementById("vue-pirnt-nb-previewBox"),t="previewBody";if(e)return e.querySelector("iframe")&&d(e.querySelector("iframe")),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".".concat(t))};var n=document.createElement("div");n.setAttribute("id","vue-pirnt-nb-previewBox"),n.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),n.style.zIndex=this.settings.zIndex;var r=document.createElement("div");r.setAttribute("class","previewHeader"),r.setAttribute("style","padding: 5px 20px;"),r.innerHTML=this.settings.previewTitle,n.appendChild(r),this.close=document.createElement("div");var i=this.close;i.setAttribute("class","previewClose"),i.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");var o=document.createElement("div"),a=document.createElement("div");o.setAttribute("class","closeBefore"),o.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),a.setAttribute("class","closeAfter"),a.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),i.appendChild(o),i.appendChild(a),r.appendChild(i),this.previewBody=document.createElement("div");var s=this.previewBody;s.setAttribute("class",t),s.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),n.appendChild(s);var l=document.createElement("div");l.setAttribute("class","previewBodyUtil"),l.setAttribute("style","height: 32px;background: #474747;position: relative;"),s.appendChild(l),this.previewBodyUtilPrintBtn=document.createElement("div");var u=this.previewBodyUtilPrintBtn;return u.setAttribute("class","previewBodyUtilPrintBtn"),u.innerHTML=this.settings.previewPrintBtnLabel,u.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),l.appendChild(u),document.body.appendChild(n),{close:this.close,previewBody:this.previewBody}}},{key:"iframeBox",value:function(e,t){var n=document.createElement("iframe");return n.style.border="0px",n.style.position="absolute",n.style.width="0px",n.style.height="0px",n.style.right="0px",n.style.top="0px",n.setAttribute("id",e),n.setAttribute("src",t),n}},{key:"Iframe",value:function(e){var t=this.settings.id;e=e||(new Date).getTime();var n=this,r=this.iframeBox(t,e);try{if(this.settings.preview){r.setAttribute("style","border: 0px;flex: 1;");var i=this.previewBox(),o=i.previewBody,a=i.close;o.appendChild(r),this.addEvent(a,"click",(function(){n.previewBoxHide()}))}else document.body.appendChild(r);r.doc=null,r.doc=r.contentDocument?r.contentDocument:r.contentWindow?r.contentWindow.document:r.document}catch(s){throw new Error(s+". iframes may not be supported in this browser.")}if(null==r.doc)throw new Error("Cannot find document.");return r}}]),e}(),p=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},g={directiveName:"print",bind:function(e,t,n){var r=n.context,i="";p(e,"click",(function(){r.$nextTick((function(){var e,n;if(null!==t&&void 0!==t&&null!==(e=t.value)&&void 0!==e&&e.clickMounted&&t.value.clickMounted(r),"string"===typeof t.value)i=t.value,o();else if("object"===a(t.value)&&t.value.id){i=t.value.id;var s=i.replace(new RegExp("#","g"),""),l=document.getElementById(s);l||(console.log("id in Error"),i=""),o()}else{if(null===t||void 0===t||null===(n=t.value)||void 0===n||!n.preview)return void window.print();o()}}))}));var o=function(){new h({ids:i,vue:r,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,previewTitle:t.value.previewTitle||"打印预览",zIndex:t.value.zIndex||20002,previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback:function(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(r)},previewOpenCallback:function(){t.value.previewOpenCallback&&t.value.previewOpenCallback(r)},openCallback:function(){t.value.openCallback&&t.value.openCallback(r)},closeCallback:function(){t.value.closeCallback&&t.value.closeCallback(r)},beforeOpenCallback:function(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(r)}})}},install:function(e){e.directive("print",g)}},m=g;t["default"]=m},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(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 r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})}))},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */
function o(e,t){if(!i.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&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),f=">",d="<",h="prototype",p="script",g=c("IE_PROTO"),m=function(){},v=function(e){return d+p+f+e+d+"/"+p+f},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("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{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=r?y(r):b();var e=a.length;while(e--)delete _[h][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[h]=i(e),n=new m,m[h]=null,n[g]=e):n=_(),void 0===t?n:o(n,t)}},"7d6c":function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return O})),n.d(t,"H",(function(){return j})),n.d(t,"G",(function(){return F})),n.d(t,"r",(function(){return U})),n.d(t,"C",(function(){return H})),n.d(t,"q",(function(){return V})),n.d(t,"B",(function(){return W})),n.d(t,"s",(function(){return K})),n.d(t,"D",(function(){return G})),n.d(t,"k",(function(){return X})),n.d(t,"l",(function(){return Q})),n.d(t,"m",(function(){return J})),n.d(t,"t",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"w",(function(){return ne})),n.d(t,"K",(function(){return re})),n.d(t,"L",(function(){return ie})),n.d(t,"u",(function(){return oe})),n.d(t,"o",(function(){return ae})),n.d(t,"J",(function(){return le})),n.d(t,"p",(function(){return ue})),n.d(t,"I",(function(){return de})),n.d(t,"F",(function(){return he})),n.d(t,"y",(function(){return pe})),n.d(t,"n",(function(){return ge})),n.d(t,"v",(function(){return me})),n.d(t,"A",(function(){return ve})),n.d(t,"z",(function(){return ye})),n.d(t,"E",(function(){return be}));var r=n("6d8b"),i=n("861c"),o=n("41ef"),a=n("e0d3"),s=n("cbe5"),l=1,u={},c=Object(a["o"])(),f=Object(a["o"])(),d=0,h=1,p=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,y=9,b="highlight",_="downplay",w="select",x="unselect",O="toggleSelect";function S(e){return null!=e&&"none"!==e}function C(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function k(e){C(e,"emphasis",p)}function E(e){e.hoverState===p&&C(e,"normal",d)}function A(e){C(e,"blur",h)}function T(e){e.hoverState===h&&C(e,"normal",d)}function D(e){e.selected=!0}function M(e){e.selected=!1}function P(e,t,n){t(e,n)}function I(e,t,n){P(e,t,n),e.isGroup&&e.traverse((function(e){P(e,t,n)}))}function j(e,t){switch(t){case"emphasis":e.hoverState=p;break;case"normal":e.hoverState=d;break;case"blur":e.hoverState=h;break;case"select":e.selected=!0}}function L(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}function N(e,t,n,i){var a=n&&Object(r["indexOf"])(n,"select")>=0,l=!1;if(e instanceof s["b"]){var u=c(e),f=a&&u.selectFill||u.normalFill,d=a&&u.selectStroke||u.normalStroke;if(S(f)||S(d)){i=i||{};var h=i.style||{};"inherit"===h.fill?(l=!0,i=Object(r["extend"])({},i),h=Object(r["extend"])({},h),h.fill=f):!S(h.fill)&&S(f)?(l=!0,i=Object(r["extend"])({},i),h=Object(r["extend"])({},h),h.fill=Object(o["liftColor"])(f)):!S(h.stroke)&&S(d)&&(l||(i=Object(r["extend"])({},i),h=Object(r["extend"])({},h)),h.stroke=Object(o["liftColor"])(d)),i.style=h}}if(i&&null==i.z2){l||(i=Object(r["extend"])({},i));var p=e.z2EmphasisLift;i.z2=e.z2+(null!=p?p:v)}return i}function R(e,t,n){if(n&&null==n.z2){n=Object(r["extend"])({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:y)}return n}function B(e,t,n){var i=Object(r["indexOf"])(e.currentStates,t)>=0,o=e.style.opacity,a=i?null:L(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return null==s.opacity&&(n=Object(r["extend"])({},n),s=Object(r["extend"])({opacity:i?o:.1*a.opacity},s),n.style=s),n}function $(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return N(this,e,t,n);if("blur"===e)return B(this,e,n);if("select"===e)return R(this,e,n)}return n}function F(e){e.stateProxy=$;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=$),n&&(n.stateProxy=$)}function z(e,t){!Y(e,t)&&!e.__highByOuter&&I(e,k)}function q(e,t){!Y(e,t)&&!e.__highByOuter&&I(e,E)}function U(e,t){e.__highByOuter|=1<<(t||0),I(e,k)}function H(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&I(e,E)}function V(e){I(e,A)}function W(e){I(e,T)}function K(e){I(e,D)}function G(e){I(e,M)}function Y(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function X(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=f(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){T(e)})),a&&n.push(r)),o.isBlured=!1})),Object(r["each"])(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Z(e,t,n,i){var o=i.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&W(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var s=o.getSeriesByIndex(e),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries((function(e){var o=s===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&l?c===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!d||"series"===t&&o)){var h=i.getViewOfSeriesModel(e);if(h.group.traverse((function(e){e.__highByOuter&&o&&"self"===t||A(e)})),Object(r["isArrayLike"])(t))a(e.getData(),t);else if(Object(r["isObject"])(t))for(var p=Object(r["keys"])(t),g=0;g<p.length;g++)a(e.getData(p[g]),t[p[g]]);u.push(e),f(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}}))}}function Q(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){f(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){A(e)}))}}}function J(e,t,n){var o=e.seriesIndex,s=e.getData(t.dataType);if(s){var l=Object(a["u"])(s,t);l=(Object(r["isArray"])(l)?l[0]:l)||0;var u=s.getItemGraphicEl(l);if(!u){var c=s.count(),f=0;while(!u&&f<c)u=s.getItemGraphicEl(f++)}if(u){var d=Object(i["a"])(u);Z(o,d.focus,d.blurScope,n)}else{var h=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=h&&Z(o,h,p,n)}}}function ee(e,t,n,r){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var a=r.getModel().getComponent(e,t);if(!a)return o;var s=r.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,u=s.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Object(i["a"])(u[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:u}}function te(e,t,n){var o=Object(i["a"])(e),a=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&Q(o.componentMainType,o.componentIndex,n),Object(r["each"])(s,(function(e){return z(e,t)}))):(Z(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&Q(o.componentMainType,o.componentIndex,n),z(e,t))}function ne(e,t,n){X(n);var o=Object(i["a"])(e),a=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?Object(r["each"])(a,(function(e){return q(e,t)})):q(e,t)}function re(e,t,n){if(ve(t)){var i=t.dataType,o=e.getData(i),s=Object(a["u"])(o,t);Object(r["isArray"])(s)||(s=[s]),e[t.type===O?"toggleSelect":t.type===w?"select":"unselect"](s,i)}}function ie(e){var t=e.getAllData();Object(r["each"])(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?K(t):G(t)}))}))}function oe(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(r["each"])(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function ae(e,t,n){he(e,!0),I(e,F),ue(e,t,n)}function se(e){he(e,!1)}function le(e,t,n,r){r?se(e):ae(e,t,n)}function ue(e,t,n){var r=Object(i["a"])(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var ce=["emphasis","blur","select"],fe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function de(e,t,n,r){n=n||"itemStyle";for(var i=0;i<ce.length;i++){var o=ce[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=r?r(a):a[fe[n]]()}}function he(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function pe(e){return!(!e||!e.__highDownDispatcher)}function ge(e,t,n){var r=Object(i["a"])(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function me(e){var t=u[e];return null==t&&l<=32&&(t=u[e]=l++),t}function ve(e){var t=e.type;return t===w||t===x||t===O}function ye(e){var t=e.type;return t===b||t===_}function be(e){var t=c(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}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a=n("ae40"),s="find",l=!0,u=a(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),u=n("6eeb"),c=n("b622"),f=n("c430"),d=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,m=c("iterator"),v="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,c,h,w,x){i(n,t,c);var O,S,C,k=function(e){if(e===h&&M)return M;if(!g&&e in T)return T[e];switch(e){case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",A=!1,T=e.prototype,D=T[m]||T["@@iterator"]||h&&T[h],M=!g&&D||k(h),P="Array"==t&&T.entries||D;if(P&&(O=o(P.call(new e)),p!==Object.prototype&&O.next&&(f||o(O)===p||(a?a(O,p):"function"!=typeof O[m]&&l(O,m,_)),s(O,E,!0,!0),f&&(d[E]=_))),h==y&&D&&D.name!==y&&(A=!0,M=function(){return D.call(this)}),f&&!x||T[m]===M||l(T,m,M),d[t]=M,h)if(S={values:k(y),keys:w?M:k(v),entries:k(b)},x)for(C in S)(g||A||!(C in T))&&u(T,C,S[C]);else r({target:t,proto:!0,forced:g||A},S);return S}},"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 r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(e[i]=o)}}return e}},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var r=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)},i=[];r._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,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox-group.vue";var f=c.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},8096:function(e,t,n){},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},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 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};t.noop=u,t.hasOwn=c,t.toObject=d,t.getPropByPath=h,t.rafThrottle=y,t.objToArray=b;var i=n("2b0e"),o=s(i),a=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function u(){}function c(e,t){return l.call(e,t)}function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&f(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function h(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[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":r(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),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),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&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 y(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(r){e.apply(n,i),t=!1})))}}function b(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)}},8172:function(e,t,n){var r=n("746f");r("toPrimitive")},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},"840a":function(e,t){var n,r=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"];if(function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}()){var i=EventTarget.prototype.addEventListener;n=i,EventTarget.prototype.addEventListener=function(e,t,i){var o,a="object"==typeof i&&null!==i,s=a?i.capture:i;(i=a?function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({},e):e}(i):{}).passive=void 0!==(o=i.passive)?o:-1!==r.indexOf(e)&&!0,i.capture=void 0!==s&&s,n.call(this,e,t,i)},EventTarget.prototype.addEventListener._original=n}},8418:function(e,t,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("1d80"),a=n("129f"),s=n("14c3");r("search",1,(function(e,t,n){return[function(t){var n=o(this),r=void 0==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=i(e),l=String(this),u=o.lastIndex;a(u,0)||(o.lastIndex=0);var c=s(o,l);return a(o.lastIndex,u)||(o.lastIndex=u),null===c?-1:c.index}]}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},97:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},i=[];r._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),l=Object(s["a"])(a,r,i,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"848b":function(e,t,n){"use strict";var r=n("4a0c"),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}function l(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(e,t,n){var i=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:l,validators:i}},"84ec":function(e,t,n){n("2401")},"857a":function(e,t,n){var r=n("1d80"),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},"857d":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=2*Math.PI;function i(e){return e%=r,e<0&&(e+=r),e}},8582:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n("1687"),i=n("401b"),o=r["identity"],a=5e-5;function s(e){return e>a||e<-a}var l=[],u=[],c=r["create"](),f=Math.abs,d=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 s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r["create"](),t?this.getLocalTransform(n):o(n),e&&(t?r["mul"](n,e,n):r["copy"](n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,i=l[1]<0?-1:1,o=((l[0]-n)*t+n)/l[0]||0,a=((l[1]-i)*t+i)/l[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||r["create"](),r["invert"](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],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,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&&(e.invTransform=e.invTransform||r["create"](),r["mul"](u,e.invTransform,t),t=u);var n=this.originX,i=this.originY;(n||i)&&(c[4]=n,c[5]=i,r["mul"](u,t,c),u[4]-=n,u[5]-=i,t=u),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],r=this.invTransform;return r&&i["applyTransform"](n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i["applyTransform"](n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&f(e[0]-1)>1e-10&&f(e[3]-1)>1e-10?Math.sqrt(f(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,g=i+l;t[4]=-p*o-d*g*a,t[5]=-g*a-h*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=h*o,t[2]=d*a,u&&r["rotate"](t,t,u),t[4]+=n+c,t[5]+=i+f,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}(),h=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;n<h.length;n++){var r=h[n];e[r]=t[r]}}t["c"]=d},"85e7":function(e,t,n){var r=n("1a14"),i=n("77e9"),o=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,l=0;while(s>l)r.f(e,n=a[l++],t[n]);return e}},"861c":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("e0d3"),i=Object(r["o"])(),o=function(e,t,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8728:function(e,t,n){"use strict";function r(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}n.d(t,"a",(function(){return r}))},"87b1":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("4fac"),a=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!0)},t}(i["b"]);s.prototype.type="polygon",t["a"]=s},8863:function(e,t,n){n("9dd9")},"88b3":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r="\0__throttleOriginMethod",i="\0__throttleRate",o="\0__throttleType";function a(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function f(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var h=s||t,p=s||n;s=null,i=r-(p?l:u)-h,clearTimeout(c),p?c=setTimeout(f,h):i>=0?f():c=setTimeout(f,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function s(e,t,n,s){var l=e[t];if(l){var u=l[r]||l,c=l[o],f=l[i];if(f!==n||c!==s){if(null==n||!s)return e[t]=u;l=e[t]=a(u,n,"debounce"===s),l[r]=u,l[o]=s,l[i]=n}return l}}function l(e,t){var n=e[t];n&&n[r]&&(n.clear&&n.clear(),e[t]=n[r])}},"88b6":function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(e,t,n){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";e.execCommand(r,!1,!1===n?null:{"list-style-type":n})},r={applyListFormat:n},i=function(e){e.addCommand("ApplyUnorderedListStyle",(function(t,n){r.applyListFormat(e,"UL",n["list-style-type"])})),e.addCommand("ApplyOrderedListStyle",(function(t,n){r.applyListFormat(e,"OL",n["list-style-type"])}))},o={register:i},a=function(e){var t=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},s=function(e){var t=e.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},l={getNumberStyles:a,getBulletStyles:s},u=function(){},c=function(e){return function(){return e}},f=c(!1),d=c(!0),h=function(){return p},p=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:f,isSome:f,isNone:d,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(void 0),or:n,orThunk:t,map:h,each:u,bind:h,exists:f,forall:d,filter:h,equals:e,equals_:e,toArray:function(){return[]},toString:c("none()")};return Object.freeze&&Object.freeze(r),r}(),g=function(e){var t=c(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:d,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return g(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:p},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(f,(function(t){return n(e,t)}))}};return i},m=function(e){return null===e||void 0===e?p:g(e)},v={some:g,none:h,from:m},y=function(e,t){return e.$.contains(e.getBody(),t)},b=function(e){return e&&/^(TH|TD)$/.test(e.nodeName)},_=function(e){return function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&y(e,t)}},w=function(e){var t=e.dom.getParent(e.selection.getNode(),"ol,ul"),n=e.dom.getStyle(t,"listStyleType");return v.from(n)},x={isTableCellNode:b,isListNode:_,getSelectedStyleType:w},O=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return n}return-1},S=function(e){return e.replace(/\-/g," ").replace(/\b\w/g,(function(e){return e.toUpperCase()}))},C=function(e,n,r){var i=O(n.parents,x.isTableCellNode),o=-1!==i?n.parents.slice(0,i):n.parents,a=t.grep(o,x.isListNode(e));return a.length>0&&a[0].nodeName===r},k=function(e,n,i,o,a,s){e.ui.registry.addSplitButton(n,{tooltip:i,icon:"OL"===a?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(e){var n=t.map(s,(function(e){var t="OL"===a?"num":"bull",n="disc"===e||"decimal"===e?"default":e,r="default"===e?"":e,i=S(e);return{type:"choiceitem",value:r,icon:"list-"+t+"-"+n,text:i}}));e(n)},onAction:function(){return e.execCommand(o)},onItemAction:function(t,n){r.applyListFormat(e,a,n)},select:function(t){var n=x.getSelectedStyleType(e);return n.map((function(e){return t===e})).getOr(!1)},onSetup:function(t){var n=function(n){t.setActive(C(e,n,a))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}})},E=function(e,t,n,r,i,o){e.ui.registry.addToggleButton(t,{active:!1,tooltip:n,icon:"OL"===i?"ordered-list":"unordered-list",onSetup:function(t){var n=function(n){t.setActive(C(e,n,i))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}},onAction:function(){return e.execCommand(r)}})},A=function(e,t,n,r,i,o){o.length>0?k(e,t,n,r,i,o):E(e,t,n,r,i)},T=function(e){A(e,"numlist","Numbered list","InsertOrderedList","OL",l.getNumberStyles(e)),A(e,"bullist","Bullet list","InsertUnorderedList","UL",l.getBulletStyles(e))},D={register:T};function M(){e.add("advlist",(function(e){var n=function(e,n){var r=e.settings.plugins?e.settings.plugins:"";return-1!==t.inArray(r.split(/[ ,]/),n)};n(e,"lists")&&(D.register(e),o.register(e))}))}M()})()},8918:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u}));var r=n("6d8b"),i=n("625e"),o=Math.round(10*Math.random());function a(e){return[e||"",o++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i["f"])(e);t[r.main]=n},e.determineSubType=function(n,r){var o=r.type;if(!o){var a=Object(i["f"])(n).main;e.hasSubTypes(n)&&t[a]&&(o=t[a](r))}return o}}function l(e,t){function n(e){var n={},a=[];return r["each"](e,(function(s){var l=i(n,s),u=l.originalDeps=t(s),c=o(u,e);l.entryCount=c.length,0===l.entryCount&&a.push(s),r["each"](c,(function(e){r["indexOf"](l.predecessor,e)<0&&l.predecessor.push(e);var t=i(n,e);r["indexOf"](t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:a}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return r["each"](e,(function(e){r["indexOf"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,o){if(e.length){var a=n(t),s=a.graph,l=a.noEntryList,u={};r["each"](e,(function(e){u[e]=!0}));while(l.length){var c=l.pop(),f=s[c],d=!!u[c];d&&(i.call(o,c,f.originalDeps.slice()),delete u[c]),r["each"](f.successor,d?p:h)}r["each"](u,(function(){var e="";throw new Error(e)}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){u[e]=!0,h(e)}}}function u(e,t){return r["merge"](r["merge"]({},e,!0),t,!0)}},8925:function(e,t,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8a0d":function(e,t){e.exports={}},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8b1a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},132:function(e,t,n){"use strict";n.r(t);var r,i,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,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"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,r,i,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"8c4f":function(e,t,n){"use strict";
/*!
  * vue-router v3.4.9
  * (c) 2020 Evan You
  * @license MIT
  */function r(e,t){0}function i(e,t){for(var n in t)e[n]=t[n];return e}var o=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,l=function(e){return encodeURIComponent(e).replace(o,a).replace(s,",")};function u(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var r,i=n||d;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(f):f(a)}return r}var f=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("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),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 l(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(l(t)):r.push(l(t)+"="+l(e)))})),r.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function g(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=m(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,i),matched:e?y(e):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var v=g(null,{path:"/"});function y(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||h;return(n||"/")+o(r)+i}function _(e,t){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&w(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params)))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?w(o,s):String(o)===String(s)}))}function x(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&O(e.query,t.query)}function O(e,t){for(var n in t)if(!(n in e))return!1;return!0}function S(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var C={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,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),f=0,d=!1;while(o&&o._routerRoot!==o){var h=o.$vnode?o.$vnode.data:{};h.routerView&&f++,h.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(a.routerViewDepth=f,d){var p=c[l],g=p&&p.component;return g?(p.configProps&&k(g,a,p.route,p.configProps),s(g,a,r)):s()}var m=u.matched[f],v=m&&m.components[l];if(!m||!v)return c[l]=null,s();c[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),S(u)};var y=m.props&&m.props[l];return y&&(i(c[l],{route:u,configProps:y}),k(v,a,u,y)),s(v,a,r)}};function k(e,t,n,r){var o=t.props=E(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 E(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 A(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function T(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function D(e){return e.replace(/\/\//g,"/")}var M=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},P=Z,I=B,j=$,L=q,N=X,R=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=R.exec(e))){var l=n[0],u=n[1],c=n.index;if(a+=e.slice(o,c),o=c+l.length,u)a+=u[1];else{var f=e[o],d=n[2],h=n[3],p=n[4],g=n[5],m=n[6],v=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=f&&f!==d,b="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||s,x=p||g;r.push({name:h||i++,prefix:d||"",delimiter:w,optional:_,repeat:b,partial:y,asterisk:!!v,pattern:x?H(x):v?".*":"[^"+U(w)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function $(e,t){return q(B(e,t),t)}function F(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 q(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",W(t)));return function(t,r){for(var i="",o=t||{},a=r||{},s=a.pretty?F:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!==typeof u){var c,f=o[u.name];if(null==f){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(M(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(c=s(f[d]),!n[l].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===d?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?z(f):s(f),!n[l].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');i+=u.prefix+c}}else i+=u}return i}}function U(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function V(e,t){return e.keys=t,e}function W(e){return e&&e.sensitive?"":"i"}function K(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return V(e,t)}function G(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(Z(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",W(n));return V(o,t)}function Y(e,t,n){return X(B(e,n),t,n)}function X(e,t,n){M(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=U(s);else{var l=U(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+l+u+")*"),u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")",o+=u}}var c=U(n.delimiter||"/"),f=o.slice(-c.length)===c;return r||(o=(f?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+c+"|$)",V(new RegExp("^"+o,W(n)),t)}function Z(e,t,n){return M(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?K(e,t):M(e)?G(e,t,n):Y(e,t,n)}P.parse=I,P.compile=j,P.tokensToFunction=L,P.tokensToRegExp=N;var Q=Object.create(null);function J(e,t,n){t=t||{};try{var r=Q[e]||(Q[e]=P.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function ee(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=J(l,s,"path "+t.path)}else 0;return o}var u=T(o.path||""),f=t&&t.path||"/",d=u.path?A(u.path,f,n||o.append):f,h=c(u.query,o.query,r&&r.options.parseQuery),p=o.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:h,hash:p}}var te,ne=[String,Object],re=[String,Array],ie=function(){},oe={name:"RouterLink",props:{to:{type:ne,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:re,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,u={},c=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==c?"router-link-active":c,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?h:this.exactActiveClass,v=s.redirectedFrom?g(null,ee(s.redirectedFrom),null,n):s;u[m]=_(r,v),u[p]=this.exact?u[m]:x(r,v);var y=u[m]?this.ariaCurrentValue:null,b=function(e){ae(e)&&(t.replace?n.replace(a,ie):n.push(a,ie))},w={click:ae};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=b})):w[this.event]=b;var O={class:u},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:b,isActive:u[p],isExactActive:u[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)O.on=w,O.attrs={href:l,"aria-current":y};else{var C=se(this.$slots.default);if(C){C.isStatic=!1;var k=C.data=i({},C.data);for(var E in k.on=k.on||{},k.on){var A=k.on[E];E in w&&(k.on[E]=Array.isArray(A)?A:[A])}for(var T in w)T in k.on?k.on[T].push(w[T]):k.on[T]=b;var D=C.data.attrs=i({},C.data.attrs);D.href=l,D["aria-current"]=y}else O.on=w}return e(this.tag,O,this.$slots.default)}};function ae(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 se(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=se(t.children)))return t}}function le(e){if(!le.installed||te!==e){le.installed=!0,te=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(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",C),e.component("RouterLink",oe);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ue="undefined"!==typeof window;function ce(e,t,n,r){var i=t||[],o=n||Object.create(null),a=r||Object.create(null);e.forEach((function(e){fe(i,o,a,e)}));for(var s=0,l=i.length;s<l;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),l--,s--);return{pathList:i,pathMap:o,nameMap:a}}function fe(e,t,n,r,i,o){var a=r.path,s=r.name;var l=r.pathToRegexpOptions||{},u=he(a,i,l.strict);"boolean"===typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var c={path:u,regex:de(u,l),components:r.components||{default:r.component},instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?D(o+"/"+r.path):void 0;fe(e,t,n,r,c,i)})),t[c.path]||(e.push(c.path),t[c.path]=c),void 0!==r.alias)for(var f=Array.isArray(r.alias)?r.alias:[r.alias],d=0;d<f.length;++d){var h=f[d];0;var p={path:h,children:r.children};fe(e,t,n,p,i,c.path||"/")}s&&(n[s]||(n[s]=c))}function de(e,t){var n=P(e,[],t);return n}function he(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:D(t.path+"/"+e)}function pe(e,t){var n=ce(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ce(e,r,i,o)}function s(e,n,a){var s=ee(e,n,!1,t),l=s.name;if(l){var u=o[l];if(!u)return c(null,s);var f=u.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)&&f.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=J(u.path,s.params,'named route "'+l+'"'),c(u,s,a)}if(s.path){s.params={};for(var h=0;h<r.length;h++){var p=r[h],g=i[p];if(ge(g.regex,s.path,s.params))return c(g,s,a)}}return c(null,s)}function l(e,n){var r=e.redirect,i="function"===typeof r?r(g(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return c(null,n);var a=i,l=a.name,u=a.path,f=n.query,d=n.hash,h=n.params;if(f=a.hasOwnProperty("query")?a.query:f,d=a.hasOwnProperty("hash")?a.hash:d,h=a.hasOwnProperty("params")?a.params:h,l){o[l];return s({_normalized:!0,name:l,query:f,hash:d,params:h},void 0,n)}if(u){var p=me(u,e),m=J(p,h,'redirect route with path "'+p+'"');return s({_normalized:!0,path:m,query:f,hash:d},void 0,n)}return c(null,n)}function u(e,t,n){var r=J(n,t.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,c(a,t)}return c(null,t)}function c(e,n,r){return e&&e.redirect?l(e,r||n):e&&e.matchAs?u(e,n,e.matchAs):g(e,n,r,t)}return{match:s,addRoutes:a}}function ge(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=e.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?u(r[i]):r[i])}return!0}function me(e,t){return A(e,t.parent?t.parent.path:"/",!0)}var ve=ue&&window.performance&&window.performance.now?window.performance:Date;function ye(){return ve.now().toFixed(3)}var be=ye();function _e(){return be}function we(e){return be=e}var xe=Object.create(null);function Oe(){"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=_e(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ke),function(){window.removeEventListener("popstate",ke)}}function Se(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=Ee(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){je(e,o)})).catch((function(e){0})):je(a,o))}))}}function Ce(){var e=_e();e&&(xe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ke(e){Ce(),e.state&&e.state.key&&we(e.state.key)}function Ee(){var e=_e();if(e)return xe[e]}function Ae(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Te(e){return Pe(e.x)||Pe(e.y)}function De(e){return{x:Pe(e.x)?e.x:window.pageXOffset,y:Pe(e.y)?e.y:window.pageYOffset}}function Me(e){return{x:Pe(e.x)?e.x:0,y:Pe(e.y)?e.y:0}}function Pe(e){return"number"===typeof e}var Ie=/^#\d/;function je(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=Ie.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=Me(i),t=Ae(r,i)}else Te(e)&&(t=De(e))}else n&&Te(e)&&(t=De(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 Le=ue&&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 Ne(e,t){Ce();var n=window.history;try{if(t){var r=i({},n.state);r.key=_e(),n.replaceState(r,"",e)}else n.pushState({key:we(ye())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Re(e){Ne(e,!0)}function Be(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}var $e={redirected:2,aborted:4,cancelled:8,duplicated:16};function Fe(e,t){return He(e,t,$e.redirected,'Redirected when going from "'+e.fullPath+'" to "'+We(t)+'" via a navigation guard.')}function ze(e,t){var n=He(e,t,$e.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function qe(e,t){return He(e,t,$e.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ue(e,t){return He(e,t,$e.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function He(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var Ve=["params","query","hash"];function We(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return Ve.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ke(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ge(e,t){return Ke(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e){return function(t,n,r){var i=!1,o=0,a=null;Xe(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var l,u=et((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),n.components[s]=t,o--,o<=0&&r()})),c=et((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Ke(e)?e:new Error(t),r(a))}));try{l=e(u,c)}catch(d){c(d)}if(l)if("function"===typeof l.then)l.then(u,c);else{var f=l.component;f&&"function"===typeof f.then&&f.then(u,c)}}})),i||r()}}function Xe(e,t){return Ze(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ze(e){return Array.prototype.concat.apply([],e)}var Qe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Qe&&"Module"===e[Symbol.toStringTag]}function et(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var tt=function(e,t){this.router=e,this.base=nt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function nt(e){if(!e)if(ue){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 rt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;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,r){var i=Xe(e,(function(e,r,i,o){var a=ot(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return Ze(r?i.reverse():i)}function ot(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function at(e){return it(e,"beforeRouteLeave",lt,!0)}function st(e){return it(e,"beforeRouteUpdate",lt)}function lt(e,t){if(t)return function(){return e.apply(t,arguments)}}function ut(e){return it(e,"beforeRouteEnter",(function(e,t,n,r){return ct(e,n,r)}))}function ct(e,t,n){return function(r,i,o){return e(r,i,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}tt.prototype.listen=function(e){this.cb=e},tt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},tt.prototype.onError=function(e){this.errorCbs.push(e)},tt.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(Ge(e,$e.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},tt.prototype.confirmTransition=function(e,t,n){var i=this,o=this.current;this.pending=e;var a=function(e){!Ge(e)&&Ke(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},s=e.matched.length-1,l=o.matched.length-1;if(_(e,o)&&s===l&&e.matched[s]===o.matched[l])return this.ensureURL(),a(ze(o,e));var u=rt(this.current.matched,e.matched),c=u.updated,f=u.deactivated,d=u.activated,h=[].concat(at(f),this.router.beforeHooks,st(c),d.map((function(e){return e.beforeEnter})),Ye(d)),p=function(t,n){if(i.pending!==e)return a(qe(o,e));try{t(e,o,(function(t){!1===t?(i.ensureURL(!0),a(Ue(o,e))):Ke(t)?(i.ensureURL(!0),a(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(a(Fe(o,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(r){a(r)}};Be(h,p,(function(){var n=ut(d),r=n.concat(i.router.resolveHooks);Be(r,p,(function(){if(i.pending!==e)return a(qe(o,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){S(e)}))}))}))},tt.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},tt.prototype.setupListeners=function(){},tt.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var ft=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,r=Le&&n;r&&this.listeners.push(Oe());var i=function(){var n=e.current,i=dt(e.base);e.current===v&&i===e._startLocation||e.transitionTo(i,(function(e){r&&Se(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Ne(D(r.base+e.fullPath)),Se(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Re(D(r.base+e.fullPath)),Se(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=D(this.base+this.current.fullPath);e?Ne(t):Re(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(tt);function dt(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&pt(this.base)||gt()}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,r=Le&&n;r&&this.listeners.push(Oe());var i=function(){var t=e.current;gt()&&e.transitionTo(mt(),(function(n){r&&Se(e.router,n,t,!0),Le||bt(n.fullPath)}))},o=Le?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){yt(e.fullPath),Se(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){bt(e.fullPath),Se(r.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;mt()!==t&&(e?yt(t):bt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(tt);function pt(e){var t=dt(e);if(!/^\/#/.test(t))return window.location.replace(D(e+"/#"+t)),!0}function gt(){var e=mt();return"/"===e.charAt(0)||(bt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function yt(e){Le?Ne(vt(e)):window.location.hash=e}function bt(e){Le?Re(vt(e)):window.location.replace(vt(e))}var _t=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 r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.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 r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ge(e,$e.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}(tt),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Le&&!1!==e.fallback,this.fallback&&(t="hash"),ue||(t="abstract"),this.mode=t,t){case"history":this.history=new ft(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},xt={currentRoute:{configurable:!0}};function Ot(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function St(e,t,n){var r="hash"===n?"#"+t:t;return e?D(e+"/"+r):r}wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},xt.currentRoute.get=function(){return this.history&&this.history.current},wt.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 ft||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Le&&i;o&&"fullPath"in e&&Se(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return Ot(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return Ot(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return Ot(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.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]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=ee(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=St(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,xt),wt.install=le,wt.version="3.4.9",wt.isNavigationFailure=Ge,wt.NavigationFailureType=$e,ue&&window.Vue&&window.Vue.use(wt),t["a"]=wt},"8d1d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("6d8b");function i(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(r["isNumber"])(e)?[e]:Object(r["isArray"])(e)?e:null:null}function o(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&i(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(n=Object(r["map"])(n,(function(e){return e/a})),o/=a)}return[n,o]}},"8d32":function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=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}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(i["b"]);a.prototype.type="arc",t["a"]=a},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(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 r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8eb7":function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,g,m,v=!1;function y(){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),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),f=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(e);s=b?parseFloat(b[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=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=r=i=a=o=NaN;if(y){if(y[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!y[2],c=!!y[3]}else l=u=c=!1}}var b={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return b.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return b.webkit()},chrome:function(){return y()||a},windows:function(){return y()||u},osx:function(){return y()||l},linux:function(){return y()||c},iphone:function(){return y()||h},mobile:function(){return y()||h||p||f||m},nativeApp:function(){return y()||g},android:function(){return y()||f},ipad:function(){return y()||p}};e.exports=b},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var r=n("ef08").document;e.exports=r&&r.documentElement},9152:function(e,t){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?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=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?d/l:d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},9263:function(e,t,n){"use strict";var r=n("ad6d"),i=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}(),u=i.UNSUPPORTED_Y||i.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],f=l||c||u;f&&(s=function(e){var t,n,i,s,f=this,d=u&&f.sticky,h=r.call(f),p=f.source,g=0,m=e;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",h)),c&&(n=new RegExp("^"+p+"$(?!\\s)",h)),l&&(t=f.lastIndex),i=o.call(d?n:f,m),d?i?(i.input=i.input.slice(g),i[0]=i[0].slice(g),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:l&&i&&(f.lastIndex=f.global?i.index+i[0].length:t),c&&i&&i.length>1&&a.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i}),e.exports=s},"92f0":function(e,t,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(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 i,o,a,s,l;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(l=i,e[a]=i={},i[l]=!0),"string"===typeof o&&(l=o,t[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},9339:function(e,t,n){(function(t){
/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},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=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),d=n(32),h=n(33),p=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};t.default=m},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},l={},u={};function c(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=u[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=u["block"]:e&o.LEVEL&o.INLINE&&(n=u["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=c,t.find=f,t.query=d,t.register=h},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i<t&&r.hasNext()){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var s=o.retain;while("insert"===t.peekType()&&t.peekLength()<=s)s-=t.peekLength(),r.push(t.next());o.retain-s>0&&n.next(o.retain-s)}var u=new l(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"===typeof d.retain){var h={};"number"===typeof f.retain?h.retain=c:h.insert=f.insert;var p=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(p&&(h.attributes=p),u.push(h),!n.hasNext()&&i(u.ops[u.ops.length-1],h)){var g=new l(t.rest());return u.concat(g).chop()}}else"number"===typeof d["delete"]&&"number"===typeof f.retain&&u.push(d)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),l=f.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=u(f,n),i=u(t,n),f!==i&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(f,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&l(f,{name:n,newValue:i}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=v(o),s=n(2),l=v(s),u=n(0),c=v(u),f=n(16),d=v(f),h=n(6),p=v(h),g=n(7),m=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=1,x=function(e){function t(){return y(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=c.default.query(e,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(O.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(c.default.Embed);x.scope=c.default.Scope.BLOCK_BLOT;var O=function(e){function t(e){y(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return _(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),S(t))}),new l.default).insert("\n",S(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return s=s.split(e,!0),s.insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof d.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-w)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(c.default.Block);function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:S(e.parent,t))}O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[p.default,c.default.Embed,m.default],t.bubbleFormats=S,t.BlockEmbed=x,t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=n(2),s=S(a),l=n(14),u=S(l),c=n(8),f=S(c),d=n(9),h=S(d),p=n(0),g=S(p),m=n(15),v=S(m),y=n(3),b=S(y),_=n(10),w=S(_),x=n(34),O=S(x);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=(0,w.default)("quill"),A=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,e),this.options=T(t,r),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(e){e===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;D.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||g.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&E.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||E.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?g.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=M(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return D.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(g.default.query(e,g.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,C({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,C({},e,t))}return n.setSelection(r,f.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],D.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],s=u[2],o=u[3],D.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return D.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,l=M(e,0,n,r,o),u=i(l,4);return e=u[0],s=u[2],o=u[3],D.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=M(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=M(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new m.Range(t,n),r),r!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function T(e,t){if(t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==A.DEFAULTS.theme){if(t.theme=A.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=O.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=A.import("modules/"+t);return null==n?E.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},A.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function D(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===f.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=P(i,a,t):0!==r&&(i=P(i,n,r,t)),this.setSelection(i,f.default.sources.SILENT)),a.length()>0){var l,u,c=[f.default.events.TEXT_CHANGE,a,o,t];if((l=this.emitter).emit.apply(l,[f.default.events.EDITOR_CHANGE].concat(c)),t!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function M(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||f.default.sources.API,[e,t,a,o]}function P(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==f.default.sources.USER)})),u=i(l,2);o=u[0],a=u[1]}else{var c=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===f.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=i(c,2);o=d[0],a=d[1]}return new m.Range(o,a-o)}A.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},A.events=f.default.events,A.sources=f.default.sources,A.version="1.3.7",A.imports={delta:s.default,parchment:g.default,"core/module":h.default,"core/theme":O.default},t.expandConfig=T,t.overload=M,t.default=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=u(o),s=n(0),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);h.allowedChildren=[h,l.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default.Text);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(54),a=u(o),s=n(10),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var g=function(e){function t(){c(this,t);var e=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",h.error),e}return d(t,e),r(t,[{key:"emit",value:function(){h.log.apply(h,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(a.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},t.default=g},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}function u(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=i(e),d=i(t)}catch(h){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(2),s=m(a),l=n(0),u=m(l),c=n(4),f=m(c),d=n(6),h=m(d),p=n(7),g=m(p);function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),t}(h.default);_.blotName="code",_.tagName="CODE";var w=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(g.default,this.length()-1),a=r(i,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(g.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=u.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof u.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(f.default);w.blotName="code-block",w.tagName="PRE",w.TAB="  ",t.Code=_,t.default=w},function(e,t,n){"use strict";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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),s=k(a),l=n(20),u=k(l),c=n(0),f=k(c),d=n(13),h=k(d),p=n(24),g=k(p),m=n(4),v=k(m),y=n(16),b=k(y),_=n(21),w=k(_),x=n(11),O=k(x),S=n(3),C=k(S);function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var T=/^[ -~]*$/,D=function(){function e(t){A(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),e=P(e),e.reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),e>=o&&!c.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,c);var d=t.scroll.line(e),h=i(d,2),p=h[0],g=h[1],y=(0,C.default)({},(0,m.bubbleFormats)(p));if(p instanceof v.default){var b=p.descendant(f.default.Leaf,g),_=i(b,1),w=_[0];y=(0,C.default)(y,(0,m.bubbleFormats)(w))}l=u.default.attributes.diff(y,l)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}o+=s}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,s,n,l[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof h.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,w.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,w.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof f.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(f.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,m.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=M((0,m.bubbleFormats)(n),t)}return t}));return C.default.apply(C.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(E({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,w.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof b.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof h.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(e,t+u),d=f.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(T)&&f.default.find(t[0].target)){var i=f.default.find(t[0].target),o=(0,m.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(g.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(u.diff(c,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,O.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function M(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function P(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,w.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,w.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=g(o),s=n(21),l=g(s),u=n(11),c=g(u),f=n(8),d=g(f),h=n(10),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function m(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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},_=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(d.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var f=document.createRange();if(t>0){f.setStart(i,l);var d=this.scroll.leaf(e+t),h=r(d,2);if(s=h[0],l=h[1],null==s)return null;var p=s.position(l,!0),g=r(p,2);return i=g[0],l=g[1],f.setEnd(i,l),f.getBoundingClientRect()}var m="left",v=void 0;return i instanceof Text?(l<i.data.length?(f.setStart(i,l),f.setEnd(i,l+1)):(f.setStart(i,l-1),f.setEnd(i,l),m="right"),v=f.getBoundingClientRect()):(v=s.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,m(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(m(i)));return new b(s,o-s)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],l=s;if(t.length>0){var u=this.scroll.line(Math.min(t.index+t.length,i)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var f=e.getBoundingClientRect();n.top<f.top?e.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(e.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),y.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,m(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(f)),e!==d.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),e}();function w(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=b,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(a.default.Embed);f.blotName="break",f.tagName="BR",t.default=f},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=l(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function l(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{i=Promise}catch(f){i=function(){}}function o(a,s,l,u,f){"object"===typeof s&&(l=s.depth,u=s.prototype,f=s.includeNonEnumerable,s=s.circular);var d=[],h=[],p="undefined"!=typeof t;function g(a,l){if(null===a)return null;if(0===l)return a;var m,v;if("object"!=typeof a)return a;if(e(a,n))m=new n;else if(e(a,r))m=new r;else if(e(a,i))m=new i((function(e,t){a.then((function(t){e(g(t,l-1))}),(function(e){t(g(e,l-1))}))}));else if(o.__isArray(a))m=[];else if(o.__isRegExp(a))m=new RegExp(a.source,c(a)),a.lastIndex&&(m.lastIndex=a.lastIndex);else if(o.__isDate(a))m=new Date(a.getTime());else{if(p&&t.isBuffer(a))return m=t.allocUnsafe?t.allocUnsafe(a.length):new t(a.length),a.copy(m),m;e(a,Error)?m=Object.create(a):"undefined"==typeof u?(v=Object.getPrototypeOf(a),m=Object.create(v)):(m=Object.create(u),v=u)}if(s){var y=d.indexOf(a);if(-1!=y)return h[y];d.push(a),h.push(m)}for(var b in e(a,n)&&a.forEach((function(e,t){var n=g(t,l-1),r=g(e,l-1);m.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=g(e,l-1);m.add(t)})),a){var _;v&&(_=Object.getOwnPropertyDescriptor(v,b)),_&&null==_.set||(m[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(a);for(b=0;b<w.length;b++){var x=w[b],O=Object.getOwnPropertyDescriptor(a,x);(!O||O.enumerable||f)&&(m[x]=g(a[x],l-1),O.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(f){var S=Object.getOwnPropertyNames(a);for(b=0;b<S.length;b++){var C=S[b];O=Object.getOwnPropertyDescriptor(a,C);O&&O.enumerable||(m[C]=g(a[C],l-1),Object.defineProperty(m,C,{enumerable:!1}))}}return m}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),g(a,l)}function a(e){return Object.prototype.toString.call(e)}function s(e){return"object"===typeof e&&"[object Date]"===a(e)}function l(e){return"object"===typeof e&&"[object Array]"===a(e)}function u(e){return"object"===typeof e&&"[object RegExp]"===a(e)}function c(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=c,o}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=y(a),l=n(8),u=y(l),c=n(4),f=y(c),d=n(16),h=y(d),p=n(13),g=y(p),m=n(25),v=y(m);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function x(e){return e instanceof f.default||e instanceof c.BlockEmbed}var O=function(e){function t(e,n){b(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return w(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],l=a[1],u=this.line(e+n),f=r(u,1),d=f[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&s!==d&&l>0){if(s instanceof c.BlockEmbed||d instanceof c.BlockEmbed)return void this.optimize();if(s instanceof g.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===d))return void this.optimize()}else if(d instanceof g.default){var m=d.newlineIndex(0);m>-1&&d.split(m+1)}var v=d.children.head instanceof h.default?null:d.children.head;s.moveChildren(d,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(x,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){x(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[f.default,c.BlockEmbed,v.default],t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(21),s=S(a),l=n(11),u=S(l),c=n(3),f=S(c),d=n(2),h=S(d),p=n(20),g=S(p),m=n(0),v=S(m),y=n(5),b=S(y),_=n(10),w=S(_),x=n(9),O=S(x);function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function A(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var T=(0,w.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",M=function(e){function t(e,n){k(this,t);var r=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist["list"])&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},N),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},I),r.addBinding({key:t.keys.DELETE},{collapsed:!0},j)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},j)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},L),r.addBinding({key:t.keys.DELETE},{collapsed:!1},L),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),r.listen(),r}return A(t,e),o(t,null,[{key:"match",value:function(e,t){return t=$(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=$(e);if(null==r||null==r.key)return T.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var l=e.quill.getLine(s.index),c=i(l,2),f=c[0],d=c[1],h=e.quill.getLeaf(s.index),p=i(h,2),g=p[0],m=p[1],y=0===s.length?[g,m]:e.quill.getLeaf(s.index+s.length),b=i(y,2),_=b[0],w=b[1],x=g instanceof v.default.Text?g.value().slice(0,m):"",O=_ instanceof v.default.Text?_.value().slice(w):"",S={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:x,suffix:O},C=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,u.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&(!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,s,S))}));C&&n.preventDefault()}}}}))}}]),t}(O.default);function P(e,t){var n,r=e===M.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},C(n,r,/^$/),C(n,"handler",(function(n){var r=n.index;e===M.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof v.default.Embed)||(e===M.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function I(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),l=i(s,1),u=l[0];if(null!=u&&u.length()>1){var c=o.formats(),f=this.quill.getFormat(e.index-1,1);a=g.default.attributes.diff(c,f)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,b.default.sources.USER),this.quill.focus()}}function j(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),l=s[0];if(t.offset>=l.length()-1){var u=this.quill.getLine(e.index+1),c=i(u,1),f=c[0];if(f){var d=l.formats(),h=this.quill.getFormat(e.index,1);r=g.default.attributes.diff(d,h)||{},o=f.length()}}this.quill.deleteText(e.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,b.default.sources.USER)}}function L(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=g.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,b.default.sources.USER),this.quill.setSelection(e.index,b.default.sources.SILENT),this.quill.focus()}function N(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],b.default.sources.USER))}))}function R(e){return{key:M.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,d=l.newlineIndex(c+u+o),h=l.domNode.textContent.slice(f,d).split("\n");u=0,h.forEach((function(t,i){e?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=t.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,o,b.default.sources.SILENT)}}}}function B(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],b.default.sources.USER)}}}function $(e){if("string"===typeof e||"number"===typeof e)return $({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=M.keys[e.key.toUpperCase()])e.key=M.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[D]=e.shortKey,delete e.shortKey),e}M.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},M.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:M.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:M.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:M.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":R(!0),"outdent code-block":R(!1),"remove tab":{key:M.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,b.default.sources.USER)}},tab:{key:M.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new h.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,b.default.sources.SILENT)}},"list empty enter":{key:M.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,b.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:M.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,f.default)({},r.formats(),{list:"checked"}),s=(new h.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:M.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new h.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new h.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,b.default.sources.SILENT)}},"code exit":{key:M.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new h.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":P(M.keys.LEFT,!1),"embed left shift":P(M.keys.LEFT,!0),"embed right":P(M.keys.RIGHT,!1),"embed right shift":P(M.keys.RIGHT,!0)}},t.default=M,t.SHORTKEY=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return h(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var r=this,o=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];i=l[0],o=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof u.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,a].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),d=r(f,2);return o=d[0],a=d[1],{startNode:i,startOffset:o,endNode:i,endOffset:a}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=s(r),o=n(4),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),t}(i.default.Container);f.allowedChildren=[a.default,o.BlockEmbed,f],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new f("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=f,t.ColorClass=d,t.ColorStyle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return d(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(a.default);function d(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=f,t.sanitize=d},function(e,t,n){"use strict";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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(23),a=u(o),s=n(107),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=0;function d(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var h=function(){function e(t){var n=this;c(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),e.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=T(r),o=n(5),a=T(o),s=n(4),l=T(s),u=n(16),c=T(u),f=n(25),d=T(f),h=n(24),p=T(h),g=n(35),m=T(g),v=n(6),y=T(v),b=n(22),_=T(b),w=n(7),x=T(w),O=n(55),S=T(O),C=n(42),k=T(C),E=n(23),A=T(E);function T(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":m.default,"blots/inline":y.default,"blots/scroll":_.default,"blots/text":x.default,"modules/clipboard":S.default,"modules/history":k.default,"modules/keyboard":A.default}),i.default.register(l.default,c.default,p.default,y.default,_.default,x.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=u(o),s=n(7),l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h="\ufeff",p=function(e){function t(e){c(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return d(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(h).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=h,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(a.default.Embed);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),l=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=n(0),i=a(r),o=n(26);function a(e){return e&&e.__esModule?e:{default:e}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),l=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",f),h=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new h("font","font-family",f);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=c(i),a=n(5),s=c(a),l=n(9),u=c(l);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(t):r.record(t,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return h(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],s.default.sources.USER),this.ignoreChange=!1;var r=m(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(u.default);function g(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function m(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return g(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=O(o),s=n(2),l=O(s),u=n(8),c=O(u),f=n(23),d=O(f),h=n(34),p=O(h),g=n(59),m=O(g),v=n(60),y=O(v),b=n(28),_=O(b),w=n(61),x=O(w);function O(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function k(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=[!1,"center","right","justify"],A=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],T=[!1,"serif","monospace"],D=["1","2","3",!1],M=["small",!1,"large","huge"],P=function(e){function t(e,n){S(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,i),r}return k(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&L(e,E),new y.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&L(e,A,"background"===n?"#ffffff":"#000000"),new m.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?L(e,T):e.classList.contains("ql-header")?L(e,D):e.classList.contains("ql-size")&&L(e,M)),new _.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),t}(p.default);P.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),e.quill.setSelection(r.index+1,c.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(e){function t(e,n){S(this,t);var r=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return k(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){d.default.match(t,"enter")?(e.save(),t.preventDefault()):d.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,c.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=j(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(x.default);function j(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=I,t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var r,i=this.find(e),o=i[0],a=i[1],s=e-a,l=this.iterator(o);while((r=l())&&s<e+t){var u=r.length();e>s?n(r,e-s,Math.min(t,s+u-e)):n(r,0,Math.min(u,e+t-s)),s+=u}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},u=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(u),e.optimize(n))},c=t,f=0;c.length>0;f+=1){if(f>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.length<n)&&(n=null);var r=u(e,t),o=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=c(e,t);var s=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var l=a(e,t);return o&&l.unshift([i,o]),s&&l.push([i,s]),d(l),null!=n&&(l=g(l,n)),l=m(l),l}function a(e,t){var a;if(!e)return[[r,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,e],[r,t]];var d=f(e,t);if(d){var h=d[0],p=d[1],g=d[2],m=d[3],v=d[4],y=o(h,g),b=o(p,m);return y.concat([[i,v]],b)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,u=2*a,c=new Array(u),f=new Array(u),d=0;d<u;d++)c[d]=-1,f[d]=-1;c[s+1]=0,f[s+1]=0;for(var h=i-o,p=h%2!=0,g=0,m=0,v=0,y=0,b=0;b<a;b++){for(var _=-b+g;_<=b-m;_+=2){var w=s+_;E=_==-b||_!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1;var x=E-_;while(E<i&&x<o&&e.charAt(E)==t.charAt(x))E++,x++;if(c[w]=E,E>i)m+=2;else if(x>o)g+=2;else if(p){var O=s+h-_;if(O>=0&&O<u&&-1!=f[O]){var S=i-f[O];if(E>=S)return l(e,t,E,x)}}}for(var C=-b+v;C<=b-y;C+=2){O=s+C;S=C==-b||C!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1;var k=S-C;while(S<i&&k<o&&e.charAt(i-S-1)==t.charAt(o-k-1))S++,k++;if(f[O]=S,S>i)y+=2;else if(k>o)v+=2;else if(!p){w=s+h-C;if(w>=0&&w<u&&-1!=c[w]){var E=c[w];x=s+E-w;if(S=i-S,E>=S)return l(e,t,E,x)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function u(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function f(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){var r,i,o,a,s=e.substring(n,n+Math.floor(e.length/4)),l=-1,f="";while(-1!=(l=t.indexOf(s,l+1))){var d=u(e.substring(n),t.substring(l)),h=c(e.substring(0,n),t.substring(0,l));f.length<h+d&&(f=t.substring(l-h,l)+t.substring(l,l+d),r=e.substring(0,n-h),i=e.substring(n+d),o=t.substring(0,l-h),a=t.substring(l+d))}return 2*f.length>=e.length?[r,i,o,a,f]:null}var o,a,s,l,f,d=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!d&&!h)return null;o=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],f=o[3]):(l=o[0],f=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,f,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",f="";while(o<e.length)switch(e[o][0]){case r:s++,f+=e[o][1],o++;break;case n:a++,l+=e[o][1],o++;break;case i:a+s>1?(0!==a&&0!==s&&(t=u(f,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=f.substring(0,t):(e.splice(0,0,[i,f.substring(0,t)]),o++),f=f.substring(t),l=l.substring(t)),t=c(f,l),0!==t&&(e[o][1]=f.substring(f.length-t)+e[o][1],f=f.substring(0,f.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,f]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,f]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",f="";break}""===e[e.length-1][1]&&e.pop();var h=!1;o=1;while(o<e.length-1)e[o-1][0]==i&&e[o+1][0]==i&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),h=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),h=!0)),o++;h&&d(e)}var h=o;function p(e,t){if(0===t)return[i,e];for(var r=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var l=t-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return e.splice(o,1,u,c),[o+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=p(e,t),r=n[1],o=n[0],a=r[o],s=r[o+1];if(null==a)return e;if(a[0]!==i)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(o,2,s,a),v(r,o,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function m(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===i&&a(e[s-2][1])&&e[s-1][0]===n&&o(e[s-1][1])&&e[s][0]===r&&o(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var l=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}h.INSERT=r,h.DELETE=n,h.EQUAL=i,e.exports=h},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?r:i,t.supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||o&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 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},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=k(a),l=n(2),u=k(l),c=n(0),f=k(c),d=n(5),h=k(d),p=n(10),g=k(p),m=n(9),v=k(m),y=n(36),b=n(37),_=n(13),w=k(_),x=n(26),O=n(38),S=n(39),C=n(40);function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function D(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var M=(0,g.default)("quill:clipboard"),P="__ql-matcher",I=[[Node.TEXT_NODE,Z],[Node.TEXT_NODE,G],["br",V],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,X],["li",K],["b",q.bind(q,"bold")],["i",q.bind(q,"italic")],["style",W]],j=[y.AlignAttribute,O.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),L=[y.AlignStyle,b.BackgroundStyle,x.ColorStyle,O.DirectionStyle,S.FontStyle,C.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=function(e){function t(e,n){A(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],I.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==Y)&&r.addMatcher(o,a)})),r}return D(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[w.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,E({},w.default.blotName,t[w.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=z(this.container,a,s);return $(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),M.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,h.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new u.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,h.default.sources.USER),t.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[P]=e[P]||[],e[P].push(s)}));break}})),[t,n]}}]),t}(v.default);function R(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return R(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},E({},t,n),r.attributes))}),new u.default)}function B(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function $(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function F(e){if(0===e.childNodes.length)return!1;var t=B(e);return["block","list-item"].indexOf(t.display)>-1}function z(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new u.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=z(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[P]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new u.default):new u.default}function q(e,t,n){return R(n,e,!0)}function U(e,t){var n=f.default.Attributor.Attribute.keys(e),r=f.default.Attributor.Class.keys(e),i=f.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=f.default.query(t,f.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=j[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=L[t],null==n||n.attrName!==t&&n.keyName!==t||(n=L[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=R(t,o)),t}function H(e,t){var n=f.default.query(e);if(null==n)return t;if(n.prototype instanceof f.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new u.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=R(t,n.blotName,n.formats(e)));return t}function V(e,t){return $(t,"\n")||t.insert("\n"),t}function W(){return new u.default}function K(e,t){var n=f.default.query(e);if(null==n||"list-item"!==n.blotName||!$(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(f.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new u.default).retain(t.length()-1).retain(1,{indent:r}))}function G(e,t){return $(t,"\n")||(F(e)||t.length()>0&&e.nextSibling&&F(e.nextSibling))&&t.insert("\n"),t}function Y(e,t){if(F(e)&&null!=e.nextElementSibling&&!$(t,"\n\n")){var n=e.offsetHeight+parseFloat(B(e).marginTop)+parseFloat(B(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function X(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===B(e).fontStyle&&(n.italic=!0),r.fontWeight&&(B(e).fontWeight.startsWith("bold")||parseInt(B(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=R(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new u.default).insert("\t").concat(t)),t}function Z(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!B(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&F(e.parentNode)||null!=e.previousSibling&&F(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&F(e.parentNode)||null!=e.nextSibling&&F(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}N.DEFAULTS={matchers:[],matchVisual:!0},t.default=N,t.matchAttributor=U,t.matchBlot=H,t.matchNewline=G,t.matchSpacing=Y,t.matchText=Z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=g(o),s=n(0),l=g(s),u=n(5),c=g(u),f=n(10),d=g(f),h=n(9),p=g(h);function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=(0,d.default)("quill:toolbar"),w=function(e){function t(e,n){v(this,t);var i,o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");O(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1),n=t[0];o.update(n)})),o):(i=_.error("Container required for toolbar",o.options),y(o,i))}return b(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var o=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),f=r(u,1),d=f[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(m({},n,o)),c.default.sources.USER)}else t.quill.format(n,o,c.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(p.default);function x(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function O(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)x(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?S(n,t,r):x(n,t,r)}})),e.appendChild(n)}))}function S(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,c.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",c.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",e,c.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,c.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",e,c.default.sources.USER)}}},t.default=w,t.addControls=O},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return c(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){l(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=v(a),l=n(8),u=v(l),c=n(43),f=v(c),d=n(27),h=v(d),p=n(15),g=n(41),m=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function _(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(e){function t(e,n){y(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return _(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),m.default),this.tooltip=new O(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(f.default);x.DEFAULTS=(0,s.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(e){function t(e,n){y(this,t);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return _(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,u.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===u.default.sources.USER){var o=e.quill.scroll.descendant(h.default,t.index),a=r(o,2),s=a[0],l=a[1];if(null!=s){e.linkRange=new p.Range(t.index-l,s.length());var c=h.default.formats(s.domNode);return e.preview.textContent=c,e.preview.setAttribute("href",c),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),o=n(36),a=n(38),s=n(64),l=n(65),u=ne(l),c=n(66),f=ne(c),d=n(67),h=ne(d),p=n(37),g=n(26),m=n(39),v=n(40),y=n(56),b=ne(y),_=n(68),w=ne(_),x=n(27),O=ne(x),S=n(69),C=ne(S),k=n(70),E=ne(k),A=n(71),T=ne(A),D=n(72),M=ne(D),P=n(73),I=ne(P),j=n(13),L=ne(j),N=n(74),R=ne(N),B=n(75),$=ne(B),F=n(57),z=ne(F),q=n(41),U=ne(q),H=n(28),V=ne(H),W=n(59),K=ne(W),G=n(60),Y=ne(G),X=n(61),Z=ne(X),Q=n(108),J=ne(Q),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":m.FontClass,"formats/size":v.SizeClass,"formats/blockquote":u.default,"formats/code-block":L.default,"formats/header":f.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":j.Code,"formats/italic":w.default,"formats/link":O.default,"formats/script":C.default,"formats/strike":E.default,"formats/underline":T.default,"formats/image":M.default,"formats/video":I.default,"formats/list/item":d.ListItem,"modules/formula":R.default,"modules/syntax":$.default,"modules/toolbar":z.default,"themes/bubble":J.default,"themes/snow":te.default,"ui/icons":U.default,"ui/picker":V.default,"ui/icon-picker":Y.default,"ui/color-picker":K.default,"ui/tooltip":Z.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),d=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="blockquote",u.tagName="blockquote",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=f(o),s=n(4),l=f(s),u=n(25),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:"format",value:function(e,n){e!==v.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);m.blotName="list-item",m.tagName="LI";var v=function(e){function t(e){h(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=a.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return g(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof m)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(c.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[m],t.ListItem=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="italic",u.tagName=["EM","I"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="strike",u.tagName="S",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(i.default);u.blotName="underline",u.tagName="U",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=l(o),s=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(4),a=n(27),s=l(a);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],h=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(35),a=f(o),s=n(5),l=f(s),u=n(9),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return d(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var m=function(e){function t(){d(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){l.default.register(g,!0)}}]),t}(c.default);t.FormulaBlot=g,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=h(o),s=n(5),l=h(s),u=n(9),c=h(u),f=n(13),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return p(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);v.className="ql-syntax";var y=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(e){function t(e,n){p(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return m(t,e),r(t,null,[{key:"register",value:function(){l.default.register(y,!0),l.default.register(v,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=v,t.CodeToken=y,t.default=b},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=p(o),s=n(8),l=p(s),u=n(43),c=p(u),f=n(15),d=n(41),h=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(e){function t(e,n){g(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(e){function t(e,n){g(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-s),c=r.quill.getBounds(new f.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(u.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=_,t.default=b},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("1c35").Buffer)},"93bf":function(e,t,n){
/*!
* screenfull
* v5.1.0 - 2020-12-24
* (c) Sindre Sorhus; MIT License
*/
(function(){"use strict";var t="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if(e=n[r],e&&e[1]in t){for(r=0;r<e.length;r++)o[n[0][r]]=e[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(e,n){return new Promise(function(i,o){var a=function(){this.off("change",a),i()}.bind(this);this.on("change",a),e=e||t.documentElement;var s=e[r.requestFullscreen](n);s instanceof Promise&&s.then(a).catch(o)}.bind(this))},exit:function(){return new Promise(function(e,n){if(this.isFullscreen){var i=function(){this.off("change",i),e()}.bind(this);this.on("change",i);var o=t[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else e()}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on("change",e)},onerror:function(e){this.on("error",e)},on:function(e,n){var r=i[e];r&&t.addEventListener(r,n,!1)},off:function(e,n){var r=i[e];r&&t.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(t[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return t[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(t[r.fullscreenEnabled])}}}),n?e.exports=o:window.screenfull=o):n?e.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},"944a":function(e,t,n){var r=n("746f");r("toStringTag")},"94ca":function(e,t,n){var r=n("d039"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==u||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"94ce":function(e,t){(function(e){"use strict";var t=function(e){var n=e,r=function(){return n},i=function(e){n=e},o=function(){return t(r())};return{get:r,set:i,clone:o}},n=function(){},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},i=function(e){return function(){return e}},o=function(e){return e};function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var s=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},l=function(e){return function(){throw new Error(e)}},u=i(!1),c=i(!0),f=function(){return d},d=function(){var e=function(e){return e.isNone()},t=function(e){return e()},r=function(e){return e},o={fold:function(e,t){return e()},is:u,isSome:u,isNone:c,getOr:r,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:r,orThunk:t,map:f,each:n,bind:f,exists:u,forall:c,filter:f,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return Object.freeze&&Object.freeze(o),o}(),h=function(e){var t=i(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:c,isNone:u,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return h(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:d},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(u,(function(t){return n(e,t)}))}};return o},p=function(e){return null===e||void 0===e?d:h(e)},g={some:h,none:f,from:p},m=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},y=function(e){return function(t){return v(t)===e}},b=y("string"),_=y("array"),w=y("boolean"),x=y("function"),O=y("number"),S=Array.prototype.slice,C=Array.prototype.indexOf,k=Array.prototype.push,E=function(e,t){return C.call(e,t)},A=function(e,t){return E(e,t)>-1},T=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},D=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},M=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},P=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},I=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},j=function(e,t,n){return P(e,(function(e){n=t(n,e)})),n},L=function(e,t,n){return M(e,(function(e){n=t(n,e)})),n},N=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return g.some(i)}return g.none()},R=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return g.some(n)}return g.none()},B=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!_(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);k.apply(t,e[n])}return t},$=function(e,t){var n=D(e,t);return B(n)},F=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},z=function(e){var t=S.call(e,0);return t.reverse(),t},q=function(e){return 0===e.length?g.none():g.some(e[e.length-1])},U=(x(Array.from)&&Array.from,Object.keys),H=Object.hasOwnProperty,V=function(e,t){for(var n=U(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},W=function(e,t){return K(e,(function(e,n){return{k:n,v:t(e,n)}}))},K=function(e,t){var n={};return V(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},G=function(e,t){return Y(e,t)?g.from(e[t]):g.none()},Y=function(e,t){return H.call(e,t)},X=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return M(e,(function(e,n){r[e]=i(t[n])})),r}},Z=function(e){return e.slice(0).sort()},Q=function(e,t){throw new Error("All required keys ("+Z(e).join(", ")+") were not specified. Specified keys were: "+Z(t).join(", ")+".")},J=function(e){throw new Error("Unsupported keys for object: "+Z(e).join(", "))},ee=function(e,t){if(!_(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");M(t,(function(t){if(!b(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},te=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Z(e).join(", ")+") were not.")},ne=function(e){var t=Z(e),n=N(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},re=function(e,t){var n=e.concat(t);if(0===n.length)throw new Error("You must specify at least one required or optional field.");return ee("required",e),ee("optional",t),ne(n),function(r){var o=U(r),a=F(e,(function(e){return A(o,e)}));a||Q(e,o);var s=I(o,(function(e){return!A(n,e)}));s.length>0&&J(s);var l={};return M(e,(function(e){l[e]=i(r[e])})),M(t,(function(e){l[e]=i(Object.prototype.hasOwnProperty.call(r,e)?g.some(r[e]):g.none())})),l}},ie=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE),oe=e.Node.DOCUMENT_NODE,ae=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),se=e.Node.TEXT_NODE,le=(e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,"undefined"!==typeof e.window?e.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),ue=function(e){return e.dom().nodeType},ce=function(e){return function(t){return ue(t)===e}},fe=function(e){return ue(e)===ie||"#comment"===le(e)},de=ce(ae),he=ce(se),pe=function(t,n,r){if(!(b(r)||w(r)||O(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},ge=function(e,t,n){pe(e.dom(),t,n)},me=function(e,t){var n=e.dom();V(t,(function(e,t){pe(n,t,e)}))},ve=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},ye=function(e,t){var n=e.dom();return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},be=function(e,t){e.dom().removeAttribute(t)},_e=function(e){return L(e.dom().attributes,(function(e,t){return e[t.name]=t.value,e}),{})},we=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},xe=function(e,t){return-1!==e.indexOf(t)},Oe=function(e,t){return we(e,t,0)},Se=function(e,t){return we(e,t,e.length-t.length)},Ce=function(e){return e.replace(/^\s+|\s+$/g,"")},ke=function(e){return void 0!==e.style&&x(e.style.getPropertyValue)},Ee=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Ae=function(t,n){var r=n||e.document,i=r.createElement("div");if(i.innerHTML=t,!i.hasChildNodes()||i.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Me(i.childNodes[0])},Te=function(t,n){var r=n||e.document,i=r.createElement(t);return Me(i)},De=function(t,n){var r=n||e.document,i=r.createTextNode(t);return Me(i)},Me=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:i(e)}},Pe=function(e,t,n){var r=e.dom();return g.from(r.elementFromPoint(t,n)).map(Me)},Ie={fromHtml:Ae,fromTag:Te,fromText:De,fromDom:Me,fromPoint:Pe},je=function(e){var t=he(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Le=Ee((function(){return Ne(Ie.fromDom(e.document))})),Ne=function(e){var t=e.dom().body;if(null===t||void 0===t)throw new Error("Body is not available yet");return Ie.fromDom(t)},Re=function(t,n,r){if(!b(r))throw e.console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",t),new Error("CSS value must be a string: "+r);ke(t)&&t.style.setProperty(n,r)},Be=function(e,t){ke(e)&&e.style.removeProperty(t)},$e=function(e,t,n){var r=e.dom();Re(r,t,n)},Fe=function(e,t){var n=e.dom();V(t,(function(e,t){Re(n,t,e)}))},ze=function(t,n){var r=t.dom(),i=e.window.getComputedStyle(r),o=i.getPropertyValue(n),a=""!==o||je(t)?o:qe(r,n);return null===a?void 0:a},qe=function(e,t){return ke(e)?e.style.getPropertyValue(t):""},Ue=function(e,t){var n=e.dom(),r=qe(n,t);return g.from(r).filter((function(e){return e.length>0}))},He=function(e,t){var n=e.dom();Be(n,t),ye(e,"style")&&""===Ce(ve(e,"style"))&&be(e,"style")},Ve=function(e,t){var n=e.dom(),r=t.dom();ke(n)&&ke(r)&&(r.style.cssText=n.style.cssText)},We=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Ke=function(t,n){return We(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},Ge=function(t,n){return We(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},Ye={documentPositionPreceding:Ke,documentPositionContainedBy:Ge},Xe=function(){return Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Xe.apply(this,arguments)},Ze=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Qe=function(e,t){var n=Ze(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return tt(r(1),r(2))},Je=function(e,t){var n=String(t).toLowerCase();return 0===e.length?et():Qe(e,n)},et=function(){return tt(0,0)},tt=function(e,t){return{major:e,minor:t}},nt={nu:tt,detect:Je,unknown:et},rt="Edge",it="Chrome",ot="IE",at="Opera",st="Firefox",lt="Safari",ut=function(e,t){return function(){return t===e}},ct=function(){return ft({current:void 0,version:nt.unknown()})},ft=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:ut(rt,t),isChrome:ut(it,t),isIE:ut(ot,t),isOpera:ut(at,t),isFirefox:ut(st,t),isSafari:ut(lt,t)}},dt={unknown:ct,nu:ft,edge:i(rt),chrome:i(it),ie:i(ot),opera:i(at),firefox:i(st),safari:i(lt)},ht="Windows",pt="iOS",gt="Android",mt="Linux",vt="OSX",yt="Solaris",bt="FreeBSD",_t=function(e,t){return function(){return t===e}},wt=function(){return xt({current:void 0,version:nt.unknown()})},xt=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:_t(ht,t),isiOS:_t(pt,t),isAndroid:_t(gt,t),isOSX:_t(vt,t),isLinux:_t(mt,t),isSolaris:_t(yt,t),isFreeBSD:_t(bt,t)}},Ot={unknown:wt,nu:xt,windows:i(ht),ios:i(pt),android:i(gt),linux:i(mt),osx:i(vt),solaris:i(yt),freebsd:i(bt)},St=function(e,t,n,r){var o=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!o,s=e.isiOS()||e.isAndroid(),l=s||r("(pointer:coarse)"),u=o||!a&&s&&r("(min-device-width:768px)"),c=a||s&&!u,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!f;return{isiPad:i(o),isiPhone:i(a),isTablet:i(u),isPhone:i(c),isTouch:i(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:i(f),isDesktop:i(d)}},Ct=function(e,t){var n=String(t).toLowerCase();return N(e,(function(e){return e.search(n)}))},kt=function(e,t){return Ct(e,t).map((function(e){var n=nt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Et=function(e,t){return Ct(e,t).map((function(e){var n=nt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},At={detectBrowser:kt,detectOs:Et},Tt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dt=function(e){return function(t){return xe(t,e)}},Mt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return xe(e,"edge/")&&xe(e,"chrome")&&xe(e,"safari")&&xe(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Tt],search:function(e){return xe(e,"chrome")&&!xe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return xe(e,"msie")||xe(e,"trident")}},{name:"Opera",versionRegexes:[Tt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dt("firefox")},{name:"Safari",versionRegexes:[Tt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(xe(e,"safari")||xe(e,"mobile/"))&&xe(e,"applewebkit")}}],Pt=[{name:"Windows",search:Dt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return xe(e,"iphone")||xe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Dt("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dt("linux"),versionRegexes:[]},{name:"Solaris",search:Dt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dt("freebsd"),versionRegexes:[]}],It={browsers:i(Mt),oses:i(Pt)},jt=function(e,t){var n=It.browsers(),r=It.oses(),i=At.detectBrowser(n,e).fold(dt.unknown,dt.nu),o=At.detectOs(r,e).fold(Ot.unknown,Ot.nu),a=St(o,i,e,t);return{browser:i,os:o,deviceType:a}},Lt={detect:jt},Nt=function(t){return e.window.matchMedia(t).matches},Rt=t(Lt.detect(e.navigator.userAgent,Nt)),Bt=function(){return Rt.get()},$t=ae,Ft=oe,zt=function(e,t){var n=e.dom();if(n.nodeType!==$t)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},qt=function(e){return e.nodeType!==$t&&e.nodeType!==Ft||0===e.childElementCount},Ut=function(t,n){var r=void 0===n?e.document:n.dom();return qt(r)?[]:D(r.querySelectorAll(t),Ie.fromDom)},Ht=function(t,n){var r=void 0===n?e.document:n.dom();return qt(r)?g.none():g.from(r.querySelector(t)).map(Ie.fromDom)},Vt=function(e,t){return e.dom()===t.dom()},Wt=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Kt=function(e,t){return Ye.documentPositionContainedBy(e.dom(),t.dom())},Gt=Bt().browser,Yt=Gt.isIE()?Kt:Wt,Xt=zt,Zt=function(e){return Ie.fromDom(e.dom().ownerDocument)},Qt=function(e){return Ie.fromDom(e.dom().ownerDocument.defaultView)},Jt=function(e){return g.from(e.dom().parentNode).map(Ie.fromDom)},en=function(e,t){var n=x(t)?t:u,r=e.dom(),i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=Ie.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},tn=function(e){return g.from(e.dom().previousSibling).map(Ie.fromDom)},nn=function(e){return g.from(e.dom().nextSibling).map(Ie.fromDom)},rn=function(e){return D(e.dom().childNodes,Ie.fromDom)},on=function(e,t){var n=e.dom().childNodes;return g.from(n[t]).map(Ie.fromDom)},an=function(e){return on(e,0)},sn=(X("element","offset"),function(e,t){var n=Jt(e);n.each((function(n){n.dom().insertBefore(t.dom(),e.dom())}))}),ln=function(e,t){var n=nn(e);n.fold((function(){var n=Jt(e);n.each((function(e){cn(e,t)}))}),(function(e){sn(e,t)}))},un=function(e,t){var n=an(e);n.fold((function(){cn(e,t)}),(function(n){e.dom().insertBefore(t.dom(),n.dom())}))},cn=function(e,t){e.dom().appendChild(t.dom())},fn=function(e,t){sn(e,t),cn(t,e)},dn=function(e,t){M(t,(function(t){sn(e,t)}))},hn=function(e,t){M(t,(function(n,r){var i=0===r?e:t[r-1];ln(i,n)}))},pn=function(e,t){M(t,(function(t){cn(e,t)}))},gn=function(e){e.dom().textContent="",M(rn(e),(function(e){mn(e)}))},mn=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},vn=function(e){var t=rn(e);t.length>0&&dn(e,t),mn(e)},yn=(X("width","height"),X("width","height"),X("rows","columns")),bn=X("row","column"),_n=(X("x","y"),X("element","rowspan","colspan")),wn=X("element","rowspan","colspan","isNew"),xn=X("element","rowspan","colspan","row","column"),On=X("element","cells","section"),Sn=X("element","isNew"),Cn=X("element","cells","section","isNew"),kn=X("cells","section"),En=X("details","section"),An=X("startRow","startCol","finishRow","finishCol"),Tn=function(e,t,n){return I(en(e,n),t)},Dn=function(e,t){return I(rn(e),t)},Mn=function(e,t){var n=[];return M(rn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Mn(e,t))})),n},Pn=function(e,t,n){return Tn(e,(function(e){return zt(e,t)}),n)},In=function(e,t){return Dn(e,(function(e){return zt(e,t)}))},jn=function(e,t){return Ut(t,e)};function Ln(e,t,n,r,i){return e(n,r)?g.some(n):x(i)&&i(n)?g.none():t(n,r,i)}var Nn=function(e,t,n){var r=e.dom(),o=x(n)?n:i(!1);while(r.parentNode){r=r.parentNode;var a=Ie.fromDom(r);if(t(a))return g.some(a);if(o(a))break}return g.none()},Rn=function(e,t,n){var r=function(e,t){return t(e)};return Ln(r,Nn,e,t,n)},Bn=function(e,t){var n=function(e){return t(Ie.fromDom(e))},r=N(e.dom().childNodes,n);return r.map(Ie.fromDom)},$n=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=Ie.fromDom(e.childNodes[r]);if(t(i))return g.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return g.none()};return n(e.dom())},Fn=function(e,t,n){return Nn(e,(function(e){return zt(e,t)}),n)},zn=function(e,t){return Bn(e,(function(e){return zt(e,t)}))},qn=function(e,t){return Ht(t,e)},Un=function(e,t,n){return Ln(zt,Fn,e,t,n)},Hn=function(e,t){return Vn(e,t,i(!0))},Vn=function(e,t,n){return $(rn(e),(function(e){return zt(e,t)?n(e)?[e]:[]:Vn(e,t,n)}))},Wn={firstLayer:Hn,filterFirstLayer:Vn},Kn=function(e,t,n){if(void 0===n&&(n=u),n(t))return g.none();if(A(e,le(t)))return g.some(t);var r=function(e){return zt(e,"table")||n(e)};return Fn(t,e.join(","),r)},Gn=function(e,t){return Kn(["td","th"],e,t)},Yn=function(e){return Wn.firstLayer(e,"th,td")},Xn=function(e,t){return Kn(["caption","tr","tbody","tfoot","thead"],e,t)},Zn=function(e,t){return Jt(t).map((function(t){return In(t,e)}))},Qn=a(Zn,"th,td"),Jn=a(Zn,"tr"),er=function(e){return qn(e,"th,td")},tr=function(e,t){return Un(e,"table",t)},nr=function(e,t){return Kn(["tr"],e,t)},rr=function(e){return Wn.firstLayer(e,"tr")},ir=function(e,t){return parseInt(ve(e,t),10)},or=function(e,t,n){var r=ir(e,t),i=ir(e,n);return yn(r,i)},ar={cell:Gn,firstCell:er,cells:Yn,neighbourCells:Qn,table:tr,row:nr,rows:rr,notCell:Xn,neighbourRows:Jn,attr:ir,grid:or},sr=function(e){var t=ar.rows(e);return D(t,(function(e){var t=e,n=Jt(t),r=n.map((function(e){var t=le(e);return"tfoot"===t||"thead"===t||"tbody"===t?t:"tbody"})).getOr("tbody"),i=D(ar.cells(e),(function(e){var t=ye(e,"rowspan")?parseInt(ve(e,"rowspan"),10):1,n=ye(e,"colspan")?parseInt(ve(e,"colspan"),10):1;return _n(e,t,n)}));return On(t,i,r)}))},lr=function(e,t){return D(e,(function(e){var n=D(ar.cells(e),(function(e){var t=ye(e,"rowspan")?parseInt(ve(e,"rowspan"),10):1,n=ye(e,"colspan")?parseInt(ve(e,"colspan"),10):1;return _n(e,t,n)}));return On(e,n,t.section())}))},ur={fromTable:sr,fromPastedRows:lr},cr=function(e,t){return e+","+t},fr=function(e,t,n){var r=e.access()[cr(t,n)];return void 0!==r?g.some(r):g.none()},dr=function(e,t,n){var r=hr(e,(function(e){return n(t,e.element())}));return r.length>0?g.some(r[0]):g.none()},hr=function(e,t){var n=$(e.all(),(function(e){return e.cells()}));return I(n,t)},pr=function(e){var t={},n=[],r=e.length,o=0;M(e,(function(e,r){var i=[];M(e.cells(),(function(e){var n=0;while(void 0!==t[cr(r,n)])n++;for(var a=xn(e.element(),e.rowspan(),e.colspan(),r,n),s=0;s<e.colspan();s++)for(var l=0;l<e.rowspan();l++){var u=r+l,c=n+s,f=cr(u,c);t[f]=a,o=Math.max(o,c+1)}i.push(a)})),n.push(On(e.element(),i,e.section()))}));var a=yn(r,o);return{grid:i(a),access:i(t),all:i(n)}},gr=function(e){var t=D(e.all(),(function(e){return e.cells()}));return B(t)},mr={generate:pr,getAt:fr,findItem:dr,filterItems:hr,justCells:gr},vr=X("minRow","minCol","maxRow","maxCol"),yr=function(e,t){var n=e.grid().columns(),r=e.grid().rows(),i=r,o=n,a=0,s=0;return V(e.access(),(function(e){if(t(e)){var n=e.row(),r=n+e.rowspan()-1,l=e.column(),u=l+e.colspan()-1;n<i?i=n:r>a&&(a=r),l<o?o=l:u>s&&(s=u)}})),vr(i,o,a,s)},br=function(e,t,n){var r=e[n].element(),i=Ie.fromTag("td");cn(i,Ie.fromTag("br"));var o=t?cn:un;o(r,i)},_r=function(e,t,n,r){for(var i=t.grid().columns(),o=t.grid().rows(),a=0;a<o;a++)for(var s=!1,l=0;l<i;l++)if(!(a<n.minRow()||a>n.maxRow()||l<n.minCol()||l>n.maxCol())){var u=mr.getAt(t,a,l).filter(r).isNone();u?br(e,s,a):s=!0}},wr=function(e,t){var n=I(Wn.firstLayer(e,"tr"),(function(e){return 0===e.dom().childElementCount}));M(n,mn),t.minCol()!==t.maxCol()&&t.minRow()!==t.maxRow()||M(Wn.firstLayer(e,"th,td"),(function(e){be(e,"rowspan"),be(e,"colspan")})),be(e,"width"),be(e,"height"),He(e,"width"),He(e,"height")},xr=function(e,t){var n=function(e){return zt(e.element(),t)},r=ur.fromTable(e),i=mr.generate(r),o=yr(i,n),a="th:not("+t+"),td:not("+t+")",s=Wn.filterFirstLayer(e,"th,td",(function(e){return zt(e,a)}));return M(s,mn),_r(r,i,o,n),wr(e,o),e},Or={extract:xr};function Sr(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?g.from(t.dom().nodeValue):g.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r};return{get:n,getOption:r,set:i}}var Cr=Sr(he,"text"),kr=function(e){return Cr.get(e)},Er=function(e){return Cr.getOption(e)},Ar=function(e,t){Cr.set(e,t)},Tr=function(e){return"img"===le(e)?1:Er(e).fold((function(){return rn(e).length}),(function(e){return e.length}))},Dr=" ",Mr=function(e){return Er(e).filter((function(e){return 0!==e.trim().length||e.indexOf(Dr)>-1})).isSome()},Pr=["img","br"],Ir=function(e){var t=Mr(e);return t||A(Pr,le(e))},jr=function(e){return $n(e,Ir)},Lr=function(e){return Nr(e,Ir)},Nr=function(e,t){var n=function(e){for(var r=rn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return g.some(o);var a=n(o);if(a.isSome())return a}return g.none()};return n(e)},Rr=function(e,t){return Ie.fromDom(e.dom().cloneNode(t))},Br=function(e){return Rr(e,!1)},$r=function(e){return Rr(e,!0)},Fr=function(e,t){var n=Ie.fromTag(t),r=_e(e);return me(n,r),n},zr=function(e,t){var n=Fr(e,t),r=rn($r(e));return pn(n,r),n},qr=function(){var e=Ie.fromTag("td");return cn(e,Ie.fromTag("br")),e},Ur=function(e,t,n){var r=zr(e,t);return V(n,(function(e,t){null===e?be(r,t):ge(r,t,e)})),r},Hr=function(e){return e},Vr=function(e){return function(){return Ie.fromTag("tr",e.dom())}},Wr=function(e,t,n){var r=jr(e);return r.map((function(r){var i=n.join(","),o=Pn(r,i,(function(t){return Vt(t,e)}));return j(o,(function(e,t){var n=Br(t);return be(n,"contenteditable"),cn(e,n),n}),t)})).getOr(t)},Kr=function(e,t,n){var r=function(t){var r=Zt(t.element()),i=Ie.fromTag(le(t.element()),r.dom()),o=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),a=o.length>0?Wr(t.element(),i,o):i;return cn(a,Ie.fromTag("br")),Ve(t.element(),i),He(i,"height"),1!==t.colspan()&&He(t.element(),"width"),e(t.element(),i),i};return{row:Vr(t),cell:r,replace:Ur,gap:qr}},Gr=function(e){return{row:Vr(e),cell:qr,replace:Hr,gap:qr}},Yr={cellOperations:Kr,paste:Gr},Xr=function(t,n){var r=n||e.document,i=r.createElement("div");return i.innerHTML=t,rn(Ie.fromDom(i))},Zr=function(e,t){var n=t.column(),r=t.column()+t.colspan()-1,i=t.row(),o=t.row()+t.rowspan()-1;return n<=e.finishCol()&&r>=e.startCol()&&i<=e.finishRow()&&o>=e.startRow()},Qr=function(e,t){return t.column()>=e.startCol()&&t.column()+t.colspan()-1<=e.finishCol()&&t.row()>=e.startRow()&&t.row()+t.rowspan()-1<=e.finishRow()},Jr=function(e,t){for(var n=!0,r=a(Qr,t),i=t.startRow();i<=t.finishRow();i++)for(var o=t.startCol();o<=t.finishCol();o++)n=n&&mr.getAt(e,i,o).exists(r);return n?g.some(t):g.none()},ei={inSelection:Zr,isWithin:Qr,isRectangular:Jr},ti=function(e,t){return An(Math.min(e.row(),t.row()),Math.min(e.column(),t.column()),Math.max(e.row()+e.rowspan()-1,t.row()+t.rowspan()-1),Math.max(e.column()+e.colspan()-1,t.column()+t.colspan()-1))},ni=function(e,t,n){var r=mr.findItem(e,t,Vt),i=mr.findItem(e,n,Vt);return r.bind((function(e){return i.map((function(t){return ti(e,t)}))}))},ri=function(e,t,n){return ni(e,t,n).bind((function(t){return ei.isRectangular(e,t)}))},ii={getAnyBox:ni,getBox:ri},oi=function(e,t,n,r){return mr.findItem(e,t,Vt).bind((function(t){var i=n>0?t.row()+t.rowspan()-1:t.row(),o=r>0?t.column()+t.colspan()-1:t.column(),a=mr.getAt(e,i+n,o+r);return a.map((function(e){return e.element()}))}))},ai=function(e,t,n){return ii.getAnyBox(e,t,n).map((function(t){var n=mr.filterItems(e,a(ei.inSelection,t));return D(n,(function(e){return e.element()}))}))},si=function(e,t){var n=function(e,t){return Yt(t,e)};return mr.findItem(e,t,n).map((function(e){return e.element()}))},li={moveBy:oi,intercepts:ai,parentCell:si},ui=function(e,t,n){return ar.table(e).bind((function(r){var i=hi(r);return li.moveBy(i,e,t,n)}))},ci=function(e,t,n){var r=hi(e);return li.intercepts(r,t,n)},fi=function(e,t,n,r,i){var o=hi(e),a=Vt(e,n)?g.some(t):li.parentCell(o,t),s=Vt(e,i)?g.some(r):li.parentCell(o,r);return a.bind((function(e){return s.bind((function(t){return li.intercepts(o,e,t)}))}))},di=function(e,t,n){var r=hi(e);return ii.getBox(r,t,n)},hi=function(e){var t=ur.fromTable(e);return mr.generate(t)},pi={moveBy:ui,intercepts:ci,nestedIntercepts:fi,getBox:di},gi=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function mi(){var e=function(e){return Ie.fromDom(e.dom().cloneNode(!1))},t=function(e){return e.dom().ownerDocument},n=function(e){return!!de(e)&&("body"===le(e)||A(gi,le(e)))},r=function(e){return!!de(e)&&A(["br","img","hr","input"],le(e))},o=function(e,t){return e.dom().compareDocumentPosition(t.dom())},a=function(e,t){var n=_e(e);me(t,n)};return{up:i({selector:Fn,closest:Un,predicate:Nn,all:en}),down:i({selector:jn,predicate:Mn}),styles:i({get:ze,getRaw:Ue,set:$e,remove:He}),attrs:i({get:ve,set:ge,remove:be,copyTo:a}),insert:i({before:sn,after:ln,afterAll:hn,append:cn,appendAll:pn,prepend:un,wrap:fn}),remove:i({unwrap:vn,remove:mn}),create:i({nu:Ie.fromTag,clone:e,text:Ie.fromText}),query:i({comparePosition:o,prevSibling:tn,nextSibling:nn}),property:i({children:rn,name:le,parent:Jt,document:t,isText:he,isComment:fe,isElement:de,getText:kr,setText:Ar,isBoundary:n,isEmptyTag:r}),eq:Vt,is:Xt}}var vi=X("left","right"),yi=X("first","second","splits"),bi=function(e,t,n){var r=e.property().children(t),o=R(r,a(e.eq,n));return o.map((function(e){return{before:i(r.slice(0,e)),after:i(r.slice(e+1))}}))},_i=function(e,t,n){return bi(e,t,n).map((function(n){var r=e.create().clone(t);return e.insert().appendAll(r,n.after()),e.insert().after(t,r),vi(t,r)}))},wi=function(e,t,n){return bi(e,t,n).map((function(r){var i=e.create().clone(t);return e.insert().appendAll(i,r.before().concat([n])),e.insert().appendAll(t,r.after()),e.insert().before(t,i),vi(i,t)}))},xi=function(e,t,n,r){var i=function(t,o,a){var s=yi(t,g.none(),a);return n(t)?yi(t,o,a):e.property().parent(t).bind((function(o){return r(e,o,t).map((function(e){var t=[{first:e.left,second:e.right}],r=n(o)?o:e.left();return i(r,g.some(e.right()),a.concat(t))}))})).getOr(s)};return i(t,g.none(),[])},Oi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Si=function(e,t,n){return n.length>0?Oi(e,t,n,Ci):g.none()},Ci=function(e,t,n,r){var i=t(e,n);return j(r,(function(n,r){var i=t(e,r);return ki(e,n,i)}),i)},ki=function(e,t,n){return t.bind((function(t){return n.filter(a(e.eq,t))}))},Ei=function(e,t){return a(e.eq,t)},Ai=function(e,t,n,r){var i=e.property().children(t);if(e.eq(t,n[0]))return g.some([n[0]]);if(e.eq(t,r[0]))return g.some([r[0]]);var o=function(n){var r=z(n),o=R(r,Ei(e,t)).getOr(-1),a=o<r.length-1?r[o+1]:r[o];return R(i,Ei(e,a))},a=o(n),s=o(r);return a.bind((function(e){return s.map((function(t){var n=Math.min(e,t),r=Math.max(e,t);return i.slice(n,r+1)}))}))},Ti=function(e,t,n,r){void 0===r&&(r=u);var o=[t].concat(e.up().all(t)),a=[n].concat(e.up().all(n)),s=function(e){var t=R(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},l=s(o),c=s(a),f=N(l,(function(t){return T(c,Ei(e,t))}));return{firstpath:i(l),secondpath:i(c),shared:i(f)}},Di=function(e,t,n){var r=Ti(e,t,n);return r.shared().bind((function(t){return Ai(e,t,r.firstpath(),r.secondpath())}))},Mi={subset:Di,ancestors:Ti},Pi=Si,Ii=Mi.subset,ji=Mi.ancestors,Li=wi,Ni=_i,Ri=xi,Bi={sharedOne:Pi,subset:Ii,ancestors:ji,breakToLeft:Li,breakToRight:Ni,breakPath:Ri},$i=mi(),Fi=function(e,t){return Bi.sharedOne($i,(function(t,n){return e(n)}),t)},zi=function(e,t){return Bi.subset($i,e,t)},qi=function(e,t,n){return Bi.ancestors($i,e,t,n)},Ui=function(e,t){return Bi.breakToLeft($i,e,t)},Hi=function(e,t){return Bi.breakToRight($i,e,t)},Vi=function(e,t,n){return Bi.breakPath($i,e,t,(function(e,t,r){return n(t,r)}))},Wi={sharedOne:Fi,subset:zi,ancestors:qi,breakToLeft:Ui,breakToRight:Hi,breakPath:Vi},Ki=re(["boxes","start","finish"],[]),Gi={create:Ki},Yi=function(e){return Fn(e,"table")},Xi=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||Vt(t,e)}};return Vt(e,t)?g.some(Gi.create({boxes:g.some([e]),start:e,finish:t})):Yi(e).bind((function(i){return Yi(t).bind((function(o){if(Vt(i,o))return g.some(Gi.create({boxes:pi.intercepts(i,e,t),start:e,finish:t}));if(Yt(i,o)){var a=Pn(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return g.some(Gi.create({boxes:pi.nestedIntercepts(i,e,i,t,o),start:e,finish:s}))}if(Yt(o,i)){a=Pn(e,"td,th",r(o));var l=a.length>0?a[a.length-1]:e;return g.some(Gi.create({boxes:pi.nestedIntercepts(o,e,i,t,o),start:e,finish:l}))}return Wi.ancestors(e,t).shared().bind((function(a){return Un(a,"table",n).bind((function(n){var a=Pn(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,l=Pn(e,"td,th",r(n)),u=l.length>0?l[l.length-1]:e;return g.some(Gi.create({boxes:pi.nestedIntercepts(n,e,i,t,o),start:u,finish:s}))}))}))}))}))},Zi=function(e,t){var n=jn(e,t);return n.length>0?g.some(n):g.none()},Qi=function(e,t){return N(e,(function(e){return zt(e,t)}))},Ji=function(e,t,n){return qn(e,t).bind((function(t){return qn(e,n).bind((function(e){return Wi.sharedOne(Yi,[t,e]).map((function(n){return{first:i(t),last:i(e),table:i(n)}}))}))}))},eo=function(e,t){return Fn(e,"table").bind((function(n){return qn(n,t).bind((function(t){return Xi(t,e).bind((function(e){return e.boxes().map((function(t){return{boxes:i(t),start:i(e.start()),finish:i(e.finish())}}))}))}))}))},to=function(e,t,n,r,i){return Qi(e,i).bind((function(e){return pi.moveBy(e,t,n).bind((function(e){return eo(e,r)}))}))},no={identify:Xi,retrieve:Zi,shiftSelection:to,getEdges:Ji},ro=function(e,t){return no.retrieve(e,t)},io=function(e,t,n){return no.getEdges(e,t,n).bind((function(t){var n=function(t){return Vt(e,t)},r=Fn(t.first(),"thead,tfoot,tbody,table",n),i=Fn(t.last(),"thead,tfoot,tbody,table",n);return r.bind((function(e){return i.bind((function(n){return Vt(e,n)?pi.getBox(t.table(),t.first(),t.last()):g.none()}))}))}))},oo={retrieve:ro,retrieveBox:io},ao="data-mce-selected",so="td["+ao+"],th["+ao+"]",lo="["+ao+"]",uo="data-mce-first-selected",co="td["+uo+"],th["+uo+"]",fo="data-mce-last-selected",ho="td["+fo+"],th["+fo+"]",po={selected:i(ao),selectedSelector:i(so),attributeSelector:i(lo),firstSelected:i(uo),firstSelectedSelector:i(co),lastSelected:i(fo),lastSelectedSelector:i(ho)},go=function(t){if(!_(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return M(t,(function(i,o){var a=U(i);if(1!==a.length)throw new Error("one and only one name per case");var s=a[0],l=i[s];if(void 0!==r[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!_(l))throw new Error("case arguments must be an array");n.push(s),r[s]=function(){var r=arguments.length;if(r!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+r);for(var i=new Array(r),a=0;a<i.length;a++)i[a]=arguments[a];var u=function(e){var t=U(e);if(n.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+"\nActual: "+t.join(","));var r=F(n,(function(e){return A(t,e)}));if(!r)throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+n.join(", "));return e[s].apply(null,i)};return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);var e=arguments[o];return e.apply(null,i)},match:u,log:function(t){e.console.log(t,{constructors:n,constructor:s,params:i})}}}})),r},mo={generate:go},vo=mo.generate([{none:[]},{multiple:["elements"]},{single:["selection"]}]),yo=function(e,t,n,r){return e.fold(t,n,r)},bo={cata:yo,none:vo.none,multiple:vo.multiple,single:vo.single},_o=function(e,t){return bo.cata(t.get(),i([]),o,i([e]))},wo=function(e,t){var n=function(e){return ye(e,"rowspan")&&parseInt(ve(e,"rowspan"),10)>1||ye(e,"colspan")&&parseInt(ve(e,"colspan"),10)>1},r=_o(e,t);return r.length>0&&F(r,n)?g.some(r):g.none()},xo=function(e,t){return bo.cata(t.get(),g.none,(function(t,n){return 0===t.length?g.none():oo.retrieveBox(e,po.firstSelectedSelector(),po.lastSelectedSelector()).bind((function(e){return t.length>1?g.some({bounds:i(e),cells:i(t)}):g.none()}))}),g.none)},Oo={mergable:xo,unmergable:wo,selection:_o},So=function(e){return{element:i(e),mergable:g.none,unmergable:g.none,selection:i([e])}},Co=function(e,t,n){return{element:i(n),mergable:i(Oo.mergable(t,e)),unmergable:i(Oo.unmergable(n,e)),selection:i(Oo.selection(n,e))}},ko=function(e){return So(e)},Eo=X("element","clipboard","generators"),Ao=function(e,t,n,r,o){return{element:i(n),mergable:g.none,unmergable:g.none,selection:i(Oo.selection(n,e)),clipboard:i(r),generators:i(o)}},To={noMenu:So,forMenu:Co,notCell:ko,paste:Eo,pasteRows:Ao},Do=function(e){return ar.table(e[0]).map($r).map((function(e){return[Or.extract(e,po.attributeSelector())]}))},Mo=function(e,t){return D(t,(function(t){return e.selection.serializer.serialize(t.dom(),{})})).join("")},Po=function(e){return D(e,(function(e){return e.dom().innerText})).join("")},Io=function(e,t,r,i){e.on("BeforeGetContent",(function(r){var i=function(t){r.preventDefault(),Do(t).each((function(t){r.content="text"===r.format?Po(t):Mo(e,t)}))};!0===r.selection&&bo.cata(t.get(),n,i,n)})),e.on("BeforeSetContent",(function(t){if(!0===t.selection&&!0===t.paste){var n=g.from(e.dom.getParent(e.selection.getStart(),"th,td"));n.each((function(n){var o=Ie.fromDom(n);ar.table(o).each((function(n){var a=I(Xr(t.content),(function(e){return"meta"!==le(e)}));if(1===a.length&&"table"===le(a[0])){t.preventDefault();var s=Ie.fromDom(e.getDoc()),l=Yr.paste(s),u=To.paste(o,a[0],l);r.pasteCells(n,u).each((function(t){e.selection.setRng(t),e.focus(),i.clear(n)}))}}))}))}}))},jo={registerEvents:Io};function Lo(e,t){var n=function(t,n){if(!O(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();ke(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=ze(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return L(t,(function(t,n){var r=ze(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var No=Lo("height",(function(e){var t=e.dom();return je(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ro=function(e){return No.get(e)},Bo=function(e){return No.getOuter(e)},$o=Lo("width",(function(e){return e.dom().offsetWidth})),Fo=function(e){return $o.get(e)},zo=function(e){return $o.getOuter(e)},qo=Bt(),Uo=function(){return qo.browser.isIE()||qo.browser.isEdge()},Ho=function(e,t){var n=parseFloat(e);return isNaN(n)?t:n},Vo=function(e,t,n){return Ho(ze(e,t),n)},Wo=function(e){var t=Vo(e,"padding-top",0),n=Vo(e,"padding-bottom",0),r=Vo(e,"border-top-width",0),i=Vo(e,"border-bottom-width",0),o=e.dom().getBoundingClientRect().height,a=ze(e,"box-sizing"),s=r+i;return"border-box"===a?o:o-t-n-s},Ko=function(e){return Vo(e,"width",Fo(e))},Go=function(e){return Uo()?Wo(e):Vo(e,"height",Ro(e))},Yo={getWidth:Ko,getHeight:Go},Xo=/(\d+(\.\d+)?)(\w|%)*/,Zo=/(\d+(\.\d+)?)%/,Qo=/(\d+(\.\d+)?)px|em/,Jo=function(e,t){$e(e,"width",t+"px")},ea=function(e,t){$e(e,"width",t+"%")},ta=function(e,t){$e(e,"height",t+"px")},na=function(e){return Ue(e,"height").getOrThunk((function(){return Yo.getHeight(e)+"px"}))},ra=function(e,t,n,r){var i=ar.table(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},ia=function(e,t,n,r){var i=parseInt(e,10);return Se(e,"%")&&"table"!==le(t)?ra(t,i,n,r):i},oa=function(e){var t=na(e);return t?ia(t,e,Ro,ta):Ro(e)},aa=function(e,t,n){var r=n(e),i=sa(e,t);return r/i},sa=function(e,t){return ye(e,t)?parseInt(ve(e,t),10):1},la=function(e){var t=Ue(e,"width");return t.fold((function(){return g.from(ve(e,"width"))}),(function(e){return g.some(e)}))},ua=function(e,t){return e/t.pixelWidth()*100},ca=function(e,t,n){var r=Zo.exec(t);if(null!==r)return parseFloat(r[1]);var i=Fo(e);return ua(i,n)},fa=function(e,t){var n=la(e);return n.fold((function(){var n=Fo(e);return ua(n,t)}),(function(n){return ca(e,n,t)}))},da=function(e,t){return e/100*t.pixelWidth()},ha=function(e,t,n){var r=Qo.exec(t);if(null!==r)return parseInt(r[1],10);var i=Zo.exec(t);if(null!==i){var o=parseFloat(i[1]);return da(o,n)}return Fo(e)},pa=function(e,t){var n=la(e);return n.fold((function(){return Fo(e)}),(function(n){return ha(e,n,t)}))},ga=function(e){return aa(e,"rowspan",oa)},ma=function(e){var t=la(e);return t.bind((function(e){var t=Xo.exec(e);return null!==t?g.some({width:i(parseFloat(t[1])),unit:i(t[3])}):g.none()}))},va=function(e,t,n){$e(e,"width",t+n)},ya={percentageBasedSizeRegex:i(Zo),pixelBasedSizeRegex:i(Qo),setPixelWidth:Jo,setPercentageWidth:ea,setHeight:ta,getPixelWidth:pa,getPercentageWidth:fa,getGenericWidth:ma,setGenericWidth:va,getHeight:ga,getRawWidth:la},ba=function(e,t){var n=ya.getGenericWidth(e);n.each((function(n){var r=n.width()/2;ya.setGenericWidth(e,r,n.unit()),ya.setGenericWidth(t,r,n.unit())}))},_a={halve:ba},wa=function(e,t){var n=function(n,r){return wa(e+n,t+r)};return{left:i(e),top:i(t),translate:n}},xa=wa,Oa=function(e){var t=e.getBoundingClientRect();return xa(t.left,t.top)},Sa=function(e,t){return void 0!==e?e:void 0!==t?t:0},Ca=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom())return xa(n.offsetLeft,n.offsetTop);var o=Sa(r.pageYOffset,i.scrollTop),a=Sa(r.pageXOffset,i.scrollLeft),s=Sa(i.clientTop,n.clientTop),l=Sa(i.clientLeft,n.clientLeft);return ka(e).translate(a-l,o-s)},ka=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?xa(r.offsetLeft,r.offsetTop):je(e)?Oa(t):xa(0,0)},Ea=X("row","y"),Aa=X("col","x"),Ta=function(e){var t=Ca(e);return t.left()+zo(e)},Da=function(e){return Ca(e).left()},Ma=function(e,t){return Aa(e,Da(t))},Pa=function(e,t){return Aa(e,Ta(t))},Ia=function(e){return Ca(e).top()},ja=function(e,t){return Ea(e,Ia(t))},La=function(e,t){return Ea(e,Ia(t)+Bo(t))},Na=function(e,t,n){if(0===n.length)return[];var r=D(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},Ra=function(e){return-e},Ba={delta:o,positions:function(e){return Na(ja,La,e)},edge:Ia},$a={delta:o,edge:Da,positions:function(e){return Na(Ma,Pa,e)}},Fa={delta:Ra,edge:Ta,positions:function(e){return Na(Pa,Ma,e)}},za={height:Ba,rtl:Fa,ltr:$a},qa={ltr:za.ltr,rtl:za.rtl};function Ua(e){var t=function(t){return e(t).isRtl()?qa.rtl:qa.ltr},n=function(e,n){return t(n).delta(e,n)},r=function(e,n){return t(n).positions(e,n)},i=function(e){return t(e).edge(e)};return{delta:n,edge:i,positions:r}}var Ha=function(e){var t=ur.fromTable(e),n=mr.generate(t);return n.grid()},Va={getGridSize:Ha},Wa=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Ka=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return g.none()},Ga=function(e,t,n,r){n===r?be(e,t):ge(e,t,n)},Ya=function(e,t){var n=[],r=[],o=function(t,i){var o=zn(e,i).getOrThunk((function(){var t=Ie.fromTag(i,Zt(e).dom());return cn(e,t),t}));gn(o);var a=D(t,(function(e){e.isNew()&&n.push(e.element());var t=e.element();return gn(t),M(e.cells(),(function(e){e.isNew()&&r.push(e.element()),Ga(e.element(),"colspan",e.colspan(),1),Ga(e.element(),"rowspan",e.rowspan(),1),cn(t,e.element())})),t}));pn(o,a)},a=function(t){zn(e,t).each(mn)},s=function(e,t){e.length>0?o(e,t):a(t)},l=[],u=[],c=[];return M(t,(function(e){switch(e.section()){case"thead":l.push(e);break;case"tbody":u.push(e);break;case"tfoot":c.push(e);break}})),s(l,"thead"),s(u,"tbody"),s(c,"tfoot"),{newRows:i(n),newCells:i(r)}},Xa=function(e){var t=D(e,(function(e){var t=Br(e.element());return M(e.cells(),(function(e){var n=$r(e.element());Ga(n,"colspan",e.colspan(),1),Ga(n,"rowspan",e.rowspan(),1),cn(t,n)})),t}));return t},Za={render:Ya,copy:Xa},Qa=function(e,t){var n=ve(e,t);return void 0===n||""===n?[]:n.split(" ")},Ja=function(e,t,n){var r=Qa(e,t),i=r.concat([n]);return ge(e,t,i.join(" ")),!0},es=function(e,t,n){var r=I(Qa(e,t),(function(e){return e!==n}));return r.length>0?ge(e,t,r.join(" ")):be(e,t),!1},ts=function(e){return void 0!==e.dom().classList},ns=function(e){return Qa(e,"class")},rs=function(e,t){return Ja(e,"class",t)},is=function(e,t){return es(e,"class",t)},os=function(e,t){ts(e)?e.dom().classList.add(t):rs(e,t)},as=function(e){var t=ts(e)?e.dom().classList:ns(e);0===t.length&&be(e,"class")},ss=function(e,t){if(ts(e)){var n=e.dom().classList;n.remove(t)}else is(e,t);as(e)},ls=function(e,t){return ts(e)&&e.dom().classList.contains(t)},us=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},cs=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n},fs=function(e,t){if(t<0||t>=e.length-1)return g.none();var n=e[t].fold((function(){var n=z(e.slice(0,t));return Ka(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return g.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return Ka(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return g.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},ds=function(e){var t=e.grid(),n=cs(0,t.columns()),r=cs(0,t.rows());return D(n,(function(t){var n=function(){return $(r,(function(n){return mr.getAt(e,n,t).filter((function(e){return e.column()===t})).fold(i([]),(function(e){return[e]}))}))},o=function(e){return 1===e.colspan()},a=function(){return mr.getAt(e,0,t)};return hs(n,o,a)}))},hs=function(e,t,n){var r=e(),i=N(r,t),o=i.orThunk((function(){return g.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element()}))},ps=function(e){var t=e.grid(),n=cs(0,t.rows()),r=cs(0,t.columns());return D(n,(function(t){var n=function(){return $(r,(function(n){return mr.getAt(e,t,n).filter((function(e){return e.row()===t})).fold(i([]),(function(e){return[e]}))}))},o=function(e){return 1===e.rowspan()},a=function(){return mr.getAt(e,t,0)};return hs(n,o,a)}))},gs={columns:ds,rows:ps},ms=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},vs=ms("ephox-snooker"),ys={resolve:vs.resolve},bs=function(e,t,n,r,i){var o=Ie.fromTag("div");return Fe(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),me(o,{"data-column":e,role:"presentation"}),o},_s=function(e,t,n,r,i){var o=Ie.fromTag("div");return Fe(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),me(o,{"data-row":e,role:"presentation"}),o},ws={col:bs,row:_s},xs=ys.resolve("resizer-bar"),Os=ys.resolve("resizer-rows"),Ss=ys.resolve("resizer-cols"),Cs=7,ks=function(e){var t=jn(e.parent(),"."+xs);M(t,mn)},Es=function(e,t,n){var r=e.origin();M(t,(function(t,i){t.each((function(t){var i=n(r,t);os(i,xs),cn(e.parent(),i)}))}))},As=function(e,t,n,r){Es(e,t,(function(e,t){var i=ws.col(t.col(),t.x()-e.left(),n.top()-e.top(),Cs,r);return os(i,Ss),i}))},Ts=function(e,t,n,r){Es(e,t,(function(e,t){var i=ws.row(t.row(),n.left()-e.left(),t.y()-e.top(),r,Cs);return os(i,Os),i}))},Ds=function(e,t,n,r,i,o){var a=Ca(t),s=n.length>0?i.positions(n,t):[];Ts(e,s,a,zo(t));var l=r.length>0?o.positions(r,t):[];As(e,l,a,Bo(t))},Ms=function(e,t,n,r){ks(e);var i=ur.fromTable(t),o=mr.generate(i),a=gs.rows(o),s=gs.columns(o);Ds(e,t,a,s,n,r)},Ps=function(e,t){var n=jn(e.parent(),"."+xs);M(n,t)},Is=function(e){Ps(e,(function(e){$e(e,"display","none")}))},js=function(e){Ps(e,(function(e){$e(e,"display","block")}))},Ls=function(e){return ls(e,Os)},Ns=function(e){return ls(e,Ss)},Rs={refresh:Ms,hide:Is,show:js,destroy:ks,isRowBar:Ls,isColBar:Ns},Bs=function(e,t,n){var r=e.cells(),i=r.slice(0,t),o=r.slice(t),a=i.concat([n]).concat(o);return Fs(e,a)},$s=function(e,t,n){var r=e.cells();r[t]=n},Fs=function(e,t){return kn(t,e.section())},zs=function(e,t){var n=e.cells(),r=D(n,t);return kn(r,e.section())},qs=function(e,t){return e.cells()[t]},Us=function(e,t){return qs(e,t).element()},Hs=function(e){return e.cells().length},Vs={addCell:Bs,setCells:Fs,mutateCell:$s,getCell:qs,getCellElement:Us,mapCells:zs,cellLength:Hs},Ws=function(e,t){return D(e,(function(e){return Vs.getCell(e,t)}))},Ks=function(e,t){return e[t]},Gs=function(e,t){if(0===e.length)return 0;var n=e[0],r=R(e,(function(e){return!t(n.element(),e.element())}));return r.fold((function(){return e.length}),(function(e){return e}))},Ys=function(e,t,n,r){var o=Ks(e,t).cells().slice(n),a=Gs(o,r),s=Ws(e,n).slice(t),l=Gs(s,r);return{colspan:i(a),rowspan:i(l)}},Xs={subgrid:Ys},Zs=function(e,t){var n=D(e,(function(e,t){return D(e.cells(),(function(e,t){return!1}))})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return D(e,(function(i,o){var a=$(i.cells(),(function(i,a){if(!1===n[o][a]){var s=Xs.subgrid(e,o,a,t);return r(o,a,s.rowspan(),s.colspan()),[wn(i.element(),s.rowspan(),s.colspan(),i.isNew())]}return[]}));return En(a,i.section())}))},Qs=function(e,t,n){for(var r=[],i=0;i<e.grid().rows();i++){for(var o=[],a=0;a<e.grid().columns();a++){var s=mr.getAt(e,i,a).map((function(e){return Sn(e.element(),n)})).getOrThunk((function(){return Sn(t.gap(),!0)}));o.push(s)}var l=kn(o,e.all()[i].section());r.push(l)}return r},Js={toDetails:Zs,toGrid:Qs},el=function(e,t){return Js.toGrid(e,t,!1)},tl=function(e,t){var n=function(e){var n=Ka(e,(function(e){return Jt(e.element()).map((function(e){var t=Jt(e).isNone();return Sn(e,t)}))}));return n.getOrThunk((function(){return Sn(t.row(),!0)}))};return D(e,(function(e){var t=n(e.details());return Cn(t.element(),e.details(),e.section(),t.isNew())}))},nl=function(e,t){var n=Js.toDetails(e,Vt);return tl(n,t)},rl=function(e,t){var n=B(D(e.all(),(function(e){return e.cells()})));return N(n,(function(e){return Vt(t,e.element())}))},il=function(e,t,n,r,o){return function(a,s,l,u,c){var f=ur.fromTable(s),d=mr.generate(f),h=t(d,l).map((function(t){var n=el(d,u),r=e(n,t,Vt,o(u)),a=nl(r.grid(),u);return{grid:i(a),cursor:r.cursor}}));return h.fold((function(){return g.none()}),(function(e){var t=Za.render(s,e.grid());return n(s,e.grid(),c),r(s),Rs.refresh(a,s,za.height,c),g.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},ol=function(e,t){return ar.cell(t.element()).bind((function(t){return rl(e,t)}))},al=function(e,t){return ar.cell(t.element()).bind((function(n){return rl(e,n).map((function(e){var n=Xe(Xe({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},sl=function(e,t){var n=D(t.selection(),(function(t){return ar.cell(t).bind((function(t){return rl(e,t)}))})),r=Wa(n);return r.length>0?g.some({cells:r,generators:t.generators,clipboard:t.clipboard}):g.none()},ll=function(e,t){return t.mergable()},ul=function(e,t){return t.unmergable()},cl=function(e,t){var n=D(t.selection(),(function(t){return ar.cell(t).bind((function(t){return rl(e,t)}))})),r=Wa(n);return r.length>0?g.some(r):g.none()},fl=function(e){var t=function(t){return e===t},n=function(t){return fl(e)},r=function(t){return fl(e)},o=function(t){return fl(t(e))},a=function(t){return fl(e)},s=function(t){t(e)},l=function(t){return t(e)},f=function(t,n){return n(e)},d=function(t){return t(e)},h=function(t){return t(e)},p=function(){return g.some(e)};return{is:t,isValue:c,isError:u,getOr:i(e),getOrThunk:i(e),getOrDie:i(e),or:n,orThunk:r,fold:f,map:o,mapError:a,each:s,bind:l,exists:d,forall:h,toOption:p}},dl=function(e){var t=function(e){return e()},r=function(){return l(String(e))()},i=function(e){return e},a=function(e){return e()},s=function(t){return dl(e)},f=function(t){return dl(t(e))},d=function(t){return dl(e)},h=function(t,n){return t(e)};return{is:u,isValue:u,isError:c,getOr:o,getOrThunk:t,getOrDie:r,or:i,orThunk:a,fold:h,map:s,mapError:f,each:n,bind:d,exists:u,forall:c,toOption:g.none}},hl=function(e,t){return e.fold((function(){return dl(t)}),fl)},pl={value:fl,error:dl,fromOption:hl},gl=function(e,t,n){if(e.row()>=t.length||e.column()>Vs.cellLength(t[0]))return pl.error("invalid start address out of table bounds, row: "+e.row()+", column: "+e.column());var r=t.slice(e.row()),o=r[0].cells().slice(e.column()),a=Vs.cellLength(n[0]),s=n.length;return pl.value({rowDelta:i(r.length-s),colDelta:i(o.length-a)})},ml=function(e,t){var n=Vs.cellLength(e[0]),r=Vs.cellLength(t[0]);return{rowDelta:i(0),colDelta:i(n-r)}},vl=function(e,t){return D(e,(function(){return Sn(t.cell(),!0)}))},yl=function(e,t,n){return e.concat(us(t,(function(t){return Vs.setCells(e[e.length-1],vl(e[e.length-1].cells(),n))})))},bl=function(e,t,n){return D(e,(function(e){return Vs.setCells(e,e.cells().concat(vl(cs(0,t),n)))}))},_l=function(e,t,n){var r=t.colDelta()<0?bl:o,i=t.rowDelta()<0?yl:o,a=r(e,Math.abs(t.colDelta()),n),s=i(a,Math.abs(t.rowDelta()),n);return s},wl={measure:gl,measureWidth:ml,tailor:_l},xl=function(e,t,n,r){if(0===e.length)return e;for(var i=t.startRow();i<=t.finishRow();i++)for(var o=t.startCol();o<=t.finishCol();o++)Vs.mutateCell(e[i],o,Sn(r(),!1));return e},Ol=function(e,t,n,r){for(var i=!0,o=0;o<e.length;o++)for(var a=0;a<Vs.cellLength(e[0]);a++){var s=Vs.getCellElement(e[o],a),l=n(s,t);!0===l&&!1===i?Vs.mutateCell(e[o],a,Sn(r(),!0)):!0===l&&(i=!1)}return e},Sl=function(e,t){return L(e,(function(e,n){return T(e,(function(e){return t(e.element(),n.element())}))?e:e.concat([n])}),[])},Cl=function(e,t,n,r){if(t>0&&t<e.length){var i=e[t-1].cells(),o=Sl(i,n);M(o,(function(i){for(var o=g.none(),a=function(t){for(var a=function(a){var s=e[t].cells()[a],l=n(s.element(),i.element());l&&(o.isNone()&&(o=g.some(r())),o.each((function(n){Vs.mutateCell(e[t],a,Sn(n,!0))})))},s=0;s<Vs.cellLength(e[0]);s++)a(s)},s=t;s<e.length;s++)a(s)}))}return e},kl={merge:xl,unmerge:Ol,splitRows:Cl},El=function(e,t,n,r){var i=Vs.getCell(e[t],n),o=a(r,i.element()),s=e[t];return e.length>1&&Vs.cellLength(s)>1&&(n>0&&o(Vs.getCellElement(s,n-1))||n<s.cells().length-1&&o(Vs.getCellElement(s,n+1))||t>0&&o(Vs.getCellElement(e[t-1],n))||t<e.length-1&&o(Vs.getCellElement(e[t+1],n)))},Al=function(e,t,n,r,i){for(var o=e.row(),a=e.column(),s=n.length,l=Vs.cellLength(n[0]),u=o+s,c=a+l,f=o;f<u;f++)for(var d=a;d<c;d++){El(t,f,d,i)&&kl.unmerge(t,Vs.getCellElement(t[f],d),i,r.cell);var h=Vs.getCellElement(n[f-o],d-a),p=r.replace(h);Vs.mutateCell(t[f],d,Sn(p,!0))}return t},Tl=function(e,t,n,r,i){var o=wl.measure(e,t,n);return o.map((function(o){var a=wl.tailor(t,o,r);return Al(e,a,n,r,i)}))},Dl=function(e,t,n,r,i){kl.splitRows(t,e,i,r.cell);var o=wl.measureWidth(n,t),a=wl.tailor(n,o,r),s=wl.measureWidth(t,a),l=wl.tailor(t,s,r);return l.slice(0,e).concat(a).concat(l.slice(e,l.length))},Ml={merge:Tl,insert:Dl},Pl=function(e,t,n,r,i){var o=e.slice(0,t),a=e.slice(t),s=Vs.mapCells(e[n],(function(n,o){var a=t>0&&t<e.length&&r(Vs.getCellElement(e[t-1],o),Vs.getCellElement(e[t],o)),s=a?Vs.getCell(e[t],o):Sn(i(n.element(),r),!0);return s}));return o.concat([s]).concat(a)},Il=function(e,t,n,r,i){return D(e,(function(e){var o=t>0&&t<Vs.cellLength(e)&&r(Vs.getCellElement(e,t-1),Vs.getCellElement(e,t)),a=o?Vs.getCell(e,t):Sn(i(Vs.getCellElement(e,n),r),!0);return Vs.addCell(e,t,a)}))},jl=function(e,t,n,r,i){var o=n+1;return D(e,(function(e,a){var s=a===t,l=s?Sn(i(Vs.getCellElement(e,n),r),!0):Vs.getCell(e,n);return Vs.addCell(e,o,l)}))},Ll=function(e,t,n,r,i){var o=t+1,a=e.slice(0,o),s=e.slice(o),l=Vs.mapCells(e[t],(function(e,t){var o=t===n;return o?Sn(i(e.element(),r),!0):e}));return a.concat([l]).concat(s)},Nl=function(e,t,n){var r=D(e,(function(e){var r=e.cells().slice(0,t).concat(e.cells().slice(n+1));return kn(r,e.section())}));return I(r,(function(e){return e.cells().length>0}))},Rl=function(e,t,n){return e.slice(0,t).concat(e.slice(n+1))},Bl={insertRowAt:Pl,insertColumnAt:Il,splitCellIntoColumns:jl,splitCellIntoRows:Ll,deleteRowsAt:Rl,deleteColumnsAt:Nl},$l=function(e,t,n,r){var i=function(e){return T(t,(function(t){return n(e.element(),t.element())}))};return D(e,(function(e){return Vs.mapCells(e,(function(e){return i(e)?Sn(r(e.element(),n),!0):e}))}))},Fl=function(e,t,n,r){return void 0!==Vs.getCellElement(e[t],n)&&t>0&&r(Vs.getCellElement(e[t-1],n),Vs.getCellElement(e[t],n))},zl=function(e,t,n){return t>0&&n(Vs.getCellElement(e,t-1),Vs.getCellElement(e,t))},ql=function(e,t,n,r){var i=$(e,(function(r,i){var o=Fl(e,i,t,n)||zl(r,t,n);return o?[]:[Vs.getCell(r,t)]}));return $l(e,i,n,r)},Ul=function(e,t,n,r){var i=e[t],o=$(i.cells(),(function(r,o){var a=Fl(e,t,o,n)||zl(i,o,n);return a?[]:[r]}));return $l(e,o,n,r)},Hl={replaceColumn:ql,replaceRow:Ul},Vl=mo.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Wl=Xe({},Vl),Kl=function(e,t){return 0===e.length?Wl.none():1===e.length?Wl.only(0):0===t?Wl.left(0,1):t===e.length-1?Wl.right(t-1,t):t>0&&t<e.length-1?Wl.middle(t-1,t,t+1):Wl.none()},Gl=function(e,t,n,r){var o=e.slice(0),a=Kl(e,t),s=function(e){return D(e,i(0))},l=i(s(o)),u=function(e){return r.singleColumnWidth(o[e],n)},c=function(e,t){if(n>=0){var i=Math.max(r.minCellWidth(),o[t]-n);return s(o.slice(0,e)).concat([n,i-o[t]]).concat(s(o.slice(t+1)))}var a=Math.max(r.minCellWidth(),o[e]+n),l=o[e]-a;return s(o.slice(0,e)).concat([a-o[e],l]).concat(s(o.slice(t+1)))},f=c,d=function(e,t,n){return c(t,n)},h=function(e,t){if(n>=0)return s(o.slice(0,t)).concat([n]);var i=Math.max(r.minCellWidth(),o[t]+n);return s(o.slice(0,t)).concat([i-o[t]])};return a.fold(l,u,f,d,h)},Yl={determine:Gl},Xl=function(e,t){return ye(e,t)&&parseInt(ve(e,t),10)>1},Zl=function(e){return Xl(e,"colspan")},Ql=function(e){return Xl(e,"rowspan")},Jl=function(e,t){return parseInt(ze(e,t),10)},eu={hasColspan:Zl,hasRowspan:Ql,minWidth:i(10),minHeight:i(10),getInt:Jl},tu=function(e,t,n){return Ue(e,t).fold((function(){return n(e)+"px"}),(function(e){return e}))},nu=function(e,t){return tu(e,"width",(function(e){return ya.getPixelWidth(e,t)}))},ru=function(e){return tu(e,"height",ya.getHeight)},iu=function(e,t,n,r,i){var o=gs.columns(e),a=D(o,(function(e){return e.map(t.edge)}));return D(o,(function(e,t){var o=e.filter(s(eu.hasColspan));return o.fold((function(){var e=fs(a,t);return r(e)}),(function(e){return n(e,i)}))}))},ou=function(e){return e.map((function(e){return e+"px"})).getOr("")},au=function(e,t,n){return iu(e,t,nu,ou,n)},su=function(e,t,n){return iu(e,t,ya.getPercentageWidth,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}),n)},lu=function(e,t,n){return iu(e,t,ya.getPixelWidth,(function(e){return e.getOrThunk(n.minCellWidth)}),n)},uu=function(e,t,n,r){var i=gs.rows(e),o=D(i,(function(e){return e.map(t.edge)}));return D(i,(function(e,t){var i=e.filter(s(eu.hasRowspan));return i.fold((function(){var e=fs(o,t);return r(e)}),(function(e){return n(e)}))}))},cu=function(e,t){return uu(e,t,ya.getHeight,(function(e){return e.getOrThunk(eu.minHeight)}))},fu=function(e,t){return uu(e,t,ru,ou)},du={getRawWidths:au,getPixelWidths:lu,getPercentageWidths:su,getPixelHeights:cu,getRawHeights:fu},hu=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},pu=function(e,t){var n=mr.justCells(e);return D(n,(function(e){var n=hu(e.column(),e.column()+e.colspan(),t);return{element:e.element,width:i(n),colspan:e.colspan}}))},gu=function(e,t){var n=mr.justCells(e);return D(n,(function(e){var n=hu(e.row(),e.row()+e.rowspan(),t);return{element:e.element,height:i(n),rowspan:e.rowspan}}))},mu=function(e,t){return D(e.all(),(function(e,n){return{element:e.element,height:i(t[n])}}))},vu={recalculateWidth:pu,recalculateHeight:gu,matchRowHeight:mu},yu=function(e,t){var n=parseFloat(e),r=Fo(t),o=function(e){return e/r*100},a=function(e,t){return[100-e]},s=function(){return eu.minWidth()/r*100},l=function(e,t,r){var i=r/100,o=i*n;ya.setPercentageWidth(e,n+o)};return{width:i(n),pixelWidth:i(r),getWidths:du.getPercentageWidths,getCellDelta:o,singleColumnWidth:a,minCellWidth:s,setElementWidth:ya.setPercentageWidth,setTableWidth:l}},bu=function(e){var t=o,n=function(e,t){var n=Math.max(eu.minWidth(),e+t);return[n-e]},r=function(e,t,n){var r=j(t,(function(e,t){return e+t}),0);ya.setPixelWidth(e,r)};return{width:i(e),pixelWidth:i(e),getWidths:du.getPixelWidths,getCellDelta:t,singleColumnWidth:n,minCellWidth:eu.minWidth,setElementWidth:ya.setPixelWidth,setTableWidth:r}},_u=function(e,t){var n=ya.percentageBasedSizeRegex().exec(t);if(null!==n)return yu(n[1],e);var r=ya.pixelBasedSizeRegex().exec(t);if(null!==r){var i=parseInt(r[1],10);return bu(i)}var o=Fo(e);return bu(o)},wu=function(e){var t=ya.getRawWidth(e);return t.fold((function(){var t=Fo(e);return bu(t)}),(function(t){return _u(e,t)}))},xu={getTableSize:wu},Ou=function(e){return mr.generate(e)},Su=function(e){return j(e,(function(e,t){return e+t}),0)},Cu=function(e){var t=ur.fromTable(e);return Ou(t)},ku=function(e,t,n,r){var i=xu.getTableSize(e),o=i.getCellDelta(t),a=Cu(e),s=i.getWidths(a,r,i),l=Yl.determine(s,n,o,i),u=D(l,(function(e,t){return e+s[t]})),c=vu.recalculateWidth(a,u);M(c,(function(e){i.setElementWidth(e.element(),e.width())})),n===a.grid().columns()-1&&i.setTableWidth(e,u,o)},Eu=function(e,t,n,r){var i=Cu(e),o=du.getPixelHeights(i,r),a=D(o,(function(e,r){return n===r?Math.max(t+e,eu.minHeight()):e})),s=vu.recalculateHeight(i,a),l=vu.matchRowHeight(i,a);M(l,(function(e){ya.setHeight(e.element(),e.height())})),M(s,(function(e){ya.setHeight(e.element(),e.height())}));var u=Su(a);ya.setHeight(e,u)},Au=function(e,t,n){var r=xu.getTableSize(e),i=Ou(t),o=r.getWidths(i,n,r),a=vu.recalculateWidth(i,o);M(a,(function(e){r.setElementWidth(e.element(),e.width())})),a.length>0&&r.setTableWidth(e,o,r.getCellDelta(0))},Tu={adjustWidth:ku,adjustHeight:Eu,adjustWidthTo:Au},Du=function(e,t){return Mu(e,t,{validate:x,label:"function"})},Mu=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return ee("required",t),ne(t),function(r){var i=U(r),o=F(t,(function(e){return A(i,e)}));o||Q(t,i),e(t,i);var a=I(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&te(a,n.label),r}},Pu=function(e,t){var n=I(t,(function(t){return!A(e,t)}));n.length>0&&J(n)},Iu=function(e){return Du(Pu,e)},ju=Iu(["cell","row","replace","gap"]),Lu=function(e){var t=ye(e,"colspan")?parseInt(ve(e,"colspan"),10):1,n=ye(e,"rowspan")?parseInt(ve(e,"rowspan"),10):1;return{element:i(e),colspan:i(t),rowspan:i(n)}},Nu=function(e,n){void 0===n&&(n=Lu),ju(e);var r=t(g.none()),i=function(t){return e.cell(t)},o=function(e){var t=n(e);return i(t)},a=function(e){var t=o(e);return r.get().isNone()&&r.set(g.some(t)),s=g.some({item:e,replacement:t}),t},s=g.none(),l=function(e,t){return s.fold((function(){return a(e)}),(function(n){return t(e,n.item)?n.replacement:a(e)}))};return{getOrInit:l,cursor:r.get}},Ru=function(e,n){return function(r){var i=t(g.none());ju(r);var o=[],a=function(e,t){return N(o,(function(n){return t(n.item,e)}))},s=function(t){var a={scope:e},s=r.replace(t,n,a);return o.push({item:t,sub:s}),i.get().isNone()&&i.set(g.some(s)),s},l=function(e,t){return a(e,t).fold((function(){return s(e)}),(function(n){return t(e,n.item)?n.sub:s(e)}))};return{replaceOrInit:l,cursor:i.get}}},Bu=function(e){ju(e);var n=t(g.none()),r=function(t){return n.get().isNone()&&n.set(g.some(t)),function(){var n=e.cell({element:i(t),colspan:i(1),rowspan:i(1)});return He(n,"width"),He(t,"width"),n}};return{combine:r,cursor:n.get}},$u={modification:Nu,transform:Ru,merging:Bu},Fu=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],zu=function(e,t){var n=e.property().name(t);return A(["ol","ul"],n)},qu=function(e,t){var n=e.property().name(t);return A(Fu,n)},Uu=function(e,t){var n=e.property().name(t);return A(["address","pre","p","h1","h2","h3","h4","h5","h6"],n)},Hu=function(e,t){var n=e.property().name(t);return A(["h1","h2","h3","h4","h5","h6"],n)},Vu=function(e,t){return A(["div","li","td","th","blockquote","body","caption"],e.property().name(t))},Wu=function(e,t){return A(["br","img","hr","input"],e.property().name(t))},Ku=function(e,t){return"iframe"===e.property().name(t)},Gu=function(e,t){return!(qu(e,t)||Wu(e,t))&&"li"!==e.property().name(t)},Yu={isBlock:qu,isList:zu,isFormatting:Uu,isHeading:Hu,isContainer:Vu,isEmptyTag:Wu,isFrame:Ku,isInline:Gu},Xu=mi(),Zu=function(e){return Yu.isBlock(Xu,e)},Qu=function(e){return Yu.isList(Xu,e)},Ju=function(e){return Yu.isFormatting(Xu,e)},ec=function(e){return Yu.isHeading(Xu,e)},tc=function(e){return Yu.isContainer(Xu,e)},nc=function(e){return Yu.isEmptyTag(Xu,e)},rc=function(e){return Yu.isFrame(Xu,e)},ic=function(e){return Yu.isInline(Xu,e)},oc={isBlock:Zu,isList:Qu,isFormatting:Ju,isHeading:ec,isContainer:tc,isEmptyTag:nc,isFrame:rc,isInline:ic},ac=function(e){var t=function(e){return"br"===le(e)},n=function(e){return F(e,(function(e){return t(e)||he(e)&&0===kr(e).trim().length}))},r=function(e){return"li"===le(e)||Nn(e,oc.isList).isSome()},i=function(e){return nn(e).map((function(e){return!!oc.isBlock(e)||!!oc.isEmptyTag(e)&&"img"!==le(e)})).getOr(!1)},o=function(e){return Lr(e).bind((function(n){var o=i(n);return Jt(n).map((function(i){return!0===o||r(i)||t(n)||oc.isBlock(i)&&!Vt(e,i)?[]:[Ie.fromTag("br")]}))})).getOr([])},a=function(){var t=$(e,(function(e){var t=rn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[Ie.fromTag("br")]:t},s=a();gn(e[0]),pn(e[0],s)},sc={merge:ac},lc=function(e){var t=ar.cells(e);0===t.length&&mn(e)},uc=X("grid","cursor"),cc=function(e,t,n){return fc(e,t,n).orThunk((function(){return fc(e,0,0)}))},fc=function(e,t,n){return g.from(e[t]).bind((function(e){return g.from(e.cells()[n]).bind((function(e){return g.from(e.element())}))}))},dc=function(e,t,n){return uc(e,fc(e,t,n))},hc=function(e){return L(e,(function(e,t){return T(e,(function(e){return e.row()===t.row()}))?e:e.concat([t])}),[]).sort((function(e,t){return e.row()-t.row()}))},pc=function(e){return L(e,(function(e,t){return T(e,(function(e){return e.column()===t.column()}))?e:e.concat([t])}),[]).sort((function(e,t){return e.column()-t.column()}))},gc=function(e,t,n,r){var i=t.row(),o=t.row(),a=Bl.insertRowAt(e,o,i,n,r.getOrInit);return dc(a,o,t.column())},mc=function(e,t,n,r){var i=t[0].row(),o=t[0].row(),a=hc(t),s=L(a,(function(e,t){return Bl.insertRowAt(e,o,i,n,r.getOrInit)}),e);return dc(s,o,t[0].column())},vc=function(e,t,n,r){var i=t.row(),o=t.row()+t.rowspan(),a=Bl.insertRowAt(e,o,i,n,r.getOrInit);return dc(a,o,t.column())},yc=function(e,t,n,r){var i=hc(t),o=i[i.length-1].row(),a=i[i.length-1].row()+i[i.length-1].rowspan(),s=L(i,(function(e,t){return Bl.insertRowAt(e,a,o,n,r.getOrInit)}),e);return dc(s,a,t[0].column())},bc=function(e,t,n,r){var i=t.column(),o=t.column(),a=Bl.insertColumnAt(e,o,i,n,r.getOrInit);return dc(a,t.row(),o)},_c=function(e,t,n,r){var i=pc(t),o=i[0].column(),a=i[0].column(),s=L(i,(function(e,t){return Bl.insertColumnAt(e,a,o,n,r.getOrInit)}),e);return dc(s,t[0].row(),a)},wc=function(e,t,n,r){var i=t.column(),o=t.column()+t.colspan(),a=Bl.insertColumnAt(e,o,i,n,r.getOrInit);return dc(a,t.row(),o)},xc=function(e,t,n,r){var i=t[t.length-1].column(),o=t[t.length-1].column()+t[t.length-1].colspan(),a=pc(t),s=L(a,(function(e,t){return Bl.insertColumnAt(e,o,i,n,r.getOrInit)}),e);return dc(s,t[0].row(),o)},Oc=function(e,t,n,r){var i=Hl.replaceRow(e,t.row(),n,r.replaceOrInit);return dc(i,t.row(),t.column())},Sc=function(e,t,n,r){var i=Hl.replaceColumn(e,t.column(),n,r.replaceOrInit);return dc(i,t.row(),t.column())},Cc=function(e,t,n,r){var i=Hl.replaceRow(e,t.row(),n,r.replaceOrInit);return dc(i,t.row(),t.column())},kc=function(e,t,n,r){var i=Hl.replaceColumn(e,t.column(),n,r.replaceOrInit);return dc(i,t.row(),t.column())},Ec=function(e,t,n,r){var i=Bl.splitCellIntoColumns(e,t.row(),t.column(),n,r.getOrInit);return dc(i,t.row(),t.column())},Ac=function(e,t,n,r){var i=Bl.splitCellIntoRows(e,t.row(),t.column(),n,r.getOrInit);return dc(i,t.row(),t.column())},Tc=function(e,t,n,r){var i=pc(t),o=Bl.deleteColumnsAt(e,i[0].column(),i[i.length-1].column()),a=cc(o,t[0].row(),t[0].column());return uc(o,a)},Dc=function(e,t,n,r){var i=hc(t),o=Bl.deleteRowsAt(e,i[0].row(),i[i.length-1].row()),a=cc(o,t[0].row(),t[0].column());return uc(o,a)},Mc=function(e,t,n,r){var o=t.cells();sc.merge(o);var a=kl.merge(e,t.bounds(),n,i(o[0]));return uc(a,g.from(o[0]))},Pc=function(e,t,n,r){var i=j(t,(function(e,t){return kl.unmerge(e,t,n,r.combine(t))}),e);return uc(i,g.from(t[0]))},Ic=function(e,t,n,r){var i=function(e,t){var n=ur.fromTable(e),r=mr.generate(n);return Js.toGrid(r,t,!0)},o=i(t.clipboard(),t.generators()),a=bn(t.row(),t.column()),s=Ml.merge(a,e,o,t.generators(),n);return s.fold((function(){return uc(e,g.some(t.element()))}),(function(e){var n=cc(e,t.row(),t.column());return uc(e,n)}))},jc=function(e,t,n){var r=ur.fromPastedRows(e,n),i=mr.generate(r);return Js.toGrid(i,t,!0)},Lc=function(e,t,n,r){var i=e[t.cells[0].row()],o=t.cells[0].row(),a=jc(t.clipboard(),t.generators(),i),s=Ml.insert(o,e,a,t.generators(),n),l=cc(s,t.cells[0].row(),t.cells[0].column());return uc(s,l)},Nc=function(e,t,n,r){var i=e[t.cells[0].row()],o=t.cells[t.cells.length-1].row()+t.cells[t.cells.length-1].rowspan(),a=jc(t.clipboard(),t.generators(),i),s=Ml.insert(o,e,a,t.generators(),n),l=cc(s,t.cells[0].row(),t.cells[0].column());return uc(s,l)},Rc=Tu.adjustWidthTo,Bc={insertRowBefore:il(gc,ol,n,n,$u.modification),insertRowsBefore:il(mc,cl,n,n,$u.modification),insertRowAfter:il(vc,ol,n,n,$u.modification),insertRowsAfter:il(yc,cl,n,n,$u.modification),insertColumnBefore:il(bc,ol,Rc,n,$u.modification),insertColumnsBefore:il(_c,cl,Rc,n,$u.modification),insertColumnAfter:il(wc,ol,Rc,n,$u.modification),insertColumnsAfter:il(xc,cl,Rc,n,$u.modification),splitCellIntoColumns:il(Ec,ol,Rc,n,$u.modification),splitCellIntoRows:il(Ac,ol,n,n,$u.modification),eraseColumns:il(Tc,cl,Rc,lc,$u.modification),eraseRows:il(Dc,cl,n,lc,$u.modification),makeColumnHeader:il(Sc,ol,n,n,$u.transform("row","th")),unmakeColumnHeader:il(kc,ol,n,n,$u.transform(null,"td")),makeRowHeader:il(Oc,ol,n,n,$u.transform("col","th")),unmakeRowHeader:il(Cc,ol,n,n,$u.transform(null,"td")),mergeCells:il(Mc,ll,n,n,$u.merging),unmergeCells:il(Pc,ul,Rc,n,$u.merging),pasteCells:il(Ic,al,Rc,n,$u.modification),pasteRowsBefore:il(Lc,sl,n,n,$u.modification),pasteRowsAfter:il(Nc,sl,n,n,$u.modification)},$c=function(e){return Ie.fromDom(e.getBody())},Fc=function(e){return e.getBoundingClientRect().width},zc=function(e){return e.getBoundingClientRect().height},qc=function(e){return function(t){return Vt(t,$c(e))}},Uc=function(e){return e?e.replace(/px$/,""):""},Hc=function(e){return/^[0-9]+$/.test(e)&&(e+="px"),e},Vc=function(e){var t=jn(e,"td[data-mce-style],th[data-mce-style]");be(e,"data-mce-style"),M(t,(function(e){be(e,"data-mce-style")}))},Wc=function(e){return"rtl"===ze(e,"direction")?"rtl":"ltr"},Kc={isRtl:i(!1)},Gc={isRtl:i(!0)},Yc=function(e){var t=Wc(e);return"rtl"===t?Gc:Kc},Xc={directionAt:Yc},Zc="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",Qc={"border-collapse":"collapse",width:"100%"},Jc={border:"1"},ef=function(e){return e.getParam("table_default_attributes",Jc,"object")},tf=function(e){return e.getParam("table_default_styles",Qc,"object")},nf=function(e){return e.getParam("table_resize_bars",!0,"boolean")},rf=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},of=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},af=function(e){return e.getParam("table_row_advtab",!0,"boolean")},sf=function(e){return e.getParam("table_advtab",!0,"boolean")},lf=function(e){return e.getParam("table_appearance_options",!0,"boolean")},uf=function(e){return e.getParam("table_grid",!0,"boolean")},cf=function(e){return e.getParam("table_style_by_css",!1,"boolean")},ff=function(e){return e.getParam("table_cell_class_list",[],"array")},df=function(e){return e.getParam("table_row_class_list",[],"array")},hf=function(e){return e.getParam("table_class_list",[],"array")},pf=function(e){return!0===e.getParam("table_responsive_width")},gf=function(e){return!1===e.getParam("table_responsive_width")},mf=function(e){return e.getParam("table_toolbar",Zc)},vf=function(e){var t=e.getParam("table_clone_elements");return b(t)?g.some(t.split(/[ ,]/)):Array.isArray(t)?g.some(t):g.none()},yf=function(e){var t=e.getParam("object_resizing",!0);return b(t)?"table"===t:t},bf=function(e,t){return e.fire("newrow",{node:t})},_f=function(e,t){return e.fire("newcell",{node:t})},wf=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},xf=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},Of=function(e,t,n,r,i){e.fire("tableselectionchange",{cells:t,start:n,finish:r,otherCells:i})},Sf=function(e){e.fire("tableselectionclear")},Cf=function(e,t){var r=function(e){return"table"===le($c(e))},i=function(t){var n=Va.getGridSize(t);return!1===r(e)||n.rows()>1},o=function(t){var n=Va.getGridSize(t);return!1===r(e)||n.columns()>1},a=vf(e),s=function(t,n,r,i){return function(o,s){Vc(o);var l=i(),u=Ie.fromDom(e.getDoc()),c=Ua(Xc.directionAt),f=Yr.cellOperations(r,u,a);return n(o)?t(l,o,s,f,c).bind((function(t){return M(t.newRows(),(function(t){bf(e,t.dom())})),M(t.newCells(),(function(t){_f(e,t.dom())})),t.cursor().map((function(t){var n=e.dom.createRng();return n.setStart(t.dom(),0),n.setEnd(t.dom(),0),n}))})):g.none()}},l=s(Bc.eraseRows,i,n,t),u=s(Bc.eraseColumns,o,n,t),f=s(Bc.insertRowsBefore,c,n,t),d=s(Bc.insertRowsAfter,c,n,t),h=s(Bc.insertColumnsBefore,c,_a.halve,t),p=s(Bc.insertColumnsAfter,c,_a.halve,t),m=s(Bc.mergeCells,c,n,t),v=s(Bc.unmergeCells,c,n,t),y=s(Bc.pasteRowsBefore,c,n,t),b=s(Bc.pasteRowsAfter,c,n,t),_=s(Bc.pasteCells,c,n,t);return{deleteRow:l,deleteColumn:u,insertRowsBefore:f,insertRowsAfter:d,insertColumnsBefore:h,insertColumnsAfter:p,mergeCells:m,unmergeCells:v,pasteRowsBefore:y,pasteRowsAfter:b,pasteCells:_}},kf=function(e,t,n){var r=ur.fromTable(e),i=mr.generate(r),o=cl(i,t);return o.map((function(e){var t=Js.toGrid(i,n,!1),r=t.slice(e[0].row(),e[e.length-1].row()+e[e.length-1].rowspan()),o=nl(r,n);return Za.copy(o)}))},Ef={copyRows:kf},Af=tinymce.util.Tools.resolve("tinymce.util.Tools"),Tf=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return r=o(r,i),r},Df=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Mf=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Pf=function(e,t){Af.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},If=function(e,t){Af.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},jf={applyAlign:Df,applyVAlign:Mf,unApplyAlign:Pf,unApplyVAlign:If,getTDTHOverallStyle:Tf},Lf=function(e,t,n){var r=function(e,n){return n=n||[],Af.each(e,(function(e){var i={text:e.text||e.title};e.menu?i.menu=r(e.menu):(i.value=e.value,t&&t(i)),n.push(i)})),n};return r(e,n||[])},Nf=function(e,t){var n=function(t){return Oe(t,"rgb")?e.toHex(t):t},r=Ue(Ie.fromDom(t),"border-width").getOr(""),i=Ue(Ie.fromDom(t),"border-style").getOr(""),o=Ue(Ie.fromDom(t),"border-color").map(n).getOr(""),a=Ue(Ie.fromDom(t),"background-color").map(n).getOr("");return{borderwidth:r,borderstyle:i,bordercolor:o,backgroundcolor:a}},Rf=function(e){var t=e[0],n=e.slice(1),r=U(t);return M(n,(function(e){M(r,(function(n){V(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Bf=function(e){var t=[{name:"borderstyle",type:"selectbox",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],n={name:"borderwidth",type:"input",label:"Border width"},r="cell"===e?[n].concat(t):t;return{title:"Advanced",name:"advanced",items:r}},$f=function(e,t,n,r,i){var o={};return Af.each(e.split(" "),(function(e){r.formatter.matchNode(i,t+e)&&(o[n]=e)})),o[n]||(o[n]=""),o},Ff=a($f,"left center right"),zf=a($f,"top middle bottom"),qf=function(e,t){var n=tf(e),r=ef(e),i=function(e){var t=function(t){return Oe(t,"rgb")?e.toHex(t):t},r=G(n,"border-style").getOr(""),i=G(n,"border-color").getOr(""),o=G(n,"background-color").getOr("");return{borderstyle:r,bordercolor:t(i),backgroundcolor:t(o)}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return cf(e)&&t?{border:t}:G(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=e.dom,l=t?i(s):{},u=function(){var e=G(n,"border-spacing").or(G(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=G(n,"border-padding").or(G(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return Xe(Xe({},e),t)},c=Xe(Xe(Xe(Xe(Xe(Xe({},o),n),r),l),a()),u());return c},Uf=function(e,t,n){var r=function(t,n){var r=Ue(Ie.fromDom(n),"border-width");return cf(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||jf.getTDTHOverallStyle(e.dom,n,"border-width")||jf.getTDTHOverallStyle(e.dom,n,"border")},i=e.dom,o=Xe(Xe({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"),cellpadding:i.getAttrib(t,"cellpadding")||jf.getTDTHOverallStyle(e.dom,t,"padding"),border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class","")},Ff("align","align",e,t)),n?Nf(i,t):{});return o},Hf=function(e,t,n){var r=e.dom,i=Xe(Xe({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),scope:r.getAttrib(t,"scope"),class:r.getAttrib(t,"class",""),align:"",type:t.parentNode.nodeName.toLowerCase()},Ff("align","align",e,t)),n?Nf(r,t):{});return i},Vf=function(e,t,n){var r=e.dom,i=Xe(Xe(Xe({width:r.getStyle(t,"width")||r.getAttrib(t,"width"),height:r.getStyle(t,"height")||r.getAttrib(t,"height"),scope:r.getAttrib(t,"scope"),celltype:t.nodeName.toLowerCase(),class:r.getAttrib(t,"class","")},Ff("align","halign",e,t)),zf("valign","valign",e,t)),n?Nf(r,t):{});return i},Wf={buildListItems:Lf,extractAdvancedStyles:Nf,getSharedValues:Rf,getAdvancedTab:Bf,extractDataFromTableElement:Uf,extractDataFromRowElement:Hf,extractDataFromCellElement:Vf,extractDataFromSettings:qf},Kf=function(e){var t=ff(e),n=Wf.buildListItems(t,(function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})}));return t.length>0?g.some({name:"class",type:"selectbox",label:"Class",items:n}):g.none()},Gf=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"selectbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"selectbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"selectbox",label:"H Align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"selectbox",label:"V Align",items:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}],Yf=function(e){return Kf(e).fold((function(){return Gf}),(function(e){return Gf.concat(e)}))},Xf={getItems:Yf},Zf=function(e,t){var n=function(n,r){e.setAttrib(t,n,r)},r=function(n,r){e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},Qf=function(e,t){var n=function(n,r){r&&e.setAttrib(t,n,r)},r=function(n,r){r&&e.setStyle(t,n,r)};return{setAttrib:n,setStyle:r}},Jf={normal:Zf,ifTruthy:Qf},ed=function(e,t){e.setAttrib("scope",t.scope),e.setAttrib("class",t.class),e.setStyle("width",Hc(t.width)),e.setStyle("height",Hc(t.height))},td=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle),e.setStyle("border-width",Hc(t.borderwidth))},nd=function(e,t,n){var r=e.dom,i=n.celltype&&t[0].nodeName.toLowerCase()!==n.celltype?r.rename(t[0],n.celltype):t[0],o=Jf.normal(r,i);ed(o,n),of(e)&&td(o,n),jf.unApplyAlign(e,i),jf.unApplyVAlign(e,i),n.halign&&jf.applyAlign(e,i,n.halign),n.valign&&jf.applyVAlign(e,i,n.valign)},rd=function(e,t,n){var r=e.dom;Af.each(t,(function(t){n.celltype&&t.nodeName.toLowerCase()!==n.celltype&&(t=r.rename(t,n.celltype));var i=Jf.ifTruthy(r,t);ed(i,n),of(e)&&td(i,n),n.halign&&jf.applyAlign(e,t,n.halign),n.valign&&jf.applyVAlign(e,t,n.valign)}))},id=function(e,t,n){var r=n.getData();n.close(),e.undoManager.transact((function(){var n=1===t.length?nd:rd;n(e,t,r),e.focus()}))},od=function(e){var t,n=[];if(n=e.dom.select("td[data-mce-selected],th[data-mce-selected]"),t=e.dom.getParent(e.selection.getStart(),"td,th"),!n.length&&t&&n.push(t),t=t||n[0],t){var r=Af.map(n,(function(t){return Wf.extractDataFromCellElement(e,t,of(e))})),i=Wf.getSharedValues(r),o={type:"tabpanel",tabs:[{title:"General",name:"general",items:Xf.getItems(e)},Wf.getAdvancedTab("cell")]},s={type:"panel",items:[{type:"grid",columns:2,items:Xf.getItems(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:of(e)?o:s,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i,onSubmit:a(id,e,n)})}},ad={open:od},sd=function(e){var t=df(e),n=Wf.buildListItems(t,(function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"tr",classes:[t.value]})})}));return t.length>0?g.some({name:"class",type:"selectbox",label:"Class",items:n}):g.none()},ld=[{type:"selectbox",name:"type",label:"Row type",items:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],ud=function(e){return sd(e).fold((function(){return ld}),(function(e){return ld.concat(e)}))},cd={getItems:ud},fd=function(e,t,n){var r=e.getParent(t,"table"),i=t.parentNode,o=e.select(n,r)[0];o||(o=e.create(n),r.firstChild?"CAPTION"===r.firstChild.nodeName?e.insertAfter(o,r.firstChild):r.insertBefore(o,r.firstChild):r.appendChild(o)),o.appendChild(t),i.hasChildNodes()||e.remove(i)},dd=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},hd=function(e,t,n,r){var i=e.dom,o=r.getData();r.close();var a=1===t.length?Jf.normal:Jf.ifTruthy;e.undoManager.transact((function(){Af.each(t,(function(t){o.type!==t.parentNode.nodeName.toLowerCase()&&fd(e.dom,t,o.type);var r=a(i,t);r.setAttrib("scope",o.scope),r.setAttrib("class",o.class),r.setStyle("height",Hc(o.height)),af(e)&&dd(r,o),o.align!==n.align&&(jf.unApplyAlign(e,t),jf.applyAlign(e,t,o.align))})),e.focus()}))},pd=function(e){var t,n,r,i=e.dom,o=[];if(t=i.getParent(e.selection.getStart(),"table"),t&&(n=i.getParent(e.selection.getStart(),"td,th"),Af.each(t.rows,(function(e){Af.each(e.cells,(function(t){if((i.getAttrib(t,"data-mce-selected")||t===n)&&o.indexOf(e)<0)return o.push(e),!1}))})),r=o[0],r)){var s=Af.map(o,(function(t){return Wf.extractDataFromRowElement(e,t,af(e))})),l=Wf.getSharedValues(s),u={type:"tabpanel",tabs:[{title:"General",name:"general",items:cd.getItems(e)},Wf.getAdvancedTab("row")]},c={type:"panel",items:[{type:"grid",columns:2,items:cd.getItems(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:af(e)?u:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:l,onSubmit:a(hd,e,o,l)})}},gd={open:pd},md=Object.prototype.hasOwnProperty,vd=function(e,t){return t},yd=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)md.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},bd=yd(vd),_d=tinymce.util.Tools.resolve("tinymce.Env"),wd={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},percentages:!0},xd=function(){return Ie.fromTag("table")},Od=function(){return Ie.fromTag("tbody")},Sd=function(){return Ie.fromTag("tr")},Cd=function(){return Ie.fromTag("th")},kd=function(){return Ie.fromTag("td")},Ed=function(e,t,n,r,i){void 0===i&&(i=wd);var o=xd();Fe(o,i.styles),me(o,i.attributes);var a=Od();cn(o,a);for(var s=[],l=0;l<e;l++){for(var u=Sd(),c=0;c<t;c++){var f=l<n||c<r?Cd():kd();c<r&&ge(f,"scope","row"),l<n&&ge(f,"scope","col"),cn(f,Ie.fromTag("br")),i.percentages&&$e(f,"width",100/t+"%"),cn(u,f)}s.push(u)}return pn(a,s),o},Ad=function(e){return e.dom().innerHTML},Td=function(e){var t=Ie.fromTag("div"),n=Ie.fromDom(e.dom().cloneNode(!0));return cn(t,n),Ad(t)},Dd=function(e,t){e.selection.select(t.dom(),!0),e.selection.collapse(!0)},Md=function(e,t){qn(t,"td,th").each(a(Dd,e))},Pd=function(e,t){M(jn(t,"tr"),(function(t){bf(e,t.dom()),M(jn(t,"th,td"),(function(t){_f(e,t.dom())}))}))},Id=function(e){return b(e)&&-1!==e.indexOf("%")},jd=function(e,t,n){var r=tf(e),i={styles:r,attributes:ef(e),percentages:Id(r.width)&&!gf(e)},o=Ed(n,t,0,0,i);ge(o,"data-mce-id","__mce");var a=Td(o);return e.insertContent(a),qn($c(e),'table[data-mce-id="__mce"]').map((function(t){return gf(e)&&$e(t,"width",ze(t,"width")),be(t,"data-mce-id"),Pd(e,t),Md(e,t),t.dom()})).getOr(null)},Ld={insert:jd},Nd=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=lf(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"selectbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t?[{type:"selectbox",name:"class",label:"Class",items:Wf.buildListItems(hf(e),(function(t){t.value&&(t.textStyle=function(){return e.formatter.getCssText({block:"table",classes:[t.value]})})}))}]:[];return r.concat(i).concat(o).concat(a).concat(s)},Rd={getItems:Nd},Bd=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)b(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var i=0;i<t.children.length;i++)Bd(e,t.children[i],n,r)},$d=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Hc(n.height),r.getAttrib(t,"width")&&!cf(e)?i.width=Uc(n.width):o.width=Hc(n.width),cf(e)?(o["border-width"]=Hc(n.border),o["border-spacing"]=Hc(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),cf(e)&&t.children)for(var a=0;a<t.children.length;a++)Bd(r,t.children[a],{"border-width":Hc(n.border),padding:Hc(n.cellpadding)}),sf(e)&&Bd(r,t.children[a],{"border-color":n.bordercolor});sf(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(bd(tf(e),o)),r.setAttribs(t,bd(ef(e),i))},Fd=function(e,t,n){var r,i=e.dom,o=n.getData();n.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,a=parseInt(o.rows,10)||1;t=Ld.insert(e,n,a)}$d(e,t,o),r=i.select("caption",t)[0],r&&!o.caption&&i.remove(r),!r&&o.caption&&(r=i.create("caption"),r.innerHTML=_d.ie?" ":'<br data-mce-bogus="1"/>',t.insertBefore(r,t.firstChild)),""===o.align?jf.unApplyAlign(e,t):jf.applyAlign(e,t,o.align),e.focus(),e.addVisual()}))},zd=function(e,t){var n,r=e.dom,i=Wf.extractDataFromSettings(e,sf(e));!1===t?(n=r.getParent(e.selection.getStart(),"table"),n?i=Wf.extractDataFromTableElement(e,n,sf(e)):sf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",sf(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=hf(e).length>0;o&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var s={type:"grid",columns:2,items:Rd.getItems(e,o,t)},l=function(){return{type:"panel",items:[s]}},u=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[s]},Wf.getAdvancedTab("table")]}},c=sf(e)?u():l();e.windowManager.open({title:"Table Properties",size:"normal",body:c,onSubmit:a(Fd,e,n),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},qd={open:zd},Ud=function(e){return function(t){return g.from(t.dom.getParent(t.selection.getStart(),e)).map(Ie.fromDom)}},Hd=Ud("th,td"),Vd=Ud("th,td,caption"),Wd=Af.each,Kd=function(e,t,r,i,o){var l=qc(e),u=function(){Vd(e).each((function(t){var n=ar.table(t,l);n.filter(s(l)).each((function(t){var n=Ie.fromText("");if(ln(t,n),mn(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom(),0),r.setEnd(n.dom(),0),e.selection.setRng(r),e.nodeChanged()}}))}))},c=function(e){return ar.table(e,l)},f=function(e){return{width:Fc(e.dom()),height:Fc(e.dom())}},d=function(e,t,n){var r=f(n);t.width===r.width&&t.height===r.height||(wf(e,n.dom(),t.width,t.height),xf(e,n.dom(),r.width,r.height))},h=function(t){Hd(e).each((function(n){c(n).each((function(o){var a=To.forMenu(i,o,n),s=f(o);t(o,a).each((function(t){d(e,s,o),e.selection.setRng(t),e.focus(),r.clear(o),Vc(o)}))}))}))},p=function(t){return Hd(e).map((function(t){return c(t).bind((function(r){var o=Ie.fromDom(e.getDoc()),a=To.forMenu(i,r,t),s=Yr.cellOperations(n,o,g.none());return Ef.copyRows(r,a,s)}))}))},m=function(t){o.get().each((function(n){var o=D(n,(function(e){return $r(e)}));Hd(e).each((function(n){c(n).each((function(a){var s=Ie.fromDom(e.getDoc()),l=Yr.paste(s),u=To.pasteRows(i,a,n,o,l);t(a,u).each((function(t){e.selection.setRng(t),e.focus(),r.clear(a)}))}))}))}))};Wd({mceTableSplitCells:function(){h(t.unmergeCells)},mceTableMergeCells:function(){h(t.mergeCells)},mceTableInsertRowBefore:function(){h(t.insertRowsBefore)},mceTableInsertRowAfter:function(){h(t.insertRowsAfter)},mceTableInsertColBefore:function(){h(t.insertColumnsBefore)},mceTableInsertColAfter:function(){h(t.insertColumnsAfter)},mceTableDeleteCol:function(){h(t.deleteColumn)},mceTableDeleteRow:function(){h(t.deleteRow)},mceTableCutRow:function(e){p().each((function(e){o.set(e),h(t.deleteRow)}))},mceTableCopyRow:function(e){p().each((function(e){o.set(e)}))},mceTablePasteRowBefore:function(e){m(t.pasteRowsBefore)},mceTablePasteRowAfter:function(e){m(t.pasteRowsAfter)},mceTableDelete:u},(function(t,n){e.addCommand(n,t)})),Wd({mceInsertTable:a(qd.open,e,!0),mceTableProps:a(qd.open,e,!1),mceTableRowProps:a(gd.open,e),mceTableCellProps:a(ad.open,e)},(function(t,n){e.addCommand(n,(function(){t()}))}))},Gd={registerCommands:Kd},Yd=function(e){var t=g.from(e.dom().documentElement).map(Ie.fromDom).getOr(e);return{parent:i(t),view:i(e),origin:i(xa(0,0))}},Xd=function(e,t){var n=function(){return Ca(t)};return{parent:i(t),view:i(e),origin:n}},Zd=function(e,t){return{parent:i(t),view:i(e),origin:i(xa(0,0))}},Qd={only:Yd,detached:Xd,body:Zd},Jd=function(e){var t=X.apply(null,e),n=[],r=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");n.push(e)},i=function(e){n=I(n,(function(t){return t!==e}))},o=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.apply(null,e);M(n,(function(e){e(i)}))};return{bind:r,unbind:i,trigger:o}},eh=function(e){var t=W(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=W(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},th={create:eh},nh=function(e,t,n,r,o,a,s){return{target:i(e),x:i(t),y:i(n),stop:r,prevent:o,kill:a,raw:i(s)}},rh=function(e){var t=Ie.fromDom(e.target),n=function(){e.stopPropagation()},i=function(){e.preventDefault()},o=r(i,n);return nh(t,e.clientX,e.clientY,n,i,o,e)},ih=function(e,t){return function(n){e(n)&&t(rh(n))}},oh=function(e,t,n,r,i){var o=ih(n,r);return e.dom().addEventListener(t,o,i),{unbind:a(sh,e,t,o,i)}},ah=function(e,t,n,r){return oh(e,t,n,r,!1)},sh=function(e,t,n,r){e.dom().removeEventListener(t,n,r)},lh=i(!0),uh=function(e,t,n){return ah(e,t,lh,n)},ch=ms("ephox-dragster"),fh={resolve:ch.resolve},dh=function(e){var t=bd({layerClass:fh.resolve("blocker")},e),n=Ie.fromTag("div");ge(n,"role","presentation"),Fe(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),os(n,fh.resolve("blocker")),os(n,t.layerClass);var r=function(){return n},i=function(){mn(n)};return{element:r,destroy:i}},hh=Iu(["compare","extract","mutate","sink"]),ph=Iu(["element","start","stop","destroy"]),gh=Iu(["forceDrop","drop","move","delayDrop"]),mh=function(e,t){return xa(t.left()-e.left(),t.top()-e.top())},vh=function(e){return g.some(xa(e.x(),e.y()))},yh=function(e,t){e.mutate(t.left(),t.top())},bh=function(e,t){var n=dh(t),r=uh(n.element(),"mousedown",e.forceDrop),i=uh(n.element(),"mouseup",e.drop),o=uh(n.element(),"mousemove",e.move),a=uh(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},l=function(e){cn(e,n.element())},u=function(){mn(n.element())};return ph({element:n.element,start:l,stop:u,destroy:s})},_h=hh({compare:mh,extract:vh,sink:bh,mutate:yh}),wh=function(t,n){var r=null,i=function(){null!==r&&(e.clearTimeout(r),r=null)},o=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];null!==r&&e.clearTimeout(r),r=e.setTimeout((function(){t.apply(null,i),r=null}),n)};return{cancel:i,throttle:o}};function xh(){var e=g.none(),t=function(){e=g.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=g.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=th.create({move:Jd(["info"])});return{onEvent:r,reset:t,events:i.registry}}function Oh(){return{onEvent:n,reset:n}}function Sh(){var e=Oh(),t=xh(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}}var Ch=function(e,t,n){var r=!1,i=th.create({start:Jd([]),stop:Jd([])}),o=Sh(),a=function(){h.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=wh(a,200),l=function(e){h.start(e),o.on(),i.trigger.start()},u=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info())}));var c=function(){r=!0},f=function(){r=!1},d=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},h=t.sink(gh({forceDrop:a,drop:d(a),move:d(u),delayDrop:d(s.throttle)}),n),p=function(){h.destroy()};return{element:h.element,go:l,on:c,off:f,destroy:p,events:i.registry}},kh={setup:Ch},Eh=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:_h;return kh.setup(e,n,t)},Ah={transform:Eh},Th=function(){var e=th.create({drag:Jd(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Dh=function(){var e=th.create({drag:Jd(["xDelta","yDelta","target"])}),t=g.none(),n=Th();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta(),n.yDelta(),t)}))}));var r=function(e){t=g.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Mh=function(e){return"true"===ve(e,"contenteditable")},Ph=function(e,t){return Un(e,"[contenteditable]",t)},Ih=ys.resolve("resizer-bar-dragging"),jh=function(e,t,n){var r=Dh(),i=Ah.transform(r,{}),o=g.none(),s=function(e,t){return g.from(ve(e,t))};r.events.drag.bind((function(e){s(e.target(),"data-row").each((function(t){var n=eu.getInt(e.target(),"top");$e(e.target(),"top",n+e.yDelta()+"px")})),s(e.target(),"data-column").each((function(t){var n=eu.getInt(e.target(),"left");$e(e.target(),"left",n+e.xDelta()+"px")}))}));var l=function(e,t){var n=eu.getInt(e,t),r=parseInt(ve(e,"data-initial-"+t),10);return n-r};i.events.stop.bind((function(){r.get().each((function(r){o.each((function(i){s(r,"data-row").each((function(e){var t=l(r,"top");be(r,"data-initial-top"),v.trigger.adjustHeight(i,t,parseInt(e,10))})),s(r,"data-column").each((function(e){var t=l(r,"left");be(r,"data-initial-left"),v.trigger.adjustWidth(i,t,parseInt(e,10))})),Rs.refresh(e,i,n,t)}))}))}));var u=function(t,n){v.trigger.startAdjust(),r.assign(t),ge(t,"data-initial-"+n,parseInt(ze(t,n),10)),os(t,Ih),$e(t,"opacity","0.2"),i.go(e.parent())},c=uh(e.parent(),"mousedown",(function(e){Rs.isRowBar(e.target())&&u(e.target(),"top"),Rs.isColBar(e.target())&&u(e.target(),"left")})),f=function(t){return Vt(t,e.view())},d=function(e){return Un(e,"table",f).filter((function(e){return Ph(e,f).exists(Mh)}))},h=uh(e.view(),"mouseover",(function(r){d(r.target()).fold((function(){je(r.target())&&Rs.destroy(e)}),(function(r){o=g.some(r),Rs.refresh(e,r,n,t)}))})),p=function(){c.unbind(),h.unbind(),i.destroy(),Rs.destroy(e)},m=function(r){Rs.refresh(e,r,n,t)},v=th.create({adjustHeight:Jd(["table","delta","row"]),adjustWidth:Jd(["table","delta","column"]),startAdjust:Jd([])});return{destroy:p,refresh:m,on:i.on,off:i.off,hideBars:a(Rs.hide,e),showBars:a(Rs.show,e),events:v.registry}},Lh=function(e,t){var n=za.height,r=jh(e,t,n),i=th.create({beforeResize:Jd(["table"]),afterResize:Jd(["table"]),startDrag:Jd([])});return r.events.adjustHeight.bind((function(e){i.trigger.beforeResize(e.table());var t=n.delta(e.delta(),e.table());Tu.adjustHeight(e.table(),t,e.row(),n),i.trigger.afterResize(e.table())})),r.events.startAdjust.bind((function(e){i.trigger.startDrag()})),r.events.adjustWidth.bind((function(e){i.trigger.beforeResize(e.table());var n=t.delta(e.delta(),e.table());Tu.adjustWidth(e.table(),n,e.column(),t),i.trigger.afterResize(e.table())})),{on:r.on,off:r.off,hideBars:r.hideBars,showBars:r.showBars,destroy:r.destroy,events:i.registry}},Nh={create:Lh},Rh=function(){var e=Ie.fromTag("div");return Fe(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),cn(Le(),e),e},Bh=function(e,t){return e.inline?Qd.body($c(e),Rh()):Qd.only(Ie.fromDom(e.getDoc()))},$h=function(e,t){e.inline&&mn(t.parent())},Fh={get:Bh,remove:$h},zh=function(e,t){return Fc(e.dom())/Fc(t.dom())*100+"%"},qh=function(e){var t=Ie.fromDom(e);Jt(t).map((function(e){return zh(t,e)})).each((function(e){$e(t,"width",e),M(jn(t,"tr"),(function(e){M(rn(e),(function(t){$e(t,"width",zh(t,e))}))}))}))},Uh=function(e){$e(Ie.fromDom(e),"width",Fc(e).toString()+"px")},Hh=function(e){var t,n,r=g.none(),i=g.none(),o=g.none(),a=/(\d+(\.\d+)?)%/,s=function(e){return"TABLE"===e.nodeName},l=function(t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return g.from(n).filter((function(e){return e.length>0}))},u=function(){return i},c=function(){return o.getOr(Qd.only(Ie.fromDom(e.getBody())))},f=function(){i.each((function(e){e.destroy()})),o.each((function(t){Fh.remove(e,t)}))};return e.on("init",(function(){var t=Ua(Xc.directionAt),n=Fh.get(e);if(o=g.some(n),yf(e)&&nf(e)){var a=Nh.create(n,t);a.on(),a.events.startDrag.bind((function(t){r=g.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table().dom();wf(e,n,Fc(n),zc(n))})),a.events.afterResize.bind((function(t){var n=t.table(),i=n.dom();Vc(n),r.each((function(t){e.selection.setRng(t),e.focus()})),xf(e,i,Fc(i),zc(i)),e.undoManager.add()})),i=g.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(s(i)){var o=l(i).map((function(e){return a.test(e)})).getOr(!1);o&&gf(e)?Uh(i):!o&&pf(e)&&qh(i),t=r.width,n=l(i).getOr("")}})),e.on("ObjectResized",(function(r){var i=r.target;if(s(i)){var o=i;if(a.test(n)){var l=parseFloat(a.exec(n)[1]),u=r.width*l/t;e.dom.setStyle(o,"width",u+"%")}else{var c=[];Af.each(o.rows,(function(t){Af.each(t.cells,(function(t){var n=e.dom.getStyle(t,"width",!0);c.push({cell:t,width:n})}))})),Af.each(c,(function(t){e.dom.setStyle(t.cell,"width",t.width),e.dom.setAttrib(t.cell,"width",null)}))}}})),e.on("SwitchMode",(function(){u().each((function(t){e.readonly?t.hideBars():t.showBars()}))})),{lazyResize:u,lazyWire:c,destroy:f}},Vh=mo.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Wh=function(e){return void 0===e&&(e=void 0),Vh.none(e)},Kh=Xe(Xe({},Vh),{none:Wh}),Gh=function(e,t){return ar.table(e,t).bind((function(t){var n=ar.cells(t),r=R(n,(function(t){return Vt(e,t)}));return r.map((function(e){return{index:i(e),all:i(n)}}))}))},Yh=function(e,t){var n=Gh(e,t);return n.fold((function(){return Kh.none(e)}),(function(t){return t.index()+1<t.all().length?Kh.middle(e,t.all()[t.index()+1]):Kh.last(e)}))},Xh=function(e,t){var n=Gh(e,t);return n.fold((function(){return Kh.none()}),(function(t){return t.index()-1>=0?Kh.middle(e,t.all()[t.index()-1]):Kh.first(e)}))},Zh={next:Yh,prev:Xh},Qh=X("start","soffset","finish","foffset"),Jh={create:Qh},ep=mo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),tp=function(e,t,n,r){return e.fold(t,n,r)},np=function(e){return e.fold(o,o,o)},rp=ep.before,ip=ep.on,op=ep.after,ap={before:rp,on:ip,after:op,cata:tp,getStart:np},sp=mo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),lp=function(e){return sp.exact(e.start(),e.soffset(),e.finish(),e.foffset())},up=function(e){return e.match({domRange:function(e){return Ie.fromDom(e.startContainer)},relative:function(e,t){return ap.getStart(e)},exact:function(e,t,n,r){return e}})},cp=sp.domRange,fp=sp.relative,dp=sp.exact,hp=function(e){var t=up(e);return Qt(t)},pp=Jh.create,gp={domRange:cp,relative:fp,exact:dp,exactFromRange:lp,getWin:hp,range:pp},mp=function(e,t){var n=e.document.createRange();return vp(n,t),n},vp=function(e,t){e.selectNodeContents(t.dom())},yp=function(e,t){t.fold((function(t){e.setStartBefore(t.dom())}),(function(t,n){e.setStart(t.dom(),n)}),(function(t){e.setStartAfter(t.dom())}))},bp=function(e,t){t.fold((function(t){e.setEndBefore(t.dom())}),(function(t,n){e.setEnd(t.dom(),n)}),(function(t){e.setEndAfter(t.dom())}))},_p=function(e,t,n){var r=e.document.createRange();return yp(r,t),bp(r,n),r},wp=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom(),n),o.setEnd(r.dom(),i),o},xp=function(e){return{left:i(e.left),top:i(e.top),right:i(e.right),bottom:i(e.bottom),width:i(e.width),height:i(e.height)}},Op=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?g.some(n).map(xp):g.none()},Sp=mo.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Cp=function(e,t,n){return t(Ie.fromDom(n.startContainer),n.startOffset,Ie.fromDom(n.endContainer),n.endOffset)},kp=function(e,t){return t.match({domRange:function(e){return{ltr:i(e),rtl:g.none}},relative:function(t,n){return{ltr:Ee((function(){return _p(e,t,n)})),rtl:Ee((function(){return g.some(_p(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:Ee((function(){return wp(e,t,n,r,i)})),rtl:Ee((function(){return g.some(wp(e,r,i,t,n))}))}}})},Ep=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Sp.rtl(Ie.fromDom(e.endContainer),e.endOffset,Ie.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Cp(e,Sp.ltr,n)}))}return Cp(e,Sp.ltr,n)},Ap=function(e,t){var n=kp(e,t);return Ep(e,n)},Tp=function(e,t){var n=Ap(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom(),n),o.setEnd(r.dom(),i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom(),i),o.setEnd(t.dom(),n),o}})},Dp=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),l=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||l>o)return a-1;o=l}}return 0},Mp=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Pp=function(e,t,n,r,i){var o=function(n){var r=e.dom().createRange();return r.setStart(t.dom(),n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=kr(t).length,l=Dp(a,n,r,i.right,s);return o(l)},Ip=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getClientRects(),a=Ka(o,(function(e){return Mp(e,n,r)?g.some(e):g.none()}));return a.map((function(i){return Pp(e,t,n,r,i)}))},jp=function(e,t,n,r){var i=e.dom().createRange(),o=rn(t);return Ka(o,(function(t){return i.selectNode(t.dom()),Mp(i.getBoundingClientRect(),n,r)?Lp(e,t,n,r):g.none()}))},Lp=function(e,t,n,r){return he(t)?Ip(e,t,n,r):jp(e,t,n,r)},Np=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return Lp(e,t,a,s)},Rp=!0,Bp=!1,$p=function(e,t){return t-e.left<e.right-t?Rp:Bp},Fp=function(e,t,n){var r=e.dom().createRange();return r.selectNode(t.dom()),r.collapse(n),r},zp=function(e,t,n){var r=e.dom().createRange();r.selectNode(t.dom());var i=r.getBoundingClientRect(),o=$p(i,n),a=o===Rp?jr:Lr;return a(t).map((function(t){return Fp(e,t,o)}))},qp=function(e,t,n){var r=t.dom().getBoundingClientRect(),i=$p(r,n);return g.some(Fp(e,t,i))},Up=function(e,t,n){var r=0===rn(t).length?qp:zp;return r(e,t,n)},Hp=function(e,t,n){return g.from(e.dom().caretPositionFromPoint(t,n)).bind((function(t){if(null===t.offsetNode)return g.none();var n=e.dom().createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),g.some(n)}))},Vp=function(e,t,n){return g.from(e.dom().caretRangeFromPoint(t,n))},Wp=function(e,t,n,r){var i=e.dom().createRange();i.selectNode(t.dom());var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return Np(e,t,a,s)},Kp=function(e,t,n){return Ie.fromPoint(e,t,n).bind((function(r){var i=function(){return Up(e,r,t)};return 0===rn(r).length?i():Wp(e,r,t,n).orThunk(i)}))},Gp=document.caretPositionFromPoint?Hp:document.caretRangeFromPoint?Vp:Kp,Yp=function(e,t,n){var r=Ie.fromDom(e.document);return Gp(r,t,n).map((function(e){return Jh.create(Ie.fromDom(e.startContainer),e.startOffset,Ie.fromDom(e.endContainer),e.endOffset)}))},Xp=function(e,t){var n=le(e);return"input"===n?ap.after(e):A(["br","img"],n)?0===t?ap.before(e):ap.after(e):ap.on(e,t)},Zp=function(e,t){var n=e.fold(ap.before,Xp,ap.after),r=t.fold(ap.before,Xp,ap.after);return gp.relative(n,r)},Qp=function(e,t,n,r){var i=Xp(e,t),o=Xp(n,r);return gp.relative(i,o)},Jp=function(e){return e.match({domRange:function(e){var t=Ie.fromDom(e.startContainer),n=Ie.fromDom(e.endContainer);return Qp(t,e.startOffset,n,e.endOffset)},relative:Zp,exact:Qp})},eg=function(e,t,n,r){var i=Zt(e),o=i.dom().createRange();return o.setStart(e.dom(),t),o.setEnd(n.dom(),r),o},tg=function(e,t,n,r){var i=eg(e,t,n,r),o=Vt(e,n)&&t===r;return i.collapsed&&!o},ng=function(e,t){g.from(e.getSelection()).each((function(e){e.removeAllRanges(),e.addRange(t)}))},rg=function(e,t,n,r,i){var o=wp(e,t,n,r,i);ng(e,o)},ig=function(e,t,n,r,i,o){t.collapse(n.dom(),r),t.extend(i.dom(),o)},og=function(e,t){return Ap(e,t).match({ltr:function(t,n,r,i){rg(e,t,n,r,i)},rtl:function(t,n,r,i){var o=e.getSelection();if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom(),n,r.dom(),i);else if(o.extend)try{ig(e,o,t,n,r,i)}catch(a){rg(e,r,i,t,n)}else rg(e,r,i,t,n)}})},ag=function(e,t,n,r,i){var o=Qp(t,n,r,i);og(e,o)},sg=function(e,t,n){var r=Zp(t,n);og(e,r)},lg=function(e){var t=gp.getWin(e).dom(),n=function(e,n,r,i){return wp(t,e,n,r,i)},r=Jp(e);return Ap(t,r).match({ltr:n,rtl:n})},ug=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return g.some(Jh.create(Ie.fromDom(t.startContainer),t.startOffset,Ie.fromDom(n.endContainer),n.endOffset))}return g.none()},cg=function(e){var t=Ie.fromDom(e.anchorNode),n=Ie.fromDom(e.focusNode);return tg(t,e.anchorOffset,n,e.focusOffset)?g.some(Jh.create(t,e.anchorOffset,n,e.focusOffset)):ug(e)},fg=function(e,t){var n=mp(e,t);ng(e,n)},dg=function(e){return g.from(e.getSelection()).filter((function(e){return e.rangeCount>0})).bind(cg)},hg=function(e){return dg(e).map((function(e){return gp.exact(e.start(),e.soffset(),e.finish(),e.foffset())}))},pg=function(e,t){var n=Tp(e,t);return Op(n)},gg=function(e,t,n){return Yp(e,t,n)},mg=function(e){var t=e.getSelection();t.removeAllRanges()},vg=tinymce.util.Tools.resolve("tinymce.util.VK"),yg=function(e,t,n,r){return xg(e,t,Zh.next(n),r)},bg=function(e,t,n,r){return xg(e,t,Zh.prev(n),r)},_g=function(e,t){var n=gp.exact(t,0,t,0);return lg(n)},wg=function(e,t){var n=jn(t,"tr");return q(n).bind((function(t){return qn(t,"td,th").map((function(t){return _g(e,t)}))}))},xg=function(e,t,n,r,i){return n.fold(g.none,g.none,(function(t,n){return jr(n).map((function(t){return _g(e,t)}))}),(function(n){return ar.table(n,t).bind((function(t){var i=To.noMenu(n);return e.undoManager.transact((function(){r.insertRowsAfter(t,i)})),wg(e,t)}))}))},Og=["table","li","dl"],Sg=function(e,t,n,r){if(e.keyCode===vg.TAB){var i=$c(t),o=function(e){var t=le(e);return Vt(e,i)||A(Og,t)},a=t.selection.getRng();if(a.collapsed){var s=Ie.fromDom(a.startContainer);ar.cell(s,o).each((function(i){e.preventDefault();var a=e.shiftKey?bg:yg,s=a(t,o,i,n,r);s.each((function(e){t.selection.setRng(e)}))}))}}},Cg={handle:Sg},kg=X("selection","kill"),Eg={create:kg},Ag=function(e,t,n,r){return{start:i(ap.on(e,t)),finish:i(ap.on(n,r))}},Tg={create:Ag},Dg=function(e,t){var n=Tp(e,t);return Jh.create(Ie.fromDom(n.startContainer),n.startOffset,Ie.fromDom(n.endContainer),n.endOffset)},Mg=Tg.create,Pg={convertToRange:Dg,makeSitus:Mg},Ig=function(e,t,n,r,i,o,a){return Vt(n,i)&&r===o?g.none():Un(n,"td,th",t).bind((function(n){return Un(i,"td,th",t).bind((function(r){return jg(e,t,n,r,a)}))}))},jg=function(e,t,n,r,i){return Vt(n,r)?g.none():no.identify(n,r,t).bind((function(t){var r=t.boxes().getOr([]);return r.length>0?(i(e,r,t.start(),t.finish()),g.some(Eg.create(g.some(Pg.makeSitus(n,0,n,Tr(n))),!0))):g.none()}))},Lg=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes(),e.start(),e.finish()),e.boxes()};return no.shiftSelection(r,e,t,i.firstSelectedSelector(),i.lastSelectedSelector()).map(o)},Ng={sync:Ig,detect:jg,update:Lg},Rg=X("item","mode"),Bg=function(e,t,n,r){return void 0===r&&(r=$g),e.property().parent(t).map((function(e){return Rg(e,r)}))},$g=function(e,t,n,r){return void 0===r&&(r=Fg),n.sibling(e,t).map((function(e){return Rg(e,r)}))},Fg=function(e,t,n,r){void 0===r&&(r=Fg);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return Rg(e,r)}))},zg=[{current:Bg,next:$g,fallback:g.none()},{current:$g,next:Fg,fallback:g.some(Bg)},{current:Fg,next:Fg,fallback:g.some($g)}],qg=function(e,t,n,r,i){void 0===i&&(i=zg);var o=N(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return qg(e,t,n,r)}))}))}))},Ug=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?g.some(e[e.length-1]):g.none()};return{sibling:e,first:t}},Hg=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?g.some(e[0]):g.none()};return{sibling:e,first:t}},Vg={left:Ug,right:Hg},Wg=function(e,t,n,r,i,o){var a=qg(e,t,r,i);return a.bind((function(t){return o(t.item())?g.none():n(t.item())?g.some(t.item()):Wg(e,t.item(),n,t.mode(),i,o)}))},Kg=function(e,t,n,r){return Wg(e,t,n,$g,Vg.left(),r)},Gg=function(e,t,n,r){return Wg(e,t,n,$g,Vg.right(),r)},Yg=function(e){return function(t){return 0===e.property().children(t).length}},Xg=function(e,t,n){return Qg(e,t,Yg(e),n)},Zg=function(e,t,n){return Jg(e,t,Yg(e),n)},Qg=Kg,Jg=Gg,em=mi(),tm=function(e,t){return Xg(em,e,t)},nm=function(e,t){return Zg(em,e,t)},rm=function(e,t,n){return Qg(em,e,t,n)},im=function(e,t,n){return Jg(em,e,t,n)},om=function(e,t,n){return Nn(e,t,n).isSome()},am=X("element","offset"),sm=(X("element","deltaOffset"),X("element","start","finish"),X("begin","end"),X("element","text"),mo.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}])),lm=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},um=function(e){return Un(e,"tr")},cm=function(e,t,n,r,i,o,a){return Un(r,"td,th",a).bind((function(n){return Un(t,"td,th",a).map((function(t){return Vt(n,t)?Vt(r,n)&&Tr(n)===i?o(t):sm.none("in same cell"):Wi.sharedOne(um,[n,t]).fold((function(){return lm(e,t,n)?sm.success():o(t)}),(function(e){return o(t)}))}))})).getOr(sm.none("default"))},fm=function(e,t,n,r,i){return e.fold(t,n,r,i)},dm=Xe(Xe({},sm),{verify:cm,cata:fm}),hm=(X("ancestor","descendants","element","index"),X("parent","children","element","index")),pm=function(e){return Jt(e).bind((function(t){var n=rn(t);return gm(n,e).map((function(r){return hm(t,n,e,r)}))}))},gm=function(e,t){return R(e,a(Vt,t))},mm=function(e){return"br"===le(e)},vm=function(e,t,n){return t(e,n).bind((function(e){return he(e)&&0===kr(e).trim().length?vm(e,t,n):g.some(e)}))},ym=function(e,t,n){return n.traverse(t).orThunk((function(){return vm(t,n.gather,e)})).map(n.relative)},bm=function(e,t){return on(e,t).filter(mm).orThunk((function(){return on(e,t-1).filter(mm)}))},_m=function(e,t,n,r){return bm(t,n).bind((function(t){return r.traverse(t).fold((function(){return vm(t,r.gather,e).map(r.relative)}),(function(e){return pm(e).map((function(e){return ap.on(e.parent(),e.index())}))}))}))},wm=function(e,t,n,r){var o=mm(t)?ym(e,t,r):_m(e,t,n,r);return o.map((function(e){return{start:i(e),finish:i(e)}}))},xm=function(e){return dm.cata(e,(function(e){return g.none()}),(function(){return g.none()}),(function(e){return g.some(am(e,0))}),(function(e){return g.some(am(e,Tr(e)))}))},Om={tryBr:wm,process:xm},Sm=re(["left","top","right","bottom"],[]),Cm=function(e,t){return Sm({left:e.left(),top:e.top()+t,right:e.right(),bottom:e.bottom()+t})},km=function(e,t){return Sm({left:e.left(),top:e.top()-t,right:e.right(),bottom:e.bottom()-t})},Em=function(e,t){var n=e.bottom()-e.top();return Sm({left:e.left(),top:t-n,right:e.right(),bottom:t})},Am=function(e,t){var n=e.bottom()-e.top();return Sm({left:e.left(),top:t,right:e.right(),bottom:t+n})},Tm=function(e,t,n){return Sm({left:e.left()+t,top:e.top()+n,right:e.right()+t,bottom:e.bottom()+n})},Dm=function(e){return e.top()},Mm=function(e){return e.bottom()},Pm=function(e){return"("+e.left()+", "+e.top()+") -> ("+e.right()+", "+e.bottom()+")"},Im={nu:Sm,moveUp:km,moveDown:Cm,moveBottomTo:Em,moveTopTo:Am,getTop:Dm,getBottom:Mm,translate:Tm,toString:Pm},jm=function(e,t,n){return n>=0&&n<Tr(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):g.none()},Lm=function(e){return Im.nu({left:e.left,top:e.top,right:e.right,bottom:e.bottom})},Nm=function(e,t){return g.some(e.getRect(t))},Rm=function(e,t,n){return de(t)?Nm(e,t).map(Lm):he(t)?jm(e,t,n).map(Lm):g.none()},Bm=function(e,t){return de(t)?Nm(e,t).map(Lm):he(t)?e.getRangedRect(t,0,t,Tr(t)).map(Lm):g.none()},$m={getBoxAt:Rm,getEntireBox:Bm},Fm=5,zm=100,qm=mo.generate([{none:[]},{retry:["caret"]}]),Um=function(e,t){return e.left()<t.left()||Math.abs(t.right()-e.left())<1||e.left()>t.right()},Hm=function(e,t,n){return Rn(t,oc.isBlock).fold(i(!1),(function(t){return $m.getEntireBox(e,t).exists((function(e){return Um(n,e)}))}))},Vm=function(e,t,n,r,i){var o=Im.moveDown(i,Fm);return Math.abs(n.bottom()-r.bottom())<1||n.top()>i.bottom()?qm.retry(o):n.top()===i.bottom()?qm.retry(Im.moveDown(i,1)):Hm(e,t,i)?qm.retry(Im.translate(o,Fm,0)):qm.none()},Wm=function(e,t,n,r,i){var o=Im.moveUp(i,Fm);return Math.abs(n.top()-r.top())<1||n.bottom()<i.top()?qm.retry(o):n.bottom()===i.top()?qm.retry(Im.moveUp(i,1)):Hm(e,t,i)?qm.retry(Im.translate(o,Fm,0)):qm.none()},Km={point:Im.getTop,adjuster:Wm,move:Im.moveUp,gather:tm},Gm={point:Im.getBottom,adjuster:Vm,move:Im.moveDown,gather:nm},Ym=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===le(e)})).isSome()},Xm=function(e,t,n,r,i){return Zm(e,t,n,t.move(r,Fm),i)},Zm=function(e,t,n,r,i){return 0===i?g.some(r):Ym(e,r.left(),t.point(r))?Xm(e,t,n,r,i-1):e.situsFromPoint(r.left(),t.point(r)).bind((function(o){return o.start().fold(g.none,(function(o){return $m.getEntireBox(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(g.none,(function(r){return Zm(e,t,n,r,i-1)}))})).orThunk((function(){return g.some(r)}))}),g.none)}))},Qm=function(e,t){return e.situsFromPoint(t.left(),t.bottom()+Fm)},Jm=function(e,t){return e.situsFromPoint(t.left(),t.top()-Fm)},ev=function(e,t,n){return e.point(t)>n.getInnerHeight()?g.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?g.some(-e.point(t)):g.none()},tv=function(e,t,n){var r=e.move(n,Fm),i=Zm(t,e,n,r,zm).getOr(r);return ev(e,i,t).fold((function(){return t.situsFromPoint(i.left(),e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left(),e.point(i)-n)}))},nv={tryUp:a(tv,Km),tryDown:a(tv,Gm),ieTryUp:Jm,ieTryDown:Qm,getJumpSize:i(Fm)},rv=20,iv=Bt(),ov=function(e,t,n){return e.getSelection().bind((function(r){return Om.tryBr(t,r.finish(),r.foffset(),n).fold((function(){return g.some(am(r.finish(),r.foffset()))}),(function(i){var o=e.fromSitus(i),a=dm.verify(e,r.finish(),r.foffset(),o.finish(),o.foffset(),n.failure,t);return Om.process(a)}))}))},av=function(e,t,n,r,i,o){return 0===o?g.none():uv(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),l=dm.verify(e,n,r,s.finish(),s.foffset(),i.failure,t);return dm.cata(l,(function(){return g.none()}),(function(){return g.some(a)}),(function(a){return Vt(n,a)&&0===r?sv(e,n,r,Im.moveUp,i):av(e,t,a,0,i,o-1)}),(function(a){return Vt(n,a)&&r===Tr(a)?sv(e,n,r,Im.moveDown,i):av(e,t,a,Tr(a),i,o-1)}))}))},sv=function(e,t,n,r,i){return $m.getBoxAt(e,t,n).bind((function(t){return lv(e,i,r(t,nv.getJumpSize()))}))},lv=function(e,t,n){return iv.browser.isChrome()||iv.browser.isSafari()||iv.browser.isFirefox()||iv.browser.isEdge()?t.otherRetry(e,n):iv.browser.isIE()?t.ieRetry(e,n):g.none()},uv=function(e,t,n,r,i){return $m.getBoxAt(e,n,r).bind((function(t){return lv(e,i,t)}))},cv=function(e,t,n){return ov(e,t,n).bind((function(r){return av(e,t,r.element(),r.offset(),n,rv).map(e.fromSitus)}))},fv={handle:cv},dv=Bt(),hv=function(e,t){return om(e,(function(e){return Jt(e).exists((function(e){return Vt(e,t)}))}))},pv=function(e,t,n,r,o){return Un(r,"td,th",t).bind((function(r){return Un(r,"table",t).bind((function(a){return hv(o,a)?fv.handle(e,t,n).bind((function(e){return Un(e.finish(),"td,th",t).map((function(t){return{start:i(r),finish:i(t),range:i(e)}}))})):g.none()}))}))},gv=function(e,t,n,r,i,o){return dv.browser.isIE()?g.none():o(r,t).orThunk((function(){return pv(e,t,n,r,i).map((function(e){var t=e.range();return Eg.create(g.some(Pg.makeSitus(t.start(),t.soffset(),t.finish(),t.foffset())),!0)}))}))},mv=function(e,t){return Un(e,"tr",t).bind((function(e){return Un(e,"table",t).bind((function(n){var r=jn(n,"tr");return Vt(e,r[0])?rm(n,(function(e){return Lr(e).isSome()}),t).map((function(e){var t=Tr(e);return Eg.create(g.some(Pg.makeSitus(e,t,e,t)),!0)})):g.none()}))}))},vv=function(e,t){return Un(e,"tr",t).bind((function(e){return Un(e,"table",t).bind((function(n){var r=jn(n,"tr");return Vt(e,r[r.length-1])?im(n,(function(e){return jr(e).isSome()}),t).map((function(e){return Eg.create(g.some(Pg.makeSitus(e,0,e,0)),!0)})):g.none()}))}))},yv=function(e,t,n,r,i,o,a){return pv(e,n,r,i,o).bind((function(e){return Ng.detect(t,n,e.start(),e.finish(),a)}))},bv={navigate:gv,select:yv,firstUpCheck:mv,lastDownCheck:vv},_v=function(e,t){return Un(e,"td,th",t)};function wv(e,t,n,r){var i=g.none(),o=function(){i=g.none()},a=function(e){r.clear(t),i=_v(e.target(),n)},s=function(o){i.each((function(i){r.clearBeforeUpdate(t),_v(o.target(),n).each((function(o){no.identify(i,o,n).each((function(n){var a=n.boxes().getOr([]);(a.length>1||1===a.length&&!Vt(i,o))&&(r.selectRange(t,a,n.start(),n.finish()),e.selectContents(o))}))}))}))},l=function(e){i.each(o)};return{mousedown:a,mouseover:s,mouseup:l}}var xv={traverse:nn,gather:nm,relative:ap.before,otherRetry:nv.tryDown,ieRetry:nv.ieTryDown,failure:dm.failedDown},Ov={traverse:tn,gather:tm,relative:ap.before,otherRetry:nv.tryUp,ieRetry:nv.ieTryUp,failure:dm.failedUp},Sv={down:xv,up:Ov},Cv=function(e){return function(t){return t===e}},kv=Cv(38),Ev=Cv(40),Av=function(e){return e>=37&&e<=40},Tv={ltr:{isBackward:Cv(37),isForward:Cv(39)},rtl:{isBackward:Cv(39),isForward:Cv(37)},isUp:kv,isDown:Ev,isNavigation:Av},Dv=function(e){return{left:e.left(),top:e.top(),right:e.right(),bottom:e.bottom(),width:e.width(),height:e.height()}},Mv={toRaw:Dv},Pv=(Bt().browser.isSafari(),function(t){var n=void 0!==t?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,i=n.body.scrollTop||n.documentElement.scrollTop;return xa(r,i)}),Iv=function(t,n,r){var i=void 0!==r?r.dom():e.document,o=i.defaultView;o.scrollBy(t,n)},jv=function(e){var t=function(t,n){return Ie.fromPoint(Ie.fromDom(e.document),t,n)},n=function(e){return e.dom().getBoundingClientRect()},r=function(t,n,r,i){var o=gp.exact(t,n,r,i);return pg(e,o).map(Mv.toRaw)},i=function(){return hg(e).map((function(t){return Pg.convertToRange(e,t)}))},o=function(t){var n=gp.relative(t.start(),t.finish());return Pg.convertToRange(e,n)},a=function(t,n){return gg(e,t,n).map((function(e){return Tg.create(e.start(),e.soffset(),e.finish(),e.foffset())}))},s=function(){mg(e)},l=function(t){fg(e,t)},u=function(t){ag(e,t.start(),t.soffset(),t.finish(),t.foffset())},c=function(t,n){sg(e,t,n)},f=function(){return e.innerHeight},d=function(){var t=Pv(Ie.fromDom(e.document));return t.top()},h=function(t,n){Iv(t,n,Ie.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,setSelection:u,setRelativeSelection:c,selectContents:l,getInnerHeight:f,getScrollY:d,scrollBy:h}},Lv=X("rows","cols"),Nv=function(e,t,n,r){var i=jv(e),o=wv(i,t,n,r);return{mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},Rv=function(e,t,n,r){var i=jv(e),o=function(){return r.clear(t),g.none()},s=function(e,s,l,u,c,f){var d=e.raw(),h=d.which,p=!0===d.shiftKey,m=no.retrieve(t,r.selectedSelector()).fold((function(){return Tv.isDown(h)&&p?a(bv.select,i,t,n,Sv.down,u,s,r.selectRange):Tv.isUp(h)&&p?a(bv.select,i,t,n,Sv.up,u,s,r.selectRange):Tv.isDown(h)?a(bv.navigate,i,n,Sv.down,u,s,bv.lastDownCheck):Tv.isUp(h)?a(bv.navigate,i,n,Sv.up,u,s,bv.firstUpCheck):g.none}),(function(e){var n=function(n){return function(){var o=Ka(n,(function(n){return Ng.update(n.rows(),n.cols(),t,e,r)}));return o.fold((function(){return no.getEdges(t,r.firstSelectedSelector(),r.lastSelectedSelector()).map((function(e){var n=Tv.isDown(h)||f.isForward(h)?ap.after:ap.before;return i.setRelativeSelection(ap.on(e.first(),0),n(e.table())),r.clear(t),Eg.create(g.none(),!0)}))}),(function(e){return g.some(Eg.create(g.none(),!0))}))}};return Tv.isDown(h)&&p?n([Lv(1,0)]):Tv.isUp(h)&&p?n([Lv(-1,0)]):f.isBackward(h)&&p?n([Lv(0,-1),Lv(-1,0)]):f.isForward(h)&&p?n([Lv(0,1),Lv(1,0)]):Tv.isNavigation(h)&&!1===p?o:g.none}));return m()},l=function(e,i,o,a,s){return no.retrieve(t,r.selectedSelector()).fold((function(){var l=e.raw(),u=l.which,c=!0===l.shiftKey;return!1===c?g.none():Tv.isNavigation(u)?Ng.sync(t,n,i,o,a,s,r.selectRange):g.none()}),g.none)};return{keydown:s,keyup:l}},Bv=Bt(),$v=function(e,t,n,r){var i=jv(e);return function(e,o){r.clearBeforeUpdate(t),no.identify(e,o,n).each((function(e){var n=e.boxes().getOr([]);r.selectRange(t,n,e.start(),e.finish()),Bv.deviceType.isTouch()?i.clearSelection():i.selectContents(o)}))}},Fv={mouse:Nv,keyboard:Rv,external:$v},zv=function(e,t){M(t,(function(t){ss(e,t)}))},qv=function(e){return function(t){os(t,e)}},Uv=function(e){return function(t){zv(t,e)}},Hv=function(e){var t=qv(e.selected()),n=Uv([e.selected(),e.lastSelected(),e.firstSelected()]),r=function(t){var r=jn(t,e.selectedSelector());M(r,n)},i=function(n,i,o,a){r(n),M(i,t),os(o,e.firstSelected()),os(a,e.lastSelected())};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Vv=function(e,t,n){var r=function(t){be(t,e.selected()),be(t,e.firstSelected()),be(t,e.lastSelected())},i=function(t){ge(t,e.selected(),"1")},o=function(e){a(e),n()},a=function(t){var n=jn(t,e.selectedSelector());M(n,r)},s=function(n,r,a,s){o(n),M(r,i),ge(a,e.firstSelected(),"1"),ge(s,e.lastSelected(),"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},Wv={byClass:Hv,byAttr:Vv},Kv=function(e,t,n){var r=e.slice(0,t[t.length-1].row()+1),i=nl(r,n);return $(i,(function(e){var n=e.cells().slice(0,t[t.length-1].column()+1);return D(n,(function(e){return e.element()}))}))},Gv=function(e,t,n){var r=e.slice(t[0].row()+t[0].rowspan()-1,e.length),i=nl(r,n);return $(i,(function(e){var n=e.cells().slice(t[0].column()+t[0].colspan()-1,+e.cells().length);return D(n,(function(e){return e.element()}))}))},Yv=function(e,t,n){var r=ur.fromTable(e),i=mr.generate(r),o=cl(i,t);return o.map((function(e){var t=Js.toGrid(i,n,!1),r=Kv(t,e,n),o=Gv(t,e,n);return{upOrLeftCells:r,downOrRightCells:o}}))},Xv={getOtherCells:Yv},Zv=function(e){return!1===ls(Ie.fromDom(e.target),"ephox-snooker-resizer-bar")};function Qv(e,o,a){var s=re(["mousedown","mouseover","mouseup","keyup","keydown"],[]),l=g.none(),u=vf(e),c=function(t,r,i){a.targets().each((function(o){var a=ar.table(r);a.each((function(a){var s=Ie.fromDom(e.getDoc()),l=Yr.cellOperations(n,s,u),c=Xv.getOtherCells(a,o,l);Of(e,t,r,i,c)}))}))},f=function(){Sf(e)},d=Wv.byAttr(po,c,f);e.on("init",(function(a){var u=e.getWin(),c=$c(e),f=qc(e),h=function(){var t=e.selection,r=Ie.fromDom(t.getStart()),i=Ie.fromDom(t.getEnd()),o=Wi.sharedOne(ar.table,[r,i]);o.fold((function(){d.clear(c)}),n)},p=Fv.mouse(u,c,f,d),m=Fv.keyboard(u,c,f,d),v=Fv.external(u,c,f,d),y=function(e){return!0===e.raw().shiftKey};e.on("tableselectorchange",(function(e){v(e.start,e.finish)}));var b=function(t,n){y(t)&&(n.kill()&&t.kill(),n.selection().each((function(t){var n=gp.relative(t.start(),t.finish()),r=Tp(u,n);e.selection.setRng(r)})))},_=function(t){var n=O(t);if(n.raw().shiftKey&&Tv.isNavigation(n.raw().which)){var r=e.selection.getRng(),i=Ie.fromDom(r.startContainer),o=Ie.fromDom(r.endContainer);m.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){b(n,e)}))}},w=function(t){var n=O(t);o().each((function(e){e.hideBars()}));var r=e.selection.getRng(),i=Ie.fromDom(e.selection.getStart()),a=Ie.fromDom(r.startContainer),s=Ie.fromDom(r.endContainer),l=Xc.directionAt(i).isRtl()?Tv.rtl:Tv.ltr;m.keydown(n,a,r.startOffset,s,r.endOffset,l).each((function(e){b(n,e)})),o().each((function(e){e.showBars()}))},x=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},O=function(e){var t=Ie.fromDom(e.target),n=function(){e.stopPropagation()},o=function(){e.preventDefault()},a=r(o,n);return{target:i(t),x:i(x(e)?e.x:null),y:i(x(e)?e.y:null),stop:n,prevent:o,kill:a,raw:i(e)}},S=function(e){return 0===e.button},C=function(e){return void 0===e.buttons||0!==(1&e.buttons)},k=function(e){S(e)&&Zv(e)&&p.mousedown(O(e))},E=function(e){C(e)&&Zv(e)&&p.mouseover(O(e))},A=function(e){S(e)&&Zv(e)&&p.mouseup(O(e))},T=function(){var e=t(Ie.fromDom(c)),n=t(0),r=function(t){var r=Ie.fromDom(t.target);if("td"===le(r)||"th"===le(r)){var i=e.get(),o=n.get();Vt(i,r)&&t.timeStamp-o<300&&(t.preventDefault(),v(r,r))}e.set(r),n.set(t.timeStamp)};return{touchEnd:r}},D=T();e.on("mousedown",k),e.on("mouseover",E),e.on("mouseup",A),e.on("touchend",D.touchEnd),e.on("keyup",_),e.on("keydown",w),e.on("NodeChange",h),l=g.some(s({mousedown:k,mouseover:E,mouseup:A,keyup:_,keydown:w}))}));var h=function(){l.each((function(e){}))};return{clear:d.clear,destroy:h}}var Jv=function(e){var t=function(){var t=$c(e);return oo.retrieve(t,po.selectedSelector()).fold((function(){return void 0===e.selection.getStart()?bo.none():bo.single(e.selection)}),(function(e){return bo.multiple(e)}))};return{get:t}},ey=function(e,n){var r=t(g.none()),i=t([]),o=function(){return Vd(e).bind((function(e){var t=ar.table(e);return t.map((function(t){return"caption"===le(e)?To.notCell(e):To.forMenu(n,t,e)}))}))},a=function(){r.set(Ee(o)()),M(i.get(),(function(e){return e()}))},s=function(e,t){var n=function(){return r.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))};return n(),i.set(i.get().concat([n])),function(){i.set(I(i.get(),(function(e){return e!==n})))}},l=function(e){return s(e,(function(e){return!1}))},u=function(e){return s(e,(function(e){return"caption"===le(e.element())}))},c=function(e){return s(e,(function(e){return e.mergable().isNone()}))},f=function(e){return s(e,(function(e){return e.unmergable().isNone()}))};return e.on("NodeChange",a),{onSetupTable:l,onSetupCellOrRow:u,onSetupMergeable:c,onSetupUnmergeable:f,resetTargets:a,targets:function(){return r.get()}}},ty=function(e,t){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable tableprops deletetable | cell row column")}});var n=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:n("mceTableProps"),icon:"table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:n("mceTableDelete"),icon:"table-delete-table",onSetup:t.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:n("mceTableCellProps"),icon:"table-cell-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:n("mceTableMergeCells"),icon:"table-merge-cells",onSetup:t.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:n("mceTableSplitCells"),icon:"table-split-cells",onSetup:t.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:n("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:n("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:n("mceTableDeleteRow"),icon:"table-delete-row",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:n("mceTableRowProps"),icon:"table-row-properties",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:n("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:n("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:n("mceTableDeleteCol"),icon:"table-delete-column",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",onAction:n("mceTableCutRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",onAction:n("mceTableCopyRow"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",onAction:n("mceTablePasteRowBefore"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",onAction:n("mceTablePasteRowAfter"),icon:"temporary-placeholder",onSetup:t.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:n("mceInsertTable"),icon:"table"})},ny=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=mf(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},ry={addButtons:ty,addToolbars:ny},iy=function(e,t){var n=function(t){return function(){return e.execCommand(t)}},r=function(t){var n=t.numRows,r=t.numColumns;e.undoManager.transact((function(){Ld.insert(e,r,n)})),e.addVisual()},i={text:"Table properties",onSetup:t.onSetupTable,onAction:n("mceTableProps")},o={text:"Delete table",icon:"table-delete-table",onSetup:t.onSetupTable,onAction:n("mceTableDelete")},a=[{type:"menuitem",text:"Insert row before",icon:"table-insert-row-above",onAction:n("mceTableInsertRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert row after",icon:"table-insert-row-after",onAction:n("mceTableInsertRowAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete row",icon:"table-delete-row",onAction:n("mceTableDeleteRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Row properties",icon:"table-row-properties",onAction:n("mceTableRowProps"),onSetup:t.onSetupCellOrRow},{type:"separator"},{type:"menuitem",text:"Cut row",onAction:n("mceTableCutRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Copy row",onAction:n("mceTableCopyRow"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row before",onAction:n("mceTablePasteRowBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Paste row after",onAction:n("mceTablePasteRowAfter"),onSetup:t.onSetupCellOrRow}],s={type:"nestedmenuitem",text:"Row",getSubmenuItems:function(){return a}},l=[{type:"menuitem",text:"Insert column before",icon:"table-insert-column-before",onAction:n("mceTableInsertColBefore"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Insert column after",icon:"table-insert-column-after",onAction:n("mceTableInsertColAfter"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Delete column",icon:"table-delete-column",onAction:n("mceTableDeleteCol"),onSetup:t.onSetupCellOrRow}],u={type:"nestedmenuitem",text:"Column",getSubmenuItems:function(){return l}},c=[{type:"menuitem",text:"Cell properties",icon:"table-cell-properties",onAction:n("mceTableCellProps"),onSetup:t.onSetupCellOrRow},{type:"menuitem",text:"Merge cells",icon:"table-merge-cells",onAction:n("mceTableMergeCells"),onSetup:t.onSetupMergeable},{type:"menuitem",text:"Split cell",icon:"table-split-cells",onAction:n("mceTableSplitCells"),onSetup:t.onSetupUnmergeable}],f={type:"nestedmenuitem",text:"Cell",getSubmenuItems:function(){return c}};return!1===uf(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:n("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:r}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:n("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",i),e.ui.registry.addMenuItem("deletetable",o),e.ui.registry.addNestedMenuItem("row",s),e.ui.registry.addNestedMenuItem("column",u),e.ui.registry.addNestedMenuItem("cell",f),e.ui.registry.addContextMenu("table",{update:function(){return t.resetTargets(),t.targets().fold((function(){return""}),(function(e){return"caption"===le(e.element())?"tableprops deletetable":"cell row column | tableprops deletetable"}))}}),{rowItems:a,columnItems:l,cellItems:c}},oy={addMenuItems:iy},ay=function(e){return e.get().fold((function(){}),(function(e){return D(e,(function(e){return e.dom()}))}))},sy=function(e,t){var n=D(e,Ie.fromDom);t.set(g.from(n))},ly=function(e,t,n,r,i){return{insertTable:function(t,n){return Ld.insert(e,t,n)},setClipboardRows:function(e){return sy(e,t)},getClipboardRows:function(){return ay(t)},resizeHandler:n,menuItems:i,selectionTargets:r}};function uy(e){var n=Jv(e),r=ey(e,n),i=Hh(e),o=Qv(e,i.lazyResize,r),a=Cf(e,i.lazyWire),s=t(g.none());Gd.registerCommands(e,a,o,n,s),jo.registerEvents(e,n,a,o);var l=oy.addMenuItems(e,r);return ry.addButtons(e,r),ry.addToolbars(e),e.on("PreInit",(function(){e.serializer.addTempAttr(po.firstSelected()),e.serializer.addTempAttr(po.lastSelected())})),rf(e)&&e.on("keydown",(function(t){Cg.handle(t,e,a,i.lazyWire)})),e.on("remove",(function(){i.destroy(),o.destroy()})),ly(e,s,i,r,l)}function cy(){m.add("table",uy)}cy()})(window)},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},9680:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-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-r)/(e-n),u=(e*r-n*t)/(e-n);var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}n.d(t,"a",(function(){return r}))},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9850:function(e,t,n){"use strict";var r=n("1687"),i=n("dce8"),o=Math.min,a=Math.max,s=new i["a"],l=new i["a"],u=new i["a"],c=new i["a"],f=new i["a"],d=new i["a"],h=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=o(e.x,this.x),n=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(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,o=r["create"]();return r["translate"](o,o,[-t.x,-t.y]),r["scale"](o,o,[n,i]),r["translate"](o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,u=t.x,c=t.x+t.width,h=t.y,p=t.y+t.height,g=!(a<u||c<o||l<h||p<s);if(n){var m=1/0,v=0,y=Math.abs(a-u),b=Math.abs(c-o),_=Math.abs(l-h),w=Math.abs(p-s),x=Math.min(y,b),O=Math.min(_,w);a<u||c<o?x>v&&(v=x,y<b?i["a"].set(d,-y,0):i["a"].set(d,b,0)):x<m&&(m=x,y<b?i["a"].set(f,y,0):i["a"].set(f,-b,0)),l<h||p<s?O>v&&(v=O,_<w?i["a"].set(d,0,-_):i["a"].set(d,0,w)):x<m&&(m=x,_<w?i["a"].set(f,0,_):i["a"].set(f,0,-w))}return n&&i["a"].copy(n,g?f:d),g},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,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],f=r[3],d=r[4],h=r[5];return t.x=n.x*i+d,t.y=n.y*f+h,t.width=n.width*i,t.height=n.height*f,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),t.x=o(s.x,l.x,u.x,c.x),t.y=o(s.y,l.y,u.y,c.y);var p=a(s.x,l.x,u.x,c.x),g=a(s.y,l.y,u.y,c.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=h},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),i=n("d066"),o=n("0d3b"),a=n("6eeb"),s=n("e2cc"),l=n("d44e"),u=n("9ed3"),c=n("69f3"),f=n("19aa"),d=n("5135"),h=n("0366"),p=n("f5df"),g=n("825a"),m=n("861d"),v=n("7c73"),y=n("5c6c"),b=n("9a1f"),_=n("35a1"),w=n("b622"),x=i("fetch"),O=i("Headers"),S=w("iterator"),C="URLSearchParams",k=C+"Iterator",E=c.set,A=c.getterFor(C),T=c.getterFor(k),D=/\+/g,M=Array(4),P=function(e){return M[e-1]||(M[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},I=function(e){try{return decodeURIComponent(e)}catch(t){return e}},j=function(e){var t=e.replace(D," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(P(n--),I);return t}},L=/[!'()~]|%20/g,N={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},R=function(e){return N[e]},B=function(e){return encodeURIComponent(e).replace(L,R)},$=function(e,t){if(t){var n,r,i=t.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),e.push({key:j(r.shift()),value:j(r.join("="))}))}},F=function(e){this.entries.length=0,$(this.entries,e)},z=function(e,t){if(e<t)throw TypeError("Not enough arguments")},q=u((function(e,t){E(this,{type:k,iterator:b(A(e).entries),kind:t})}),"Iterator",(function(){var e=T(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,C);var e,t,n,r,i,o,a,s,l,u=arguments.length>0?arguments[0]:void 0,c=this,h=[];if(E(c,{type:C,entries:h,updateURL:function(){},updateSearchParams:F}),void 0!==u)if(m(u))if(e=_(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(i=b(g(r.value)),o=i.next,(a=o.call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");h.push({key:a.value+"",value:s.value+""})}}else for(l in u)d(u,l)&&h.push({key:l,value:u[l]+""});else $(h,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},H=U.prototype;s(H,{append:function(e,t){z(arguments.length,2);var n=A(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){z(arguments.length,1);var t=A(this),n=t.entries,r=e+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){z(arguments.length,1);for(var t=A(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){z(arguments.length,1);for(var t=A(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){z(arguments.length,1);var t=A(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){z(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=e+"",s=t+"",l=0;l<i.length;l++)n=i[l],n.key===a&&(o?i.splice(l--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=A(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){var t,n=A(this).entries,r=h(e,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new q(this,"keys")},values:function(){return new q(this,"values")},entries:function(){return new q(this,"entries")}},{enumerable:!0}),a(H,S,H.entries),a(H,"toString",(function(){var e,t=A(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),l(U,C),r({global:!0,forced:!o},{URLSearchParams:U}),o||"function"!=typeof x||"function"!=typeof O||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===C&&(r=t.headers?new O(t.headers):new O,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),x.apply(this,i)}}),e.exports={URLSearchParams:U,getState:A}},9876:function(e,t,n){var r=n("03d6"),i=n("9742");e.exports=Object.keys||function(e){return r(e,i)}},"98b7":function(e,t,n){"use strict";var r,i=n("22d1");r=i["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},t["a"]=r},9911:function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("link")},{link:function(e){return i(this,"a","href",e)}})},"998a":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("76a5");function i(e,t,n,i,o,a,s,l){var u=new r["a"]({style:{text:e,font:t,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:l}});return u.getBoundingRect()}},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),u=n("8418"),c=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=h>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},_=!v||!y;r({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,r,i,o,a=s(this),f=c(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],b(o)){if(i=l(o.length),d+i>g)throw TypeError(m);for(n=0;n<i;n++,d++)n in o&&u(f,d,o[n])}else{if(d>=g)throw TypeError(m);u(f,d++,o)}return f.length=d,f}})},"9a1f":function(e,t,n){var r=n("825a"),i=n("35a1");e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"9a9a":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("1c0b"),a=n("825a");r({target:"Iterator",proto:!0,real:!0},{some:function(e){return a(this),o(e),i(this,(function(t){if(e(t))return i.stop()}),void 0,!1,!0).stopped}})},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(e,t){return r=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])},r(e,t)};function i(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},"9bf2":function(e,t,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0c":function(e,t,n){var r=n("1609");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9cf9":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var r=Math.round;function i(e,t,n){if(t){var i=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=o,e.y1=s,e.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*o)&&(e.x1=e.x2=a(i,u,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=a(s,u,!0)),e):e}}function o(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,s=t.height;e.x=r,e.y=i,e.width=o,e.height=s;var l=n&&n.lineWidth;return l?(e.x=a(r,l,!0),e.y=a(i,l,!0),e.width=Math.max(a(r+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(a(i+s,l,!1)-e.y,0===s?0:1),e):e}}function a(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2===0?i/2:(i+(n?1:-1))/2}},"9d11":function(e,t,n){var r=n("fc5e"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"9d4a":function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("1c0b"),a=n("825a");r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),o(e);var t=arguments.length<2,n=t?void 0:arguments[1];if(i(this,(function(r){t?(t=!1,n=r):n=e(n,r)}),void 0,!1,!0),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})},"9d7e":function(e,t,n){"use strict";t.__esModule=!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};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"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,(function(t,r,o,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?o:(s=(0,i.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)}))}return t};var i=n("8122"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9dd9":function(e,t){(function(e){"use strict";var t=function(e){var n=e,r=function(){return n},i=function(e){n=e},o=function(){return t(r())};return{get:r,set:i,clone:o}},n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(){},o=function(e){return function(){return e}},a=o(!1),s=o(!0),l=function(){return u},u=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:a,isSome:a,isNone:s,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:n,orThunk:t,map:l,each:i,bind:l,exists:a,forall:s,filter:l,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(r),r}(),c=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:s,isNone:a,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return c(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:u},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(a,(function(t){return n(e,t)}))}};return i},f=function(e){return null===e||void 0===e?u:c(e)},d={some:c,none:l,from:f};function h(t,n){return m(e.document.createElement("canvas"),t,n)}function p(e){var t=h(e.width,e.height),n=g(t);return n.drawImage(e,0,0),t}function g(e){return e.getContext("2d")}function m(e,t,n){return e.width=t,e.height=n,e}function v(e){return e.naturalWidth||e.width}function y(e){return e.naturalHeight||e.height}var b=function(){var t=function(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(e,r(a,this),r(s,this))},n=t.immediateFn||"function"===typeof window.setImmediate&&window.setImmediate||function(t){e.setTimeout(t,1)};function r(e,t){return function(){return e.apply(t,arguments)}}var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e){var t=this;null!==this._state?n((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function a(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===typeof e||"function"===typeof e)){var t=e.then;if("function"===typeof t)return void c(r(t,e),r(a,this),r(s,this))}this._state=!0,this._value=e,l.call(this)}catch(n){s.call(this,n)}}function s(e){this._state=!1,this._value=e,l.call(this)}function l(){for(var e=0,t=this._deferreds;e<t.length;e++){var n=t[e];o.call(this,n)}this._deferreds=[]}function u(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}function c(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(i){if(r)return;r=!0,n(i)}}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.then=function(e,n){var r=this;return new t((function(t,i){o.call(r,new u(e,n,t,i))}))},t.all=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Array.prototype.slice.call(1===e.length&&i(e[0])?e[0]:e);return new t((function(e,t){if(0===r.length)return e([]);var n=r.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),t)}r[o]=a,0===--n&&e(r)}catch(l){t(l)}}for(var o=0;o<r.length;o++)i(o,r[o])}))},t.resolve=function(e){return e&&"object"===typeof e&&e.constructor===t?e:new t((function(t){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];o.then(t,n)}}))},t},_=window.Promise?window.Promise:b();function w(e){var t=e.src;return 0===t.indexOf("data:")?C(t):O(t)}function x(t){return new _((function(n,r){var i=e.URL.createObjectURL(t),o=new e.Image,a=function(){o.removeEventListener("load",s),o.removeEventListener("error",l)};function s(){a(),n(o)}function l(){a(),r("Unable to load data of type "+t.type+": "+i)}o.addEventListener("load",s),o.addEventListener("error",l),o.src=i,o.complete&&s()}))}function O(t){return new _((function(n,r){var i=new e.XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(){200===this.status&&n(this.response)},i.onerror=function(){var e=this,t=function(){var e=new Error("No access to download image");return e.code=18,e.name="SecurityError",e},n=function(){return new Error("Error "+e.status+" downloading image")};r(0===this.status?t():n())},i.send()}))}function S(t){var n=t.split(","),r=/data:([^;]+)/.exec(n[0]);if(!r)return d.none();for(var i=r[1],o=n[1],a=1024,s=e.atob(o),l=s.length,u=Math.ceil(l/a),c=new Array(u),f=0;f<u;++f){for(var h=f*a,p=Math.min(h+a,l),g=new Array(p-h),m=h,v=0;m<p;++v,++m)g[v]=s[m].charCodeAt(0);c[f]=new Uint8Array(g)}return d.some(new e.Blob(c,{type:i}))}function C(e){return new _((function(t,n){S(e).fold((function(){n("uri is not base64: "+e)}),t)}))}function k(t,n,r){return n=n||"image/png",e.HTMLCanvasElement.prototype.toBlob?new _((function(e,i){t.toBlob((function(t){t?e(t):i()}),n,r)})):C(t.toDataURL(n,r))}function E(e,t,n){return t=t||"image/png",e.toDataURL(t,n)}function A(e){return x(e).then((function(e){D(e);var t=h(v(e),y(e)),n=g(t);return n.drawImage(e,0,0),t}))}function T(t){return new _((function(n){var r=new e.FileReader;r.onloadend=function(){n(r.result)},r.readAsDataURL(t)}))}function D(t){e.URL.revokeObjectURL(t.src)}var M=function(e){return x(e)},P=function(e){return w(e)};function I(e,t,n){var r=t.type,i=o(r);function a(){return _.resolve(t)}function s(){return n}function l(){return n.split(",")[1]}function u(t,n){return e.then((function(e){return k(e,t,n)}))}function c(t,n){return e.then((function(e){return E(e,t,n)}))}function f(e,t){return c(e,t).then((function(e){return e.split(",")[1]}))}function d(){return e.then(p)}return{getType:i,toBlob:a,toDataURL:s,toBase64:l,toAdjustedBlob:u,toAdjustedDataURL:c,toAdjustedBase64:f,toCanvas:d}}function j(e){return T(e).then((function(t){return I(A(e),e,t)}))}function L(e,t){return k(e,t).then((function(t){return I(_.resolve(e),t,e.toDataURL())}))}function N(e,t){return e.toCanvas().then((function(n){return R(n,e.getType(),t)}))}function R(e,t,n){var r=h(e.width,e.height),i=g(r),o=0,a=0;return n=n<0?360+n:n,90!==n&&270!==n||m(r,r.height,r.width),90!==n&&180!==n||(o=r.width),270!==n&&180!==n||(a=r.height),i.translate(o,a),i.rotate(n*Math.PI/180),i.drawImage(e,0,0),L(r,t)}function B(e,t){return e.toCanvas().then((function(n){return $(n,e.getType(),t)}))}function $(e,t,n){var r=h(e.width,e.height),i=g(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),L(r,t)}var F=function(e,t){return B(e,t)},z=function(e,t){return N(e,t)},q=function(e){return j(e)},U=tinymce.util.Tools.resolve("tinymce.util.Delay"),H=tinymce.util.Tools.resolve("tinymce.util.Promise"),V=tinymce.util.Tools.resolve("tinymce.util.URI"),W=function(e){return e.getParam("imagetools_toolbar","rotateleft rotateright flipv fliph editimage imageoptions")},K=function(e){return e.getParam("imagetools_proxy")},G=function(e){return e.getParam("imagetools_cors_hosts",[],"string[]")},Y=function(e){return e.getParam("imagetools_credentials_hosts",[],"string[]")},X=function(e){return d.from(e.getParam("imagetools_fetch_image",null,"function"))},Z=function(e){return e.getParam("api_key",e.getParam("imagetools_api_key","","string"),"string")},Q=function(e){return e.getParam("images_upload_timeout",3e4,"number")},J=function(e){return e.getParam("images_reuse_filename",!1,"boolean")};function ee(e){var t,n;function r(e){return/^[0-9\.]+px$/.test(e)}return t=e.style.width,n=e.style.height,t||n?r(t)&&r(n)?{w:parseInt(t,10),h:parseInt(n,10)}:null:(t=e.width,n=e.height,t&&n?{w:parseInt(t,10),h:parseInt(n,10)}:null)}function te(e,t){var n,r;t&&(n=e.style.width,r=e.style.height,(n||r)&&(e.style.width=t.w+"px",e.style.height=t.h+"px",e.removeAttribute("data-mce-style")),n=e.width,r=e.height,(n||r)&&(e.setAttribute("width",t.w),e.setAttribute("height",t.h)))}function ne(e){return{w:e.naturalWidth,h:e.naturalHeight}}var re={getImageSize:ee,setImageSize:te,getNaturalImageSize:ne},ie=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},oe=function(e){return function(t){return ie(t)===e}},ae=oe("function"),se=Array.prototype.slice,le=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return d.some(i)}return d.none()},ue=(ae(Array.from)&&Array.from,function(e){return null!==e&&void 0!==e}),ce=function(e,t){var n;return n=t.reduce((function(e,t){return ue(e)?e[t]:void 0}),e),ue(n)?n:null},fe=function(t,n,i){return new H((function(o){var a;a=new e.XMLHttpRequest,a.onreadystatechange=function(){4===a.readyState&&o({status:a.status,blob:this.response})},a.open("GET",t,!0),a.withCredentials=i,r.each(n,(function(e,t){a.setRequestHeader(t,e)})),a.responseType="blob",a.send()}))},de=function(t){return new H((function(n){var r=new e.FileReader;r.onload=function(e){var t=e.target;n(t.result)},r.readAsText(t)}))},he=function(e){var t;try{t=JSON.parse(e)}catch(n){}return t},pe={traverse:ce,readBlob:de,requestUrlAsBlob:fe,parseJson:he},ge=[{code:404,message:"Could not find Image Proxy"},{code:403,message:"Rejected request"},{code:0,message:"Incorrect Image Proxy URL"}],me=[{type:"key_missing",message:"The request did not include an api key."},{type:"key_not_found",message:"The provided api key could not be found."},{type:"domain_not_trusted",message:"The api key is not valid for the request origins."}],ve=function(e){return 400===e||403===e||500===e},ye=function(e){var t=le(ge,(function(t){return e===t.code})).fold(o("Unknown ImageProxy error"),(function(e){return e.message}));return"ImageProxy HTTP error: "+t},be=function(e){var t=ye(e);return H.reject(t)},_e=function(e){return le(me,(function(t){return t.type===e})).fold(o("Unknown service error"),(function(e){return e.message}))},we=function(e){var t=pe.parseJson(e),n=pe.traverse(t,["error","type"]),r=n?_e(n):"Invalid JSON in service error message";return"ImageProxy Service error: "+r},xe=function(e,t){return pe.readBlob(t).then((function(e){var t=we(e);return H.reject(t)}))},Oe=function(e,t){return ve(e)?xe(e,t):be(e)},Se={handleServiceErrorResponse:Oe,handleHttpError:be,getHttpErrorMsg:ye,getServiceErrorMsg:_e},Ce=function(e,t){var n=-1===e.indexOf("?")?"?":"&";return/[?&]apiKey=/.test(e)||!t?e:e+n+"apiKey="+encodeURIComponent(t)},ke=function(e,t){var n={"Content-Type":"application/json;charset=UTF-8","tiny-api-key":t};return pe.requestUrlAsBlob(Ce(e,t),n,!1).then((function(e){return e.status<200||e.status>=300?Se.handleServiceErrorResponse(e.status,e.blob):H.resolve(e.blob)}))};function Ee(e,t){return pe.requestUrlAsBlob(e,{},t).then((function(e){return e.status<200||e.status>=300?Se.handleHttpError(e.status):H.resolve(e.blob)}))}var Ae=function(e,t,n){return t?ke(e,t):Ee(e,n)},Te=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},De=function(t,n){return Te(t,n,e.Node.DOCUMENT_POSITION_PRECEDING)},Me=function(t,n){return Te(t,n,e.Node.DOCUMENT_POSITION_CONTAINED_BY)},Pe={documentPositionPreceding:De,documentPositionContainedBy:Me},Ie=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},je=function(e,t){var n=Ie(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Re(r(1),r(2))},Le=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Ne():je(e,n)},Ne=function(){return Re(0,0)},Re=function(e,t){return{major:e,minor:t}},Be={nu:Re,detect:Le,unknown:Ne},$e="Edge",Fe="Chrome",ze="IE",qe="Opera",Ue="Firefox",He="Safari",Ve=function(e,t){return function(){return t===e}},We=function(){return Ke({current:void 0,version:Be.unknown()})},Ke=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:Ve($e,t),isChrome:Ve(Fe,t),isIE:Ve(ze,t),isOpera:Ve(qe,t),isFirefox:Ve(Ue,t),isSafari:Ve(He,t)}},Ge={unknown:We,nu:Ke,edge:o($e),chrome:o(Fe),ie:o(ze),opera:o(qe),firefox:o(Ue),safari:o(He)},Ye="Windows",Xe="iOS",Ze="Android",Qe="Linux",Je="OSX",et="Solaris",tt="FreeBSD",nt=function(e,t){return function(){return t===e}},rt=function(){return it({current:void 0,version:Be.unknown()})},it=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:nt(Ye,t),isiOS:nt(Xe,t),isAndroid:nt(Ze,t),isOSX:nt(Je,t),isLinux:nt(Qe,t),isSolaris:nt(et,t),isFreeBSD:nt(tt,t)}},ot={unknown:rt,nu:it,windows:o(Ye),ios:o(Xe),android:o(Ze),linux:o(Qe),osx:o(Je),solaris:o(et),freebsd:o(tt)},at=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!i,s=e.isiOS()||e.isAndroid(),l=s||r("(pointer:coarse)"),u=i||!a&&s&&r("(min-device-width:768px)"),c=a||s&&!u,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!f;return{isiPad:o(i),isiPhone:o(a),isTablet:o(u),isPhone:o(c),isTouch:o(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:o(f),isDesktop:o(d)}},st=function(e,t){var n=String(t).toLowerCase();return le(e,(function(e){return e.search(n)}))},lt=function(e,t){return st(e,t).map((function(e){var n=Be.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ut=function(e,t){return st(e,t).map((function(e){var n=Be.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ct={detectBrowser:lt,detectOs:ut},ft=function(e,t){return-1!==e.indexOf(t)},dt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ht=function(e){return function(t){return ft(t,e)}},pt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ft(e,"edge/")&&ft(e,"chrome")&&ft(e,"safari")&&ft(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,dt],search:function(e){return ft(e,"chrome")&&!ft(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ft(e,"msie")||ft(e,"trident")}},{name:"Opera",versionRegexes:[dt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ht("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ht("firefox")},{name:"Safari",versionRegexes:[dt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ft(e,"safari")||ft(e,"mobile/"))&&ft(e,"applewebkit")}}],gt=[{name:"Windows",search:ht("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ft(e,"iphone")||ft(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ht("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ht("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ht("linux"),versionRegexes:[]},{name:"Solaris",search:ht("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ht("freebsd"),versionRegexes:[]}],mt={browsers:o(pt),oses:o(gt)},vt=function(e,t){var n=mt.browsers(),r=mt.oses(),i=ct.detectBrowser(n,e).fold(Ge.unknown,Ge.nu),o=ct.detectOs(r,e).fold(ot.unknown,ot.nu),a=at(o,i,e,t);return{browser:i,os:o,deviceType:a}},yt={detect:vt},bt=function(t){return e.window.matchMedia(t).matches},_t=t(yt.detect(e.navigator.userAgent,bt)),wt=function(){return _t.get()},xt=function(t,n){var r=n||e.document,i=r.createElement("div");if(i.innerHTML=t,!i.hasChildNodes()||i.childNodes.length>1)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Ct(i.childNodes[0])},Ot=function(t,n){var r=n||e.document,i=r.createElement(t);return Ct(i)},St=function(t,n){var r=n||e.document,i=r.createTextNode(t);return Ct(i)},Ct=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},kt=function(e,t,n){var r=e.dom();return d.from(r.elementFromPoint(t,n)).map(Ct)},Et={fromHtml:xt,fromTag:Ot,fromText:St,fromDom:Ct,fromPoint:kt},At=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE,e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),Tt=(e.Node.TEXT_NODE,e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,At),Dt=function(e,t){var n=e.dom();if(n.nodeType!==Tt)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Mt=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},Pt=function(e,t){return Pe.documentPositionContainedBy(e.dom(),t.dom())},It=wt().browser,jt=(It.isIE(),"undefined"!==typeof e.window?e.window:Function("return this;")(),function(e,t){var n=function(e){return t(Et.fromDom(e))},r=le(e.dom().childNodes,n);return r.map(Et.fromDom)}),Lt=function(e,t){return jt(e,(function(e){return Dt(e,t)}))},Nt=0,Rt=function(e){return Lt(Et.fromDom(e),"img")},Bt=function(e,t){return e.dom.is(t,"figure")},$t=function(e,t){var n=function(t){return e.dom.is(t,"img:not([data-mce-object],[data-mce-placeholder])")},r=function(t){return n(t)&&(Ht(e,t)||Vt(e,t)||e.settings.imagetools_proxy)};if(Bt(e,t)){var i=Rt(t);return i.map((function(e){return r(e.dom())?d.some(e.dom()):d.none()}))}return r(t)?d.some(t):d.none()},Ft=function(e,t){e.notificationManager.open({text:t,type:"error"})},zt=function(e){var t=e.selection.getNode();return Bt(e,t)?Rt(t):d.some(Et.fromDom(t))},qt=function(e,t){var n=t.match(/\/([^\/\?]+)?\.(?:jpeg|jpg|png|gif)(?:\?|$)/i);return n?e.dom.encode(n[1]):null},Ut=function(){return"imagetools"+Nt++},Ht=function(e,t){var n=t.src;return 0===n.indexOf("data:")||0===n.indexOf("blob:")||new V(n).host===e.documentBaseURI.host},Vt=function(e,t){return-1!==r.inArray(G(e),new V(t.src).host)},Wt=function(e,t){return-1!==r.inArray(Y(e),new V(t.src).host)},Kt=function(e,t){var n,r=t.src;return Vt(e,t)?Ae(t.src,null,Wt(e,t)):Ht(e,t)?P(t):(r=K(e),r+=(-1===r.indexOf("?")?"?":"&")+"url="+encodeURIComponent(t.src),n=Z(e),Ae(r,n,!1))},Gt=function(e,t){return X(e).fold((function(){return Kt(e,t)}),(function(e){return e(t)}))},Yt=function(e,t){var n;return n=e.editorUpload.blobCache.getByUri(t.src),n?H.resolve(n.blob()):Gt(e,t)},Xt=function(e,t){var n=U.setEditorTimeout(e,(function(){e.editorUpload.uploadImagesAuto()}),Q(e));t.set(n)},Zt=function(e){U.clearTimeout(e.get())},Qt=function(e,t,n,r,i,o){return t.toBlob().then((function(a){var s,l,u,c;return u=e.editorUpload.blobCache,s=i.src,J(e)&&(c=u.getByUri(s),c?(s=c.uri(),l=c.name()):l=qt(e,s)),c=u.create({id:Ut(),blob:a,base64:t.toBase64(),uri:s,name:l}),u.add(c),e.undoManager.transact((function(){function t(){e.$(i).off("load",t),e.nodeChanged(),n?e.editorUpload.uploadImagesAuto():(Zt(r),Xt(e,r))}e.$(i).on("load",t),o&&e.$(i).attr({width:o.w,height:o.h}),e.$(i).attr({src:c.blobUri()}).removeAttr("data-mce-src")})),c}))},Jt=function(e,t,n,r){return function(){var i=zt(e);return i.fold((function(){Ft(e,"Could not find selected image")}),(function(i){return e._scanForImages().then((function(){return Yt(e,i.dom())})).then(q).then(n).then((function(n){return Qt(e,n,!1,t,i.dom(),r)}),(function(t){Ft(e,t)}))}))}},en=function(e,t,n){return function(){var r=zt(e),i=r.fold((function(){return null}),(function(e){var t=re.getImageSize(e.dom());return t?{w:t.h,h:t.w}:null}));return Jt(e,t,(function(e){return z(e,n)}),i)()}},tn=function(e,t,n){return function(){return Jt(e,t,(function(e){return F(e,n)}))()}},nn=function(t,n,r,i,o){return new H((function(a){M(o).then((function(t){var n=re.getNaturalImageSize(t);return i.w===n.w&&i.h===n.h||re.getImageSize(r)&&re.setImageSize(r,n),e.URL.revokeObjectURL(t.src),o})).then(q).then((function(e){return Qt(t,e,!0,n,r)}),(function(){}))}))},rn={rotate:en,flip:tn,getEditableImage:$t,cancelTimedUpload:Zt,findBlob:Yt,getSelectedImage:zt,handleDialogBlob:nn},on=o("save-state"),an=o("disable"),sn=o("enable"),ln=function(t){return{blob:t,url:e.URL.createObjectURL(t)}},un=function(e,t){return function(){var n=function(n){return{title:"Edit Image",size:"large",body:{type:"panel",items:[{type:"imagetools",name:"imagetools",label:"Edit Image",currentState:n}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0,disabled:!0}],onSubmit:function(n){var o=n.getData().imagetools.blob;r.each((function(n){i.each((function(r){rn.handleDialogBlob(e,t,n.dom(),r,o)}))})),n.close()},onCancel:function(){},onAction:function(e,t){switch(t.name){case on():t.value?e.enable("save"):e.disable("save");break;case an():e.disable("save"),e.disable("cancel");break;case sn():e.enable("cancel");break}}}},r=rn.getSelectedImage(e),i=r.map((function(e){return re.getNaturalImageSize(e.dom())})),o=rn.getSelectedImage(e);o.each((function(t){rn.getEditableImage(e,t.dom()).each((function(r){rn.findBlob(e,t.dom()).then((function(t){var r=ln(t);e.windowManager.open(n(r))}))}))}))}},cn={makeOpen:un},fn=function(e,t){r.each({mceImageRotateLeft:rn.rotate(e,t,-90),mceImageRotateRight:rn.rotate(e,t,90),mceImageFlipVertical:rn.flip(e,t,"v"),mceImageFlipHorizontal:rn.flip(e,t,"h"),mceEditImage:cn.makeOpen(e,t)},(function(t,n){e.addCommand(n,t)}))},dn={register:fn},hn=function(e,t,n){e.on("NodeChange",(function(r){var i=n.get();i&&i.src!==r.element.src&&(rn.cancelTimedUpload(t),e.editorUpload.uploadImagesAuto(),n.set(null)),rn.getEditableImage(e,r.element).each(n.set)}))},pn={setup:hn},gn=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("rotateleft",{tooltip:"Rotate counterclockwise",icon:"rotate-left",onAction:t("mceImageRotateLeft")}),e.ui.registry.addButton("rotateright",{tooltip:"Rotate clockwise",icon:"rotate-right",onAction:t("mceImageRotateRight")}),e.ui.registry.addButton("flipv",{tooltip:"Flip vertically",icon:"flip-vertically",onAction:t("mceImageFlipVertical")}),e.ui.registry.addButton("fliph",{tooltip:"Flip horizontally",icon:"flip-horizontally",onAction:t("mceImageFlipHorizontal")}),e.ui.registry.addButton("editimage",{tooltip:"Edit image",icon:"edit-image",onAction:t("mceEditImage"),onSetup:function(t){var n=function(){var n=rn.getSelectedImage(e);n.each((function(n){var r=rn.getEditableImage(e,n.dom()).isNone();t.setDisabled(r)}))};return e.on("NodeChange",n),function(){e.off("NodeChange",n)}}}),e.ui.registry.addButton("imageoptions",{tooltip:"Image options",icon:"image-options",onAction:t("mceImage")}),e.ui.registry.addContextMenu("imagetools",{update:function(n){return rn.getEditableImage(e,n).fold((function(){return[]}),(function(e){return[{text:"Edit image",icon:"edit-image",onAction:t("mceEditImage")}]}))}})},mn={register:gn},vn=function(e){e.ui.registry.addContextToolbar("imagetools",{items:W(e),predicate:function(t){return rn.getEditableImage(e,t).isSome()},position:"node",scope:"node"})},yn={register:vn};function bn(){n.add("imagetools",(function(e){var n=t(0),r=t(null);dn.register(e,n),mn.register(e),yn.register(e),pn.setup(e,n,r)}))}bn()})(window)},"9e6a":function(e,t,n){"use strict";var r=n("d233"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",f=function(e,t){var n,f={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,h),g=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&(p[n]===c?m="utf-8":p[n]===u&&(m="iso-8859-1"),g=n,n=p.length);for(n=0;n<p.length;++n)if(n!==g){var v,y,b=p[n],_=b.indexOf("]="),w=-1===_?b.indexOf("="):_+1;-1===w?(v=t.decoder(b,a.decoder,m,"key"),y=t.strictNullHandling?null:""):(v=t.decoder(b.slice(0,w),a.decoder,m,"key"),y=r.maybeMap(l(b.slice(w+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=s(y)),b.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(f,v)?f[v]=r.combine(f[v],y):f[v]=y}return f},d=function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(u,10);n.parseArrays||""!==u?!isNaN(c)&&s!==u&&String(c)===u&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[],a[c]=i):"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i},h=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}var f=0;while(n.depth>0&&null!==(l=s.exec(o))&&f<n.depth){if(f+=1,!n.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}return l&&c.push("["+o.slice(l.index)+"]"),d(c,t,n,r)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?f(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var l=a[s],u=h(l,i[l],n,"string"===typeof e);o=r.merge(o,u,n)}return r.compact(o)}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,u,!1,!0),s[u]=l,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fbb":function(e,t,n){var r=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"9fbc":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("6d8b");function i(e){return new o(e)}var o=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 o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var a,s=f(this._modBy),l=this._modDataCount||0,u=f(e&&e.modBy),c=e&&e.modDataCount||0;function f(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,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,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(a||h<p)){var g=this._progress;if(Object(r["isArray"])(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],h,p,u,c);else this._doProgress(g,h,p,u,c)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;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,r,i){a.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:a.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(r["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}(),a=function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}()},a15a:function(e,t,n){"use strict";n.d(t,"d",(function(){return y})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return O}));var r=n("6d8b"),i=n("cbe5"),o=n("cb11"),a=n("c7a2"),s=n("d9fc"),l=n("2306"),u=n("9850"),c=n("e86a"),f=n("3842"),d=i["b"].extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),h=i["b"].extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),p=i["b"].extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),h=.6*a,p=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),g=i["b"].extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),m={line:o["a"],rect:a["a"],roundRect:a["a"],square:a["a"],circle:s["a"],diamond:h,pin:p,arrow:g,triangle:d},v={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},y={};Object(r["each"])(m,(function(e,t){y[t]=new e}));var b=i["b"].extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Object(c["c"])(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=y[r];i||(r="rect",i=y[r]),v[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function _(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 w(e,t,n,r,i,o,a){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?l["makeImage"](e.slice(8),new u["a"](t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?l["makePath"](e.slice(7),{},new u["a"](t,n,r,i),a?"center":"cover"):new b({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),s.__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function x(e){return Object(r["isArray"])(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function O(e,t){if(null!=e)return Object(r["isArray"])(e)||(e=[e,e]),[Object(f["q"])(e[0],t[0])||0,Object(f["q"])(Object(r["retrieve2"])(e[1],e[0]),t[1])||0]}},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("44ad"),o=n("fc6a"),a=n("a640"),s=[].join,l=i!=Object,u=a("join",",");r({target:"Array",proto:!0,forced:l||!u},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[r];r<o;l=t[++r])a+=" "+l;return a}return i}function c(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)||!(!c(t)||"string"!==typeof e||e))}function d(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?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,r){if(t.first){var i=p(e);return h(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,u=[],c=function(e){u.push.apply(u,e),l++,l===s&&r(u)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?h(r,n,c):d(r,n,c)}))}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 r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function y(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||r.push(u(i.messages.required,e.fullField))}var b=y;function _(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.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},O={integer:function(e){return O.number(e)&&parseInt(e,10)===e},float:function(e){return O.number(e)&&!O.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))&&!O.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,r,i){if(e.required&&void 0===t)b(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?O[s](t)||r.push(u(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(u(i.messages.types[s],e.fullField,e.type))}}var C=S;function k(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=t.length),h&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var E=k,A="enum";function T(e,t,n,r,i){e[A]=Array.isArray(e[A])?e[A]:[],-1===e[A].indexOf(t)&&r.push(u(i.messages[A],e.fullField,e[A].join(", ")))}var D=T;function M(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(u(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var P=M,I={required:b,whitespace:w,type:C,range:E,enum:D,pattern:P};function j(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();I.required(e,t,r,o,i,"string"),f(t,"string")||(I.type(e,t,r,o,i),I.range(e,t,r,o,i),I.pattern(e,t,r,o,i),!0===e.whitespace&&I.whitespace(e,t,r,o,i))}n(o)}var L=j;function N(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&I.type(e,t,r,o,i)}n(o)}var R=N;function B(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&(I.type(e,t,r,o,i),I.range(e,t,r,o,i))}n(o)}var $=B;function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&I.type(e,t,r,o,i)}n(o)}var z=F;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),f(t)||I.type(e,t,r,o,i)}n(o)}var U=q;function H(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&(I.type(e,t,r,o,i),I.range(e,t,r,o,i))}n(o)}var V=H;function W(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&(I.type(e,t,r,o,i),I.range(e,t,r,o,i))}n(o)}var K=W;function G(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();I.required(e,t,r,o,i,"array"),f(t,"array")||(I.type(e,t,r,o,i),I.range(e,t,r,o,i))}n(o)}var Y=G;function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),void 0!==t&&I.type(e,t,r,o,i)}n(o)}var Z=X,Q="enum";function J(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();I.required(e,t,r,o,i),t&&I[Q](e,t,r,o,i)}n(o)}var ee=J;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();I.required(e,t,r,o,i),f(t,"string")||I.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(I.required(e,t,r,o,i),!f(t)){var s=void 0;s="number"===typeof t?new Date(t):t,I.type(e,s,r,o,i),s&&I.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);I.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,o)&&!e.required)return n();I.required(e,t,r,a,i,o),f(t,o)||I.type(e,t,r,a,i)}n(a)}var le=se,ue={string:L,method:R,number:$,boolean:z,regexp:U,integer:V,float:K,array:Y,object:Z,enum:ee,pattern:ne,date:ie,url:le,hex:le,email:le,required:ae};function ce(){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 fe=ce();function de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(ce(),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]:{},r=arguments[2],o=e,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===fe&&(f=ce()),v(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){d=t.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},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:h,source:o,field:n}))}))}));var b={};g(p,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(m(n)),s.first&&c.length)return b[n.field]=1,t(c);if(r){if(n.required&&!e.value)return c=n.message?[].concat(n.message).map(m(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(c);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var g=new de(f);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?c.concat(e):e)}))}else t(c)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=n.validator(n,e.value,c,e.source,s);f&&f.then&&f.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){_(e)}))}else c&&c();function _(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;c(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ue.hasOwnProperty(e.type))throw new Error(u("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]?ue.required:ue[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ue[e]=t},de.messages=fe;t["default"]=de},a38e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("53ca");n("8172"),n("efec"),n("a9e3");function i(e,t){if("object"!=Object(r["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==Object(r["a"])(t)?t:t+""}},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),l=n("65f0"),u=n("8418"),c=n("1dde"),f=n("ae40"),d=c("splice"),h=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d||!h},{splice:function(e,t){var n,r,c,f,d,h,y=s(this),b=a(y.length),_=i(e,b),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=b-_):(n=w-2,r=g(p(o(t),0),b-_)),b+n-r>m)throw TypeError(v);for(c=l(y,r),f=0;f<r;f++)d=_+f,d in y&&u(c,f,y[d]);if(c.length=r,n<r){for(f=_;f<b-r;f++)d=f+r,h=f+n,d in y?y[h]=y[d]:delete y[h];for(f=b;f>b-r+n;f--)delete y[f-1]}else if(n>r)for(f=b-r;f>_;f--)d=f+r-1,h=f+n-1,d in y?y[h]=y[d]:delete y[h];for(f=0;f<n;f++)y[f+_]=arguments[f+2];return y.length=b-r+n,c}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),u=n("fdbf"),c=n("d039"),f=n("5135"),d=n("e8b5"),h=n("861d"),p=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),y=n("5c6c"),b=n("7c73"),_=n("df75"),w=n("241c"),x=n("057f"),O=n("7418"),S=n("06cf"),C=n("9bf2"),k=n("d1e7"),E=n("9112"),A=n("6eeb"),T=n("5692"),D=n("f772"),M=n("d012"),P=n("90e3"),I=n("b622"),j=n("e538"),L=n("746f"),N=n("d44e"),R=n("69f3"),B=n("b727").forEach,$=D("hidden"),F="Symbol",z="prototype",q=I("toPrimitive"),U=R.set,H=R.getterFor(F),V=Object[z],W=i.Symbol,K=o("JSON","stringify"),G=S.f,Y=C.f,X=x.f,Z=k.f,Q=T("symbols"),J=T("op-symbols"),ee=T("string-to-symbol-registry"),te=T("symbol-to-string-registry"),ne=T("wks"),re=i.QObject,ie=!re||!re[z]||!re[z].findChild,oe=s&&c((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G(V,t);r&&delete V[t],Y(e,t,n),r&&e!==V&&Y(V,t,r)}:Y,ae=function(e,t){var n=Q[e]=b(W[z]);return U(n,{type:F,tag:e,description:t}),s||(n.description=t),n},se=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},le=function(e,t,n){e===V&&le(J,t,n),p(e);var r=v(t,!0);return p(n),f(Q,r)?(n.enumerable?(f(e,$)&&e[$][r]&&(e[$][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,$)||Y(e,$,y(1,{})),e[$][r]=!0),oe(e,r,n)):Y(e,r,n)},ue=function(e,t){p(e);var n=m(t),r=_(n).concat(pe(n));return B(r,(function(t){s&&!fe.call(n,t)||le(e,t,n[t])})),e},ce=function(e,t){return void 0===t?b(e):ue(b(e),t)},fe=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===V&&f(Q,t)&&!f(J,t))&&(!(n||!f(this,t)||!f(Q,t)||f(this,$)&&this[$][t])||n)},de=function(e,t){var n=m(e),r=v(t,!0);if(n!==V||!f(Q,r)||f(J,r)){var i=G(n,r);return!i||!f(Q,r)||f(n,$)&&n[$][r]||(i.enumerable=!0),i}},he=function(e){var t=X(m(e)),n=[];return B(t,(function(e){f(Q,e)||f(M,e)||n.push(e)})),n},pe=function(e){var t=e===V,n=X(t?J:m(e)),r=[];return B(n,(function(e){!f(Q,e)||t&&!f(V,e)||r.push(Q[e])})),r};if(l||(W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function(e){this===V&&n.call(J,e),f(this,$)&&f(this[$],t)&&(this[$][t]=!1),oe(this,t,y(1,e))};return s&&ie&&oe(V,t,{configurable:!0,set:n}),ae(t,e)},A(W[z],"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(e){return ae(P(e),e)})),k.f=fe,C.f=le,S.f=de,w.f=x.f=he,O.f=pe,j.f=function(e){return ae(I(e),e)},s&&(Y(W[z],"description",{configurable:!0,get:function(){return H(this).description}}),a||A(V,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(_(ne),(function(e){L(e)})),r({target:F,stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=W(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ce,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){O.f(1)}))},{getOwnPropertySymbols:function(e){return O.f(g(e))}}),K){var ge=!l||c((function(){var e=W();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}));r({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!se(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!se(t))return t}),i[1]=t,K.apply(null,i)}})}W[z][q]||E(W[z],q,W[z].valueOf),N(W,F),M[$]=!0},a573:function(e,t,n){"use strict";var r=n("23e7"),i=n("1c0b"),o=n("825a"),a=n("c5cc"),s=n("9bdd"),l=a((function(e){var t=this.iterator,n=o(this.next.call(t,e)),r=this.done=!!n.done;if(!r)return s(t,this.mapper,n.value)}));r({target:"Iterator",proto:!0,real:!0},{map:function(e){return new l({iterator:o(this),mapper:i(e)})}})},a5d8:function(e,t,n){},a630:function(e,t,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 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};t.isString=s,t.isObject=l,t.isHtmlElement=u;var i=n("2b0e"),o=a(i);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 u(e){return e&&e.nodeType===Node.ELEMENT_NODE}var c=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":r(Int8Array))||!o.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=c=function(e){return"function"===typeof e||!1}),t.isFunction=c;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a78e:function(e,t,n){var r,i;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */(function(o){var a;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,l=window.Cookies=o();l.noConflict=function(){return window.Cookies=s,l}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function o(t,n,o){if("undefined"!==typeof document){o=e({path:"/"},i.defaults,o),"number"===typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(u){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!==typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(r.read||r)(l,u)||t(l),n)try{l=JSON.parse(l)}catch(c){}if(i[u]=l,e===u)break}catch(c){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}return n((function(){}))}))},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),l=n("4840"),u=n("cdf9"),c=n("6eeb"),f=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof o||o.prototype["finally"]||c(o.prototype,"finally",s("Promise").prototype["finally"])},a8b8:function(e,t){(function(e){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r={},i=r,o="undefined"!==typeof r?r:"undefined"!==typeof WorkerGlobalScope&&e.self instanceof WorkerGlobalScope?e.self:{},a=function(){var t=/\blang(?:uage)?-(?!\*)(\w+)\b/i,n=o.Prism={util:{encode:function(e){return e instanceof r?new r(e.type,n.util.encode(e.content),e.alias):"Array"===n.util.type(e)?e.map(n.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){var t=n.util.type(e);switch(t){case"Object":var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=n.util.clone(e[i]));return r;case"Array":return e.map&&e.map((function(e){return n.util.clone(e)}))}return e}},languages:{extend:function(e,t){var r=n.util.clone(n.languages[e]);for(var i in t)r[i]=t[i];return r},insertBefore:function(e,t,r,i){i=i||n.languages;var o=i[e];if(2===arguments.length){for(var a in r=arguments[1],r)r.hasOwnProperty(a)&&(o[a]=r[a]);return o}var s={};for(var l in o)if(o.hasOwnProperty(l)){if(l===t)for(var a in r)r.hasOwnProperty(a)&&(s[a]=r[a]);s[l]=o[l]}return n.languages.DFS(n.languages,(function(t,n){n===i[e]&&t!==e&&(this[t]=s)})),i[e]=s},DFS:function(e,t,r){for(var i in e)e.hasOwnProperty(i)&&(t.call(e,i,e[i],r||i),"Object"===n.util.type(e[i])?n.languages.DFS(e[i],t):"Array"===n.util.type(e[i])&&n.languages.DFS(e[i],t,i))}},plugins:{},highlightAll:function(t,r){for(var i=e.document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),o=0,a=void 0;a=i[o++];)n.highlightElement(a,!0===t,r)},highlightElement:function(r,i,a){var s,l,u=r;while(u&&!t.test(u.className))u=u.parentNode;u&&(s=(u.className.match(t)||[,""])[1],l=n.languages[s]),r.className=r.className.replace(t,"").replace(/\s+/g," ")+" language-"+s,u=r.parentNode,/pre/i.test(u.nodeName)&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+s);var c=r.textContent,f={element:r,language:s,grammar:l,code:c};if(c&&l)if(n.hooks.run("before-highlight",f),i&&o.Worker){var d=new e.Worker(n.filename);d.onmessage=function(e){f.highlightedCode=e.data,n.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,a&&a.call(f.element),n.hooks.run("after-highlight",f),n.hooks.run("complete",f)},d.postMessage(JSON.stringify({language:f.language,code:f.code,immediateClose:!0}))}else f.highlightedCode=n.highlight(f.code,f.grammar,f.language),n.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,a&&a.call(r),n.hooks.run("after-highlight",f),n.hooks.run("complete",f);else n.hooks.run("complete",f)},highlight:function(e,t,i){var o=n.tokenize(e,t);return r.stringify(n.util.encode(o),i)},tokenize:function(e,t,r){var i=n.Token,o=[e],a=t.rest;if(a){for(var s in a)t[s]=a[s];delete t.rest}e:for(var s in t)if(t.hasOwnProperty(s)&&t[s]){var l=t[s];l="Array"===n.util.type(l)?l:[l];for(var u=0;u<l.length;++u){var c=l[u],f=c.inside,d=!!c.lookbehind,h=0,p=c.alias;c=c.pattern||c;for(var g=0;g<o.length;g++){var m=o[g];if(o.length>e.length)break e;if(!(m instanceof i)){c.lastIndex=0;var v=c.exec(m);if(v){d&&(h=v[1].length);var y=v.index-1+h;v=v[0].slice(h);var b=v.length,_=y+b,w=m.slice(0,y+1),x=m.slice(_+1),O=[g,1];w&&O.push(w);var S=new i(s,f?n.tokenize(v,f):v,p);O.push(S),x&&O.push(x),Array.prototype.splice.apply(o,O)}}}}}return o},hooks:{all:{},add:function(e,t){var r=n.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=n.hooks.all[e];if(r&&r.length)for(var i=0,o=void 0;o=r[i++];)o(t)}}},r=n.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};if(r.stringify=function(e,t,i){if("string"===typeof e)return e;if("Array"===n.util.type(e))return e.map((function(n){return r.stringify(n,t,e)})).join("");var o={type:e.type,content:r.stringify(e.content,t,i),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:i};if("comment"===o.type&&(o.attributes.spellcheck="true"),e.alias){var a="Array"===n.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(o.classes,a)}n.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=(s?" ":"")+l+'="'+(o.attributes[l]||"")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'" '+s+">"+o.content+"</"+o.tag+">"},!o.document)return o.addEventListener?(o.addEventListener("message",(function(e){var t=JSON.parse(e.data),r=t.language,i=t.code,a=t.immediateClose;o.postMessage(n.highlight(i,n.languages[r],r)),a&&o.close()}),!1),o.Prism):o.Prism}();function s(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")}function l(e){return function(t,n){return e(n)}}"undefined"!==typeof i&&(i.Prism=a),a.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},a.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),a.languages.xml=a.languages.markup,a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},a.languages.css.atrule.inside.rest=a.util.clone(a.languages.css),a.languages.markup&&(a.languages.insertBefore("markup","tag",{style:{pattern:/<style[\w\W]*?>[\w\W]*?<\/style>/i,inside:{tag:{pattern:/<style[\w\W]*?>|<\/style>/i,inside:a.languages.markup.tag.inside},rest:a.languages.css},alias:"language-css"}}),a.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:a.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:a.languages.css}},alias:"language-css"}},a.languages.markup.tag)),a.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},a.languages.javascript=a.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),a.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),a.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:a.languages.javascript}},string:/[\s\S]+/}}}),a.languages.markup&&a.languages.insertBefore("markup","tag",{script:{pattern:/<script[\w\W]*?>[\w\W]*?<\/script>/i,inside:{tag:{pattern:/<script[\w\W]*?>|<\/script>/i,inside:a.languages.markup.tag.inside},rest:a.languages.javascript},alias:"language-javascript"}}),a.languages.js=a.languages.javascript,a.languages.c=a.languages.extend("clike",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i}),a.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,lookbehind:!0}}}}),delete a.languages.c["class-name"],delete a.languages.c.boolean,a.languages.csharp=a.languages.extend("clike",{keyword:/\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,string:[/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,/("|')(\\?.)*?\1/],number:/\b-?(0x[\da-f]+|\d*\.?\d+)\b/i}),a.languages.insertBefore("csharp","keyword",{preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0}}),a.languages.cpp=a.languages.extend("c",{keyword:/\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,boolean:/\b(true|false)\b/,operator:/[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),a.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)[a-z0-9_]+/i,lookbehind:!0}}),a.languages.java=a.languages.extend("clike",{keyword:/\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),a.languages.php=a.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0}}),a.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),a.languages.insertBefore("php","keyword",{delimiter:/\?>|<\?(?:php)?/i,variable:/\$\w+\b/i,package:{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),a.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),a.languages.markup&&(a.hooks.add("before-highlight",(function(e){"php"===e.language&&(e.tokenStack=[],e.backupCode=e.code,e.code=e.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi,(function(t){return e.tokenStack.push(t),"{{{PHP"+e.tokenStack.length+"}}}"})))})),a.hooks.add("before-insert",(function(e){"php"===e.language&&(e.code=e.backupCode,delete e.backupCode)})),a.hooks.add("after-highlight",(function(e){if("php"===e.language){for(var t=0,n=void 0;n=e.tokenStack[t];t++)e.highlightedCode=e.highlightedCode.replace("{{{PHP"+(t+1)+"}}}",a.highlight(n,e.grammar,"php").replace(/\$/g,"$$$$"));e.element.innerHTML=e.highlightedCode}})),a.hooks.add("wrap",(function(e){"php"===e.language&&"markup"===e.type&&(e.content=e.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'<span class="token php">$1</span>'))})),a.languages.insertBefore("php","comment",{markup:{pattern:/<[^?]\/?(.*?)>/,inside:a.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/})),a.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:/"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(?:\\?.)*?\1/,function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)[a-z0-9_]+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,boolean:/\b(?:True|False)\b/,number:/\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:/#(?!\{[^\r\n]*?\}).*/,keyword:/\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.util.clone(e.languages.ruby)}};e.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}],variable:/[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,symbol:/:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.insertBefore("ruby","number",{builtin:/\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:t}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:t}}]}(a);var u={isCodeSample:s,trimArg:l},c=function(){},f=function(e){return function(){return e}},d=f(!1),h=f(!0),p=function(){return g},g=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:d,isSome:d,isNone:h,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:n,orThunk:t,map:p,each:c,bind:p,exists:d,forall:h,filter:p,equals:e,equals_:e,toArray:function(){return[]},toString:f("none()")};return Object.freeze&&Object.freeze(r),r}(),m=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:h,isNone:d,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return m(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:g},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(d,(function(t){return n(e,t)}))}};return i},v=function(e){return null===e||void 0===e?g:m(e)},y={some:m,none:p,from:v},b=function(e){var t=e.selection?e.selection.getNode():null;return u.isCodeSample(t)?y.some(t):y.none()},_=function(e,t,r){e.undoManager.transact((function(){var i=b(e);return r=n.DOM.encode(r),i.fold((function(){e.insertContent('<pre id="__new" class="language-'+t+'">'+r+"</pre>"),e.selection.select(e.$("#__new").removeAttr("id")[0])}),(function(n){e.dom.setAttrib(n,"class","language-"+t),n.innerHTML=r,a.highlightElement(n),e.selection.select(n)}))}))},w=function(e){var t=b(e);return t.fold((function(){return""}),(function(e){return e.textContent}))},x={getSelectedCodeSample:b,insertCodeSample:_,getCurrentCode:w},O=function(e){return e.settings.codesample_languages},S={getLanguages:O},C=function(e){var t=[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}],n=S.getLanguages(e);return n||t},k=function(e,t){var n=x.getSelectedCodeSample(e);return n.fold((function(){return t}),(function(e){var n=e.className.match(/language-(\w+)/);return n?n[1]:t}))},E={getLanguages:C,getCurrentLanguage:k},A=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},T=function(e){return function(t){return A(t)===e}},D=T("function"),M=Array.prototype.slice,P=function(e){return 0===e.length?y.none():y.some(e[0])},I=(D(Array.from)&&Array.from,function(e){var t=E.getLanguages(e),n=P(t).fold((function(){return""}),(function(e){return e.value})),r=E.getCurrentLanguage(e,n),i=x.getCurrentCode(e);e.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:t},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:r,code:i},onSubmit:function(t){var n=t.getData();x.insertCodeSample(e,n.language,n.code),t.close()}})}),j={open:I},L=function(e){e.addCommand("codesample",(function(){var t=e.selection.getNode();e.selection.isCollapsed()||u.isCodeSample(t)?j.open(e):e.formatter.toggle("code")}))},N={register:L},R=function(e){var t=e.$;e.on("PreProcess",(function(e){t("pre[contenteditable=false]",e.node).filter(u.trimArg(u.isCodeSample)).each((function(e,n){var r=t(n),i=n.textContent;r.attr("class",t.trim(r.attr("class"))),r.removeAttr("contentEditable"),r.empty().append(t("<code></code>").each((function(){this.textContent=i})))}))})),e.on("SetContent",(function(){var n=t("pre").filter(u.trimArg(u.isCodeSample)).filter((function(e,t){return"false"!==t.contentEditable}));n.length&&e.undoManager.transact((function(){n.each((function(n,r){t(r).find("br").each((function(t,n){n.parentNode.replaceChild(e.getDoc().createTextNode("\n"),n)})),r.contentEditable="false",r.innerHTML=e.dom.encode(r.textContent),a.highlightElement(r),r.className=t.trim(r.className)}))}))}))},B={setup:R},$=function(e){var t=e.selection.getStart();return e.dom.is(t,"pre.language-markup")},F=function(e){e.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:function(){return j.open(e)},onSetup:function(t){var n=function(){t.setActive($(e))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}}),e.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:function(){return j.open(e)}})},z={register:F};function q(){t.add("codesample",(function(e){B.setup(e),z.register(e),N.register(e),e.on("dblclick",(function(t){u.isCodeSample(t.target)&&j.open(e)}))}))}q()})(window)},a965:function(e,t,n){},a9e3:function(e,t,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),l=n("c6b6"),u=n("7156"),c=n("c04e"),f=n("d039"),d=n("7c73"),h=n("241c").f,p=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",y=i[v],b=y.prototype,_=l(d(b))==v,w=function(e){var t,n,r,i,o,a,s,l,u=c(e,!1);if("string"==typeof u&&u.length>2)if(u=m(u),t=u.charCodeAt(0),43===t||45===t){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(o(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,O=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof O&&(_?f((function(){b.valueOf.call(n)})):l(n)!=v)?u(new y(w(t)),n,O):w(t)},S=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;S.length>C;C++)s(y,x=S[C])&&!s(O,x)&&g(O,x,p(y,x));O.prototype=b,b.constructor=O,a(i,v,O)}},aa47:function(e,t,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function r(e){return 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},r(e)}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 o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){return c(e)||f(e)||d()}function c(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 f(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Bt})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return kt}));var h="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),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=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 O(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 C(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function k(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||r&&e===n)return e;if(e===n)break}while(e=C(e))}return null}var E,A=/\s+/g;function T(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(A," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(A," ")}}function D(e,t,n){var r=e&&e.style;if(r){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 r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function M(e,t){var n="";if("string"===typeof e)n=e;else do{var r=D(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function I(){var e=document.scrollingElement;return e||document.documentElement}function j(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,u,c,f;if(e!==window&&e!==I()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!g))do{if(i&&i.getBoundingClientRect&&("none"!==D(i,"transform")||n&&"static"!==D(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(D(i,"border-top-width")),s-=d.left+parseInt(D(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=M(i||e),p=h&&h.a,m=h&&h.d;h&&(a/=m,s/=p,f/=p,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function L(e,t,n){var r=z(e,!0),i=j(e)[t];while(r){var o=j(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===I())break;r=z(r,!1)}return!1}function N(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Qe.ghost&&o[i]!==Qe.dragged&&k(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function R(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===D(n,"display")||t&&!S(n,t)))n=n.previousElementSibling;return n||null}function B(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 $(e){var t=0,n=0,r=I();if(e)do{var i=M(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function F(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function z(e,t){if(!e||!e.getBoundingClientRect)return I();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return I();if(r||t)return n;r=!0}}}while(n=n.parentNode);return I()}function q(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function U(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(!E){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),E=setTimeout((function(){E=void 0}),t)}}}function V(){clearTimeout(E),E=void 0}function W(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function K(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 G(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function Y(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(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"!==D(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:j(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=M(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(F(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=j(n),l=n.prevFromRect,u=n.prevToRect,c=e.rect,f=M(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&U(l,s)&&!U(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=J(c,l,u,r.options)),U(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!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),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){D(e,"transition",""),D(e,"transform","");var i=M(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,D(e,"transform","translate3d("+s+"px,"+l+"px,0)"),Q(e),D(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Q(e){return e.offsetWidth}function J(e,t,n,r){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))*r.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 r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,u=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[X],t){var y,b=t.options,_="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||g||m?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=i||n,y.clone=o,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=f,y.newDraggableIndex=d,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var w=a({},v,ne.getEventProperties(r,t));for(var x in w)y[x]=w[x];n&&n.dispatchEvent(y),b[_]&&b[_].call(t,y)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=l(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,a({dragEl:ae,parentEl:se,ghostEl:le,rootEl:ue,nextEl:ce,lastDownEl:fe,cloneEl:de,cloneHidden:he,dragStarted:ke,putSortable:be,activeSortable:Qe.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:ve,hideGhostForTarget:Ge,unhideGhostForTarget:Ye,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:be,cloneEl:de,targetEl:ae,rootEl:ue,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:ve},e))}var ae,se,le,ue,ce,fe,de,he,pe,ge,me,ve,ye,be,_e,we,xe,Oe,Se,Ce,ke,Ee,Ae,Te,De,Me=!1,Pe=!1,Ie=[],je=!1,Le=!1,Ne=[],Re=!1,Be=[],$e="undefined"!==typeof document,Fe=b,ze=m||g?"cssFloat":"float",qe=$e&&!_&&!b&&"draggable"in document.createElement("div"),Ue=function(){if($e){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=D(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=N(e,0,t),o=N(e,1,t),a=i&&D(i),s=o&&D(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+j(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+j(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(i&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[ze]||o&&"none"===n[ze]&&l+u>r)?"vertical":"horizontal"},Ve=function(e,t,n){var r=n?e.left:e.top,i=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 r===a||i===s||r+o/2===a+l/2},We=function(e,t){var n;return Ie.some((function(r){if(!R(r)){var i=j(r),o=r[X].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},Ke=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.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(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ge=function(){!Ue&&le&&D(le,"display","none")},Ye=function(){!Ue&&le&&D(le,"display","")};$e&&document.addEventListener("click",(function(e){if(Pe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Pe=!1,!1}),!0);var Xe=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);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 r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ke(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&qe,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)),Ie.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,r,i,o,a,s){var l,u,c=e[X],f=c.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=r,l.related=i||t,l.relatedRect=o||j(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function tt(e){e.draggable=!1}function nt(){Re=!1}function rt(e,t,n){var r=j(R(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Te<u*i){if(!je&&(1===Ae?l>c+u*o/2:l<f-u*o/2)&&(je=!0),je)d=!0;else if(1===Ae?l<c+Te:l>f-Te)return-Ae}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return ot(t);return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function ot(e){return B(ae)<B(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Be.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Be.push(r)}}function lt(e){return setTimeout(e,0)}function ut(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ee=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,r=this.options,i=r.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,u=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!l.isContentEditable&&(s=k(s,r.draggable,n,!1),(!s||!s.animated)&&fe!==s)){if(pe=B(s),me=B(s,r.draggable),"function"===typeof u){if(u.call(this,e,s,this))return oe({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=k(l,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),u))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!k(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var l=j(n);if(ue=o,ae=n,se=ae.parentNode,ce=ae.nextSibling,fe=n,ye=a.group,Qe.dragged=ae,_e={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=_e.clientX-l.left,Ce=_e.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Qe.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),T(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){P(ae,e.trim(),tt)})),x(s,"dragover",Xe),x(s,"mousemove",Xe),x(s,"touchmove",Xe),x(s,"mouseup",i._onDrop),x(s,"touchend",i._onDrop),x(s,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(m||g))r();else{if(Qe.eventCanceled)return void this._onDrop();x(s,"mouseup",i._disableDelayedDrag),x(s,"touchend",i._disableDelayedDrag),x(s,"touchcancel",i._disableDelayedDrag),x(s,"mousemove",i._delayedDragTouchMoveHandler),x(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,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;O(e,"mouseup",this._disableDelayedDrag),O(e,"touchend",this._disableDelayedDrag),O(e,"touchcancel",this._disableDelayedDrag),O(e,"mousemove",this._delayedDragTouchMoveHandler),O(e,"touchmove",this._delayedDragTouchMoveHandler),O(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(ue,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Me=!1,ue&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&x(document,"dragover",Ze);var n=this.options;!e&&T(ae,n.dragClass,!1),T(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,Ge();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,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=le&&M(le,!0),a=le&&o&&o.a,s=le&&o&&o.d,l=Fe&&De&&$(De),u=(i.clientX-_e.clientX+r.x)/(a||1)+(l?l[0]-Ne[0]:0)/(a||1),c=(i.clientY-_e.clientY+r.y)/(s||1)+(l?l[1]-Ne[1]:0)/(s||1);if(!Qe.active&&!Me){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(le){o?(o.e+=u-(xe||0),o.f+=c-(Oe||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");D(le,"webkitTransform",f),D(le,"mozTransform",f),D(le,"msTransform",f),D(le,"transform",f),xe=u,Oe=c,we=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ue,t=j(ae,!0,Fe,!0,e),n=this.options;if(Fe){De=e;while("static"===D(De,"position")&&"none"===D(De,"transform")&&De!==document)De=De.parentNode;De!==document.body&&De!==document.documentElement?(De===document&&(De=I()),t.top+=De.scrollTop,t.left+=De.scrollLeft):De=I(),Ne=$(De)}le=ae.cloneNode(!0),T(le,n.ghostClass,!1),T(le,n.fallbackClass,!0),T(le,n.dragClass,!0),D(le,"transition",""),D(le,"transform",""),D(le,"box-sizing","border-box"),D(le,"margin",0),D(le,"top",t.top),D(le,"left",t.left),D(le,"width",t.width),D(le,"height",t.height),D(le,"opacity","0.8"),D(le,"position",Fe?"absolute":"fixed"),D(le,"zIndex","100000"),D(le,"pointerEvents","none"),Qe.ghost=le,e.appendChild(le),D(le,"transform-origin",Se/parseInt(le.style.width)*100+"% "+Ce/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(ie("setupClone",this),Qe.eventCanceled||(de=K(ae),de.draggable=!1,de.style["will-change"]="",this._hideClone(),T(de,this.options.chosenClass,!1),Qe.clone=de),n.cloneId=lt((function(){ie("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||ue.insertBefore(de,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&T(ae,i.dragClass,!0),t?(Pe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(O(document,"mouseup",n._onDrop),O(document,"touchend",n._onDrop),O(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),x(document,"drop",n),D(ae,"transform","translateZ(0)")),Me=!0,n._dragStartId=lt(n._dragStarted.bind(n,t,e)),x(document,"selectstart",n),ke=!0,y&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,l=this.options,u=l.group,c=Qe.active,f=ye===u,d=l.sort,h=be||c,p=this,g=!1;if(!Re){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=k(s,l.draggable,o,!0),P("dragOver"),Qe.eventCanceled)return g;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return N(!1);if(Pe=!1,c&&!l.disabled&&(f?d||(r=!ue.contains(ae)):be===this||(this.lastPutMode=ye.checkPull(this,c,ae,e))&&u.checkPut(this,c,ae,e))){if(i="vertical"===this._getDirection(e,s),t=j(ae),P("dragOverValid"),Qe.eventCanceled)return g;if(r)return se=ue,I(),this._hideClone(),P("revert"),Qe.eventCanceled||(ce?ue.insertBefore(ae,ce):ue.appendChild(ae)),N(!0);var m=R(o,l.draggable);if(!m||rt(e,i,this)&&!m.animated){if(m===ae)return N(!1);if(m&&o===e.target&&(s=m),s&&(n=j(s)),!1!==et(ue,o,ae,t,s,n,e,!!s))return I(),o.appendChild(ae),se=o,$(),N(!0)}else if(s.parentNode===o){n=j(s);var v,y,b=0,_=ae.parentNode!==o,w=!Ve(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),x=i?"top":"left",O=L(s,"top","top")||L(ae,"top","top"),S=O?O.scrollTop:void 0;if(Ee!==s&&(v=n[x],je=!1,Le=!w&&l.invertSwap||_),b=it(e,s,n,i,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Le,Ee===s),0!==b){var C=B(ae);do{C-=b,y=se.children[C]}while(y&&("none"===D(y,"display")||y===le))}if(0===b||y===s)return N(!1);Ee=s,Ae=b;var E=s.nextElementSibling,A=!1;A=1===b;var M=et(ue,o,ae,t,s,n,e,A);if(!1!==M)return 1!==M&&-1!==M||(A=1===M),Re=!0,setTimeout(nt,30),I(),A&&!E?o.appendChild(ae):s.parentNode.insertBefore(ae,A?E:s),O&&W(O,0,S-O.scrollTop),se=ae.parentNode,void 0===v||Le||(Te=Math.abs(v-j(s)[x])),$(),N(!0)}if(o.contains(ae))return N(!1)}return!1}function P(l,u){ie(l,p,a({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:s,completed:N,onMove:function(n,r){return et(ue,o,ae,t,n,j(n),e,r)},changed:$},u))}function I(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function N(t){return P("dragOverCompleted",{insertion:t}),t&&(f?c._hideClone():c._showClone(p),p!==h&&(T(ae,be?be.options.ghostClass:c.options.ghostClass,!1),T(ae,l.ghostClass,!0)),be!==p&&p!==Qe.active?be=p:p===Qe.active&&be&&(be=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Ee=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 $(){ge=B(ae),ve=B(ae,l.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:ge,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Xe),O(document,"mousemove",Xe),O(document,"touchmove",Xe)},_offUpEvents:function(){var e=this.el.ownerDocument;O(e,"mouseup",this._onDrop),O(e,"touchend",this._onDrop),O(e,"pointerup",this._onDrop),O(e,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ge=B(ae),ve=B(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,ge=B(ae),ve=B(ae,n.draggable),Qe.eventCanceled||(Me=!1,Le=!1,je=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ut(this.cloneId),ut(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&D(document.body,"user-select",""),D(ae,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ue===se||be&&"clone"!==be.lastPutMode)&&de&&de.parentNode&&de.parentNode.removeChild(de),ae&&(this.nativeDraggable&&O(ae,"dragend",this),tt(ae),ae.style["will-change"]="",ke&&!Me&&T(ae,be?be.options.ghostClass:this.options.ghostClass,!1),T(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ue!==se?(ge>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.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(){ie("nulling",this),ue=ae=se=le=ce=de=fe=he=_e=we=ke=ge=ve=pe=me=Ee=Ae=be=ye=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,Be.forEach((function(e){e.checked=!0})),Be.length=xe=Oe=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,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],k(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,r){var i=n.children[r];k(i,this.options.draggable,n,!1)&&(t[e]=i)}),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 k(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Ke(n)},destroy:function(){ie("destroy",this);var e=this.el;e[X]=null,O(e,"mousedown",this._onTapStart),O(e,"touchstart",this._onTapStart),O(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(e,"dragover",this),O(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ie.splice(Ie.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ie("hideClone",this),Qe.eventCanceled)return;D(de,"display","none"),this.options.removeCloneOnHide&&de.parentNode&&de.parentNode.removeChild(de),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ie("showClone",this),Qe.eventCanceled)return;ue.contains(ae)&&!this.options.group.revertClone?ue.insertBefore(de,ae):ce?ue.insertBefore(de,ce):ue.appendChild(de),this.options.group.revertClone&&this.animate(ae,de),D(de,"display",""),he=!1}}else this._hideClone()}},$e&&x(document,"touchmove",(function(e){(Qe.active||Me)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:x,off:O,css:D,find:P,is:function(e,t){return!!k(e,t,e,!1)},extend:q,throttle:H,closest:k,toggleClass:T,clone:K,index:B,nextTick:lt,cancelNextTick:ut,detectDirection:He,getChild:N},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=h;var ct,ft,dt,ht,pt,gt,mt=[],vt=!1;function yt(){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?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),_t(),bt(),V()},nulling:function(){pt=ft=ct=vt=gt=dt=ht=null,mt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(pt=e,t||m||g||y){xt(e,this.options,o,t);var a=z(o,!0);!vt||gt&&r===dt&&i===ht||(gt&&_t(),gt=setInterval((function(){var o=z(document.elementFromPoint(r,i),!0);o!==a&&(a=o,bt()),xt(e,n.options,o,t)}),10),dt=r,ht=i)}else{if(!this.options.bubbleScroll||z(o,!0)===I())return void bt();xt(e,this.options,z(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){mt.forEach((function(e){clearInterval(e.pid)})),mt=[]}function _t(){clearInterval(gt)}var wt,xt=H((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,u=I(),c=!1;ft!==n&&(ft=n,bt(),ct=t.scroll,i=t.scrollFn,!0===ct&&(ct=z(n,!0)));var f=0,d=ct;do{var h=d,p=j(h),g=p.top,m=p.bottom,v=p.left,y=p.right,b=p.width,_=p.height,w=void 0,x=void 0,O=h.scrollWidth,S=h.scrollHeight,C=D(h),k=h.scrollLeft,E=h.scrollTop;h===u?(w=b<O&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),x=_<S&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(w=b<O&&("auto"===C.overflowX||"scroll"===C.overflowX),x=_<S&&("auto"===C.overflowY||"scroll"===C.overflowY));var A=w&&(Math.abs(y-o)<=s&&k+b<O)-(Math.abs(v-o)<=s&&!!k),T=x&&(Math.abs(m-a)<=s&&E+_<S)-(Math.abs(g-a)<=s&&!!E);if(!mt[f])for(var M=0;M<=f;M++)mt[M]||(mt[M]={});mt[f].vx==A&&mt[f].vy==T&&mt[f].el===h||(mt[f].el=h,mt[f].vx=A,mt[f].vy=T,clearInterval(mt[f].pid),0==A&&0==T||(c=!0,mt[f].pid=setInterval(function(){r&&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 i&&"continue"!==i.call(Qe.dragged.parentNode[X],n,t,e,pt,mt[this.layer].el)||W(mt[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==u&&(d=z(d,!1)));vt=c}}),30),Ot=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function St(){}function Ct(){}function kt(){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,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var u=wt;!1!==r(n)?(T(n,l.swapClass,!0),wt=n):wt=null,u&&u!==wt&&T(u,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;wt&&T(wt,o.swapClass,!1),wt&&(o.swap||n&&n.options.swap)&&r!==wt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Et(r,wt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){wt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:wt}}})}function Et(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=B(e),r=B(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}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 r=N(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ot},o(St,{pluginName:"revertOnSpill"}),Ct.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ot},o(Ct,{pluginName:"removeOnSpill"});var At,Tt,Dt,Mt,Pt,It=[],jt=[],Lt=!1,Nt=!1,Rt=!1;function Bt(){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 r="";It.length&&Tt===e?It.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Dt=t},delayEnded:function(){this.isMultiDrag=~It.indexOf(Dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<It.length;r++)jt.push(K(It[r])),jt[r].sortableIndex=It[r].sortableIndex,jt[r].draggable=!1,jt[r].style["will-change"]="",T(jt[r],this.options.selectedClass,!1),It[r]===Dt&&T(jt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||It.length&&Tt===t&&(Ft(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Ft(!1,n),jt.forEach((function(e){D(e,"display","")})),t(),Pt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(jt.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Pt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Tt&&Tt.multiDrag._deselectMultiDrag(),It.forEach((function(e){e.sortableIndex=B(e)})),It=It.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Rt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){It.forEach((function(e){e!==Dt&&D(e,"position","absolute")}));var r=j(Dt,!1,!0,!0);It.forEach((function(e){e!==Dt&&G(e,r)})),Nt=!0,Lt=!0}n.animateAll((function(){Nt=!1,Lt=!1,t.options.animation&&It.forEach((function(e){Y(e)})),t.options.sort&&zt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Nt&&~It.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;It.length>1&&(It.forEach((function(e){r.addAnimationState({target:e,rect:Nt?j(e):i}),Y(e),e.fromRect=i,t.removeAnimationState(e)})),Nt=!1,$t(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Lt=!1,s.animation&&It.length>1&&(Nt||!n&&!i.options.sort&&!a)){var l=j(Dt,!1,!0,!0);It.forEach((function(e){e!==Dt&&(G(e,l),o.appendChild(e))})),Nt=!0}if(!n)if(Nt||zt(),It.length>1){var u=Pt;i._showClone(t),i.options.animation&&!Pt&&u&&jt.forEach((function(e){i.addAnimationState({target:e,rect:Mt}),e.fromRect=Mt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(It.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Mt=o({},t);var i=M(Dt,!0);Mt.top-=i.f,Mt.left-=i.e}},dragOverAnimationComplete:function(){Nt&&(Nt=!1,zt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var u=this.options,c=r.children;if(!Rt)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(Dt,u.selectedClass,!~It.indexOf(Dt)),~It.indexOf(Dt))It.splice(It.indexOf(Dt),1),At=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:Dt,originalEvt:t});else{if(It.push(Dt),re({sortable:i,rootEl:n,name:"select",targetEl:Dt,originalEvt:t}),t.shiftKey&&At&&i.el.contains(At)){var f,d,h=B(At),p=B(Dt);if(~h&&~p&&h!==p)for(p>h?(d=h,f=p):(d=p,f=h+1);d<f;d++)~It.indexOf(c[d])||(T(c[d],u.selectedClass,!0),It.push(c[d]),re({sortable:i,rootEl:n,name:"select",targetEl:c[d],originalEvt:t}))}else At=Dt;Tt=l}if(Rt&&this.isMultiDrag){if((r[X].options.sort||r!==n)&&It.length>1){var g=j(Dt),m=B(Dt,":not(."+this.options.selectedClass+")");if(!Lt&&u.animation&&(Dt.thisAnimationDuration=null),l.captureAnimationState(),!Lt&&(u.animation&&(Dt.fromRect=g,It.forEach((function(e){if(e.thisAnimationDuration=null,e!==Dt){var t=Nt?j(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),zt(),It.forEach((function(e){c[m]?r.insertBefore(e,c[m]):r.appendChild(e),m++})),a===B(Dt))){var v=!1;It.forEach((function(e){e.sortableIndex===B(e)||(v=!0)})),v&&o("update")}It.forEach((function(e){Y(e)})),l.animateAll()}Tt=l}(n===r||s&&"clone"!==s.lastPutMode)&&jt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Rt=!1,jt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),O(document,"pointerup",this._deselectMultiDrag),O(document,"mouseup",this._deselectMultiDrag),O(document,"touchend",this._deselectMultiDrag),O(document,"keydown",this._checkKeyDown),O(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Rt||!Rt)&&Tt===this.sortable&&(!e||!k(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(It.length){var t=It[0];T(t,this.options.selectedClass,!1),It.shift(),re({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&&!~It.indexOf(e)&&(Tt&&Tt!==t&&(Tt.multiDrag._deselectMultiDrag(),Tt=t),T(e,t.options.selectedClass,!0),It.push(e))},deselect:function(e){var t=e.parentNode[X],n=It.indexOf(e);t&&t.options.multiDrag&&~n&&(T(e,t.options.selectedClass,!1),It.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return It.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Nt&&r!==Dt?-1:Nt?B(r,":not(."+e.options.selectedClass+")"):B(r),n.push({multiDragElement:r,index:i})})),{items:u(It),clones:[].concat(jt),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 $t(e,t){It.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Ft(e,t){jt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function zt(){It.forEach((function(e){e!==Dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new yt),Qe.mount(Ct,St),t["default"]=Qe},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ac0f:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("401b"),a=n("4a3f"),s=[],l=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 u(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?a["b"]:a["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?a["b"]:a["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?a["i"]:a["h"])(e.x1,e.cpx1,e.x2,t),(n?a["i"]:a["h"])(e.y1,e.cpy1,e.y2,t)]}var c=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.cpx1,u=t.cpy1,c=t.cpx2,f=t.cpy2,d=t.percent;0!==d&&(e.moveTo(n,r),null==c||null==f?(d<1&&(Object(a["n"])(n,l,i,d,s),l=s[1],i=s[2],Object(a["n"])(r,u,o,d,s),u=s[1],o=s[2]),e.quadraticCurveTo(l,u,i,o)):(d<1&&(Object(a["g"])(n,l,c,i,d,s),l=s[1],c=s[2],i=s[3],Object(a["g"])(r,u,f,o,d,s),u=s[1],f=s[2],o=s[3]),e.bezierCurveTo(l,u,c,f,i,o)))},t.prototype.pointAt=function(e){return u(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=u(this.shape,e,!0);return o["normalize"](t,t)},t}(i["b"]);c.prototype.type="bezier-curve",t["a"]=c},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(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}},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a38e");function i(e,t,n){return(t=Object(r["a"])(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae40:function(e,t,n){var r=n("83ab"),i=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],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:l,f=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,c,f)}))}},ae69:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(i["b"]);a.prototype.type="ellipse",t["a"]=a},ae93:function(e,t,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),l=n("5135"),u=n("b622"),c=n("c430"),f=u("iterator"),d=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):d=!0),void 0==r&&(r={}),c||l(r,f)||s(r,f,h),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},af03:function(e,t,n){var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},af93:function(e,t,n){var r=n("23e7"),i=n("861d"),o=n("f183").onFreeze,a=n("bb2f"),s=n("d039"),l=Object.seal,u=s((function(){l(1)}));r({target:"Object",stat:!0,forced:u,sham:!a},{seal:function(e){return l&&i(e)?l(o(e)):e}})},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},b121:function(e,t,n){!function(t,r){e.exports=r(n("cb23"))}(self,e=>(()=>{"use strict";var t={857:t=>{t.exports=e}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{default:()=>j});var e=r(857);function t(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:void 0===t?void 0:t.key}}(0,e.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,e.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});const n=Array.isArray;function o(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function a(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r];if("string"==typeof e)continue;const n=e.data;void 0!==n&&a(n,e.children,e.sel)}}function s(e,r,i){let s,l,u,c={};if(void 0!==i?(null!==r&&(c=r),n(i)?s=i:o(i)?l=i.toString():i&&i.sel&&(s=[i])):null!=r&&(n(r)?s=r:o(r)?l=r.toString():r&&r.sel?s=[r]:c=r),void 0!==s)for(u=0;u<s.length;++u)o(s[u])&&(s[u]=t(void 0,void 0,void 0,s[u],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||a(c,s,e),t(e,c,s,l,void 0)}const l={type:"attachment",renderElem:function(t,n,r){var i=r.isDisabled(),o=e.DomEditor.isNodeSelected(r,t),a=t,l=a.fileName,u=void 0===l?"":l,c=a.link,f=void 0===c?"":c;return s("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:o&&!i?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:i?"pointer":"inherit"},on:{click:function(){i&&f&&window.open(f,"_blank")}}},[s("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),u])}};function u(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function c(e={},t={}){Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:u(t[n])&&u(e[n])&&Object.keys(t[n]).length>0&&c(e[n],t[n])})}const f={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function d(){const e="undefined"!=typeof document?document:{};return c(e,f),e}const h={document:f,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function p(){const e="undefined"!=typeof window?window:{};return c(e,h),e}class g extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function m(e,t){const n=p(),r=d();let i=[];if(!t&&e instanceof g)return e;if(!e)return new g(i);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("<li")&&(e="ul"),0===n.indexOf("<tr")&&(e="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(e="tr"),0===n.indexOf("<tbody")&&(e="table"),0===n.indexOf("<option")&&(e="select");const t=r.createElement(e);t.innerHTML=n;for(let n=0;n<t.childNodes.length;n+=1)i.push(t.childNodes[n])}else i=function(e,t){if("string"!=typeof e)return[e];const n=[],r=t.querySelectorAll(e);for(let i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof g)return e;i=e}return new g(function(e){const t=[];for(let n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}function v(...e){let[t,n,r,i]=e;function o(e){const t=e.target;if(!t)return;const i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),m(t).is(n))r.apply(t,i);else{const e=m(t).parents();for(let t=0;t<e.length;t+=1)m(e[t]).is(n)&&r.apply(e[t],i)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&([t,r,i]=e,n=void 0),i||(i=!1);const s=t.split(" ");let l;for(let u=0;u<this.length;u+=1){const e=this[u];if(n)for(l=0;l<s.length;l+=1){const t=s[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:o}),e.addEventListener(t,o,i)}else for(l=0;l<s.length;l+=1){const t=s[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:a}),e.addEventListener(t,a,i)}}return this}function y(){for(let e=0;e<this.length;e+=1)this[e].style.display="none";return this}function b(...e){let t;const n=d();for(let r=0;r<e.length;r+=1){t=e[r];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const r=n.createElement("div");for(r.innerHTML=t;r.firstChild;)this[e].appendChild(r.firstChild)}else if(t instanceof g)for(let n=0;n<t.length;n+=1)this[e].appendChild(t[n]);else this[e].appendChild(t)}return this}m.fn=g.prototype;const _="resize scroll".split(" ");function w(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)_.indexOf(e)<0&&(e in this[t]?this[t][e]():m(this[t]).trigger(e));return this}return this.on(e,...t)}}const x=w("click"),O=(w("blur"),w("focus"),w("focusin"),w("focusout"),w("keyup"),w("keydown"),w("keypress"),w("submit"),w("change"),w("mousedown"),w("mousemove"),w("mouseup"),w("mouseenter"),w("mouseleave"),w("mouseout"),w("mouseover"),w("touchstart"),w("touchend"),w("touchmove"),w("resize"),w("scroll"),m);y&&(O.fn.hide=y),b&&(O.fn.append=b),x&&(O.fn.click=x),v&&(O.fn.on=v);const S=O;globalThis.Node,globalThis.Comment,globalThis.Element,globalThis.Text,globalThis.Range,globalThis.Selection,globalThis.StaticRange;var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},E=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function A(e){return e.getMenuConfig("uploadAttachment")}function T(e,t,n){if(t&&n){e.restoreSelection();var r={type:"attachment",fileName:t,link:n,children:[{text:""}]};e.insertNode(r),e.move(1);var i=A(e).onInsertedAttachment;i&&i(r)}}function D(t,n){return k(this,void 0,void 0,(function(){var r,i,o,a;return E(this,(function(s){switch(s.label){case 0:return r=function(t){var n=M.get(t);if(null!=n)return n;var r=A(t),i=r.onSuccess,o=r.onProgress,a=r.onFailed,s=r.customInsert,l=r.onError;return n=(0,e.createUploader)(C(C({},r),{onProgress:function(e){t.showProgressBar(e),o&&o(e)},onSuccess:function(e,n){if(s)s(n,e,(function(e,n){return T(t,e,n)}));else{var r=n.errno,o=void 0===r?1:r,l=n.data,u=void 0===l?{}:l;if(0!==o)return console.error("'".concat(e.name,"' upload failed"),n),void a(e,n);var c=u.url,f=void 0===c?"":c;T(t,e.name,f),i(e,n)}},onError:function(e,t,n){var r=e.name;console.error("'".concat(r," upload error"),t,n),l&&l(e,t,n)}})),M.set(t,n),n}(t),i=n.name,o=n.type,a=n.size,r.addFile({name:i,type:o,size:a,data:n}),[4,r.upload()];case 1:return s.sent(),[2]}}))}))}var M=new WeakMap;const P=function(){function t(){this.title=(0,e.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=void 0===r?[]:r,o=n.customBrowseAndUpload;if(o)o((function(t,n){return T(e,t,n)}));else{var a="";i.length>0&&(a='accept="'.concat(i.join(", "),'"'));var s=S("body"),l=S('<input type="file" '.concat(a," multiple/>"));l.hide(),s.append(l),l.click(),l.on("change",(function(){var t=l[0].files;!function(e,t){var n,r;k(this,void 0,void 0,(function(){var i,o,a,s,l,u;return E(this,(function(c){switch(c.label){case 0:if(null==t)return[2];i=Array.prototype.slice.call(t),o=A(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(i),c.label=2;case 2:return[4,a.next()];case 3:return(s=c.sent()).done?[3,8]:(l=s.value,o?[4,o(l,(function(t,n){return T(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,D(e,l)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return u=c.sent(),n={error:u},[3,15];case 10:return c.trys.push([10,,13,14]),s&&!s.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(e.SlateRange.isExpanded(n))return!0;var r=e.DomEditor.getSelectedElems(t);return!!r.some((function(e){return t.isVoid(e)}))||!!r.some((function(t){return"pre"===e.DomEditor.getNodeType(t)}))},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadAttachment")},t}(),I=function(){function t(){this.title=(0,e.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){var t=this.getSelectedElem(e);return null==t?"":t.link},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,t){t&&"string"==typeof t&&window.open(t,"_blank")},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||!!e.SlateRange.isExpanded(n)||null==this.getSelectedElem(t)},t.prototype.getSelectedElem=function(t){var n=e.DomEditor.getSelectedNodeByType(t,"attachment");return null==n?null:n},t}(),j={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,i=t;return i.isInline=function(t){return"attachment"===e.DomEditor.getNodeType(t)||n(t)},i.isVoid=function(t){return"attachment"===e.DomEditor.getNodeType(t)||r(t)},i},renderElems:[l],elemsToHtml:[{type:"attachment",elemToHtml:function(e,t){var n=e,r=n.link,i=void 0===r?"":r,o=n.fileName,a=void 0===o?"":o;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(i,'" download="').concat(a,'">').concat(a,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(e,t,n){return{type:"attachment",link:e.getAttribute("href")||"",fileName:e.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new P},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},onInsertedAttachment:function(e){}}},{key:"downloadAttachment",factory:function(){return new I}}]}})(),i})())},b12f:function(e,t,n){"use strict";var r=n("2dc5"),i=n("8918"),o=n("625e"),a=function(){function e(){this.group=new r["a"],this.uid=i["c"]("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o["b"](a),o["c"](a),t["a"]=a},b1f8:function(e,t,n){"use strict"},b311:function(e,t,n){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return P}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(e){try{return document.execCommand(e)}catch(t){return!1}}var c=function(e){var t=l()(e);return u("cut"),t},f=c;function d(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}var h=function(e,t){var n=d(e);t.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=h(e.value,t):(n=l()(e),u("copy")),n},g=p;function m(e){return m="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},m(e)}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?f(i):g(i,{container:r}):void 0},y=v;function b(e){return b="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},b(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function O(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){var t=A();return function(){var n,r=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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 T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function D(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var M=function(e){O(n,e);var t=C(n);function n(e,r){var i;return _(this,n),i=t.call(this),i.resolveOptions(r),i.listenClick(e),i}return x(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===b(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=a()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=y({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return D("action",e)}},{key:"defaultTarget",value:function(e){var t=D("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return D("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(e,t)}},{key:"cut",value:function(e){return f(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(i()),P=M},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var r=n(879),i=n(438);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return a(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return l(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function l(e,t,n){return i(document.body,e,t,n)}e.exports=o},817:function(e){function t(e){var t;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 r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},b313:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},b362:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("4a3f"),i=n("6d8b"),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(e){var t=e&&o.exec(e);if(t){var n=t[1].split(","),a=+Object(i["trim"])(n[0]),s=+Object(i["trim"])(n[1]),l=+Object(i["trim"])(n[2]),u=+Object(i["trim"])(n[3]);if(isNaN(a+s+l+u))return;var c=[];return function(e){return e<=0?0:e>=1?1:Object(r["f"])(0,a,l,1,e,c)&&Object(r["a"])(0,s,u,1,c[0])}}}},b367:function(e,t,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b3c1:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=Math.round(9*Math.random()),i="function"===typeof Object.defineProperty,o=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return i?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}(),a=o,s=n("d51b"),l=n("6d8b"),u=n("3842"),c=n("a15a"),f=n("5210"),d=n("726e"),h=new a,p=new s["a"](100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function m(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&h["delete"](e);var o=h.get(e);if(o)return o;var a=Object(l["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 m(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,h.set(e,s),e.dirty=!1,s;function m(e){for(var t,o=[n],s=!0,h=0;h<g.length;++h){var m=a[g[h]];if(null!=m&&!Object(l["isArray"])(m)&&!Object(l["isString"])(m)&&!Object(l["isNumber"])(m)&&"boolean"!==typeof m){s=!1;break}o.push(m)}if(s){t=o.join(",")+(i?"-svg":"");var x=p.get(t);x&&(i?e.svgElement=x:e.image=x)}var O,S=y(a.dashArrayX),C=b(a.dashArrayY),k=v(a.symbol),E=_(S),A=w(C),T=!i&&d["d"].createCanvas(),D=i&&{tag:"g",attrs:{},key:"dcl",children:[]},M=P();function P(){for(var e=1,t=0,n=E.length;t<n;++t)e=Object(u["d"])(e,E[t]);var r=1;for(t=0,n=k.length;t<n;++t)r=Object(u["d"])(r,k[t].length);e*=r;var i=A*E.length*k.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function I(){O&&(O.clearRect(0,0,T.width,T.height),a.backgroundColor&&(O.fillStyle=a.backgroundColor,O.fillRect(0,0,T.width,T.height)));for(var e=0,t=0;t<C.length;++t)e+=C[t];if(!(e<=0)){var o=-A,s=0,l=0,u=0;while(o<M.height){if(s%2===0){var d=l/2%k.length,h=0,p=0,g=0;while(h<2*M.width){var m=0;for(t=0;t<S[u].length;++t)m+=S[u][t];if(m<=0)break;if(p%2===0){var v=.5*(1-a.symbolSize),y=h+S[u][p]*v,b=o+C[s]*v,_=S[u][p]*a.symbolSize,w=C[s]*a.symbolSize,x=g/2%k[d].length;E(y,b,_,w,k[d][x])}h+=S[u][p],++g,++p,p===S[u].length&&(p=0)}++u,u===S.length&&(u=0)}o+=C[s],++l,++s,s===C.length&&(s=0)}}function E(e,t,o,s,l){var u=i?1:n,d=Object(c["a"])(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var h=r.painter.renderOneToVNode(d);h&&D.children.push(h)}else Object(f["b"])(O,d)}}T&&(T.width=M.width*n,T.height=M.height*n,O=T.getContext("2d")),I(),s&&p.put(t,T||D),e.image=T,e.svgElement=D,e.svgWidth=M.width,e.svgHeight=M.height}}function v(e){if(!e||0===e.length)return[["rect"]];if(Object(l["isString"])(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(l["isString"])(e[n])){t=!1;break}if(t)return v([e]);var r=[];for(n=0;n<e.length;++n)Object(l["isString"])(e[n])?r.push([e[n]]):r.push(e[n]);return r}function y(e){if(!e||0===e.length)return[[0,0]];if(Object(l["isNumber"])(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Object(l["isNumber"])(e[r])){n=!1;break}if(n)return y([e]);var i=[];for(r=0;r<e.length;++r)if(Object(l["isNumber"])(e[r])){t=Math.ceil(e[r]);i.push([t,t])}else{t=Object(l["map"])(e[r],(function(e){return Math.ceil(e)}));t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function b(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(Object(l["isNumber"])(e)){var t=Math.ceil(e);return[t,t]}var n=Object(l["map"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function _(e){return Object(l["map"])(e,(function(e){return w(e)}))}function w(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+m)}var v=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=h&&"text"!==h&&"json"!==h?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},b575:function(e,t,n){var r,i,o,a,s,l,u,c,f=n("da84"),d=n("06cf").f,h=n("c6b6"),p=n("2cf49").set,g=n("1cdc"),m=f.MutationObserver||f.WebKitMutationObserver,v=f.process,y=f.Promise,b="process"==h(v),_=d(f,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;b&&(e=v.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:m&&!g?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),c=u.then,a=function(){c.call(u,r)}):a=function(){p.call(f,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),u=i("wks"),c=r.Symbol,f=l?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=f("Symbol."+e)),u[e]}},b636:function(e,t,n){var r=n("746f");r("asyncIterator")},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b65f:function(e,t,n){var r=n("23e7"),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?o:i)(e)}})},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("a691"),o=n("408a"),a=n("1148"),s=n("d039"),l=1..toFixed,u=Math.floor,c=function(e,t,n){return 0===t?n:t%2===1?c(e,t-1,n*e):c(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},d=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({})}));r({target:"Number",proto:!0,forced:d},{toFixed:function(e){var t,n,r,s,l=o(this),d=i(e),h=[0,0,0,0,0,0],p="",g="0",m=function(e,t){var n=-1,r=t;while(++n<6)r+=e*h[n],h[n]=r%1e7,r=u(r/1e7)},v=function(e){var t=6,n=0;while(--t>=0)n+=h[t],h[t]=u(n/e),n=n%e*1e7},y=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==h[e]){var n=String(h[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(d<0||d>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=f(l*c(2,69,1))-69,n=t<0?l*c(2,-t,1):l/c(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),r=d;while(r>=7)m(1e7,0),r-=7;m(c(10,r,1),0),r=t-1;while(r>=23)v(1<<23),r-=23;v(1<<r),m(1,1),v(2),g=y()}else m(0,n),m(1<<-t,0),g=y()+a.call("0",d);return d>0?(s=g.length,g=p+(s<=d?"0."+a.call("0",d-s)+g:g.slice(0,s-d)+"."+g.slice(s-d))):g=p+g,g}})},b727:function(e,t,n){var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,f=6==e,d=5==e||f;return function(h,p,g,m){for(var v,y,b=o(h),_=i(b),w=r(p,g,3),x=a(_.length),O=0,S=m||s,C=t?S(h,x):n?S(h,0):void 0;x>O;O++)if((d||O in _)&&(v=_[O],y=w(v,O,b),e))if(t)C[O]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return O;case 2:l.call(C,v)}else if(c)return!1;return f?-1:u||c?c:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},b76a:function(e,t,n){(function(t,r){e.exports=r(n("aa47"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,y,b,_){l(n,t,v);var w,x,O,S=function(e){if(!d&&e in A)return A[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)}},C=t+" Iterator",k=y==g,E=!1,A=e.prototype,T=A[f]||A[h]||y&&A[y],D=T||S(y),M=y?k?S("entries"):D:void 0,P="Array"==t&&A.entries||T;if(P&&(O=c(P.call(new e)),O!==Object.prototype&&O.next&&(u(O,C,!0),r||"function"==typeof O[f]||a(O,f,m))),k&&T&&T.name!==g&&(E=!0,D=function(){return T.call(this)}),r&&!_||!d&&!E&&A[f]||a(A,f,D),s[t]=D,s[C]=m,y)if(w={values:k?D:S(g),keys:b?D:S(p),entries:M},_)for(x in w)x in A||o(A,x,w[x]);else i(i.P+i.F*(d||E),t,w);return w}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(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 r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(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 r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,l=0;while(s>l)r.f(e,n=a[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=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 d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!f){var g=/./[d],m=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===l?h&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(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),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+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")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[l][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"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 r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(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 r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r: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 r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(e){var t,n,a,c,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),l&&(t=f[s]),a=i.call(f,e),l&&a&&(f[s]=f.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(e,t,n){var c,f,d,h,p=e&u.F,g=e&u.G,m=e&u.S,v=e&u.P,y=e&u.B,b=g?r:m?r[t]||(r[t]={}):(r[t]||{})[l],_=g?i:i[t]||(i[t]={}),w=_[l]||(_[l]={});for(c in g&&(n=t),n)f=!p&&b&&void 0!==b[c],d=(f?b:n)[c],h=y&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&u.U),_[c]!=d&&o(_,c,h),v&&w[c]!=d&&(w[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=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"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=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(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){var n=a(e),l=arguments.length,u=1,c=i.f,f=o.f;while(l>u){var d,h=s(arguments[u++]),p=c?r(h).concat(c(h)):r(h),g=p.length,m=0;while(g>m)f.call(h,d=p[m++])&&(n[d]=h[d])}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 r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(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 r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(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 r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)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 r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(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 r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=g(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}var b=[];while(1){var _=l(f,d);if(null===_)break;if(b.push(_),!v)break;var w=String(_[0]);""===w&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var x="",O=0,S=0;S<b.length;S++){_=b[S];for(var C=String(_[0]),k=u(c(a(_.index),d.length),0),E=[],A=1;A<_.length;A++)E.push(p(_[A]));var T=_.groups;if(h){var D=[C].concat(E,k,d);void 0!==T&&D.push(T);var M=String(t.apply(void 0,D))}else M=m(C,d,k,E,T,t);k>=O&&(x+=d.slice(O,k)+M,O=k+C.length)}return x+d.slice(O)}];function m(e,t,r,o,a,s){var l=r+e.length,u=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=f(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),f=u("toStringTag"),d=l.Array,h={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=i(h),g=0;g<p.length;g++){var m,v=p[g],y=h[v],b=a[v],_=b&&b.prototype;if(_&&(_[c]||s(_,c,d),_[f]||s(_,f,v),l[v]=d,y))for(m in r)_[m]||o(_,m,r[m],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},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 r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return l}));n("a481");function r(){return"undefined"!==typeof window?window.console:e.console}var i=r();function o(e){var t=Object.create(null);return function(n){var r=t[n];return r||(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 u(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).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(r){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=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,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(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 r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},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(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.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 r=n("5ca1");r(r.S+r.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 r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function i(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 u(e,t){return i(e)||o(e,t)||s(e,t)||l()}n("6762"),n("2fdb");function c(e){if(Array.isArray(e))return a(e)}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function d(){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 h(e){return c(e)||f(e)||s(e)||d()}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 y(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function b(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=h(t).map((function(e,t){return t>=o?i.length:i.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 O(e){if(!e||1!==e.length)return!1;var t=u(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 C(e,t,n){var r=0,i=0,o=S(t,n,"header");o&&(r=o.length,e=e?[].concat(h(o),h(e)):h(o));var a=S(t,n,"footer");return a&&(i=a.length,e=e?[].concat(h(e),h(a)):h(a)),{children:e,headerOffset:r,footerOffset:i}}function k(e,t){var n=null,r=function(e,t){n=v(n,e,t)},i=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var o=t.on,a=t.props,s=t.attrs;return r("on",o),r("props",a),Object.assign(n.attrs,s),n}var E=["Start","Add","Remove","Update","End"],A=["Choose","Unchoose","Sort","Filter","Clone"],T=["Move"].concat(E,A).map((function(e){return"on"+e})),D=null,M={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}},P={name:"draggable",inheritAttrs:!1,props:M,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=O(t);var n=C(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=k(this.$attrs,this.componentData);return e(this.getTag(),a,r)},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={};E.forEach((function(n){t["on"+n]=w.call(e,n)})),A.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}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new g.a(this.rootContainer,r),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===T.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=b(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=y(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=h(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,h(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,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.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),D=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 r={element:t,newIndex:n};this.emitChanges({added:r})}},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 r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=h(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(D);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);Object.assign(i,{futureIndex:o});var a=Object.assign({},e,{relatedContext:r,draggedContext:i});return n(a,t)},onDragEnd:function(){this.computeIndexes(),D=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",P);var I=P;t["default"]=I}})["default"]}))},b7d9:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var r=n("3842"),i=n("6d8b"),o=n("edae");function a(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(i["isNumber"])(e)||null==e||"-"===e||(e=+Object(r["p"])(e)),null==e||""===e?NaN:Number(e))}var s=Object(i["createHashMap"])({number:function(e){return parseFloat(e)},time:function(e){return+Object(r["p"])(e)},trim:function(e){return Object(i["isString"])(e)?Object(i["trim"])(e):e}});function l(e){return s.get(e)}var u={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}},c=function(){function e(e,t){if(!Object(i["isNumber"])(t)){var n="";0,Object(o["c"])(n)}this._opFn=u[e],this._rvalFloat=Object(r["o"])(t)}return e.prototype.evaluate=function(e){return Object(i["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(Object(r["o"])(e),this._rvalFloat)},e}(),f=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(i["isNumber"])(e)?e:Object(r["o"])(e),o=Object(i["isNumber"])(t)?t:Object(r["o"])(t),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=Object(i["isString"])(e),u=Object(i["isString"])(t);l&&(n=u?e:0),u&&(o=l?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),d=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r["o"])(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=Object(r["o"])(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function h(e,t){return"eq"===e||"ne"===e?new d("eq"===e,t):Object(i["hasOwn"])(u,e)?new c(e,t):null}},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},ba01:function(e,t,n){e.exports=n("051b")},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(e,t,n){e.exports=n("cee4")},be7f:function(e,t,n){(function(e){(function(t){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.util.VK"),i=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},o=function(e){return function(t){return i(t)===e}},a=o("string"),s=o("array"),l=o("boolean"),u=o("function"),c=function(e){var t=e.getParam("link_assume_external_targets",!1);return l(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},f=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},d=function(e){return e.getParam("link_list")},h=function(e){return e.getParam("default_link_target")},p=function(e){return e.getParam("target_list",!0)},g=function(e){return e.getParam("rel_list",[],"array")},m=function(e){return e.getParam("link_class_list",[],"array")},v=function(e){return e.getParam("link_title",!0,"boolean")},y=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},b=function(e){return e.getParam("link_quicklink",!1,"boolean")},_={assumeExternalTargets:c,hasContextToolbar:f,getLinkList:d,getDefaultLinkTarget:h,getTargetList:p,getRelList:g,getLinkClassList:m,shouldShowLinkTitle:v,allowUnsafeLinkTarget:y,useQuickLink:b},w=function(e,n){t.document.body.appendChild(e),e.dispatchEvent(n),t.document.body.removeChild(e)},x=function(e){var n=t.document.createElement("a");n.target="_blank",n.href=e,n.rel="noreferrer noopener";var r=t.document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,t.window,0,0,0,0,0,!1,!1,!1,!1,0,null),w(n,r)},O={open:x},S=function(){},C=function(e){return function(){return e}},k=C(!1),E=C(!0),A=function(){return T},T=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},r={fold:function(e,t){return e()},is:k,isSome:k,isNone:E,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:C(null),getOrUndefined:C(void 0),or:n,orThunk:t,map:A,each:S,bind:A,exists:k,forall:E,filter:A,equals:e,equals_:e,toArray:function(){return[]},toString:C("none()")};return Object.freeze&&Object.freeze(r),r}(),D=function(e){var t=C(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:E,isNone:k,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return D(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:T},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(k,(function(t){return n(e,t)}))}};return i},M=function(e){return null===e||void 0===e?T:D(e)},P={some:D,none:A,from:M},I=Array.prototype.slice,j=Array.prototype.indexOf,L=Array.prototype.push,N=function(e,t){return j.call(e,t)},R=function(e,t){return N(e,t)>-1},B=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},$=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},F=function(e,t,n){return $(e,(function(e){n=t(n,e)})),n},z=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},q=function(e,t){var n=B(e,t);return z(n)},U=(u(Array.from)&&Array.from,tinymce.util.Tools.resolve("tinymce.util.Tools")),H=function(e){return/^\w+:/i.test(e)},V=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},W=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return U.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===U.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},K=function(e){return e.replace(/\uFEFF/g,"")},G=function(e,t){return t=t||e.selection.getNode(),J(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},Y=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return K(n)},X=function(e){return e&&"A"===e.nodeName&&!!e.href},Z=function(e){return U.grep(e,X).length>0},Q=function(e){return!(/</.test(e)&&(!/^<a [^>]+>[^<]+<\/a>$/.test(e)||-1===e.indexOf("href=")))},J=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},ee=function(e){return F(["title","rel","class","target"],(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},te=function(e,t){return"http"!==t&&"https"!==t||H(e)?e:t+"://"+e},ne=function(e,t,n,r){n.each((function(e){t.hasOwnProperty("innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},re=function(e,t,n,r){J(t)?se(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},ie=function(e,t,n){e.undoManager.transact((function(){var r=e.selection.getNode(),i=G(e,r),o=ee(n);if(!(_.getRelList(e).length>0)&&!1===_.allowUnsafeLinkTarget(e)){var a=W(o.rel,"_blank"===o.target);o.rel=a||null}P.from(o.target).isNone()&&(o.target=_.getDefaultLinkTarget(e)),o.href=te(o.href,_.assumeExternalTargets(e)),n.href===t.href&&t.attach(),i?(e.focus(),ne(e,i,n.text,o)):re(e,r,n.text,o)}))},oe=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();if(J(t))ae(e,t);else{var n=e.dom.getParent(t,"a[href]",e.getBody());n&&e.dom.remove(n,!0)}e.focus()}))},ae=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},se=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},le={link:ie,unlink:oe,isLink:X,hasLinks:Z,getHref:V,isOnlyTextSelected:Q,getAnchorElement:G,getAnchorText:Y,applyRelTargetRules:W,hasProtocol:H},ue=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},ce=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return P.none()},fe=function(e){return a(e.value)?e.value:""},de=function(e,t){var n=[];return U.each(e,(function(e){var r=a(e.text)?e.text:a(e.title)?e.title:"";if(void 0!==e.menu);else{var i=t(e);n.push({text:r,value:i})}})),n},he=function(e){return void 0===e&&(e=fe),function(t){return P.from(t).map((function(t){return de(t,e)}))}},pe=function(e){return he(fe)(e)},ge=function(e,t){return function(n){return{name:e,type:"selectbox",label:t,items:n}}},me={sanitize:pe,sanitizeWith:he,createUi:ge,getValue:fe},ve=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return ve(n())};return{get:n,set:r,clone:i}},ye=function(e,t){return ce(t,(function(t){return P.some(t).filter((function(t){return t.value===e}))}))},be=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?ye(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:S}},text:o?e:t.text}})):P.none()},_e=function(e,t){return"link"===t?e.catalogs.link:"anchor"===t?e.catalogs.anchor:P.none()},we=function(e,t){var n=ve(e.text),r=function(e){if(n.get().length<=0){var t=void 0!==e.url.meta.text?e.url.meta.text:e.url.value;return P.some({text:t})}return P.none()},i=function(e,r){var i=_e(t,r.name).getOr([]);return be(n.get(),r.name,i,e)},o=function(e,t){return"url"===t.name?r(e()):R(["anchor","link"],t.name)?i(e(),t):"text"===t.name?(n.set(e().text),P.none()):P.none()};return{onChange:o}},xe={init:we,getDelta:be},Oe=function(){return Oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Oe.apply(this,arguments)},Se={},Ce={exports:Se};(function(t,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof t&&t.amd)t([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};t[s][0].call(f.exports,(function(e){var n=t[s][1][e];return o(n||e)}),f,f.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!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{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,f=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?f=c.concat(f):h=-1,f.length&&g())}function g(){if(!d){var e=l(p);d=!0;var t=f.length;while(t){c=f,f=[];while(++h<t)c&&c[h].run();h=-1,t=f.length}c=null,d=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}o.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];f.push(new m(e,t)),1!==f.length||d||l(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}l(t.promise,r)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,Se,Ce,void 0);var ke=Ce.exports.boltExport,Ee=function(e){var n=P.none(),r=[],i=function(e){return Ee((function(t){o((function(n){t(e(n))}))}))},o=function(e){s()?u(e):r.push(e)},a=function(e){n=P.some(e),l(r),r=[]},s=function(){return n.isSome()},l=function(e){$(e,u)},u=function(e){n.each((function(n){t.setTimeout((function(){e(n)}),0)}))};return e(a),{get:o,map:i,isReady:s}},Ae=function(e){return Ee((function(t){t(e)}))},Te={nu:Ee,pure:Ae},De=function(e){t.setTimeout((function(){throw e}),0)},Me=function(e){var t=function(t){e().then(t,De)},n=function(t){return Me((function(){return e().then(t)}))},r=function(t){return Me((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return Me((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return Te.nu(t)},a=function(){var t=null;return Me((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Pe=function(e){return Me((function(){return new ke(e)}))},Ie=function(e){return Me((function(){return ke.resolve(e)}))},je={nu:Pe,pure:Ie},Le=tinymce.util.Tools.resolve("tinymce.util.Delay"),Ne=function(e,t,n){var r=e.selection.getRng();Le.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Re=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("//")&&-1===t.indexOf("mailto:");return n?P.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return Oe(Oe({},e),{href:"mailto:"+t})}}):P.none()},Be=function(e){return function(t){var n=t.href,r=1===e&&!le.hasProtocol(n)||0===e&&/^\s*www[\.|\d\.]/i.test(n);return r?P.some({message:"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?",preprocess:function(e){return Oe(Oe({},e),{href:"http://"+n})}}):P.none()}},$e=function(e,t,n){return ce([Re,Be(t)],(function(e){return e(n)})).fold((function(){return je.pure(n)}),(function(t){return je.nu((function(r){Ne(e,t.message,(function(e){r(e?t.preprocess(n):n)}))}))}))},Fe={preprocess:$e},ze=function(e){var t=e.dom.select("a:not([href])"),n=q(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?P.some([{text:"None",value:""}].concat(n)):P.none()},qe={getAnchors:ze},Ue=function(e){var t=_.getLinkClassList(e);return t.length>0?me.sanitize(t):P.none()},He={getClasses:Ue},Ve=tinymce.util.Tools.resolve("tinymce.util.XHR"),We=function(e){try{return P.some(JSON.parse(e))}catch(t){return P.none()}},Ke=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=_.getLinkList(e);return je.nu((function(e){a(n)?Ve.send({url:n,success:function(t){return e(We(t))},error:function(t){return e(P.none())}}):u(n)?n((function(t){return e(P.some(t))})):e(P.from(n))})).map((function(e){return e.bind(me.sanitizeWith(t)).map((function(e){return e.length>0?[{text:"None",value:""}].concat(e):e}))}))},Ge={getLinks:Ke},Ye=function(e,t){var n=_.getRelList(e);if(n.length>0){var r=t.is("_blank"),i=!1===_.allowUnsafeLinkTarget(e),o=function(e){return le.applyRelTargetRules(me.getValue(e),r)},a=i?me.sanitizeWith(o):me.sanitize;return a(n)}return P.none()},Xe={getRels:Ye},Ze=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Qe=function(e){var t=_.getTargetList(e);return s(t)?me.sanitize(t).orThunk((function(){return P.some(Ze)})):!1===t?P.none():P.some(Ze)},Je={getTargets:Qe},et=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?P.some(r):P.none()},tt=function(e,t){var n=e.dom,r=le.isOnlyTextSelected(e.selection.getContent()),i=r?P.some(le.getAnchorText(e.selection,t)):P.none(),o=t?P.some(n.getAttrib(t,"href")):P.none(),a=t?P.from(n.getAttrib(t,"target")):P.none(),s=et(n,t,"rel"),l=et(n,t,"class"),u=et(n,t,"title");return{url:o,text:i,title:u,target:a,rel:s,linkClass:l}},nt=function(e,t){return Ge.getLinks(e).map((function(n){var r=tt(e,t);return{anchor:r,catalogs:{targets:Je.getTargets(e),rels:Xe.getRels(e,r.target),classes:He.getClasses(e),anchor:qe.getAnchors(e),link:n},optNode:P.from(t),flags:{titleEnabled:_.shouldShowLinkTitle(e)}}}))},rt={collect:nt},it=function(e,t,n){return function(r){var i=r.getData();if(!i.url.value)return le.unlink(e),void r.close();var o=function(e){return P.from(i[e]).filter((function(n){return!t.anchor[e].is(n)}))},a={href:i.url.value,text:o("text"),target:o("target"),rel:o("rel"),class:o("linkClass"),title:o("title")},s={href:i.url.value,attach:void 0!==i.url.meta&&i.url.meta.attach?i.url.meta.attach:function(){}};Fe.preprocess(e,n,a).get((function(t){le.link(e,s,t)})),r.close()}},ot=function(e){var t=le.getAnchorElement(e);return rt.collect(e,t)},at=function(e,t){return{url:{value:e.anchor.url.getOr(""),meta:{attach:function(){},text:e.anchor.url.fold((function(){return""}),(function(){return e.anchor.text.getOr("")})),original:{value:e.anchor.url.getOr("")}}},text:e.anchor.text.getOr(""),title:e.anchor.title.getOr(""),anchor:e.anchor.url.getOr(""),link:e.anchor.url.getOr(""),rel:e.anchor.rel.getOr(""),target:e.anchor.target.or(t).getOr(""),linkClass:e.anchor.linkClass.getOr("")}},st=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=P.from(_.getDefaultLinkTarget(n)),s=at(e,a),l=xe.init(s,e),u=e.catalogs,c={type:"panel",items:z([r,i,o,ue([u.anchor.map(me.createUi("anchor","Anchors")),u.rels.map(me.createUi("rel","Rel")),u.targets.map(me.createUi("target","Open link in...")),u.link.map(me.createUi("link","Link list")),u.classes.map(me.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:c,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;l.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},lt=function(e){var t=ot(e);t.map((function(t){var n=it(e,t,_.assumeExternalTargets(e));return st(t,n,e)})).get((function(t){e.windowManager.open(t)}))},ut={open:lt},ct=function(e,t){return e.dom.getParent(t,"a[href]")},ft=function(e){return ct(e,e.selection.getStart())},dt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},ht=function(e,t){if(t){var n=le.getHref(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else O.open(t.href)}},pt=function(e){return function(){ut.open(e)}},gt=function(e){return function(){ht(e,ft(e))}},mt=function(e){return function(t){var n,r,i;return!!(_.hasContextToolbar(e)&&le.isLink(t)&&(n=e.selection,r=n.getRng(),i=r.startContainer,3===i.nodeType&&n.isCollapsed()&&r.startOffset>0&&r.startOffset<i.data.length))}},vt=function(e){e.on("click",(function(t){var n=ct(e,t.target);n&&r.metaKeyPressed(t)&&(t.preventDefault(),ht(e,n))})),e.on("keydown",(function(t){var n=ft(e);n&&13===t.keyCode&&dt(t)&&(t.preventDefault(),ht(e,n))}))},yt=function(e){return function(t){var n=function(n){return t.setActive(!e.readonly&&!!le.getAnchorElement(e,n.element))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}},bt=function(e){return function(t){t.setDisabled(!le.hasLinks(e.dom.getParents(e.selection.getStart())));var n=function(e){return t.setDisabled(!le.hasLinks(e.parents))};return e.on("NodeChange",n),function(){return e.off("NodeChange",n)}}},_t={openDialog:pt,gotoSelectedLink:gt,leftClickedOnAHref:mt,setupGotoLinks:vt,toggleActiveState:yt,toggleEnabledState:bt},wt=function(e){e.addCommand("mceLink",(function(){_.useQuickLink(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):_t.openDialog(e)()}))},xt={register:wt},Ot=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},St={setup:Ot},Ct=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:_t.openDialog(e),onSetup:_t.toggleActiveState(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:_t.gotoSelectedLink(e),onSetup:_t.toggleEnabledState(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return le.unlink(e)},onSetup:_t.toggleEnabledState(e)})},kt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:_t.gotoSelectedLink(e),onSetup:_t.toggleEnabledState(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:_t.openDialog(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return le.unlink(e)},onSetup:_t.toggleEnabledState(e)})},Et=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return le.hasLinks(e.dom.getParents(r,"a"))?t:n}})},At=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!le.getAnchorElement(e,n)),function(){}};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:_t.toggleActiveState(e)},label:"Link",predicate:function(t){return!!le.getAnchorElement(e,t)&&_.hasContextToolbar(e)},initValue:function(){var t=le.getAnchorElement(e);return t?le.getHref(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!le.getAnchorElement(e,n)),_t.toggleActiveState(e)(t)},onAction:function(n){var r=le.getAnchorElement(e),i=n.getValue();if(r)e.dom.setAttrib(r,"href",i),t(e),n.hide();else{var o={href:i,attach:function(){}},a=le.isOnlyTextSelected(e.selection.getContent()),s=a?P.some(le.getAnchorText(e.selection,r)).filter((function(e){return e.length>0})).or(P.from(i)):P.none();le.link(e,o,{href:i,text:s,title:P.none(),rel:P.none(),target:P.none(),class:P.none()}),n.hide()}}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){le.unlink(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){_t.gotoSelectedLink(e)(),t.hide()}}]})},Tt={setupButtons:Ct,setupMenuItems:kt,setupContextMenu:Et,setupContextToolbars:At};function Dt(){n.add("link",(function(e){Tt.setupButtons(e),Tt.setupMenuItems(e),Tt.setupContextMenu(e),Tt.setupContextToolbars(e),_t.setupGotoLinks(e),xt.register(e),St.setup(e)}))}Dt()})(window)}).call(this,n("c8ba"))},bee2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("a38e");function i(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,Object(r["a"])(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},bf19:function(e,t,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},bf74:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},c098:function(e,t,n){e.exports=n("d4af")},c284:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},104:function(e,t,n){"use strict";n.r(t);var r=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()])},i=[];r._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,r,i,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},c345:function(e,t,n){"use strict";var r=n("c532"),i=["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?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532"),i=n("2444");e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},c430:function(e,t){e.exports=!1},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function u(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 f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return h(e)&&y(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function O(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)O(arguments[n],t);return e}function C(e,t,n){return O(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:c,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:x,forEach:O,merge:S,extend:C,trim:w,stripBOM:k}},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,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var i=!1,o=function(){i||(i=!0,t&&t.apply(null,arguments))};r?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},c5cc:function(e,t,n){"use strict";var r=n("428f"),i=n("1c0b"),o=n("825a"),a=n("7c73"),s=n("9112"),l=n("e2cc"),u=n("b622"),c=n("69f3"),f=c.set,d=c.get,h=u("toStringTag"),p=function(e){var t=d(this).iterator,n=t["return"];return void 0===n?{done:!0,value:e}:o(n.call(t,e))},g=function(e){var t=d(this).iterator,n=t["throw"];if(void 0===n)throw e;return n.call(t,e)};e.exports=function(e,t){var n=function(e){e.next=i(e.iterator.next),e.done=!1,f(this,e)};return n.prototype=l(a(r.Iterator.prototype),{next:function(){var t=d(this),n=t.done?void 0:e.apply(t,arguments);return{done:t.done,value:n}},return:p,throw:g}),t||s(n.prototype,h,"Generator"),n}},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a=n("ae40"),s="findIndex",l=!0,u=a(s);s in[]&&Array(1)[s]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!u},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},c7a2:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5");function o(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,f=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-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 a=n("9cf9"),s=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},u=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var u=Object(a["c"])(l,t,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=t.r,t=u}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?o(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i["b"]);u.prototype.type="rect";t["a"]=u},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("131a"),n("d3b7"),n("3ca3"),n("0643"),n("4e3e"),n("159b"),n("ddb0");var r=n("53ca");function i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var e,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",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),s=new P(r||[]);return a(o,"_invoke",{value:A(e,n,s)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function _(){}function w(){}var x={};f(x,l,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(I([])));S&&S!==n&&o.call(S,l)&&(x=S);var C=w.prototype=b.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,l){var u=h(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==Object(r["a"])(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function A(t,n,r){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var u=h(t,n,r);if("normal"===u.type){if(i=r.done?v:g,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=v,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator["return"]&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Object(r["a"])(t)+" is not iterable")}return _.prototype=w,a(C,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:_,configurable:!0}),_.displayName=f(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(E.prototype),f(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),f(C,c,"Generator"),f(C,l,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){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(!u)throw 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&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c901:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},ca72:function(e,t,n){"use strict";var r=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],i=function(e){return-1!==r.indexOf(e)},o=function(e,t,n){Object.keys(t).filter(i).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},a=function(e,t){var n,r=e.$props.modelEvents?e.$props.modelEvents:null,i=Array.isArray(r)?r.join(" "):r;e.$watch("value",(function(e,r){t&&"string"===typeof e&&e!==n&&e!==r&&(t.setContent(e),n=e)})),t.on(i||"change keyup undo redo",(function(){n=t.getContent(),e.$emit("input",n)}))},s=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||i),t.$listeners.input&&a(t,n),o(e,t.$listeners,n)},l=0,u=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return l++,e+"_"+n+l+String(t)},c=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},f=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},d=function(e,t){return f(e).concat(f(t))},h=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.addEventListener("load",r),i.src=n,t.head&&t.head.appendChild(i)},p=function(){return{listeners:[],scriptId:u("tiny-script"),scriptLoaded:!1}},g=function(e,t,n,r){e.scriptLoaded?r():(e.listeners.push(r),t.getElementById(e.scriptId)||h(e.scriptId,t,n,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},m=n("c4a9"),v={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)},b=p(),_=function(e,t,n){return e(n||"div",{attrs:{id:t}})},w=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},x=function(e){return function(){var t=y({},e.$props.init,{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:d(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return s(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});c(e.element)&&(e.element.style.visibility=""),Object(m["a"])().init(t)}},O={props:v,created:function(){this.elementId=this.$props.id||u("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==Object(m["a"])())x(this)();else if(this.element&&this.element.ownerDocument){var e=this.element.ownerDocument,t=this.$props.cloudChannel?this.$props.cloudChannel:"5",n=this.$props.apiKey?this.$props.apiKey:"no-api-key";g(b,e,"https://cdn.tiny.cloud/1/"+n+"/tinymce/"+t+"/tinymce.min.js",x(this))}},beforeDestroy:function(){null!==Object(m["a"])()&&Object(m["a"])().remove(this.editor)},render:function(e){return this.inlineEditor?_(e,this.elementId,this.$props.tagName):w(e,this.elementId)}};t["a"]=O},ca80:function(e,t,n){"use strict";var r=n("dce8"),i=[0,0],o=[0,0],a=new r["a"],s=new r["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r["a"];for(n=0;n<2;n++)this._axes[n]=new r["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),t)for(var u=0;u<4;u++)n[u].transform(t);r["a"].sub(i[0],n[1],n[0]),r["a"].sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,a,s,i,-1)&&(n=!1,i)||i||r["a"].copy(t,n?a:s),n},e.prototype._intersectCheckOneSide=function(e,t,n,a,s,l){for(var u=!0,c=0;c<2;c++){var f=this._axes[c];if(this._getProjMinMaxOnAxis(c,e._corners,i),this._getProjMinMaxOnAxis(c,t._corners,o),i[1]<o[0]||i[0]>o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-i[1]),h=Math.abs(i[0]-o[1]);Math.min(d,h)>a.len()&&(d<h?r["a"].scale(a,f,-d*l):r["a"].scale(a,f,h*l))}else if(n){d=Math.abs(o[0]-i[1]),h=Math.abs(i[0]-o[1]);Math.min(d,h)<n.len()&&(d<h?r["a"].scale(n,f,d*l):r["a"].scale(n,f,-h*l))}}return u},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();t["a"]=l},ca84:function(e,t,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(u,n)||u.push(n));return u}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb11:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("9cf9"),a={},s=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),l=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var l=Object(o["b"])(a,t,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var u=t.percent;0!==u&&(e.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),e.lineTo(i,s))},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}(i["b"]);l.prototype.type="line",t["a"]=l},cb23:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Boot",(function(){return eve})),n.d(t,"DomEditor",(function(){return nA})),n.d(t,"SlateEditor",(function(){return Pf})),n.d(t,"SlateElement",(function(){return kf})),n.d(t,"SlateLocation",(function(){return If})),n.d(t,"SlateNode",(function(){return Bf})),n.d(t,"SlatePath",(function(){return qf})),n.d(t,"SlatePoint",(function(){return Wf})),n.d(t,"SlateRange",(function(){return Xf})),n.d(t,"SlateText",(function(){return rd})),n.d(t,"SlateTransforms",(function(){return wd})),n.d(t,"Toolbar",(function(){return HP})),n.d(t,"createEditor",(function(){return lve})),n.d(t,"createToolbar",(function(){return uve})),n.d(t,"createUploader",(function(){return ZP})),n.d(t,"default",(function(){return cve})),n.d(t,"genModalButtonElems",(function(){return AP})),n.d(t,"genModalInputElems",(function(){return kP})),n.d(t,"genModalTextareaElems",(function(){return EP})),n.d(t,"i18nAddResources",(function(){return qI})),n.d(t,"i18nChangeLanguage",(function(){return UI})),n.d(t,"i18nGetResources",(function(){return HI})),n.d(t,"t",(function(){return VI}));var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var a,s,l=function(e){return e&&e.Math==Math&&e},u=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof r&&r)||function(){return this}()||Function("return this")(),c=Function.prototype,f=c.apply,d=c.bind,h=c.call,p="object"==typeof Reflect&&Reflect.apply||(d?h.bind(f):function(){return h.apply(f,arguments)}),g=Function.prototype,m=g.bind,v=g.call,y=m&&m.bind(v),b=m?function(e){return e&&y(v,e)}:function(e){return e&&function(){return v.apply(e,arguments)}},_=function(e){return"function"==typeof e},w=function(e){try{return!!e()}catch(e){return!0}},x=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=Function.prototype.call,S=O.bind?O.bind(O):function(){return O.apply(O,arguments)},C={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,E=k&&!C.call({1:2},1)?function(e){var t=k(this,e);return!!t&&t.enumerable}:C,A={f:E},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},D=b({}.toString),M=b("".slice),P=function(e){return M(D(e),8,-1)},I=u.Object,j=b("".split),L=w((function(){return!I("z").propertyIsEnumerable(0)}))?function(e){return"String"==P(e)?j(e,""):I(e)}:I,N=u.TypeError,R=function(e){if(null==e)throw N("Can't call method on "+e);return e},B=function(e){return L(R(e))},$=function(e){return"object"==typeof e?null!==e:_(e)},F={},z=function(e){return _(e)?e:void 0},q=function(e,t){return arguments.length<2?z(F[e])||z(u[e]):F[e]&&F[e][t]||u[e]&&u[e][t]},U=b({}.isPrototypeOf),H=q("navigator","userAgent")||"",V=u.process,W=u.Deno,K=V&&V.versions||W&&W.version,G=K&&K.v8;G&&(s=(a=G.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!s&&H&&(!(a=H.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=H.match(/Chrome\/(\d+)/))&&(s=+a[1]);var Y,X=s,Z=!!Object.getOwnPropertySymbols&&!w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&X&&X<41})),Q=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,J=u.Object,ee=Q?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return _(t)&&U(t.prototype,J(e))},te=u.String,ne=function(e){try{return te(e)}catch(e){return"Object"}},re=u.TypeError,ie=function(e){if(_(e))return e;throw re(ne(e)+" is not a function")},oe=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ae=u.TypeError,se=Object.defineProperty,le=u["__core-js_shared__"]||function(e,t){try{se(u,e,{value:t,configurable:!0,writable:!0})}catch(o){u[e]=t}return t}("__core-js_shared__",{}),ue=o((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ce=u.Object,fe=function(e){return ce(R(e))},de=b({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return de(fe(e),t)},pe=0,ge=Math.random(),me=b(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+me(++pe+ge,36)},ye=ue("wks"),be=u.Symbol,_e=be&&be.for,we=Q?be:be&&be.withoutSetter||ve,xe=function(e){if(!he(ye,e)||!Z&&"string"!=typeof ye[e]){var t="Symbol."+e;Z&&he(be,e)?ye[e]=be[e]:ye[e]=Q&&_e?_e(t):we(t)}return ye[e]},Oe=u.TypeError,Se=xe("toPrimitive"),Ce=function(e,t){if(!$(e)||ee(e))return e;var n,r=oe(e,Se);if(r){if(void 0===t&&(t="default"),n=S(r,e,t),!$(n)||ee(n))return n;throw Oe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_(n=e.toString)&&!$(r=S(n,e)))return r;if(_(n=e.valueOf)&&!$(r=S(n,e)))return r;if("string"!==t&&_(n=e.toString)&&!$(r=S(n,e)))return r;throw ae("Can't convert object to primitive value")}(e,t)},ke=function(e){var t=Ce(e,"string");return ee(t)?t:t+""},Ee=u.document,Ae=$(Ee)&&$(Ee.createElement),Te=function(e){return Ae?Ee.createElement(e):{}},De=!x&&!w((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Me=Object.getOwnPropertyDescriptor,Pe=x?Me:function(e,t){if(e=B(e),t=ke(t),De)try{return Me(e,t)}catch(e){}if(he(e,t))return T(!S(A.f,e,t),e[t])},Ie={f:Pe},je=/#|\.prototype\./,Le=function(e,t){var n=Re[Ne(e)];return n==$e||n!=Be&&(_(t)?w(t):!!t)},Ne=Le.normalize=function(e){return String(e).replace(je,".").toLowerCase()},Re=Le.data={},Be=Le.NATIVE="N",$e=Le.POLYFILL="P",Fe=Le,ze=b(b.bind),qe=function(e,t){return ie(e),void 0===t?e:ze?ze(e,t):function(){return e.apply(t,arguments)}},Ue=u.String,He=u.TypeError,Ve=function(e){if($(e))return e;throw He(Ue(e)+" is not an object")},We=u.TypeError,Ke=Object.defineProperty,Ge=x?Ke:function(e,t,n){if(Ve(e),t=ke(t),Ve(n),De)try{return Ke(e,t,n)}catch(e){}if("get"in n||"set"in n)throw We("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ye={f:Ge},Xe=x?function(e,t,n){return Ye.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},Ze=Ie.f,Qe=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return p(e,this,arguments)};return t.prototype=e.prototype,t},Je=function(e,t){var n,r,i,o,a,s,l,c,f=e.target,d=e.global,h=e.stat,p=e.proto,g=d?u:h?u[f]:(u[f]||{}).prototype,m=d?F:F[f]||Xe(F,f,{})[f],v=m.prototype;for(i in t)n=!Fe(d?i:f+(h?".":"#")+i,e.forced)&&g&&he(g,i),a=m[i],n&&(s=e.noTargetGet?(c=Ze(g,i))&&c.value:g[i]),o=n&&s?s:t[i],n&&typeof a==typeof o||(l=e.bind&&n?qe(o,u):e.wrap&&n?Qe(o):p&&_(o)?b(o):o,(e.sham||o&&o.sham||a&&a.sham)&&Xe(l,"sham",!0),Xe(m,i,l),p&&(he(F,r=f+"Prototype")||Xe(F,r,{}),Xe(F[r],i,o),e.real&&v&&!v[i]&&Xe(v,i,o)))},et=ue("keys"),tt=function(e){return et[e]||(et[e]=ve(e))},nt=!w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),rt=tt("IE_PROTO"),it=u.Object,ot=it.prototype,at=nt?it.getPrototypeOf:function(e){var t=fe(e);if(he(t,rt))return t[rt];var n=t.constructor;return _(n)&&t instanceof n?n.prototype:t instanceof it?ot:null},st=u.String,lt=u.TypeError,ut=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ve(n),function(e){if("object"==typeof e||_(e))return e;throw lt("Can't set "+st(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ct=Math.ceil,ft=Math.floor,dt=function(e){var t=+e;return t!=t||0===t?0:(t>0?ft:ct)(t)},ht=Math.max,pt=Math.min,gt=function(e,t){var n=dt(e);return n<0?ht(n+t,0):pt(n,t)},mt=Math.min,vt=function(e){return(t=e.length)>0?mt(dt(t),9007199254740991):0;var t},yt=function(e){return function(t,n,r){var i,o=B(t),a=vt(o),s=gt(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},bt={includes:yt(!0),indexOf:yt(!1)},_t={},wt=bt.indexOf,xt=b([].push),Ot=function(e,t){var n,r=B(e),i=0,o=[];for(n in r)!he(_t,n)&&he(r,n)&&xt(o,n);for(;t.length>i;)he(r,n=t[i++])&&(~wt(o,n)||xt(o,n));return o},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ct=St.concat("length","prototype"),kt=Object.getOwnPropertyNames||function(e){return Ot(e,Ct)},Et={f:kt},At={f:Object.getOwnPropertySymbols},Tt=b([].concat),Dt=q("Reflect","ownKeys")||function(e){var t=Et.f(Ve(e)),n=At.f;return n?Tt(t,n(e)):t},Mt=Object.keys||function(e){return Ot(e,St)},Pt=x?Object.defineProperties:function(e,t){Ve(e);for(var n,r=B(t),i=Mt(t),o=i.length,a=0;o>a;)Ye.f(e,n=i[a++],r[n]);return e},It=q("document","documentElement"),jt=tt("IE_PROTO"),Lt=function(){},Nt=function(e){return"<script>"+e+"<\/script>"},Rt=function(e){e.write(Nt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Bt=function(){try{Y=new ActiveXObject("htmlfile")}catch(e){}var e,t;Bt="undefined"!=typeof document?document.domain&&Y?Rt(Y):((t=Te("iframe")).style.display="none",It.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nt("document.F=Object")),e.close(),e.F):Rt(Y);for(var n=St.length;n--;)delete Bt.prototype[St[n]];return Bt()};_t[jt]=!0;var $t=Object.create||function(e,t){var n;return null!==e?(Lt.prototype=Ve(e),n=new Lt,Lt.prototype=null,n[jt]=e):n=Bt(),void 0===t?n:Pt(n,t)},Ft=function(e,t,n){var r=ke(t);r in e?Ye.f(e,r,T(0,n)):e[r]=n},zt=u.Array,qt=Math.max,Ut=function(e,t,n){for(var r=vt(e),i=gt(t,r),o=gt(void 0===n?r:n,r),a=zt(qt(o-i,0)),s=0;i<o;i++,s++)Ft(a,s,e[i]);return a.length=s,a},Ht=b("".replace),Vt=b("".split),Wt=b([].join),Kt=String(Error("zxcasd").stack),Gt=/\n\s*at [^:]*:[^\n]*/,Yt=Gt.test(Kt),Xt=/@[^\n]*\n/.test(Kt)&&!/zxcasd/.test(Kt),Zt=function(e,t){if("string"!=typeof e)return e;if(Yt)for(;t--;)e=Ht(e,Gt,"");else if(Xt)return Wt(Ut(Vt(e,"\n"),t),"\n");return e},Qt=function(e,t){$(t)&&"cause"in t&&Xe(e,"cause",t.cause)},Jt={},en=xe("iterator"),tn=Array.prototype,nn={};nn[xe("toStringTag")]="z";var rn="[object z]"===String(nn),on=xe("toStringTag"),an=u.Object,sn="Arguments"==P(function(){return arguments}()),ln=rn?P:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=an(e),on))?n:sn?P(t):"Object"==(r=P(t))&&_(t.callee)?"Arguments":r},un=xe("iterator"),cn=function(e){if(null!=e)return oe(e,un)||oe(e,"@@iterator")||Jt[ln(e)]},fn=u.TypeError,dn=function(e,t,n){var r,i;Ve(e);try{if(!(r=oe(e,"return"))){if("throw"===t)throw n;return n}r=S(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Ve(r),n},hn=u.TypeError,pn=function(e,t){this.stopped=e,this.result=t},gn=pn.prototype,mn=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=qe(t,c),g=function(e){return r&&dn(r,"normal",e),new pn(!0,e)},m=function(e){return f?(Ve(e),h?p(e[0],e[1],g):p(e[0],e[1])):h?p(e,g):p(e)};if(d)r=e;else{if(!(i=cn(e)))throw hn(ne(e)+" is not iterable");if(function(e){return void 0!==e&&(Jt.Array===e||tn[en]===e)}(i)){for(o=0,a=vt(e);a>o;o++)if((s=m(e[o]))&&U(gn,s))return s;return new pn(!1)}r=function(e,t){var n=arguments.length<2?cn(e):t;if(ie(n))return Ve(S(n,e));throw fn(ne(e)+" is not iterable")}(e,i)}for(l=r.next;!(u=S(l,r)).done;){try{s=m(u.value)}catch(e){dn(r,"throw",e)}if("object"==typeof s&&s&&U(gn,s))return s}return new pn(!1)},vn=u.String,yn=function(e){if("Symbol"===ln(e))throw TypeError("Cannot convert a Symbol value to a string");return vn(e)},bn=function(e,t){return void 0===e?arguments.length<2?"":t:yn(e)},_n=!w((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",T(1,7)),7!==e.stack)})),wn=xe("toStringTag"),xn=u.Error,On=[].push,Sn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=U(Cn,this);ut?n=ut(new xn(void 0),i?at(this):Cn):(n=i?this:$t(Cn),Xe(n,wn,"Error")),Xe(n,"message",bn(t,"")),_n&&Xe(n,"stack",Zt(n.stack,1)),Qt(n,r);var o=[];return mn(e,On,{that:o}),Xe(n,"errors",o),n};ut?ut(Sn,xn):function(e,t){for(var n=Dt(t),r=Ye.f,i=Ie.f,o=0;o<n.length;o++){var a=n[o];he(e,a)||r(e,a,i(t,a))}}(Sn,xn);var Cn=Sn.prototype=$t(xn.prototype,{constructor:T(1,Sn),message:T(1,""),name:T(1,"AggregateError")});Je({global:!0},{AggregateError:Sn});var kn=b(Function.toString);_(le.inspectSource)||(le.inspectSource=function(e){return kn(e)});var En,An,Tn,Dn=le.inspectSource,Mn=u.WeakMap,Pn=_(Mn)&&/native code/.test(Dn(Mn)),In=u.TypeError,jn=u.WeakMap;if(Pn||le.state){var Ln=le.state||(le.state=new jn),Nn=b(Ln.get),Rn=b(Ln.has),Bn=b(Ln.set);En=function(e,t){if(Rn(Ln,e))throw new In("Object already initialized");return t.facade=e,Bn(Ln,e,t),t},An=function(e){return Nn(Ln,e)||{}},Tn=function(e){return Rn(Ln,e)}}else{var $n=tt("state");_t[$n]=!0,En=function(e,t){if(he(e,$n))throw new In("Object already initialized");return t.facade=e,Xe(e,$n,t),t},An=function(e){return he(e,$n)?e[$n]:{}},Tn=function(e){return he(e,$n)}}var Fn,zn,qn,Un={set:En,get:An,has:Tn,enforce:function(e){return Tn(e)?An(e):En(e,{})},getterFor:function(e){return function(t){var n;if(!$(t)||(n=An(t)).type!==e)throw In("Incompatible receiver, "+e+" required");return n}}},Hn=Function.prototype,Vn=x&&Object.getOwnPropertyDescriptor,Wn=he(Hn,"name"),Kn={EXISTS:Wn,PROPER:Wn&&"something"===function(){}.name,CONFIGURABLE:Wn&&(!x||x&&Vn(Hn,"name").configurable)},Gn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Xe(e,t,n)},Yn=xe("iterator"),Xn=!1;[].keys&&("next"in(qn=[].keys())?(zn=at(at(qn)))!==Object.prototype&&(Fn=zn):Xn=!0);var Zn=null==Fn||w((function(){var e={};return Fn[Yn].call(e)!==e}));Fn=Zn?{}:$t(Fn),_(Fn[Yn])||Gn(Fn,Yn,(function(){return this}));var Qn={IteratorPrototype:Fn,BUGGY_SAFARI_ITERATORS:Xn},Jn=rn?{}.toString:function(){return"[object "+ln(this)+"]"},er=Ye.f,tr=xe("toStringTag"),nr=function(e,t,n,r){if(e){var i=n?e:e.prototype;he(i,tr)||er(i,tr,{configurable:!0,value:t}),r&&!rn&&Xe(i,"toString",Jn)}},rr=Qn.IteratorPrototype,ir=function(){return this},or=Kn.PROPER,ar=Qn.BUGGY_SAFARI_ITERATORS,sr=xe("iterator"),lr=function(){return this},ur=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=$t(rr,{next:T(+!r,n)}),nr(e,i,!1,!0),Jt[i]=ir}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!ar&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[sr]||h["@@iterator"]||i&&h[i],g=!ar&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=at(m.call(new e)))!==Object.prototype&&s.next&&(nr(s,f,!0,!0),Jt[f]=lr),or&&"values"==i&&p&&"values"!==p.name&&(d=!0,g=function(){return S(p,this)}),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(ar||d||!(u in h))&&Gn(h,u,l[u]);else Je({target:t,proto:!0,forced:ar||d},l);return a&&h[sr]!==g&&Gn(h,sr,g,{name:i}),Jt[t]=g,l},cr=Un.set,fr=Un.getterFor("Array Iterator");ur(Array,"Array",(function(e,t){cr(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Jt.Arguments=Jt.Array;var dr=b("".charAt),hr=b("".charCodeAt),pr=b("".slice),gr=function(e){return function(t,n){var r,i,o=yn(R(t)),a=dt(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=hr(o,a))<55296||r>56319||a+1===s||(i=hr(o,a+1))<56320||i>57343?e?dr(o,a):r:e?pr(o,a,a+2):i-56320+(r-55296<<10)+65536}},mr={codeAt:gr(!1),charAt:gr(!0)}.charAt,vr=Un.set,yr=Un.getterFor("String Iterator");ur(String,"String",(function(e){vr(this,{type:"String Iterator",string:yn(e),index:0})}),(function(){var e,t=yr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=F.AggregateError,_r=xe("toStringTag");for(var wr in{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}){var xr=u[wr],Or=xr&&xr.prototype;Or&&ln(Or)!==_r&&Xe(Or,_r,wr),Jt[wr]=Jt.Array}var Sr,Cr,kr=br,Er=function(e){return e&&e.Math==Math&&e},Ar=Er("object"==typeof globalThis&&globalThis)||Er("object"==typeof window&&window)||Er("object"==typeof self&&self)||Er("object"==typeof r&&r)||function(){return this}()||Function("return this")(),Tr=function(e){try{return!!e()}catch(e){return!0}},Dr=!Tr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Mr=Function.prototype.call,Pr=Mr.bind?Mr.bind(Mr):function(){return Mr.apply(Mr,arguments)},Ir={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Lr=jr&&!Ir.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Ir,Nr={f:Lr},Rr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Br=Function.prototype,$r=Br.bind,Fr=Br.call,zr=$r&&$r.bind(Fr),qr=$r?function(e){return e&&zr(Fr,e)}:function(e){return e&&function(){return Fr.apply(e,arguments)}},Ur=qr({}.toString),Hr=qr("".slice),Vr=function(e){return Hr(Ur(e),8,-1)},Wr=Ar.Object,Kr=qr("".split),Gr=Tr((function(){return!Wr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Vr(e)?Kr(e,""):Wr(e)}:Wr,Yr=Ar.TypeError,Xr=function(e){if(null==e)throw Yr("Can't call method on "+e);return e},Zr=function(e){return Gr(Xr(e))},Qr=function(e){return"function"==typeof e},Jr=function(e){return"object"==typeof e?null!==e:Qr(e)},ei=function(e){return Qr(e)?e:void 0},ti=function(e,t){return arguments.length<2?ei(Ar[e]):Ar[e]&&Ar[e][t]},ni=qr({}.isPrototypeOf),ri=ti("navigator","userAgent")||"",ii=Ar.process,oi=Ar.Deno,ai=ii&&ii.versions||oi&&oi.version,si=ai&&ai.v8;si&&(Cr=(Sr=si.split("."))[0]>0&&Sr[0]<4?1:+(Sr[0]+Sr[1])),!Cr&&ri&&(!(Sr=ri.match(/Edge\/(\d+)/))||Sr[1]>=74)&&(Sr=ri.match(/Chrome\/(\d+)/))&&(Cr=+Sr[1]);var li=Cr,ui=!!Object.getOwnPropertySymbols&&!Tr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&li&&li<41})),ci=ui&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fi=Ar.Object,di=ci?function(e){return"symbol"==typeof e}:function(e){var t=ti("Symbol");return Qr(t)&&ni(t.prototype,fi(e))},hi=Ar.String,pi=function(e){try{return hi(e)}catch(e){return"Object"}},gi=Ar.TypeError,mi=function(e){if(Qr(e))return e;throw gi(pi(e)+" is not a function")},vi=function(e,t){var n=e[t];return null==n?void 0:mi(n)},yi=Ar.TypeError,bi=Object.defineProperty,_i=function(e,t){try{bi(Ar,e,{value:t,configurable:!0,writable:!0})}catch(o){Ar[e]=t}return t},wi=Ar["__core-js_shared__"]||_i("__core-js_shared__",{}),xi=o((function(e){(e.exports=function(e,t){return wi[e]||(wi[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Oi=Ar.Object,Si=function(e){return Oi(Xr(e))},Ci=qr({}.hasOwnProperty),ki=Object.hasOwn||function(e,t){return Ci(Si(e),t)},Ei=0,Ai=Math.random(),Ti=qr(1..toString),Di=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ti(++Ei+Ai,36)},Mi=xi("wks"),Pi=Ar.Symbol,Ii=Pi&&Pi.for,ji=ci?Pi:Pi&&Pi.withoutSetter||Di,Li=function(e){if(!ki(Mi,e)||!ui&&"string"!=typeof Mi[e]){var t="Symbol."+e;ui&&ki(Pi,e)?Mi[e]=Pi[e]:Mi[e]=ci&&Ii?Ii(t):ji(t)}return Mi[e]},Ni=Ar.TypeError,Ri=Li("toPrimitive"),Bi=function(e,t){if(!Jr(e)||di(e))return e;var n,r=vi(e,Ri);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!Jr(n)||di(n))return n;throw Ni("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qr(n=e.toString)&&!Jr(r=Pr(n,e)))return r;if(Qr(n=e.valueOf)&&!Jr(r=Pr(n,e)))return r;if("string"!==t&&Qr(n=e.toString)&&!Jr(r=Pr(n,e)))return r;throw yi("Can't convert object to primitive value")}(e,t)},$i=function(e){var t=Bi(e,"string");return di(t)?t:t+""},Fi=Ar.document,zi=Jr(Fi)&&Jr(Fi.createElement),qi=function(e){return zi?Fi.createElement(e):{}},Ui=!Dr&&!Tr((function(){return 7!=Object.defineProperty(qi("div"),"a",{get:function(){return 7}}).a})),Hi=Object.getOwnPropertyDescriptor,Vi=Dr?Hi:function(e,t){if(e=Zr(e),t=$i(t),Ui)try{return Hi(e,t)}catch(e){}if(ki(e,t))return Rr(!Pr(Nr.f,e,t),e[t])},Wi={f:Vi},Ki=Ar.String,Gi=Ar.TypeError,Yi=function(e){if(Jr(e))return e;throw Gi(Ki(e)+" is not an object")},Xi=Ar.TypeError,Zi=Object.defineProperty,Qi=Dr?Zi:function(e,t,n){if(Yi(e),t=$i(t),Yi(n),Ui)try{return Zi(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Xi("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ji={f:Qi},eo=Dr?function(e,t,n){return Ji.f(e,t,Rr(1,n))}:function(e,t,n){return e[t]=n,e},to=qr(Function.toString);Qr(wi.inspectSource)||(wi.inspectSource=function(e){return to(e)});var no,ro,io,oo=wi.inspectSource,ao=Ar.WeakMap,so=Qr(ao)&&/native code/.test(oo(ao)),lo=xi("keys"),uo=function(e){return lo[e]||(lo[e]=Di(e))},co={},fo=Ar.TypeError,ho=Ar.WeakMap;if(so||wi.state){var po=wi.state||(wi.state=new ho),go=qr(po.get),mo=qr(po.has),vo=qr(po.set);no=function(e,t){if(mo(po,e))throw new fo("Object already initialized");return t.facade=e,vo(po,e,t),t},ro=function(e){return go(po,e)||{}},io=function(e){return mo(po,e)}}else{var yo=uo("state");co[yo]=!0,no=function(e,t){if(ki(e,yo))throw new fo("Object already initialized");return t.facade=e,eo(e,yo,t),t},ro=function(e){return ki(e,yo)?e[yo]:{}},io=function(e){return ki(e,yo)}}var bo={set:no,get:ro,has:io,enforce:function(e){return io(e)?ro(e):no(e,{})},getterFor:function(e){return function(t){var n;if(!Jr(t)||(n=ro(t)).type!==e)throw fo("Incompatible receiver, "+e+" required");return n}}},_o=Function.prototype,wo=Dr&&Object.getOwnPropertyDescriptor,xo=ki(_o,"name"),Oo={EXISTS:xo,PROPER:xo&&"something"===function(){}.name,CONFIGURABLE:xo&&(!Dr||Dr&&wo(_o,"name").configurable)},So=o((function(e){var t=Oo.CONFIGURABLE,n=bo.get,r=bo.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Qr(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ki(o,"name")||t&&o.name!==f)&&eo(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==Ar?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:eo(e,n,o)):u?e[n]=o:_i(n,o)})(Function.prototype,"toString",(function(){return Qr(this)&&n(this).source||oo(this)}))})),Co=Math.ceil,ko=Math.floor,Eo=function(e){var t=+e;return t!=t||0===t?0:(t>0?ko:Co)(t)},Ao=Math.max,To=Math.min,Do=function(e,t){var n=Eo(e);return n<0?Ao(n+t,0):To(n,t)},Mo=Math.min,Po=function(e){return e>0?Mo(Eo(e),9007199254740991):0},Io=function(e){return Po(e.length)},jo=function(e){return function(t,n,r){var i,o=Zr(t),a=Io(o),s=Do(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Lo={includes:jo(!0),indexOf:jo(!1)}.indexOf,No=qr([].push),Ro=function(e,t){var n,r=Zr(e),i=0,o=[];for(n in r)!ki(co,n)&&ki(r,n)&&No(o,n);for(;t.length>i;)ki(r,n=t[i++])&&(~Lo(o,n)||No(o,n));return o},Bo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$o=Bo.concat("length","prototype"),Fo=Object.getOwnPropertyNames||function(e){return Ro(e,$o)},zo={f:Fo},qo={f:Object.getOwnPropertySymbols},Uo=qr([].concat),Ho=ti("Reflect","ownKeys")||function(e){var t=zo.f(Yi(e)),n=qo.f;return n?Uo(t,n(e)):t},Vo=function(e,t){for(var n=Ho(t),r=Ji.f,i=Wi.f,o=0;o<n.length;o++){var a=n[o];ki(e,a)||r(e,a,i(t,a))}},Wo=/#|\.prototype\./,Ko=function(e,t){var n=Yo[Go(e)];return n==Zo||n!=Xo&&(Qr(t)?Tr(t):!!t)},Go=Ko.normalize=function(e){return String(e).replace(Wo,".").toLowerCase()},Yo=Ko.data={},Xo=Ko.NATIVE="N",Zo=Ko.POLYFILL="P",Qo=Ko,Jo=Wi.f,ea=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Ar:u?Ar[s]||_i(s,{}):(Ar[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Jo(n,r))&&a.value:n[r],!Qo(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Vo(o,i)}(e.sham||i&&i.sham)&&eo(o,"sham",!0),So(n,r,o,e)}},ta={};ta[Li("toStringTag")]="z";var na,ra="[object z]"===String(ta),ia=Li("toStringTag"),oa=Ar.Object,aa="Arguments"==Vr(function(){return arguments}()),sa=ra?Vr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=oa(e),ia))?n:aa?Vr(t):"Object"==(r=Vr(t))&&Qr(t.callee)?"Arguments":r},la=Ar.String,ua=function(e){if("Symbol"===sa(e))throw TypeError("Cannot convert a Symbol value to a string");return la(e)},ca=function(){var e=Yi(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},fa=Ar.RegExp,da=Tr((function(){var e=fa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ha=da||Tr((function(){return!fa("a","y").sticky})),pa=da||Tr((function(){var e=fa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ga={BROKEN_CARET:pa,MISSED_STICKY:ha,UNSUPPORTED_Y:da},ma=Object.keys||function(e){return Ro(e,Bo)},va=Dr?Object.defineProperties:function(e,t){Yi(e);for(var n,r=Zr(t),i=ma(t),o=i.length,a=0;o>a;)Ji.f(e,n=i[a++],r[n]);return e},ya=ti("document","documentElement"),ba=uo("IE_PROTO"),_a=function(){},wa=function(e){return"<script>"+e+"<\/script>"},xa=function(e){e.write(wa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Oa=function(){try{na=new ActiveXObject("htmlfile")}catch(e){}var e,t;Oa="undefined"!=typeof document?document.domain&&na?xa(na):((t=qi("iframe")).style.display="none",ya.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wa("document.F=Object")),e.close(),e.F):xa(na);for(var n=Bo.length;n--;)delete Oa.prototype[Bo[n]];return Oa()};co[ba]=!0;var Sa,Ca,ka=Object.create||function(e,t){var n;return null!==e?(_a.prototype=Yi(e),n=new _a,_a.prototype=null,n[ba]=e):n=Oa(),void 0===t?n:va(n,t)},Ea=Ar.RegExp,Aa=Tr((function(){var e=Ea(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ta=Ar.RegExp,Da=Tr((function(){var e=Ta("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ma=bo.get,Pa=xi("native-string-replace",String.prototype.replace),Ia=RegExp.prototype.exec,ja=Ia,La=qr("".charAt),Na=qr("".indexOf),Ra=qr("".replace),Ba=qr("".slice),$a=(Ca=/b*/g,Pr(Ia,Sa=/a/,"a"),Pr(Ia,Ca,"a"),0!==Sa.lastIndex||0!==Ca.lastIndex),Fa=ga.BROKEN_CARET,za=void 0!==/()??/.exec("")[1];($a||za||Fa||Aa||Da)&&(ja=function(e){var t,n,r,i,o,a,s,l=this,u=Ma(l),c=ua(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=Pr(ja,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=Fa&&l.sticky,p=Pr(ca,l),g=l.source,m=0,v=c;if(h&&(p=Ra(p,"y",""),-1===Na(p,"g")&&(p+="g"),v=Ba(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==La(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),za&&(n=new RegExp("^"+g+"$(?!\\s)",p)),$a&&(r=l.lastIndex),i=Pr(Ia,h?n:l,v),h?i?(i.input=Ba(i.input,m),i[0]=Ba(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:$a&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),za&&i&&i.length>1&&Pr(Pa,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=ka(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var qa=ja;ea({target:"RegExp",proto:!0,forced:/./.exec!==qa},{exec:qa});var Ua=Li("species"),Ha=RegExp.prototype,Va=qr("".charAt),Wa=qr("".charCodeAt),Ka=qr("".slice),Ga=function(e){return function(t,n){var r,i,o=ua(Xr(t)),a=Eo(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=Wa(o,a))<55296||r>56319||a+1===s||(i=Wa(o,a+1))<56320||i>57343?e?Va(o,a):r:e?Ka(o,a,a+2):i-56320+(r-55296<<10)+65536}},Ya={codeAt:Ga(!1),charAt:Ga(!0)},Xa=Ya.charAt,Za=function(e,t,n){return t+(n?Xa(e,t).length:1)},Qa=Ar.TypeError,Ja=function(e,t){var n=e.exec;if(Qr(n)){var r=Pr(n,e,t);return null!==r&&Yi(r),r}if("RegExp"===Vr(e))return Pr(qa,e,t);throw Qa("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var i=Li(e),o=!Tr((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!Tr((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ua]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=qr(/./[i]),l=t(i,""[e],(function(e,t,n,r,i){var a=qr(e),l=t.exec;return l===qa||l===Ha.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));So(String.prototype,e,l[0]),So(Ha,i,l[1])}r&&eo(Ha[i],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=Xr(this),r=null==t?void 0:vi(t,e);return r?Pr(r,t,n):new RegExp(t)[e](ua(n))},function(e){var r=Yi(this),i=ua(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return Ja(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=Ja(r,i));){var c=ua(s[0]);l[u]=c,""===c&&(r.lastIndex=Za(i,Po(r.lastIndex),a)),u++}return 0===u?null:l}]})),ea({global:!0},{globalThis:Ar});var es=!Tr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ts=uo("IE_PROTO"),ns=Ar.Object,rs=ns.prototype,is=es?ns.getPrototypeOf:function(e){var t=Si(e);if(ki(t,ts))return t[ts];var n=t.constructor;return Qr(n)&&t instanceof n?n.prototype:t instanceof ns?rs:null},os=Ar.String,as=Ar.TypeError,ss=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=qr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Yi(n),function(e){if("object"==typeof e||Qr(e))return e;throw as("Can't set "+os(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ls=Ar.Array,us=Math.max,cs=qr("".replace),fs=qr("".split),ds=qr([].join),hs=String(Error("zxcasd").stack),ps=/\n\s*at [^:]*:[^\n]*/,gs=ps.test(hs),ms=/@[^\n]*\n/.test(hs)&&!/zxcasd/.test(hs),vs=function(e,t){if("string"!=typeof e)return e;if(gs)for(;t--;)e=cs(e,ps,"");else if(ms)return ds(function(e,t,n){for(var r,i,o,a,s=Io(e),l=Do(t,s),u=Do(void 0===n?s:n,s),c=ls(us(u-l,0)),f=0;l<u;l++,f++)r=c,i=f,o=e[l],a=void 0,(a=$i(i))in r?Ji.f(r,a,Rr(0,o)):r[a]=o;return c.length=f,c}(fs(e,"\n"),t),"\n");return e},ys=function(e,t){Jr(t)&&"cause"in t&&eo(e,"cause",t.cause)},bs=qr(qr.bind),_s=function(e,t){return mi(e),void 0===t?e:bs?bs(e,t):function(){return e.apply(t,arguments)}},ws={},xs=Li("iterator"),Os=Array.prototype,Ss=Li("iterator"),Cs=function(e){if(null!=e)return vi(e,Ss)||vi(e,"@@iterator")||ws[sa(e)]},ks=Ar.TypeError,Es=function(e,t,n){var r,i;Yi(e);try{if(!(r=vi(e,"return"))){if("throw"===t)throw n;return n}r=Pr(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Yi(r),n},As=Ar.TypeError,Ts=function(e,t){this.stopped=e,this.result=t},Ds=Ts.prototype,Ms=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=_s(t,c),g=function(e){return r&&Es(r,"normal",e),new Ts(!0,e)},m=function(e){return f?(Yi(e),h?p(e[0],e[1],g):p(e[0],e[1])):h?p(e,g):p(e)};if(d)r=e;else{if(!(i=Cs(e)))throw As(pi(e)+" is not iterable");if(function(e){return void 0!==e&&(ws.Array===e||Os[xs]===e)}(i)){for(o=0,a=Io(e);a>o;o++)if((s=m(e[o]))&&ni(Ds,s))return s;return new Ts(!1)}r=function(e,t){var n=arguments.length<2?Cs(e):t;if(mi(n))return Yi(Pr(n,e));throw ks(pi(e)+" is not iterable")}(e,i)}for(l=r.next;!(u=Pr(l,r)).done;){try{s=m(u.value)}catch(e){Es(r,"throw",e)}if("object"==typeof s&&s&&ni(Ds,s))return s}return new Ts(!1)},Ps=function(e,t){return void 0===e?arguments.length<2?"":t:ua(e)},Is=!Tr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Rr(1,7)),7!==e.stack)})),js=Li("toStringTag"),Ls=Ar.Error,Ns=[].push,Rs=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=ni(Bs,this);ss?n=ss(new Ls(void 0),i?is(this):Bs):(n=i?this:ka(Bs),eo(n,js,"Error")),eo(n,"message",Ps(t,"")),Is&&eo(n,"stack",vs(n.stack,1)),ys(n,r);var o=[];return Ms(e,Ns,{that:o}),eo(n,"errors",o),n};ss?ss(Rs,Ls):Vo(Rs,Ls);var Bs=Rs.prototype=ka(Ls.prototype,{constructor:Rr(1,Rs),message:Rr(1,""),name:Rr(1,"AggregateError")});ea({global:!0},{AggregateError:Rs});var $s=Li("unscopables"),Fs=Array.prototype;null==Fs[$s]&&Ji.f(Fs,$s,{configurable:!0,value:ka(null)});var zs,qs,Us,Hs=function(e){Fs[$s][e]=!0},Vs=Li("iterator"),Ws=!1;[].keys&&("next"in(Us=[].keys())?(qs=is(is(Us)))!==Object.prototype&&(zs=qs):Ws=!0);var Ks=null==zs||Tr((function(){var e={};return zs[Vs].call(e)!==e}));Ks&&(zs={}),Qr(zs[Vs])||So(zs,Vs,(function(){return this}));var Gs={IteratorPrototype:zs,BUGGY_SAFARI_ITERATORS:Ws},Ys=Ji.f,Xs=Li("toStringTag"),Zs=function(e,t,n){e&&!ki(e=n?e:e.prototype,Xs)&&Ys(e,Xs,{configurable:!0,value:t})},Qs=Gs.IteratorPrototype,Js=function(){return this},el=Oo.PROPER,tl=Oo.CONFIGURABLE,nl=Gs.IteratorPrototype,rl=Gs.BUGGY_SAFARI_ITERATORS,il=Li("iterator"),ol=function(){return this},al=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=ka(Qs,{next:Rr(+!r,n)}),Zs(e,i,!1),ws[i]=Js}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!rl&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[il]||h["@@iterator"]||i&&h[i],g=!rl&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=is(m.call(new e)))!==Object.prototype&&s.next&&(is(s)!==nl&&(ss?ss(s,nl):Qr(s[il])||So(s,il,ol)),Zs(s,f,!0)),el&&"values"==i&&p&&"values"!==p.name&&(tl?eo(h,"name","values"):(d=!0,g=function(){return Pr(p,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(rl||d||!(u in h))&&So(h,u,l[u]);else ea({target:t,proto:!0,forced:rl||d},l);return h[il]!==g&&So(h,il,g,{name:i}),ws[t]=g,l},sl=bo.set,ll=bo.getterFor("Array Iterator"),ul=al(Array,"Array",(function(e,t){sl(this,{type:"Array Iterator",target:Zr(e),index:0,kind:t})}),(function(){var e=ll(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ws.Arguments=ws.Array,Hs("keys"),Hs("values"),Hs("entries");var cl=Ya.charAt,fl=bo.set,dl=bo.getterFor("String Iterator");al(String,"String",(function(e){fl(this,{type:"String Iterator",string:ua(e),index:0})}),(function(){var e,t=dl(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cl(n,r),t.index+=e.length,{value:e,done:!1})}));var hl,pl={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},gl=qi("span").classList,ml=gl&&gl.constructor&&gl.constructor.prototype,vl=ml===Object.prototype?void 0:ml,yl=Li("iterator"),bl=Li("toStringTag"),_l=ul.values,wl=function(e,t){if(e){if(e[yl]!==_l)try{eo(e,yl,_l)}catch(t){e[yl]=_l}if(e[bl]||eo(e,bl,t),pl[t])for(var n in ul)if(e[n]!==ul[n])try{eo(e,n,ul[n])}catch(t){e[n]=ul[n]}}};for(var xl in pl)wl(Ar[xl]&&Ar[xl].prototype,xl);function Ol(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Sl(){void 0===kr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}wl(vl,"DOMTokenList"),"undefined"==typeof e?("ActiveXObject"in window&&console.error("抱歉，wangEditor V5+ 版本开始，不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Ol(),Sl()):e&&(null===(hl=e.navigator)||void 0===hl?void 0:hl.userAgent.match("QQBrowser"))&&(Ol(),Sl());var Cl,kl=Array.isArray||function(e){return"Array"==P(e)},El=function(){},Al=[],Tl=q("Reflect","construct"),Dl=/^\s*(?:class|function)\b/,Ml=b(Dl.exec),Pl=!Dl.exec(El),Il=function(e){if(!_(e))return!1;try{return Tl(El,Al,e),!0}catch(e){return!1}},jl=!Tl||w((function(){var e;return Il(Il.call)||!Il(Object)||!Il((function(){e=!0}))||e}))?function(e){if(!_(e))return!1;switch(ln(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pl||!!Ml(Dl,Dn(e))}:Il,Ll=xe("species"),Nl=u.Array,Rl=function(e,t){return new(function(e){var t;return kl(e)&&(t=e.constructor,(jl(t)&&(t===Nl||kl(t.prototype))||$(t)&&null===(t=t[Ll]))&&(t=void 0)),void 0===t?Nl:t}(e))(0===t?0:t)},Bl=xe("species"),$l=xe("isConcatSpreadable"),Fl=u.TypeError,zl=X>=51||!w((function(){var e=[];return e[$l]=!1,e.concat()[0]!==e})),ql=(Cl="concat",X>=51||!w((function(){var e=[];return(e.constructor={})[Bl]=function(){return{foo:1}},1!==e[Cl](Boolean).foo}))),Ul=function(e){if(!$(e))return!1;var t=e[$l];return void 0!==t?!!t:kl(e)};Je({target:"Array",proto:!0,forced:!zl||!ql},{concat:function(e){var t,n,r,i,o,a=fe(this),s=Rl(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(Ul(o=-1===t?a:arguments[t])){if(l+(i=vt(o))>9007199254740991)throw Fl("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&Ft(s,l,o[n])}else{if(l>=9007199254740991)throw Fl("Maximum allowed index exceeded");Ft(s,l++,o)}return s.length=l,s}});var Hl=Et.f,Vl="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wl={f:function(e){return Vl&&"Window"==P(e)?function(e){try{return Hl(e)}catch(e){return Ut(Vl)}}(e):Hl(B(e))}},Kl=b([].slice),Gl={f:xe},Yl=Ye.f,Xl=function(e){var t=F.Symbol||(F.Symbol={});he(t,e)||Yl(t,e,{value:Gl.f(e)})},Zl=b([].push),Ql=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=fe(l),g=L(p),m=qe(u,c),v=vt(g),y=0,b=f||Rl,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Zl(_,d)}else switch(e){case 4:return!1;case 7:Zl(_,d)}return o?-1:r||i?i:_}},Jl={forEach:Ql(0),map:Ql(1),filter:Ql(2),some:Ql(3),every:Ql(4),find:Ql(5),findIndex:Ql(6),filterReject:Ql(7)}.forEach,eu=tt("hidden"),tu=xe("toPrimitive"),nu=Un.set,ru=Un.getterFor("Symbol"),iu=Object.prototype,ou=u.Symbol,au=ou&&ou.prototype,su=u.TypeError,lu=u.QObject,uu=q("JSON","stringify"),cu=Ie.f,fu=Ye.f,du=Wl.f,hu=A.f,pu=b([].push),gu=ue("symbols"),mu=ue("op-symbols"),vu=ue("string-to-symbol-registry"),yu=ue("symbol-to-string-registry"),bu=ue("wks"),_u=!lu||!lu.prototype||!lu.prototype.findChild,wu=x&&w((function(){return 7!=$t(fu({},"a",{get:function(){return fu(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=cu(iu,t);r&&delete iu[t],fu(e,t,n),r&&e!==iu&&fu(iu,t,r)}:fu,xu=function(e,t){var n=gu[e]=$t(au);return nu(n,{type:"Symbol",tag:e,description:t}),x||(n.description=t),n},Ou=function(e,t,n){e===iu&&Ou(mu,t,n),Ve(e);var r=ke(t);return Ve(n),he(gu,r)?(n.enumerable?(he(e,eu)&&e[eu][r]&&(e[eu][r]=!1),n=$t(n,{enumerable:T(0,!1)})):(he(e,eu)||fu(e,eu,T(1,{})),e[eu][r]=!0),wu(e,r,n)):fu(e,r,n)},Su=function(e,t){Ve(e);var n=B(t),r=Mt(n).concat(Au(n));return Jl(r,(function(t){x&&!S(Cu,n,t)||Ou(e,t,n[t])})),e},Cu=function(e){var t=ke(e),n=S(hu,this,t);return!(this===iu&&he(gu,t)&&!he(mu,t))&&(!(n||!he(this,t)||!he(gu,t)||he(this,eu)&&this[eu][t])||n)},ku=function(e,t){var n=B(e),r=ke(t);if(n!==iu||!he(gu,r)||he(mu,r)){var i=cu(n,r);return!i||!he(gu,r)||he(n,eu)&&n[eu][r]||(i.enumerable=!0),i}},Eu=function(e){var t=du(B(e)),n=[];return Jl(t,(function(e){he(gu,e)||he(_t,e)||pu(n,e)})),n},Au=function(e){var t=e===iu,n=du(t?mu:B(e)),r=[];return Jl(n,(function(e){!he(gu,e)||t&&!he(iu,e)||pu(r,gu[e])})),r};if(Z||(au=(ou=function(){if(U(au,this))throw su("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,t=ve(e),n=function(e){this===iu&&S(n,mu,e),he(this,eu)&&he(this[eu],t)&&(this[eu][t]=!1),wu(this,t,T(1,e))};return x&&_u&&wu(iu,t,{configurable:!0,set:n}),xu(t,e)}).prototype,Gn(au,"toString",(function(){return ru(this).tag})),Gn(ou,"withoutSetter",(function(e){return xu(ve(e),e)})),A.f=Cu,Ye.f=Ou,Ie.f=ku,Et.f=Wl.f=Eu,At.f=Au,Gl.f=function(e){return xu(xe(e),e)},x&&fu(au,"description",{configurable:!0,get:function(){return ru(this).description}})),Je({global:!0,wrap:!0,forced:!Z,sham:!Z},{Symbol:ou}),Jl(Mt(bu),(function(e){Xl(e)})),Je({target:"Symbol",stat:!0,forced:!Z},{for:function(e){var t=yn(e);if(he(vu,t))return vu[t];var n=ou(t);return vu[t]=n,yu[n]=t,n},keyFor:function(e){if(!ee(e))throw su(e+" is not a symbol");if(he(yu,e))return yu[e]},useSetter:function(){_u=!0},useSimple:function(){_u=!1}}),Je({target:"Object",stat:!0,forced:!Z,sham:!x},{create:function(e,t){return void 0===t?$t(e):Su($t(e),t)},defineProperty:Ou,defineProperties:Su,getOwnPropertyDescriptor:ku}),Je({target:"Object",stat:!0,forced:!Z},{getOwnPropertyNames:Eu,getOwnPropertySymbols:Au}),Je({target:"Object",stat:!0,forced:w((function(){At.f(1)}))},{getOwnPropertySymbols:function(e){return At.f(fe(e))}}),uu){var Tu=!Z||w((function(){var e=ou();return"[null]"!=uu([e])||"{}"!=uu({a:e})||"{}"!=uu(Object(e))}));Je({target:"JSON",stat:!0,forced:Tu},{stringify:function(e,t,n){var r=Kl(arguments),i=t;if(($(t)||void 0!==e)&&!ee(e))return kl(t)||(t=function(e,t){if(_(i)&&(t=S(i,this,e,t)),!ee(t))return t}),r[1]=t,p(uu,null,r)}})}if(!au[tu]){var Du=au.valueOf;Gn(au,tu,(function(e){return S(Du,this)}))}nr(ou,"Symbol"),_t[eu]=!0,Xl("asyncIterator"),Xl("hasInstance"),Xl("isConcatSpreadable"),Xl("iterator"),Xl("match"),Xl("matchAll"),Xl("replace"),Xl("search"),Xl("species"),Xl("split"),Xl("toPrimitive"),Xl("toStringTag"),Xl("unscopables"),nr(u.JSON,"JSON",!0);var Mu=F.Symbol;Xl("asyncDispose"),Xl("dispose"),Xl("matcher"),Xl("metadata"),Xl("observable"),Xl("patternMatch"),Xl("replaceAll");var Pu=Mu,Iu=Gl.f("iterator"),ju=o((function(e){function t(n){return"function"==typeof Pu&&"symbol"==typeof Iu?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Pu&&e.constructor===Pu&&e!==Pu.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Lu=i(ju),Nu=Wi.f,Ru=Tr((function(){Nu(1)}));if(ea({target:"Object",stat:!0,forced:!Dr||Ru,sham:!Dr},{getOwnPropertyDescriptor:function(e,t){return Nu(Zr(e),t)}}),"object"===("undefined"==typeof e?"undefined":Lu(e))){var Bu=Object.getOwnPropertyDescriptor(e,"window");e.window&&!Bu.set||(e.window=e,e.requestAnimationFrame=function(){},e.navigator={userAgent:""},e.location={hostname:"0.0.0.0",port:0,protocol:"http:"},e.btoa=function(){},e.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=e.document&&null==e.document.getElementsByTagName&&(e.document.getElementsByTagName=function(){return[]})}
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function $u(e){return"[object Object]"===Object.prototype.toString.call(e)}function Fu(e){var t,n;return!1!==$u(e)&&(void 0===(t=e.constructor)||!1!==$u(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function zu(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qu(e){return!!e&&!!e[Ec]}function Uu(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ac}(e)||Array.isArray(e)||!!e[kc]||!!e.constructor[kc]||Gu(e)||Yu(e))}function Hu(e,t,n){void 0===n&&(n=!1),0===Vu(e)?(n?Object.keys:Tc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Vu(e){var t=e[Ec];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Gu(e)?2:Yu(e)?3:0}function Wu(e,t){return 2===Vu(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ku(e,t,n){var r=Vu(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Gu(e){return xc&&e instanceof Map}function Yu(e){return Oc&&e instanceof Set}function Xu(e){return e.o||e.t}function Zu(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dc(e);delete t[Ec];for(var n=Tc(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Qu(e,t){return void 0===t&&(t=!1),ec(e)||qu(e)||!Uu(e)||(Vu(e)>1&&(e.set=e.add=e.clear=e.delete=Ju),Object.freeze(e),t&&Hu(e,(function(e,t){return Qu(t,!0)}),!0)),e}function Ju(){zu(2)}function ec(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function tc(e){var t=Mc[e];return t||zu(18,e),t}function nc(){return _c}function rc(e,t){t&&(tc("Patches"),e.u=[],e.s=[],e.v=t)}function ic(e){oc(e),e.p.forEach(sc),e.p=null}function oc(e){e===_c&&(_c=e.l)}function ac(e){return _c={p:[],l:_c,h:e,m:!0,_:0}}function sc(e){var t=e[Ec];0===t.i||1===t.i?t.j():t.O=!0}function lc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||tc("ES5").S(t,e,r),r?(n[Ec].P&&(ic(t),zu(4)),Uu(e)&&(e=uc(t,e),t.l||fc(t,e)),t.u&&tc("Patches").M(n[Ec],e,t.u,t.s)):e=uc(t,n,[]),ic(t),t.u&&t.v(t.u,t.s),e!==Cc?e:void 0}function uc(e,t,n){if(ec(t))return t;var r=t[Ec];if(!r)return Hu(t,(function(i,o){return cc(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return fc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Zu(r.k):r.o;Hu(3===r.i?new Set(i):i,(function(t,o){return cc(e,r,i,t,o,n)})),fc(e,i,!1),n&&e.u&&tc("Patches").R(r,n,e.u,e.s)}return r.o}function cc(e,t,n,r,i,o){if(qu(i)){var a=uc(e,i,o&&t&&3!==t.i&&!Wu(t.D,r)?o.concat(r):void 0);if(Ku(n,r,a),!qu(a))return;e.m=!1}if(Uu(i)&&!ec(i)){if(!e.h.F&&e._<1)return;uc(e,i),t&&t.A.l||fc(e,i)}}function fc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Qu(t,n)}function dc(e,t){var n=e[Ec];return(n?Xu(n):e)[t]}function hc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function pc(e){e.P||(e.P=!0,e.l&&pc(e.l))}function gc(e){e.o||(e.o=Zu(e.t))}function mc(e,t,n){var r=Gu(t)?tc("MapSet").N(t,n):Yu(t)?tc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:nc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=Pc;n&&(i=[r],o=Ic);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):tc("ES5").J(t,n);return(n?n.A:nc()).p.push(r),r}function vc(e){return qu(e)||zu(22,e),function e(t){if(!Uu(t))return t;var n,r=t[Ec],i=Vu(t);if(r){if(!r.P&&(r.i<4||!tc("ES5").K(r)))return r.t;r.I=!0,n=yc(t,i),r.I=!1}else n=yc(t,i);return Hu(n,(function(t,i){r&&function(e,t){return 2===Vu(e)?e.get(t):e[t]}(r.t,t)===i||Ku(n,t,e(i))})),3===i?new Set(n):n}(e)}function yc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Zu(e)}var bc,_c,wc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),xc="undefined"!=typeof Map,Oc="undefined"!=typeof Set,Sc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Cc=wc?Symbol.for("immer-nothing"):((bc={})["immer-nothing"]=!0,bc),kc=wc?Symbol.for("immer-draftable"):"__$immer_draftable",Ec=wc?Symbol.for("immer-state"):"__$immer_state",Ac=""+Object.prototype.constructor,Tc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dc=Object.getOwnPropertyDescriptors||function(e){var t={};return Tc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Mc={},Pc={get:function(e,t){if(t===Ec)return e;var n=Xu(e);if(!Wu(n,t))return function(e,t,n){var r,i=hc(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Uu(r)?r:r===dc(e.t,t)?(gc(e),e.o[t]=mc(e.A.h,r,e)):r},has:function(e,t){return t in Xu(e)},ownKeys:function(e){return Reflect.ownKeys(Xu(e))},set:function(e,t,n){var r=hc(Xu(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=dc(Xu(e),t),o=null==i?void 0:i[Ec];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,i)&&(void 0!==n||Wu(e.t,t)))return!0;gc(e),pc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==dc(e.t,t)||t in e.t?(e.D[t]=!1,gc(e),pc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Xu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){zu(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zu(12)}},Ic={};Hu(Pc,(function(e,t){Ic[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ic.deleteProperty=function(e,t){return Pc.deleteProperty.call(this,e[0],t)},Ic.set=function(e,t,n){return Pc.set.call(this,e[0],t,n,e[0])};var jc=function(){function e(e){var t=this;this.g=Sc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&zu(6),void 0!==r&&"function"!=typeof r&&zu(7),Uu(e)){var s=ac(t),l=mc(t,e,void 0),u=!0;try{a=n(l),u=!1}finally{u?ic(s):oc(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return rc(s,r),lc(e,s)}),(function(e){throw ic(s),e})):(rc(s,r),lc(a,s))}if(!e||"object"!=typeof e){if((a=n(e))===Cc)return;return void 0===a&&(a=e),t.F&&Qu(a,!0),a}zu(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Uu(e)||zu(8),qu(e)&&(e=vc(e));var t=ac(this),n=mc(this,e,void 0);return n[Ec].C=!0,oc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Ec]).A;return rc(n,t),lc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Sc&&zu(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=tc("Patches").$;return qu(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),Lc=new jc,Nc=Lc.produce;Lc.produceWithPatches.bind(Lc),Lc.setAutoFreeze.bind(Lc),Lc.setUseProxies.bind(Lc),Lc.applyPatches.bind(Lc);var Rc=Lc.createDraft.bind(Lc),Bc=Lc.finishDraft.bind(Lc);function $c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fc=new WeakMap,zc=new WeakMap,qc=new WeakMap,Uc=new WeakMap,Hc=new WeakMap,Vc=new WeakMap;function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Pf.pathRefs(e))Uf.transform(n,t);for(var r of Pf.pointRefs(e))Kf.transform(r,t);for(var i of Pf.rangeRefs(e))Zf.transform(i,t);var o=new Set,a=[],s=e=>{if(e){var t=e.join(",");o.has(t)||(o.add(t),a.push(e))}},l=Fc.get(e)||[],u=Yc(t);for(var c of l)s(qf.transform(c,t));for(var f of u)s(f);Fc.set(e,a),wd.transform(e,t),e.operations.push(t),Pf.normalize(e),"set_selection"===t.type&&(e.marks=null),zc.get(e)||(zc.set(e,!0),Promise.resolve().then(()=>{zc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Xf.isExpanded(r))wd.setNodes(e,{[t]:n},{match:rd.isText,split:!0});else{var i=Kc(Kc({},Pf.marks(e)||{}),{},{[t]:n});e.marks=i,zc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Xf.isCollapsed(n)&&wd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Xf.isCollapsed(n)&&wd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Xf.isExpanded(n)&&wd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Bf.fragment(e,t):[]},insertBreak:()=>{wd.splitNodes(e,{always:!0})},insertFragment:t=>{wd.insertFragment(e,t)},insertNode:t=>{wd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=Kc({text:t},r);wd.insertNodes(e,i)}else wd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!rd.isText(n))if(kf.isElement(n)&&0===n.children.length)wd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var i=!Pf.isEditor(n)&&kf.isElement(n)&&(e.isInline(n)||0===n.children.length||rd.isText(n.children[0])||e.isInline(n.children[0])),o=0,a=0;a<n.children.length;a++,o++){var s=Bf.get(e,r);if(!rd.isText(s)){var l=n.children[a],u=s.children[o-1],c=a===n.children.length-1;(rd.isText(l)||kf.isElement(l)&&e.isInline(l))!==i?(wd.removeNodes(e,{at:r.concat(o),voids:!0}),o--):kf.isElement(l)?e.isInline(l)&&(null!=u&&rd.isText(u)?c&&(wd.insertNodes(e,{text:""},{at:r.concat(o+1),voids:!0}),o++):(wd.insertNodes(e,{text:""},{at:r.concat(o),voids:!0}),o++)):null!=u&&rd.isText(u)&&(rd.equals(l,u,{loose:!0})?(wd.mergeNodes(e,{at:r.concat(o),voids:!0}),o--):""===u.text?(wd.removeNodes(e,{at:r.concat(o-1),voids:!0}),o--):""===l.text&&(wd.removeNodes(e,{at:r.concat(o),voids:!0}),o--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Xf.isExpanded(n))wd.unsetNodes(e,t,{match:rd.isText,split:!0});else{var r=Kc({},Pf.marks(e)||{});delete r[t],e.marks=r,zc.get(e)||e.onChange()}}};return e},Yc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return qf.levels(t);case"insert_node":var{node:n,path:r}=e,i=qf.levels(r),o=rd.isText(n)?[]:Array.from(Bf.nodes(n),e=>{var[,t]=e;return r.concat(t)});return[...i,...o];case"merge_node":var{path:a}=e;return[...qf.ancestors(a),qf.previous(a)];case"move_node":var{path:s,newPath:l}=e;if(qf.equals(s,l))return[];var u=[],c=[];for(var f of qf.ancestors(s)){var d=qf.transform(f,e);u.push(d)}for(var h of qf.ancestors(l)){var p=qf.transform(h,e);c.push(p)}var g=c[c.length-1],m=l[l.length-1],v=g.concat(m);return[...u,...c,v];case"remove_node":var{path:y}=e;return[...qf.ancestors(y)];case"split_node":var{path:b}=e;return[...qf.levels(b),qf.next(b)];default:return[]}};function Xc(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Zc,Qc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?of(e):e,i=Zc.None,o=Zc.None,a=0,s=null;for(var l of r){var u=l.codePointAt(0);if(!u)break;var c=vf(l,u);if([i,o]=n?[o,c]:[c,i],yf(i,Zc.ZWJ)&&yf(o,Zc.ExtPict)&&!xf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(yf(i,Zc.RI)&&yf(o,Zc.RI)&&!(s=null!==s?!s:!!n||Sf(e.substring(0,e.length-a))))break;if(i!==Zc.None&&o!==Zc.None&&_f(i,o))break;a+=l.length}return a||1},Jc=/\s/,ef=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,tf=/['\u2018\u2019]/,nf=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},rf=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Jc.test(t))return!1;if(tf.test(t)){var i=Qc(n,r),[o,a]=nf(n,i,r);if(e(o,a,r))return!0}return!ef.test(t)},of=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(sf(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(af(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},af=e=>e>=55296&&e<=56319,sf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Zc||(Zc={}));var lf=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,uf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,cf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,ff=/^[\u1100-\u115F\uA960-\uA97C]$/,df=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,hf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,pf=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,gf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,mf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,vf=(e,t)=>{var n=Zc.Any;return-1!==e.search(lf)&&(n|=Zc.Extend),8205===t&&(n|=Zc.ZWJ),t>=127462&&t<=127487&&(n|=Zc.RI),-1!==e.search(uf)&&(n|=Zc.Prepend),-1!==e.search(cf)&&(n|=Zc.SpacingMark),-1!==e.search(ff)&&(n|=Zc.L),-1!==e.search(df)&&(n|=Zc.V),-1!==e.search(hf)&&(n|=Zc.T),-1!==e.search(pf)&&(n|=Zc.LV),-1!==e.search(gf)&&(n|=Zc.LVT),-1!==e.search(mf)&&(n|=Zc.ExtPict),n};function yf(e,t){return 0!=(e&t)}var bf=[[Zc.L,Zc.L|Zc.V|Zc.LV|Zc.LVT],[Zc.LV|Zc.V,Zc.V|Zc.T],[Zc.LVT|Zc.T,Zc.T],[Zc.Any,Zc.Extend|Zc.ZWJ],[Zc.Any,Zc.SpacingMark],[Zc.Prepend,Zc.Any],[Zc.ZWJ,Zc.ExtPict],[Zc.RI,Zc.RI]];function _f(e,t){return-1===bf.findIndex(n=>yf(e,n[0])&&yf(t,n[1]))}var wf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,xf=e=>-1!==e.search(wf),Of=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Sf=e=>{var t=e.match(Of);return null!==t&&t[0].length/2%2==1},Cf=e=>Fu(e)&&Bf.isNodeList(e.children)&&!Pf.isEditor(e),kf={isAncestor:e=>Fu(e)&&Bf.isNodeList(e.children),isElement:Cf,isElementList:e=>Array.isArray(e)&&e.every(e=>kf.isElement(e)),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Cf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Ef=["text"],Af=["text"];function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tf(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf=new WeakMap,Pf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:i=e.selection,match:o}=t;if(i){var a=Pf.path(e,i),s="lowest"===r;for(var[l,u]of Pf.levels(e,{at:a,voids:n,match:o,reverse:s}))if(!rd.isText(l)&&!qf.equals(a,u))return[l,u]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Pf.point(e,t,{edge:"end"}),focus:Pf.end(e,[])},{distance:o=1}=r,a=0;for(var s of Pf.positions(e,Df(Df({},r),{},{at:i}))){if(a>o)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={anchor:Pf.start(e,[]),focus:Pf.point(e,t,{edge:"start"})},{distance:o=1}=r,a=0;for(var s of Pf.positions(e,Df(Df({},r),{},{at:i,reverse:!0}))){if(a>o)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Pf.start(e,t),Pf.end(e,t)],end:(e,t)=>Pf.point(e,t,{edge:"end"}),first(e,t){var n=Pf.path(e,t,{edge:"start"});return Pf.node(e,n)},fragment(e,t){var n=Pf.range(e,t);return Bf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(t=>Pf.isBlock(e,t)),hasInlines:(e,t)=>t.children.some(t=>rd.isText(t)||Pf.isInline(e,t)),hasTexts:(e,t)=>t.children.every(e=>rd.isText(e)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>kf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Fu(e))return!1;var t=Mf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Fu(e.marks))&&(null===e.selection||Xf.isRange(e.selection))&&Bf.isNodeList(e.children)&&zf.isOperationList(e.operations);return Mf.set(e,n),n},isEnd(e,t,n){var r=Pf.end(e,n);return Wf.equals(t,r)},isEdge:(e,t,n)=>Pf.isStart(e,t,n)||Pf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&rd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>kf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=qc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Pf.start(e,n);return Wf.equals(t,r)},isVoid:(e,t)=>kf.isElement(t)&&e.isVoid(t),last(e,t){var n=Pf.path(e,t,{edge:"end"});return Pf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pf.path(e,t,n);return[Bf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:o}=t;if(null==o&&(o=()=>!0),n){var a=[],s=Pf.path(e,n);for(var[l,u]of Bf.levels(e,s))if(o(l,u)&&(a.push([l,u]),!i&&Pf.isVoid(e,l)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(Xf.isExpanded(n)){var[r]=Pf.nodes(e,{match:rd.isText});if(r){var[i]=r;return Xc(i,Ef)}return{}}var{anchor:o}=n,{path:a}=o,[s]=Pf.leaf(e,a);if(0===o.offset){var l=Pf.previous(e,{at:a,match:rd.isText}),u=Pf.above(e,{match:t=>Pf.isBlock(e,t)});if(l&&u){var[c,f]=l,[,d]=u;qf.isAncestor(d,f)&&(s=c)}}return Xc(s,Af)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Pf.after(e,o,{voids:r});if(a){var[,s]=Pf.last(e,[]),l=[a.path,s];if(qf.isPath(o)&&0===o.length)throw new Error("Cannot get the next node from the root node!");if(null==i)if(qf.isPath(o)){var[u]=Pf.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=Pf.nodes(e,{at:l,match:i,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pf.path(e,t,n);return[Bf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:i=!1,reverse:o=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var l,u;if(jf.isSpan(n))l=n[0],u=n[1];else{var c=Pf.path(e,n,{edge:"start"}),f=Pf.path(e,n,{edge:"end"});l=o?f:c,u=o?c:f}var d,h=Bf.nodes(e,{reverse:o,from:l,to:u,pass:t=>{var[n]=t;return!a&&Pf.isVoid(e,n)}}),p=[];for(var[g,m]of h){var v=d&&0===qf.compare(m,d[1]);if("highest"!==r||!v)if(s(g,m))if("lowest"===r&&v)d=[g,m];else{var y="lowest"===r?d:[g,m];y&&(i?p.push(y):yield y),d=[g,m]}else if(i&&!v&&rd.isText(g))return}"lowest"===r&&d&&(i?p.push(d):yield d),i&&(yield*p)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Fc.get(e)||[];if(Pf.isNormalizing(e)){if(n){var i=Array.from(Bf.nodes(e),e=>{var[,t]=e;return t});Fc.set(e,i)}0!==r(e).length&&Pf.withoutNormalizing(e,()=>{for(var t of r(e))if(Bf.has(e,t)){var n=Pf.node(e,t),[i,o]=n;kf.isElement(i)&&0===i.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,s=0;0!==r(e).length;){if(s>a)throw new Error("\n            Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n          "));var l=r(e).pop();if(Bf.has(e,l)){var u=Pf.node(e,l);e.normalizeNode(u)}s++}})}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pf.path(e,t,n),i=qf.parent(r);return Pf.node(e,i)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:i}=n;if(qf.isPath(t))if("start"===i){var[,o]=Bf.first(e,t);t=o}else if("end"===i){var[,a]=Bf.last(e,t);t=a}return Xf.isRange(t)&&(t="start"===i?Xf.start(t):"end"===i?Xf.end(t):qf.common(t.anchor.path,t.focus.path)),Wf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Bf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Pf.pathRefs(e).delete(i),i.current=null,t}};return Pf.pathRefs(e).add(i),i},pathRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(qf.isPath(t)){var i;if("end"===r){var[,o]=Bf.last(e,t);i=o}else{var[,a]=Bf.first(e,t);i=a}var s=Bf.get(e,i);if(!rd.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:i,offset:"end"===r?s.text.length:0}}if(Xf.isRange(t)){var[l,u]=Xf.edges(t);return"start"===r?l:u}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Pf.pointRefs(e).delete(i),i.current=null,t}};return Pf.pointRefs(e).add(i),i},pointRefs(e){var t=Hc.get(e);return t||(t=new Set,Hc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:i=!1,voids:o=!1}=t;if(n){var a=Pf.range(e,n),[s,l]=Xf.edges(a),u=i?l:s,c=!1,f="",d=0,h=0,p=0;for(var[g,m]of Pf.nodes(e,{at:n,reverse:i,voids:o})){if(kf.isElement(g)){if(!o&&e.isVoid(g)){yield Pf.start(e,m);continue}if(e.isInline(g))continue;if(Pf.hasInlines(e,g)){var v=qf.isAncestor(m,l.path)?l:Pf.end(e,m),y=qf.isAncestor(m,s.path)?s:Pf.start(e,m);f=Pf.string(e,{anchor:y,focus:v},{voids:o}),c=!0}}if(rd.isText(g)){var b=qf.equals(m,u.path);for(b?(h=i?u.offset:g.text.length-u.offset,p=u.offset):(h=g.text.length,p=i?h:0),(b||c||"offset"===r)&&(yield{path:m,offset:p},c=!1);;){if(0===d){if(""===f)break;d=_(f,r,i),f=nf(f,d,i)[1]}if(p=i?p-d:p+d,(h-=d)<0){d=-h;break}d=0,yield{path:m,offset:p}}}}}function _(e,t,n){return"character"===t?Qc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var i=Qc(e,t),[o,a]=nf(e,i,t);if(rf(o,a,t))r=!0,n+=i;else{if(r)break;n+=i}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection}=t;if(o){var a=Pf.before(e,o,{voids:r});if(a){var[,s]=Pf.first(e,[]),l=[a.path,s];if(qf.isPath(o)&&0===o.length)throw new Error("Cannot get the previous node from the root node!");if(null==i)if(qf.isPath(o)){var[u]=Pf.parent(e,o);i=e=>u.children.includes(e)}else i=()=>!0;var[c]=Pf.nodes(e,{reverse:!0,at:l,match:i,mode:n,voids:r});return c}}},range:(e,t,n)=>Xf.isRange(t)&&!n?t:{anchor:Pf.start(e,t),focus:Pf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,i={current:t,affinity:r,unref(){var{current:t}=i;return Pf.rangeRefs(e).delete(i),i.current=null,t}};return Pf.rangeRefs(e).add(i),i},rangeRefs(e){var t=Vc.get(e);return t||(t=new Set,Vc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){qc.set(e,t)},start:(e,t)=>Pf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,i=Pf.range(e,t),[o,a]=Xf.edges(i),s="";for(var[l,u]of Pf.nodes(e,{at:i,match:rd.isText,voids:r})){var c=l.text;qf.equals(u,a.path)&&(c=c.slice(0,a.offset)),qf.equals(u,o.path)&&(c=c.slice(o.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[i,o]=Xf.edges(t);if(0!==i.offset||0!==o.offset||Xf.isCollapsed(t))return t;var a=Pf.above(e,{at:o,match:t=>Pf.isBlock(e,t)}),s=a?a[1]:[],l={anchor:Pf.start(e,[]),focus:o},u=!0;for(var[c,f]of Pf.nodes(e,{at:l,match:rd.isText,reverse:!0,voids:r}))if(u)u=!1;else if(""!==c.text||qf.isBefore(f,s)){o={path:f,offset:c.text.length};break}return{anchor:i,focus:o}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Pf.above(e,Df(Df({},t),{},{match:t=>Pf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Pf.isNormalizing(e);Pf.setNormalizing(e,!1);try{t()}finally{Pf.setNormalizing(e,n)}Pf.normalize(e)}},If={isLocation:e=>qf.isPath(e)||Wf.isPoint(e)||Xf.isRange(e)},jf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(qf.isPath)},Lf=["children"],Nf=["text"],Rf=new WeakMap,Bf={ancestor(e,t){var n=Bf.get(e,t);if(rd.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of qf.ancestors(t,n)){var i=[Bf.ancestor(e,r),r];yield i}},child(e,t){if(rd.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,i=Bf.ancestor(e,t),{children:o}=i,a=r?o.length-1:0;r?a>=0:a<o.length;){var s=Bf.child(i,a),l=t.concat(a);yield[s,l],a=r?a-1:a+1}},common(e,t,n){var r=qf.common(t,n);return[Bf.get(e,r),r]},descendant(e,t){var n=Bf.get(e,t);if(Pf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))kf.isElement(n)&&(yield[n,r])},extractProps:e=>kf.isAncestor(e)?Xc(e,Lf):Xc(e,Nf),first(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!rd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(rd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Nc({children:e.children},e=>{var[n,r]=Xf.edges(t),i=Bf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Xf.includes(t,n)}});for(var[,o]of i){if(!Xf.includes(t,o)){var a=Bf.parent(e,o),s=o[o.length-1];a.children.splice(s,1)}if(qf.equals(o,r.path)){var l=Bf.leaf(e,o);l.text=l.text.slice(0,r.offset)}if(qf.equals(o,n.path)){var u=Bf.leaf(e,o);u.text=u.text.slice(n.offset)}}Pf.isEditor(e)&&(e.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(rd.isText(n)||!n.children[i])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(rd.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>rd.isText(e)||kf.isElement(e)||Pf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Rf.get(e);if(void 0!==t)return t;var n=e.every(e=>Bf.isNode(e));return Rf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!rd.isText(r)&&0!==r.children.length;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=Bf.get(e,t);if(!rd.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of qf.levels(t,n)){var i=Bf.get(e,r);yield[i,r]}},matches:(e,t)=>kf.isElement(e)&&kf.isElementProps(t)&&kf.matches(e,t)||rd.isText(e)&&rd.isTextProps(t)&&rd.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:o}=t,a=new Set,s=[],l=e;!o||!(r?qf.isBefore(s,o):qf.isAfter(s,o));)if(a.has(l)||(yield[l,s]),a.has(l)||rd.isText(l)||0===l.children.length||null!=n&&!1!==n([l,s])){if(0===s.length)break;if(!r){var u=qf.next(s);if(Bf.has(e,u)){s=u,l=Bf.get(e,s);continue}}r&&0!==s[s.length-1]?(s=qf.previous(s),l=Bf.get(e,s)):(s=qf.parent(s),l=Bf.get(e,s),a.add(l))}else{a.add(l);var c=r?l.children.length-1:0;qf.isAncestor(s,i)&&(c=i[s.length]),s=s.concat(c),l=Bf.get(e,s)}},parent(e,t){var n=qf.parent(t),r=Bf.get(e,n);if(rd.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>rd.isText(e)?e.text:e.children.map(Bf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))rd.isText(n)&&(yield[n,r])}};function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ff(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){$c(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}var zf={isNodeOperation:e=>zf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Fu(e))return!1;switch(e.type){case"insert_node":case"remove_node":return qf.isPath(e.path)&&Bf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&qf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&qf.isPath(e.path)&&Fu(e.properties);case"move_node":return qf.isPath(e.path)&&qf.isPath(e.newPath);case"set_node":return qf.isPath(e.path)&&Fu(e.properties)&&Fu(e.newProperties);case"set_selection":return null===e.properties&&Xf.isRange(e.newProperties)||null===e.newProperties&&Xf.isRange(e.properties)||Fu(e.properties)&&Fu(e.newProperties);case"split_node":return qf.isPath(e.path)&&"number"==typeof e.position&&Fu(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(e=>zf.isOperation(e)),isSelectionOperation:e=>zf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>zf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Ff(Ff({},e),{},{type:"remove_node"});case"insert_text":return Ff(Ff({},e),{},{type:"remove_text"});case"merge_node":return Ff(Ff({},e),{},{type:"split_node",path:qf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(qf.equals(t,n))return e;if(qf.isSibling(n,t))return Ff(Ff({},e),{},{path:t,newPath:n});var r=qf.transform(n,e),i=qf.transform(qf.next(n),e);return Ff(Ff({},e),{},{path:r,newPath:i});case"remove_node":return Ff(Ff({},e),{},{type:"insert_node"});case"remove_text":return Ff(Ff({},e),{},{type:"insert_text"});case"set_node":var{properties:o,newProperties:a}=e;return Ff(Ff({},e),{},{properties:a,newProperties:o});case"set_selection":var{properties:s,newProperties:l}=e;return Ff(Ff({},e),{},null==s?{properties:l,newProperties:null}:null==l?{properties:null,newProperties:s}:{properties:l,newProperties:s});case"split_node":return Ff(Ff({},e),{},{type:"merge_node",path:qf.next(e.path)})}}},qf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=qf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return qf.equals(r,i)&&o>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return qf.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),o=e[n],a=t[n];return qf.equals(r,i)&&o<a},equals:(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===qf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===qf.compare(e,t),isBefore:(e,t)=>-1===qf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===qf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===qf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===qf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===qf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&qf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],i=0;i<=e.length;i++)r.push(e.slice(0,i));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!qf.isAncestor(t,e)&&!qf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,r=>{var{affinity:i="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:o}=t;(qf.equals(o,r)||qf.endsBefore(o,r)||qf.isAncestor(o,r))&&(r[o.length-1]+=1);break;case"remove_node":var{path:a}=t;if(qf.equals(a,r)||qf.isAncestor(a,r))return null;qf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:l}=t;qf.equals(s,r)||qf.endsBefore(s,r)?r[s.length-1]-=1:qf.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=l);break;case"split_node":var{path:u,position:c}=t;if(qf.equals(u,r)){if("forward"===i)r[r.length-1]+=1;else if("backward"!==i)return null}else qf.endsBefore(u,r)?r[u.length-1]+=1:qf.isAncestor(u,r)&&e[u.length]>=c&&(r[u.length-1]+=1,r[u.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(qf.equals(f,d))return;if(qf.isAncestor(f,r)||qf.equals(f,r)){var h=d.slice();return qf.endsBefore(f,d)&&f.length<d.length&&(h[f.length-1]-=1),h.concat(r.slice(f.length))}qf.isSibling(f,d)&&(qf.isAncestor(d,r)||qf.equals(d,r))?qf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:qf.endsBefore(d,r)||qf.equals(d,r)||qf.isAncestor(d,r)?(qf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):qf.endsBefore(f,r)&&(qf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},Uf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=qf.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}};function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wf={compare(e,t){var n=qf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Wf.compare(e,t),isBefore:(e,t)=>-1===Wf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&qf.equals(e.path,t.path),isPoint:e=>Fu(e)&&"number"==typeof e.offset&&qf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:i,offset:o}=e;switch(t.type){case"insert_node":case"move_node":e.path=qf.transform(i,t,n);break;case"insert_text":qf.equals(t.path,i)&&t.offset<=o&&(e.offset+=t.text.length);break;case"merge_node":qf.equals(t.path,i)&&(e.offset+=t.position),e.path=qf.transform(i,t,n);break;case"remove_text":qf.equals(t.path,i)&&t.offset<=o&&(e.offset-=Math.min(o-t.offset,t.text.length));break;case"remove_node":if(qf.equals(t.path,i)||qf.isAncestor(t.path,i))return null;e.path=qf.transform(i,t,n);break;case"split_node":if(qf.equals(t.path,i)){if(t.position===o&&null==r)return null;(t.position<o||t.position===o&&"forward"===r)&&(e.offset-=t.position,e.path=qf.transform(i,t,Vf(Vf({},n),{},{affinity:"forward"})))}else e.path=qf.transform(i,t,n)}})}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=Wf.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},Gf=["anchor","focus"];function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:i}=e;return Xf.isBackward(e)===n?[r,i]:[i,r]},end(e){var[,t]=Xf.edges(e);return t},equals:(e,t)=>Wf.equals(e.anchor,t.anchor)&&Wf.equals(e.focus,t.focus),includes(e,t){if(Xf.isRange(t)){if(Xf.includes(e,t.anchor)||Xf.includes(e,t.focus))return!0;var[n,r]=Xf.edges(e),[i,o]=Xf.edges(t);return Wf.isBefore(n,i)&&Wf.isAfter(r,o)}var[a,s]=Xf.edges(e),l=!1,u=!1;return Wf.isPoint(t)?(l=Wf.compare(t,a)>=0,u=Wf.compare(t,s)<=0):(l=qf.compare(t,a.path)>=0,u=qf.compare(t,s.path)<=0),l&&u},intersection(e,t){var n=Xc(e,Gf),[r,i]=Xf.edges(e),[o,a]=Xf.edges(t),s=Wf.isBefore(r,o)?o:r,l=Wf.isBefore(i,a)?i:a;return Wf.isBefore(l,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:l},n)},isBackward(e){var{anchor:t,focus:n}=e;return Wf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Wf.equals(t,n)},isExpanded:e=>!Xf.isCollapsed(e),isForward:e=>!Xf.isBackward(e),isRange:e=>Fu(e)&&Wf.isPoint(e.anchor)&&Wf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Xf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Nc(e,e=>{if(null===e)return null;var r,i,{affinity:o="inward"}=n;if("inward"===o){var a=Xf.isCollapsed(e);Xf.isForward(e)?(r="forward",i=a?r:"backward"):(r="backward",i=a?r:"forward")}else"outward"===o?Xf.isForward(e)?(r="backward",i="forward"):(r="forward",i="backward"):(r=o,i=o);var s=Wf.transform(e.anchor,t,{affinity:r}),l=Wf.transform(e.focus,t,{affinity:i});if(!s||!l)return null;e.anchor=s,e.focus=l})}},Zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var i=Xf.transform(n,t,{affinity:r});e.current=i,null==i&&e.unref()}}},Qf=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Fu(r)&&Fu(i)){if(!Qf(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==i[o])return!1}else if(r!==i)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Jf=["text"],ed=["anchor","focus"];function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function i(e){return Xc(e,Jf)}return Qf(r?i(e):e,r?i(t):t)},isText:e=>Fu(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every(e=>rd.isText(e)),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[nd({},e)];for(var r of t){var i=Xc(r,ed),[o,a]=Xf.edges(r),s=[],l=0;for(var u of n){var{length:c}=u.text,f=l;if(l+=c,o.offset<=f&&a.offset>=l)Object.assign(u,i),s.push(u);else if(o.offset!==a.offset&&(o.offset===l||a.offset===f)||o.offset>l||a.offset<f||a.offset===f&&0!==f)s.push(u);else{var d=u,h=void 0,p=void 0;if(a.offset<l){var g=a.offset-f;p=nd(nd({},d),{},{text:d.text.slice(g)}),d=nd(nd({},d),{},{text:d.text.slice(0,g)})}if(o.offset>f){var m=o.offset-f;h=nd(nd({},d),{},{text:d.text.slice(0,m)}),d=nd(nd({},d),{},{text:d.text.slice(m)})}Object.assign(d,i),h&&s.push(h),s.push(d),p&&s.push(p)}}n=s}return n}};function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?id(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):id(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ad={transform(e,t){e.children=Rc(e.children);var n=e.selection&&Rc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:i}=n,o=Bf.parent(e,r),a=r[r.length-1];if(a>o.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(o.children.splice(a,0,i),t)for(var[s,l]of Xf.points(t))t[l]=Wf.transform(s,n);break;case"insert_text":var{path:u,offset:c,text:f}=n;if(0===f.length)break;var d=Bf.leaf(e,u),h=d.text.slice(0,c),p=d.text.slice(c);if(d.text=h+f+p,t)for(var[g,m]of Xf.points(t))t[m]=Wf.transform(g,n);break;case"merge_node":var{path:v}=n,y=Bf.get(e,v),b=qf.previous(v),_=Bf.get(e,b),w=Bf.parent(e,v),x=v[v.length-1];if(rd.isText(y)&&rd.isText(_))_.text+=y.text;else{if(rd.isText(y)||rd.isText(_))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v,"] to nodes of different interfaces: ").concat(y," ").concat(_));_.children.push(...y.children)}if(w.children.splice(x,1),t)for(var[O,S]of Xf.points(t))t[S]=Wf.transform(O,n);break;case"move_node":var{path:C,newPath:k}=n;if(qf.isAncestor(C,k))throw new Error("Cannot move a path [".concat(C,"] to new path [").concat(k,"] because the destination is inside itself."));var E=Bf.get(e,C),A=Bf.parent(e,C),T=C[C.length-1];A.children.splice(T,1);var D=qf.transform(C,n),M=Bf.get(e,qf.parent(D)),P=D[D.length-1];if(M.children.splice(P,0,E),t)for(var[I,j]of Xf.points(t))t[j]=Wf.transform(I,n);break;case"remove_node":var{path:L}=n,N=L[L.length-1];if(Bf.parent(e,L).children.splice(N,1),t)for(var[R,B]of Xf.points(t)){var $=Wf.transform(R,n);if(null!=t&&null!=$)t[B]=$;else{var F=void 0,z=void 0;for(var[q,U]of Bf.texts(e)){if(-1!==qf.compare(U,L)){z=[q,U];break}F=[q,U]}var H=!1;F&&z&&(H=qf.equals(z[1],L)?!qf.hasPrevious(z[1]):qf.common(F[1],L).length<qf.common(z[1],L).length),F&&!H?(R.path=F[1],R.offset=F[0].text.length):z?(R.path=z[1],R.offset=0):t=null}}break;case"remove_text":var{path:V,offset:W,text:K}=n;if(0===K.length)break;var G=Bf.leaf(e,V),Y=G.text.slice(0,W),X=G.text.slice(W+K.length);if(G.text=Y+X,t)for(var[Z,Q]of Xf.points(t))t[Q]=Wf.transform(Z,n);break;case"set_node":var{path:J,properties:ee,newProperties:te}=n;if(0===J.length)throw new Error("Cannot set properties on the root node!");var ne=Bf.get(e,J);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var ie=te[re];null==ie?delete ne[re]:ne[re]=ie}for(var oe in ee)te.hasOwnProperty(oe)||delete ne[oe];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!Xf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=od({},ae)}for(var se in ae){var le=ae[se];if(null==le){if("anchor"===se||"focus"===se)throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=le}}break;case"split_node":var{path:ue,position:ce,properties:fe}=n;if(0===ue.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ue,"] because the root node cannot be split."));var de,he=Bf.get(e,ue),pe=Bf.parent(e,ue),ge=ue[ue.length-1];if(rd.isText(he)){var me=he.text.slice(0,ce),ve=he.text.slice(ce);he.text=me,de=od(od({},fe),{},{text:ve})}else{var ye=he.children.slice(0,ce),be=he.children.slice(ce);he.children=ye,de=od(od({},fe),{},{children:be})}if(pe.children.splice(ge+1,0,de),t)for(var[_e,we]of Xf.points(t))t[we]=Wf.transform(_e,n)}return t})(e,n,t)}finally{e.children=Bc(e.children),e.selection=n?qu(n)?Bc(n):n:null}}},sd=["text"],ld=["children"];function ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ud(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1,mode:o="lowest"}=n,{at:a,match:s,select:l}=n;if(Bf.isNode(t)&&(t=[t]),0!==t.length){var[u]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Pf.end(e,[]):[0],l=!0),null==l&&(l=!1),Xf.isRange(a))if(r||(a=Pf.unhangRange(e,a)),Xf.isCollapsed(a))a=a.anchor;else{var[,c]=Xf.edges(a),f=Pf.pointRef(e,c);wd.delete(e,{at:a}),a=f.unref()}if(Wf.isPoint(a)){null==s&&(s=rd.isText(u)?e=>rd.isText(e):e.isInline(u)?t=>rd.isText(t)||Pf.isInline(e,t):t=>Pf.isBlock(e,t));var[d]=Pf.nodes(e,{at:a.path,match:s,mode:o,voids:i});if(!d)return;var[,h]=d,p=Pf.pathRef(e,h),g=Pf.isEnd(e,a,h);wd.splitNodes(e,{at:a,match:s,mode:o,voids:i});var m=p.unref();a=g?qf.next(m):m}var v=qf.parent(a),y=a[a.length-1];if(i||!Pf.void(e,{at:v})){for(var b of t){var _=v.concat(y);y++,e.apply({type:"insert_node",path:_,node:b}),a=qf.next(a)}if(a=qf.previous(a),l){var w=Pf.end(e,a);w&&wd.select(e,w)}}}})},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:i=!1}=t,{match:o}=t;if(null==o&&(o=qf.isPath(n)?pd(e,n):t=>Pf.isBlock(e,t)),n){var a=Pf.nodes(e,{at:n,match:o,mode:r,voids:i}),s=Array.from(a,t=>{var[,n]=t;return Pf.pathRef(e,n)});for(var l of s){var u=l.unref();if(u.length<2)throw new Error("Cannot lift node at a path [".concat(u,"] because it has a depth of less than `2`."));var c=Pf.node(e,qf.parent(u)),[f,d]=c,h=u[u.length-1],{length:p}=f.children;if(1===p){var g=qf.next(d);wd.moveNodes(e,{at:u,to:g,voids:i}),wd.removeNodes(e,{at:d,voids:i})}else if(0===h)wd.moveNodes(e,{at:u,to:d,voids:i});else if(h===p-1){var m=qf.next(d);wd.moveNodes(e,{at:u,to:m,voids:i})}else{var v=qf.next(u),y=qf.next(d);wd.splitNodes(e,{at:v,voids:i}),wd.moveNodes(e,{at:u,to:y,voids:i})}}}})},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:o=!1,mode:a="lowest"}=t;if(r){if(null==n)if(qf.isPath(r)){var[s]=Pf.parent(e,r);n=e=>s.children.includes(e)}else n=t=>Pf.isBlock(e,t);if(!i&&Xf.isRange(r)&&(r=Pf.unhangRange(e,r)),Xf.isRange(r))if(Xf.isCollapsed(r))r=r.anchor;else{var[,l]=Xf.edges(r),u=Pf.pointRef(e,l);wd.delete(e,{at:r}),r=u.unref(),null==t.at&&wd.select(e,r)}var[c]=Pf.nodes(e,{at:r,match:n,voids:o,mode:a}),f=Pf.previous(e,{at:r,match:n,voids:o,mode:a});if(c&&f){var[d,h]=c,[p,g]=f;if(0!==h.length&&0!==g.length){var m,v,y=qf.next(g),b=qf.common(h,g),_=qf.isSibling(h,g),w=Array.from(Pf.levels(e,{at:h}),e=>{var[t]=e;return t}).slice(b.length).slice(0,-1),x=Pf.above(e,{at:h,mode:"highest",match:t=>w.includes(t)&&dd(e,t)}),O=x&&Pf.pathRef(e,x[1]);if(rd.isText(d)&&rd.isText(p)){var S=Xc(d,sd);v=p.text.length,m=S}else{if(!kf.isElement(d)||!kf.isElement(p))throw new Error("Cannot merge the node at path [".concat(h,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(p)));S=Xc(d,ld),v=p.children.length,m=S}_||wd.moveNodes(e,{at:h,to:y,voids:o}),O&&wd.removeNodes(e,{at:O.current,voids:o}),kf.isElement(p)&&Pf.isEmpty(e,p)||rd.isText(p)&&""===p.text&&0!==g[g.length-1]?wd.removeNodes(e,{at:g,voids:o}):e.apply({type:"merge_node",path:y,position:v,properties:m}),O&&O.unref()}}}})},moveNodes(e,t){Pf.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:i="lowest",voids:o=!1}=t,{match:a}=t;if(r){null==a&&(a=qf.isPath(r)?pd(e,r):t=>Pf.isBlock(e,t));var s=Pf.pathRef(e,n),l=Pf.nodes(e,{at:r,match:a,mode:i,voids:o}),u=Array.from(l,t=>{var[,n]=t;return Pf.pathRef(e,n)});for(var c of u){var f=c.unref(),d=s.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),s.current&&qf.isSibling(d,f)&&qf.isAfter(d,f)&&(s.current=qf.next(s.current))}s.unref()}})},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:i="lowest"}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=qf.isPath(o)?pd(e,o):t=>Pf.isBlock(e,t)),!n&&Xf.isRange(o)&&(o=Pf.unhangRange(e,o));var s=Pf.nodes(e,{at:o,match:a,mode:i,voids:r}),l=Array.from(s,t=>{var[,n]=t;return Pf.pathRef(e,n)});for(var u of l){var c=u.unref();if(c){var[f]=Pf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,()=>{var{match:r,at:i=e.selection}=n,{hanging:o=!1,mode:a="lowest",split:s=!1,voids:l=!1}=n;if(i){if(null==r&&(r=qf.isPath(i)?pd(e,i):t=>Pf.isBlock(e,t)),!o&&Xf.isRange(i)&&(i=Pf.unhangRange(e,i)),s&&Xf.isRange(i)){if(Xf.isCollapsed(i)&&Pf.leaf(e,i.anchor)[0].text.length>0)return;var u=Pf.rangeRef(e,i,{affinity:"inward"}),[c,f]=Xf.edges(i),d="lowest"===a?"lowest":"highest",h=Pf.isEnd(e,f,f.path);wd.splitNodes(e,{at:f,match:r,mode:d,voids:l,always:!h});var p=Pf.isStart(e,c,c.path);wd.splitNodes(e,{at:c,match:r,mode:d,voids:l,always:!p}),i=u.unref(),null==n.at&&wd.select(e,i)}for(var[g,m]of Pf.nodes(e,{at:i,match:r,mode:a,voids:l})){var v={},y={};if(0!==m.length){var b=!1;for(var _ in t)"children"!==_&&"text"!==_&&t[_]!==g[_]&&(b=!0,g.hasOwnProperty(_)&&(v[_]=g[_]),null!=t[_]&&(y[_]=t[_]));b&&e.apply({type:"set_node",path:m,properties:v,newProperties:y})}}}})},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:i,at:o=e.selection,height:a=0,always:s=!1}=t;if(null==i&&(i=t=>Pf.isBlock(e,t)),Xf.isRange(o)&&(o=hd(e,o)),qf.isPath(o)){var l=o,u=Pf.point(e,l),[c]=Pf.parent(e,l);i=e=>e===c,a=u.path.length-l.length+1,o=u,s=!0}if(o){var f=Pf.pointRef(e,o,{affinity:"backward"}),[d]=Pf.nodes(e,{at:o,match:i,mode:n,voids:r});if(d){var h=Pf.void(e,{at:o,mode:"highest"});if(!r&&h){var[p,g]=h;if(kf.isElement(p)&&e.isInline(p)){var m=Pf.after(e,g);if(!m){var v=qf.next(g);wd.insertNodes(e,{text:""},{at:v,voids:r}),m=Pf.point(e,v)}o=m,s=!0}a=o.path.length-g.length+1,s=!0}var y=Pf.pointRef(e,o),b=o.path.length-a,[,_]=d,w=o.path.slice(0,b),x=0===a?o.offset:o.path[b]+0;for(var[O,S]of Pf.levels(e,{at:w,reverse:!0,voids:r})){var C=!1;if(S.length<_.length||0===S.length||!r&&Pf.isVoid(e,O))break;var k=f.current,E=Pf.isEnd(e,k,S);if(s||!f||!Pf.isEdge(e,k,S)){C=!0;var A=Bf.extractProps(O);e.apply({type:"split_node",path:S,position:x,properties:A})}x=S[S.length-1]+(C||E?1:0)}if(null==t.at){var T=y.current||Pf.end(e,[]);wd.select(e,T)}f.unref(),y.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;wd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:i=!1}=t,{at:o=e.selection,match:a}=t;if(o){null==a&&(a=qf.isPath(o)?pd(e,o):t=>Pf.isBlock(e,t)),qf.isPath(o)&&(o=Pf.range(e,o));var s=Xf.isRange(o)?Pf.rangeRef(e,o):null,l=Pf.nodes(e,{at:o,match:a,mode:n,voids:i}),u=Array.from(l,t=>{var[,n]=t;return Pf.pathRef(e,n)}).reverse(),c=function(t){var n=t.unref(),[o]=Pf.node(e,n),a=Pf.range(e,n);r&&s&&(a=Xf.intersection(s.current,a)),wd.liftNodes(e,{at:a,match:e=>kf.isAncestor(o)&&o.children.includes(e),voids:i})};for(var f of u)c(f);s&&s.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,()=>{var{mode:r="lowest",split:i=!1,voids:o=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=qf.isPath(s)?pd(e,s):e.isInline(t)?t=>Pf.isInline(e,t)||rd.isText(t):t=>Pf.isBlock(e,t)),i&&Xf.isRange(s)){var[l,u]=Xf.edges(s),c=Pf.rangeRef(e,s,{affinity:"inward"});wd.splitNodes(e,{at:u,match:a,voids:o}),wd.splitNodes(e,{at:l,match:a,voids:o}),s=c.unref(),null==n.at&&wd.select(e,s)}var f=Array.from(Pf.nodes(e,{at:s,match:e.isInline(t)?t=>Pf.isBlock(e,t):e=>Pf.isEditor(e),mode:"lowest",voids:o}));for(var[,d]of f){var h=Xf.isRange(s)?Xf.intersection(s,Pf.range(e,d)):s;if(h){var p=Array.from(Pf.nodes(e,{at:h,match:a,mode:r,voids:o}));if(p.length>0){var g=function(){var[n]=p,r=p[p.length-1],[,i]=n,[,a]=r;if(0===i.length&&0===a.length)return"continue";var s=qf.equals(i,a)?qf.parent(i):qf.common(i,a),l=Pf.range(e,i,a),u=Pf.node(e,s),[c]=u,f=s.length+1,d=qf.next(a.slice(0,f)),h=cd(cd({},t),{},{children:[]});wd.insertNodes(e,h,{at:d,voids:o}),wd.moveNodes(e,{at:l,match:e=>kf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:o})}();if("continue"===g)continue}}}}})}},dd=(e,t)=>{if(kf.isElement(t)){var n=t;return!!Pf.isVoid(e,t)||1===n.children.length&&dd(e,n.children[0])}return!Pf.isEditor(t)},hd=(e,t)=>{if(Xf.isCollapsed(t))return t.anchor;var[,n]=Xf.edges(t),r=Pf.pointRef(e,n);return wd.delete(e,{at:t}),r.unref()},pd=(e,t)=>{var[n]=Pf.node(e,t);return e=>e===n};function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)wd.select(e,r.anchor);else if("focus"===n)wd.select(e,r.focus);else if("start"===n){var[i]=Xf.edges(r);wd.select(e,i)}else if("end"===n){var[,o]=Xf.edges(r);wd.select(e,o)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i="character",reverse:o=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=Xf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Xf.isBackward(n)?"anchor":"focus");var{anchor:s,focus:l}=n,u={distance:r,unit:i},c={};if(null==a||"anchor"===a){var f=o?Pf.before(e,s,u):Pf.after(e,s,u);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=o?Pf.before(e,l,u):Pf.after(e,l,u);d&&(c.focus=d)}wd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Pf.range(e,t),n)wd.setSelection(e,t);else{if(!Xf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:i="both"}=n;if(r){"start"===i&&(i=Xf.isBackward(r)?"focus":"anchor"),"end"===i&&(i=Xf.isBackward(r)?"anchor":"focus");var{anchor:o,focus:a}=r,s="anchor"===i?o:a;wd.setSelection(e,{["anchor"===i?"anchor":"focus"]:md(md({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var o in t)("anchor"===o&&null!=t.anchor&&!Wf.equals(t.anchor,n.anchor)||"focus"===o&&null!=t.focus&&!Wf.equals(t.focus,n.focus)||"anchor"!==o&&"focus"!==o&&t[o]!==n[o])&&(r[o]=n[o],i[o]=t[o]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:i})}}},yd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:i=1,voids:o=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(Xf.isRange(a)&&Xf.isCollapsed(a)&&(a=a.anchor),Wf.isPoint(a)){var l=Pf.void(e,{at:a,mode:"highest"});if(!o&&l){var[,u]=l;a=u}else{var c={unit:r,distance:i};a={anchor:a,focus:n?Pf.before(e,a,c)||Pf.start(e,[]):Pf.after(e,a,c)||Pf.end(e,[])},s=!0}}if(qf.isPath(a))wd.removeNodes(e,{at:a,voids:o});else if(!Xf.isCollapsed(a)){if(!s){var[,f]=Xf.edges(a),d=Pf.end(e,[]);Wf.equals(f,d)||(a=Pf.unhangRange(e,a,{voids:o}))}var[h,p]=Xf.edges(a),g=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:h,voids:o}),m=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:p,voids:o}),v=g&&m&&!qf.equals(g[1],m[1]),y=qf.equals(h.path,p.path),b=o?null:Pf.void(e,{at:h,mode:"highest"}),_=o?null:Pf.void(e,{at:p,mode:"highest"});if(b){var w=Pf.before(e,h);w&&g&&qf.isAncestor(g[1],w.path)&&(h=w)}if(_){var x=Pf.after(e,p);x&&m&&qf.isAncestor(m[1],x.path)&&(p=x)}var O,S=[];for(var C of Pf.nodes(e,{at:a,voids:o})){var[k,E]=C;O&&0===qf.compare(E,O)||(!o&&Pf.isVoid(e,k)||!qf.isCommon(E,h.path)&&!qf.isCommon(E,p.path))&&(S.push(C),O=E)}var A=Array.from(S,t=>{var[,n]=t;return Pf.pathRef(e,n)}),T=Pf.pointRef(e,h),D=Pf.pointRef(e,p);if(!y&&!b){var M=T.current,[P]=Pf.leaf(e,M),{path:I}=M,{offset:j}=h,L=P.text.slice(j);L.length>0&&e.apply({type:"remove_text",path:I,offset:j,text:L})}for(var N of A){var R=N.unref();wd.removeNodes(e,{at:R,voids:o})}if(!_){var B=D.current,[$]=Pf.leaf(e,B),{path:F}=B,z=y?h.offset:0,q=$.text.slice(z,p.offset);q.length>0&&e.apply({type:"remove_text",path:F,offset:z,text:q})}!y&&v&&D.current&&T.current&&wd.mergeNodes(e,{at:D.current,hanging:!0,voids:o});var U=n?T.unref()||D.unref():D.unref()||T.unref();null==t.at&&U&&wd.select(e,U)}}})},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:i=!1}=n,{at:o=e.selection}=n;if(t.length&&o){if(Xf.isRange(o))if(r||(o=Pf.unhangRange(e,o)),Xf.isCollapsed(o))o=o.anchor;else{var[,a]=Xf.edges(o);if(!i&&Pf.void(e,{at:a}))return;var s=Pf.pointRef(e,a);wd.delete(e,{at:o}),o=s.unref()}else qf.isPath(o)&&(o=Pf.start(e,o));if(i||!Pf.void(e,{at:o})){var l=Pf.above(e,{at:o,match:t=>Pf.isInline(e,t),mode:"highest",voids:i});if(l){var[,u]=l;Pf.isEnd(e,o,u)?o=Pf.after(e,u):Pf.isStart(e,o,u)&&(o=Pf.before(e,u))}var c=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:o,voids:i}),[,f]=c,d=Pf.isStart(e,o,f),h=Pf.isEnd(e,o,f),p=d&&h,g=!d||d&&h,m=!h,[,v]=Bf.first({children:t},[]),[,y]=Bf.last({children:t},[]),b=[],_=t=>{var[n,r]=t;return!(0===r.length)&&(!!p||!(g&&qf.isAncestor(r,v)&&kf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(m&&qf.isAncestor(r,y)&&kf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Bf.nodes({children:t},{pass:_}))_(w)&&b.push(w);var x=[],O=[],S=[],C=!0,k=!1;for(var[E]of b)kf.isElement(E)&&!e.isInline(E)?(C=!1,k=!0,O.push(E)):C?x.push(E):S.push(E);var[A]=Pf.nodes(e,{at:o,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:i}),[,T]=A,D=Pf.isStart(e,o,T),M=Pf.isEnd(e,o,T),P=Pf.pathRef(e,h?qf.next(f):f),I=Pf.pathRef(e,M?qf.next(T):T),j=Pf.pathRef(e,f);wd.splitNodes(e,{at:o,match:t=>k?Pf.isBlock(e,t):rd.isText(t)||Pf.isInline(e,t),mode:k?"lowest":"highest",voids:i});var L=Pf.pathRef(e,!D||D&&M?qf.next(T):T);if(wd.insertNodes(e,x,{at:L.current,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:i}),p&&O.length&&wd.delete(e,{at:j.unref(),voids:i}),wd.insertNodes(e,O,{at:P.current,match:t=>Pf.isBlock(e,t),mode:"lowest",voids:i}),wd.insertNodes(e,S,{at:I.current,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:i}),!n.at){var N;N=S.length>0?qf.previous(I.current):O.length>0?qf.previous(P.current):qf.previous(L.current);var R=Pf.end(e,N);wd.select(e,R)}L.unref(),P.unref(),I.unref()}}})},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(qf.isPath(i)&&(i=Pf.range(e,i)),Xf.isRange(i))if(Xf.isCollapsed(i))i=i.anchor;else{var o=Xf.end(i);if(!r&&Pf.void(e,{at:o}))return;var a=Pf.pointRef(e,o);wd.delete(e,{at:i,voids:r}),i=a.unref(),wd.setSelection(e,{anchor:i,focus:i})}if(r||!Pf.void(e,{at:i})){var{path:s,offset:l}=i;t.length>0&&e.apply({type:"insert_text",path:s,offset:l,text:t})}}})}};function bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wd=_d(_d(_d(_d({},ad),fd),vd),yd),xd="[object Map]",Od="[object Set]",Sd=/^\[object .+?Constructor\]$/,Cd=/^(?:0|[1-9]\d*)$/,kd="[\\ud800-\\udfff]",Ed="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ad="\\ud83c[\\udffb-\\udfff]",Td="[^\\ud800-\\udfff]",Dd="(?:\\ud83c[\\udde6-\\uddff]){2}",Md="[\\ud800-\\udbff][\\udc00-\\udfff]",Pd="(?:"+Ed+"|"+Ad+")?",Id="[\\ufe0e\\ufe0f]?"+Pd+"(?:\\u200d(?:"+[Td,Dd,Md].join("|")+")[\\ufe0e\\ufe0f]?"+Pd+")*",jd="(?:"+[Td+Ed+"?",Ed,Dd,Md,kd].join("|")+")",Ld=RegExp(Ad+"(?="+Ad+")|"+jd+Id,"g"),Nd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Rd="object"==typeof r&&r&&r.Object===Object&&r,Bd="object"==typeof self&&self&&self.Object===Object&&self,$d=Rd||Bd||Function("return this")();function Fd(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,(function(t){return e[t]}))}function zd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ud(e){return function(e){return Nd.test(e)}(e)?function(e){return e.match(Ld)||[]}(e):function(e){return e.split("")}(e)}var Hd,Vd,Wd=Function.prototype,Kd=Object.prototype,Gd=$d["__core-js_shared__"],Yd=function(){var e=/[^.]+$/.exec(Gd&&Gd.keys&&Gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xd=Wd.toString,Zd=Kd.hasOwnProperty,Qd=Kd.toString,Jd=RegExp("^"+Xd.call(Zd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eh=$d.Symbol,th=eh?eh.iterator:void 0,nh=Kd.propertyIsEnumerable,rh=(Hd=Object.keys,Vd=Object,function(e){return Hd(Vd(e))}),ih=vh($d,"DataView"),oh=vh($d,"Map"),ah=vh($d,"Promise"),sh=vh($d,"Set"),lh=vh($d,"WeakMap"),uh=_h(ih),ch=_h(oh),fh=_h(ah),dh=_h(sh),hh=_h(lh);function ph(e,t){var n=wh(e)||function(e){return function(e){return Ch(e)&&xh(e)}(e)&&Zd.call(e,"callee")&&(!nh.call(e,"callee")||"[object Arguments]"==Qd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!Zd.call(e,o)||i&&("length"==o||bh(o,r))||n.push(o);return n}function gh(e){if(!Sh(e)||function(e){return!!Yd&&Yd in e}(e))return!1;var t=Oh(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Jd:Sd;return t.test(_h(e))}function mh(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Kd,t!==r)return rh(e);var t,n,r,i=[];for(var o in Object(e))Zd.call(e,o)&&"constructor"!=o&&i.push(o);return i}function vh(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return gh(n)?n:void 0}var yh=function(e){return Qd.call(e)};function bh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Cd.test(e))&&e>-1&&e%1==0&&e<t}function _h(e){if(null!=e){try{return Xd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(ih&&"[object DataView]"!=yh(new ih(new ArrayBuffer(1)))||oh&&yh(new oh)!=xd||ah&&"[object Promise]"!=yh(ah.resolve())||sh&&yh(new sh)!=Od||lh&&"[object WeakMap]"!=yh(new lh))&&(yh=function(e){var t=Qd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?_h(n):void 0;if(r)switch(r){case uh:return"[object DataView]";case ch:return xd;case fh:return"[object Promise]";case dh:return Od;case hh:return"[object WeakMap]"}return t});var wh=Array.isArray;function xh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Oh(e)}function Oh(e){var t=Sh(e)?Qd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Sh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ch(e){return!!e&&"object"==typeof e}function kh(e){return e?Fd(e,function(e){return xh(e)?ph(e):mh(e)}(e)):[]}var Eh=function(e){if(!e)return[];if(xh(e))return function(e){return"string"==typeof e||!wh(e)&&Ch(e)&&"[object String]"==Qd.call(e)}(e)?Ud(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(th&&e[th])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[th]());var t=yh(e);return(t==xd?zd:t==Od?qd:kh)(e)};function Ah(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Th(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ah(t[n])&&Ah(e[n])&&Object.keys(t[n]).length>0&&Th(e[n],t[n])}))}var Dh={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mh(){var e="undefined"!=typeof document?document:{};return Th(e,Dh),e}var Ph={document:Dh,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Ih(){var e="undefined"!=typeof window?window:{};return Th(e,Ph),e}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jh(e)}function Lh(e,t){return Lh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lh(e,t)}function Nh(){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(r){return!1}}function Rh(e,t,n){return Rh=Nh()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Lh(i,n.prototype),i},Rh.apply(null,arguments)}function Bh(e){var t="function"==typeof Map?new Map:void 0;return Bh=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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)}function n(){return Rh(e,arguments,jh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Lh(n,e)},Bh(e)}var $h=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),i=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Bh(Array));function Fh(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Fh(e)):t.push(e)})),t}function zh(e,t){return Array.prototype.filter.call(e,t)}function qh(e,t){var n=Ih(),r=Mh(),i=[];if(!t&&e instanceof $h)return e;if(!e)return new $h(i);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var a="div";0===o.indexOf("<li")&&(a="ul"),0===o.indexOf("<tr")&&(a="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(a="tr"),0===o.indexOf("<tbody")&&(a="table"),0===o.indexOf("<option")&&(a="select");var s=r.createElement(a);s.innerHTML=o;for(var l=0;l<s.childNodes.length;l+=1)i.push(s.childNodes[l])}else i=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof $h)return e;i=e}return new $h(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(i))}function Uh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Hh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fh(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Vh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Fh(t.map((function(e){return e.split(" ")})));return zh(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Wh(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Kh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Gh(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var o=e.attributes[i];o.name.indexOf("data-")>=0&&(n[(t=o.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Yh(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var o=this[i];if(Array.isArray(e)&&o.multiple&&"select"===o.nodeName.toLowerCase())for(var a=0;a<o.options.length;a+=1)o.options[a].selected=e.indexOf(o.options[a].value)>=0;else o.value=e}return this}function Xh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),qh(t).is(i))o.apply(t,n);else for(var r=qh(t).parents(),a=0;a<r.length;a+=1)qh(r[a]).is(i)&&o.apply(r[a],n)}}function l(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),o.apply(this,t)}"function"==typeof t[1]&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var u,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(i)for(u=0;u<c.length;u+=1){var h=c[u];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[h]||(d.dom7LiveListeners[h]=[]),d.dom7LiveListeners[h].push({listener:o,proxyListener:s}),d.addEventListener(h,s,a)}else for(u=0;u<c.length;u+=1){var p=c[u];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[p]||(d.dom7Listeners[p]=[]),d.dom7Listeners[p].push({listener:o,proxyListener:l}),d.addEventListener(p,l,a)}}return this}function Zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],o=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],o=t[1],a=t[2],i=void 0),a||(a=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!i&&f.dom7Listeners?d=f.dom7Listeners[u]:i&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[u]),d&&d.length)for(var h=d.length-1;h>=0;h-=1){var p=d[h];o&&p.listener===o||o&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===o?(f.removeEventListener(u,p.proxyListener,a),d.splice(h,1)):o||(f.removeEventListener(u,p.proxyListener,a),d.splice(h,1))}}return this}function Qh(){var e=Ih();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Jh(){var e=Ih();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function ep(){if(this.length>0){var e=Ih(),t=Mh(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,a=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-o,left:r.left+l-a}}return null}function tp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function np(){for(var e=Ih(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function rp(e,t){var n,r=Ih();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function ip(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function op(e){return qh(zh(this,e))}function ap(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function sp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function lp(e){var t,n,r=Ih(),i=Mh(),o=this[0];if(!o||void 0===e)return!1;if("string"==typeof e){if(o.matches)return o.matches(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);for(t=qh(e),n=0;n<t.length;n+=1)if(t[n]===o)return!0;return!1}if(e===i)return o===i;if(e===r)return o===r;if(e.nodeType||e instanceof $h){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===o)return!0;return!1}return!1}function up(){for(var e,t=Mh(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var i=t.createElement("div");for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof $h)for(var o=0;o<e.length;o+=1)this[r].appendChild(e[o]);else this[r].appendChild(e)}return this}function cp(e){var t,n,r=Mh();for(t=0;t<this.length;t+=1)if("string"==typeof e){var i=r.createElement("div");for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof $h)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function fp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?qh(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return qh(t)}function dp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?qh(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return qh(t)}function hp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return qh(t)}function pp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!qh(r[i]).is(e)||t.push(r[i]);return qh(t)}function gp(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function mp(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}qh.fn=$h.prototype;var vp="resize scroll".split(" ");function yp(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var i=0;i<this.length;i+=1)vp.indexOf(e)<0&&(e in this[i]?this[i][e]():qh(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var bp=yp("click"),_p=yp("focus"),wp="[object GeneratorFunction]",xp=/^(?:0|[1-9]\d*)$/;function Op(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Sp=Object.prototype,Cp=Sp.hasOwnProperty,kp=Sp.toString,Ep=Sp.propertyIsEnumerable,Ap=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Tp(e,t){var n=Np(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Rp(e)}(e)&&Cp.call(e,"callee")&&(!Ep.call(e,"callee")||"[object Arguments]"==kp.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!Cp.call(e,o)||i&&("length"==o||Lp(o,r))||n.push(o);return n}var Dp,Mp,Pp=(Dp=function(e,t){return e&&Ip(e,t,Bp)},function(e,t){if(null==e)return e;if(!Rp(e))return Dp(e,t);for(var n=e.length,r=Mp?n:-1,i=Object(e);(Mp?r--:++r<n)&&!1!==t(i[r],r,i););return e}),Ip=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}();function jp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Sp,t!==r)return Ap(e);var t,n,r,i=[];for(var o in Object(e))Cp.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Lp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||xp.test(e))&&e>-1&&e%1==0&&e<t}var Np=Array.isArray;function Rp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?kp.call(e):"";return"[object Function]"==t||t==wp}(e)}function Bp(e){return Rp(e)?Tp(e):jp(e)}function $p(e){return e}var Fp=function(e,t){return(Np(e)?Op:Pp)(e,"function"==typeof t?t:$p)};let zp=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var qp=/^\s+|\s+$/g,Up=/^[-+]0x[0-9a-f]+$/i,Hp=/^0b[01]+$/i,Vp=/^0o[0-7]+$/i,Wp=parseInt,Kp="object"==typeof r&&r&&r.Object===Object&&r,Gp="object"==typeof self&&self&&self.Object===Object&&self,Yp=Kp||Gp||Function("return this")(),Xp=Object.prototype.toString,Zp=Math.max,Qp=Math.min,Jp=function(){return Yp.Date.now()};function eg(e,t,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){return u=e,s=setTimeout(m,t),c?h(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=o}function m(){var e=Jp();if(g(e))return v(e);s=setTimeout(m,function(e){var n=t-(e-l);return f?Qp(n,o-(e-u)):n}(e))}function v(e){return s=void 0,d&&r?h(e):(r=i=void 0,a)}function y(){var e=Jp(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return p(l);if(f)return s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ng(t)||0,tg(n)&&(c=!!n.leading,o=(f="maxWait"in n)?Zp(ng(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(Jp())},y}function tg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ng(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Xp.call(e)}(e))return NaN;if(tg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(qp,"");var n=Hp.test(e);return n||Vp.test(e)?Wp(e.slice(2),n?2:8):Up.test(e)?NaN:+e}var rg=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return tg(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),eg(e,t,{leading:r,maxWait:t,trailing:i})};const ig={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function og(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:void 0===t?void 0:t.key}}const ag=Array.isArray;function sg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function lg(e){return void 0===e}function ug(e){return void 0!==e}const cg=og("",{},[],void 0,void 0);function fg(e,t){var n,r;const i=e.key===t.key,o=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&i&&o}function dg(e,t,n){var r;const i={};for(let o=t;o<=n;++o){const t=null===(r=e[o])||void 0===r?void 0:r.key;void 0!==t&&(i[t]=o)}return i}const hg=["create","update","remove","destroy","pre","post"];function pg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:ig;for(const f of hg)for(const t of e){const e=t[f];void 0!==e&&n[f].push(e)}function i(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),i=n?"."+n.split(" ").join("."):"";return og(r.tagName(e).toLowerCase()+t+i,{},[],void 0,e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var i,o;let s,l=e.data;if(void 0!==l){const t=null===(i=l.hook)||void 0===i?void 0:i.init;ug(t)&&(t(e),l=e.data)}const u=e.children,c=e.sel;if("!"===c)lg(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const i=c.indexOf("#"),f=c.indexOf(".",i),d=i>0?i:c.length,h=f>0?f:c.length,p=-1!==i||-1!==f?c.slice(0,Math.min(d,h)):c,g=e.elm=ug(l)&&ug(s=l.ns)?r.createElementNS(s,p,l):r.createElement(p,l);for(d<h&&g.setAttribute("id",c.slice(d+1,h)),f>0&&g.setAttribute("class",c.slice(h+1).replace(/\./g," ")),s=0;s<n.create.length;++s)n.create[s](cg,e);if(ag(u))for(s=0;s<u.length;++s){const e=u[s];null!=e&&r.appendChild(g,a(e,t))}else sg(e.text)&&r.appendChild(g,r.createTextNode(e.text));const m=e.data.hook;ug(m)&&(null===(o=m.create)||void 0===o||o.call(m,cg,e),m.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function s(e,t,n,i,o,s){for(;i<=o;++i){const o=n[i];null!=o&&r.insertBefore(e,a(o,s),t)}}function l(e){var t,r;const i=e.data;if(void 0!==i){null===(r=null===(t=null==i?void 0:i.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&l(n)}}}function u(e,t,i,a){for(var s,u;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(ug(f.sel)){l(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(u=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===u?void 0:u.remove;ug(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,i){var o,l,f,d,h;const p=null===(o=t.data)||void 0===o?void 0:o.hook;null===(l=null==p?void 0:p.prepatch)||void 0===l||l.call(p,e,t);const g=t.elm=e.elm,m=e.children,v=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}lg(t.text)?ug(m)&&ug(v)?m!==v&&function(e,t,n,i){let o,l,f,d,h=0,p=0,g=t.length-1,m=t[0],v=t[g],y=n.length-1,b=n[0],_=n[y];for(;h<=g&&p<=y;)null==m?m=t[++h]:null==v?v=t[--g]:null==b?b=n[++p]:null==_?_=n[--y]:fg(m,b)?(c(m,b,i),m=t[++h],b=n[++p]):fg(v,_)?(c(v,_,i),v=t[--g],_=n[--y]):fg(m,_)?(c(m,_,i),r.insertBefore(e,m.elm,r.nextSibling(v.elm)),m=t[++h],_=n[--y]):fg(v,b)?(c(v,b,i),r.insertBefore(e,v.elm,m.elm),v=t[--g],b=n[++p]):(void 0===o&&(o=dg(t,h,g)),l=o[b.key],lg(l)?r.insertBefore(e,a(b,i),m.elm):(f=t[l],f.sel!==b.sel?r.insertBefore(e,a(b,i),m.elm):(c(f,b,i),t[l]=void 0,r.insertBefore(e,f.elm,m.elm))),b=n[++p]);(h<=g||p<=y)&&(h>g?(d=null==n[y+1]?null:n[y+1].elm,s(e,d,n,p,y,i)):u(e,t,h,g))}(g,m,v,i):ug(v)?(ug(e.text)&&r.setTextContent(g,""),s(g,null,v,0,v.length-1,i)):ug(m)?u(g,m,0,m.length-1):ug(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(ug(m)&&u(g,m,0,m.length-1),r.setTextContent(g,t.text)),null===(h=null==p?void 0:p.postpatch)||void 0===h||h.call(p,e,t)}}return function(e,t){let o,s,l;const f=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(function(e){return void 0!==e.sel}(e)||(e=i(e)),fg(e,t)?c(e,t,f):(s=e.elm,l=r.parentNode(s),a(t,f),null!==l&&(r.insertBefore(l,t.elm,r.nextSibling(s)),u(l,[e],0,0))),o=0;o<f.length;++o)f[o].data.hook.insert(f[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function gg(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&gg(e,t[r].children,t[r].sel)}}function mg(e,t,n){let r,i,o,a={};if(void 0!==n?(null!==t&&(a=t),ag(n)?r=n:sg(n)?i=n.toString():n&&n.sel&&(r=[n])):null!=t&&(ag(t)?r=t:sg(t)?i=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(o=0;o<r.length;++o)sg(r[o])&&(r[o]=og(void 0,void 0,void 0,r[o],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||gg(a,r,e),og(e,a,r,i,void 0)}function vg(e,t){let n;const r=t.elm;let i=e.data.attrs,o=t.data.attrs;if((i||o)&&i!==o){for(n in i=i||{},o=o||{},o){const e=o[n];i[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in i)n in o||r.removeAttribute(n)}}const yg={create:vg,update:vg};function bg(e,t){let n,r;const i=t.elm;let o=e.data.class,a=t.data.class;if((o||a)&&o!==a){for(r in o=o||{},a=a||{},o)o[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&i.classList.remove(r);for(r in a)n=a[r],n!==o[r]&&i.classList[n?"add":"remove"](r)}}const _g={create:bg,update:bg},wg=/[A-Z]/g;function xg(e,t){const n=t.elm;let r,i=e.data.dataset,o=t.data.dataset;if(!i&&!o)return;if(i===o)return;i=i||{},o=o||{};const a=n.dataset;for(r in i)o[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(wg,"-$&").toLowerCase()));for(r in o)i[r]!==o[r]&&(a?a[r]=o[r]:n.setAttribute("data-"+r.replace(wg,"-$&").toLowerCase(),o[r]))}const Og={create:xg,update:xg};function Sg(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)Sg(e[r],t,n)}function Cg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&Sg(r[n],t,e)}function kg(e,t){const n=e.data.on,r=e.listener,i=e.elm,o=t&&t.data.on,a=t&&t.elm;let s;if(n!==o){if(n&&r)if(o)for(s in n)o[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(o){const r=t.listener=e.listener||function e(t){Cg(t,e.vnode)};if(r.vnode=t,n)for(s in o)n[s]||a.addEventListener(s,r,!1);else for(s in o)a.addEventListener(s,r,!1)}}}const Eg={create:kg,update:kg,destroy:kg};function Ag(e,t){let n,r,i;const o=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],i=a[n],i===r||"value"===n&&o[n]===r||(o[n]=r)}const Tg={create:Ag,update:Ag},Dg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Mg=!1;function Pg(e,t,n){!function(e){Dg((function(){Dg(e)}))}((function(){e[t]=n}))}function Ig(e,t){let n,r;const i=t.elm;let o=e.data.style,a=t.data.style;if(!o&&!a)return;if(o===a)return;o=o||{},a=a||{};const s="delayed"in o;for(r in o)a[r]||("-"===r[0]&&"-"===r[1]?i.style.removeProperty(r):i.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],s&&n===o.delayed[e]||Pg(i.style,e,n);else"remove"!==r&&n!==o[r]&&("-"===r[0]&&"-"===r[1]?i.style.setProperty(r,n):i.style[r]=n)}const jg={pre:function(){Mg=!1},create:Ig,update:Ig,destroy:function(e){let t,n;const r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Mg||(e.elm.offsetLeft,Mg=!0);const i=e.elm;let o=0;const a=n.remove;let s=0;const l=[];for(r in a)l.push(r),i.style[r]=a[r];const u=getComputedStyle(i)["transition-property"].split(", ");for(;o<u.length;++o)-1!==l.indexOf(u[o])&&s++;i.addEventListener("transitionend",(function(e){e.target===i&&--s,0===s&&t()}))}};function Lg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Lg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(og(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ng(e,t,...n){const r=Lg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?mg(e,t,r[0].text):mg(e,t,r)}Ng||(Ng={});var Rg,Bg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$g=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",zg="[\\ud800-\\udfff]",qg="["+Fg+"]",Ug="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Hg="\\d+",Vg="[\\u2700-\\u27bf]",Wg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Kg="[^\\ud800-\\udfff"+Fg+Hg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Gg="\\ud83c[\\udffb-\\udfff]",Yg="[^\\ud800-\\udfff]",Xg="(?:\\ud83c[\\udde6-\\uddff]){2}",Zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Qg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Jg="(?:"+Wg+"|"+Kg+")",em="(?:"+Qg+"|"+Kg+")",tm="(?:"+Ug+"|"+Gg+")?",nm="[\\ufe0e\\ufe0f]?"+tm+"(?:\\u200d(?:"+[Yg,Xg,Zg].join("|")+")[\\ufe0e\\ufe0f]?"+tm+")*",rm="(?:"+[Vg,Xg,Zg].join("|")+")"+nm,im="(?:"+[Yg+Ug+"?",Ug,Xg,Zg,zg].join("|")+")",om=RegExp("['’]","g"),am=RegExp(Ug,"g"),sm=RegExp(Gg+"(?="+Gg+")|"+im+nm,"g"),lm=RegExp([Qg+"?"+Wg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[qg,Qg,"$"].join("|")+")",em+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[qg,Qg+Jg,"$"].join("|")+")",Qg+"?"+Jg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Qg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Hg,rm].join("|"),"g"),um=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),cm=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fm="object"==typeof r&&r&&r.Object===Object&&r,dm="object"==typeof self&&self&&self.Object===Object&&self,hm=fm||dm||Function("return this")(),pm=(Rg={"À":"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","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"ss"},function(e){return null==Rg?void 0:Rg[e]});function gm(e){return um.test(e)}function mm(e){return gm(e)?function(e){return e.match(sm)||[]}(e):function(e){return e.split("")}(e)}var vm=Object.prototype.toString,ym=hm.Symbol,bm=ym?ym.prototype:void 0,_m=bm?bm.toString:void 0;function wm(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==vm.call(e)}(e))return _m?_m.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function xm(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}(e,t,n)}function Om(e){return null==e?"":wm(e)}for(var Sm,Cm,km=(Sm=function(e,t,n){return t=t.toLowerCase(),e+(n?Em(Om(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}(function(e,t,n){return e=Om(e),void 0===(t=n?void 0:t)?function(e){return cm.test(e)}(e)?function(e){return e.match(lm)||[]}(e):function(e){return e.match(Bg)||[]}(e):e.match(t)||[]}(function(e){return(e=Om(e))&&e.replace($g,pm).replace(am,"")}(e).replace(om,"")),Sm,"")}),Em=(Cm="toUpperCase",function(e){var t=gm(e=Om(e))?mm(e):void 0,n=t?t[0]:e.charAt(0),r=t?xm(t,1).join(""):e.slice(1);return n[Cm]()+r}),Am=km,Tm="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Dm={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Mm={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Tm?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Pm={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Im=1;Im<20;Im++)Pm["f"+Im]=111+Im;function jm(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},i=(e=e.replace("++","+add")).split("+"),o=i.length;for(var a in Dm)r[Dm[a]]=!1;var s=!0,l=!1,u=void 0;try{for(var c,f=i[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var d=c.value,h=d.endsWith("?")&&d.length>1;h&&(d=d.slice(0,-1));var p=Nm(d),g=Dm[p];if(d.length>1&&!g&&!Mm[d]&&!Pm[p])throw new TypeError('Unknown modifier: "'+d+'"');1!==o&&g||(n?r.key=p:r.which=Lm(d)),g&&(r[g]=!h||null)}}catch(e){l=!0,u=e}finally{try{!s&&f.return&&f.return()}finally{if(l)throw u}}return r}(e,t)})),i=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return null==n?i:i(n)}function Lm(e){return e=Nm(e),Pm[e]||e.toUpperCase().charCodeAt(0)}function Nm(e){return e=e.toLowerCase(),Mm[e]||e}var Rm=jm,Bm=function(e,t){return jm(e,{byKey:!0},t)},$m=/^\s+|\s+$/g,Fm=/^[-+]0x[0-9a-f]+$/i,zm=/^0b[01]+$/i,qm=/^0o[0-7]+$/i,Um=parseInt,Hm="object"==typeof r&&r&&r.Object===Object&&r,Vm="object"==typeof self&&self&&self.Object===Object&&self,Wm=Hm||Vm||Function("return this")(),Km=Object.prototype.toString,Gm=Math.max,Ym=Math.min,Xm=function(){return Wm.Date.now()};function Zm(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qm(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Km.call(e)}(e))return NaN;if(Zm(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zm(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($m,"");var n=zm.test(e);return n||qm.test(e)?Um(e.slice(2),n?2:8):Fm.test(e)?NaN:+e}var Jm,ev=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){return u=e,s=setTimeout(m,t),c?h(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=o}function m(){var e=Xm();if(g(e))return v(e);s=setTimeout(m,function(e){var n=t-(e-l);return f?Ym(n,o-(e-u)):n}(e))}function v(e){return s=void 0,d&&r?h(e):(r=i=void 0,a)}function y(){var e=Xm(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return p(l);if(f)return s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=Qm(t)||0,Zm(n)&&(c=!!n.leading,o=(f="maxWait"in n)?Gm(Qm(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:v(Xm())},y},tv=o((function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",l="[object Function]",u="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",h="[object Promise]",p="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",D=/\w*$/,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[b]=I[_]=I[a]=I[s]=I[w]=I[x]=I[O]=I[S]=I[C]=I[c]=I[f]=I[d]=I[p]=I[g]=I[m]=I[v]=I[k]=I[E]=I[A]=I[T]=!0,I["[object Error]"]=I[l]=I[y]=!1;var j="object"==typeof r&&r&&r.Object===Object&&r,L="object"==typeof self&&self&&self.Object===Object&&self,N=j||L||Function("return this")(),R=t&&!t.nodeType&&t,B=R&&e&&!e.nodeType&&e,$=B&&B.exports===R;function F(e,t){return e.set(t[0],t[1]),e}function z(e,t){return e.add(t),e}function q(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function U(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function V(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var K=Array.prototype,G=Function.prototype,Y=Object.prototype,X=N["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=G.toString,J=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+Q.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=$?N.Buffer:void 0,re=N.Symbol,ie=N.Uint8Array,oe=V(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,le=K.splice,ue=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=V(Object.keys,Object),de=Re(N,"DataView"),he=Re(N,"Map"),pe=Re(N,"Promise"),ge=Re(N,"Set"),me=Re(N,"WeakMap"),ve=Re(Object,"create"),ye=qe(de),be=qe(he),_e=qe(pe),we=qe(ge),xe=qe(me),Oe=re?re.prototype:void 0,Se=Oe?Oe.valueOf:void 0;function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){this.__data__=new ke(e)}function Te(e,t){var n=He(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ve(e)}(e)&&J.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==o)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!J.call(e,a)||i&&("length"==a||Fe(a,r))||n.push(a);return n}function De(e,t,n){var r=e[t];J.call(e,t)&&Ue(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Me(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Pe(e,t,n,r,i,h,y){var M;if(r&&(M=h?r(e,i,h,y):r(e)),void 0!==M)return M;if(!Ge(e))return e;var P=He(e);if(P){if(M=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,M)}else{var j=$e(e),L=j==l||j==u;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(j==d||j==o||L&&!h){if(U(e))return h?e:{};if(M=function(e){return"function"!=typeof e.constructor||ze(e)?{}:(t=oe(e),Ge(t)?ae(t):{});var t}(L?{}:e),!t)return function(e,t){return Le(e,Be(e),t)}(e,function(e,t){return e&&Le(t,Ye(t),e)}(M,e))}else{if(!I[j])return h?e:{};M=function(e,t,n,r){var i=e.constructor;switch(t){case b:return je(e);case a:case s:return new i(+e);case _:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case x:case O:case S:case C:case k:case E:case A:case T:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return q(t?n(H(e),!0):H(e),F,new e.constructor)}(e,r,n);case f:case m:return new i(e);case p:return function(e){var t=new e.constructor(e.source,D.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return q(t?n(W(e),!0):W(e),z,new e.constructor)}(e,r,n);case v:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,j,Pe,t)}}y||(y=new Ae);var N=y.get(e);if(N)return N;if(y.set(e,M),!P)var R=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ye,Be)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,(function(i,o){R&&(i=e[o=i]),De(M,o,Pe(i,t,n,r,o,e,y))})),M}function Ie(e){return!(!Ge(e)||function(e){return!!Z&&Z in e}(e))&&(Ke(e)||U(e)?te:M).test(qe(e))}function je(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Le(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;De(n,a,void 0===s?e[a]:s)}return n}function Ne(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}Ce.prototype.clear=function(){this.__data__=ve?ve(null):{}},Ce.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ce.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Ce.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},ke.prototype.clear=function(){this.__data__=[]},ke.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)},ke.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Me(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ee.prototype.clear=function(){this.__data__={hash:new Ce,map:new(he||ke),string:new Ce}},Ee.prototype.delete=function(e){return Ne(this,e).delete(e)},Ee.prototype.get=function(e){return Ne(this,e).get(e)},Ee.prototype.has=function(e){return Ne(this,e).has(e)},Ee.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},Ae.prototype.clear=function(){this.__data__=new ke},Ae.prototype.delete=function(e){return this.__data__.delete(e)},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ee(r)}return n.set(e,t),this};var Be=ue?V(ue,Object):function(){return[]},$e=function(e){return ee.call(e)};function Fe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function ze(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function qe(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(de&&$e(new de(new ArrayBuffer(1)))!=_||he&&$e(new he)!=c||pe&&$e(pe.resolve())!=h||ge&&$e(new ge)!=g||me&&$e(new me)!=y)&&($e=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?qe(n):void 0;if(r)switch(r){case ye:return _;case be:return c;case _e:return h;case we:return g;case xe:return y}return t});var He=Array.isArray;function Ve(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!Ke(e)}var We=ce||function(){return!1};function Ke(e){var t=Ge(e)?ee.call(e):"";return t==l||t==u}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ve(e)?Te(e):function(e){if(!ze(e))return fe(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Pe(e,!0,!0)}}));function nv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rv=0;function iv(e){return"__private_"+rv+++"_"+e}function ov(e,t,n){const r=[];return e.forEach(e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach((e,t,i)=>{""!==e&&r.push(e),t<i.length-1&&r.push(n)})),r}
/**
 * Takes a string with placeholder variables like `%{smart_count} file selected`
 * and replaces it with values from options `{smart_count: 5}`
 *
 * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
 * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
 *
 * @param {string} phrase that needs interpolation, with placeholders
 * @param {object} options with values that will be used to replace placeholders
 * @returns {any[]} interpolated
 */function av(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const i of Object.keys(t))if("_"!==i){let e=t[i];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=ov(r,new RegExp(`%\\{${i}\\}`,"g"),e)}return r}var sv=(Jm=iv("apply"),class{constructor(e){Object.defineProperty(this,Jm,{value:lv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(nv(this,Jm)[Jm],this):nv(this,Jm)[Jm](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error("missing string: "+e);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return av(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return av(n,t)}});function lv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var uv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,o,a,s){var l=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),i=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],o=Object.keys(t),a=0,s=o.length;a<s;a++){var l=o[a];if("*"===l&&(n=n.concat(t[l])),2===i.length&&i[0]===l){n=n.concat(t[l]);break}}return n}(e);l.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,l,[n,r,i,o,a,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,o=r?r.length:0;i<o;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e},cv={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:fv}=cv,dv=e=>crypto.getRandomValues(new Uint8Array(e)),hv=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let o="";for(;;){let a=n(i),s=i;for(;s--;)if(o+=e[a[s]&r]||"",o.length===t)return o}}};var pv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>hv(e,t,dv),customRandom:hv,urlAlphabet:fv,random:dv},gv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i};function mv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}mv.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<o;t++)"*"!==i[t]&&(r=t<n.length&&i[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var vv=/[\/\+\.]/,yv=function(e,t){function n(t){var n=function(e,t,n){var r=new mv(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,vv);return n&&n.length>=2}return t?n(t.split(";")[0]):n},bv=0;function _v(e){return"__private_"+bv+++"_"+e}var wv=_v("publish");class xv{constructor(){Object.defineProperty(this,wv,{value:Ov}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,wv)[wv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ov(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(e=>{e(...t)})}xv.VERSION="2.0.3";var Sv=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Cv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function kv(e){let t="";return e.replace(/[^A-Z0-9]/gi,e=>(t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"))+t}var Ev=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,i]=n.split(".");return r=parseInt(r,10),i=parseInt(i,10),r<15||15===r&&i<15063||r>18||18===r&&i>=18218};function Av(e){return e<10?"0"+e:e.toString()}var Tv=function(){const e=new Date;return`${Av(e.getHours())}:${Av(e.getMinutes())}:${Av(e.getSeconds())}`},Dv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Tv()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Tv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Tv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Tv()}]`,...t)}}},Mv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Pv=pv;let Iv,jv;function Lv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nv=0;function Rv(e){return"__private_"+Nv+++"_"+e}const{nanoid:Bv}=Pv,{justErrorsLogger:$v,debugLogger:Fv}=Dv;class zv extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class qv extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Uv=Rv("plugins"),Hv=Rv("storeUnsubscribe"),Vv=Rv("emitter"),Wv=Rv("preProcessors"),Kv=Rv("uploaders"),Gv=Rv("postProcessors"),Yv=Rv("checkRestrictions"),Xv=Rv("checkMinNumberOfFiles"),Zv=Rv("checkRequiredMetaFieldsOnFile"),Qv=Rv("checkRequiredMetaFields"),Jv=Rv("showOrLogErrorAndThrow"),ey=Rv("assertNewUploadAllowed"),ty=Rv("checkAndCreateFileStateObject"),ny=Rv("startIfAutoProceed"),ry=Rv("addListeners"),iy=Rv("updateOnlineStatus"),oy=Rv("createUpload"),ay=Rv("getUpload"),sy=Rv("removeUpload"),ly=Rv("runUpload");Iv=Symbol.for("uppy test: getPlugins"),jv=Symbol.for("uppy test: createUpload");class uy{constructor(e){Object.defineProperty(this,ly,{value:xy}),Object.defineProperty(this,sy,{value:wy}),Object.defineProperty(this,ay,{value:_y}),Object.defineProperty(this,oy,{value:by}),Object.defineProperty(this,ry,{value:yy}),Object.defineProperty(this,ny,{value:vy}),Object.defineProperty(this,ty,{value:my}),Object.defineProperty(this,ey,{value:gy}),Object.defineProperty(this,Jv,{value:py}),Object.defineProperty(this,Qv,{value:hy}),Object.defineProperty(this,Zv,{value:dy}),Object.defineProperty(this,Xv,{value:fy}),Object.defineProperty(this,Yv,{value:cy}),Object.defineProperty(this,Uv,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Hv,{writable:!0,value:void 0}),Object.defineProperty(this,Vv,{writable:!0,value:uv()}),Object.defineProperty(this,Wv,{writable:!0,value:new Set}),Object.defineProperty(this,Kv,{writable:!0,value:new Set}),Object.defineProperty(this,Gv,{writable:!0,value:new Set}),Object.defineProperty(this,iy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Mv;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new xv,logger:$v,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Fv),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=rg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ev(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Lv(this,Hv)[Hv]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Lv(this,ry)[ry]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Lv(this,Vv)[Vv].emit(e,...n)}on(e,t){return Lv(this,Vv)[Vv].on(e,t),this}once(e,t){return Lv(this,Vv)[Vv].once(e,t),this}off(e,t){return Lv(this,Vv)[Vv].off(e,t),this}updateAll(e){this.iteratePlugins(t=>{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new sv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{const i={...t[r]};i.progress={...i.progress,...e},n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Lv(this,Wv)[Wv].add(e)}removePreProcessor(e){return Lv(this,Wv)[Wv].delete(e)}addPostProcessor(e){Lv(this,Gv)[Gv].add(e)}removePostProcessor(e){return Lv(this,Gv)[Gv].delete(e)}addUploader(e){Lv(this,Kv)[Kv].add(e)}removeUploader(e){return Lv(this,Kv)[Kv].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=r.filter(e=>e.progress.uploadStarted),l=r.filter(e=>e.isPaused),u=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),f=i.filter(e=>!e.isPaused),d=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:u,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:100===t&&u.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){try{return Lv(this,Yv)[Yv](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Lv(this,ey)[ey](e);const{files:t}=this.getState();let n=Lv(this,ty)[ty](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Lv(this,ny)[ny](),n.id}addFiles(e){Lv(this,ey)[ey]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Lv(this,ty)[ty](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach(e=>{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)}),n.length>0&&Lv(this,ny)[ny](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+="\n * "+t.message}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete i[e])}),Object.keys(o).forEach(e=>{const t=r[e].fileIDs.filter(s);0!==t.length?o[e]={...r[e],fileIDs:t}:delete o[e]});const l={currentUploads:o,files:i};0===Object.keys(i).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const u=Object.keys(a);u.forEach(e=>{this.emit("file-removed",a[e],t)}),u.length>5?this.log(`Removed ${u.length} files`):this.log("Removed files: "+u.join(", "))}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Lv(this,oy)[oy](t,{forceAllowNewUpload:!0});return Lv(this,ly)[ly](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Lv(this,oy)[oy]([e],{forceAllowNewUpload:!0});return Lv(this,ly)[ly](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){const t=100*e.length,r=n.reduce((e,t)=>e+t.progress.percentage,0),i=Math.round(r/t*100);return void this.setState({totalProgress:i})}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0);const i=r/t.length;r+=i*n.length;let o=0;t.forEach(e=>{o+=e.progress.bytesUploaded}),n.forEach(e=>{o+=i*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(o/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(r);if(i){const e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Lv(this,Uv)[Uv]?Lv(this,Uv)[Uv][n.type].push(n):Lv(this,Uv)[Uv][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Lv(this,Uv)[Uv])){const n=t.find(t=>t.id===e);if(null!=n)return n}}[Iv](e){return Lv(this,Uv)[Uv][e]}iteratePlugins(e){Object.values(Lv(this,Uv)[Uv]).flat(1).forEach(e)}removePlugin(e){this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Lv(this,Uv)[Uv][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Lv(this,Hv)[Hv](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Lv(this,iy)[iy]),window.removeEventListener("offline",Lv(this,iy)[iy]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Lv(this,ly)[ly](e):(Lv(this,sy)[sy](e),Promise.reject(new Error("Nonexistent upload")))}[jv](){return Lv(this,oy)[oy](...arguments)}addResultData(e,t){if(!Lv(this,ay)[ay](e))return void this.log("Not setting result for an upload that has been removed: "+e);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Lv(this,Uv)[Uv].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>{Lv(this,Xv)[Xv](t),Lv(this,Qv)[Qv](t)}).catch(e=>{Lv(this,Jv)[Jv](e)}).then(()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});const i=Lv(this,oy)[oy](r);return Lv(this,ly)[ly](i)}).catch(e=>{Lv(this,Jv)[Jv](e,{showInformer:!1})}))}}function cy(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.opts.restrictions;if(o&&t.length+1>o)throw new zv(""+this.i18n("youCanOnlyUploadX",{smart_count:o}));if(a&&!a.some(t=>t.indexOf("/")>-1?!!e.type&&yv(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase())){const e=a.join(", ");throw new zv(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size){let n=0;if(n+=e.size,t.forEach(e=>{n+=e.size}),n>i)throw new zv(this.i18n("exceedsSize",{size:gv(i),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new zv(this.i18n("exceedsSize",{size:gv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new zv(this.i18n("inferiorSize",{size:gv(r)}))}function fy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new zv(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}function dy(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let o=0;o<t.length;o++)if(!n.call(e.meta,t[o])||""===e.meta[t[o]]){const n=new zv(""+this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name}));r.push(n),i.push(t[o]),Lv(this,Jv)[Jv](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function hy(e){const t=Object.keys(e).flatMap(e=>{const t=this.getFile(e);return Lv(this,Zv)[Zv](t)});if(t.length)throw new qv(t,""+this.i18n("missingRequiredMetaField"))}function py(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=void 0===t?{}:t;const o="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let s=o;if(a&&(s+=" "+a),e.isRestriction?(this.log(s),this.emit("restriction-failed",r,e)):this.log(s,"error"),n&&this.info({message:o,details:a},"error",this.opts.infoTimeout),i)throw"object"==typeof e?e:new Error(e)}function gy(e){const{allowNewUpload:t}=this.getState();!1===t&&Lv(this,Jv)[Jv](new zv(this.i18n("noMoreFilesAllowed")),{file:e})}function my(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Sv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Cv?Cv[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),i=Sv(r).extension,o=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+="-"+kv(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+kv(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new zv(this.i18n("noDuplicates",{fileName:r}));Lv(this,Jv)[Jv](e,{file:t})}const s=t.meta||{};s.name=r,s.type=n;const l=Number.isFinite(t.data.size)?t.data.size:null;let u={source:t.source||"",id:a,name:r,extension:i||"",meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:l,uploadComplete:!1,uploadStarted:null},size:l,isRemote:o,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(u,e);!1===c?Lv(this,Jv)[Jv](new zv("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(u=c);try{const t=Object.keys(e).map(t=>e[t]);Lv(this,Yv)[Yv](u,t)}catch(e){Lv(this,Jv)[Jv](e,{file:u})}return u}function vy(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function yy(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=" "+e.details),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=" "+n.details),e.message=this.i18n("failedToUpload",{file:t.name}),Lv(this,Jv)[Jv](e,{throwErr:!1})}else Lv(this,Jv)[Jv](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Lv(this,Gv)[Gv].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log("Not setting progress for a file that has been removed: "+e.id)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log("Not setting progress for a file that has been removed: "+e.id);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&Lv(this,Zv)[Zv](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Lv(this,iy)[iy]),window.addEventListener("offline",Lv(this,iy)[iy]),setTimeout(Lv(this,iy)[iy],3e3))}function by(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const o=Bv();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function _y(e){const{currentUploads:t}=this.getState();return t[e]}function wy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function xy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,i=[...Lv(this,Wv)[Wv],...Lv(this,Kv)[Kv],...Lv(this,Gv)[Gv]];try{for(let o=r;o<i.length&&n;o++){const r=i[o],a={...n,step:o};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Lv(this,sy)[sy](e),t}if(n){n.fileIDs.forEach(e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});const r=n.fileIDs.map(e=>this.getFile(e)),i=r.filter(e=>!e.error),o=r.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let o;return n&&(o=n.result,this.emit("complete",o),Lv(this,sy)[sy](e)),null==o&&this.log("Not setting result for an upload that has been removed: "+e),o}uy.VERSION="2.1.3";var Oy=uy,Sy=o((function(e,t){var n,r,i,o,a,s,l,u,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,i,o,null)}function m(e,t,n,o,a){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function _(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return _(e)}}function w(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!x.__r++||l!==r.debounceRendering)&&((l=r.debounceRendering)||s)(x)}function x(){for(var e;x.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,i,o,a;e.__d&&(o=(i=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=h({},i)).__v=i.__v+1,D(a,i,r,t.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?b(i):o,i.__h),M(n,i),i.__e!=o&&_(i)))}))}function O(e,t,n,r,i,o,a,s,l,u){var d,h,p,g,y,_,w,x=r&&r.__k||f,O=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?m(null,g,null,null,g):Array.isArray(g)?m(v,{children:g},null,null,null):g.__b>0?m(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=x[d])||p&&g.key==p.key&&g.type===p.type)x[d]=void 0;else for(h=0;h<O;h++){if((p=x[h])&&g.key==p.key&&g.type===p.type){x[h]=void 0;break}p=null}D(e,g,p=p||c,i,o,a,s,l,u),y=g.__e,(h=g.ref)&&p.ref!=h&&(w||(w=[]),p.ref&&w.push(p.ref,null,g),w.push(h,g.__c||y,g)),null!=y?(null==_&&(_=y),"function"==typeof g.type&&g.__k===p.__k?g.__d=l=S(g,l,e):l=C(e,g,p,x,y,l),"function"==typeof n.type&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=e&&(l=b(p))}for(n.__e=_,d=O;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=b(r,d+1)),j(x[d],x[d]));if(w)for(d=0;d<w.length;d++)I(w[d],w[++d],w[++d])}function S(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):C(n,r,r,i,r.__e,t));return t}function C(e,t,n,r,i,o){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function k(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function E(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||k(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||k(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?T:A,o):e.removeEventListener(t,o?T:A,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function A(e){this.l[e.type+!1](r.event?r.event(e):e)}function T(e){this.l[e.type+!0](r.event?r.event(e):e)}function D(e,t,n,i,o,a,s,l,u){var c,f,d,p,g,m,b,_,w,x,S,C=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(c=r.__b)&&c(t);try{e:if("function"==typeof C){if(_=t.props,w=(c=C.contextType)&&i[c.__c],x=c?w?w.props.value:c.__:i,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in C&&C.prototype.render?t.__c=f=new C(_,x):(t.__c=f=new y(_,x),f.constructor=C,f.render=L),w&&w.sub(f),f.props=_,f.state||(f.state={}),f.context=x,f.__n=i,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=C.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,C.getDerivedStateFromProps(_,f.__s))),p=f.props,g=f.state,d)null==C.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==C.getDerivedStateFromProps&&_!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,x)||t.__v===n.__v){f.props=_,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,g,m)}))}f.context=x,f.props=_,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=h(h({},i),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(m=f.getSnapshotBeforeUpdate(p,g)),S=null!=c&&c.type===v&&null==c.key?c.props.children:c,O(e,Array.isArray(S)?S:[S],t,n,i,o,a,s,l,u),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=P(n.__e,t,n,i,o,a,s,u);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=a)&&(t.__e=l,t.__h=!!u,a[a.indexOf(l)]=null),r.__e(e,t,n)}}function M(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function P(e,t,r,i,o,a,s,l){var u,f,d,h=r.props,g=t.props,m=t.type,v=0;if("svg"===m&&(o=!0),null!=a)for(;v<a.length;v++)if((u=a[v])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,a[v]=null;break}if(null==e){if(null===m)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),a=null,l=!1}if(null===m)h===g||l&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(h=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!l){if(null!=a)for(h={},v=0;v<e.attributes.length;v++)h[e.attributes[v].name]=e.attributes[v].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||E(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||E(e,o,t[o],n[o],r)}(e,g,h,o,l),d)t.__k=[];else if(v=t.props.children,O(e,Array.isArray(v)?v:[v],t,r,i,o&&"foreignObject"!==m,a,s,a?a[0]:r.__k&&b(r,0),l),null!=a)for(v=a.length;v--;)null!=a[v]&&p(a[v]);l||("value"in g&&void 0!==(v=g.value)&&(v!==h.value||v!==e.value||"progress"===m&&!v)&&E(e,"value",v,h.value,!1),"checked"in g&&void 0!==(v=g.checked)&&v!==e.checked&&E(e,"checked",v,h.checked,!1))}return e}function I(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var i,o;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||I(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&j(i[o],t,"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__e=e.__d=void 0}function L(e,t,n){return this.constructor(e,n)}function N(e,t,i){var o,a,s;r.__&&r.__(e,t),a=(o="function"==typeof i)?null:i&&i.__k||t.__k,s=[],D(t,e=(!o&&i||t).__k=g(v,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!o&&i?[i]:a?null:t.firstChild?n.call(t.childNodes):null,s,!o&&i?i:a?a.__e:t.firstChild,o),M(s,e)}n=f.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,o=function(e){return null!=e&&void 0===e.constructor},y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},y.prototype.render=v,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,u=0,t.Component=y,t.Fragment=v,t.cloneElement=function(e,t,r){var i,o,a,s=h({},e.props);for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),m(e.type,s,i||e.key,o||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=o,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Cy=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},ky=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new sv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Ey(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ay=0;function Ty(e){return"__private_"+Ay+++"_"+e}const{render:Dy}=Sy;var My=Ty("updateUI");class Py extends ky{constructor(){super(...arguments),Object.defineProperty(this,My,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Cy(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Ey(this,My)[My]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=i,t||(t=Promise.resolve().then(()=>(t=null,e(...n)))),t}}(e=>{this.uppy.getPlugin(this.id)&&(Dy(this.render(e),t),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Dy(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let i;if("object"==typeof e&&e instanceof Py)i=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins(e=>{if(e instanceof t)return i=e,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(t),this.onMount(),this.el;this.uppy.log("Not installing "+n);let o=`Invalid target option given to ${n}.`;throw o+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(o)}update(e){var t,n;null!=this.el&&(null==(t=(n=Ey(this,My))[My])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Iy=Py;const{debugLogger:jy}=Dv;var Ly=Oy,Ny=Oy,Ry=Iy,By=ky,$y=jy;Ly.Uppy=Ny,Ly.UIPlugin=Ry,Ly.BasePlugin=By,Ly.debugLogger=$y;class Fy extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var zy=Fy,qy=function(){return fetch(...arguments).catch(e=>{throw"AbortError"===e.name?e:new zy(e)})};class Uy extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Hy,Vy,Wy,Ky,Gy,Yy=Uy;function Xy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zy=0;function Qy(e){return"__private_"+Zy+++"_"+e}async function Jy(e){if(401===e.status)throw new Yy;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var eb=(Vy=Qy("getPostResponseFunc"),Wy=Qy("getUrl"),Ky=Qy("errorHandler"),Gy=Hy=class e{constructor(e,t){Object.defineProperty(this,Ky,{value:nb}),Object.defineProperty(this,Wy,{value:tb}),Object.defineProperty(this,Vy,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Xy(this,Wy)[Wy](e),{method:"OPTIONS"}).then(e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map(e=>e.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(e=>(this.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(e=>{let[t,n]=e;return Object.keys(n).forEach(e=>{t.includes(e.toLowerCase())||(this.uppy.log("[CompanionClient] excluding disallowed header "+e),delete n[e])}),n})}get(e,t){return this.preflightAndHeaders(e).then(t=>qy(Xy(this,Wy)[Wy](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"})).then(Xy(this,Vy)[Vy](t)).then(Jy).catch(Xy(this,Ky)[Ky]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then(n=>qy(Xy(this,Wy)[Wy](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})).then(Xy(this,Vy)[Vy](n)).then(Jy).catch(Xy(this,Ky)[Ky](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then(n=>qy(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})).then(Xy(this,Vy)[Vy](n)).then(Jy).catch(Xy(this,Ky)[Ky](r,e))}},Hy.VERSION="2.0.4",Hy.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+Hy.VERSION},Gy);function tb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function nb(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Xy(this,Wy)[Wy](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var rb,ib,ob,ab,sb,lb={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})};let ub,cb;function fb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var db=0;function hb(e){return"__private_"+db+++"_"+e}var pb,gb,mb=(rb=hb("queued"),ib=hb("emitter"),ob=hb("isOpen"),ab=hb("socket"),sb=hb("handleMessage"),ub=Symbol.for("uppy test: getSocket"),cb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,rb,{writable:!0,value:[]}),Object.defineProperty(this,ib,{writable:!0,value:uv()}),Object.defineProperty(this,ob,{writable:!0,value:!1}),Object.defineProperty(this,ab,{writable:!0,value:void 0}),Object.defineProperty(this,sb,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return fb(this,ob)[ob]}[ub](){return fb(this,ab)[ab]}[cb](){return fb(this,rb)[rb]}open(){fb(this,ab)[ab]=new WebSocket(this.opts.target),fb(this,ab)[ab].onopen=()=>{for(fb(this,ob)[ob]=!0;fb(this,rb)[rb].length>0&&fb(this,ob)[ob];){const e=fb(this,rb)[rb].shift();this.send(e.action,e.payload)}},fb(this,ab)[ab].onclose=()=>{fb(this,ob)[ob]=!1},fb(this,ab)[ab].onmessage=fb(this,sb)[sb]}close(){var e;null==(e=fb(this,ab)[ab])||e.close()}send(e,t){fb(this,ob)[ob]?fb(this,ab)[ab].send(JSON.stringify({action:e,payload:t})):fb(this,rb)[rb].push({action:e,payload:t})}on(e,t){fb(this,ib)[ib].on(e,t)}emit(e,t){fb(this,ib)[ib].emit(e,t)}once(e,t){fb(this,ib)[ib].once(e,t)}}),vb={RequestClient:eb,Provider:class extends eb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log("[CompanionClient] unable to fetch preAuthToken "+e,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(this.id+"/logout").then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||lb}},SearchProvider:class extends eb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?"&"+t:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:mb},yb=rg((function(e,t,n){const{progress:r,bytesUploaded:i,bytesTotal:o}=t;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:i,bytesTotal:o}))}),300,{leading:!0,trailing:!0});function bb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _b=0;function wb(e){return"__private_"+_b+++"_"+e}var xb=(pb=wb("emitter"),gb=wb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,gb,{writable:!0,value:[]}),bb(this,pb)[pb]=e}on(e,t){return bb(this,gb)[gb].push([e,t]),bb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of bb(this,gb)[gb].splice(0))bb(this,pb)[pb].off(e,t)}});function Ob(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Sb=0;function Cb(e){return"__private_"+Sb+++"_"+e}var kb=Cb("aliveTimer"),Eb=Cb("isDone"),Ab=Cb("onTimedOut"),Tb=Cb("timeout"),Db=class{constructor(e,t){Object.defineProperty(this,kb,{writable:!0,value:void 0}),Object.defineProperty(this,Eb,{writable:!0,value:!1}),Object.defineProperty(this,Ab,{writable:!0,value:void 0}),Object.defineProperty(this,Tb,{writable:!0,value:void 0}),Ob(this,Tb)[Tb]=e,Ob(this,Ab)[Ab]=t}progress(){Ob(this,Eb)[Eb]||Ob(this,Tb)[Tb]>0&&(clearTimeout(Ob(this,kb)[kb]),Ob(this,kb)[kb]=setTimeout(Ob(this,Ab)[Ab],Ob(this,Tb)[Tb]))}done(){Ob(this,Eb)[Eb]||(clearTimeout(Ob(this,kb)[kb]),Ob(this,kb)[kb]=null,Ob(this,Eb)[Eb]=!0)}};function Mb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Pb=0;function Ib(e){return"__private_"+Pb+++"_"+e}function jb(){return new Error("Cancelled")}var Lb=Ib("activeRequests"),Nb=Ib("queuedHandlers"),Rb=Ib("call"),Bb=Ib("queueNext"),$b=Ib("next"),Fb=Ib("queue"),zb=Ib("dequeue");function qb(e){Mb(this,Lb)[Lb]+=1;let t,n=!1;try{t=e()}catch(e){throw Mb(this,Lb)[Lb]-=1,e}return{abort:()=>{n||(n=!0,Mb(this,Lb)[Lb]-=1,t(),Mb(this,Bb)[Bb]())},done:()=>{n||(n=!0,Mb(this,Lb)[Lb]-=1,Mb(this,Bb)[Bb]())}}}function Ub(){queueMicrotask(()=>Mb(this,$b)[$b]())}function Hb(){if(Mb(this,Lb)[Lb]>=this.limit)return;if(0===Mb(this,Nb)[Nb].length)return;const e=Mb(this,Nb)[Nb].shift(),t=Mb(this,Rb)[Rb](e.fn);e.abort=t.abort,e.done=t.done}function Vb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Mb(this,zb)[zb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Mb(this,Nb)[Nb].findIndex(e=>n.priority>e.priority);return-1===r?Mb(this,Nb)[Nb].push(n):Mb(this,Nb)[Nb].splice(r,0,n),n}function Wb(e){const t=Mb(this,Nb)[Nb].indexOf(e);-1!==t&&Mb(this,Nb)[Nb].splice(t,1)}var Kb,Gb,Yb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,zb,{value:Wb}),Object.defineProperty(this,Fb,{value:Vb}),Object.defineProperty(this,$b,{value:Hb}),Object.defineProperty(this,Bb,{value:Ub}),Object.defineProperty(this,Rb,{value:qb}),Object.defineProperty(this,Lb,{writable:!0,value:0}),Object.defineProperty(this,Nb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Mb(this,Lb)[Lb]<this.limit?Mb(this,Rb)[Rb](e):Mb(this,Fb)[Fb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];let a;const s=new Promise((r,o)=>{a=n.run(()=>{let t,n;try{n=Promise.resolve(e(...i))}catch(e){n=Promise.reject(e)}return n.then(e=>{t?o(t):(a.done(),r(e))},e=>{t?o(t):(a.done(),o(e))}),()=>{t=jb()}},t)});return s.abort=()=>{a.abort()},s}}},internalRateLimitedQueue:Symbol("__queue")},Xb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Zb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Qb}=Pv,{Provider:Jb,RequestClient:e_,Socket:t_}=vb,{RateLimitedQueue:n_,internalRateLimitedQueue:r_}=Yb;function i_(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Xb(e)?(n=new zy(n,e),n):(n.request=e,n)}function o_(e){return e.data.slice(0,e.data.size,e.meta.type)}var a_=(Gb=Kb=class extends ky{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Zb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Xb(t)&&(n=new zy(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),r_ in this.opts?this.requests=this.opts[r_]:this.requests=new n_(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=o_(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(e=>{const t=this.getOptions(e),r=o_(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((t,n)=>{this.uppy.emit("upload-started",e);const i=r.formData?this.createFormDataUpload(e,r):e.data,o=new XMLHttpRequest;this.uploaderEvents[e.id]=new xb(this.uppy);const a=new Db(r.timeout,()=>{o.abort(),l.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)}),s=Qb();o.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${s} started`)}),o.upload.addEventListener("progress",t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})}),o.addEventListener("load",i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),a.done(),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,o.responseText,o)){const n=r.getResponseData(o.responseText,o),a=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,s),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const u=r.getResponseData(o.responseText,o),c=i_(o,r.getResponseError(o.responseText,o)),f={status:i.target.status,body:u};return this.uppy.emit("upload-error",e,c,f),n(c)}),o.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${s} errored`),a.done(),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=i_(o,r.getResponseError(o.responseText,o));return this.uppy.emit("upload-error",e,t),n(t)}),o.open(r.method.toUpperCase(),r.endpoint,!0),o.withCredentials=r.withCredentials,""!==r.responseType&&(o.responseType=r.responseType);const l=this.requests.run(()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach(e=>{o.setRequestHeader(e,t.headers[e])}),o.send(i),()=>{a.done(),o.abort()}});this.onFileRemove(e.id,()=>{l.abort(),n(new Error("File removed"))}),this.onCancelAll(e.id,()=>{l.abort(),n(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(t=>{i[t]=e.meta[t]}),new(e.remote.providerOptions.provider?Jb:e_)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(i=>{const{token:o}=i,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),s=new t_({target:`${a}/api/${o}`,autoOpen:!1});this.uploaderEvents[e.id]=new xb(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",t=>yb(this,t,e)),s.on("success",r=>{const i=t.getResponseData(r.response.responseText,r.response),o=i[t.responseUrlFieldName],a={status:r.response.status,body:i,uploadURL:o};return this.uppy.emit("upload-success",e,a),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),s.on("error",n=>{const i=n.response,o=i?t.getResponseError(i.responseText,i):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,o),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(o)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(t=>{this.uppy.emit("upload-error",e,t),r(t)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:i}=this.opts,o=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...o||{}}),s=new XMLHttpRequest,l=new Db(this.opts.timeout,()=>{s.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));u(e),n(e)}),u=t=>{e.forEach(e=>{this.uppy.emit("upload-error",e,t)})};s.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),l.progress()}),s.upload.addEventListener("progress",t=>{l.progress(),t.lengthComputable&&e.forEach(e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})})}),s.addEventListener("load",r=>{if(l.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){const n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return e.forEach(e=>{this.uppy.emit("upload-success",e,i)}),t()}const i=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return i.request=s,u(i),n(i)}),s.addEventListener("error",()=>{l.done();const e=this.opts.getResponseError(s.responseText,s)||new Error("Upload error");return u(e),n(e)}),this.uppy.on("cancel-all",()=>{l.done(),s.abort()}),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(e=>{s.setRequestHeader(e,this.opts.headers[e])}),s.send(a),e.forEach(e=>{this.uppy.emit("upload-started",e)})})}uploadFiles(e){const t=e.map((t,n)=>{const r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)});return function(e){const t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map(e=>e.then(r,i))).then(()=>({successful:t,failed:n}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[r_]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(e=>this.uppy.getFile(e));if(this.opts.bundle){if(t.some(e=>e.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Kb.VERSION="2.0.6",Gb),s_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function l_(e){var t={exports:{}};return e(t,t.exports),t.exports}var u_,c_,f_=function(e){return e&&e.Math==Math&&e},d_=f_("object"==typeof globalThis&&globalThis)||f_("object"==typeof window&&window)||f_("object"==typeof self&&self)||f_("object"==typeof s_&&s_)||function(){return this}()||Function("return this")(),h_=Object.defineProperty,p_=function(e,t){try{h_(d_,e,{value:t,configurable:!0,writable:!0})}catch(o){d_[e]=t}return t},g_=d_["__core-js_shared__"]||p_("__core-js_shared__",{}),m_=l_((function(e){(e.exports=function(e,t){return g_[e]||(g_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),v_=Function.prototype,y_=v_.bind,b_=v_.call,__=y_&&y_.bind(b_),w_=y_?function(e){return e&&__(b_,e)}:function(e){return e&&function(){return b_.apply(e,arguments)}},x_=d_.TypeError,O_=function(e){if(null==e)throw x_("Can't call method on "+e);return e},S_=d_.Object,C_=function(e){return S_(O_(e))},k_=w_({}.hasOwnProperty),E_=Object.hasOwn||function(e,t){return k_(C_(e),t)},A_=0,T_=Math.random(),D_=w_(1..toString),M_=function(e){return"Symbol("+(void 0===e?"":e)+")_"+D_(++A_+T_,36)},P_=function(e){return"function"==typeof e},I_=function(e){return P_(e)?e:void 0},j_=function(e,t){return arguments.length<2?I_(d_[e]):d_[e]&&d_[e][t]},L_=j_("navigator","userAgent")||"",N_=d_.process,R_=d_.Deno,B_=N_&&N_.versions||R_&&R_.version,$_=B_&&B_.v8;$_&&(c_=(u_=$_.split("."))[0]>0&&u_[0]<4?1:+(u_[0]+u_[1])),!c_&&L_&&(!(u_=L_.match(/Edge\/(\d+)/))||u_[1]>=74)&&(u_=L_.match(/Chrome\/(\d+)/))&&(c_=+u_[1]);var F_=c_,z_=function(e){try{return!!e()}catch(e){return!0}},q_=!!Object.getOwnPropertySymbols&&!z_((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&F_&&F_<41})),U_=q_&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H_=m_("wks"),V_=d_.Symbol,W_=V_&&V_.for,K_=U_?V_:V_&&V_.withoutSetter||M_,G_=function(e){if(!E_(H_,e)||!q_&&"string"!=typeof H_[e]){var t="Symbol."+e;q_&&E_(V_,e)?H_[e]=V_[e]:H_[e]=U_&&W_?W_(t):K_(t)}return H_[e]},Y_={};Y_[G_("toStringTag")]="z";var X_="[object z]"===String(Y_),Z_=!z_((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q_=function(e){return"object"==typeof e?null!==e:P_(e)},J_=d_.document,ew=Q_(J_)&&Q_(J_.createElement),tw=function(e){return ew?J_.createElement(e):{}},nw=!Z_&&!z_((function(){return 7!=Object.defineProperty(tw("div"),"a",{get:function(){return 7}}).a})),rw=d_.String,iw=d_.TypeError,ow=function(e){if(Q_(e))return e;throw iw(rw(e)+" is not an object")},aw=Function.prototype.call,sw=aw.bind?aw.bind(aw):function(){return aw.apply(aw,arguments)},lw=w_({}.isPrototypeOf),uw=d_.Object,cw=U_?function(e){return"symbol"==typeof e}:function(e){var t=j_("Symbol");return P_(t)&&lw(t.prototype,uw(e))},fw=d_.String,dw=function(e){try{return fw(e)}catch(e){return"Object"}},hw=d_.TypeError,pw=function(e){if(P_(e))return e;throw hw(dw(e)+" is not a function")},gw=function(e,t){var n=e[t];return null==n?void 0:pw(n)},mw=d_.TypeError,vw=d_.TypeError,yw=G_("toPrimitive"),bw=function(e){var t=function(e,t){if(!Q_(e)||cw(e))return e;var n,r=gw(e,yw);if(r){if(void 0===t&&(t="default"),n=sw(r,e,t),!Q_(n)||cw(n))return n;throw vw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&P_(n=e.toString)&&!Q_(r=sw(n,e)))return r;if(P_(n=e.valueOf)&&!Q_(r=sw(n,e)))return r;if("string"!==t&&P_(n=e.toString)&&!Q_(r=sw(n,e)))return r;throw mw("Can't convert object to primitive value")}(e,t)}(e,"string");return cw(t)?t:t+""},_w=d_.TypeError,ww=Object.defineProperty,xw={f:Z_?ww:function(e,t,n){if(ow(e),t=bw(t),ow(n),nw)try{return ww(e,t,n)}catch(e){}if("get"in n||"set"in n)throw _w("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ow=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sw=Z_?function(e,t,n){return xw.f(e,t,Ow(1,n))}:function(e,t,n){return e[t]=n,e},Cw=w_(Function.toString);P_(g_.inspectSource)||(g_.inspectSource=function(e){return Cw(e)});var kw,Ew,Aw,Tw=g_.inspectSource,Dw=d_.WeakMap,Mw=P_(Dw)&&/native code/.test(Tw(Dw)),Pw=m_("keys"),Iw=function(e){return Pw[e]||(Pw[e]=M_(e))},jw={},Lw=d_.TypeError,Nw=d_.WeakMap;if(Mw||g_.state){var Rw=g_.state||(g_.state=new Nw),Bw=w_(Rw.get),$w=w_(Rw.has),Fw=w_(Rw.set);kw=function(e,t){if($w(Rw,e))throw new Lw("Object already initialized");return t.facade=e,Fw(Rw,e,t),t},Ew=function(e){return Bw(Rw,e)||{}},Aw=function(e){return $w(Rw,e)}}else{var zw=Iw("state");jw[zw]=!0,kw=function(e,t){if(E_(e,zw))throw new Lw("Object already initialized");return t.facade=e,Sw(e,zw,t),t},Ew=function(e){return E_(e,zw)?e[zw]:{}},Aw=function(e){return E_(e,zw)}}var qw={set:kw,get:Ew,has:Aw,enforce:function(e){return Aw(e)?Ew(e):kw(e,{})},getterFor:function(e){return function(t){var n;if(!Q_(t)||(n=Ew(t)).type!==e)throw Lw("Incompatible receiver, "+e+" required");return n}}},Uw=Function.prototype,Hw=Z_&&Object.getOwnPropertyDescriptor,Vw=E_(Uw,"name"),Ww={EXISTS:Vw,PROPER:Vw&&"something"===function(){}.name,CONFIGURABLE:Vw&&(!Z_||Z_&&Hw(Uw,"name").configurable)},Kw=l_((function(e){var t=Ww.CONFIGURABLE,n=qw.get,r=qw.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;P_(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!E_(o,"name")||t&&o.name!==f)&&Sw(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==d_?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:Sw(e,n,o)):u?e[n]=o:p_(n,o)})(Function.prototype,"toString",(function(){return P_(this)&&n(this).source||Tw(this)}))})),Gw=w_({}.toString),Yw=w_("".slice),Xw=function(e){return Yw(Gw(e),8,-1)},Zw=G_("toStringTag"),Qw=d_.Object,Jw="Arguments"==Xw(function(){return arguments}()),ex=X_?Xw:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qw(e),Zw))?n:Jw?Xw(t):"Object"==(r=Xw(t))&&P_(t.callee)?"Arguments":r},tx=X_?{}.toString:function(){return"[object "+ex(this)+"]"};X_||Kw(Object.prototype,"toString",tx,{unsafe:!0});var nx={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},rx=tw("span").classList,ix=rx&&rx.constructor&&rx.constructor.prototype,ox=ix===Object.prototype?void 0:ix,ax=w_(w_.bind),sx=function(e,t){return pw(e),void 0===t?e:ax?ax(e,t):function(){return e.apply(t,arguments)}},lx=d_.Object,ux=w_("".split),cx=z_((function(){return!lx("z").propertyIsEnumerable(0)}))?function(e){return"String"==Xw(e)?ux(e,""):lx(e)}:lx,fx=Math.ceil,dx=Math.floor,hx=function(e){var t=+e;return t!=t||0===t?0:(t>0?dx:fx)(t)},px=Math.min,gx=function(e){return e>0?px(hx(e),9007199254740991):0},mx=function(e){return gx(e.length)},vx=Array.isArray||function(e){return"Array"==Xw(e)},yx=function(){},bx=[],_x=j_("Reflect","construct"),wx=/^\s*(?:class|function)\b/,xx=w_(wx.exec),Ox=!wx.exec(yx),Sx=function(e){if(!P_(e))return!1;try{return _x(yx,bx,e),!0}catch(e){return!1}},Cx=!_x||z_((function(){var e;return Sx(Sx.call)||!Sx(Object)||!Sx((function(){e=!0}))||e}))?function(e){if(!P_(e))return!1;switch(ex(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ox||!!xx(wx,Tw(e))}:Sx,kx=G_("species"),Ex=d_.Array,Ax=function(e,t){return new(function(e){var t;return vx(e)&&(t=e.constructor,(Cx(t)&&(t===Ex||vx(t.prototype))||Q_(t)&&null===(t=t[kx]))&&(t=void 0)),void 0===t?Ex:t}(e))(0===t?0:t)},Tx=w_([].push),Dx=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=C_(l),g=cx(p),m=sx(u,c),v=mx(g),y=0,b=f||Ax,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Tx(_,d)}else switch(e){case 4:return!1;case 7:Tx(_,d)}return o?-1:r||i?i:_}},Mx={forEach:Dx(0),map:Dx(1),filter:Dx(2),some:Dx(3),every:Dx(4),find:Dx(5),findIndex:Dx(6),filterReject:Dx(7)},Px=function(e,t){var n=[][e];return!!n&&z_((function(){n.call(null,t||function(){throw 1},1)}))},Ix=Mx.forEach,jx=Px("forEach")?[].forEach:function(e){return Ix(this,e,arguments.length>1?arguments[1]:void 0)},Lx=function(e){if(e&&e.forEach!==jx)try{Sw(e,"forEach",jx)}catch(i){e.forEach=jx}};for(var Nx in nx)nx[Nx]&&Lx(d_[Nx]&&d_[Nx].prototype);Lx(ox);var Rx={}.propertyIsEnumerable,Bx=Object.getOwnPropertyDescriptor,$x=Bx&&!Rx.call({1:2},1)?function(e){var t=Bx(this,e);return!!t&&t.enumerable}:Rx,Fx={f:$x},zx=function(e){return cx(O_(e))},qx=Object.getOwnPropertyDescriptor,Ux={f:Z_?qx:function(e,t){if(e=zx(e),t=bw(t),nw)try{return qx(e,t)}catch(e){}if(E_(e,t))return Ow(!sw(Fx.f,e,t),e[t])}},Hx=Math.max,Vx=Math.min,Wx=function(e,t){var n=hx(e);return n<0?Hx(n+t,0):Vx(n,t)},Kx=function(e){return function(t,n,r){var i,o=zx(t),a=mx(o),s=Wx(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Gx={includes:Kx(!0),indexOf:Kx(!1)},Yx=Gx.indexOf,Xx=w_([].push),Zx=function(e,t){var n,r=zx(e),i=0,o=[];for(n in r)!E_(jw,n)&&E_(r,n)&&Xx(o,n);for(;t.length>i;)E_(r,n=t[i++])&&(~Yx(o,n)||Xx(o,n));return o},Qx=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jx=Qx.concat("length","prototype"),eO={f:Object.getOwnPropertyNames||function(e){return Zx(e,Jx)}},tO={f:Object.getOwnPropertySymbols},nO=w_([].concat),rO=j_("Reflect","ownKeys")||function(e){var t=eO.f(ow(e)),n=tO.f;return n?nO(t,n(e)):t},iO=function(e,t){for(var n=rO(t),r=xw.f,i=Ux.f,o=0;o<n.length;o++){var a=n[o];E_(e,a)||r(e,a,i(t,a))}},oO=/#|\.prototype\./,aO=function(e,t){var n=lO[sO(e)];return n==cO||n!=uO&&(P_(t)?z_(t):!!t)},sO=aO.normalize=function(e){return String(e).replace(oO,".").toLowerCase()},lO=aO.data={},uO=aO.NATIVE="N",cO=aO.POLYFILL="P",fO=aO,dO=Ux.f,hO=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?d_:u?d_[s]||p_(s,{}):(d_[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=dO(n,r))&&a.value:n[r],!fO(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;iO(o,i)}(e.sham||i&&i.sham)&&Sw(o,"sham",!0),Kw(n,r,o,e)}},pO=Object.keys||function(e){return Zx(e,Qx)},gO=z_((function(){pO(1)}));
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function mO(e){return"[object Object]"===Object.prototype.toString.call(e)}hO({target:"Object",stat:!0,forced:gO},{keys:function(e){return pO(C_(e))}});var vO={isHistory(e){return!1!==mO(t=e)&&(void 0===(n=t.constructor)||!1!==mO(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||zf.isOperationList(e.redos[0]))&&(0===e.undos.length||zf.isOperationList(e.undos[0]));var t,n,r}},yO=new WeakMap,bO=new WeakMap,_O={isHistoryEditor:e=>vO.isHistory(e.history)&&Pf.isEditor(e),isMerging:e=>bO.get(e),isSaving:e=>yO.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=_O.isMerging(e);bO.set(e,!1),t(),bO.set(e,n)},withoutSaving(e,t){var n=_O.isSaving(e);yO.set(e,!1),t(),yO.set(e,n)}},wO=d_.String,xO=function(e){if("Symbol"===ex(e))throw TypeError("Cannot convert a Symbol value to a string");return wO(e)},OO=function(){var e=ow(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},SO=Ww.PROPER,CO=RegExp.prototype,kO=CO.toString,EO=w_(OO),AO=z_((function(){return"/a/b"!=kO.call({source:"a",flags:"b"})})),TO=SO&&"toString"!=kO.name;(AO||TO)&&Kw(RegExp.prototype,"toString",(function(){var e=ow(this),t=xO(e.source),n=e.flags;return"/"+t+"/"+xO(void 0===n&&lw(CO,e)&&!("flags"in CO)?EO(e):n)}),{unsafe:!0});var DO,MO=Z_?Object.defineProperties:function(e,t){ow(e);for(var n,r=zx(t),i=pO(t),o=i.length,a=0;o>a;)xw.f(e,n=i[a++],r[n]);return e},PO=j_("document","documentElement"),IO=Iw("IE_PROTO"),jO=function(){},LO=function(e){return"<script>"+e+"<\/script>"},NO=function(e){e.write(LO("")),e.close();var t=e.parentWindow.Object;return e=null,t},RO=function(){try{DO=new ActiveXObject("htmlfile")}catch(e){}var e,t;RO="undefined"!=typeof document?document.domain&&DO?NO(DO):((t=tw("iframe")).style.display="none",PO.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(LO("document.F=Object")),e.close(),e.F):NO(DO);for(var n=Qx.length;n--;)delete RO.prototype[Qx[n]];return RO()};jw[IO]=!0;var BO=Object.create||function(e,t){var n;return null!==e?(jO.prototype=ow(e),n=new jO,jO.prototype=null,n[IO]=e):n=RO(),void 0===t?n:MO(n,t)},$O=G_("unscopables"),FO=Array.prototype;null==FO[$O]&&xw.f(FO,$O,{configurable:!0,value:BO(null)});var zO=function(e){FO[$O][e]=!0},qO=Gx.includes;hO({target:"Array",proto:!0},{includes:function(e){return qO(this,e,arguments.length>1?arguments[1]:void 0)}}),zO("includes");var UO=G_("match"),HO=function(e){var t;return Q_(e)&&(void 0!==(t=e[UO])?!!t:"RegExp"==Xw(e))},VO=d_.TypeError,WO=function(e){if(HO(e))throw VO("The method doesn't accept regular expressions");return e},KO=G_("match"),GO=function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[KO]=!1,"/./"[e](t)}catch(e){}}return!1},YO=w_("".indexOf);hO({target:"String",proto:!0,forced:!GO("includes")},{includes:function(e){return!!~YO(xO(O_(this)),xO(WO(e)),arguments.length>1?arguments[1]:void 0)}});var XO=/"/g,ZO=w_("".replace);hO({target:"String",proto:!0,forced:z_((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=xO(O_(this)),r="<a",(r+=' name="'+ZO(xO(t),XO,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var QO=function(e,t,n){var r,i;ow(e);try{if(!(r=gw(e,"return"))){if("throw"===t)throw n;return n}r=sw(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return ow(r),n},JO=function(e,t,n,r){try{return r?t(ow(n)[0],n[1]):t(n)}catch(t){QO(e,"throw",t)}},eS={},tS=G_("iterator"),nS=Array.prototype,rS=function(e){return void 0!==e&&(eS.Array===e||nS[tS]===e)},iS=function(e,t,n){var r=bw(t);r in e?xw.f(e,r,Ow(0,n)):e[r]=n},oS=G_("iterator"),aS=function(e){if(null!=e)return gw(e,oS)||gw(e,"@@iterator")||eS[ex(e)]},sS=d_.TypeError,lS=function(e,t){var n=arguments.length<2?aS(e):t;if(pw(n))return ow(sw(n,e));throw sS(dw(e)+" is not iterable")},uS=d_.Array,cS=G_("iterator"),fS=!1;try{var dS=0,hS={next:function(){return{done:!!dS++}},return:function(){fS=!0}};hS[cS]=function(){return this},Array.from(hS,(function(){throw 2}))}catch(RE){}var pS=function(e,t){if(!t&&!fS)return!1;var n=!1;try{var r={};r[cS]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},gS=!pS((function(e){Array.from(e)}));hO({target:"Array",stat:!0,forced:gS},{from:function(e){var t=C_(e),n=Cx(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=sx(i,r>2?arguments[2]:void 0));var a,s,l,u,c,f,d=aS(t),h=0;if(!d||this==uS&&rS(d))for(a=mx(t),s=n?new this(a):uS(a);a>h;h++)f=o?i(t[h],h):t[h],iS(s,h,f);else for(c=(u=lS(t,d)).next,s=n?new this:[];!(l=sw(c,u)).done;h++)f=o?JO(u,i,[l.value,h],!0):l.value,iS(s,h,f);return s.length=h,s}});var mS,vS,yS,bS=w_("".charAt),_S=w_("".charCodeAt),wS=w_("".slice),xS=function(e){return function(t,n){var r,i,o=xO(O_(t)),a=hx(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=_S(o,a))<55296||r>56319||a+1===s||(i=_S(o,a+1))<56320||i>57343?e?bS(o,a):r:e?wS(o,a,a+2):i-56320+(r-55296<<10)+65536}},OS={codeAt:xS(!1),charAt:xS(!0)},SS=!z_((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),CS=Iw("IE_PROTO"),kS=d_.Object,ES=kS.prototype,AS=SS?kS.getPrototypeOf:function(e){var t=C_(e);if(E_(t,CS))return t[CS];var n=t.constructor;return P_(n)&&t instanceof n?n.prototype:t instanceof kS?ES:null},TS=G_("iterator"),DS=!1;[].keys&&("next"in(yS=[].keys())?(vS=AS(AS(yS)))!==Object.prototype&&(mS=vS):DS=!0);var MS=null==mS||z_((function(){var e={};return mS[TS].call(e)!==e}));MS&&(mS={}),P_(mS[TS])||Kw(mS,TS,(function(){return this}));var PS={IteratorPrototype:mS,BUGGY_SAFARI_ITERATORS:DS},IS=xw.f,jS=G_("toStringTag"),LS=function(e,t,n){e&&!E_(e=n?e:e.prototype,jS)&&IS(e,jS,{configurable:!0,value:t})},NS=PS.IteratorPrototype,RS=function(){return this},BS=d_.String,$S=d_.TypeError,FS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return ow(n),function(e){if("object"==typeof e||P_(e))return e;throw $S("Can't set "+BS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zS=Ww.PROPER,qS=Ww.CONFIGURABLE,US=PS.IteratorPrototype,HS=PS.BUGGY_SAFARI_ITERATORS,VS=G_("iterator"),WS=function(){return this},KS=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=BO(NS,{next:Ow(1,n)}),LS(e,i,!1),eS[i]=RS}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!HS&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[VS]||h["@@iterator"]||i&&h[i],g=!HS&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=AS(m.call(new e)))!==Object.prototype&&s.next&&(AS(s)!==US&&(FS?FS(s,US):P_(s[VS])||Kw(s,VS,WS)),LS(s,f,!0)),zS&&"values"==i&&p&&"values"!==p.name&&(qS?Sw(h,"name","values"):(d=!0,g=function(){return sw(p,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(HS||d||!(u in h))&&Kw(h,u,l[u]);else hO({target:t,proto:!0,forced:HS||d},l);return h[VS]!==g&&Kw(h,VS,g,{name:i}),eS[t]=g,l},GS=OS.charAt,YS=qw.set,XS=qw.getterFor("String Iterator");KS(String,"String",(function(e){YS(this,{type:"String Iterator",string:xO(e),index:0})}),(function(){var e,t=XS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=GS(n,r),t.index+=e.length,{value:e,done:!1})}));var ZS,QS=Ux.f,JS=w_("".endsWith),eC=w_("".slice),tC=Math.min,nC=GO("endsWith"),rC=!(nC||(ZS=QS(String.prototype,"endsWith"),!ZS||ZS.writable));hO({target:"String",proto:!0,forced:!rC&&!nC},{endsWith:function(e){var t=xO(O_(this));WO(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:tC(gx(n),r),o=xO(e);return JS?JS(t,o,i):eC(t,i-o.length,i)===o}});var iC=w_([].join),oC=cx!=Object,aC=Px("join",",");hO({target:"Array",proto:!0,forced:oC||!aC},{join:function(e){return iC(zx(this),void 0===e?",":e)}});var sC=G_("species"),lC=function(e){return F_>=51||!z_((function(){var t=[];return(t.constructor={})[sC]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},uC=Mx.map,cC=lC("map");hO({target:"Array",proto:!0,forced:!cC},{map:function(e){return uC(this,e,arguments.length>1?arguments[1]:void 0)}});var fC=d_.RegExp,dC=z_((function(){var e=fC("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),hC=dC||z_((function(){return!fC("a","y").sticky})),pC={BROKEN_CARET:dC||z_((function(){var e=fC("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:hC,UNSUPPORTED_Y:dC},gC=d_.RegExp,mC=z_((function(){var e=gC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),vC=d_.RegExp,yC=z_((function(){var e=vC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bC=qw.get,_C=m_("native-string-replace",String.prototype.replace),wC=RegExp.prototype.exec,xC=wC,OC=w_("".charAt),SC=w_("".indexOf),CC=w_("".replace),kC=w_("".slice),EC=function(){var e=/a/,t=/b*/g;return sw(wC,e,"a"),sw(wC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),AC=pC.BROKEN_CARET,TC=void 0!==/()??/.exec("")[1];(EC||TC||AC||mC||yC)&&(xC=function(e){var t,n,r,i,o,a,s,l=this,u=bC(l),c=xO(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=sw(xC,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=AC&&l.sticky,p=sw(OO,l),g=l.source,m=0,v=c;if(h&&(p=CC(p,"y",""),-1===SC(p,"g")&&(p+="g"),v=kC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==OC(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),TC&&(n=new RegExp("^"+g+"$(?!\\s)",p)),EC&&(r=l.lastIndex),i=sw(wC,h?n:l,v),h?i?(i.input=kC(i.input,m),i[0]=kC(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:EC&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),TC&&i&&i.length>1&&sw(_C,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=BO(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var DC=xC;hO({target:"RegExp",proto:!0,forced:/./.exec!==DC},{exec:DC});var MC=Function.prototype,PC=MC.apply,IC=MC.bind,jC=MC.call,LC="object"==typeof Reflect&&Reflect.apply||(IC?jC.bind(PC):function(){return jC.apply(PC,arguments)}),NC=G_("species"),RC=RegExp.prototype,BC=function(e,t,n,r){var i=G_(e),o=!z_((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!z_((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[NC]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=w_(/./[i]),l=t(i,""[e],(function(e,t,n,r,i){var a=w_(e),l=t.exec;return l===DC||l===RC.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Kw(String.prototype,e,l[0]),Kw(RC,i,l[1])}r&&Sw(RC[i],"sham",!0)},$C=OS.charAt,FC=function(e,t,n){return t+(n?$C(e,t).length:1)},zC=Math.floor,qC=w_("".charAt),UC=w_("".replace),HC=w_("".slice),VC=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,WC=/\$([$&'`]|\d{1,2})/g,KC=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=WC;return void 0!==i&&(i=C_(i),l=VC),UC(o,l,(function(o,l){var u;switch(qC(l,0)){case"$":return"$";case"&":return e;case"`":return HC(t,0,n);case"'":return HC(t,a);case"<":u=i[HC(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var f=zC(c/10);return 0===f?o:f<=s?void 0===r[f-1]?qC(l,1):r[f-1]+qC(l,1):o}u=r[c-1]}return void 0===u?"":u}))},GC=d_.TypeError,YC=function(e,t){var n=e.exec;if(P_(n)){var r=sw(n,e,t);return null!==r&&ow(r),r}if("RegExp"===Xw(e))return sw(DC,e,t);throw GC("RegExp#exec called on incompatible receiver")},XC=G_("replace"),ZC=Math.max,QC=Math.min,JC=w_([].concat),ek=w_([].push),tk=w_("".indexOf),nk=w_("".slice),rk="$0"==="a".replace(/./,"$0"),ik=!!/./[XC]&&""===/./[XC]("a","$0");BC("replace",(function(e,t,n){var r=ik?"$":"$0";return[function(e,n){var r=O_(this),i=null==e?void 0:gw(e,XC);return i?sw(i,e,r,n):sw(t,xO(r),e,n)},function(e,i){var o=ow(this),a=xO(e);if("string"==typeof i&&-1===tk(i,r)&&-1===tk(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=P_(i);l||(i=xO(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var f=[];;){var d=YC(o,a);if(null===d)break;if(ek(f,d),!u)break;""===xO(d[0])&&(o.lastIndex=FC(a,gx(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v=xO((d=f[m])[0]),y=ZC(QC(hx(d.index),a.length),0),b=[],_=1;_<d.length;_++)ek(b,void 0===(h=d[_])?h:String(h));var w=d.groups;if(l){var x=JC([v],b,y,a);void 0!==w&&ek(x,w);var O=xO(LC(i,void 0,x))}else O=KC(v,a,y,b,w,i);y>=g&&(p+=nk(a,g,y)+O,g=y+v.length)}return p+nk(a,g)}]}),!!z_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!rk||ik);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var ok=function(e,t){return ok=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])},ok(e,t)};function ak(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}ok(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sk=function(){return sk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},sk.apply(this,arguments)};function lk(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function uk(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function ck(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var fk=0,dk=function(){this.id=""+fk++},hk=qw.set,pk=qw.getterFor("Array Iterator"),gk=KS(Array,"Array",(function(e,t){hk(this,{type:"Array Iterator",target:zx(e),index:0,kind:t})}),(function(){var e=pk(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");eS.Arguments=eS.Array,zO("keys"),zO("values"),zO("entries");var mk=function(e,t,n){for(var r in t)Kw(e,r,t[r],n);return e},vk=d_.Array,yk=Math.max,bk=function(e,t,n){for(var r=mx(e),i=Wx(t,r),o=Wx(void 0===n?r:n,r),a=vk(yk(o-i,0)),s=0;i<o;i++,s++)iS(a,s,e[i]);return a.length=s,a},_k=eO.f,wk="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],xk={f:function(e){return wk&&"Window"==Xw(e)?function(e){try{return _k(e)}catch(e){return bk(wk)}}(e):_k(zx(e))}},Ok=z_((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Sk=Object.isExtensible,Ck=z_((function(){Sk(1)}))||Ok?function(e){return!!Q_(e)&&(!Ok||"ArrayBuffer"!=Xw(e))&&(!Sk||Sk(e))}:Sk,kk=!z_((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ek=l_((function(e){var t=xw.f,n=!1,r=M_("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=eO.f,t=w_([].splice),i={};i[r]=1,e(i).length&&(eO.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t(i,o,1);break}return i},hO({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:xk.f}))},fastKey:function(e,t){if(!Q_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!E_(e,r)){if(!Ck(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!E_(e,r)){if(!Ck(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return kk&&n&&Ck(e)&&!E_(e,r)&&o(e),e}};jw[r]=!0})),Ak=d_.TypeError,Tk=function(e,t){this.stopped=e,this.result=t},Dk=Tk.prototype,Mk=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),p=sx(t,c),g=function(e){return r&&QO(r,"normal",e),new Tk(!0,e)},m=function(e){return f?(ow(e),h?p(e[0],e[1],g):p(e[0],e[1])):h?p(e,g):p(e)};if(d)r=e;else{if(!(i=aS(e)))throw Ak(dw(e)+" is not iterable");if(rS(i)){for(o=0,a=mx(e);a>o;o++)if((s=m(e[o]))&&lw(Dk,s))return s;return new Tk(!1)}r=lS(e,i)}for(l=r.next;!(u=sw(l,r)).done;){try{s=m(u.value)}catch(e){QO(r,"throw",e)}if("object"==typeof s&&s&&lw(Dk,s))return s}return new Tk(!1)},Pk=d_.TypeError,Ik=function(e,t){if(lw(t,e))return e;throw Pk("Incorrect invocation")},jk=function(e,t,n){var r,i;return FS&&P_(r=t.constructor)&&r!==n&&Q_(i=r.prototype)&&i!==n.prototype&&FS(e,i),e},Lk=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=d_[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=w_(s[e]);Kw(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!Q_(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!Q_(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!Q_(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(fO(e,!P_(a)||!(i||s.forEach&&!z_((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,o),Ek.enable();else if(fO(e,!0)){var f=new l,d=f[o](i?{}:-0,1)!=f,h=z_((function(){f.has(1)})),p=pS((function(e){new a(e)})),g=!i&&z_((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((l=t((function(e,t){Ik(e,s);var n=jk(new a,e,l);return null!=t&&Mk(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,hO({global:!0,forced:l!=a},u),LS(l,e),i||n.setStrong(l,e,r),l},Nk=Ek.getWeakData,Rk=qw.set,Bk=qw.getterFor,$k=Mx.find,Fk=Mx.findIndex,zk=w_([].splice),qk=0,Uk=function(e){return e.frozen||(e.frozen=new Hk)},Hk=function(){this.entries=[]},Vk=function(e,t){return $k(e.entries,(function(e){return e[0]===t}))};Hk.prototype={get:function(e){var t=Vk(this,e);if(t)return t[1]},has:function(e){return!!Vk(this,e)},set:function(e,t){var n=Vk(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Fk(this.entries,(function(t){return t[0]===e}));return~t&&zk(this.entries,t,1),!!~t}};var Wk,Kk={getConstructor:function(e,t,n,r){var i=e((function(e,i){Ik(e,o),Rk(e,{type:t,id:qk++,frozen:void 0}),null!=i&&Mk(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=Bk(t),s=function(e,t,n){var r=a(e),i=Nk(ow(t),!0);return!0===i?Uk(r).set(t,n):i[r.id]=n,e};return mk(o,{delete:function(e){var t=a(this);if(!Q_(e))return!1;var n=Nk(e);return!0===n?Uk(t).delete(e):n&&E_(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Q_(e))return!1;var n=Nk(e);return!0===n?Uk(t).has(e):n&&E_(n,t.id)}}),mk(o,n?{get:function(e){var t=a(this);if(Q_(e)){var n=Nk(e);return!0===n?Uk(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},Gk=qw.enforce,Yk=!d_.ActiveXObject&&"ActiveXObject"in d_,Xk=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Zk=Lk("WeakMap",Xk,Kk);if(Mw&&Yk){Wk=Kk.getConstructor(Xk,"WeakMap",!0),Ek.enable();var Qk=Zk.prototype,Jk=w_(Qk.delete),eE=w_(Qk.has),tE=w_(Qk.get),nE=w_(Qk.set);mk(Qk,{delete:function(e){if(Q_(e)&&!Ck(e)){var t=Gk(this);return t.frozen||(t.frozen=new Wk),Jk(this,e)||t.frozen.delete(e)}return Jk(this,e)},has:function(e){if(Q_(e)&&!Ck(e)){var t=Gk(this);return t.frozen||(t.frozen=new Wk),eE(this,e)||t.frozen.has(e)}return eE(this,e)},get:function(e){if(Q_(e)&&!Ck(e)){var t=Gk(this);return t.frozen||(t.frozen=new Wk),eE(this,e)?tE(this,e):t.frozen.get(e)}return tE(this,e)},set:function(e,t){if(Q_(e)&&!Ck(e)){var n=Gk(this);n.frozen||(n.frozen=new Wk),eE(this,e)?nE(this,e,t):n.frozen.set(e,t)}else nE(this,e,t);return this}})}var rE=G_("iterator"),iE=G_("toStringTag"),oE=gk.values,aE=function(e,t){if(e){if(e[rE]!==oE)try{Sw(e,rE,oE)}catch(t){e[rE]=oE}if(e[iE]||Sw(e,iE,t),nx[t])for(var n in gk)if(e[n]!==gk[n])try{Sw(e,n,gk[n])}catch(t){e[n]=gk[n]}}};for(var sE in nx)aE(d_[sE]&&d_[sE].prototype,sE);aE(ox,"DOMTokenList");var lE=new WeakMap,uE=new WeakMap,cE=new WeakMap,fE=new WeakMap,dE=new WeakMap,hE=new WeakMap,pE=new WeakMap,gE=new WeakMap,mE=new WeakMap,vE=new WeakMap,yE=new WeakMap,bE=new WeakMap,_E=new WeakMap,wE=new WeakMap,xE=new WeakMap,OE=new WeakMap,SE=new WeakMap,CE=new WeakMap,kE=new WeakMap,EE=new WeakMap,AE=new WeakMap,TE=new WeakMap,DE=new WeakMap,ME=new WeakMap,PE=new WeakMap,IE=Mx.find,jE=!0;"find"in[]&&Array(1).find((function(){jE=!1})),hO({target:"Array",proto:!0,forced:jE},{find:function(e){return IE(this,e,arguments.length>1?arguments[1]:void 0)}}),zO("find"),hO({global:!0},{globalThis:d_});const LE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];rp&&(qh.fn.css=rp),up&&(qh.fn.append=up),Uh&&(qh.fn.addClass=Uh),Hh&&(qh.fn.removeClass=Hh),Vh&&(qh.fn.hasClass=Vh),Xh&&(qh.fn.on=Xh),_p&&(qh.fn.focus=_p),Wh&&(qh.fn.attr=Wh),Kh&&(qh.fn.removeAttr=Kh),tp&&(qh.fn.hide=tp),np&&(qh.fn.show=np),ep&&(qh.fn.offset=ep),Qh&&(qh.fn.width=Qh),Jh&&(qh.fn.height=Jh),fp&&(qh.fn.parent=fp),dp&&(qh.fn.parents=dp),lp&&(qh.fn.is=lp),Gh&&(qh.fn.dataset=Gh),Yh&&(qh.fn.val=Yh),sp&&(qh.fn.text=sp),ap&&(qh.fn.html=ap),pp&&(qh.fn.children=pp),gp&&(qh.fn.remove=gp),hp&&(qh.fn.find=hp),ip&&(qh.fn.each=ip),mp&&(qh.fn.empty=mp);var NE,RE,BE=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},$E=function(e){return FE(e)&&1===e.nodeType},FE=function(e){var t=BE(e);return!!t&&e instanceof t.Node},zE=function(e){var t=e&&e.anchorNode&&BE(e.anchorNode);return!!t&&e instanceof t.Selection},qE=function(e){return FE(e)&&3===e.nodeType},UE=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},HE=function(e,t,n){for(var r,i=e.childNodes,o=i[t],a=t,s=!1,l=!1;(FE(r=o)&&8===r.nodeType||$E(o)&&0===o.childNodes.length||$E(o)&&"false"===o.getAttribute("contenteditable"))&&(!s||!l);)a>=i.length?(s=!0,a=t-1,n="backward"):a<0?(l=!0,a=t+1,n="forward"):(o=i[a],t=a,a+="forward"===n?1:-1);return[o,t]},VE=function(e,t,n){return uk(HE(e,t,n),1)[0]},WE=function e(t){var n,r,i="";if(qE(t)&&t.nodeValue)return t.nodeValue;if($E(t)){try{for(var o=lk(Array.from(t.childNodes)),a=o.next();!a.done;a=o.next())i+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");"block"!==s&&"list"!==s&&"table-row"!==s&&"BR"!==t.tagName||(i+="\n")}return i};function KE(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],o=i.nodeType;3==o?t(i,e):1!=o&&9!=o&&11!=o||KE(i,t)}}function GE(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==NE.ELEMENT_NODE?"":t.tagName.toLowerCase()}(RE=NE||(NE={}))[RE.ELEMENT_NODE=1]="ELEMENT_NODE",RE[RE.TEXT_NODE=3]="TEXT_NODE",RE[RE.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",RE[RE.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",RE[RE.COMMENT_NODE=8]="COMMENT_NODE",RE[RE.DOCUMENT_NODE=9]="DOCUMENT_NODE",RE[RE.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",RE[RE.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var YE="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),XE="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var ZE="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),QE="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),JE="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),eA="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var tA=!JE&&!QE&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,nA={getWindow:function(e){var t=AE.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=EE.get(t);return n||(n=new dk,EE.set(t,n)),n},setNewKey:function(e){var t=new dk;EE.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=xE.get(r);if(null==i){if(Pf.isEditor(r))return n;break}var o=wE.get(r);if(null==o)break;n.unshift(o),r=i}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=nA.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return xE.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var i=nA.getParentNode(e,r);if(null==i)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[nA.findPath(e,t)[0]];return Bf.get(e,n)},toDOMNode:function(e,t){var n;if(Pf.isEditor(t))n=OE.get(e);else{var r=nA.findKey(e,t);n=CE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,i=n.editable,o=void 0!==i&&i,a=nA.toDOMNode(e,e);try{r=$E(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!o||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=Xf.isBackward(t),o=nA.toDOMPoint(e,n),a=Xf.isCollapsed(t)?o:nA.toDOMPoint(e,r),s=nA.getWindow(e).document.createRange(),l=uk(i?a:o,2),u=l[0],c=l[1],f=uk(i?o:a,2),d=f[0],h=f[1],p=!!($E(u)?u:u.parentElement).getAttribute("data-slate-zero-width"),g=!!($E(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(u,p?1:c),s.setEnd(d,g?1:h),s},toDOMPoint:function(e,t){var n,r,i,o=uk(Pf.node(e,t.path),1)[0],a=nA.toDOMNode(e,o);Pf.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),l=0;try{for(var u=lk(s),c=u.next();!c.done;c=u.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var h=d.textContent.length,p=f.getAttribute("data-slate-length"),g=l+(null==p?h:parseInt(p,10));if(t.offset<=g){i=[d,Math.min(h,Math.max(0,t.offset-l))];break}l=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}if(!i)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=$E(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?SE.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var o,a=nA.toSlateNode(e,t.target),s=nA.findPath(e,a);if(Pf.isVoid(e,a)){var l=i.getBoundingClientRect(),u=e.isInline(a)?n-l.left<l.left+l.width-n:r-l.top<l.top+l.height-r,c=Pf.point(e,s,{edge:u?"start":"end"}),f=u?Pf.before(e,c):Pf.after(e,c);if(f)return Pf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)o=d.caretRangeFromPoint(n,r);else{var h=d.caretPositionFromPoint(n,r);h&&((o=d.createRange()).setStart(h.offsetNode,h.offset),o.setEnd(h.offsetNode,h.offset))}if(!o)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return nA.toSlateRange(e,o,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,o,a,s,l=n.exactMatch,u=n.suppressThrow;if((zE(t)?t.anchorNode:t.startContainer)&&(zE(t)?(r=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=eA&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==o||null==i||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=nA.toSlatePoint(e,[r,i],{exactMatch:l,suppressThrow:u});if(!c)return null;var f=s?c:nA.toSlatePoint(e,[o,a],{exactMatch:l,suppressThrow:u});if(!f)return null;var d={anchor:c,focus:f};return Xf.isExpanded(d)&&Xf.isForward(d)&&$E(o)&&Pf.void(e,{at:d.focus,mode:"highest"})&&(d=Pf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,o=n.suppressThrow,a=uk(i?t:function(e){var t,n=uk(e,2),r=n[0],i=n[1];if($E(r)&&r.childNodes.length){var o=i===r.childNodes.length,a=o?i-1:i;for(r=(t=uk(HE(r,a,o?"backward":"forward"),2))[0],o=(a=t[1])<i;$E(r)&&r.childNodes.length;){var s=o?r.childNodes.length-1:0;r=VE(r,s,o?"backward":"forward")}i=o&&null!=r.textContent?r.textContent.length:0}return[r,i]}(t),2),s=a[0],l=a[1],u=s.parentNode,c=null,f=0;if(u){var d=u.closest('[data-slate-void="true"]'),h=u.closest("[data-slate-leaf]"),p=null;if(h){c=h.closest('[data-slate-node="text"]');var g=nA.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(s,l);var m=g.cloneContents();ck(ck([],uk(Eh(m.querySelectorAll("[data-slate-zero-width]")))),uk(Eh(m.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=m.textContent.length,p=c}else d&&((h=d.querySelector("[data-slate-leaf]"))?(c=h.closest('[data-slate-node="text"]'),f=(p=h).textContent.length,p.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);p&&f===p.textContent.length&&(u.hasAttribute("data-slate-zero-width")||XE&&(null===(r=p.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var v=nA.toSlateNode(e,c);return{path:nA.findPath(e,v),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Pf.hasPath(e,n.path)&&Pf.hasPath(e,r.path)},getNodeType:function(e){return kf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Bf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],i=Pf.nodes(e,{universal:!0});try{for(var o=lk(i),a=o.next();!a.done;a=o.next()){var s=uk(a.value,1)[0];kf.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=uk(Pf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),i=r[0];return null==i?null:i[0]},getSelectedTextNode:function(e){var t=uk(Pf.nodes(e,{match:function(e){return rd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=uk(Pf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&uk(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Pf.isEnd(e,n.anchor,t)||Pf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=lE.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return fE.get(e)||null},getHoverbar:function(e){return hE.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,o=nA.getTextarea(e).$textArea,a=null==o?void 0:o[0].childNodes;if(a)try{for(var s=lk(Array.from(a)),l=s.next();!l.done;l=s.next()){var u=l.value;if(3!==u.nodeType)break;u.remove()}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=Pf.nodes(e,{match:function(t){return!(!kf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=lk(c),d=f.next();!d.done;d=f.next()){var h=d.value;if(null!=h){var p=h[0];KE(nA.toDOMNode(e,p),(function(e,t){var n=qh(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Pf.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var o=lk(r),a=o.next();!a.done;a=o.next())a.value,i++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(Xf.isExpanded(t))return!1;var n=nA.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Pf.node(e,t);if(null==n)return!1;var r=uk(n,1)[0].children;return 1===r.length&&""===r[0].text}},rA=1,iA={},oA={},aA=Mx.filter,sA=lC("filter");hO({target:"Array",proto:!0,forced:!sA},{filter:function(e){return aA(this,e,arguments.length>1?arguments[1]:void 0)}});var lA="\t\n\v\f\r                　\u2028\u2029\ufeff",uA=w_("".replace),cA="["+lA+"]",fA=RegExp("^"+cA+cA+"*"),dA=RegExp(cA+cA+"*$"),hA=function(e){return function(t){var n=xO(O_(t));return 1&e&&(n=uA(n,fA,"")),2&e&&(n=uA(n,dA,"")),n}},pA={start:hA(1),end:hA(2),trim:hA(3)},gA=Ww.PROPER,mA=pA.trim;hO({target:"String",proto:!0,forced:function(e){return z_((function(){return!!lA[e]()||"​᠎"!=="​᠎"[e]()||gA&&lA[e].name!==e}))}("trim")},{trim:function(){return mA(this)}});var vA=[],yA={};function bA(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var _A,wA,xA,OA,SA=d_.Promise,CA=G_("species"),kA=function(e){var t=j_(e),n=xw.f;Z_&&t&&!t[CA]&&n(t,CA,{configurable:!0,get:function(){return this}})},EA=d_.TypeError,AA=G_("species"),TA=function(e,t){var n,r=ow(e).constructor;return void 0===r||null==(n=ow(r)[AA])?t:function(e){if(Cx(e))return e;throw EA(dw(e)+" is not a constructor")}(n)},DA=w_([].slice),MA=/(?:ipad|iphone|ipod).*applewebkit/i.test(L_),PA="process"==Xw(d_.process),IA=d_.setImmediate,jA=d_.clearImmediate,LA=d_.process,NA=d_.Dispatch,RA=d_.Function,BA=d_.MessageChannel,$A=d_.String,FA=0,zA={};try{_A=d_.location}catch(RE){}var qA=function(e){if(E_(zA,e)){var t=zA[e];delete zA[e],t()}},UA=function(e){return function(){qA(e)}},HA=function(e){qA(e.data)},VA=function(e){d_.postMessage($A(e),_A.protocol+"//"+_A.host)};IA&&jA||(IA=function(e){var t=DA(arguments,1);return zA[++FA]=function(){LC(P_(e)?e:RA(e),void 0,t)},wA(FA),FA},jA=function(e){delete zA[e]},PA?wA=function(e){LA.nextTick(UA(e))}:NA&&NA.now?wA=function(e){NA.now(UA(e))}:BA&&!MA?(OA=(xA=new BA).port2,xA.port1.onmessage=HA,wA=sx(OA.postMessage,OA)):d_.addEventListener&&P_(d_.postMessage)&&!d_.importScripts&&_A&&"file:"!==_A.protocol&&!z_(VA)?(wA=VA,d_.addEventListener("message",HA,!1)):wA="onreadystatechange"in tw("script")?function(e){PO.appendChild(tw("script")).onreadystatechange=function(){PO.removeChild(this),qA(e)}}:function(e){setTimeout(UA(e),0)});var WA,KA,GA,YA,XA,ZA,QA,JA,eT={set:IA,clear:jA},tT=/ipad|iphone|ipod/i.test(L_)&&void 0!==d_.Pebble,nT=/web0s(?!.*chrome)/i.test(L_),rT=Ux.f,iT=eT.set,oT=d_.MutationObserver||d_.WebKitMutationObserver,aT=d_.document,sT=d_.process,lT=d_.Promise,uT=rT(d_,"queueMicrotask"),cT=uT&&uT.value;cT||(WA=function(){var e,t;for(PA&&(e=sT.domain)&&e.exit();KA;){t=KA.fn,KA=KA.next;try{t()}catch(e){throw KA?YA():GA=void 0,e}}GA=void 0,e&&e.enter()},MA||PA||nT||!oT||!aT?!tT&&lT&&lT.resolve?((QA=lT.resolve(void 0)).constructor=lT,JA=sx(QA.then,QA),YA=function(){JA(WA)}):PA?YA=function(){sT.nextTick(WA)}:(iT=sx(iT,d_),YA=function(){iT(WA)}):(XA=!0,ZA=aT.createTextNode(""),new oT(WA).observe(ZA,{characterData:!0}),YA=function(){ZA.data=XA=!XA}));var fT,dT,hT,pT,gT=cT||function(e){var t={fn:e,next:void 0};GA&&(GA.next=t),KA||(KA=t,YA()),GA=t},mT=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=pw(t),this.reject=pw(n)},vT={f:function(e){return new mT(e)}},yT=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},bT="object"==typeof window,_T=eT.set,wT=G_("species"),xT="Promise",OT=qw.getterFor(xT),ST=qw.set,CT=qw.getterFor(xT),kT=SA&&SA.prototype,ET=SA,AT=kT,TT=d_.TypeError,DT=d_.document,MT=d_.process,PT=vT.f,IT=PT,jT=!!(DT&&DT.createEvent&&d_.dispatchEvent),LT=P_(d_.PromiseRejectionEvent),NT=!1,RT=fO(xT,(function(){var e=Tw(ET),t=e!==String(ET);if(!t&&66===F_)return!0;if(F_>=51&&/native code/.test(e))return!1;var n=new ET((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[wT]=r,!(NT=n.then((function(){}))instanceof r)||!t&&bT&&!LT})),BT=RT||!pS((function(e){ET.all(e).catch((function(){}))})),$T=function(e){var t;return!(!Q_(e)||!P_(t=e.then))&&t},FT=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gT((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{c?(i||(2===e.rejection&&HT(e),e.rejection=1),!0===c?a=r:(h&&h.enter(),a=c(r),h&&(h.exit(),l=!0)),a===u.promise?d(TT("Promise-chain cycle")):(s=$T(a))?sw(s,a,f,d):f(a)):d(r)}catch(e){h&&!l&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qT(e)}))}},zT=function(e,t,n){var r,i;jT?((r=DT.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),d_.dispatchEvent(r)):r={promise:t,reason:n},!LT&&(i=d_["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=d_.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qT=function(e){sw(_T,d_,(function(){var t,n=e.facade,r=e.value;if(UT(e)&&(t=yT((function(){PA?MT.emit("unhandledRejection",r,n):zT("unhandledrejection",n,r)})),e.rejection=PA||UT(e)?2:1,t.error))throw t.value}))},UT=function(e){return 1!==e.rejection&&!e.parent},HT=function(e){sw(_T,d_,(function(){var t=e.facade;PA?MT.emit("rejectionHandled",t):zT("rejectionhandled",t,e.value)}))},VT=function(e,t,n){return function(r){e(t,r,n)}},WT=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,FT(e,!0))},KT=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw TT("Promise can't be resolved itself");var r=$T(t);r?gT((function(){var n={done:!1};try{sw(r,t,VT(KT,n,e),VT(WT,n,e))}catch(t){WT(n,t,e)}})):(e.value=t,e.state=1,FT(e,!1))}catch(t){WT({done:!1},t,e)}}};if(RT&&(AT=(ET=function(e){Ik(this,AT),pw(e),sw(fT,this);var t=OT(this);try{e(VT(KT,t),VT(WT,t))}catch(e){WT(t,e)}}).prototype,(fT=function(e){ST(this,{type:xT,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=mk(AT,{then:function(e,t){var n=CT(this),r=n.reactions,i=PT(TA(this,ET));return i.ok=!P_(e)||e,i.fail=P_(t)&&t,i.domain=PA?MT.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&FT(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),dT=function(){var e=new fT,t=OT(e);this.promise=e,this.resolve=VT(KT,t),this.reject=VT(WT,t)},vT.f=PT=function(e){return e===ET||e===hT?new dT(e):IT(e)},P_(SA)&&kT!==Object.prototype)){pT=kT.then,NT||(Kw(kT,"then",(function(e,t){var n=this;return new ET((function(e,t){sw(pT,n,e,t)})).then(e,t)}),{unsafe:!0}),Kw(kT,"catch",AT.catch,{unsafe:!0}));try{delete kT.constructor}catch(RE){}FS&&FS(kT,AT)}hO({global:!0,wrap:!0,forced:RT},{Promise:ET}),LS(ET,xT,!1),kA(xT),hT=j_(xT),hO({target:xT,stat:!0,forced:RT},{reject:function(e){var t=PT(this);return sw(t.reject,void 0,e),t.promise}}),hO({target:xT,stat:!0,forced:RT},{resolve:function(e){return function(e,t){if(ow(e),Q_(t)&&t.constructor===e)return t;var n=vT.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),hO({target:xT,stat:!0,forced:BT},{all:function(e){var t=this,n=PT(t),r=n.resolve,i=n.reject,o=yT((function(){var n=pw(t.resolve),o=[],a=0,s=1;Mk(e,(function(e){var l=a++,u=!1;s++,sw(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=PT(t),r=n.reject,i=yT((function(){var i=pw(t.resolve);Mk(e,(function(e){sw(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var GT=pC.UNSUPPORTED_Y,YT=Math.min,XT=[].push,ZT=w_(/./.exec),QT=w_(XT),JT=w_("".slice);function eD(e){Promise.resolve().then(e)}function tD(e,t){return kf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,i=e.children,o=void 0===i?[]:i,a=Pf.isVoid(t,e),s="";a||(s=o.map((function(e){return tD(e,t)})).join(""));var l=function(e){return yA[e]||bA}(r),u=l(e,s,t),c="";if(c="string"==typeof u?u:u.html||"",a||vA.forEach((function(t){return c=t(e,c)})),"string"==typeof u)return c;var f=u.prefix,d=void 0===f?"":f,h=u.suffix,p=void 0===h?"":h;return d&&(c=d+c),p&&(c+=p),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r);var i=nA.getParentsNodes(t,e).some((function(e){return"pre"===nA.getNodeType(e)}));if(i||(r=r.replace(/\r\n|\r|\n/g,"<br>")),i&&(r=r.replace(/&nbsp;/g," ")),""===r){var o=nA.getParentNode(null,e);if(!o||0!==o.children.length)return r;r="<br>"}return vA.forEach((function(t){return r=t(e,r)})),r}(e,t)}function nD(e){return"w-e-element-"+e}BC("split",(function(e,t,n){var r;return r="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 r=xO(O_(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!HO(e))return sw(t,r,e,i);for(var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,u+"g");(o=sw(DC,f,r))&&!((a=f.lastIndex)>c&&(QT(l,JT(r,c,o.index)),o.length>1&&o.index<r.length&&LC(XT,l,bk(o,1)),s=o[0].length,c=a,l.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return c===r.length?!s&&ZT(f,"")||QT(l,""):QT(l,JT(r,c)),l.length>i?bk(l,0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:sw(t,this,e,n)}:t,[function(t,n){var i=O_(this),o=null==t?void 0:gw(t,e);return o?sw(o,t,i,n):sw(r,xO(i),t,n)},function(e,i){var o=ow(this),a=xO(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var l=TA(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(GT?"g":"y"),f=new l(GT?"^(?:"+o.source+")":o,c),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===YC(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=GT?0:p;var m,v=YC(f,GT?JT(a,p):a);if(null===v||(m=YT(gx(f.lastIndex+(GT?p:0)),a.length))===h)p=FC(a,p,u);else{if(QT(g,JT(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(QT(g,v[y]),g.length===d)return g;p=h=m}}return QT(g,JT(a,h)),g}]}),!!z_((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]})),GT);var rD=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},iD=function(e,t,n){var r=nA.toDOMRange(e,t).getBoundingClientRect(),i=nA.toDOMRange(e,n).getBoundingClientRect();return rD(r,i)&&rD(i,r)},oD=["span","b","strong","i","em","s","strike","u","font","sub","sup"],aD=[],sD=[],lD={},uD=xw.f,cD=eO.f,fD=qw.enforce,dD=G_("match"),hD=d_.RegExp,pD=hD.prototype,gD=d_.SyntaxError,mD=w_(OO),vD=w_(pD.exec),yD=w_("".charAt),bD=w_("".replace),_D=w_("".indexOf),wD=w_("".slice),xD=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,OD=/a/g,SD=/a/g,CD=new hD(OD)!==OD,kD=pC.MISSED_STICKY,ED=pC.UNSUPPORTED_Y,AD=Z_&&(!CD||kD||mC||yC||z_((function(){return SD[dD]=!1,hD(OD)!=OD||hD(SD)==SD||"/a/i"!=hD(OD,"i")})));if(fO("RegExp",AD)){for(var TD=function(e,t){var n,r,i,o,a,s,l=lw(pD,this),u=HO(e),c=void 0===t,f=[],d=e;if(!l&&u&&c&&e.constructor===TD)return e;if((u||lw(pD,e))&&(e=e.source,c&&(t="flags"in d?d.flags:mD(d))),e=void 0===e?"":xO(e),t=void 0===t?"":xO(t),d=e,mC&&"dotAll"in OD&&(r=!!t&&_D(t,"s")>-1)&&(t=bD(t,/s/g,"")),n=t,kD&&"sticky"in OD&&(i=!!t&&_D(t,"y")>-1)&&ED&&(t=bD(t,/y/g,"")),yC&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=yD(e,r)))t+=yD(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:vD(xD,wD(e,r+1))&&(r+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===c||E_(a,c))throw new gD("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=t:i+=t}return[i,o]}(e),e=o[0],f=o[1]),a=jk(hD(e,t),l?this:pD,TD),(r||i||f.length)&&(s=fD(a),r&&(s.dotAll=!0,s.raw=TD(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=yD(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+yD(e,++r);return i}(e),n)),i&&(s.sticky=!0),f.length&&(s.groups=f)),e!==d)try{Sw(a,"source",""===d?"(?:)":d)}catch(e){}return a},DD=function(e){e in TD||uD(TD,e,{configurable:!0,get:function(){return hD[e]},set:function(t){hD[e]=t}})},MD=cD(hD),PD=0;MD.length>PD;)DD(MD[PD++]);pD.constructor=TD,TD.prototype=pD,Kw(d_,"RegExp",TD)}kA("RegExp");var ID=new RegExp(String.fromCharCode(160),"g");function jD(e){return e.replace(ID," ")}function LD(e,t){var n=e.length;if(n){var r=e[n-1];if(rd.isText(r)){var i=Object.keys(r);if(1===i.length&&"text"===i[0])return r.text=r.text+t,!0}}return!1}function ND(e,t,n){return{type:"paragraph",children:[{text:qh(e).text().replace(/\s+/gm," ")}]}}function RD(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==NE.ELEMENT_NODE)if(e.nodeType!==NE.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=jD(r),LD(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(LD(n,"\n")||n.push({text:"\n"}));var i=$D(qh(e),t);Array.isArray(i)?i.forEach((function(e){return n.push(e)})):n.push(i)}})),n)}(e,t),r=function(e){for(var t in lD)if(e[0].matches(t))return lD[t];return ND}(e),i=r(e[0],n,t);return Array.isArray(i)||(i=[i]),i.forEach((function(r){Pf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),sD.forEach((function(n){r=n(e[0],r,t)})))})),i}function BD(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=jD(n)};return sD.forEach((function(n){r=n(e[0],r,t)})),r}function $D(e,t){aD.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=qh(r(e[0])))}));var n=GE(e);return"span"===n?e.attr("data-w-e-type")?RD(e,t):BD(e,t):"code"===n?"pre"===GE(e.parent())?RD(e,t):BD(e,t):oD.includes(n)?BD(e,t):RD(e,t)}function FD(e,t,n){var r=qh(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function zD(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=qh("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=$D(qh(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var qD=xw.f,UD=Ek.fastKey,HD=qw.set,VD=qw.getterFor,WD={getConstructor:function(e,t,n,r){var i=e((function(e,i){Ik(e,o),HD(e,{type:t,index:BO(null),first:void 0,last:void 0,size:0}),Z_||(e.size=0),null!=i&&Mk(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=VD(t),s=function(e,t,n){var r,i,o=a(e),s=l(e,t);return s?s.value=n:(o.last=s={index:i=UD(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),Z_?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var n,r=a(e),i=UD(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return mk(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Z_?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=l(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),Z_?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=sx(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),mk(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),Z_&&qD(o,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=VD(t),o=VD(r);KS(e,t,(function(e,t){HD(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;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),kA(t)}};Lk("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),WD);var KD=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function GD(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):wd.insertNodes(e,t,{mode:"highest"})}var YD=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=uk(Xf.edges(n),2),i=r[0],o=r[1],a=Pf.void(t,{at:i.path}),s=Pf.void(t,{at:o.path});if(!Xf.isCollapsed(n)||a){var l=nA.toDOMRange(t,n),u=l.cloneContents(),c=u.childNodes[0];if(u.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),s){var f=uk(s,1)[0],d=l.cloneRange(),h=nA.toDOMNode(t,f);d.setEndAfter(h),u=d.cloneContents()}if(a&&(c=u.querySelector("[data-slate-spacer]")),Array.from(u.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),qE(c)){var p=c.ownerDocument.createElement("span");p.style.whiteSpace="pre",p.appendChild(c),u.appendChild(p),c=p}var g=t.getFragment(),m=JSON.stringify(g),v=window.btoa(encodeURIComponent(m));c.setAttribute("data-slate-fragment",v),e.setData("application/x-slate-fragment",v);var y=u.ownerDocument.createElement("div");return y.appendChild(u),y.setAttribute("hidden","true"),u.ownerDocument.body.appendChild(y),e.setData("text/html",y.innerHTML),e.setData("text/plain",WE(y)),u.ownerDocument.body.removeChild(y),e}}},t.insertData=function(e){var r,i,o=e.getData("application/x-slate-fragment");if(o){var a=decodeURIComponent(window.atob(o)),s=JSON.parse(a);t.insertFragment(s)}else{var l=e.getData("text/plain"),u=e.getData("text/html");if(u)t.dangerouslyInsertHtml(u);else if(l){var c=l.split(/\r\n|\r|\n/),f=!1;try{for(var d=lk(c),h=d.next();!h.done;h=d.next()){var p=h.value;f&&wd.splitNodes(t,{always:!0}),n(p),f=!0}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}}},t},XD=function(e){return null!=e},ZD={object:!0,function:!0,undefined:!0},QD=/^\s*class[\s{/}]/,JD=Function.prototype.toString,eM=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!XD(e)&&hasOwnProperty.call(ZD,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!QD.test(JD.call(e))},tM=function(e){return null!=e},nM=Object.keys,rM=function(){try{return Object.keys("primitive"),!0}catch(r){return!1}}()?Object.keys:function(e){return nM(tM(e)?Object(e):e)},iM=function(e){if(!tM(e))throw new TypeError("Cannot use null or undefined");return e},oM=Math.max,aM=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,i,o=oM(arguments.length,2);for(e=Object(iM(e)),i=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<o;++r)rM(t=arguments[r]).forEach(i);if(void 0!==n)throw n;return e},sM=Array.prototype.forEach,lM=Object.create,uM=function(e,t){var n;for(n in e)t[n]=e[n]},cM=function(e){var t=lM(null);return sM.call(arguments,(function(e){tM(e)&&uM(Object(e),t)})),t},fM="razdwatrzy",dM=String.prototype.indexOf,hM="function"==typeof fM.contains&&!0===fM.contains("dwa")&&!1===fM.contains("foo")?String.prototype.contains:function(e){return dM.call(this,e,arguments[1])>-1},pM=l_((function(e){var t=e.exports=function(e,t){var n,r,i,o,a;return arguments.length<2||"string"!=typeof e?(o=t,t=e,e=null):o=arguments[2],XD(e)?(n=hM.call(e,"c"),r=hM.call(e,"e"),i=hM.call(e,"w")):(n=i=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:i},o?aM(cM(o),a):a};t.gs=function(e,t,n){var r,i,o,a;return"string"!=typeof e?(o=n,n=t,t=e,e=null):o=arguments[3],XD(t)?eM(t)?XD(n)?eM(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,XD(e)?(r=hM.call(e,"c"),i=hM.call(e,"e")):(r=!0,i=!1),a={get:t,set:n,configurable:r,enumerable:i},o?aM(cM(o),a):a}})),gM=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},mM=l_((function(e,t){var n,r,i,o,a,s,l,u=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,h=Object.defineProperties,p=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return gM(t),p.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,o;return gM(t),o=this,n.call(this,e,r=function(){i.call(o,e,r),u.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,o;if(gM(t),!p.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},o=function(e){var t,n,r,i,o;if(p.call(this,"__ee__")&&(i=this.__ee__[e]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)u.call(r,this,o)}else switch(arguments.length){case 1:c.call(i,this);break;case 2:c.call(i,this,arguments[1]);break;case 3:c.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];u.call(i,this,o)}},a={on:n,once:r,off:i,emit:o},s={on:pM(n),once:pM(r),off:pM(i),emit:pM(o)},l=h({},s),e.exports=t=function(e){return null==e?f(l):h(Object(e),s)},t.methods=a}));function vM(e){var t=ME.get(e);return null==t&&(t=mM(),ME.set(e,t)),t}var yM=new WeakMap;function bM(e,t){var n=yM.get(e);null==n&&(n=new Set,yM.set(e,n)),n.add(t)}function _M(e){return yM.get(e)||new Set}function wM(e){yM.set(e,new Set)}function xM(e){var t=nA.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function OM(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=xM(e);if(null==r)return t;var i=r.top,o=r.left,a=r.width,s=r.height,l=nA.toDOMRange(e,n).getClientRects()[0];if(null==l)return t;l.width;var u=l.height,c={},f=l.top-i,d=l.left-o;if(d>a/2){var h=a-d;c.right=h+5+"px"}else c.left=d+5+"px";if(f>s/2){var p=s-f;c.bottom=p+5+"px"}else{var g=f+u;g<0&&(g=0),c.top=g+5+"px"}return c}function SM(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var i=kf.isElement(t)&&e.isVoid(t),o=kf.isElement(t)&&e.isInline(t),a=kE.get(t);if(null==a)return r;var s=a.getBoundingClientRect(),l=s.top,u=s.left,c=s.height,f=s.width;if(i){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var i=r.nodeName;if(1===r.nodeType){var o=i.toLowerCase();if(LE.includes(o)||"iframe"===o||"video"===o)return r;var a=r.children||[],s=a.length;if(s)for(var l=s-1;l>=0;l--)t.push(a[l])}}return null}(a);if(null!=d){var h=d.getBoundingClientRect();l=h.top,c=h.height}}var p=xM(e);if(null==p)return r;var g,m=p.top,v=p.left,y=p.width,b=p.height,_={},w=l-m,x=u-v;if("bar"===n)return _.left=x+"px",w>40?_.bottom=b-w+5+"px":_.top=w+c+5+"px",_;if("modal"===n)return i?o?x>(y-f)/2?_.right=y-x+5+"px":_.left=x+f+5+"px":_.left="20px":_.left=x+"px",i?((g=w)<0&&(g=0),_.top=g+"px"):w>(b-c)/2?_.bottom=b-w+5+"px":((g=w+c)<0&&(g=0),_.top=g+5+"px"),_;throw new Error("type '"+n+"' is invalid")}function CM(e,t){eD((function(){var n=xM(e);if(null!=n){var r,i=n.top,o=n.left,a=n.width,s=n.height,l=t.offset(),u=l.top,c=l.left,f=t.width(),d=t.height(),h=u-i,p=c-o,g=t.attr("style");if(g.indexOf("top")>=0&&(r=h+d-s)>0){var m=t.css("top"),v=parseInt(m.toString())-r;v<0&&(v=0),t.css("top",v+"px")}if(g.indexOf("bottom")>=0&&u<0){var y=t.css("bottom"),b=parseInt(y.toString())-Math.abs(u);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=p+f-a)>0){var _=t.css("left"),w=parseInt(_.toString())-r;w<0&&(w=0),t.css("left",w+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),O=parseInt(x.toString())-Math.abs(c);t.css("right",O+"px")}}}))}var kM=lC("slice"),EM=G_("species"),AM=d_.Array,TM=Math.max;hO({target:"Array",proto:!0,forced:!kM},{slice:function(e,t){var n,r,i,o=zx(this),a=mx(o),s=Wx(e,a),l=Wx(void 0===t?a:t,a);if(vx(o)&&(n=o.constructor,(Cx(n)&&(n===AM||vx(n.prototype))||Q_(n)&&null===(n=n[EM]))&&(n=void 0),n===AM||void 0===n))return DA(o,s,l);for(r=new(void 0===n?AM:n)(TM(l-s,0)),i=0;s<l;s++,i++)s in o&&iS(r,i,o[s]);return r.length=i,r}});var DM=Ux.f,MM=w_("".startsWith),PM=w_("".slice),IM=Math.min,jM=GO("startsWith"),LM=!jM&&!!function(){var e=DM(String.prototype,"startsWith");return e&&!e.writable}();hO({target:"String",proto:!0,forced:!LM&&!jM},{startsWith:function(e){var t=xO(O_(this));WO(e);var n=gx(IM(arguments.length>1?arguments[1]:void 0,t.length)),r=xO(e);return MM?MM(t,r,n):PM(t,n,n+r.length)===r}});var NM=Object.assign,RM=Object.defineProperty,BM=w_([].concat),$M=!NM||z_((function(){if(Z_&&1!==NM({b:1},NM(RM({},"a",{enumerable:!0,get:function(){RM(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!=NM({},e)[n]||pO(NM({},t)).join("")!=r}))?function(e,t){for(var n=C_(e),r=arguments.length,i=1,o=tO.f,a=Fx.f;r>i;)for(var s,l=cx(arguments[i++]),u=o?BM(pO(l),o(l)):pO(l),c=u.length,f=0;c>f;)s=u[f++],Z_&&!sw(a,l,s)||(n[s]=l[s]);return n}:NM;hO({target:"Object",stat:!0,forced:Object.assign!==$M},{assign:$M});var FM=["props","attrs","style","dataset","on","hook"];function zM(e){var t=e.data,n=void 0===t?{}:t,r=e.children,i=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,i,o=n[t];if("key"!==t){if(!FM.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Am(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=o,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(i={},i[t]=o,i)),delete n[t]}}else e.key=o})),i.length>0&&i.forEach((function(e){"string"!=typeof e&&zM(e)}))}var qM=[],UM={};function HM(e,t,n){return Ng(n.isInline(e)?"span":"div",null,t)}function VM(e,t){return void 0===t&&(t=!1),Ng("span",{"data-slate-string":!0},t?e+"\n":e)}function WM(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Ng("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Ng("br",null):null)}function KM(e,t,n,r){return wE.set(e,t),xE.set(e,n),kf.isElement(e)?function(e,t){var n,r=nA.findKey(t,e),i=t.isInline(e),o=Pf.isVoid(t,e),a=nD(r.id),s={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":i},l=e.type,u=e.children,c=void 0===u?[]:u,f=function(e){return UM[e]||HM}(l);n=o?null:c.map((function(n,r){return KM(n,r,e,t)}));var d=f(e,n,t);if(o){s["data-slate-void"]=!0;var h=i?"span":"div",p=uk(Bf.texts(e),1),g=uk(p[0],1)[0],m=Ng(h,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},KM(g,0,e,t));d=Ng(h,{style:{position:"relative"}},d,m),wE.set(g,0),xE.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,s),o||i||(d=function(e,t){var n=t;return qM.forEach((function(r){n=r(e,t)})),n}(e,d)),eD((function(){var t=UE(a);null!=t&&(CE.set(r,t),kE.set(e,t),SE.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=nA.findKey(n,e),i=n.getConfig().decorate;if(null==i)throw new Error("Can not get config.decorate");var o=nA.findPath(n,e),a=i([e,o]),s=rd.decorations(e,a),l=s.map((function(r,i){var o=function(e,t,n,r,i){void 0===t&&(t=!1);var o=e.text,a=nA.findPath(i,n),s=qf.parent(a);if(Pf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return i.isVoid(r)?WM(Bf.string(r).length):""!==o||r.children[r.children.length-1]!==n||i.isInline(r)||""!==Pf.string(i,s)?""===o?WM():t&&"\n"===o.slice(-1)?VM(o,!0):VM(o):WM(0,!0)}(r,i===s.length-1,e,t,n);return o=function(e,t){var n=t;return qM.forEach((function(t){n=t(e,n)})),n}(r,o),Ng("span",{"data-slate-leaf":!0},o)})),u=function(e){return"w-e-text-"+e}(r.id),c=Ng("span",{"data-slate-node":"text",id:u,key:r.id},l);return eD((function(){var t=UE(u);null!=t&&(CE.set(r,t),kE.set(e,t),SE.set(t,e))})),c}(e,n,r)}function GM(e,t){var n,r=e.$scroll,i=function(e){return"w-e-textarea-"+e}(e.id),o=t.getConfig(),a=o.readOnly,s=o.autoFocus,l=function(e,t){return void 0===t&&(t=!1),mg("div#"+e,{props:{contentEditable:!t}})}(i,a),u=t.children||[];l.children=u.map((function(e,n){var r=KM(e,n,t,t);return zM(r),r}));var c=yE.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return qh('<div\n        id="'+e+'"\n        data-slate-editor\n        data-slate-node="value"\n        suppressContentEditableWarning\n        role="textarea"\n        spellCheck="true"\n        autoCorrect="true"\n        autoCapitalize="true"\n    ></div>')}(i);r.append(f),e.$textArea=f,n=f[0],(h=pg([_g,Tg,jg,Og,Eg,yg]))(n,l),yE.set(e,!1),bE.set(e,h)}else{var d=_E.get(e),h=bE.get(e);if(null==d||null==h)return;n=d.elm,h(d,l)}if(null!=n||null!=(n=UE(i))){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var p=BE(n);p&&AE.set(t,p)}OE.set(t,n),kE.set(t,n),SE.set(n,t),_E.set(e,l)}}function YM(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function XM(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ZM(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return XM(n.overflowY,t)||XM(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function QM(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}function JM(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!YM(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,c=[],f=e;YM(f)&&l(f);){if((f=f.parentElement)===u){c.push(f);break}null!=f&&f===document.body&&ZM(f)&&!ZM(document.documentElement)||null!=f&&ZM(f,s)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),v=m.height,y=m.width,b=m.top,_=m.right,w=m.bottom,x=m.left,O="start"===i||"nearest"===i?b:"end"===i?w:b+v/2,S="center"===o?x+y/2:"end"===o?_:x,C=[],k=0;k<c.length;k++){var E=c[k],A=E.getBoundingClientRect(),T=A.height,D=A.width,M=A.top,P=A.right,I=A.bottom,j=A.left;if("if-needed"===r&&b>=0&&x>=0&&w<=h&&_<=d&&b>=M&&w<=I&&x>=j&&_<=P)return C;var L=getComputedStyle(E),N=parseInt(L.borderLeftWidth,10),R=parseInt(L.borderTopWidth,10),B=parseInt(L.borderRightWidth,10),$=parseInt(L.borderBottomWidth,10),F=0,z=0,q="offsetWidth"in E?E.offsetWidth-E.clientWidth-N-B:0,U="offsetHeight"in E?E.offsetHeight-E.clientHeight-R-$:0;if(u===E)F="start"===i?O:"end"===i?O-h:"nearest"===i?QM(g,g+h,h,R,$,g+O,g+O+v,v):O-h/2,z="start"===o?S:"center"===o?S-d/2:"end"===o?S-d:QM(p,p+d,d,N,B,p+S,p+S+y,y),F=Math.max(0,F+g),z=Math.max(0,z+p);else{F="start"===i?O-M-R:"end"===i?O-I+$+U:"nearest"===i?QM(M,I,T,R,$+U,O,O+v,v):O-(M+T/2)+U/2,z="start"===o?S-j-N:"center"===o?S-(j+D/2)+q/2:"end"===o?S-P+B+q:QM(j,P,D,N,B+q,S,S+y,y);var H=E.scrollLeft,V=E.scrollTop;O+=V-(F=Math.max(0,Math.min(V+F,E.scrollHeight-T+U))),S+=H-(z=Math.max(0,Math.min(H+z,E.scrollWidth-D+q)))}C.push({el:E,top:F,left:z})}return C}function eP(e){return e===Object(e)&&0!==Object.keys(e).length}function tP(e,t){return FE(t)&&nA.hasDOMNode(e,t,{editable:!0})}function nP(e,t){if(e.getConfig().readOnly)return!1;var n=rP(e,t)&&nA.toSlateNode(e,t);return Pf.isVoid(e,n)}function rP(e,t){return FE(t)&&nA.hasDOMNode(e,t)}function iP(e,t,n){void 0===n&&(n=!1);var r=t.selection,i=t.getConfig(),o=nA.findDocumentOrShadowRoot(t).getSelection();if(o&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==o.type;if(r||a){var s=OE.get(t),l=!1;if(s.contains(o.anchorNode)&&s.contains(o.focusNode)&&(l=!0),a&&l&&r){var u=nA.toSlateRange(t,o,{exactMatch:!0,suppressThrow:!0});if(u&&Xf.equals(u,r)){var c=!0;if(Xf.isCollapsed(r)){var f=o.anchorNode,d=o.anchorOffset;if(f===s){var h=s.childNodes,p=void 0;(p=h[d])&&p.matches("table")&&(c=!1),(p=h[d-1])&&p.matches("table")&&(c=!1)}}if(c)return}}if(!r||nA.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&nA.toDOMRange(t,r);if(g){Xf.isBackward(r)?o.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):o.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=g.getBoundingClientRect.bind(g);var v=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(eP(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:JM(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:eP(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))})(JM(e,r),r.behavior)}})(m,{scrollMode:"if-needed",boundary:i.scroll?s.parentElement:v,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else o.removeAllRanges();setTimeout((function(){g&&XE&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=nA.toSlateRange(t,o,{exactMatch:!1,suppressThrow:!1})}}}var oP=new WeakMap,aP=new WeakMap,sP={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},lP={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},uP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},cP=function(e){var t=sP[e],n=lP[e],r=uP[e],i=t&&Bm(t),o=n&&Bm(n),a=r&&Bm(r);return function(e){return!(!i||!i(e))||!!(YE&&o&&o(e))||!(YE||!a||!a(e))}},fP={isBold:cP("bold"),isCompose:cP("compose"),isMoveBackward:cP("moveBackward"),isMoveForward:cP("moveForward"),isDeleteBackward:cP("deleteBackward"),isDeleteForward:cP("deleteForward"),isDeleteLineBackward:cP("deleteLineBackward"),isDeleteLineForward:cP("deleteLineForward"),isDeleteWordBackward:cP("deleteWordBackward"),isDeleteWordForward:cP("deleteWordForward"),isExtendBackward:cP("extendBackward"),isExtendForward:cP("extendForward"),isExtendLineBackward:cP("extendLineBackward"),isExtendLineForward:cP("extendLineForward"),isItalic:cP("italic"),isMoveLineBackward:cP("moveLineBackward"),isMoveLineForward:cP("moveLineForward"),isMoveWordBackward:cP("moveWordBackward"),isMoveWordForward:cP("moveWordForward"),isRedo:cP("redo"),isSplitBlock:cP("splitBlock"),isTransposeCharacter:cP("transposeCharacter"),isUndo:cP("undo"),isTab:cP("tab"),isSelectAll:cP("selectAll")};function dP(e){e.preventDefault()}var hP={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(tA&&!i&&tP(n,r.target)){var o=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var l=uk(r.getTargetRanges(),1)[0];if(l){var u=nA.toSlateRange(n,l,{exactMatch:!1,suppressThrow:!1});o&&Xf.equals(o,u)||wd.select(n,u)}}if(o&&Xf.isExpanded(o)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Pf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Pf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Pf.deleteForward(n);break;case"deleteContentBackward":Pf.deleteBackward(n);break;case"deleteEntireSoftLine":Pf.deleteBackward(n,{unit:"line"}),Pf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Pf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Pf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Pf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Pf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Pf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Pf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Pf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!PE.get(n))break;s instanceof DataTransfer?n.insertData(s):"string"==typeof s&&Pf.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,o=t.latestElement;if(!n.getConfig().readOnly&&!i&&tP(n,r.target)){var a=nA.findDocumentOrShadowRoot(n);if(o!==a.activeElement){var s=r.relatedTarget;if(!(s===nA.toDOMNode(n,n)||$E(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&FE(s)&&nA.hasDOMNode(n,s)){var l=nA.toSlateNode(n,s);if(kf.isElement(l)&&!n.isVoid(l))return}if(ZE){var u=a.getSelection();null==u||u.removeAllRanges()}TE.delete(n)}}}},focus:function(e,t,n){var r=nA.toDOMNode(n,n),i=nA.findDocumentOrShadowRoot(n);t.latestElement=i.activeElement,XE&&e.target!==r?r.focus():TE.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&rP(n,e.target)&&FE(e.target)){var r=nA.toSlateNode(n,e.target),i=nA.findPath(n,r);if(Pf.hasPath(n,i)&&Bf.get(n,i)===r){var o=Pf.start(n,i),a=Pf.end(n,i),s=Pf.void(n,{at:o}),l=Pf.void(n,{at:a});if(s&&l&&qf.equals(s[1],l[1])){var u=Pf.range(n,o);wd.select(n,u)}}}},compositionstart:function(e,t,n){if(tP(n,e.target)){var r=n.selection;if(r&&Xf.isExpanded(r)&&(Pf.deleteFragment(n),Promise.resolve().then((function(){iP(t,n,!0)}))),r&&Xf.isCollapsed(r)){var i=nA.toDOMRange(n,r).startContainer,o=i.textContent||"";oP.set(n,o),aP.set(n,i)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(tP(n,r.target)){t.isComposing=!1;var i=n.selection;if(null!=i){(eA||XE)&&nA.cleanExposedTexNodeInSelectionBlock(n);for(var o=Xf.isBackward(i)?i.focus:i.anchor,a=uk(Pf.node(n,[o.path[0]]),1)[0],s=0;s<o.path.length;s++){var l=uk(Pf.node(n,o.path.slice(0,s+1)),1)[0];if(kf.isElement(l)&&((ZE||XE)&&"link"===l.type||"code"===l.type)){nA.setNewKey(a);break}}var u=r.data;if(u){if(n.getConfig().maxLength){var c=nA.getLeftLengthOfMaxLength(n);c<u.length?(nA.toDOMRange(n,i).startContainer.textContent=oP.get(n)||"",c>0&&Pf.insertText(n,u.slice(0,c)),t.changeViewState()):Pf.insertText(n,u)}else Pf.insertText(n,u);ZE||setTimeout((function(){var e=n.selection;if(null!=e){var t=aP.get(n);null!=t&&nA.toDOMRange(n,e).startContainer!==t&&(t.textContent=oP.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){tP(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&tP(n,r.target)){if(function(e,t){var n=fE.get(e),r=n&&n.getMenus(),i=hE.get(e),o=i&&i.getMenus(),a=sk(sk({},r),o);for(var s in a){var l=a[s],u=l.hotkey;if(u&&Rm(u,t)&&!l.isDisabled(e)){var c=l.getValue(e);l.exec(e,c)}}}(n,r),fP.isTab(r))return dP(r),void n.handleTab();if(fP.isRedo(r))return dP(r),void("function"==typeof n.redo&&n.redo());if(fP.isUndo(r))return dP(r),void("function"==typeof n.undo&&n.undo());if(fP.isMoveLineBackward(r))return dP(r),void wd.move(n,{unit:"line",reverse:!0});if(fP.isMoveLineForward(r))return dP(r),void wd.move(n,{unit:"line"});if(fP.isExtendLineBackward(r))return dP(r),void wd.move(n,{unit:"line",edge:"focus",reverse:!0});if(fP.isExtendLineForward(r))return dP(r),void wd.move(n,{unit:"line",edge:"focus"});if(fP.isMoveBackward(r))return dP(r),void(i&&Xf.isCollapsed(i)?wd.move(n,{reverse:!0}):wd.collapse(n,{edge:"start"}));if(fP.isMoveForward(r))return dP(r),void(i&&Xf.isCollapsed(i)?wd.move(n):wd.collapse(n,{edge:"end"}));if(fP.isMoveWordBackward(r))return dP(r),i&&Xf.isExpanded(i)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word",reverse:!0});if(fP.isMoveWordForward(r))return dP(r),i&&Xf.isExpanded(i)&&wd.collapse(n,{edge:"focus"}),void wd.move(n,{unit:"word"});if(fP.isSelectAll(r))return dP(r),void n.selectAll();if(tA){if((eA||ZE)&&i&&(fP.isDeleteBackward(r)||fP.isDeleteForward(r))&&Xf.isCollapsed(i)){var o=Bf.parent(n,i.anchor.path);if(kf.isElement(o)&&Pf.isVoid(n,o)&&Pf.isInline(n,o))return r.preventDefault(),void wd.delete(n,{unit:"block"})}}else{if(fP.isBold(r)||fP.isItalic(r)||fP.isTransposeCharacter(r))return void dP(r);if(fP.isSplitBlock(r))return dP(r),void Pf.insertBreak(n);if(fP.isDeleteBackward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n));if(fP.isDeleteForward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n));if(fP.isDeleteLineBackward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n,{unit:"line"}));if(fP.isDeleteLineForward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n,{unit:"line"}));if(fP.isDeleteWordBackward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n,{unit:"word"}));if(fP.isDeleteWordForward(r))return dP(r),void(i&&Xf.isExpanded(i)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!tA&&!n.getConfig().readOnly&&tP(n,e.target)){e.preventDefault();var r=e.key;Pf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(tP(n,r.target)){r.preventDefault();var i=r.clipboardData;null!=i&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&tP(n,r.target)){r.preventDefault();var o=r.clipboardData;if(null!=o&&(n.setFragmentData(o),i))if(Xf.isExpanded(i))Pf.deleteFragment(n);else{var a=Bf.parent(n,i.anchor.path);Pf.isVoid(n,a)&&wd.delete(n)}}},paste:function(e,t,n){PE.set(n,!0);var r=e;if(!n.getConfig().readOnly&&tP(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void PE.set(n,!1);if(!tA||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var o=r.clipboardData;null!=o&&n.insertData(o)}}},dragover:function(e,t,n){if(rP(n,e.target)){var r=nA.toSlateNode(n,e.target);Pf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(rP(n,r.target)&&!n.getConfig().readOnly){var i=nA.toSlateNode(n,r.target),o=nA.findPath(n,i);if(Pf.isVoid(n,i)||Pf.void(n,{at:o,voids:!0})){var a=Pf.range(n,o);wd.select(n,a)}var s=r.dataTransfer;null!=s&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&rP(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&rP(n,r.target)&&null!=i&&!(tA&&ZE&&i.files.length>0)){r.preventDefault();var o=n.selection,a=nA.findEventRange(n,r);wd.select(n,a),t.isDraggingInternally&&(o&&wd.delete(n,{at:o}),t.isDraggingInternally=!1),n.insertData(i),n.isFocused()||n.focus()}}},pP=1,gP=function(){function e(e){var t=this;this.id=pP++,this.$textArea=null,this.$progressBar=qh('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=qh('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=rg((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var o=nA.findDocumentOrShadowRoot(t),a=o.activeElement,s=nA.toDOMNode(t,t),l=o.getSelection();if(a===s?(e.latestElement=a,TE.set(t,!0)):TE.delete(t),!l)return wd.deselect(t);var u=l.anchorNode,c=l.focusNode,f=tP(t,u)||nP(t,u),d=tP(t,c)||nP(t,c);if(f&&d){var h=nA.toSlateRange(t,l,{exactMatch:!1,suppressThrow:!1});wd.select(t,h)}else wd.deselect(t)}}(t,e)}),100);var n=qh(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=qh('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=qh('<div class="w-e-scroll"></div>');r.append(i),this.$scroll=i,this.$textAreaContainer=r,eD((function(){var e=t.editorInstance,n=nA.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var i=e.getConfig().onChange;i&&e.on("change",(function(){return i(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=uE.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Fp(hP,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",rg((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return i&&i(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-nA.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;GM(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var i=t.isEmpty();if(i&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var o=qh('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(o),e.$placeholder=o}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!i&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),eD((function(){iP(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function mP(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&mP(t)}function vP(){return qh('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function yP(){return qh('<div class="w-e-bar-divider"></div>')}function bP(e,t,n,r,i){if(void 0===i&&(i=!1),t){if(r){var o=YE?"cmd":"ctrl";r=r.replace("mod",o)}if(i)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}BC("match",(function(e,t,n){return[function(t){var n=O_(this),r=null==t?void 0:gw(t,e);return r?sw(r,t,n):new RegExp(t)[e](xO(n))},function(e){var r=ow(this),i=xO(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return YC(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=YC(r,i));){var c=xO(s[0]);l[u]=c,""===c&&(r.lastIndex=FC(i,gx(r.lastIndex),a)),u++}return 0===u?null:l}]}));var _P=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=qh('<div class="w-e-bar-item"></div>'),this.$button=qh('<button type="button"></button>'),this.disabled=!1,this.menu=t;var i=t.tag,o=t.width;if("button"!==i)throw new Error("Invalid tag '"+i+"', expected 'button'");var a=t.title,s=t.hotkey,l=void 0===s?"":s,u=t.iconSvg,c=void 0===u?"":u,f=this.$button;if(c){var d=qh(c);mP(d),f.append(d)}else f.text(a);bP(f,c,a,l,n),n&&c&&f.append(qh('<span class="title">'+a+"</span>")),o&&f.css("width",o+"px"),f.attr("data-menu-key",e),this.$elem.append(f),eD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),jP(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=jP(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=jP(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=jP(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),wP=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return ak(t,e),t.prototype.onButtonClick=function(){},t}(_P),xP=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=gE.get(e);null==t&&(t=new Set,gE.set(e,t)),t.add(this),mE.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=mE.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=mE.get(this);e&&e.emit("modalOrPanelHide")}},e}(),OP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=qh('<div class="w-e-drop-panel"></div>'),n}return ak(t,e),t.prototype.genSelfElem=function(){return null},t}(xP),SP=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var o=vP();i.$button.append(o)}return i}return ak(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=jP(this);if(null==this.dropPanel){var n=new OP(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=e.getPanelContentElem(t),i.renderContent(r),i.show())}var o=this.dropPanel;if(o.isShow){var a=this.$elem,s=a.offset().left,l=a.parents(".w-e-bar");s-l.offset().left>=l.width()/2?o.$elem.css({left:"none",right:"0"}):o.$elem.css({left:"0",right:"none"})}}},t}(_P),CP=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=qh('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on("click",(function(e){return e.stopPropagation()})),i.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return ak(t,e),t.prototype.genSelfElem=function(){var e=this,t=qh('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=mE.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(xP);function kP(e,t,n){var r=qh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=qh('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(i),[r[0],i[0]]}function EP(e,t,n){var r=qh('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var i=qh('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(i),[r[0],i[0]]}function AP(e,t){var n=qh('<div class="button-container"></div>'),r=qh('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var TP=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=qh("body"),i.modal=null,i.menu=n,i}return ak(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=jP(this),t=this.menu.getModalPositionNode(e);return kf.isElement(t)?SM(e,t,"modal"):OM(e)},t.prototype.handleModal=function(){var e=jP(this),t=this.menu;if(null==this.modal){var n=new CP(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=jP(this),r=this.menu;if(null!=r.getModalContentElem){var i=nA.getTextarea(n),o=nA.getToolbar(n),a=((null==o?void 0:o.getConfig())||{}).modalAppendToBody,s=r.getModalContentElem(n);if(e.renderContent(s),a)e.setStyle({left:"0",right:"0"});else{var l=this.getPosition();e.setStyle(l)}t&&(a?e.appendTo(this.$body):e.appendTo(i.$textAreaContainer)),e.show(),a||CM(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(_P),DP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=qh('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return ak(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=qh("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,o=e.styleForRenderMenuList,a=qh('<li data-value="'+t+'"></li>');if(o&&a.css(o),i){var s=qh('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(qh('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(xP),MP=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=qh('<div class="w-e-bar-item"></div>'),this.$button=qh('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=t.tag,o=t.title,a=t.width,s=t.iconSvg,l=void 0===s?"":s,u=t.hotkey,c=void 0===u?"":u;if("select"!==i)throw new Error("Invalid tag '"+i+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),bP(f,l,o,c,n),this.$elem.append(f),this.menu=t,eD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),jP(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=jP(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new DP(t,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(t);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=qh(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(i=n.getOptions(t),r.renderList(i),r.show())}},e.prototype.onChange=function(e){var t=jP(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=jP(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",i=0;i<n;i++){var o=e[i];if(o.value===t){r=o.text;break}}return r}(t.getOptions(e),n.toString()),i=this.$button,o=vP();i.empty(),i.text(r),i.append(o)},e.prototype.setDisabled=function(){var e=jP(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),PP=function(){function e(e){this.$elem=qh('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=qh('<div class="w-e-bar-item-menus-container"></div>'),this.$button=qh('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,o=this.$button;if(n){var a=qh(n);mP(a),o.append(a)}else o.text(r);o.attr("data-menu-key",t);var s=vP();o.append(s),i.append(o);var l=this.$container;i.append(l);var u=this.createObserver();this.observe(u)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var i=t.find("button"),o=i.length;if(0!==o){var a=0;i.each((function(e){qh(e).hasClass("disabled")&&a++})),r.disconnect(),a===o?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),IP=new WeakMap;function jP(e){var t=pE.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function LP(e,t,n){void 0===n&&(n=!1);var r=IP.get(t);if(r)return r;var i=t.tag;if("button"===i){var o=t.showDropPanel,a=t.showModal;r=o?new SP(e,t,n):a?new TP(e,t,n):new wP(e,t,n)}if("select"===i&&(r=new MP(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return IP.set(t,r),r}function NP(e,t){var n=e.selection;return null!=n&&!Xf.isCollapsed(n)&&!nA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!rd.isText(t)}var RP=function(){function e(){var e=this;this.$elem=qh('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=ev((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,i=void 0===r?null:r,o=n.menuKeys,a=void 0===o?[]:o;null!=i&&e.changeItemsState(),i&&kf.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),null!=i&&(e.registerItems(a),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),eD((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),nA.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;eD((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=yP();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var i=oA[e];if(null==i)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof i)throw new Error("Menu item factory (key='"+e+"') is not a function");r=i(),n[e]=r}var o=LP(e,r);this.hoverbarItems.push(o),pE.set(o,t),this.$elem.append(o.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),kf.isElement(e)){var r=SM(t,e,"bar");return n.css(r),void CM(t,n)}if(rd.isText(e))return r=OM(t),n.css(r),void CM(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var o=t[i],a=o.match,s=o.menuKeys,l=void 0===s?[]:s,u=a||function(e,t){return nA.checkNodeType(t,i)},c=uk(Pf.nodes(e,{match:function(t){return u(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=l,"break"};for(var o in t)if("break"===i(o))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=dE.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=NP),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=nA.findPath(null,e),r=nA.findPath(null,t);return qf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function BP(e,t,n,r){if(wE.set(e,t),xE.set(e,n),kf.isElement(e)){var i=e.children;if((void 0===i?[]:i).forEach((function(t,n){return BP(t,n,e,r)})),Pf.isVoid(r,e)){var o=uk(Bf.texts(e),1),a=uk(o[0],1)[0];wE.set(a,0),xE.set(a,e)}}}function $P(e){var t=e.selector,n=void 0===t?"":t,r=e.config,i=void 0===r?{}:r,o=e.content,a=e.html,s=e.plugins,l=void 0===s?[]:s,u=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];_O.withoutSaving(t,()=>{Pf.withoutNormalizing(t,()=>{for(var e of r)t.apply(e)})}),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];_O.withoutSaving(t,()=>{Pf.withoutNormalizing(t,()=>{var e=r.map(zf.inverse).reverse();for(var n of e)t.apply(n)})}),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:o}=i,a=o[o.length-1],s=a&&a[a.length-1],l=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,s),u=_O.isSaving(t),c=_O.isMerging(t);if(null==u&&(u=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),u){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!qf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!qf.equals(e.path,t.path)))(e,s)||l)),a&&c)l&&a.pop(),a.push(e);else{var f=[e];o.push(f)}for(;o.length>100;)o.shift();(e=>"set_selection"!==e.type)(e)&&(i.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,i=t.insertFragment,o=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=nA.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=nA.getLeftLengthOfMaxLength(t);n<=0||n<Bf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(nA.getLeftLengthOfMaxLength(t)<Bf.string(n).length)return;i(e)}else i(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=nA.getLeftLengthOfMaxLength(t);if(!(r<=0)){var i=document.createElement("div");i.innerHTML=e;var a=Array.from(i.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===NE.TEXT_NODE?e+(t.textContent||""):n===NE.ELEMENT_NODE?KD.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||o(e,n)}}else o(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=vM(t);if(r.on(e,n),"destroyed"===e&&bM(t,n),"destroyed"!==e){var i=function(){return r.off(e,n)};r.on("destroyed",i),bM(t,i)}},t.once=function(e,n){vM(t).once(e,n)},t.off=function(e,n){vM(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=vM(t);i.emit.apply(i,ck([e],uk(n))),"destroyed"===e&&(_M(t).forEach((function(e){return i.off("destroyed",e)})),wM(t))},t}(function(e){var t=e;return t.select=function(e){wd.select(t,e)},t.deselect=function(){var n=t.selection,r=nA.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&wd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||wd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=DE.get(t);null!=e&&(t.focus(),wd.select(t,e))},t.getSelectionPosition=function(){return OM(t)},t.getNodePosition=function(e){return SM(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=uk(Xf.edges(e),2),r=n[0],i=n[1],o=uk(Pf.edges(t,[]),2),a=o[0],s=o[1];return!(!Wf.equals(r,a)||!Wf.equals(i,s))},t.selectAll=function(){var e=Pf.start(t,[]),n=Pf.end(t,[]);wd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,o=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,o,a,s,l,u,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=lk(Pf.levels(t,{at:e.path})),h=d.next();!h.done;h=d.next()){var p=uk(h.value,2),g=p[0],m=p[1],v=nA.findKey(t,g);f.push([m,v])}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var y=lk(Pf.levels(t,{at:qf.parent(e.path)})),b=y.next();!b.done;b=y.next()){var _=uk(b.value,2);g=_[0],m=_[1],v=nA.findKey(t,g),f.push([m,v])}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}break;case"move_node":try{for(var w=lk(Pf.levels(t,{at:qf.common(qf.parent(e.path),qf.parent(e.newPath))})),x=w.next();!x.done;x=w.next()){var O=uk(x.value,2);g=O[0],m=O[1],v=nA.findKey(t,g),f.push([m,v])}}catch(e){s={error:e}}finally{try{x&&!x.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}}i(e);try{for(var S=lk(f),C=S.next();!C.done;C=S.next()){var k=uk(C.value,2);m=k[0],v=k[1],g=uk(Pf.node(t,m),1)[0],EE.set(g,v)}}catch(e){u={error:e}}finally{try{C&&!C.done&&(c=S.return)&&c.call(S)}finally{if(u)throw u.error}}},t.deleteBackward=function(n){if("line"!==n)return o(n);if(e.selection&&Xf.isCollapsed(e.selection)){var r=Pf.above(e,{match:function(t){return Pf.isBlock(e,t)},at:e.selection});if(r){var i=uk(r,2)[1],a=Pf.range(e,i,e.selection.anchor),s=function(e,t){var n=Pf.range(e,Xf.end(t)),r=Array.from(Pf.positions(e,{at:t})),i=0,o=r.length,a=Math.floor(o/2);if(iD(e,Pf.range(e,r[i]),n))return Pf.range(e,r[i],n);if(r.length<2)return Pf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==i;)iD(e,Pf.range(e,r[a]),n)?o=a:i=a,a=Math.floor((i+o)/2);return Pf.range(e,r[o],n)}(t,a);Xf.isCollapsed(s)||wd.delete(e,{at:s})}}},t.onChange=function(){var e=t.selection;null!=e&&DE.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText("    ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return tD(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Bf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Pf.string(e,n)},t.getElemsByType=function(e,n){var r,i;void 0===n&&(n=!1);var o=[],a=Pf.nodes(t,{at:[],universal:!0});try{for(var s=lk(a),l=s.next();!l.done;l=s.next()){var u=uk(l.value,1)[0];if(kf.isElement(u)&&(n?u.type.indexOf(e)>=0:u.type===e)){var c=nD(nA.findKey(t,u).id);o.push(sk(sk({},u),{id:c}))}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(kf.isElement(r)&&"paragraph"===r.type){var i=r.children,o=void 0===i?[]:i;if(o.length>1)return!1;var a=o[0];if(null==a)return!0;if(rd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){wd.delete(t,{at:{anchor:Pf.start(t,[]),focus:Pf.end(t,[])}}),0===t.children.length&&wd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return nA.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var i=Array.from(r.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===NE.TEXT_NODE||t===NE.ELEMENT_NODE&&!KD.has(n.toLowerCase())})),0!==i.length){var o=t.selection;if(null!=o){var a=null;nA.isSelectedEmptyParagraph(t)&&!n&&(a=[o.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var s=0;i.forEach((function(e){var n=e.nodeType,r=e.nodeName,i=e.textContent,o=void 0===i?"":i;if(n!==NE.TEXT_NODE)if("BR"!==r){var a=e,l=!1;if(oD.includes(r.toLowerCase()))l=!0;else for(var u in lD)if(a.matches(u)){l=!0;break}if(l){var c=$D(qh(a),t);return Array.isArray(c)?(c.forEach((function(e){return GD(t,e)})),s++):(GD(t,c),s++),void(nA.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;nA.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!o||!o.trim())return;t.insertNode({text:o})}})),s&&a&&nA.isEmptyPath(t,a)&&wd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),i=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var o=zD(t,e);if(wd.insertFragment(t,o),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch(e){t.select(Pf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in oA)e.push(t);return e},t.getConfig=function(){var e=vE.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=YD(Gc());return t.id="wangEditor-"+rA++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(nA.toDOMNode(t,t).focus({preventScroll:!0}),TE.set(t,!0),e){var n=Pf.end(t,[]);wd.select(t,n)}else{var r=DE.get(t);r?wd.select(t,r):wd.select(t,Pf.start(t,[]))}},t.isFocused=function(){return!!TE.get(t)},t.blur=function(){nA.toDOMNode(t,t).blur(),wd.deselect(t),TE.set(t,!1)},t.updateView=function(){nA.getTextarea(t).changeViewState();var e=nA.getToolbar(t);e&&e.changeToolbarState();var n=nA.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=nA.getTextarea(t);e.destroy(),lE.delete(t),uE.delete(e);var n=nA.getToolbar(t);n&&(n.destroy(),fE.delete(t),cE.delete(n));var r=nA.getHoverbar(t);r&&(r.destroy(),hE.delete(t),dE.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ，编辑器内容无法滚动，请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=qh("#"+e);if(0!==r.length){var i=r[0];if(!nA.hasDOMNode(t,i))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,i);var o=nA.getTextarea(t),a=o.$textAreaContainer,s=o.$scroll,l=r.offset().top,u=a.offset().top;s[0].scrollBy({top:l-u,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||nA.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=gE.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return nA.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=nA.getToolbar(t);n&&(e=n.$box);var r=nA.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏，因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var i=r.css("z-index");r.attr("data-z-index",i.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=nA.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return nA.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return FD(e,"data-w-e-textarea",t)}(u,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=tv(iA),n={},r=e.MENU_CONF,i=void 0===r?{}:r;return Fp(t,(function(e,t){n[t]=sk(sk({},e),i[t]||{})})),delete e.MENU_CONF,sk({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);vE.set(u,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(l.forEach((function(e){u=e(u)})),null!=a&&(u.children=zD(u,a)),o&&o.length&&(u.children=o),0===u.children.length&&(u.children=[{type:"paragraph",children:[{text:""}]}]),nA.normalizeContent(u),n){var h=new gP(n);lE.set(u,h),uE.set(h,u),h.changeViewState(),eD((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var p=void 0;Object.keys(d).length>0&&(p=new RP,dE.set(p,u),hE.set(u,p)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}else u.children.forEach((function(e,t){return BP(e,t,u,u)}));var g=c.onCreated,m=c.onDestroyed;return g&&u.on("created",(function(){return g(u)})),m&&u.on("destroyed",(function(){return m(u)})),eD((function(){return u.emit("created")})),u}var FP=lC("splice"),zP=d_.TypeError,qP=Math.max,UP=Math.min;hO({target:"Array",proto:!0,forced:!FP},{splice:function(e,t){var n,r,i,o,a,s,l=C_(this),u=mx(l),c=Wx(e,u),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=u-c):(n=f-2,r=UP(qP(hx(t),0),u-c)),u+n-r>9007199254740991)throw zP("Maximum allowed length exceeded");for(i=Ax(l,r),o=0;o<r;o++)(a=c+o)in l&&iS(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:delete l[s];for(o=u;o>u-r+n;o--)delete l[o-1]}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:delete l[s];for(o=0;o<n;o++)l[o+c]=arguments[o+2];return l.length=u-r+n,i}});var HP=function(){function e(e,t){var n=this;this.$toolbar=qh('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=ev((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=qh(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var i=this.$toolbar;i.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(i),eD((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,i=r.toolbarKeys,o=void 0===i?[]:i,a=r.insertKeys,s=void 0===a?{index:0,keys:[]}:a,l=r.excludeKeys,u=void 0===l?[]:l,c=tv(o);s.keys.length>0&&("string"==typeof s.keys&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){c.splice(s.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(u.includes(e))return!1}else if(u.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,i){if("|"===r){if(0===i)return;if(i+1===d)return;if("|"===t)return;var o=yP();return n.append(o),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new PP(e)}(e),i=e.menuKeys,o=void 0===i?[]:i,a=this.config.excludeKeys,s=void 0===a?[]:a;o.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof PP,i=this.menus,o=i[e];if(null==o){var a=oA[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");o=a(),i[e]=o}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var s=LP(e,o,r);this.toolbarItems.push(s),pE.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=cE.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),VP=Ww.EXISTS,WP=xw.f,KP=Function.prototype,GP=w_(KP.toString),YP=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,XP=w_(YP.exec);function ZP(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,i=void 0===r?"":r,o=e.maxFileSize,a=void 0===o?10485760:o,s=e.maxNumberOfFiles,l=void 0===s?100:s,u=e.meta,c=void 0===u?{}:u,f=e.metaWithUrl,d=void 0!==f&&f,h=e.headers,p=void 0===h?{}:h,g=e.withCredentials,m=void 0!==g&&g,v=e.timeout,y=void 0===v?1e4:v,b=e.onBeforeUpload,_=void 0===b?function(e){return e}:b,w=e.onSuccess,x=void 0===w?function(e,t){}:w,O=e.onError,S=void 0===O?function(e,t,n){console.error(e.name+" upload error",t,n)}:O,C=e.onProgress,k=void 0===C?function(e){}:C;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!i)throw new Error("Cannot get fieldName\n没有配置 fieldName");var E=n;d&&(E=function(e,t){var n=uk(e.split("#"),2),r=n[0],i=n[1],o=[];Fp(t,(function(e,t){o.push(t+"="+e)}));var a=o.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,i?r+"#"+i:r}(E,c));var A=new Ly({onBeforeUpload:_,restrictions:{maxFileSize:a,maxNumberOfFiles:l},meta:c}).use(a_,{endpoint:E,headers:p,formData:!0,fieldName:i,bundle:!0,withCredentials:m,timeout:y});return A.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{x(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}A.removeFile(e.id)})),A.on("progress",(function(e){e<1||k(e)})),A.on("upload-error",(function(e,t,n){try{S(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}A.removeFile(e.id)})),A.on("restriction-failed",(function(e,t){try{S(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}A.removeFile(e.id)})),A}function QP(e){return QP="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},QP(e)}function JP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){JP(e,t,n[t])}))}return e}function tI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rI(e,t,n){return t&&nI(e.prototype,t),n&&nI(e,n),e}function iI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oI(e,t){if(t&&("object"===QP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iI(e)}function aI(e){return aI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},aI(e)}function sI(e,t){return sI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sI(e,t)}function lI(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sI(e,t)}Z_&&!VP&&WP(KP,"name",{configurable:!0,get:function(){try{return XP(YP,GP(this))[1]}catch(r){return""}}});var uI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},cI=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tI(this,e),this.init(t,n)}return rI(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||uI,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,eI({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),fI=function(){function e(){tI(this,e),this.observers={}}return rI(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function dI(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function hI(e){return null==e?"":""+e}function pI(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function gI(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function mI(e,t,n){var r=gI(e,t,Object);r.obj[r.k]=n}function vI(e,t){var n=gI(e,t),r=n.obj,i=n.k;if(r)return r[i]}function yI(e,t,n){var r=vI(e,n);return void 0!==r?r:vI(t,n)}function bI(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):bI(e[r],t[r],n):e[r]=t[r]);return e}function _I(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var wI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xI(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return wI[e]})):e}var OI="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function SI(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];void 0===l&&r.length>o+a;)a++,l=i[s=r.slice(o,o+a).join(n)];if(void 0===l)return;if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s];var u=r.slice(o+a).join(n);return u?SI(l,u,n):void 0}i=i[r[o]]}return i}}var CI=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return tI(this,t),n=oI(this,aI(t).call(this)),OI&&fI.call(iI(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return lI(t,fI),rI(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=vI(this.data,a);return s||!o||"string"!=typeof n?s:SI(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),mI(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=vI(this.data,a)||{};r?bI(s,n,i):s=eI({},s,n),mI(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?eI({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),kI={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},EI={},AI=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return tI(this,t),n=oI(this,aI(t).call(this)),OI&&fI.call(iI(n)),pI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,iI(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=cI.create("translator"),n}return lI(t,fI),rI(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!==QP(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,l=a.namespaces,u=l[l.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return u+d+s}return s}var h=this.resolve(e,n),p=h&&h.res,g=h&&h.usedKey||s,m=h&&h.exactUsedKey||s,v=Object.prototype.toString.apply(p),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(_&&p&&w&&y.indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,p,eI({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(o){var x="[object Array]"===v,O=x?[]:{},S=x?m:g;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var k="".concat(S).concat(o).concat(C);O[C]=this.translate(k,eI({},n,{joinArrays:!1,ns:l})),O[C]===k&&(O[C]=p[C])}p=O}}else if(_&&"string"==typeof b&&"[object Array]"===v)(p=p.join(b))&&(p=this.extendTranslation(p,e,n,r));else{var E=!1,A=!1,T=void 0!==n.count&&"string"!=typeof n.count,D=t.hasDefaultValue(n),M=T?this.pluralResolver.getSuffix(c,n.count):"",P=n["defaultValue".concat(M)]||n.defaultValue;!this.isValidLookup(p)&&D&&(E=!0,p=P),this.isValidLookup(p)||(A=!0,p=s);var I=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=I&&A?void 0:p,L=D&&P!==p&&this.options.updateMissing;if(A||E||L){if(this.logger.log(L?"updateKey":"missingKey",c,u,s,L?P:p),o){var N=this.resolve(s,eI({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var $=0;$<B.length;$++)R.push(B[$]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var F=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,u,t,L?r:j,L,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,u,t,L?r:j,L,n),i.emit("missingKey",e,u,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?R.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){F([e],s+t,n["defaultValue".concat(t)]||P)}))})):F(R,s,P))}p=this.extendTranslation(p,e,n,h,r),A&&p===s&&this.options.appendNamespaceToMissingKey&&(p="".concat(u,":").concat(s)),(A||E)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(eI({},n,{interpolation:eI({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=eI({},this.options.interpolation.defaultVariables,u)),e=this.interpolator.interpolate(e,u,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=kI.handle(d,e,t,this.options&&this.options.postProcessPassResolved?eI({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(o=e,!EI["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(EI["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,l,c=u,h=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(h,u,n,e,s):(f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&d&&h.push(c+o),d&&h.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&h.push(c+=o));l=h.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function TI(e){return e.charAt(0).toUpperCase()+e.slice(1)}var DI=function(){function e(t){tI(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cI.create("languageUtils")}return rI(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=TI(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=TI(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=TI(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),MI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],PI={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function II(){var e={};return MI.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:PI[t.fc]}}))})),e}var jI=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};tI(this,e),this.languageUtils=t,this.options=n,this.logger=cI.create("pluralResolver"),this.rules=II()}return rI(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),LI=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tI(this,e),this.logger=cI.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return rI(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:xI,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?_I(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?_I(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?_I(t.nestingPrefix):t.nestingPrefixEscaped||_I("$t("),this.nestingSuffix=t.nestingSuffix?_I(t.nestingSuffix):t.nestingSuffixEscaped||_I(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var i=yI(t,l,e);return s.alwaysFormat?s.format(i,void 0,n,eI({},r,t,{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(yI(t,l,a),u,n,eI({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,h=[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}];return h.forEach((function(t){for(a=0;i=t.regex.exec(e);){if(void 0===(o=c(i[1].trim())))if("function"==typeof f){var n=f(e,i,r);o="string"==typeof n?n:""}else{if(d){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=hI(o));var l=t.safeValue(o);if(e=e.replace(i[0],l),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=eI({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=eI({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=hI(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce((function(e,t){return i.format(e,t,o.lng,eI({},o,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),NI=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return tI(this,t),i=oI(this,aI(t).call(this)),OI&&fI.call(iI(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=cI.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return lI(t,fI),rI(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=gI(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}(n.loaded,[i],o),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,eI({},o,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function RI(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===QP(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===QP(e[2])||"object"===QP(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function BI(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $I(){}var FI=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(tI(this,t),e=oI(this,aI(t).call(this)),OI&&fI.call(iI(e)),e.options=BI(n),e.services={},e.logger=cI,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),oI(e,iI(e));setTimeout((function(){e.init(n,r)}),0)}return e}return lI(t,fI),rI(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=eI({},RI(),this.options,BI(t)),this.format=this.options.interpolation.format,n||(n=$I),!this.options.isClone){this.modules.logger?cI.init(r(this.modules.logger),this.options):cI.init(null,this.options);var i=new DI(this.options);this.store=new CI(this.options.resources,this.options);var o=this.services;o.logger=cI,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new jI(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new LI(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new NI(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new AI(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=dI(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$I,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=dI();return e||(e=this.languages),t||(t=this.options.ns),n||(n=$I),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&kI.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=dI();this.emit("languageChanging",e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var o="string"==typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==QP(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=eI({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns;var u=r.options.keySeparator||".",c=n?"".concat(n).concat(u).concat(t):t;return r.t(c,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=dI();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=dI();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$I,i=eI({},this.options,n,{isClone:!0}),o=new t(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=eI({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new AI(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),zI=new FI;function qI(e,t){zI.addResourceBundle(e,"translation",t,!0,!0)}function UI(e){zI.changeLanguage(e)}function HI(e){return zI.getResourceBundle(e,"translation")}zI.init({lng:"zh-CN",resources:{}});var VI=zI.t.bind(zI);qI("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),qI("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var WI=ra?{}.toString:function(){return"[object "+sa(this)+"]"};ra||So(Object.prototype,"toString",WI,{unsafe:!0});var KI=Array.isArray||function(e){return"Array"==Vr(e)},GI=function(){},YI=[],XI=ti("Reflect","construct"),ZI=/^\s*(?:class|function)\b/,QI=qr(ZI.exec),JI=!ZI.exec(GI),ej=function(e){if(!Qr(e))return!1;try{return XI(GI,YI,e),!0}catch(e){return!1}},tj=!XI||Tr((function(){var e;return ej(ej.call)||!ej(Object)||!ej((function(){e=!0}))||e}))?function(e){if(!Qr(e))return!1;switch(sa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return JI||!!QI(ZI,oo(e))}:ej,nj=Li("species"),rj=Ar.Array,ij=function(e,t){return new(function(e){var t;return KI(e)&&(t=e.constructor,(tj(t)&&(t===rj||KI(t.prototype))||Jr(t)&&null===(t=t[nj]))&&(t=void 0)),void 0===t?rj:t}(e))(0===t?0:t)},oj=qr([].push),aj=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=Si(l),g=Gr(p),m=_s(u,c),v=Io(g),y=0,b=f||ij,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:oj(_,d)}else switch(e){case 4:return!1;case 7:oj(_,d)}return o?-1:r||i?i:_}},sj={forEach:aj(0),map:aj(1),filter:aj(2),some:aj(3),every:aj(4),find:aj(5),findIndex:aj(6),filterReject:aj(7)}.forEach,lj=function(e,t){var n=[][e];return!!n&&Tr((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),uj=lj?[].forEach:function(e){return sj(this,e,arguments.length>1?arguments[1]:void 0)},cj=function(e){if(e&&e.forEach!==uj)try{eo(e,"forEach",uj)}catch(i){e.forEach=uj}};for(var fj in pl)pl[fj]&&cj(Ar[fj]&&Ar[fj].prototype);cj(vl),qI("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),qI("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var dj={type:"paragraph",renderElem:function(e,t,n){return Ng("p",null,t)}},hj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function pj(e){var t={exports:{}};return e(t,t.exports),t.exports}var gj,mj,vj=function(e){return e&&e.Math==Math&&e},yj=vj("object"==typeof globalThis&&globalThis)||vj("object"==typeof window&&window)||vj("object"==typeof self&&self)||vj("object"==typeof hj&&hj)||function(){return this}()||Function("return this")(),bj=function(e){try{return!!e()}catch(e){return!0}},_j=!bj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),wj=Function.prototype.call,xj=wj.bind?wj.bind(wj):function(){return wj.apply(wj,arguments)},Oj={}.propertyIsEnumerable,Sj=Object.getOwnPropertyDescriptor,Cj=Sj&&!Oj.call({1:2},1)?function(e){var t=Sj(this,e);return!!t&&t.enumerable}:Oj,kj={f:Cj},Ej=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Aj=Function.prototype,Tj=Aj.bind,Dj=Aj.call,Mj=Tj&&Tj.bind(Dj),Pj=Tj?function(e){return e&&Mj(Dj,e)}:function(e){return e&&function(){return Dj.apply(e,arguments)}},Ij=Pj({}.toString),jj=Pj("".slice),Lj=function(e){return jj(Ij(e),8,-1)},Nj=yj.Object,Rj=Pj("".split),Bj=bj((function(){return!Nj("z").propertyIsEnumerable(0)}))?function(e){return"String"==Lj(e)?Rj(e,""):Nj(e)}:Nj,$j=yj.TypeError,Fj=function(e){if(null==e)throw $j("Can't call method on "+e);return e},zj=function(e){return Bj(Fj(e))},qj=function(e){return"function"==typeof e},Uj=function(e){return"object"==typeof e?null!==e:qj(e)},Hj=function(e){return qj(e)?e:void 0},Vj=function(e,t){return arguments.length<2?Hj(yj[e]):yj[e]&&yj[e][t]},Wj=Pj({}.isPrototypeOf),Kj=Vj("navigator","userAgent")||"",Gj=yj.process,Yj=yj.Deno,Xj=Gj&&Gj.versions||Yj&&Yj.version,Zj=Xj&&Xj.v8;Zj&&(mj=(gj=Zj.split("."))[0]>0&&gj[0]<4?1:+(gj[0]+gj[1])),!mj&&Kj&&(!(gj=Kj.match(/Edge\/(\d+)/))||gj[1]>=74)&&(gj=Kj.match(/Chrome\/(\d+)/))&&(mj=+gj[1]);var Qj=mj,Jj=!!Object.getOwnPropertySymbols&&!bj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qj&&Qj<41})),eL=Jj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tL=yj.Object,nL=eL?function(e){return"symbol"==typeof e}:function(e){var t=Vj("Symbol");return qj(t)&&Wj(t.prototype,tL(e))},rL=yj.String,iL=function(e){try{return rL(e)}catch(e){return"Object"}},oL=yj.TypeError,aL=function(e){if(qj(e))return e;throw oL(iL(e)+" is not a function")},sL=function(e,t){var n=e[t];return null==n?void 0:aL(n)},lL=yj.TypeError,uL=Object.defineProperty,cL=function(e,t){try{uL(yj,e,{value:t,configurable:!0,writable:!0})}catch(o){yj[e]=t}return t},fL=yj["__core-js_shared__"]||cL("__core-js_shared__",{}),dL=pj((function(e){(e.exports=function(e,t){return fL[e]||(fL[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hL=yj.Object,pL=function(e){return hL(Fj(e))},gL=Pj({}.hasOwnProperty),mL=Object.hasOwn||function(e,t){return gL(pL(e),t)},vL=0,yL=Math.random(),bL=Pj(1..toString),_L=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bL(++vL+yL,36)},wL=dL("wks"),xL=yj.Symbol,OL=xL&&xL.for,SL=eL?xL:xL&&xL.withoutSetter||_L,CL=function(e){if(!mL(wL,e)||!Jj&&"string"!=typeof wL[e]){var t="Symbol."+e;Jj&&mL(xL,e)?wL[e]=xL[e]:wL[e]=eL&&OL?OL(t):SL(t)}return wL[e]},kL=yj.TypeError,EL=CL("toPrimitive"),AL=function(e){var t=function(e,t){if(!Uj(e)||nL(e))return e;var n,r=sL(e,EL);if(r){if(void 0===t&&(t="default"),n=xj(r,e,t),!Uj(n)||nL(n))return n;throw kL("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&qj(n=e.toString)&&!Uj(r=xj(n,e)))return r;if(qj(n=e.valueOf)&&!Uj(r=xj(n,e)))return r;if("string"!==t&&qj(n=e.toString)&&!Uj(r=xj(n,e)))return r;throw lL("Can't convert object to primitive value")}(e,t)}(e,"string");return nL(t)?t:t+""},TL=yj.document,DL=Uj(TL)&&Uj(TL.createElement),ML=function(e){return DL?TL.createElement(e):{}},PL=!_j&&!bj((function(){return 7!=Object.defineProperty(ML("div"),"a",{get:function(){return 7}}).a})),IL=Object.getOwnPropertyDescriptor,jL={f:_j?IL:function(e,t){if(e=zj(e),t=AL(t),PL)try{return IL(e,t)}catch(e){}if(mL(e,t))return Ej(!xj(kj.f,e,t),e[t])}},LL=yj.String,NL=yj.TypeError,RL=function(e){if(Uj(e))return e;throw NL(LL(e)+" is not an object")},BL=yj.TypeError,$L=Object.defineProperty,FL={f:_j?$L:function(e,t,n){if(RL(e),t=AL(t),RL(n),PL)try{return $L(e,t,n)}catch(e){}if("get"in n||"set"in n)throw BL("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zL=_j?function(e,t,n){return FL.f(e,t,Ej(1,n))}:function(e,t,n){return e[t]=n,e},qL=Pj(Function.toString);qj(fL.inspectSource)||(fL.inspectSource=function(e){return qL(e)});var UL,HL,VL,WL=fL.inspectSource,KL=yj.WeakMap,GL=qj(KL)&&/native code/.test(WL(KL)),YL=dL("keys"),XL=function(e){return YL[e]||(YL[e]=_L(e))},ZL={},QL=yj.TypeError,JL=yj.WeakMap;if(GL||fL.state){var eN=fL.state||(fL.state=new JL),tN=Pj(eN.get),nN=Pj(eN.has),rN=Pj(eN.set);UL=function(e,t){if(nN(eN,e))throw new QL("Object already initialized");return t.facade=e,rN(eN,e,t),t},HL=function(e){return tN(eN,e)||{}},VL=function(e){return nN(eN,e)}}else{var iN=XL("state");ZL[iN]=!0,UL=function(e,t){if(mL(e,iN))throw new QL("Object already initialized");return t.facade=e,zL(e,iN,t),t},HL=function(e){return mL(e,iN)?e[iN]:{}},VL=function(e){return mL(e,iN)}}var oN={set:UL,get:HL,has:VL,enforce:function(e){return VL(e)?HL(e):UL(e,{})},getterFor:function(e){return function(t){var n;if(!Uj(t)||(n=HL(t)).type!==e)throw QL("Incompatible receiver, "+e+" required");return n}}},aN=Function.prototype,sN=_j&&Object.getOwnPropertyDescriptor,lN=mL(aN,"name"),uN={EXISTS:lN,PROPER:lN&&"something"===function(){}.name,CONFIGURABLE:lN&&(!_j||_j&&sN(aN,"name").configurable)},cN=pj((function(e){var t=uN.CONFIGURABLE,n=oN.get,r=oN.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;qj(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!mL(o,"name")||t&&o.name!==f)&&zL(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==yj?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:zL(e,n,o)):u?e[n]=o:cL(n,o)})(Function.prototype,"toString",(function(){return qj(this)&&n(this).source||WL(this)}))})),fN=Math.ceil,dN=Math.floor,hN=function(e){var t=+e;return t!=t||0===t?0:(t>0?dN:fN)(t)},pN=Math.max,gN=Math.min,mN=function(e,t){var n=hN(e);return n<0?pN(n+t,0):gN(n,t)},vN=Math.min,yN=function(e){return e>0?vN(hN(e),9007199254740991):0},bN=function(e){return yN(e.length)},_N=function(e){return function(t,n,r){var i,o=zj(t),a=bN(o),s=mN(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},wN={includes:_N(!0),indexOf:_N(!1)},xN=wN.indexOf,ON=Pj([].push),SN=function(e,t){var n,r=zj(e),i=0,o=[];for(n in r)!mL(ZL,n)&&mL(r,n)&&ON(o,n);for(;t.length>i;)mL(r,n=t[i++])&&(~xN(o,n)||ON(o,n));return o},CN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kN=CN.concat("length","prototype"),EN={f:Object.getOwnPropertyNames||function(e){return SN(e,kN)}},AN={f:Object.getOwnPropertySymbols},TN=Pj([].concat),DN=Vj("Reflect","ownKeys")||function(e){var t=EN.f(RL(e)),n=AN.f;return n?TN(t,n(e)):t},MN=function(e,t){for(var n=DN(t),r=FL.f,i=jL.f,o=0;o<n.length;o++){var a=n[o];mL(e,a)||r(e,a,i(t,a))}},PN=/#|\.prototype\./,IN=function(e,t){var n=LN[jN(e)];return n==RN||n!=NN&&(qj(t)?bj(t):!!t)},jN=IN.normalize=function(e){return String(e).replace(PN,".").toLowerCase()},LN=IN.data={},NN=IN.NATIVE="N",RN=IN.POLYFILL="P",BN=IN,$N=jL.f,FN=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?yj:u?yj[s]||cL(s,{}):(yj[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=$N(n,r))&&a.value:n[r],!BN(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;MN(o,i)}(e.sham||i&&i.sham)&&zL(o,"sham",!0),cN(n,r,o,e)}},zN=Pj(Pj.bind),qN=Array.isArray||function(e){return"Array"==Lj(e)},UN={};UN[CL("toStringTag")]="z";var HN="[object z]"===String(UN),VN=CL("toStringTag"),WN=yj.Object,KN="Arguments"==Lj(function(){return arguments}()),GN=HN?Lj:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=WN(e),VN))?n:KN?Lj(t):"Object"==(r=Lj(t))&&qj(t.callee)?"Arguments":r},YN=function(){},XN=[],ZN=Vj("Reflect","construct"),QN=/^\s*(?:class|function)\b/,JN=Pj(QN.exec),eR=!QN.exec(YN),tR=function(e){if(!qj(e))return!1;try{return ZN(YN,XN,e),!0}catch(e){return!1}},nR=!ZN||bj((function(){var e;return tR(tR.call)||!tR(Object)||!tR((function(){e=!0}))||e}))?function(e){if(!qj(e))return!1;switch(GN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return eR||!!JN(QN,WL(e))}:tR,rR=CL("species"),iR=yj.Array,oR=function(e,t){return new(function(e){var t;return qN(e)&&(t=e.constructor,(nR(t)&&(t===iR||qN(t.prototype))||Uj(t)&&null===(t=t[rR]))&&(t=void 0)),void 0===t?iR:t}(e))(0===t?0:t)},aR=Pj([].push),sR=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=pL(l),g=Bj(p),m=function(e,t){return aL(e),void 0===t?e:zN?zN(e,t):function(){return e.apply(t,arguments)}}(u,c),v=bN(g),y=0,b=f||oR,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:aR(_,d)}else switch(e){case 4:return!1;case 7:aR(_,d)}return o?-1:r||i?i:_}},lR={forEach:sR(0),map:sR(1),filter:sR(2),some:sR(3),every:sR(4),find:sR(5),findIndex:sR(6),filterReject:sR(7)},uR=CL("species"),cR=function(e){return Qj>=51||!bj((function(){var t=[];return(t.constructor={})[uR]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},fR=lR.filter;FN({target:"Array",proto:!0,forced:!cR("filter")},{filter:function(e){return fR(this,e,arguments.length>1?arguments[1]:void 0)}});var dR=HN?{}.toString:function(){return"[object "+GN(this)+"]"};HN||cN(Object.prototype,"toString",dR,{unsafe:!0});var hR,pR=yj.String,gR=function(e){if("Symbol"===GN(e))throw TypeError("Cannot convert a Symbol value to a string");return pR(e)},mR=function(){var e=RL(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},vR=yj.RegExp,yR=bj((function(){var e=vR("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),bR=yR||bj((function(){return!vR("a","y").sticky})),_R={BROKEN_CARET:yR||bj((function(){var e=vR("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:bR,UNSUPPORTED_Y:yR},wR=Object.keys||function(e){return SN(e,CN)},xR=_j?Object.defineProperties:function(e,t){RL(e);for(var n,r=zj(t),i=wR(t),o=i.length,a=0;o>a;)FL.f(e,n=i[a++],r[n]);return e},OR=Vj("document","documentElement"),SR=XL("IE_PROTO"),CR=function(){},kR=function(e){return"<script>"+e+"<\/script>"},ER=function(e){e.write(kR("")),e.close();var t=e.parentWindow.Object;return e=null,t},AR=function(){try{hR=new ActiveXObject("htmlfile")}catch(e){}var e,t;AR="undefined"!=typeof document?document.domain&&hR?ER(hR):((t=ML("iframe")).style.display="none",OR.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kR("document.F=Object")),e.close(),e.F):ER(hR);for(var n=CN.length;n--;)delete AR.prototype[CN[n]];return AR()};ZL[SR]=!0;var TR,DR,MR=Object.create||function(e,t){var n;return null!==e?(CR.prototype=RL(e),n=new CR,CR.prototype=null,n[SR]=e):n=AR(),void 0===t?n:xR(n,t)},PR=yj.RegExp,IR=bj((function(){var e=PR(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),jR=yj.RegExp,LR=bj((function(){var e=jR("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),NR=oN.get,RR=dL("native-string-replace",String.prototype.replace),BR=RegExp.prototype.exec,$R=BR,FR=Pj("".charAt),zR=Pj("".indexOf),qR=Pj("".replace),UR=Pj("".slice),HR=(DR=/b*/g,xj(BR,TR=/a/,"a"),xj(BR,DR,"a"),0!==TR.lastIndex||0!==DR.lastIndex),VR=_R.BROKEN_CARET,WR=void 0!==/()??/.exec("")[1];(HR||WR||VR||IR||LR)&&($R=function(e){var t,n,r,i,o,a,s,l=this,u=NR(l),c=gR(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=xj($R,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=VR&&l.sticky,p=xj(mR,l),g=l.source,m=0,v=c;if(h&&(p=qR(p,"y",""),-1===zR(p,"g")&&(p+="g"),v=UR(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==FR(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),WR&&(n=new RegExp("^"+g+"$(?!\\s)",p)),HR&&(r=l.lastIndex),i=xj(BR,h?n:l,v),h?i?(i.input=UR(i.input,m),i[0]=UR(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:HR&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),WR&&i&&i.length>1&&xj(RR,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=MR(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var KR=$R;FN({target:"RegExp",proto:!0,forced:/./.exec!==KR},{exec:KR});var GR=Function.prototype,YR=GR.apply,XR=GR.bind,ZR=GR.call,QR="object"==typeof Reflect&&Reflect.apply||(XR?ZR.bind(YR):function(){return ZR.apply(YR,arguments)}),JR=CL("species"),eB=RegExp.prototype,tB=function(e,t,n,r){var i=CL(e),o=!bj((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!bj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[JR]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=Pj(/./[i]),l=t(i,""[e],(function(e,t,n,r,i){var a=Pj(e),l=t.exec;return l===KR||l===eB.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));cN(String.prototype,e,l[0]),cN(eB,i,l[1])}r&&zL(eB[i],"sham",!0)},nB=Pj("".charAt),rB=Pj("".charCodeAt),iB=Pj("".slice),oB=function(e){return function(t,n){var r,i,o=gR(Fj(t)),a=hN(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=rB(o,a))<55296||r>56319||a+1===s||(i=rB(o,a+1))<56320||i>57343?e?nB(o,a):r:e?iB(o,a,a+2):i-56320+(r-55296<<10)+65536}},aB=(oB(!1),oB(!0)),sB=function(e,t,n){return t+(n?aB(e,t).length:1)},lB=Math.floor,uB=Pj("".charAt),cB=Pj("".replace),fB=Pj("".slice),dB=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hB=/\$([$&'`]|\d{1,2})/g,pB=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=hB;return void 0!==i&&(i=pL(i),l=dB),cB(o,l,(function(o,l){var u;switch(uB(l,0)){case"$":return"$";case"&":return e;case"`":return fB(t,0,n);case"'":return fB(t,a);case"<":u=i[fB(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var f=lB(c/10);return 0===f?o:f<=s?void 0===r[f-1]?uB(l,1):r[f-1]+uB(l,1):o}u=r[c-1]}return void 0===u?"":u}))},gB=yj.TypeError,mB=function(e,t){var n=e.exec;if(qj(n)){var r=xj(n,e,t);return null!==r&&RL(r),r}if("RegExp"===Lj(e))return xj(KR,e,t);throw gB("RegExp#exec called on incompatible receiver")},vB=CL("replace"),yB=Math.max,bB=Math.min,_B=Pj([].concat),wB=Pj([].push),xB=Pj("".indexOf),OB=Pj("".slice),SB="$0"==="a".replace(/./,"$0"),CB=!!/./[vB]&&""===/./[vB]("a","$0");tB("replace",(function(e,t,n){var r=CB?"$":"$0";return[function(e,n){var r=Fj(this),i=null==e?void 0:sL(e,vB);return i?xj(i,e,r,n):xj(t,gR(r),e,n)},function(e,i){var o=RL(this),a=gR(e);if("string"==typeof i&&-1===xB(i,r)&&-1===xB(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=qj(i);l||(i=gR(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var f=[];;){var d=mB(o,a);if(null===d)break;if(wB(f,d),!u)break;""===gR(d[0])&&(o.lastIndex=sB(a,yN(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v=gR((d=f[m])[0]),y=yB(bB(hN(d.index),a.length),0),b=[],_=1;_<d.length;_++)wB(b,void 0===(h=d[_])?h:String(h));var w=d.groups;if(l){var x=_B([v],b,y,a);void 0!==w&&wB(x,w);var O=gR(QR(i,void 0,x))}else O=pB(v,a,y,b,w,i);y>=g&&(p+=OB(a,g,y)+O,g=y+v.length)}return p+OB(a,g)}]}),!!bj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!SB||CB);var kB=CL("unscopables"),EB=Array.prototype;null==EB[kB]&&FL.f(EB,kB,{configurable:!0,value:MR(null)});var AB=function(e){EB[kB][e]=!0},TB=lR.find,DB=!0;"find"in[]&&Array(1).find((function(){DB=!1})),FN({target:"Array",proto:!0,forced:DB},{find:function(e){return TB(this,e,arguments.length>1?arguments[1]:void 0)}}),AB("find");var MB=CL("match"),PB=function(e){var t;return Uj(e)&&(void 0!==(t=e[MB])?!!t:"RegExp"==Lj(e))},IB=yj.TypeError,jB=CL("species"),LB=function(e,t,n){var r=AL(t);r in e?FL.f(e,r,Ej(0,n)):e[r]=n},NB=yj.Array,RB=Math.max,BB=function(e,t,n){for(var r=bN(e),i=mN(t,r),o=mN(void 0===n?r:n,r),a=NB(RB(o-i,0)),s=0;i<o;i++,s++)LB(a,s,e[i]);return a.length=s,a},$B=_R.UNSUPPORTED_Y,FB=Math.min,zB=[].push,qB=Pj(/./.exec),UB=Pj(zB),HB=Pj("".slice);tB("split",(function(e,t,n){var r;return r="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 r=gR(Fj(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!PB(e))return xj(t,r,e,i);for(var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,u+"g");(o=xj(KR,f,r))&&!((a=f.lastIndex)>c&&(UB(l,HB(r,c,o.index)),o.length>1&&o.index<r.length&&QR(zB,l,BB(o,1)),s=o[0].length,c=a,l.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return c===r.length?!s&&qB(f,"")||UB(l,""):UB(l,HB(r,c)),l.length>i?BB(l,0,i):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:xj(t,this,e,n)}:t,[function(t,n){var i=Fj(this),o=null==t?void 0:sL(t,e);return o?xj(o,t,i,n):xj(r,gR(i),t,n)},function(e,i){var o=RL(this),a=gR(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var l=function(e,t){var n,r=RL(e).constructor;return void 0===r||null==(n=RL(r)[jB])?t:function(e){if(nR(e))return e;throw IB(iL(e)+" is not a constructor")}(n)}(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+($B?"g":"y"),f=new l($B?"^(?:"+o.source+")":o,c),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===mB(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=$B?0:p;var m,v=mB(f,$B?HB(a,p):a);if(null===v||(m=FB(yN(f.lastIndex+($B?p:0)),a.length))===h)p=sB(a,p,u);else{if(UB(g,HB(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(UB(g,v[y]),g.length===d)return g;p=h=m}}return UB(g,HB(a,h)),g}]}),!!bj((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]})),$B);var VB="\t\n\v\f\r                　\u2028\u2029\ufeff",WB=Pj("".replace),KB="["+VB+"]",GB=RegExp("^"+KB+KB+"*"),YB=RegExp(KB+KB+"*$"),XB=function(e){return function(t){var n=gR(Fj(t));return 1&e&&(n=WB(n,GB,"")),2&e&&(n=WB(n,YB,"")),n}},ZB={start:XB(1),end:XB(2),trim:XB(3)},QB=uN.PROPER,JB=ZB.trim;function e$(e){return 0===qh("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function t$(e){return 0===e.length?"":e[0].outerHTML}function n$(e){return e.length?e[0].tagName.toLowerCase():""}function r$(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}FN({target:"String",proto:!0,forced:bj((function(){return!!VB.trim()||"​᠎"!=="​᠎".trim()||QB&&"trim"!==VB.trim.name}))},{trim:function(){return JB(this)}}),FN({global:!0},{globalThis:yj}),rp&&(qh.fn.css=rp),up&&(qh.fn.append=up),cp&&(qh.fn.prepend=cp),Uh&&(qh.fn.addClass=Uh),Hh&&(qh.fn.removeClass=Hh),Vh&&(qh.fn.hasClass=Vh),Xh&&(qh.fn.on=Xh),Zh&&(qh.fn.off=Zh),_p&&(qh.fn.focus=_p),Wh&&(qh.fn.attr=Wh),Kh&&(qh.fn.removeAttr=Kh),tp&&(qh.fn.hide=tp),np&&(qh.fn.show=np),dp&&(qh.fn.parents=dp),Gh&&(qh.fn.dataset=Gh),Yh&&(qh.fn.val=Yh),sp&&(qh.fn.text=sp),ap&&(qh.fn.html=ap),pp&&(qh.fn.children=pp),gp&&(qh.fn.remove=gp),hp&&(qh.fn.find=hp),Qh&&(qh.fn.width=Qh),Jh&&(qh.fn.height=Jh),op&&(qh.fn.filter=op),mp&&(qh.fn.empty=mp);var i$={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);return 0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},o$=function(e,t){return o$=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])},o$(e,t)
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function a$(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}o$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s$=function(){return s$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s$.apply(this,arguments)};function l$(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function u$(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function c$(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f$(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function d$(e){var t=f$(Pf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!kf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Bf.string(n))return!1;var r=n.children,i=void 0===r?[]:r;return!!rd.isText(i[0])&&(wd.setNodes(e,{type:"paragraph"}),!0)}var h$={renderElems:[dj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[i$],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){d$(r)||t(e)},r.deleteForward=function(e){d$(r)||n(e)},r}},p$=/"/g,g$=Pj("".replace),m$=function(e,t,n,r){var i=gR(Fj(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+g$(gR(r),p$,"&quot;")+'"'),o+">"+i+"</"+t+">"},v$=function(e){return bj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function y$(e,t){var n=t,r=e,i=r.bold,o=r.italic,a=r.underline;return i&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),o&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function b$(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}FN({target:"String",proto:!0,forced:v$("bold")},{bold:function(){return m$(this,"b","","")}}),FN({target:"String",proto:!0,forced:v$("italics")},{italics:function(){return m$(this,"i","","")}}),FN({target:"String",proto:!0,forced:v$("sub")},{sub:function(){return m$(this,"sub","","")}}),FN({target:"String",proto:!0,forced:v$("sup")},{sup:function(){return m$(this,"sup","","")}});var _$={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},w$=ML("span").classList,x$=w$&&w$.constructor&&w$.constructor.prototype,O$=x$===Object.prototype?void 0:x$,S$=function(e,t){var n=[][e];return!!n&&bj((function(){n.call(null,t||function(){throw 1},1)}))},C$=lR.forEach,k$=S$("forEach")?[].forEach:function(e){return C$(this,e,arguments.length>1?arguments[1]:void 0)},E$=function(e){if(e&&e.forEach!==k$)try{zL(e,"forEach",k$)}catch(i){e.forEach=k$}};for(var A$ in _$)_$[A$]&&E$(yj[A$]&&yj[A$].prototype);function T$(e,t){return null==e.selection||!!f$(Pf.nodes(e,{match:function(t){return"pre"===nA.getNodeType(t)||!!Pf.isVoid(e,t)},universal:!0}),1)[0]}function D$(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Pf.removeMark(e,t)}))}E$(O$),FN({target:"Object",stat:!0,forced:bj((function(){wR(1)}))},{keys:function(e){return wR(pL(e))}});var M$=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Pf.marks(e);return n?n[t]:!!f$(Pf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return T$(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),P$='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',I$='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',j$='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',L$='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',N$='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',R$='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',B$='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',$$='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',F$='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',z$='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',q$='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',U$='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',H$='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',V$='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',W$='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',K$='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',G$='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Y$='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',X$='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Z$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=VI("textStyle.bold"),t.iconSvg=P$,t.hotkey="mod+b",t}return a$(t,e),t}(M$),Q$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=VI("textStyle.code"),t.iconSvg=N$,t.hotkey="mod+e",t}return a$(t,e),t}(M$),J$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=VI("textStyle.italic"),t.iconSvg=j$,t.hotkey="mod+i",t}return a$(t,e),t}(M$),eF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=VI("textStyle.through"),t.iconSvg=L$,t.hotkey="mod+shift+x",t}return a$(t,e),t}(M$),tF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=VI("textStyle.underline"),t.iconSvg=I$,t.hotkey="mod+u",t}return a$(t,e),t}(M$),nF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=VI("textStyle.sub"),t.iconSvg=X$,t.hotkey="",t}return a$(t,e),t}(M$),rF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=VI("textStyle.sup"),t.iconSvg=Y$,t.hotkey="",t}return a$(t,e),t}(M$),iF=function(){function e(){this.title=VI("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return T$(e)},e.prototype.exec=function(e,t){var n,r,i=Pf.nodes(e,{match:function(e){return rd.isText(e)},universal:!0});try{for(var o=c$(i),a=o.next();!a.done;a=o.next())D$(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e}(),oF={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,o=n.underline,a=n.code,s=n.through,l=n.sub,u=n.sup,c=t;return r&&(c=Ng("strong",null,c)),a&&(c=Ng("code",null,c)),i&&(c=Ng("em",null,c)),o&&(c=Ng("u",null,c)),s&&(c=Ng("s",null,c)),l&&(c=Ng("sub",null,c)),u&&(c=Ng("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Z$}},{key:"underline",factory:function(){return new tF}},{key:"italic",factory:function(){return new J$}},{key:"through",factory:function(){return new eF}},{key:"code",factory:function(){return new Q$}},{key:"sub",factory:function(){return new nF}},{key:"sup",factory:function(){return new rF}},{key:"clearStyle",factory:function(){return new iF}}],styleToHtml:function(e,t){if(!rd.isText(e))return t;if(e$(t))return y$(e,t);var n=qh(t);if("br"===n$(n))return y$(e,"<br>");var r=n.html();return r=y$(e,r),n.html(r),t$(n)},parseStyleHtml:function(e,t,n){var r=qh(e);if(!rd.isText(t))return t;var i=t;return b$(r,"b,strong")&&(i.bold=!0),b$(r,"i,em")&&(i.italic=!0),b$(r,"u")&&(i.underline=!0),b$(r,"s,strike")&&(i.through=!0),b$(r,"sub")&&(i.sub=!0),b$(r,"sup")&&(i.sup=!0),b$(r,"code")&&(i.code=!0),i}};function aF(e){return function(t,n,r){return Ng("h"+e,null,n)}}var sF={type:"header1",renderElem:aF(1)},lF={type:"header2",renderElem:aF(2)},uF={type:"header3",renderElem:aF(3)},cF={type:"header4",renderElem:aF(4)},fF={type:"header5",renderElem:aF(5)},dF=uN.PROPER,hF=RegExp.prototype,pF=hF.toString,gF=Pj(mR),mF=bj((function(){return"/a/b"!=pF.call({source:"a",flags:"b"})})),vF=dF&&"toString"!=pF.name;(mF||vF)&&cN(RegExp.prototype,"toString",(function(){var e=RL(this),t=gR(e.source),n=e.flags;return"/"+t+"/"+gR(void 0===n&&Wj(hF,e)&&!("flags"in hF)?gF(e):n)}),{unsafe:!0});var yF,bF=yj.TypeError,_F=function(e){if(PB(e))throw bF("The method doesn't accept regular expressions");return e},wF=CL("match"),xF=function(e){var t=/./;try{"/./"[e](t)}catch(o){try{return t[wF]=!1,"/./"[e](t)}catch(e){}}return!1},OF=jL.f,SF=Pj("".startsWith),CF=Pj("".slice),kF=Math.min,EF=xF("startsWith");function AF(e){var t=f$(Pf.nodes(e,{match:function(e){return nA.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=f$(n,1)[0];return nA.getNodeType(r)}function TF(e){return null==e.selection||!f$(Pf.nodes(e,{match:function(e){var t=nA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function DF(e,t){t&&wd.setNodes(e,{type:t})}FN({target:"String",proto:!0,forced:!(!EF&&(yF=OF(String.prototype,"startsWith"),yF&&!yF.writable)||EF)},{startsWith:function(e){var t=gR(Fj(this));_F(e);var n=yN(kF(arguments.length>1?arguments[1]:void 0,t.length)),r=gR(e);return SF?SF(t,r,n):CF(t,n,n+r.length)===r}});var MF=function(){function e(){this.title=VI("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:VI("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return AF(e)},e.prototype.isDisabled=function(e){return TF(e)},e.prototype.exec=function(e,t){DF(e,t.toString())},e}(),PF=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return AF(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return TF(e)},e.prototype.exec=function(e,t){var n=this.type;DF(e,t===n?"paragraph":n)},e}(),IF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return a$(t,e),t}(PF),jF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return a$(t,e),t}(PF),LF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return a$(t,e),t}(PF),NF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return a$(t,e),t}(PF),RF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return a$(t,e),t}(PF),BF={key:"headerSelect",factory:function(){return new MF}},$F={key:"header1",factory:function(){return new IF}},FF={key:"header2",factory:function(){return new jF}},zF={key:"header3",factory:function(){return new LF}},qF={key:"header4",factory:function(){return new NF}},UF={key:"header5",factory:function(){return new RF}};function HF(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function VF(e){return function(t,n,r){var i=qh(t);return 0===(n=n.filter((function(e){return!!rd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:i.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var WF={renderElems:[sF,lF,uF,cF,fF],elemsToHtml:[{type:"header1",elemToHtml:HF(1)},{type:"header2",elemToHtml:HF(2)},{type:"header3",elemToHtml:HF(3)},{type:"header4",elemToHtml:HF(4)},{type:"header5",elemToHtml:HF(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:VF(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:VF(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:VF(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:VF(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:VF(5)}],menus:[BF,$F,FF,zF,qF,UF],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=f$(Pf.nodes(n,{match:function(e){return nA.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&nA.isSelectionAtLineEnd(e,r[1])?wd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},KF=Object.assign,GF=Object.defineProperty,YF=Pj([].concat),XF=!KF||bj((function(){if(_j&&1!==KF({b:1},KF(GF({},"a",{enumerable:!0,get:function(){GF(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!=KF({},e)[n]||wR(KF({},t)).join("")!=r}))?function(e,t){for(var n=pL(e),r=arguments.length,i=1,o=AN.f,a=kj.f;r>i;)for(var s,l=Bj(arguments[i++]),u=o?YF(wR(l),o(l)):wR(l),c=u.length,f=0;c>f;)s=u[f++],_j&&!xj(a,l,s)||(n[s]=l[s]);return n}:KF;function ZF(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}FN({target:"Object",stat:!0,forced:Object.assign!==XF},{assign:XF});var QF={selector:"font",preParseHtml:function(e){var t=qh(e);if("font"!==n$(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},JF=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!f$(Pf.nodes(e,{match:function(t){return"pre"===nA.getNodeType(t)||!!Pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=qh('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var i=qh(r).attr("data-value");"0"===i?Pf.removeMark(e,t):Pf.addMark(e,t,i)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var i=this.getValue(e),o=e.getMenuConfig(t).colors;(void 0===o?[]:o).forEach((function(e){var t=qh('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=qh('<li data-value="'+e+'"></li>');i===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=VI("color.default")),"bgColor"===t&&(a=VI("color.clear"));var s=qh('\n      <li data-value="0" class="clear">\n        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n        '+a+"\n      </li>\n    ");return r.prepend(s),r[0]},e}(),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("color.color"),t.iconSvg=$$,t.mark="color",t}return a$(t,e),t}(JF),tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("color.bgColor"),t.iconSvg=F$,t.mark="bgColor",t}return a$(t,e),t}(JF),nz=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],rz={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,o=t;return r&&ZF(o,{color:r}),i&&ZF(o,{backgroundColor:i}),o},styleToHtml:function(e,t){if(!rd.isText(e))return t;var n,r=e,i=r.color,o=r.bgColor;return i||o?((e$(t)||"span"!==n$(n=qh(t)))&&(n=qh("<span>"+t+"</span>")),i&&n.css("color",i),o&&n.css("background-color",o),t$(n)):t},preParseHtml:[QF],parseStyleHtml:function(e,t,n){var r=qh(e);if(!rd.isText(t))return t;var i=t,o=r$(r,"color");o&&(i.color=o);var a=r$(r,"background-color");return a||(a=r$(r,"background")),a&&(i.bgColor=a),i},menus:[{key:"color",factory:function(){return new ez},config:{colors:nz}},{key:"bgColor",factory:function(){return new tz},config:{colors:nz}}]},iz=/^(?:\w+:)?\/\/(\S+)$/,oz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,az=/^[^\s\.]+\.\S{2,}$/,sz=wN.includes;function lz(e){return void 0===e&&(e="r"),e+"-"+zp()}function uz(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function cz(e,t,n,r){return l$(this,void 0,void 0,(function(){var i,o;return u$(this,(function(a){switch(a.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if("string"==typeof(o=a.sent()))return t.alert(o,"error"),[2,!1];if(null==o)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function fz(e,t,n){return l$(this,void 0,void 0,(function(){var r;return u$(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function dz(e){return null==e.selection||!!nA.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function hz(e,t){return{type:"link",url:uz(e),children:t?[{text:t}]:[]}}function pz(e,t,n){return l$(this,void 0,void 0,(function(){var r,i,o;return u$(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),dz(e)?[2]:[4,cz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,fz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(i=e.selection)||(Xf.isCollapsed(i)?(e.insertText(" "),o=hz(r,t),wd.insertNodes(e,o),e.insertFragment([{text:" "}])):Pf.string(e,i)!==t?(e.deleteFragment(),o=hz(r,t),wd.insertNodes(e,o)):(o=hz(r),wd.wrapNodes(e,o,{split:!0}),wd.collapse(e,{edge:"end"}))),[2]}}))}))}FN({target:"Array",proto:!0},{includes:function(e){return sz(this,e,arguments.length>1?arguments[1]:void 0)}}),AB("includes");var gz={type:"link",renderElem:function(e,t,n){var r=e,i=r.url,o=r.target;return Ng("a",{href:i,target:void 0===o?"_blank":o},t)}},mz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);return 0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function vz(){return lz("w-e-insert-link")}var yz=function(){function e(){this.title=VI("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=vz(),this.urlInputId=vz(),this.buttonId=vz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return dz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,i=n.urlInputId,o=n.buttonId,a=f$(kP(VI("link.text"),r),2),s=a[0],l=qh(a[1]),u=f$(kP(VI("link.url"),i),2),c=u[0],f=qh(u[1]),d=f$(AP(o,VI("common.ok")),1)[0];if(null==this.$content){var h=qh("<div></div>");h.on("click","#"+o,(function(t){t.preventDefault();var n=h.find("#"+r).val(),o=h.find("#"+i).val();pz(e,n,o),e.hidePanelOrModal()})),this.$content=h}var p=this.$content;if(p.empty(),p.append(s),p.append(c),p.append(d),null==t||Xf.isCollapsed(t))l.val("");else{var g=Pf.string(e,t);l.val(g)}return f.val(""),setTimeout((function(){l.focus()})),p[0]},e}();function bz(){return lz("w-e-update-link")}var _z=function(){function e(){this.title=VI("link.edit"),this.iconSvg=R$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=bz(),this.buttonId=bz()}return e.prototype.getSelectedLinkElem=function(e){var t=nA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return nA.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=f$(kP(VI("link.url"),t),2),i=r[0],o=qh(r[1]),a=f$(AP(n,VI("common.ok")),1)[0];if(null==this.$content){var s=qh("<div></div>");s.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=nA.getSelectedNodeByType(e,"link"),i=r?Bf.string(r):"",o=s.find("#"+t).val();!function(e,t,n){l$(this,void 0,void 0,(function(){var r,i;return u$(this,(function(o){switch(o.label){case 0:return n?[4,cz("editLink",e,t,n)]:[2];case 1:return o.sent()?[4,fz("editLink",e,n)]:[2];case 2:return r=o.sent(),i={url:uz(r)},wd.setNodes(e,i,{match:function(e){return nA.checkNodeType(e,"link")}}),[2]}}))}))}(e,i,o),e.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(a);var u=this.getValue(e);return o.val(u),setTimeout((function(){o.focus()})),l[0]},e}(),wz=function(){function e(){this.title=VI("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==nA.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.unwrapNodes(e,{match:function(e){return nA.checkNodeType(e,"link")}})},e}(),xz=function(){function e(){this.title=VI("link.view"),this.iconSvg=B$,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=nA.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),Oz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Sz={renderElems:[gz],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return'<a href="'+r+'" target="'+(void 0===i?"_blank":i)+'">'+t+"</a>"}}],parseElemsHtml:[mz],menus:[{key:"insertLink",factory:function(){return new yz},config:Oz},{key:"editLink",factory:function(){return new _z},config:Oz},{key:"unLink",factory:function(){return new wz}},{key:"viewLink",factory:function(){return new xz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(e){return"link"===e.type||t(e)},i.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(iz);if(!t)return!1;var n=t[1];return!(!n||!oz.test(n)&&!az.test(n))}(t)){if(!dz(i)){var r=i.selection;if(null!=r){var o=Pf.string(i,r);pz(i,o,t)}}}else n(e)},i.normalizeNode=function(e){var t=f$(e,2),n=t[0],o=t[1];return"link"!==nA.getNodeType(n)?r([n,o]):""===Bf.string(n)?wd.removeNodes(i,{at:o}):r([n,o])},i}},Cz=Pj(1..valueOf),kz=yj.RangeError,Ez=yj.RangeError,Az=yj.String,Tz=Math.floor,Dz=Pj((function(e){var t=gR(Fj(this)),n="",r=hN(e);if(r<0||r==1/0)throw kz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Mz=Pj("".slice),Pz=Pj(1..toFixed),Iz=function(e,t,n){return 0===t?n:t%2==1?Iz(e,t-1,n*e):Iz(e*e,t/2,n)},jz=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=Tz(i/1e7)},Lz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Tz(r/t),r=r%t*1e7},Nz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=Az(e[t]);n=""===n?r:n+Dz("0",7-r.length)+r}return n};function Rz(e,t){return"w-e-image-container-"+nA.findKey(e,t).id}FN({target:"Number",proto:!0,forced:bj((function(){return"0.000"!==Pz(8e-5,3)||"1"!==Pz(.9,0)||"1.25"!==Pz(1.255,2)||"1000000000000000128"!==Pz(0xde0b6b3a7640080,0)}))||!bj((function(){Pz({})}))},{toFixed:function(e){var t,n,r,i,o=Cz(this),a=hN(e),s=[0,0,0,0,0,0],l="",u="0";if(a<0||a>20)throw Ez("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return Az(o);if(o<0&&(l="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*Iz(2,69,1))-69)<0?o*Iz(2,-t,1):o/Iz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(jz(s,0,n),r=a;r>=7;)jz(s,1e7,0),r-=7;for(jz(s,Iz(10,r,1),0),r=t-1;r>=23;)Lz(s,1<<23),r-=23;Lz(s,1<<r),jz(s,1,1),Lz(s,2),u=Nz(s)}else jz(s,0,n),jz(s,1<<-t,0),u=Nz(s)+Dz("0",a);return a>0?l+((i=u.length)<=a?"0."+Dz("0",a-i)+u:Mz(u,0,i-a)+"."+Mz(u,i-a)):l+u}});var Bz={type:"image",renderElem:function(e,t,n){var r=e,i=r.src,o=r.alt,a=void 0===o?"":o,s=r.href,l=void 0===s?"":s,u=r.style,c=void 0===u?{}:u,f=c.width,d=void 0===f?"":f,h=c.height,p=void 0===h?"":h,g=nA.isNodeSelected(n,e),m={};d&&(m.width="100%"),p&&(m.height="100%");var v=Ng("img",{style:m,src:i,alt:a,"data-href":l}),y=n.isDisabled();return g&&!y?function(e,t,n,r){var i=qh("body"),o=Rz(e,t),a=r.width,s=r.height,l=0,u=0,c=0,f=!1,d=null;function h(t){d=function(){var e=qh("#"+o);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),l=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");u=n.width(),c=n.height(),i.on("mousemove",p),i.on("mouseup",g);var r=nA.getHoverbar(e);r&&r.hideAndClean()}var p=rg((function(e){e.preventDefault();var t=e.clientX,n=u+(f?l-t:t-l),r=c*(n/u);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(i.off("mousemove",p),null!=d){var r=d.width().toFixed(2),o=d.height().toFixed(2),a={style:s$(s$({},t.style),{width:r+"px",height:o+"px"})};wd.setNodes(e,a,{at:nA.findPath(e,t)}),i.off("mouseup",g)}}var m={};return a&&(m.width=a),s&&(m.height=s),Ng("div",{id:o,style:m,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=qh(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),h(e.clientX))}}},n,Ng("div",{className:"w-e-image-dragger left-top"}),Ng("div",{className:"w-e-image-dragger right-top"}),Ng("div",{className:"w-e-image-dragger left-bottom"}),Ng("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,v,{width:d,height:p}):function(e,t,n,r){var i=r.width,o=r.height,a={};return i&&(a.width=i),o&&(a.height=o),Ng("div",{id:Rz(e,t),style:a,className:"w-e-image-container"},n)}(n,e,v,{width:d,height:p})}},$z={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e),i=r.attr("data-href")||"";return i=decodeURIComponent(i),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:i,style:{width:r$(r,"width"),height:r$(r,"height")},children:[{text:""}]}}};function Fz(e,t,n,r,i){return void 0===r&&(r=""),void 0===i&&(i=""),l$(this,void 0,void 0,(function(){var o,a;return u$(this,(function(s){switch(s.label){case 0:return(o=t.getMenuConfig(e).checkImage)?[4,o(n,r,i)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function zz(e,t,n){return l$(this,void 0,void 0,(function(){var r;return u$(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function qz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),l$(this,void 0,void 0,(function(){var i,o,a;return u$(this,(function(s){switch(s.label){case 0:return[4,Fz("insertImage",e,t,n,r)];case 1:return s.sent()?[4,zz("insertImage",e,t)]:[2];case 2:return i=s.sent(),o={type:"image",src:uz(i),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),nA.getSelectedNodeByType(e,"image")&&e.move(1),Uz(e)||(wd.insertNodes(e,o),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(o)),[2]}}))}))}function Uz(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||!!f$(Pf.nodes(e,{match:function(t){var n=nA.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Pf.isVoid(e,t)},universal:!0}),1)[0]}function Hz(){return lz("w-e-insert-image")}var Vz=function(){function e(){this.title=VI("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Hz(),this.altInputId=Hz(),this.hrefInputId=Hz(),this.buttonId=Hz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Uz(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=f$(kP(VI("image.src"),r),2),l=s[0],u=qh(s[1]),c=f$(kP(VI("image.desc"),i),2),f=c[0],d=qh(c[1]),h=f$(kP(VI("image.link"),o),2),p=h[0],g=qh(h[1]),m=f$(AP(a,VI("common.ok")),1)[0];if(null==this.$content){var v=qh("<div></div>");v.on("click","#"+a,(function(n){n.preventDefault();var a=v.find("#"+r).val().trim(),s=v.find("#"+i).val().trim(),l=v.find("#"+o).val().trim();t.insertImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;return y.empty(),y.append(l),y.append(f),y.append(p),y.append(m),u.val(""),d.val(""),g.val(""),setTimeout((function(){u.focus()})),y[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||qz(e,t,n,r))},e}(),Wz=function(){function e(){this.title=VI("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==nA.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{match:function(e){return nA.checkNodeType(e,"image")}})},e}();function Kz(){return lz("w-e-edit-image")}var Gz=function(){function e(){this.title=VI("image.edit"),this.iconSvg=R$,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Kz(),this.altInputId=Kz(),this.hrefInputId=Kz(),this.buttonId=Kz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return nA.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,o=n.hrefInputId,a=n.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var l=f$(kP(VI("image.src"),r),2),u=l[0],c=qh(l[1]),f=f$(kP(VI("image.desc"),i),2),d=f[0],h=qh(f[1]),p=f$(kP(VI("image.link"),o),2),g=p[0],m=qh(p[1]),v=f$(AP(a,VI("common.ok")),1)[0];if(null==this.$content){var y=qh("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val(),s=y.find("#"+i).val(),l=y.find("#"+o).val();t.updateImage(e,a,s,l),e.hidePanelOrModal()})),this.$content=y}var b=this.$content;b.empty(),b.append(u),b.append(d),b.append(g),b.append(v);var _=s,w=_.src,x=_.alt,O=void 0===x?"":x,S=_.href,C=void 0===S?"":S;return c.val(w),h.val(O),m.val(C),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,i){void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,i){void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i={}),l$(this,void 0,void 0,(function(){var o,a,s,l,u,c;return u$(this,(function(f){switch(f.label){case 0:return[4,Fz("editImage",e,t,n,r)];case 1:return f.sent()?[4,zz("editImage",e,t)]:[2];case 2:return o=f.sent(),null==(a=nA.getSelectedNodeByType(e,"image"))||(s=a.style,l={src:o,alt:n,href:r,style:s$(s$({},void 0===s?{}:s),i)},wd.setNodes(e,l,{match:function(e){return nA.checkNodeType(e,"image")}}),u=nA.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(u)),[2]}}))}))}(e,t,n,r,i))},e}(),Yz=function(){function e(){this.title=VI("image.viewLink"),this.iconSvg=B$,this.tag="button"}return e.prototype.getValue=function(e){var t=nA.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),Xz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return nA.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=nA.getHoverbar(e);r&&r.hideAndClean();var i=n.style,o={style:s$(s$({},void 0===i?{}:i),{width:this.value,height:""})};wd.setNodes(e,o,{match:function(e){return nA.checkNodeType(e,"image")}})}}},e}(),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return a$(t,e),t}(Xz),Qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return a$(t,e),t}(Xz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return a$(t,e),t}(Xz),eq={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},tq={renderElems:[Bz],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,o=void 0===i?"":i,a=n.href,s=void 0===a?"":a,l=n.style,u=void 0===l?{}:l,c=u.width,f=void 0===c?"":c,d=u.height,h=void 0===d?"":d,p="";return f&&(p+="width: "+f+";"),h&&(p+="height: "+h+";"),'<img src="'+r+'" alt="'+o+'" data-href="'+s+'" style="'+p+'"/>'}}],parseElemsHtml:[$z],menus:[{key:"insertImage",factory:function(){return new Vz},config:eq},{key:"deleteImage",factory:function(){return new Wz}},{key:"editImage",factory:function(){return new Gz},config:eq},{key:"viewImageLink",factory:function(){return new Yz}},{key:"imageWidth30",factory:function(){return new Zz}},{key:"imageWidth50",factory:function(){return new Qz}},{key:"imageWidth100",factory:function(){return new Jz}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},nq={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var i=Ng("div",{style:{margin:"5px 0"}},Ng("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ng("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=nA.findPath(n,e),i={checked:t.target.checked};wd.setNodes(n,i,{at:r})}}})),Ng("span",null,t));return i}},rq=function(){function e(){this.title=VI("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!nA.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!nA.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);wd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),iq={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=qh(e);0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(i=!0),{type:"todo",checked:i,children:t}}},oq={renderElems:[nq],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=qh(e).find("li"),n=qh('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[iq],menus:[{key:"todo",factory:function(){return new rq}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Xf.isCollapsed(r)){var i=nA.getSelectedNodeByType(e,"todo");if(i&&0===Bf.string(i).length)return void wd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},aq={type:"blockquote",renderElem:function(e,t,n){return Ng("blockquote",null,t)}},sq={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);return 0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},lq=function(){function e(){this.title=VI("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!nA.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!f$(Pf.nodes(e,{match:function(e){var t=nA.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";wd.setNodes(e,{type:n},{mode:"highest"})}},e}(),uq={key:"blockquote",factory:function(){return new lq}},cq=Pj([].slice),fq=cR("slice"),dq=CL("species"),hq=yj.Array,pq=Math.max;FN({target:"Array",proto:!0,forced:!fq},{slice:function(e,t){var n,r,i,o=zj(this),a=bN(o),s=mN(e,a),l=mN(void 0===t?a:t,a);if(qN(o)&&(n=o.constructor,(nR(n)&&(n===hq||qN(n.prototype))||Uj(n)&&null===(n=n[dq]))&&(n=void 0),n===hq||void 0===n))return cq(o,s,l);for(r=new(void 0===n?hq:n)(pq(l-s,0)),i=0;s<l;s++,i++)s in o&&LB(r,i,o[s]);return r.length=i,r}});var gq={renderElems:[aq],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[sq],menus:[uq],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(null==i)return t();var o=f$(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!o)return t();var a=o[0],s=nA.findPath(e,a),l=Pf.end(e,s);if(Wf.equals(l,i.focus)){var u=Bf.string(a);if(u&&"\n"===u.slice(-1))return e.deleteBackward("character"),void wd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},mq=function(){function e(){this.title=VI("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!f$(Pf.nodes(e,{match:function(t){return"pre"===nA.getNodeType(t)||!!Pf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=qh('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=qh(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=qh("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),vq={menus:[{key:"emotion",factory:function(){return new mq},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},yq={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},bq={selector:"font",preParseHtml:function(e){var t=qh(e);if("font"!==n$(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",yq[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},_q=Pj("".indexOf);FN({target:"String",proto:!0,forced:!xF("includes")},{includes:function(e){return!!~_q(gR(Fj(this)),gR(_F(e)),arguments.length>1?arguments[1]:void 0)}});var wq,xq,Oq=function(e){return e&&e.Math==Math&&e},Sq=Oq("object"==typeof globalThis&&globalThis)||Oq("object"==typeof window&&window)||Oq("object"==typeof self&&self)||Oq("object"==typeof hj&&hj)||function(){return this}()||Function("return this")(),Cq=Function.prototype,kq=Cq.apply,Eq=Cq.bind,Aq=Cq.call,Tq="object"==typeof Reflect&&Reflect.apply||(Eq?Aq.bind(kq):function(){return Aq.apply(kq,arguments)}),Dq=Function.prototype,Mq=Dq.bind,Pq=Dq.call,Iq=Mq&&Mq.bind(Pq),jq=Mq?function(e){return e&&Iq(Pq,e)}:function(e){return e&&function(){return Pq.apply(e,arguments)}},Lq=function(e){return"function"==typeof e},Nq=function(e){try{return!!e()}catch(e){return!0}},Rq=!Nq((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Bq=Function.prototype.call,$q=Bq.bind?Bq.bind(Bq):function(){return Bq.apply(Bq,arguments)},Fq={}.propertyIsEnumerable,zq=Object.getOwnPropertyDescriptor,qq=zq&&!Fq.call({1:2},1)?function(e){var t=zq(this,e);return!!t&&t.enumerable}:Fq,Uq={f:qq},Hq=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Vq=jq({}.toString),Wq=jq("".slice),Kq=function(e){return Wq(Vq(e),8,-1)},Gq=Sq.Object,Yq=jq("".split),Xq=Nq((function(){return!Gq("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kq(e)?Yq(e,""):Gq(e)}:Gq,Zq=Sq.TypeError,Qq=function(e){if(null==e)throw Zq("Can't call method on "+e);return e},Jq=function(e){return Xq(Qq(e))},eU=function(e){return"object"==typeof e?null!==e:Lq(e)},tU={},nU=function(e){return Lq(e)?e:void 0},rU=function(e,t){return arguments.length<2?nU(tU[e])||nU(Sq[e]):tU[e]&&tU[e][t]||Sq[e]&&Sq[e][t]},iU=jq({}.isPrototypeOf),oU=rU("navigator","userAgent")||"",aU=Sq.process,sU=Sq.Deno,lU=aU&&aU.versions||sU&&sU.version,uU=lU&&lU.v8;uU&&(xq=(wq=uU.split("."))[0]>0&&wq[0]<4?1:+(wq[0]+wq[1])),!xq&&oU&&(!(wq=oU.match(/Edge\/(\d+)/))||wq[1]>=74)&&(wq=oU.match(/Chrome\/(\d+)/))&&(xq=+wq[1]);var cU=xq,fU=!!Object.getOwnPropertySymbols&&!Nq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cU&&cU<41})),dU=fU&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,hU=Sq.Object,pU=dU?function(e){return"symbol"==typeof e}:function(e){var t=rU("Symbol");return Lq(t)&&iU(t.prototype,hU(e))},gU=Sq.String,mU=Sq.TypeError,vU=function(e){if(Lq(e))return e;throw mU(function(e){try{return gU(e)}catch(e){return"Object"}}(e)+" is not a function")},yU=Sq.TypeError,bU=Object.defineProperty,_U=Sq["__core-js_shared__"]||function(e,t){try{bU(Sq,e,{value:t,configurable:!0,writable:!0})}catch(o){Sq[e]=t}return t}("__core-js_shared__",{}),wU=pj((function(e){(e.exports=function(e,t){return _U[e]||(_U[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xU=Sq.Object,OU=function(e){return xU(Qq(e))},SU=jq({}.hasOwnProperty),CU=Object.hasOwn||function(e,t){return SU(OU(e),t)},kU=0,EU=Math.random(),AU=jq(1..toString),TU=function(e){return"Symbol("+(void 0===e?"":e)+")_"+AU(++kU+EU,36)},DU=wU("wks"),MU=Sq.Symbol,PU=MU&&MU.for,IU=dU?MU:MU&&MU.withoutSetter||TU,jU=function(e){if(!CU(DU,e)||!fU&&"string"!=typeof DU[e]){var t="Symbol."+e;fU&&CU(MU,e)?DU[e]=MU[e]:DU[e]=dU&&PU?PU(t):IU(t)}return DU[e]},LU=Sq.TypeError,NU=jU("toPrimitive"),RU=function(e){var t=function(e,t){if(!eU(e)||pU(e))return e;var n,r,i=null==(n=e[NU])?void 0:vU(n);if(i){if(void 0===t&&(t="default"),r=$q(i,e,t),!eU(r)||pU(r))return r;throw LU("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Lq(n=e.toString)&&!eU(r=$q(n,e)))return r;if(Lq(n=e.valueOf)&&!eU(r=$q(n,e)))return r;if("string"!==t&&Lq(n=e.toString)&&!eU(r=$q(n,e)))return r;throw yU("Can't convert object to primitive value")}(e,t)}(e,"string");return pU(t)?t:t+""},BU=Sq.document,$U=eU(BU)&&eU(BU.createElement),FU=function(e){return $U?BU.createElement(e):{}},zU=!Rq&&!Nq((function(){return 7!=Object.defineProperty(FU("div"),"a",{get:function(){return 7}}).a})),qU=Object.getOwnPropertyDescriptor,UU={f:Rq?qU:function(e,t){if(e=Jq(e),t=RU(t),zU)try{return qU(e,t)}catch(e){}if(CU(e,t))return Hq(!$q(Uq.f,e,t),e[t])}},HU=/#|\.prototype\./,VU=function(e,t){var n=KU[WU(e)];return n==YU||n!=GU&&(Lq(t)?Nq(t):!!t)},WU=VU.normalize=function(e){return String(e).replace(HU,".").toLowerCase()},KU=VU.data={},GU=VU.NATIVE="N",YU=VU.POLYFILL="P",XU=VU,ZU=jq(jq.bind),QU=function(e,t){return vU(e),void 0===t?e:ZU?ZU(e,t):function(){return e.apply(t,arguments)}},JU=Sq.String,eH=Sq.TypeError,tH=function(e){if(eU(e))return e;throw eH(JU(e)+" is not an object")},nH=Sq.TypeError,rH=Object.defineProperty,iH={f:Rq?rH:function(e,t,n){if(tH(e),t=RU(t),tH(n),zU)try{return rH(e,t,n)}catch(e){}if("get"in n||"set"in n)throw nH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},oH=Rq?function(e,t,n){return iH.f(e,t,Hq(1,n))}:function(e,t,n){return e[t]=n,e},aH=UU.f,sH=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return Tq(e,this,arguments)};return t.prototype=e.prototype,t},lH=function(e,t){var n,r,i,o,a,s,l,u,c=e.target,f=e.global,d=e.stat,h=e.proto,p=f?Sq:d?Sq[c]:(Sq[c]||{}).prototype,g=f?tU:tU[c]||oH(tU,c,{})[c],m=g.prototype;for(i in t)n=!XU(f?i:c+(d?".":"#")+i,e.forced)&&p&&CU(p,i),a=g[i],n&&(s=e.noTargetGet?(u=aH(p,i))&&u.value:p[i]),o=n&&s?s:t[i],n&&typeof a==typeof o||(l=e.bind&&n?QU(o,Sq):e.wrap&&n?sH(o):h&&Lq(o)?jq(o):o,(e.sham||o&&o.sham||a&&a.sham)&&oH(l,"sham",!0),oH(g,i,l),h&&(CU(tU,r=c+"Prototype")||oH(tU,r,{}),oH(tU[r],i,o),e.real&&m&&!m[i]&&oH(m,i,o)))},uH=Array.isArray||function(e){return"Array"==Kq(e)},cH=Math.ceil,fH=Math.floor,dH=function(e){var t=+e;return t!=t||0===t?0:(t>0?fH:cH)(t)},hH=Math.min,pH=function(e){return(t=e.length)>0?hH(dH(t),9007199254740991):0;var t},gH=function(e,t,n){var r=RU(t);r in e?iH.f(e,r,Hq(0,n)):e[r]=n},mH={};mH[jU("toStringTag")]="z";var vH="[object z]"===String(mH),yH=jU("toStringTag"),bH=Sq.Object,_H="Arguments"==Kq(function(){return arguments}()),wH=vH?Kq:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=bH(e),yH))?n:_H?Kq(t):"Object"==(r=Kq(t))&&Lq(t.callee)?"Arguments":r},xH=jq(Function.toString);Lq(_U.inspectSource)||(_U.inspectSource=function(e){return xH(e)});var OH=_U.inspectSource,SH=function(){},CH=[],kH=rU("Reflect","construct"),EH=/^\s*(?:class|function)\b/,AH=jq(EH.exec),TH=!EH.exec(SH),DH=function(e){if(!Lq(e))return!1;try{return kH(SH,CH,e),!0}catch(e){return!1}},MH=!kH||Nq((function(){var e;return DH(DH.call)||!DH(Object)||!DH((function(){e=!0}))||e}))?function(e){if(!Lq(e))return!1;switch(wH(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TH||!!AH(EH,OH(e))}:DH,PH=jU("species"),IH=Sq.Array,jH=function(e,t){return new(function(e){var t;return uH(e)&&(t=e.constructor,(MH(t)&&(t===IH||uH(t.prototype))||eU(t)&&null===(t=t[PH]))&&(t=void 0)),void 0===t?IH:t}(e))(0===t?0:t)},LH=jU("species"),NH=jU("isConcatSpreadable"),RH=Sq.TypeError,BH=cU>=51||!Nq((function(){var e=[];return e[NH]=!1,e.concat()[0]!==e})),$H=cU>=51||!Nq((function(){var e=[];return(e.constructor={})[LH]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),FH=function(e){if(!eU(e))return!1;var t=e[NH];return void 0!==t?!!t:uH(e)};lH({target:"Array",proto:!0,forced:!BH||!$H},{concat:function(e){var t,n,r,i,o,a=OU(this),s=jH(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(FH(o=-1===t?a:arguments[t])){if(l+(i=pH(o))>9007199254740991)throw RH("Maximum allowed index exceeded");for(n=0;n<i;n++,l++)n in o&&gH(s,l,o[n])}else{if(l>=9007199254740991)throw RH("Maximum allowed index exceeded");gH(s,l++,o)}return s.length=l,s}});var zH,qH=Sq.String,UH=function(e){if("Symbol"===wH(e))throw TypeError("Cannot convert a Symbol value to a string");return qH(e)},HH=Math.max,VH=Math.min,WH=function(e,t){var n=dH(e);return n<0?HH(n+t,0):VH(n,t)},KH=function(e){return function(t,n,r){var i,o=Jq(t),a=pH(o),s=WH(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},GH={includes:KH(!0),indexOf:KH(!1)},YH={},XH=GH.indexOf,ZH=jq([].push),QH=function(e,t){var n,r=Jq(e),i=0,o=[];for(n in r)!CU(YH,n)&&CU(r,n)&&ZH(o,n);for(;t.length>i;)CU(r,n=t[i++])&&(~XH(o,n)||ZH(o,n));return o},JH=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eV=Object.keys||function(e){return QH(e,JH)},tV=Rq?Object.defineProperties:function(e,t){tH(e);for(var n,r=Jq(t),i=eV(t),o=i.length,a=0;o>a;)iH.f(e,n=i[a++],r[n]);return e},nV=rU("document","documentElement"),rV=wU("keys"),iV=function(e){return rV[e]||(rV[e]=TU(e))},oV=iV("IE_PROTO"),aV=function(){},sV=function(e){return"<script>"+e+"<\/script>"},lV=function(e){e.write(sV("")),e.close();var t=e.parentWindow.Object;return e=null,t},uV=function(){try{zH=new ActiveXObject("htmlfile")}catch(e){}var e,t;uV="undefined"!=typeof document?document.domain&&zH?lV(zH):((t=FU("iframe")).style.display="none",nV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sV("document.F=Object")),e.close(),e.F):lV(zH);for(var n=JH.length;n--;)delete uV.prototype[JH[n]];return uV()};YH[oV]=!0;var cV,fV,dV,hV=Object.create||function(e,t){var n;return null!==e?(aV.prototype=tH(e),n=new aV,aV.prototype=null,n[oV]=e):n=uV(),void 0===t?n:tV(n,t)},pV=JH.concat("length","prototype"),gV={f:Object.getOwnPropertyNames||function(e){return QH(e,pV)}},mV=Sq.Array,vV=Math.max,yV=gV.f,bV="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_V={f:function(e){return bV&&"Window"==Kq(e)?function(e){try{return yV(e)}catch(e){return function(e,t,n){for(var r=pH(e),i=WH(void 0,r),o=WH(r,r),a=mV(vV(o-i,0)),s=0;i<o;i++,s++)gH(a,s,e[i]);return a.length=s,a}(bV)}}(e):yV(Jq(e))}},wV={f:Object.getOwnPropertySymbols},xV=jq([].slice),OV=function(e,t,n,r){r&&r.enumerable?e[t]=n:oH(e,t,n)},SV={f:jU},CV=iH.f,kV=function(e){var t=tU.Symbol||(tU.Symbol={});CU(t,e)||CV(t,e,{value:SV.f(e)})},EV=vH?{}.toString:function(){return"[object "+wH(this)+"]"},AV=iH.f,TV=jU("toStringTag"),DV=function(e,t,n,r){if(e){var i=n?e:e.prototype;CU(i,TV)||AV(i,TV,{configurable:!0,value:t}),r&&!vH&&oH(i,"toString",EV)}},MV=Sq.WeakMap,PV=Lq(MV)&&/native code/.test(OH(MV)),IV=Sq.TypeError,jV=Sq.WeakMap;if(PV||_U.state){var LV=_U.state||(_U.state=new jV),NV=jq(LV.get),RV=jq(LV.has),BV=jq(LV.set);cV=function(e,t){if(RV(LV,e))throw new IV("Object already initialized");return t.facade=e,BV(LV,e,t),t},fV=function(e){return NV(LV,e)||{}},dV=function(e){return RV(LV,e)}}else{var $V=iV("state");YH[$V]=!0,cV=function(e,t){if(CU(e,$V))throw new IV("Object already initialized");return t.facade=e,oH(e,$V,t),t},fV=function(e){return CU(e,$V)?e[$V]:{}},dV=function(e){return CU(e,$V)}}var FV={set:cV,get:fV,has:dV,enforce:function(e){return dV(e)?fV(e):cV(e,{})},getterFor:function(e){return function(t){var n;if(!eU(t)||(n=fV(t)).type!==e)throw IV("Incompatible receiver, "+e+" required");return n}}},zV=jq([].push),qV=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=OU(l),g=Xq(p),m=QU(u,c),v=pH(g),y=0,b=f||jH,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:zV(_,d)}else switch(e){case 4:return!1;case 7:zV(_,d)}return o?-1:r||i?i:_}},UV=[qV(0),qV(1),qV(2),qV(3),qV(4),qV(5),qV(6),qV(7)][0],HV=iV("hidden"),VV=jU("toPrimitive"),WV=FV.set,KV=FV.getterFor("Symbol"),GV=Object.prototype,YV=Sq.Symbol,XV=YV&&YV.prototype,ZV=Sq.TypeError,QV=Sq.QObject,JV=rU("JSON","stringify"),eW=UU.f,tW=iH.f,nW=_V.f,rW=Uq.f,iW=jq([].push),oW=wU("symbols"),aW=wU("op-symbols"),sW=wU("string-to-symbol-registry"),lW=wU("symbol-to-string-registry"),uW=wU("wks"),cW=!QV||!QV.prototype||!QV.prototype.findChild,fW=Rq&&Nq((function(){return 7!=hV(tW({},"a",{get:function(){return tW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=eW(GV,t);r&&delete GV[t],tW(e,t,n),r&&e!==GV&&tW(GV,t,r)}:tW,dW=function(e,t){var n=oW[e]=hV(XV);return WV(n,{type:"Symbol",tag:e,description:t}),Rq||(n.description=t),n},hW=function(e,t,n){e===GV&&hW(aW,t,n),tH(e);var r=RU(t);return tH(n),CU(oW,r)?(n.enumerable?(CU(e,HV)&&e[HV][r]&&(e[HV][r]=!1),n=hV(n,{enumerable:Hq(0,!1)})):(CU(e,HV)||tW(e,HV,Hq(1,{})),e[HV][r]=!0),fW(e,r,n)):tW(e,r,n)},pW=function(e,t){tH(e);var n=Jq(t),r=eV(n).concat(yW(n));return UV(r,(function(t){Rq&&!$q(gW,n,t)||hW(e,t,n[t])})),e},gW=function(e){var t=RU(e),n=$q(rW,this,t);return!(this===GV&&CU(oW,t)&&!CU(aW,t))&&(!(n||!CU(this,t)||!CU(oW,t)||CU(this,HV)&&this[HV][t])||n)},mW=function(e,t){var n=Jq(e),r=RU(t);if(n!==GV||!CU(oW,r)||CU(aW,r)){var i=eW(n,r);return!i||!CU(oW,r)||CU(n,HV)&&n[HV][r]||(i.enumerable=!0),i}},vW=function(e){var t=nW(Jq(e)),n=[];return UV(t,(function(e){CU(oW,e)||CU(YH,e)||iW(n,e)})),n},yW=function(e){var t=e===GV,n=nW(t?aW:Jq(e)),r=[];return UV(n,(function(e){!CU(oW,e)||t&&!CU(GV,e)||iW(r,oW[e])})),r};if(fU||(XV=(YV=function(){if(iU(XV,this))throw ZV("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?UH(arguments[0]):void 0,t=TU(e),n=function(e){this===GV&&$q(n,aW,e),CU(this,HV)&&CU(this[HV],t)&&(this[HV][t]=!1),fW(this,t,Hq(1,e))};return Rq&&cW&&fW(GV,t,{configurable:!0,set:n}),dW(t,e)}).prototype,OV(XV,"toString",(function(){return KV(this).tag})),OV(YV,"withoutSetter",(function(e){return dW(TU(e),e)})),Uq.f=gW,iH.f=hW,UU.f=mW,gV.f=_V.f=vW,wV.f=yW,SV.f=function(e){return dW(jU(e),e)},Rq&&tW(XV,"description",{configurable:!0,get:function(){return KV(this).description}})),lH({global:!0,wrap:!0,forced:!fU,sham:!fU},{Symbol:YV}),UV(eV(uW),(function(e){kV(e)})),lH({target:"Symbol",stat:!0,forced:!fU},{for:function(e){var t=UH(e);if(CU(sW,t))return sW[t];var n=YV(t);return sW[t]=n,lW[n]=t,n},keyFor:function(e){if(!pU(e))throw ZV(e+" is not a symbol");if(CU(lW,e))return lW[e]},useSetter:function(){cW=!0},useSimple:function(){cW=!1}}),lH({target:"Object",stat:!0,forced:!fU,sham:!Rq},{create:function(e,t){return void 0===t?hV(e):pW(hV(e),t)},defineProperty:hW,defineProperties:pW,getOwnPropertyDescriptor:mW}),lH({target:"Object",stat:!0,forced:!fU},{getOwnPropertyNames:vW,getOwnPropertySymbols:yW}),lH({target:"Object",stat:!0,forced:Nq((function(){wV.f(1)}))},{getOwnPropertySymbols:function(e){return wV.f(OU(e))}}),JV){var bW=!fU||Nq((function(){var e=YV();return"[null]"!=JV([e])||"{}"!=JV({a:e})||"{}"!=JV(Object(e))}));lH({target:"JSON",stat:!0,forced:bW},{stringify:function(e,t,n){var r=xV(arguments),i=t;if((eU(t)||void 0!==e)&&!pU(e))return uH(t)||(t=function(e,t){if(Lq(i)&&(t=$q(i,this,e,t)),!pU(t))return t}),r[1]=t,Tq(JV,null,r)}})}if(!XV[VV]){var _W=XV.valueOf;OV(XV,VV,(function(e){return $q(_W,this)}))}DV(YV,"Symbol"),YH[HV]=!0,kV("asyncIterator"),kV("hasInstance"),kV("isConcatSpreadable"),kV("iterator"),kV("match"),kV("matchAll"),kV("replace"),kV("search"),kV("species"),kV("split"),kV("toPrimitive"),kV("toStringTag"),kV("unscopables"),DV(Sq.JSON,"JSON",!0);var wW,xW,OW,SW=tU.Symbol,CW={},kW=Function.prototype,EW=Rq&&Object.getOwnPropertyDescriptor,AW=CU(kW,"name"),TW={EXISTS:AW,PROPER:AW&&"something"===function(){}.name,CONFIGURABLE:AW&&(!Rq||Rq&&EW(kW,"name").configurable)},DW=!Nq((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),MW=iV("IE_PROTO"),PW=Sq.Object,IW=PW.prototype,jW=DW?PW.getPrototypeOf:function(e){var t=OU(e);if(CU(t,MW))return t[MW];var n=t.constructor;return Lq(n)&&t instanceof n?n.prototype:t instanceof PW?IW:null},LW=jU("iterator"),NW=!1;[].keys&&("next"in(OW=[].keys())?(xW=jW(jW(OW)))!==Object.prototype&&(wW=xW):NW=!0);var RW=null==wW||Nq((function(){var e={};return wW[LW].call(e)!==e}));wW=RW?{}:hV(wW),Lq(wW[LW])||OV(wW,LW,(function(){return this}));var BW={IteratorPrototype:wW,BUGGY_SAFARI_ITERATORS:NW},$W=BW.IteratorPrototype,FW=function(){return this};Sq.String,Sq.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{jq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var zW=TW.PROPER,qW=BW.BUGGY_SAFARI_ITERATORS,UW=jU("iterator"),HW=function(){return this},VW=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=hV($W,{next:Hq(1,n)}),DV(e,i,!1,!0),CW[i]=FW}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!qW&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[UW]||h["@@iterator"]||i&&h[i],g=!qW&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=jW(m.call(new e)))!==Object.prototype&&s.next&&(DV(s,f,!0,!0),CW[f]=HW),zW&&"values"==i&&p&&"values"!==p.name&&(d=!0,g=function(){return $q(p,this)}),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(qW||d||!(u in h))&&OV(h,u,l[u]);else lH({target:t,proto:!0,forced:qW||d},l);return a&&h[UW]!==g&&OV(h,UW,g,{name:i}),CW[t]=g,l},WW=FV.set,KW=FV.getterFor("Array Iterator");VW(Array,"Array",(function(e,t){WW(this,{type:"Array Iterator",target:Jq(e),index:0,kind:t})}),(function(){var e=KW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),CW.Arguments=CW.Array;var GW=jU("toStringTag");for(var YW in{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}){var XW=Sq[YW],ZW=XW&&XW.prototype;ZW&&wH(ZW)!==GW&&oH(ZW,GW,YW),CW[YW]=CW.Array}var QW=SW;kV("asyncDispose"),kV("dispose"),kV("matcher"),kV("metadata"),kV("observable"),kV("patternMatch"),kV("replaceAll");var JW=QW,eK=jq("".charAt),tK=jq("".charCodeAt),nK=jq("".slice),rK=function(e){return function(t,n){var r,i,o=UH(Qq(t)),a=dH(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=tK(o,a))<55296||r>56319||a+1===s||(i=tK(o,a+1))<56320||i>57343?e?eK(o,a):r:e?nK(o,a,a+2):i-56320+(r-55296<<10)+65536}},iK=(rK(!1),rK(!0)),oK=FV.set,aK=FV.getterFor("String Iterator");VW(String,"String",(function(e){oK(this,{type:"String Iterator",string:UH(e),index:0})}),(function(){var e,t=aK(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iK(n,r),t.index+=e.length,{value:e,done:!1})}));var sK=SV.f("iterator"),lK=pj((function(e){function t(n){return"function"==typeof JW&&"symbol"==typeof sK?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof JW&&e.constructor===JW&&e!==JW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),uK=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lK),cK=uN.EXISTS,fK=FL.f,dK=Function.prototype,hK=Pj(dK.toString),pK=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,gK=Pj(pK.exec);_j&&!cK&&fK(dK,"name",{configurable:!0,get:function(){try{return gK(pK,hK(this))[1]}catch(r){return""}}});var mK=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!f$(Pf.nodes(e,{match:function(t){return"pre"===nA.getNodeType(t)||!!Pf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),vK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("fontSize.title"),t.iconSvg=z$,t.mark="fontSize",t}return a$(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:VI("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===uK(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(mK),yK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("fontFamily.title"),t.iconSvg=q$,t.mark="fontFamily",t.selectPanelWidth=150,t}return a$(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:VI("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===uK(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(mK),bK={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,o=t;return r&&ZF(o,{fontSize:r}),i&&ZF(o,{fontFamily:i}),o},styleToHtml:function(e,t){if(!rd.isText(e))return t;var n,r=e,i=r.fontSize,o=r.fontFamily;return i||o?((e$(t)||"span"!==n$(n=qh(t)))&&(n=qh("<span>"+t+"</span>")),i&&n.css("font-size",i),o&&n.css("font-family",o),t$(n)):t},preParseHtml:[bq],parseStyleHtml:function(e,t,n){var r=qh(e);if(!rd.isText(t))return t;var i=t,o=n.getMenuConfig("fontSize").fontSizeList,a=void 0===o?[]:o,s=r$(r,"font-size"),l=a.find((function(e){return e.value&&e.value===s}))||a.includes(s);s&&l&&(i.fontSize=s);var u=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===u?[]:u,f=r$(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(i.fontFamily=f),i},menus:[{key:"fontSize",factory:function(){return new vK},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new yK},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},_K={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=qh(e),n=r$(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},wK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=f$(Pf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":f$(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=f$(Pf.nodes(e,{match:function(e){var t=nA.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),xK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("indent.decrease"),t.iconSvg=U$,t}return a$(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:null},{match:function(e){return kf.isElement(e)}})},t}(wK),OK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("indent.increase"),t.iconSvg=H$,t}return a$(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){wd.setNodes(e,{indent:"2em"},{match:function(e){return kf.isElement(e)},mode:"highest"})},t}(wK),SK={renderStyle:function(e,t){if(!kf.isElement(e))return t;var n=e.indent,r=t;return n&&ZF(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!kf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=qh(t);return r.css("text-indent",n),t$(r)},preParseHtml:[_K],parseStyleHtml:function(e,t,n){var r=qh(e);if(!kf.isElement(t))return t;var i=t,o=r$(r,"text-indent"),a=parseInt(o,10);return o&&a>0&&(i.indent=o),i},menus:[{key:"indent",factory:function(){return new OK}},{key:"delIndent",factory:function(){return new xK}}]},CK=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=f$(Pf.nodes(e,{match:function(e){var t=nA.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!nA.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),kK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("justify.left"),t.iconSvg=V$,t}return a$(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"left"},{match:function(t){return kf.isElement(t)&&!e.isInline(t)}})},t}(CK),EK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("justify.right"),t.iconSvg=W$,t}return a$(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"right"},{match:function(t){return kf.isElement(t)&&!e.isInline(t)}})},t}(CK),AK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("justify.center"),t.iconSvg=K$,t}return a$(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"center"},{match:function(t){return kf.isElement(t)&&!e.isInline(t)}})},t}(CK),TK=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=VI("justify.justify"),t.iconSvg=G$,t}return a$(t,e),t.prototype.exec=function(e,t){wd.setNodes(e,{textAlign:"justify"},{match:function(t){return kf.isElement(t)&&!e.isInline(t)}})},t}(CK),DK={renderStyle:function(e,t){if(!kf.isElement(e))return t;var n=e.textAlign,r=t;return n&&ZF(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!kf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=qh(t);return r.css("text-align",n),t$(r)},parseStyleHtml:function(e,t,n){var r=qh(e);if(!kf.isElement(t))return t;var i=t,o=r$(r,"text-align");return o&&(i.textAlign=o),i},menus:[{key:"justifyLeft",factory:function(){return new kK}},{key:"justifyRight",factory:function(){return new EK}},{key:"justifyCenter",factory:function(){return new AK}},{key:"justifyJustify",factory:function(){return new TK}}]},MK=function(){function e(){this.title=VI("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:VI("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=f$(Pf.nodes(e,{match:function(e){var t=nA.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":kf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){wd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),PK={renderStyle:function(e,t){if(!kf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&ZF(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!kf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=qh(t);return r.css("line-height",n),t$(r)},parseStyleHtml:function(e,t,n){var r=qh(e);if(!kf.isElement(t))return t;var i=t,o=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===o?[]:o,s=r$(r,"line-height");return s&&a.includes(s)&&(i.lineHeight=s),i},menus:[{key:"lineHeight",factory:function(){return new MK},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},IK=function(){function e(){this.title=VI("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),jK=function(){function e(){this.title=VI("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),LK={menus:[{key:"redo",factory:function(){return new IK}},{key:"undo",factory:function(){return new jK}}]},NK={type:"divider",renderElem:function(e,t,n){return mg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:nA.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[mg("hr")])}},RK=function(){function e(){this.title=VI("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!nA.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=nA.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){wd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),BK={renderElems:[NK],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new RK}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=f$(e,2),i=t[0],o=t[1];if("divider"!==nA.getNodeType(i))return n([i,o]);nA.isLastNode(r,i)&&wd.insertNodes(r,nA.genEmptyParagraph(),{at:[o[0]+1]})},r}},$K=lR.map;FN({target:"Array",proto:!0,forced:!cR("map")},{map:function(e){return $K(this,e,arguments.length>1?arguments[1]:void 0)}});var FK=Pj([].join),zK=Bj!=Object,qK=S$("join",",");FN({target:"Array",proto:!0,forced:zK||!qK},{join:function(e){return FK(zj(this),void 0===e?",":e)}});var UK=function(){function e(){this.title=VI("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=nA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=nA.getParentNode(e,t);return null==n||"pre"!==nA.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=nA.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=nA.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Bf.string(t);wd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));wd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],o=Pf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=c$(o),s=a.next();!s.done;s=a.next()){var l=f$(s.value,1)[0];l&&i.push(Bf.string(l))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}wd.removeNodes(e,{mode:"highest"});var u={type:"pre",children:[{type:"code",language:t,children:[{text:i.join("\n")}]}]};wd.insertNodes(e,u,{mode:"highest"})},e}(),HK={key:"codeBlock",factory:function(){return new UK}};FN({target:"String",proto:!0,forced:v$("anchor")},{anchor:function(e){return m$(this,"a","name",e)}}),tB("match",(function(e,t,n){return[function(t){var n=Fj(this),r=null==t?void 0:sL(t,e);return r?xj(r,t,n):new RegExp(t)[e](gR(n))},function(e){var r=RL(this),i=gR(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return mB(r,i);var a=r.unicode;r.lastIndex=0;for(var s,l=[],u=0;null!==(s=mB(r,i));){var c=gR(s[0]);l[u]=c,""===c&&(r.lastIndex=sB(i,yN(r.lastIndex),a)),u++}return 0===u?null:l}]}));var VK={type:"pre",renderElem:function(e,t,n){return Ng("pre",null,t)}},WK={type:"code",renderElem:function(e,t,n){return Ng("code",null,t)}},KK={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);return 0===(t=t.filter((function(e){return"code"===nA.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===nA.getNodeType(e)}))}}},GK={menus:[HK],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=nA.getSelectedNodeByType(i,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Bf.string(e),i=n.anchor.offset,o=r.slice(0,i).split("\n"),a=o.length;return 0===a?"":o[a-1]}(e,i);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var o=r[0];return void i.insertText("\n"+o)}}i.insertText("\n")}else t()},i.normalizeNode=function(e){var t=f$(e,2),r=t[0],o=t[1],a=nA.getNodeType(r);return"code"===a&&o.length<=1&&wd.setNodes(i,{type:"paragraph"},{at:o}),"pre"===a&&(nA.isLastNode(i,r)&&wd.insertNodes(i,nA.genEmptyParagraph(),{at:[o[0]+1]}),"code"!==nA.getNodeType(r.children[0])&&(wd.unwrapNodes(i),wd.setNodes(i,{type:"paragraph"},{mode:"highest"}))),n([r,o])},i.insertData=function(e){if(null!=nA.getSelectedNodeByType(i,"code")){var t=e.getData("text/plain");Pf.insertText(i,t)}else r(e)},i},renderElems:[VK,WK],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=qh(e);if("code"!==n$(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:qh(e)[0].textContent||""}]}}},KK]},YK=function(){function e(){this.title=VI("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),XK={menus:[{key:"fullScreen",factory:function(){return new YK}}]},ZK=function(){function e(){this.title=VI("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!Xf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];wd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Pf.start(e,r))}},e}(),QK=[oF,rz,bK,SK,DK,PK,tq,BK,vq,Sz,GK,gq,WF,h$,oq,LK,XK,{menus:[{key:"enter",factory:function(){return new ZK}}]}];qI("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qI("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var JK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function eG(e){var t={exports:{}};return e(t,t.exports),t.exports}var tG,nG,rG=function(e){return e&&e.Math==Math&&e},iG=rG("object"==typeof globalThis&&globalThis)||rG("object"==typeof window&&window)||rG("object"==typeof self&&self)||rG("object"==typeof JK&&JK)||function(){return this}()||Function("return this")(),oG=Function.prototype,aG=oG.bind,sG=oG.call,lG=aG&&aG.bind(sG),uG=aG?function(e){return e&&lG(sG,e)}:function(e){return e&&function(){return sG.apply(e,arguments)}},cG=function(e){try{return!!e()}catch(e){return!0}},fG=uG({}.toString),dG=uG("".slice),hG=function(e){return dG(fG(e),8,-1)},pG=iG.Object,gG=uG("".split),mG=cG((function(){return!pG("z").propertyIsEnumerable(0)}))?function(e){return"String"==hG(e)?gG(e,""):pG(e)}:pG,vG=iG.TypeError,yG=function(e){if(null==e)throw vG("Can't call method on "+e);return e},bG=function(e){return mG(yG(e))},_G=Object.defineProperty,wG=function(e,t){try{_G(iG,e,{value:t,configurable:!0,writable:!0})}catch(o){iG[e]=t}return t},xG=iG["__core-js_shared__"]||wG("__core-js_shared__",{}),OG=eG((function(e){(e.exports=function(e,t){return xG[e]||(xG[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),SG=iG.Object,CG=function(e){return SG(yG(e))},kG=uG({}.hasOwnProperty),EG=Object.hasOwn||function(e,t){return kG(CG(e),t)},AG=0,TG=Math.random(),DG=uG(1..toString),MG=function(e){return"Symbol("+(void 0===e?"":e)+")_"+DG(++AG+TG,36)},PG=function(e){return"function"==typeof e},IG=function(e){return PG(e)?e:void 0},jG=function(e,t){return arguments.length<2?IG(iG[e]):iG[e]&&iG[e][t]},LG=jG("navigator","userAgent")||"",NG=iG.process,RG=iG.Deno,BG=NG&&NG.versions||RG&&RG.version,$G=BG&&BG.v8;$G&&(nG=(tG=$G.split("."))[0]>0&&tG[0]<4?1:+(tG[0]+tG[1])),!nG&&LG&&(!(tG=LG.match(/Edge\/(\d+)/))||tG[1]>=74)&&(tG=LG.match(/Chrome\/(\d+)/))&&(nG=+tG[1]);var FG,zG=nG,qG=!!Object.getOwnPropertySymbols&&!cG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zG&&zG<41})),UG=qG&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,HG=OG("wks"),VG=iG.Symbol,WG=VG&&VG.for,KG=UG?VG:VG&&VG.withoutSetter||MG,GG=function(e){if(!EG(HG,e)||!qG&&"string"!=typeof HG[e]){var t="Symbol."+e;qG&&EG(VG,e)?HG[e]=VG[e]:HG[e]=UG&&WG?WG(t):KG(t)}return HG[e]},YG=function(e){return"object"==typeof e?null!==e:PG(e)},XG=iG.String,ZG=iG.TypeError,QG=function(e){if(YG(e))return e;throw ZG(XG(e)+" is not an object")},JG=!cG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),eY=iG.document,tY=YG(eY)&&YG(eY.createElement),nY=function(e){return tY?eY.createElement(e):{}},rY=!JG&&!cG((function(){return 7!=Object.defineProperty(nY("div"),"a",{get:function(){return 7}}).a})),iY=Function.prototype.call,oY=iY.bind?iY.bind(iY):function(){return iY.apply(iY,arguments)},aY=uG({}.isPrototypeOf),sY=iG.Object,lY=UG?function(e){return"symbol"==typeof e}:function(e){var t=jG("Symbol");return PG(t)&&aY(t.prototype,sY(e))},uY=iG.String,cY=function(e){try{return uY(e)}catch(e){return"Object"}},fY=iG.TypeError,dY=function(e){if(PG(e))return e;throw fY(cY(e)+" is not a function")},hY=function(e,t){var n=e[t];return null==n?void 0:dY(n)},pY=iG.TypeError,gY=iG.TypeError,mY=GG("toPrimitive"),vY=function(e){var t=function(e,t){if(!YG(e)||lY(e))return e;var n,r=hY(e,mY);if(r){if(void 0===t&&(t="default"),n=oY(r,e,t),!YG(n)||lY(n))return n;throw gY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&PG(n=e.toString)&&!YG(r=oY(n,e)))return r;if(PG(n=e.valueOf)&&!YG(r=oY(n,e)))return r;if("string"!==t&&PG(n=e.toString)&&!YG(r=oY(n,e)))return r;throw pY("Can't convert object to primitive value")}(e,t)}(e,"string");return lY(t)?t:t+""},yY=iG.TypeError,bY=Object.defineProperty,_Y={f:JG?bY:function(e,t,n){if(QG(e),t=vY(t),QG(n),rY)try{return bY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw yY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wY=Math.ceil,xY=Math.floor,OY=function(e){var t=+e;return t!=t||0===t?0:(t>0?xY:wY)(t)},SY=Math.max,CY=Math.min,kY=function(e,t){var n=OY(e);return n<0?SY(n+t,0):CY(n,t)},EY=Math.min,AY=function(e){return e>0?EY(OY(e),9007199254740991):0},TY=function(e){return AY(e.length)},DY=function(e){return function(t,n,r){var i,o=bG(t),a=TY(o),s=kY(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},MY={includes:DY(!0),indexOf:DY(!1)},PY={},IY=MY.indexOf,jY=uG([].push),LY=function(e,t){var n,r=bG(e),i=0,o=[];for(n in r)!EG(PY,n)&&EG(r,n)&&jY(o,n);for(;t.length>i;)EG(r,n=t[i++])&&(~IY(o,n)||jY(o,n));return o},NY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],RY=Object.keys||function(e){return LY(e,NY)},BY=JG?Object.defineProperties:function(e,t){QG(e);for(var n,r=bG(t),i=RY(t),o=i.length,a=0;o>a;)_Y.f(e,n=i[a++],r[n]);return e},$Y=jG("document","documentElement"),FY=OG("keys"),zY=function(e){return FY[e]||(FY[e]=MG(e))},qY=zY("IE_PROTO"),UY=function(){},HY=function(e){return"<script>"+e+"<\/script>"},VY=function(e){e.write(HY("")),e.close();var t=e.parentWindow.Object;return e=null,t},WY=function(){try{FG=new ActiveXObject("htmlfile")}catch(e){}var e,t;WY="undefined"!=typeof document?document.domain&&FG?VY(FG):((t=nY("iframe")).style.display="none",$Y.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(HY("document.F=Object")),e.close(),e.F):VY(FG);for(var n=NY.length;n--;)delete WY.prototype[NY[n]];return WY()};PY[qY]=!0;var KY=Object.create||function(e,t){var n;return null!==e?(UY.prototype=QG(e),n=new UY,UY.prototype=null,n[qY]=e):n=WY(),void 0===t?n:BY(n,t)},GY=GG("unscopables"),YY=Array.prototype;null==YY[GY]&&_Y.f(YY,GY,{configurable:!0,value:KY(null)});var XY=function(e){YY[GY][e]=!0},ZY={},QY=uG(Function.toString);PG(xG.inspectSource)||(xG.inspectSource=function(e){return QY(e)});var JY,eX,tX,nX=xG.inspectSource,rX=iG.WeakMap,iX=PG(rX)&&/native code/.test(nX(rX)),oX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},aX=JG?function(e,t,n){return _Y.f(e,t,oX(1,n))}:function(e,t,n){return e[t]=n,e},sX=iG.TypeError,lX=iG.WeakMap;if(iX||xG.state){var uX=xG.state||(xG.state=new lX),cX=uG(uX.get),fX=uG(uX.has),dX=uG(uX.set);JY=function(e,t){if(fX(uX,e))throw new sX("Object already initialized");return t.facade=e,dX(uX,e,t),t},eX=function(e){return cX(uX,e)||{}},tX=function(e){return fX(uX,e)}}else{var hX=zY("state");PY[hX]=!0,JY=function(e,t){if(EG(e,hX))throw new sX("Object already initialized");return t.facade=e,aX(e,hX,t),t},eX=function(e){return EG(e,hX)?e[hX]:{}},tX=function(e){return EG(e,hX)}}var pX,gX,mX,vX={set:JY,get:eX,has:tX,enforce:function(e){return tX(e)?eX(e):JY(e,{})},getterFor:function(e){return function(t){var n;if(!YG(t)||(n=eX(t)).type!==e)throw sX("Incompatible receiver, "+e+" required");return n}}},yX={}.propertyIsEnumerable,bX=Object.getOwnPropertyDescriptor,_X={f:bX&&!yX.call({1:2},1)?function(e){var t=bX(this,e);return!!t&&t.enumerable}:yX},wX=Object.getOwnPropertyDescriptor,xX={f:JG?wX:function(e,t){if(e=bG(e),t=vY(t),rY)try{return wX(e,t)}catch(e){}if(EG(e,t))return oX(!oY(_X.f,e,t),e[t])}},OX=Function.prototype,SX=JG&&Object.getOwnPropertyDescriptor,CX=EG(OX,"name"),kX={EXISTS:CX,PROPER:CX&&"something"===function(){}.name,CONFIGURABLE:CX&&(!JG||JG&&SX(OX,"name").configurable)},EX=eG((function(e){var t=kX.CONFIGURABLE,n=vX.get,r=vX.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;PG(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!EG(o,"name")||t&&o.name!==f)&&aX(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==iG?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:aX(e,n,o)):u?e[n]=o:wG(n,o)})(Function.prototype,"toString",(function(){return PG(this)&&n(this).source||nX(this)}))})),AX=NY.concat("length","prototype"),TX={f:Object.getOwnPropertyNames||function(e){return LY(e,AX)}},DX={f:Object.getOwnPropertySymbols},MX=uG([].concat),PX=jG("Reflect","ownKeys")||function(e){var t=TX.f(QG(e)),n=DX.f;return n?MX(t,n(e)):t},IX=function(e,t){for(var n=PX(t),r=_Y.f,i=xX.f,o=0;o<n.length;o++){var a=n[o];EG(e,a)||r(e,a,i(t,a))}},jX=/#|\.prototype\./,LX=function(e,t){var n=RX[NX(e)];return n==$X||n!=BX&&(PG(t)?cG(t):!!t)},NX=LX.normalize=function(e){return String(e).replace(jX,".").toLowerCase()},RX=LX.data={},BX=LX.NATIVE="N",$X=LX.POLYFILL="P",FX=LX,zX=xX.f,qX=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?iG:u?iG[s]||wG(s,{}):(iG[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=zX(n,r))&&a.value:n[r],!FX(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;IX(o,i)}(e.sham||i&&i.sham)&&aX(o,"sham",!0),EX(n,r,o,e)}},UX=!cG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),HX=zY("IE_PROTO"),VX=iG.Object,WX=VX.prototype,KX=UX?VX.getPrototypeOf:function(e){var t=CG(e);if(EG(t,HX))return t[HX];var n=t.constructor;return PG(n)&&t instanceof n?n.prototype:t instanceof VX?WX:null},GX=GG("iterator"),YX=!1;[].keys&&("next"in(mX=[].keys())?(gX=KX(KX(mX)))!==Object.prototype&&(pX=gX):YX=!0);var XX=null==pX||cG((function(){var e={};return pX[GX].call(e)!==e}));XX&&(pX={}),PG(pX[GX])||EX(pX,GX,(function(){return this}));var ZX={IteratorPrototype:pX,BUGGY_SAFARI_ITERATORS:YX},QX=_Y.f,JX=GG("toStringTag"),eZ=function(e,t,n){e&&!EG(e=n?e:e.prototype,JX)&&QX(e,JX,{configurable:!0,value:t})},tZ=ZX.IteratorPrototype,nZ=function(){return this},rZ=iG.String,iZ=iG.TypeError,oZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=uG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return QG(n),function(e){if("object"==typeof e||PG(e))return e;throw iZ("Can't set "+rZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),aZ=kX.PROPER,sZ=kX.CONFIGURABLE,lZ=ZX.IteratorPrototype,uZ=ZX.BUGGY_SAFARI_ITERATORS,cZ=GG("iterator"),fZ=function(){return this},dZ=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=KY(tZ,{next:oX(1,n)}),eZ(e,i,!1),ZY[i]=nZ}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!uZ&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[cZ]||h["@@iterator"]||i&&h[i],g=!uZ&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=KX(m.call(new e)))!==Object.prototype&&s.next&&(KX(s)!==lZ&&(oZ?oZ(s,lZ):PG(s[cZ])||EX(s,cZ,fZ)),eZ(s,f,!0)),aZ&&"values"==i&&p&&"values"!==p.name&&(sZ?aX(h,"name","values"):(d=!0,g=function(){return oY(p,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(uZ||d||!(u in h))&&EX(h,u,l[u]);else qX({target:t,proto:!0,forced:uZ||d},l);return h[cZ]!==g&&EX(h,cZ,g,{name:i}),ZY[t]=g,l},hZ=vX.set,pZ=vX.getterFor("Array Iterator"),gZ=dZ(Array,"Array",(function(e,t){hZ(this,{type:"Array Iterator",target:bG(e),index:0,kind:t})}),(function(){var e=pZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ZY.Arguments=ZY.Array,XY("keys"),XY("values"),XY("entries");var mZ={};mZ[GG("toStringTag")]="z";var vZ="[object z]"===String(mZ),yZ=GG("toStringTag"),bZ=iG.Object,_Z="Arguments"==hG(function(){return arguments}()),wZ=vZ?hG:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=bZ(e),yZ))?n:_Z?hG(t):"Object"==(r=hG(t))&&PG(t.callee)?"Arguments":r},xZ=vZ?{}.toString:function(){return"[object "+wZ(this)+"]"};vZ||EX(Object.prototype,"toString",xZ,{unsafe:!0});var OZ=iG.String,SZ=function(e){if("Symbol"===wZ(e))throw TypeError("Cannot convert a Symbol value to a string");return OZ(e)},CZ=uG("".charAt),kZ=uG("".charCodeAt),EZ=uG("".slice),AZ=function(e){return function(t,n){var r,i,o=SZ(yG(t)),a=OY(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=kZ(o,a))<55296||r>56319||a+1===s||(i=kZ(o,a+1))<56320||i>57343?e?CZ(o,a):r:e?EZ(o,a,a+2):i-56320+(r-55296<<10)+65536}},TZ={codeAt:AZ(!1),charAt:AZ(!0)},DZ=TZ.charAt,MZ=vX.set,PZ=vX.getterFor("String Iterator");dZ(String,"String",(function(e){MZ(this,{type:"String Iterator",string:SZ(e),index:0})}),(function(){var e,t=PZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=DZ(n,r),t.index+=e.length,{value:e,done:!1})}));var IZ=function(e,t,n){for(var r in t)EX(e,r,t[r],n);return e},jZ=iG.Array,LZ=Math.max,NZ=TX.f,RZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],BZ={f:function(e){return RZ&&"Window"==hG(e)?function(e){try{return NZ(e)}catch(e){return function(e,t,n){for(var r,i,o,a,s=TY(e),l=kY(void 0,s),u=kY(s,s),c=jZ(LZ(u-l,0)),f=0;l<u;l++,f++)r=c,i=f,o=e[l],(a=vY(i))in r?_Y.f(r,a,oX(0,o)):r[a]=o;return c.length=f,c}(RZ)}}(e):NZ(bG(e))}},$Z=cG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),FZ=Object.isExtensible,zZ=cG((function(){FZ(1)}))||$Z?function(e){return!!YG(e)&&(!$Z||"ArrayBuffer"!=hG(e))&&(!FZ||FZ(e))}:FZ,qZ=!cG((function(){return Object.isExtensible(Object.preventExtensions({}))})),UZ=eG((function(e){var t=_Y.f,n=!1,r=MG("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=TX.f,t=uG([].splice),i={};i[r]=1,e(i).length&&(TX.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t(i,o,1);break}return i},qX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:BZ.f}))},fastKey:function(e,t){if(!YG(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!EG(e,r)){if(!zZ(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!EG(e,r)){if(!zZ(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return qZ&&n&&zZ(e)&&!EG(e,r)&&o(e),e}};PY[r]=!0})),HZ=uG(uG.bind),VZ=function(e,t){return dY(e),void 0===t?e:HZ?HZ(e,t):function(){return e.apply(t,arguments)}},WZ=GG("iterator"),KZ=Array.prototype,GZ=GG("iterator"),YZ=function(e){if(null!=e)return hY(e,GZ)||hY(e,"@@iterator")||ZY[wZ(e)]},XZ=iG.TypeError,ZZ=function(e,t,n){var r,i;QG(e);try{if(!(r=hY(e,"return"))){if("throw"===t)throw n;return n}r=oY(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return QG(r),n},QZ=iG.TypeError,JZ=function(e,t){this.stopped=e,this.result=t},eQ=JZ.prototype,tQ=function(e,t,n){var r,i,o,a,s,l,u,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=VZ(t,f),m=function(e){return r&&ZZ(r,"normal",e),new JZ(!0,e)},v=function(e){return d?(QG(e),p?g(e[0],e[1],m):g(e[0],e[1])):p?g(e,m):g(e)};if(h)r=e;else{if(!(i=YZ(e)))throw QZ(cY(e)+" is not iterable");if(void 0!==(c=i)&&(ZY.Array===c||KZ[WZ]===c)){for(o=0,a=TY(e);a>o;o++)if((s=v(e[o]))&&aY(eQ,s))return s;return new JZ(!1)}r=function(e,t){var n=arguments.length<2?YZ(e):t;if(dY(n))return QG(oY(n,e));throw XZ(cY(e)+" is not iterable")}(e,i)}for(l=r.next;!(u=oY(l,r)).done;){try{s=v(u.value)}catch(e){ZZ(r,"throw",e)}if("object"==typeof s&&s&&aY(eQ,s))return s}return new JZ(!1)},nQ=iG.TypeError,rQ=function(e,t){if(aY(t,e))return e;throw nQ("Incorrect invocation")},iQ=GG("iterator"),oQ=!1;try{var aQ=0,sQ={next:function(){return{done:!!aQ++}},return:function(){oQ=!0}};sQ[iQ]=function(){return this},Array.from(sQ,(function(){throw 2}))}catch(qu){}var lQ=Array.isArray||function(e){return"Array"==hG(e)},uQ=function(){},cQ=[],fQ=jG("Reflect","construct"),dQ=/^\s*(?:class|function)\b/,hQ=uG(dQ.exec),pQ=!dQ.exec(uQ),gQ=function(e){if(!PG(e))return!1;try{return fQ(uQ,cQ,e),!0}catch(e){return!1}},mQ=!fQ||cG((function(){var e;return gQ(gQ.call)||!gQ(Object)||!gQ((function(){e=!0}))||e}))?function(e){if(!PG(e))return!1;switch(wZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return pQ||!!hQ(dQ,nX(e))}:gQ,vQ=GG("species"),yQ=iG.Array,bQ=function(e,t){return new(function(e){var t;return lQ(e)&&(t=e.constructor,(mQ(t)&&(t===yQ||lQ(t.prototype))||YG(t)&&null===(t=t[vQ]))&&(t=void 0)),void 0===t?yQ:t}(e))(0===t?0:t)},_Q=uG([].push),wQ=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=CG(l),g=mG(p),m=VZ(u,c),v=TY(g),y=0,b=f||bQ,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:_Q(_,d)}else switch(e){case 4:return!1;case 7:_Q(_,d)}return o?-1:r||i?i:_}},xQ={forEach:wQ(0),map:wQ(1),filter:wQ(2),some:wQ(3),every:wQ(4),find:wQ(5),findIndex:wQ(6),filterReject:wQ(7)},OQ=UZ.getWeakData,SQ=vX.set,CQ=vX.getterFor,kQ=xQ.find,EQ=xQ.findIndex,AQ=uG([].splice),TQ=0,DQ=function(e){return e.frozen||(e.frozen=new MQ)},MQ=function(){this.entries=[]},PQ=function(e,t){return kQ(e.entries,(function(e){return e[0]===t}))};MQ.prototype={get:function(e){var t=PQ(this,e);if(t)return t[1]},has:function(e){return!!PQ(this,e)},set:function(e,t){var n=PQ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=EQ(this.entries,(function(t){return t[0]===e}));return~t&&AQ(this.entries,t,1),!!~t}};var IQ,jQ={getConstructor:function(e,t,n,r){var i=e((function(e,i){rQ(e,o),SQ(e,{type:t,id:TQ++,frozen:void 0}),null!=i&&tQ(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=CQ(t),s=function(e,t,n){var r=a(e),i=OQ(QG(t),!0);return!0===i?DQ(r).set(t,n):i[r.id]=n,e};return IZ(o,{delete:function(e){var t=a(this);if(!YG(e))return!1;var n=OQ(e);return!0===n?DQ(t).delete(e):n&&EG(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!YG(e))return!1;var n=OQ(e);return!0===n?DQ(t).has(e):n&&EG(n,t.id)}}),IZ(o,n?{get:function(e){var t=a(this);if(YG(e)){var n=OQ(e);return!0===n?DQ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},LQ=vX.enforce,NQ=!iG.ActiveXObject&&"ActiveXObject"in iG,RQ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},BQ=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=iG[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=uG(s[e]);EX(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!YG(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!YG(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!YG(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(FX(e,!PG(a)||!(i||s.forEach&&!cG((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,o),UZ.enable();else if(FX(e,!0)){var f=new l,d=f[o](i?{}:-0,1)!=f,h=cG((function(){f.has(1)})),p=function(e,t){if(!oQ)return!1;var n=!1;try{var r={};r[iQ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!i&&cG((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((l=t((function(e,t){rQ(e,s);var n=function(e,t,n){var r,i;return oZ&&PG(r=t.constructor)&&r!==n&&YG(i=r.prototype)&&i!==n.prototype&&oZ(e,i),e}(new a,e,l);return null!=t&&tQ(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,qX({global:!0,forced:l!=a},u),eZ(l,e),i||n.setStrong(l,e,r),l}("WeakMap",RQ,jQ);if(iX&&NQ){IQ=jQ.getConstructor(RQ,"WeakMap",!0),UZ.enable();var $Q=BQ.prototype,FQ=uG($Q.delete),zQ=uG($Q.has),qQ=uG($Q.get),UQ=uG($Q.set);IZ($Q,{delete:function(e){if(YG(e)&&!zZ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),FQ(this,e)||t.frozen.delete(e)}return FQ(this,e)},has:function(e){if(YG(e)&&!zZ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),zQ(this,e)||t.frozen.has(e)}return zQ(this,e)},get:function(e){if(YG(e)&&!zZ(e)){var t=LQ(this);return t.frozen||(t.frozen=new IQ),zQ(this,e)?qQ(this,e):t.frozen.get(e)}return qQ(this,e)},set:function(e,t){if(YG(e)&&!zZ(e)){var n=LQ(this);n.frozen||(n.frozen=new IQ),zQ(this,e)?UQ(this,e,t):n.frozen.set(e,t)}else UQ(this,e,t);return this}})}var HQ={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},VQ=nY("span").classList,WQ=VQ&&VQ.constructor&&VQ.constructor.prototype,KQ=WQ===Object.prototype?void 0:WQ,GQ=GG("iterator"),YQ=GG("toStringTag"),XQ=gZ.values,ZQ=function(e,t){if(e){if(e[GQ]!==XQ)try{aX(e,GQ,XQ)}catch(t){e[GQ]=XQ}if(e[YQ]||aX(e,YQ,t),HQ[t])for(var n in gZ)if(e[n]!==gZ[n])try{aX(e,n,gZ[n])}catch(t){e[n]=gZ[n]}}};for(var QQ in HQ)ZQ(iG[QQ]&&iG[QQ].prototype,QQ);ZQ(KQ,"DOMTokenList");var JQ=new WeakMap,eJ={type:"list-item",renderElem:function(e,t,n){JQ.set(e,n);var r=e,i=r.level,o=void 0===i?0:i,a=r.ordered,s={margin:"5px 0 5px "+20*o+"px"},l="";if(void 0!==a&&a){var u=function(e,t){var n=t,r=n.type,i=n.level,o=void 0===i?0:i,a=n.ordered,s=void 0!==a&&a;if(!s)return-1;var l=1,u=t,c=nA.findPath(e,u);if(0===c[0])return 1;for(;c[0]>0;){var f=qf.previous(c),d=Pf.node(e,f);if(null==d)break;var h=d[0],p=h.level,g=void 0===p?0:p,m=h.type,v=h.ordered;if(m!==r)break;if(g<o)break;if(g===o){if(v!==s)break;l++}u=h,c=f}return l}(n,e);l=u+"."}else l=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(o);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var i=0;i<r&&!t;i++){var o=n[i];rd.isText(o)&&(t=o)}return null==t?"":t.color||""}(e);return Ng("div",{style:s},Ng("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},l),Ng("span",null,t))}},tJ=function(e,t){return tJ=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])},tJ(e,t)
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function nJ(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}tJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function rJ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function iJ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function oJ(e){return Pf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===nA.findPath(e,t).length}})}var aJ=MY.includes;qX({target:"Array",proto:!0},{includes:function(e){return aJ(this,e,arguments.length>1?arguments[1]:void 0)}}),XY("includes");var sJ,lJ,uJ=function(){var e=QG(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},cJ=iG.RegExp,fJ=cG((function(){var e=cJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dJ=fJ||cG((function(){return!cJ("a","y").sticky})),hJ={BROKEN_CARET:fJ||cG((function(){var e=cJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dJ,UNSUPPORTED_Y:fJ},pJ=iG.RegExp,gJ=cG((function(){var e=pJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),mJ=iG.RegExp,vJ=cG((function(){var e=mJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yJ=vX.get,bJ=OG("native-string-replace",String.prototype.replace),_J=RegExp.prototype.exec,wJ=_J,xJ=uG("".charAt),OJ=uG("".indexOf),SJ=uG("".replace),CJ=uG("".slice),kJ=(lJ=/b*/g,oY(_J,sJ=/a/,"a"),oY(_J,lJ,"a"),0!==sJ.lastIndex||0!==lJ.lastIndex),EJ=hJ.BROKEN_CARET,AJ=void 0!==/()??/.exec("")[1];(kJ||AJ||EJ||gJ||vJ)&&(wJ=function(e){var t,n,r,i,o,a,s,l=this,u=yJ(l),c=SZ(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=oY(wJ,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=EJ&&l.sticky,p=oY(uJ,l),g=l.source,m=0,v=c;if(h&&(p=SJ(p,"y",""),-1===OJ(p,"g")&&(p+="g"),v=CJ(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==xJ(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),AJ&&(n=new RegExp("^"+g+"$(?!\\s)",p)),kJ&&(r=l.lastIndex),i=oY(_J,h?n:l,v),h?i?(i.input=CJ(i.input,m),i[0]=CJ(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:kJ&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),AJ&&i&&i.length>1&&oY(bJ,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=KY(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var TJ=wJ;qX({target:"RegExp",proto:!0,forced:/./.exec!==TJ},{exec:TJ});var DJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return nA.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!nA.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?wd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):wd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),MJ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',PJ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',IJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=VI("listModule.unOrderedList"),t.iconSvg=MJ,t}return nJ(t,e),t}(DJ),jJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=VI("listModule.orderedList"),t.iconSvg=PJ,t}return nJ(t,e),t}(DJ),LJ={key:"bulletedList",factory:function(){return new IJ}},NJ={key:"numberedList",factory:function(){return new jJ}},RJ=[],BJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",i=e.ordered,o=void 0!==i&&i?"ol":"ul",a=function(e){var t=JQ.get(e);if(null==t)return 0;var n=e,r=n.type,i=n.ordered,o=void 0!==i&&i,a=n.level,s=void 0===a?0:a,l=nA.findPath(t,e);if(0===l[0])return s+1;var u=qf.previous(l),c=Pf.node(t,u);if(!c)return 0;var f=iJ(c,1)[0];if(nA.getNodeType(f)!==r)return s+1;var d=f,h=d.ordered,p=void 0!==h&&h,g=d.level,m=void 0===g?0:g;return m<s?s-m:m>s?0:m===s?p===o?0:1:0}(e);if(a>0)for(var s=0;s<a;s++)n+="<"+o+">",RJ.push(o);var l=function(e){var t=JQ.get(e);if(null==t)return 0;var n=e,r=n.type,i=n.ordered,o=void 0!==i&&i,a=n.level,s=void 0===a?0:a,l=nA.findPath(t,e);if(l[0]===t.children.length-1)return s+1;var u=qf.next(l),c=Pf.node(t,u);if(!c)return 0;var f=iJ(c,1)[0];if(nA.getNodeType(f)!==r)return s+1;var d=f,h=d.ordered,p=void 0!==h&&h,g=d.level,m=void 0===g?0:g;return m<s?s-m:m>s?0:m===s?p===o?0:1:0}(e);if(l>0)for(s=0;s<l;s++)r+="</"+RJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},$J=GG("species"),FJ=xQ.filter,zJ=zG>=51||!cG((function(){var e=[];return(e.constructor={})[$J]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));qX({target:"Array",proto:!0,forced:!zJ},{filter:function(e){return FJ(this,e,arguments.length>1?arguments[1]:void 0)}});var qJ=Function.prototype,UJ=qJ.apply,HJ=qJ.bind,VJ=qJ.call,WJ="object"==typeof Reflect&&Reflect.apply||(HJ?VJ.bind(UJ):function(){return VJ.apply(UJ,arguments)}),KJ=(GG("species"),RegExp.prototype),GJ=TZ.charAt,YJ=function(e,t,n){return t+(n?GJ(e,t).length:1)},XJ=Math.floor,ZJ=uG("".charAt),QJ=uG("".replace),JJ=uG("".slice),e0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,t0=/\$([$&'`]|\d{1,2})/g,n0=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=t0;return void 0!==i&&(i=CG(i),l=e0),QJ(o,l,(function(o,l){var u;switch(ZJ(l,0)){case"$":return"$";case"&":return e;case"`":return JJ(t,0,n);case"'":return JJ(t,a);case"<":u=i[JJ(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var f=XJ(c/10);return 0===f?o:f<=s?void 0===r[f-1]?ZJ(l,1):r[f-1]+ZJ(l,1):o}u=r[c-1]}return void 0===u?"":u}))},r0=iG.TypeError,i0=function(e,t){var n=e.exec;if(PG(n)){var r=oY(n,e,t);return null!==r&&QG(r),r}if("RegExp"===hG(e))return oY(TJ,e,t);throw r0("RegExp#exec called on incompatible receiver")},o0=GG("replace"),a0=Math.max,s0=Math.min,l0=uG([].concat),u0=uG([].push),c0=uG("".indexOf),f0=uG("".slice),d0="$0"==="a".replace(/./,"$0"),h0=!!/./[o0]&&""===/./[o0]("a","$0");!function(e,t,n,r){var i=GG(e),o=!cG((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!cG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](""),!e}));if(!o||!a||n){var s=uG(/./[i]),l=function(e,t,n){var r=h0?"$":"$0";return[function(e,n){var r=yG(this),i=null==e?void 0:hY(e,o0);return i?oY(i,e,r,n):oY(t,SZ(r),e,n)},function(e,i){var o=QG(this),a=SZ(e);if("string"==typeof i&&-1===c0(i,r)&&-1===c0(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=PG(i);l||(i=SZ(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var f=[];;){var d=i0(o,a);if(null===d)break;if(u0(f,d),!u)break;""===SZ(d[0])&&(o.lastIndex=YJ(a,AY(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v=SZ((d=f[m])[0]),y=a0(s0(OY(d.index),a.length),0),b=[],_=1;_<d.length;_++)u0(b,void 0===(h=d[_])?h:String(h));var w=d.groups;if(l){var x=l0([v],b,y,a);void 0!==w&&u0(x,w);var O=SZ(WJ(i,void 0,x))}else O=n0(v,a,y,b,w,i);y>=g&&(p+=f0(a,g,y)+O,g=y+v.length)}return p+f0(a,g)}]}(0,""[e],(function(e,t,n,r,i){var a=uG(e),l=t.exec;return l===TJ||l===KJ.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));EX(String.prototype,e,l[0]),EX(KJ,i,l[1])}}("replace",0,!!cG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!d0||h0);var p0=iG.TypeError,g0=function(e,t,n,r,i,o,a,s){for(var l,u,c=i,f=0,d=!!a&&VZ(a,s);f<r;){if(f in n){if(l=d?d(n[f],f,t):n[f],o>0&&lQ(l))u=TY(l),c=g0(e,t,l,u,c,o-1)-1;else{if(c>=9007199254740991)throw p0("Exceed the acceptable array length");e[c]=l}c++}f++}return c},m0=g0;function v0(e){return e.length?e[0].tagName.toLowerCase():""}qX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=CG(this),n=TY(t),r=bQ(t,0);return r.length=m0(r,t,t,n,0,void 0===e?1:OY(e)),r}}),XY("flat"),qX({global:!0},{globalThis:iG}),up&&(qh.fn.append=up),Wh&&(qh.fn.attr=Wh),fp&&(qh.fn.parent=fp);var y0={renderElems:[eJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(e){var n=i.selection;if(null!=n)if(Xf.isExpanded(n))t(e);else{var r=nA.getSelectedNodeByType(i,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var o=r.level,a=void 0===o?0:o;a>0?wd.setNodes(i,{level:a-1}):wd.setNodes(i,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},i.handleTab=function(){var e,t,r,o,a=i.selection;if(null!=a){if(Xf.isCollapsed(a)){var s=nA.getSelectedNodeByType(i,"list-item");if(null==s)return void n();if(0===a.focus.offset){var l=s.level,u=void 0===l?0:l;return void wd.setNodes(i,{level:u+1})}}if(Xf.isExpanded(a)){var c=0,f=!1;try{for(var d=rJ(oJ(i)),h=d.next();!h.done;h=d.next()){var p=iJ(h.value,1)[0];"list-item"===nA.getNodeType(p)?c++:f=!0}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=rJ(oJ(i)),m=g.next();!m.done;m=g.next()){var v=iJ(m.value,2),y=(p=v[0],v[1]),b=p.level;u=void 0===b?0:b,wd.setNodes(i,{level:u+1},{at:y})}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=iJ(e,2),n=t[0],o=t[1],a=nA.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||wd.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[LJ,NJ],elemsToHtml:[BJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=function(e){return"ol"===v0(e.parent())}(r),o=function(e){for(var t=0,n=e.parent(),r=v0(n);"ul"===r||"ol"===r;)r=v0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:i,level:o,children:t}}}]},b0=o((function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[a]=S[_]=S[s]=S[w]=S[l]=S[u]=S[c]=S[f]=S[d]=S[h]=S[g]=S[m]=S[v]=S[b]=!1;var C="object"==typeof r&&r&&r.Object===Object&&r,k="object"==typeof self&&self&&self.Object===Object&&self,E=C||k||Function("return this")(),A=t&&!t.nodeType&&t,T=A&&e&&!e.nodeType&&e,D=T&&T.exports===A,M=D&&C.process,P=function(){try{return M&&M.binding&&M.binding("util")}catch(r){}}(),I=P&&P.isTypedArray;function j(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var R=Array.prototype,B=Function.prototype,$=Object.prototype,F=E["__core-js_shared__"],z=B.toString,q=$.hasOwnProperty,U=function(){var e=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),H=$.toString,V=RegExp("^"+z.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=D?E.Buffer:void 0,K=E.Symbol,G=E.Uint8Array,Y=$.propertyIsEnumerable,X=R.splice,Z=K?K.toStringTag:void 0,Q=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Te(E,"DataView"),ne=Te(E,"Map"),re=Te(E,"Promise"),ie=Te(E,"Set"),oe=Te(E,"WeakMap"),ae=Te(Object,"create"),se=Ie(te),le=Ie(ne),ue=Ie(re),ce=Ie(ie),fe=Ie(oe),de=K?K.prototype:void 0,he=de?de.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new ge(e);this.size=t.size}function be(e,t){var n=Ne(e),r=!n&&Le(e),i=!n&&!r&&Re(e),o=!n&&!r&&!i&&qe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!q.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Pe(u,l))||s.push(u);return s}function _e(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=q.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=H.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):function(e){return H.call(e)}(e)}function xe(e){return ze(e)&&we(e)==o}function Oe(e,t,n,r,i){return e===t||(null==e||null==t||!ze(e)&&!ze(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var p=Ne(e),b=Ne(t),x=p?a:Me(e),O=b?a:Me(t),S=(x=x==o?h:x)==h,C=(O=O==o?h:O)==h,k=x==O;if(k&&Re(e)){if(!Re(t))return!1;p=!0,S=!1}if(k&&!S)return c||(c=new ye),p||qe(e)?ke(e,t,n,r,i,c):function(e,t,n,r,i,o,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new G(e),new G(t)));case s:case l:case d:return je(+e,+t);case u:return e.name==t.name&&e.message==t.message;case g:case v:return e==t+"";case f:var c=L;case m:var h=1&r;if(c||(c=N),e.size!=t.size&&!h)return!1;var p=a.get(e);if(p)return p==t;r|=2,a.set(e,t);var b=ke(c(e),c(t),r,i,o,a);return a.delete(e),b;case y:if(he)return he.call(e)==he.call(t)}return!1}(e,t,x,n,r,i,c);if(!(1&n)){var E=S&&q.call(e,"__wrapped__"),A=C&&q.call(t,"__wrapped__");if(E||A){var T=E?e.value():e,D=A?t.value():t;return c||(c=new ye),i(T,D,n,r,c)}}return!!k&&(c||(c=new ye),function(e,t,n,r,i,o){var a=1&n,s=Ee(e),l=s.length,u=Ee(t).length;if(l!=u&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in t:q.call(t,f)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var g=e[f=s[c]],m=t[f];if(r)var v=a?r(m,g,f,t,e,o):r(g,m,f,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,c))}(e,t,n,r,Oe,i))}function Se(e){return!(!Fe(e)||function(e){return!!U&&U in e}(e))&&(Be(e)?V:x).test(Ie(e))}function Ce(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||$,t!==r)return ee(e);var t,n,r,i=[];for(var o in Object(e))q.call(e,o)&&"constructor"!=o&&i.push(o);return i}function ke(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var h=e[c],p=t[c];if(r)var g=a?r(p,h,c,t,e,o):r(h,p,c,e,t,o);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!j(t,(function(e,t){if(a=t,!d.has(a)&&(h===e||i(h,e,n,r,o)))return d.push(t);var a}))){f=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ee(e){return function(e,t,n){var r=t(e);return Ne(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ue,De)}function Ae(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Se(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return q.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:q.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=_e(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=_e(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return _e(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(ne||ge),string:new pe}},me.prototype.delete=function(e){var t=Ae(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return Ae(this,e).get(e)},me.prototype.has=function(e){return Ae(this,e).has(e)},me.prototype.set=function(e,t){var n=Ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new ge,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new me(r)}return n.set(e,t),this.size=n.size,this};var De=Q?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Q(e),(function(t){return Y.call(e,t)})))}:function(){return[]},Me=we;function Pe(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(te&&Me(new te(new ArrayBuffer(1)))!=w||ne&&Me(new ne)!=f||re&&Me(re.resolve())!=p||ie&&Me(new ie)!=m||oe&&Me(new oe)!=b)&&(Me=function(e){var t=we(e),n=t==h?e.constructor:void 0,r=n?Ie(n):"";if(r)switch(r){case se:return w;case le:return f;case ue:return p;case ce:return m;case fe:return b}return t});var Le=xe(function(){return arguments}())?xe:function(e){return ze(e)&&q.call(e,"callee")&&!Y.call(e,"callee")},Ne=Array.isArray,Re=J||function(){return!1};function Be(e){if(!Fe(e))return!1;var t=we(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ze(e){return null!=e&&"object"==typeof e}var qe=I?function(e){return function(t){return e(t)}}(I):function(e){return ze(e)&&$e(e.length)&&!!S[we(e)]};function Ue(e){return null!=(t=e)&&$e(t.length)&&!Be(t)?be(e):Ce(e);var t}e.exports=function(e,t){return Oe(e,t)}}));qI("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),qI("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var _0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function w0(e){var t={exports:{}};return e(t,t.exports),t.exports}var x0,O0,S0=function(e){return e&&e.Math==Math&&e},C0=S0("object"==typeof globalThis&&globalThis)||S0("object"==typeof window&&window)||S0("object"==typeof self&&self)||S0("object"==typeof _0&&_0)||function(){return this}()||Function("return this")(),k0=function(e){try{return!!e()}catch(e){return!0}},E0=!k0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A0=Function.prototype.call,T0=A0.bind?A0.bind(A0):function(){return A0.apply(A0,arguments)},D0={}.propertyIsEnumerable,M0=Object.getOwnPropertyDescriptor,P0={f:M0&&!D0.call({1:2},1)?function(e){var t=M0(this,e);return!!t&&t.enumerable}:D0},I0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},j0=Function.prototype,L0=j0.bind,N0=j0.call,R0=L0&&L0.bind(N0),B0=L0?function(e){return e&&R0(N0,e)}:function(e){return e&&function(){return N0.apply(e,arguments)}},$0=B0({}.toString),F0=B0("".slice),z0=function(e){return F0($0(e),8,-1)},q0=C0.Object,U0=B0("".split),H0=k0((function(){return!q0("z").propertyIsEnumerable(0)}))?function(e){return"String"==z0(e)?U0(e,""):q0(e)}:q0,V0=C0.TypeError,W0=function(e){if(null==e)throw V0("Can't call method on "+e);return e},K0=function(e){return H0(W0(e))},G0=function(e){return"function"==typeof e},Y0=function(e){return"object"==typeof e?null!==e:G0(e)},X0=function(e){return G0(e)?e:void 0},Z0=function(e,t){return arguments.length<2?X0(C0[e]):C0[e]&&C0[e][t]},Q0=B0({}.isPrototypeOf),J0=Z0("navigator","userAgent")||"",e1=C0.process,t1=C0.Deno,n1=e1&&e1.versions||t1&&t1.version,r1=n1&&n1.v8;r1&&(O0=(x0=r1.split("."))[0]>0&&x0[0]<4?1:+(x0[0]+x0[1])),!O0&&J0&&(!(x0=J0.match(/Edge\/(\d+)/))||x0[1]>=74)&&(x0=J0.match(/Chrome\/(\d+)/))&&(O0=+x0[1]);var i1=O0,o1=!!Object.getOwnPropertySymbols&&!k0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i1&&i1<41})),a1=o1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,s1=C0.Object,l1=a1?function(e){return"symbol"==typeof e}:function(e){var t=Z0("Symbol");return G0(t)&&Q0(t.prototype,s1(e))},u1=C0.String,c1=function(e){try{return u1(e)}catch(e){return"Object"}},f1=C0.TypeError,d1=function(e){if(G0(e))return e;throw f1(c1(e)+" is not a function")},h1=function(e,t){var n=e[t];return null==n?void 0:d1(n)},p1=C0.TypeError,g1=Object.defineProperty,m1=function(e,t){try{g1(C0,e,{value:t,configurable:!0,writable:!0})}catch(o){C0[e]=t}return t},v1=C0["__core-js_shared__"]||m1("__core-js_shared__",{}),y1=w0((function(e){(e.exports=function(e,t){return v1[e]||(v1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),b1=C0.Object,_1=function(e){return b1(W0(e))},w1=B0({}.hasOwnProperty),x1=Object.hasOwn||function(e,t){return w1(_1(e),t)},O1=0,S1=Math.random(),C1=B0(1..toString),k1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+C1(++O1+S1,36)},E1=y1("wks"),A1=C0.Symbol,T1=A1&&A1.for,D1=a1?A1:A1&&A1.withoutSetter||k1,M1=function(e){if(!x1(E1,e)||!o1&&"string"!=typeof E1[e]){var t="Symbol."+e;o1&&x1(A1,e)?E1[e]=A1[e]:E1[e]=a1&&T1?T1(t):D1(t)}return E1[e]},P1=C0.TypeError,I1=M1("toPrimitive"),j1=function(e){var t=function(e,t){if(!Y0(e)||l1(e))return e;var n,r=h1(e,I1);if(r){if(void 0===t&&(t="default"),n=T0(r,e,t),!Y0(n)||l1(n))return n;throw P1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&G0(n=e.toString)&&!Y0(r=T0(n,e)))return r;if(G0(n=e.valueOf)&&!Y0(r=T0(n,e)))return r;if("string"!==t&&G0(n=e.toString)&&!Y0(r=T0(n,e)))return r;throw p1("Can't convert object to primitive value")}(e,t)}(e,"string");return l1(t)?t:t+""},L1=C0.document,N1=Y0(L1)&&Y0(L1.createElement),R1=function(e){return N1?L1.createElement(e):{}},B1=!E0&&!k0((function(){return 7!=Object.defineProperty(R1("div"),"a",{get:function(){return 7}}).a})),$1=Object.getOwnPropertyDescriptor,F1={f:E0?$1:function(e,t){if(e=K0(e),t=j1(t),B1)try{return $1(e,t)}catch(e){}if(x1(e,t))return I0(!T0(P0.f,e,t),e[t])}},z1=C0.String,q1=C0.TypeError,U1=function(e){if(Y0(e))return e;throw q1(z1(e)+" is not an object")},H1=C0.TypeError,V1=Object.defineProperty,W1={f:E0?V1:function(e,t,n){if(U1(e),t=j1(t),U1(n),B1)try{return V1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw H1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},K1=E0?function(e,t,n){return W1.f(e,t,I0(1,n))}:function(e,t,n){return e[t]=n,e},G1=B0(Function.toString);G0(v1.inspectSource)||(v1.inspectSource=function(e){return G1(e)});var Y1,X1,Z1,Q1=v1.inspectSource,J1=C0.WeakMap,e2=G0(J1)&&/native code/.test(Q1(J1)),t2=y1("keys"),n2=function(e){return t2[e]||(t2[e]=k1(e))},r2={},i2=C0.TypeError,o2=C0.WeakMap;if(e2||v1.state){var a2=v1.state||(v1.state=new o2),s2=B0(a2.get),l2=B0(a2.has),u2=B0(a2.set);Y1=function(e,t){if(l2(a2,e))throw new i2("Object already initialized");return t.facade=e,u2(a2,e,t),t},X1=function(e){return s2(a2,e)||{}},Z1=function(e){return l2(a2,e)}}else{var c2=n2("state");r2[c2]=!0,Y1=function(e,t){if(x1(e,c2))throw new i2("Object already initialized");return t.facade=e,K1(e,c2,t),t},X1=function(e){return x1(e,c2)?e[c2]:{}},Z1=function(e){return x1(e,c2)}}var f2={set:Y1,get:X1,has:Z1,enforce:function(e){return Z1(e)?X1(e):Y1(e,{})},getterFor:function(e){return function(t){var n;if(!Y0(t)||(n=X1(t)).type!==e)throw i2("Incompatible receiver, "+e+" required");return n}}},d2=Function.prototype,h2=E0&&Object.getOwnPropertyDescriptor,p2=x1(d2,"name"),g2={EXISTS:p2,PROPER:p2&&"something"===function(){}.name,CONFIGURABLE:p2&&(!E0||E0&&h2(d2,"name").configurable)},m2=w0((function(e){var t=g2.CONFIGURABLE,n=f2.get,r=f2.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;G0(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!x1(o,"name")||t&&o.name!==f)&&K1(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==C0?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:K1(e,n,o)):u?e[n]=o:m1(n,o)})(Function.prototype,"toString",(function(){return G0(this)&&n(this).source||Q1(this)}))})),v2=Math.ceil,y2=Math.floor,b2=function(e){var t=+e;return t!=t||0===t?0:(t>0?y2:v2)(t)},_2=Math.max,w2=Math.min,x2=function(e,t){var n=b2(e);return n<0?_2(n+t,0):w2(n,t)},O2=Math.min,S2=function(e){return e>0?O2(b2(e),9007199254740991):0},C2=function(e){return S2(e.length)},k2=function(e){return function(t,n,r){var i,o=K0(t),a=C2(o),s=x2(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},E2=(k2(!0),k2(!1)),A2=B0([].push),T2=function(e,t){var n,r=K0(e),i=0,o=[];for(n in r)!x1(r2,n)&&x1(r,n)&&A2(o,n);for(;t.length>i;)x1(r,n=t[i++])&&(~E2(o,n)||A2(o,n));return o},D2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],M2=D2.concat("length","prototype"),P2={f:Object.getOwnPropertyNames||function(e){return T2(e,M2)}},I2={f:Object.getOwnPropertySymbols},j2=B0([].concat),L2=Z0("Reflect","ownKeys")||function(e){var t=P2.f(U1(e)),n=I2.f;return n?j2(t,n(e)):t},N2=function(e,t){for(var n=L2(t),r=W1.f,i=F1.f,o=0;o<n.length;o++){var a=n[o];x1(e,a)||r(e,a,i(t,a))}},R2=/#|\.prototype\./,B2=function(e,t){var n=F2[$2(e)];return n==q2||n!=z2&&(G0(t)?k0(t):!!t)},$2=B2.normalize=function(e){return String(e).replace(R2,".").toLowerCase()},F2=B2.data={},z2=B2.NATIVE="N",q2=B2.POLYFILL="P",U2=B2,H2=F1.f,V2=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?C0:u?C0[s]||m1(s,{}):(C0[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=H2(n,r))&&a.value:n[r],!U2(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;N2(o,i)}(e.sham||i&&i.sham)&&K1(o,"sham",!0),m2(n,r,o,e)}},W2={};W2[M1("toStringTag")]="z";var K2="[object z]"===String(W2),G2=M1("toStringTag"),Y2=C0.Object,X2="Arguments"==z0(function(){return arguments}()),Z2=K2?z0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Y2(e),G2))?n:X2?z0(t):"Object"==(r=z0(t))&&G0(t.callee)?"Arguments":r},Q2=C0.String,J2=function(e){if("Symbol"===Z2(e))throw TypeError("Cannot convert a Symbol value to a string");return Q2(e)},e3=/"/g,t3=B0("".replace);V2({target:"String",proto:!0,forced:k0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=J2(W0(this)),r="<a",(r+=' name="'+t3(J2(t),e3,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var n3,r3=function(){var e=U1(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},i3=C0.RegExp,o3=k0((function(){var e=i3("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a3=o3||k0((function(){return!i3("a","y").sticky})),s3={BROKEN_CARET:o3||k0((function(){var e=i3("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:a3,UNSUPPORTED_Y:o3},l3=Object.keys||function(e){return T2(e,D2)},u3=E0?Object.defineProperties:function(e,t){U1(e);for(var n,r=K0(t),i=l3(t),o=i.length,a=0;o>a;)W1.f(e,n=i[a++],r[n]);return e},c3=Z0("document","documentElement"),f3=n2("IE_PROTO"),d3=function(){},h3=function(e){return"<script>"+e+"<\/script>"},p3=function(e){e.write(h3("")),e.close();var t=e.parentWindow.Object;return e=null,t},g3=function(){try{n3=new ActiveXObject("htmlfile")}catch(e){}var e,t;g3="undefined"!=typeof document?document.domain&&n3?p3(n3):((t=R1("iframe")).style.display="none",c3.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h3("document.F=Object")),e.close(),e.F):p3(n3);for(var n=D2.length;n--;)delete g3.prototype[D2[n]];return g3()};r2[f3]=!0;var m3,v3,y3=Object.create||function(e,t){var n;return null!==e?(d3.prototype=U1(e),n=new d3,d3.prototype=null,n[f3]=e):n=g3(),void 0===t?n:u3(n,t)},b3=C0.RegExp,_3=k0((function(){var e=b3(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),w3=C0.RegExp,x3=k0((function(){var e=w3("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),O3=f2.get,S3=y1("native-string-replace",String.prototype.replace),C3=RegExp.prototype.exec,k3=C3,E3=B0("".charAt),A3=B0("".indexOf),T3=B0("".replace),D3=B0("".slice),M3=(v3=/b*/g,T0(C3,m3=/a/,"a"),T0(C3,v3,"a"),0!==m3.lastIndex||0!==v3.lastIndex),P3=s3.BROKEN_CARET,I3=void 0!==/()??/.exec("")[1];(M3||I3||P3||_3||x3)&&(k3=function(e){var t,n,r,i,o,a,s,l=this,u=O3(l),c=J2(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=T0(k3,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=P3&&l.sticky,p=T0(r3,l),g=l.source,m=0,v=c;if(h&&(p=T3(p,"y",""),-1===A3(p,"g")&&(p+="g"),v=D3(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==E3(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),I3&&(n=new RegExp("^"+g+"$(?!\\s)",p)),M3&&(r=l.lastIndex),i=T0(C3,h?n:l,v),h?i?(i.input=D3(i.input,m),i[0]=D3(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:M3&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),I3&&i&&i.length>1&&T0(S3,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=y3(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var j3=k3;V2({target:"RegExp",proto:!0,forced:/./.exec!==j3},{exec:j3});var L3=Array.isArray||function(e){return"Array"==z0(e)},N3=function(){},R3=[],B3=Z0("Reflect","construct"),$3=/^\s*(?:class|function)\b/,F3=B0($3.exec),z3=!$3.exec(N3),q3=function(e){if(!G0(e))return!1;try{return B3(N3,R3,e),!0}catch(e){return!1}},U3=!B3||k0((function(){var e;return q3(q3.call)||!q3(Object)||!q3((function(){e=!0}))||e}))?function(e){if(!G0(e))return!1;switch(Z2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return z3||!!F3($3,Q1(e))}:q3,H3=function(e,t,n){var r=j1(t);r in e?W1.f(e,r,I0(0,n)):e[r]=n},V3=M1("species"),W3=function(e){return i1>=51||!k0((function(){var t=[];return(t.constructor={})[V3]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},K3=B0([].slice),G3=W3("slice"),Y3=M1("species"),X3=C0.Array,Z3=Math.max;function Q3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function J3(e){var t=e.selection;if(null==t)return!1;var n=Q3(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=Q3(n,2)[1],i=Pf.start(e,r);if(Wf.equals(t.anchor,i))return!0}return!1}function e4(e,t){var n,r,i=Pf.nodes(e,{at:t,match:function(e){return"table"===nA.getNodeType(e)}}),o=!1;try{for(var a=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),s=a.next();!s.done;s=a.next())s.value,o=!0}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}V2({target:"Array",proto:!0,forced:!G3},{slice:function(e,t){var n,r,i,o=K0(this),a=C2(o),s=x2(e,a),l=x2(void 0===t?a:t,a);if(L3(o)&&(n=o.constructor,(U3(n)&&(n===X3||L3(n.prototype))||Y0(n)&&null===(n=n[Y3]))&&(n=void 0),n===X3||void 0===n))return K3(o,s,l);for(r=new(void 0===n?X3:n)(Z3(l-s,0)),i=0;s<l;s++,i++)s in o&&H3(r,i,o[s]);return r.length=i,r}});var t4=B0(B0.bind),n4=M1("species"),r4=C0.Array,i4=function(e,t){return new(function(e){var t;return L3(e)&&(t=e.constructor,(U3(t)&&(t===r4||L3(t.prototype))||Y0(t)&&null===(t=t[n4]))&&(t=void 0)),void 0===t?r4:t}(e))(0===t?0:t)},o4=B0([].push),a4=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=_1(l),g=H0(p),m=function(e,t){return d1(e),void 0===t?e:t4?t4(e,t):function(){return e.apply(t,arguments)}}(u,c),v=C2(g),y=0,b=f||i4,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:o4(_,d)}else switch(e){case 4:return!1;case 7:o4(_,d)}return o?-1:r||i?i:_}},s4={forEach:a4(0),map:a4(1),filter:a4(2),some:a4(3),every:a4(4),find:a4(5),findIndex:a4(6),filterReject:a4(7)},l4=s4.map;V2({target:"Array",proto:!0,forced:!W3("map")},{map:function(e){return l4(this,e,arguments.length>1?arguments[1]:void 0)}});var u4=K2?{}.toString:function(){return"[object "+Z2(this)+"]"};function c4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function f4(e){return c4(e).every((function(e){return!!e.isHeader}))}K2||m2(Object.prototype,"toString",u4,{unsafe:!0});var d4=g2.PROPER,h4=RegExp.prototype,p4=h4.toString,g4=B0(r3),m4=k0((function(){return"/a/b"!=p4.call({source:"a",flags:"b"})})),v4=d4&&"toString"!=p4.name;(m4||v4)&&m2(RegExp.prototype,"toString",(function(){var e=U1(this),t=J2(e.source),n=e.flags;return"/"+t+"/"+J2(void 0===n&&Q0(h4,e)&&!("flags"in h4)?g4(e):n)}),{unsafe:!0});var y4=M1("unscopables"),b4=Array.prototype;null==b4[y4]&&W1.f(b4,y4,{configurable:!0,value:y3(null)});var _4=s4.find,w4=!0;"find"in[]&&Array(1).find((function(){w4=!1})),V2({target:"Array",proto:!0,forced:w4},{find:function(e){return _4(this,e,arguments.length>1?arguments[1]:void 0)}}),b4[y4].find=!0;var x4=Function.prototype,O4=x4.apply,S4=x4.bind,C4=x4.call,k4="object"==typeof Reflect&&Reflect.apply||(S4?C4.bind(O4):function(){return C4.apply(O4,arguments)}),E4=M1("species"),A4=RegExp.prototype,T4=function(e,t,n,r){var i=M1(e),o=!k0((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!k0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[E4]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=B0(/./[i]),l=t(i,""[e],(function(e,t,n,r,i){var a=B0(e),l=t.exec;return l===j3||l===A4.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));m2(String.prototype,e,l[0]),m2(A4,i,l[1])}r&&K1(A4[i],"sham",!0)},D4=M1("match"),M4=C0.TypeError,P4=M1("species"),I4=B0("".charAt),j4=B0("".charCodeAt),L4=B0("".slice),N4=function(e){return function(t,n){var r,i,o=J2(W0(t)),a=b2(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=j4(o,a))<55296||r>56319||a+1===s||(i=j4(o,a+1))<56320||i>57343?e?I4(o,a):r:e?L4(o,a,a+2):i-56320+(r-55296<<10)+65536}},R4=(N4(!1),N4(!0)),B4=function(e,t,n){return t+(n?R4(e,t).length:1)},$4=C0.Array,F4=Math.max,z4=function(e,t,n){for(var r=C2(e),i=x2(t,r),o=x2(void 0===n?r:n,r),a=$4(F4(o-i,0)),s=0;i<o;i++,s++)H3(a,s,e[i]);return a.length=s,a},q4=C0.TypeError,U4=function(e,t){var n=e.exec;if(G0(n)){var r=T0(n,e,t);return null!==r&&U1(r),r}if("RegExp"===z0(e))return T0(j3,e,t);throw q4("RegExp#exec called on incompatible receiver")},H4=s3.UNSUPPORTED_Y,V4=Math.min,W4=[].push,K4=B0(/./.exec),G4=B0(W4),Y4=B0("".slice);T4("split",(function(e,t,n){var r;return r="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 r,i,o=J2(W0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Y0(r=e)||!(void 0!==(i=r[D4])?i:"RegExp"==z0(r)))return T0(t,o,e,a);for(var s,l,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=new RegExp(e.source,f+"g");(s=T0(j3,h,o))&&!((l=h.lastIndex)>d&&(G4(c,Y4(o,d,s.index)),s.length>1&&s.index<o.length&&k4(W4,c,z4(s,1)),u=s[0].length,d=l,c.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return d===o.length?!u&&K4(h,"")||G4(c,""):G4(c,Y4(o,d)),c.length>a?z4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:T0(t,this,e,n)}:t,[function(t,n){var i=W0(this),o=null==t?void 0:h1(t,e);return o?T0(o,t,i,n):T0(r,J2(i),t,n)},function(e,i){var o=U1(this),a=J2(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var l=function(e,t){var n,r=U1(e).constructor;return void 0===r||null==(n=U1(r)[P4])?t:function(e){if(U3(e))return e;throw M4(c1(e)+" is not a constructor")}(n)}(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(H4?"g":"y"),f=new l(H4?"^(?:"+o.source+")":o,c),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===U4(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=H4?0:p;var m,v=U4(f,H4?Y4(a,p):a);if(null===v||(m=V4(S2(f.lastIndex+(H4?p:0)),a.length))===h)p=B4(a,p,u);else{if(G4(g,Y4(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(G4(g,v[y]),g.length===d)return g;p=h=m}}return G4(g,Y4(a,h)),g}]}),!!k0((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]})),H4);var X4="\t\n\v\f\r                　\u2028\u2029\ufeff",Z4=B0("".replace),Q4="["+X4+"]",J4=RegExp("^"+Q4+Q4+"*"),e5=RegExp(Q4+Q4+"*$"),t5=function(e){return function(t){var n=J2(W0(t));return 1&e&&(n=Z4(n,J4,"")),2&e&&(n=Z4(n,e5,"")),n}},n5={start:t5(1),end:t5(2),trim:t5(3)},r5=g2.PROPER,i5=n5.trim;function o5(e){return e.length?e[0].tagName.toLowerCase():""}V2({target:"String",proto:!0,forced:function(e){return k0((function(){return!!X4[e]()||"​᠎"!=="​᠎"[e]()||r5&&X4[e].name!==e}))}("trim")},{trim:function(){return i5(this)}}),V2({global:!0},{globalThis:C0}),up&&(qh.fn.append=up),Xh&&(qh.fn.on=Xh),_p&&(qh.fn.focus=_p),Wh&&(qh.fn.attr=Wh),Yh&&(qh.fn.val=Yh),ap&&(qh.fn.html=ap),Gh&&(qh.fn.dataset=Gh),Uh&&(qh.fn.addClass=Uh),Hh&&(qh.fn.removeClass=Hh),pp&&(qh.fn.children=pp),ip&&(qh.fn.each=ip),hp&&(qh.fn.find=hp);var a5=!1,s5=0,l5=0,u5=null,c5=null,f5=qh("body");function d5(e){a5=!1,c5=null,u5=null,f5.off("mousemove",h5),f5.off("mouseup",d5)}f5.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),a5=!0;var n=e.clientX;s5=n;var r=t.getBoundingClientRect().width;l5=r,f5.on("mousemove",h5),f5.on("mouseup",d5)}}));var h5=rg((function(e){if(a5&&null!=c5&&null!=u5){e.preventDefault();var t=e.clientX,n=l5+(t-s5);(n=Math.floor(100*n)/100)<30&&(n=30),wd.setNodes(c5,{width:n.toString()},{at:u5})}}),100),p5={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Xf.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,o=nA.findPath(e,t),a=Pf.start(e,o),s=Pf.end(e,o),l=Wf.compare(r,s)<=0&&Wf.compare(r,a)>=0,u=Wf.compare(i,s)<=0&&Wf.compare(i,a)>=0;return!!(l&&u&&qf.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,o=void 0===i?"auto":i,a=Ng("div",{className:"table-container","data-selected":nA.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=nA.findPath(n,e),i=Pf.start(n,r),o=n.selection;null!=o?o.anchor.path[0]!==r[0]&&n.select(i):n.select(i)}}}},Ng("table",{width:o,contentEditable:r},Ng("colgroup",null,c4(e).map((function(e){var t=e.width;return Ng("col",{width:void 0===t?"auto":t})}))),Ng("tbody",null,t)));return a}},g5={type:"table-row",renderElem:function(e,t,n){return Ng("tr",null,t)}},m5={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=nA.getParentNode(e,t);if(null==n)return!1;var r=nA.getParentNode(e,n);return null!=r&&c4(r).some((function(e){return e===t}))}(n,e),i=e,o=i.colSpan,a=void 0===o?1:o,s=i.rowSpan,l=void 0===s?1:s,u=i.isHeader,c=void 0!==u&&u;if(!r)return Ng("td",{colSpan:a,rowSpan:l},t);var f=Ng(c?"th":"td",{colSpan:a,rowSpan:l,style:{borderRightWidth:"3px"},on:{mousemove:rg((function(t){var r=this.elm;if(null!=r){var i=r.getBoundingClientRect(),o=i.left,a=i.width,s=i.top,l=i.height,u=t.clientX,c=t.clientY;a5||(u>o+a-5&&u<o+a&&c>s&&c<s+l?(r.style.cursor="col-resize",c5=n,u5=nA.findPath(n,e)):a5||(r.style.cursor="auto",c5=null,u5=null))}}),100)}},t);return f}},v5={selector:"table",preParseHtml:function(e){var t=qh(e);if("table"!==o5(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},y5=s4.filter;V2({target:"Array",proto:!0,forced:!W3("filter")},{filter:function(e){return y5(this,e,arguments.length>1?arguments[1]:void 0)}});var b5=Math.floor,_5=B0("".charAt),w5=B0("".replace),x5=B0("".slice),O5=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,S5=/\$([$&'`]|\d{1,2})/g,C5=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=S5;return void 0!==i&&(i=_1(i),l=O5),w5(o,l,(function(o,l){var u;switch(_5(l,0)){case"$":return"$";case"&":return e;case"`":return x5(t,0,n);case"'":return x5(t,a);case"<":u=i[x5(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var f=b5(c/10);return 0===f?o:f<=s?void 0===r[f-1]?_5(l,1):r[f-1]+_5(l,1):o}u=r[c-1]}return void 0===u?"":u}))},k5=M1("replace"),E5=Math.max,A5=Math.min,T5=B0([].concat),D5=B0([].push),M5=B0("".indexOf),P5=B0("".slice),I5="$0"==="a".replace(/./,"$0"),j5=!!/./[k5]&&""===/./[k5]("a","$0");T4("replace",(function(e,t,n){var r=j5?"$":"$0";return[function(e,n){var r=W0(this),i=null==e?void 0:h1(e,k5);return i?T0(i,e,r,n):T0(t,J2(r),e,n)},function(e,i){var o=U1(this),a=J2(e);if("string"==typeof i&&-1===M5(i,r)&&-1===M5(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=G0(i);l||(i=J2(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var f=[];;){var d=U4(o,a);if(null===d)break;if(D5(f,d),!u)break;""===J2(d[0])&&(o.lastIndex=B4(a,S2(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v=J2((d=f[m])[0]),y=E5(A5(b2(d.index),a.length),0),b=[],_=1;_<d.length;_++)D5(b,void 0===(h=d[_])?h:String(h));var w=d.groups;if(l){var x=T5([v],b,y,a);void 0!==w&&D5(x,w);var O=J2(k4(i,void 0,x))}else O=C5(v,a,y,b,w,i);y>=g&&(p+=P5(a,g,y)+O,g=y+v.length)}return p+P5(a,g)}]}),!!k0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!I5||j5);var L5={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e);0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var i=parseInt(r.attr("colSpan")||"1"),o=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===o5(r),colSpan:i,rowSpan:o,width:a,children:t}}},N5={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===nA.getNodeType(e)}))}}},R5={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=qh(e),i="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),i=r.length,o=0;o<i;o++){var a=r[o];if(a){var s=a.split(":");"width"===s[0].trim()&&(n=s[1].trim())}}return n}(r)&&(i="100%"),"100%"===r.attr("width")&&(i="100%"),{type:"table",width:i,children:t.filter((function(e){return"table-row"===nA.getNodeType(e)}))}}},B5=function(){function e(){this.title=VI("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||!!nA.getSelectedElems(e).some((function(t){var n=nA.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=qh('<div class="w-e-panel-content-table"></div>'),r=qh("<span>0 &times; 0</span>"),i=qh("<table></table>"),o=0;o<10;o++){for(var a=qh("<tr></tr>"),s=0;s<10;s++){var l=qh("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",o.toString()),a.append(l),l.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=qh(t).dataset(),o=n.x,a=n.y;r[0].innerHTML=o+1+" &times; "+(a+1),i.children().each((function(e){qh(e).children().each((function(e){var t=qh(e),n=t.dataset(),r=n.x,i=n.y;r<=o&&i<=a?t.addClass("active"):t.removeClass("active")}))}))}})),l.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var i=qh(r).dataset(),o=i.x,a=i.y;t.insertTable(e,a+1,o+1)}}))}i.append(a)}return n.append(i),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){nA.isSelectedEmptyParagraph(e)&&wd.removeNodes(e,{mode:"highest"});var o=function(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],o=0;o<t;o++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),i.push(a)}n.push({type:"table-row",children:i})}return{type:"table",width:"auto",children:n}}(r,i);wd.insertNodes(e,o,{mode:"highest"})}},e}(),$5=function(){function e(){this.title=VI("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==nA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||wd.removeNodes(e,{mode:"highest"})},e}(),F5=function(){function e(){this.title=VI("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q3(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q3(n[0],2),i=r[0],o=r[1],a=nA.getParentNode(e,i),s=(null==a?void 0:a.children.length)||0;if(0!==s){for(var l={type:"table-row",children:[]},u=0;u<s;u++)l.children.push({type:"table-cell",children:[{text:""}]});var c=qf.parent(o),f=qf.next(c);wd.insertNodes(e,l,{at:f})}}},e}(),z5=function(){function e(){this.title=VI("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q3(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"table-row")},universal:!0}),1),r=Q3(n[0],2),i=r[0],o=r[1],a=nA.getParentNode(e,i);((null==a?void 0:a.children.length)||0)<=1?wd.removeNodes(e,{mode:"highest"}):wd.removeNodes(e,{at:o})}},e}(),q5={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},U5=R1("span").classList,H5=U5&&U5.constructor&&U5.constructor.prototype,V5=H5===Object.prototype?void 0:H5,W5=s4.forEach,K5=function(e,t){var n=[].forEach;return!!n&&k0((function(){n.call(null,(function(){throw 1}),1)}))}(),G5=K5?[].forEach:function(e){return W5(this,e,arguments.length>1?arguments[1]:void 0)},Y5=function(e){if(e&&e.forEach!==G5)try{K1(e,"forEach",G5)}catch(i){e.forEach=G5}};for(var X5 in q5)q5[X5]&&Y5(C0[X5]&&C0[X5].prototype);Y5(V5);var Z5=function(){function e(){this.title=VI("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q3(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q3(n[0],2),i=r[0],o=r[1],a=nA.getParentNode(e,i);if(null!=a){var s=nA.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t,n){kf.isElement(t)&&(t.children||[]).forEach((function(t){var r=nA.findPath(e,t);if(r.length===o.length&&b0(r.slice(-1),o.slice(-1))){var i={type:"table-cell",children:[{text:""}]};0===n&&f4(s)&&(i.isHeader=!0),wd.insertNodes(e,i,{at:r})}}))}))}}},e}(),Q5=function(){function e(){this.title=VI("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Q3(Pf.nodes(e,{match:function(e){return nA.checkNodeType(e,"table-cell")},universal:!0}),1),r=Q3(n[0],2),i=r[0],o=r[1],a=nA.getParentNode(e,i),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)wd.removeNodes(e,{mode:"highest"});else{var l=nA.getParentNode(e,a);null!=l&&(l.children||[]).forEach((function(t){kf.isElement(t)&&(t.children||[]).forEach((function(t){var n=nA.findPath(e,t);n.length===o.length&&b0(n.slice(-1),o.slice(-1))&&wd.removeNodes(e,{at:n})}))}))}}},e}(),J5=function(){function e(){this.title=VI("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=nA.getSelectedNodeByType(e,"table");return null!=t&&f4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=nA.getSelectedNodeByType(e,"table");null!=r&&c4(r).forEach((function(t){return wd.setNodes(e,{isHeader:n},{at:nA.findPath(e,t)})}))}},e}(),e6=function(){function e(){this.title=VI("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=nA.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nA.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};wd.setNodes(e,n,{mode:"highest"})}},e}(),t6={renderElems:[p5,g5,m5],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,i=void 0===r?1:r,o=n.rowSpan,a=void 0===o?1:o,s=n.isHeader,l=void 0!==s&&s,u=n.width,c=l?"th":"td";return"<"+c+' colSpan="'+i+'" rowSpan="'+a+'" width="'+(void 0===u?"auto":u)+'">'+t+"</"+c+">"}}],preParseHtml:[v5],parseElemsHtml:[L5,N5,R5],menus:[{key:"insertTable",factory:function(){return new B5}},{key:"deleteTable",factory:function(){return new $5}},{key:"insertTableRow",factory:function(){return new F5}},{key:"deleteTableRow",factory:function(){return new z5}},{key:"insertTableCol",factory:function(){return new Z5}},{key:"deleteTableCol",factory:function(){return new Q5}},{key:"tableHeader",factory:function(){return new J5}},{key:"tableFullWidth",factory:function(){return new e6}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,o=e.insertData,a=e.handleTab,s=e.selectAll,l=e;return l.insertBreak=function(){null==nA.getSelectedNodeByType(l,"table")?t():l.insertText("\n")},l.deleteBackward=function(e){if(!J3(l)){var t=l.selection;if(t){var r=Pf.before(l,t);if(r){var i=e4(l,r),o=e4(l,t);if(i&&!o)return}}n(e)}},l.handleTab=function(){var t;if(nA.getSelectedNodeByType(l,"table")){var n=Pf.above(e);nA.checkNodeType(n[0],"table-cell")&&wd.select(e,n[1]);var r=Pf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Pf.above(e,{at:r[1]}))&&void 0!==t?t:r),wd.select(e,r[1]);else{var i=l.children||[],o=i.length;if(nA.checkNodeType(i[o-1],"table")){var s=nA.genEmptyParagraph();wd.insertNodes(l,s,{at:[o]}),l.handleTab()}}}else a()},l.deleteForward=function(e){J3(l)||r(e)},l.normalizeNode=function(e){var t=Q3(e,2),n=t[0],r=t[1];if("table"!==nA.getNodeType(n))return i([n,r]);if(nA.isLastNode(l,n)){var o=nA.genEmptyParagraph();wd.insertNodes(l,o,{at:[r[0]+1]})}},l.insertData=function(e){if(null!=nA.getSelectedNodeByType(l,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?o(e):Pf.insertText(l,t)}else o(e)},l.selectAll=function(){var e=l.selection;if(null!=e){var t=nA.getSelectedNodeByType(l,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(qf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Bf.string(t).length){var i=nA.findPath(l,t),o={anchor:Pf.start(l,i),focus:Pf.end(l,i)};l.select(o)}else s();else s()}else s()}else s()},l}};qI("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),qI("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var n6=function(){return n6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n6.apply(this,arguments)};function r6(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function i6(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function o6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a6(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}var s6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function l6(e){var t={exports:{}};return e(t,t.exports),t.exports}var u6,c6,f6=function(e){return e&&e.Math==Math&&e},d6=f6("object"==typeof globalThis&&globalThis)||f6("object"==typeof window&&window)||f6("object"==typeof self&&self)||f6("object"==typeof s6&&s6)||function(){return this}()||Function("return this")(),h6=function(e){try{return!!e()}catch(e){return!0}},p6=!h6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g6=Function.prototype.call,m6=g6.bind?g6.bind(g6):function(){return g6.apply(g6,arguments)},v6={}.propertyIsEnumerable,y6=Object.getOwnPropertyDescriptor,b6={f:y6&&!v6.call({1:2},1)?function(e){var t=y6(this,e);return!!t&&t.enumerable}:v6},_6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w6=Function.prototype,x6=w6.bind,O6=w6.call,S6=x6&&x6.bind(O6),C6=x6?function(e){return e&&S6(O6,e)}:function(e){return e&&function(){return O6.apply(e,arguments)}},k6=C6({}.toString),E6=C6("".slice),A6=function(e){return E6(k6(e),8,-1)},T6=d6.Object,D6=C6("".split),M6=h6((function(){return!T6("z").propertyIsEnumerable(0)}))?function(e){return"String"==A6(e)?D6(e,""):T6(e)}:T6,P6=d6.TypeError,I6=function(e){if(null==e)throw P6("Can't call method on "+e);return e},j6=function(e){return M6(I6(e))},L6=function(e){return"function"==typeof e},N6=function(e){return"object"==typeof e?null!==e:L6(e)},R6=function(e){return L6(e)?e:void 0},B6=function(e,t){return arguments.length<2?R6(d6[e]):d6[e]&&d6[e][t]},$6=C6({}.isPrototypeOf),F6=B6("navigator","userAgent")||"",z6=d6.process,q6=d6.Deno,U6=z6&&z6.versions||q6&&q6.version,H6=U6&&U6.v8;H6&&(c6=(u6=H6.split("."))[0]>0&&u6[0]<4?1:+(u6[0]+u6[1])),!c6&&F6&&(!(u6=F6.match(/Edge\/(\d+)/))||u6[1]>=74)&&(u6=F6.match(/Chrome\/(\d+)/))&&(c6=+u6[1]);var V6=c6,W6=!!Object.getOwnPropertySymbols&&!h6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V6&&V6<41})),K6=W6&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G6=d6.Object,Y6=K6?function(e){return"symbol"==typeof e}:function(e){var t=B6("Symbol");return L6(t)&&$6(t.prototype,G6(e))},X6=d6.String,Z6=function(e){try{return X6(e)}catch(e){return"Object"}},Q6=d6.TypeError,J6=function(e){if(L6(e))return e;throw Q6(Z6(e)+" is not a function")},e8=function(e,t){var n=e[t];return null==n?void 0:J6(n)},t8=d6.TypeError,n8=Object.defineProperty,r8=function(e,t){try{n8(d6,e,{value:t,configurable:!0,writable:!0})}catch(o){d6[e]=t}return t},i8=d6["__core-js_shared__"]||r8("__core-js_shared__",{}),o8=l6((function(e){(e.exports=function(e,t){return i8[e]||(i8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),a8=d6.Object,s8=function(e){return a8(I6(e))},l8=C6({}.hasOwnProperty),u8=Object.hasOwn||function(e,t){return l8(s8(e),t)},c8=0,f8=Math.random(),d8=C6(1..toString),h8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+d8(++c8+f8,36)},p8=o8("wks"),g8=d6.Symbol,m8=g8&&g8.for,v8=K6?g8:g8&&g8.withoutSetter||h8,y8=function(e){if(!u8(p8,e)||!W6&&"string"!=typeof p8[e]){var t="Symbol."+e;W6&&u8(g8,e)?p8[e]=g8[e]:p8[e]=K6&&m8?m8(t):v8(t)}return p8[e]},b8=d6.TypeError,_8=y8("toPrimitive"),w8=function(e){var t=function(e,t){if(!N6(e)||Y6(e))return e;var n,r=e8(e,_8);if(r){if(void 0===t&&(t="default"),n=m6(r,e,t),!N6(n)||Y6(n))return n;throw b8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&L6(n=e.toString)&&!N6(r=m6(n,e)))return r;if(L6(n=e.valueOf)&&!N6(r=m6(n,e)))return r;if("string"!==t&&L6(n=e.toString)&&!N6(r=m6(n,e)))return r;throw t8("Can't convert object to primitive value")}(e,t)}(e,"string");return Y6(t)?t:t+""},x8=d6.document,O8=N6(x8)&&N6(x8.createElement),S8=function(e){return O8?x8.createElement(e):{}},C8=!p6&&!h6((function(){return 7!=Object.defineProperty(S8("div"),"a",{get:function(){return 7}}).a})),k8=Object.getOwnPropertyDescriptor,E8={f:p6?k8:function(e,t){if(e=j6(e),t=w8(t),C8)try{return k8(e,t)}catch(e){}if(u8(e,t))return _6(!m6(b6.f,e,t),e[t])}},A8=d6.String,T8=d6.TypeError,D8=function(e){if(N6(e))return e;throw T8(A8(e)+" is not an object")},M8=d6.TypeError,P8=Object.defineProperty,I8={f:p6?P8:function(e,t,n){if(D8(e),t=w8(t),D8(n),C8)try{return P8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw M8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},j8=p6?function(e,t,n){return I8.f(e,t,_6(1,n))}:function(e,t,n){return e[t]=n,e},L8=C6(Function.toString);L6(i8.inspectSource)||(i8.inspectSource=function(e){return L8(e)});var N8,R8,B8,$8=i8.inspectSource,F8=d6.WeakMap,z8=L6(F8)&&/native code/.test($8(F8)),q8=o8("keys"),U8=function(e){return q8[e]||(q8[e]=h8(e))},H8={},V8=d6.TypeError,W8=d6.WeakMap;if(z8||i8.state){var K8=i8.state||(i8.state=new W8),G8=C6(K8.get),Y8=C6(K8.has),X8=C6(K8.set);N8=function(e,t){if(Y8(K8,e))throw new V8("Object already initialized");return t.facade=e,X8(K8,e,t),t},R8=function(e){return G8(K8,e)||{}},B8=function(e){return Y8(K8,e)}}else{var Z8=U8("state");H8[Z8]=!0,N8=function(e,t){if(u8(e,Z8))throw new V8("Object already initialized");return t.facade=e,j8(e,Z8,t),t},R8=function(e){return u8(e,Z8)?e[Z8]:{}},B8=function(e){return u8(e,Z8)}}var Q8={set:N8,get:R8,has:B8,enforce:function(e){return B8(e)?R8(e):N8(e,{})},getterFor:function(e){return function(t){var n;if(!N6(t)||(n=R8(t)).type!==e)throw V8("Incompatible receiver, "+e+" required");return n}}},J8=Function.prototype,e7=p6&&Object.getOwnPropertyDescriptor,t7=u8(J8,"name"),n7={EXISTS:t7,PROPER:t7&&"something"===function(){}.name,CONFIGURABLE:t7&&(!p6||p6&&e7(J8,"name").configurable)},r7=l6((function(e){var t=n7.CONFIGURABLE,n=Q8.get,r=Q8.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;L6(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!u8(o,"name")||t&&o.name!==f)&&j8(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==d6?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:j8(e,n,o)):u?e[n]=o:r8(n,o)})(Function.prototype,"toString",(function(){return L6(this)&&n(this).source||$8(this)}))})),i7=Math.ceil,o7=Math.floor,a7=function(e){var t=+e;return t!=t||0===t?0:(t>0?o7:i7)(t)},s7=Math.max,l7=Math.min,u7=function(e,t){var n=a7(e);return n<0?s7(n+t,0):l7(n,t)},c7=Math.min,f7=function(e){return e>0?c7(a7(e),9007199254740991):0},d7=function(e){return f7(e.length)},h7=function(e){return function(t,n,r){var i,o=j6(t),a=d7(o),s=u7(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},p7={includes:h7(!0),indexOf:h7(!1)},g7=p7.indexOf,m7=C6([].push),v7=function(e,t){var n,r=j6(e),i=0,o=[];for(n in r)!u8(H8,n)&&u8(r,n)&&m7(o,n);for(;t.length>i;)u8(r,n=t[i++])&&(~g7(o,n)||m7(o,n));return o},y7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b7=y7.concat("length","prototype"),_7={f:Object.getOwnPropertyNames||function(e){return v7(e,b7)}},w7={f:Object.getOwnPropertySymbols},x7=C6([].concat),O7=B6("Reflect","ownKeys")||function(e){var t=_7.f(D8(e)),n=w7.f;return n?x7(t,n(e)):t},S7=function(e,t){for(var n=O7(t),r=I8.f,i=E8.f,o=0;o<n.length;o++){var a=n[o];u8(e,a)||r(e,a,i(t,a))}},C7=/#|\.prototype\./,k7=function(e,t){var n=A7[E7(e)];return n==D7||n!=T7&&(L6(t)?h6(t):!!t)},E7=k7.normalize=function(e){return String(e).replace(C7,".").toLowerCase()},A7=k7.data={},T7=k7.NATIVE="N",D7=k7.POLYFILL="P",M7=k7,P7=E8.f,I7=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?d6:u?d6[s]||r8(s,{}):(d6[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=P7(n,r))&&a.value:n[r],!M7(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;S7(o,i)}(e.sham||i&&i.sham)&&j8(o,"sham",!0),r7(n,r,o,e)}},j7={};j7[y8("toStringTag")]="z";var L7="[object z]"===String(j7),N7=y8("toStringTag"),R7=d6.Object,B7="Arguments"==A6(function(){return arguments}()),$7=L7?A6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=R7(e),N7))?n:B7?A6(t):"Object"==(r=A6(t))&&L6(t.callee)?"Arguments":r},F7=d6.String,z7=function(e){if("Symbol"===$7(e))throw TypeError("Cannot convert a Symbol value to a string");return F7(e)},q7="\t\n\v\f\r                　\u2028\u2029\ufeff",U7=C6("".replace),H7="["+q7+"]",V7=RegExp("^"+H7+H7+"*"),W7=RegExp(H7+H7+"*$"),K7=function(e){return function(t){var n=z7(I6(t));return 1&e&&(n=U7(n,V7,"")),2&e&&(n=U7(n,W7,"")),n}},G7={start:K7(1),end:K7(2),trim:K7(3)},Y7=n7.PROPER,X7=G7.trim;function Z7(e){return e.length?e[0].tagName.toLowerCase():""}function Q7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=qh(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}I7({target:"String",proto:!0,forced:h6((function(){return!!q7.trim()||"​᠎"!=="​᠎".trim()||Y7&&"trim"!==q7.trim.name}))},{trim:function(){return X7(this)}}),I7({global:!0},{globalThis:d6}),up&&(qh.fn.append=up),Xh&&(qh.fn.on=Xh),_p&&(qh.fn.focus=_p),Wh&&(qh.fn.attr=Wh),Yh&&(qh.fn.val=Yh),ap&&(qh.fn.html=ap),fp&&(qh.fn.parent=fp),Vh&&(qh.fn.hasClass=Vh),mp&&(qh.fn.empty=mp);var J7,e9={type:"video",renderElem:function(e,t,n){var r,i=e,o=i.src,a=void 0===o?"":o,s=i.poster,l=void 0===s?"":s,u=i.width,c=void 0===u?"auto":u,f=i.height,d=void 0===f?"auto":f,h=nA.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Ng("div",{className:"w-e-textarea-video-container","data-selected":h?"true":"",innerHTML:Q7(a,c,d)});else{var p=Ng("video",{poster:l,controls:!0},Ng("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉，浏览器不支持 video 视频");"auto"!==c&&(p.data.width=c),"auto"!==d&&(p.data.height=d),r=Ng("div",{className:"w-e-textarea-video-container","data-selected":h?"true":""},p)}return mg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},t9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,i=void 0===r?"":r,o=n.poster,a=void 0===o?"":o,s=n.width,l=void 0===s?"auto":s,u=n.height,c=void 0===u?"auto":u,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===i.trim().indexOf("<iframe ")?f+=Q7(i,l,c):f+='<video poster="'+a+'" controls="true" width="'+l+'" height="'+c+'"><source src="'+i+'" type="video/mp4"/></video>',f+"\n</div>"}},n9=Object.keys||function(e){return v7(e,y7)},r9=p6?Object.defineProperties:function(e,t){D8(e);for(var n,r=j6(t),i=n9(t),o=i.length,a=0;o>a;)I8.f(e,n=i[a++],r[n]);return e},i9=B6("document","documentElement"),o9=U8("IE_PROTO"),a9=function(){},s9=function(e){return"<script>"+e+"<\/script>"},l9=function(e){e.write(s9("")),e.close();var t=e.parentWindow.Object;return e=null,t},u9=function(){try{J7=new ActiveXObject("htmlfile")}catch(e){}var e,t;u9="undefined"!=typeof document?document.domain&&J7?l9(J7):((t=S8("iframe")).style.display="none",i9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(s9("document.F=Object")),e.close(),e.F):l9(J7);for(var n=y7.length;n--;)delete u9.prototype[y7[n]];return u9()};H8[o9]=!0;var c9=Object.create||function(e,t){var n;return null!==e?(a9.prototype=D8(e),n=new a9,a9.prototype=null,n[o9]=e):n=u9(),void 0===t?n:r9(n,t)},f9=y8("unscopables"),d9=Array.prototype;null==d9[f9]&&I8.f(d9,f9,{configurable:!0,value:c9(null)});var h9=function(e){d9[f9][e]=!0},p9=p7.includes;I7({target:"Array",proto:!0},{includes:function(e){return p9(this,e,arguments.length>1?arguments[1]:void 0)}}),h9("includes");var g9={selector:"iframe,video,p",preParseHtml:function(e){var t=qh(e),n=t;if("p"===Z7(t)){var r=t.children();if(1===r.length){var i=r[0],o=i.tagName.toLowerCase();["iframe","video"].includes(o)&&(n=qh(i))}}var a=Z7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=qh('<div data-w-e-type="video" data-w-e-is-void></div>');return s.append(n),s[0]}},m9=C6(C6.bind),v9=function(e,t){return J6(e),void 0===t?e:m9?m9(e,t):function(){return e.apply(t,arguments)}},y9=Array.isArray||function(e){return"Array"==A6(e)},b9=function(){},_9=[],w9=B6("Reflect","construct"),x9=/^\s*(?:class|function)\b/,O9=C6(x9.exec),S9=!x9.exec(b9),C9=function(e){if(!L6(e))return!1;try{return w9(b9,_9,e),!0}catch(e){return!1}},k9=!w9||h6((function(){var e;return C9(C9.call)||!C9(Object)||!C9((function(){e=!0}))||e}))?function(e){if(!L6(e))return!1;switch($7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return S9||!!O9(x9,$8(e))}:C9,E9=y8("species"),A9=d6.Array,T9=function(e,t){return new(function(e){var t;return y9(e)&&(t=e.constructor,(k9(t)&&(t===A9||y9(t.prototype))||N6(t)&&null===(t=t[E9]))&&(t=void 0)),void 0===t?A9:t}(e))(0===t?0:t)},D9=C6([].push),M9=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=s8(l),g=M6(p),m=v9(u,c),v=d7(g),y=0,b=f||T9,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:D9(_,d)}else switch(e){case 4:return!1;case 7:D9(_,d)}return o?-1:r||i?i:_}},P9={forEach:M9(0),map:M9(1),filter:M9(2),some:M9(3),every:M9(4),find:M9(5),findIndex:M9(6),filterReject:M9(7)},I9=P9.find,j9=!0;"find"in[]&&Array(1).find((function(){j9=!1})),I7({target:"Array",proto:!0,forced:j9},{find:function(e){return I9(this,e,arguments.length>1?arguments[1]:void 0)}}),h9("find");var L9=L7?{}.toString:function(){return"[object "+$7(this)+"]"};function N9(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}L7||r7(Object.prototype,"toString",L9,{unsafe:!0});var R9,B9,$9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=qh(e),i="",o="",a="auto",s="auto",l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",s=l.attr("height")||"auto",N9(i=l[0].outerHTML,o,a,s);var u=r.find("video");return(i=u.attr("src")||"")||u.length>0&&(i=u.find("source").attr("src")||""),a=u.attr("width")||"auto",s=u.attr("height")||"auto",N9(i,o=u.attr("poster")||"",a,s)}},F9=function(){var e=D8(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},z9=d6.RegExp,q9=h6((function(){var e=z9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),U9=q9||h6((function(){return!z9("a","y").sticky})),H9={BROKEN_CARET:q9||h6((function(){var e=z9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:U9,UNSUPPORTED_Y:q9},V9=d6.RegExp,W9=h6((function(){var e=V9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),K9=d6.RegExp,G9=h6((function(){var e=K9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Y9=Q8.get,X9=o8("native-string-replace",String.prototype.replace),Z9=RegExp.prototype.exec,Q9=Z9,J9=C6("".charAt),eee=C6("".indexOf),tee=C6("".replace),nee=C6("".slice),ree=(B9=/b*/g,m6(Z9,R9=/a/,"a"),m6(Z9,B9,"a"),0!==R9.lastIndex||0!==B9.lastIndex),iee=H9.BROKEN_CARET,oee=void 0!==/()??/.exec("")[1];(ree||oee||iee||W9||G9)&&(Q9=function(e){var t,n,r,i,o,a,s,l=this,u=Y9(l),c=z7(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=m6(Q9,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=iee&&l.sticky,p=m6(F9,l),g=l.source,m=0,v=c;if(h&&(p=tee(p,"y",""),-1===eee(p,"g")&&(p+="g"),v=nee(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==J9(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),oee&&(n=new RegExp("^"+g+"$(?!\\s)",p)),ree&&(r=l.lastIndex),i=m6(Z9,h?n:l,v),h?i?(i.input=nee(i.input,m),i[0]=nee(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:ree&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),oee&&i&&i.length>1&&m6(X9,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=c9(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var aee=Q9;I7({target:"RegExp",proto:!0,forced:/./.exec!==aee},{exec:aee});var see=Function.prototype,lee=see.apply,uee=see.bind,cee=see.call,fee="object"==typeof Reflect&&Reflect.apply||(uee?cee.bind(lee):function(){return cee.apply(lee,arguments)}),dee=(y8("species"),RegExp.prototype),hee=C6("".charAt),pee=C6("".charCodeAt),gee=C6("".slice),mee=function(e){return function(t,n){var r,i,o=z7(I6(t)),a=a7(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=pee(o,a))<55296||r>56319||a+1===s||(i=pee(o,a+1))<56320||i>57343?e?hee(o,a):r:e?gee(o,a,a+2):i-56320+(r-55296<<10)+65536}},vee={codeAt:mee(!1),charAt:mee(!0)},yee=vee.charAt,bee=function(e,t,n){return t+(n?yee(e,t).length:1)},_ee=Math.floor,wee=C6("".charAt),xee=C6("".replace),Oee=C6("".slice),See=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Cee=/\$([$&'`]|\d{1,2})/g,kee=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,l=Cee;return void 0!==i&&(i=s8(i),l=See),xee(o,l,(function(o,l){var u;switch(wee(l,0)){case"$":return"$";case"&":return e;case"`":return Oee(t,0,n);case"'":return Oee(t,a);case"<":u=i[Oee(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>s){var f=_ee(c/10);return 0===f?o:f<=s?void 0===r[f-1]?wee(l,1):r[f-1]+wee(l,1):o}u=r[c-1]}return void 0===u?"":u}))},Eee=d6.TypeError,Aee=function(e,t){var n=e.exec;if(L6(n)){var r=m6(n,e,t);return null!==r&&D8(r),r}if("RegExp"===A6(e))return m6(aee,e,t);throw Eee("RegExp#exec called on incompatible receiver")},Tee=y8("replace"),Dee=Math.max,Mee=Math.min,Pee=C6([].concat),Iee=C6([].push),jee=C6("".indexOf),Lee=C6("".slice),Nee="$0"==="a".replace(/./,"$0"),Ree=!!/./[Tee]&&""===/./[Tee]("a","$0");function Bee(e){return void 0===e&&(e="r"),e+"-"+zp()}!function(e,t,n,r){var i=y8(e),o=!h6((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!h6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](""),!e}));if(!o||!a||n){var s=C6(/./[i]),l=function(e,t,n){var r=Ree?"$":"$0";return[function(e,n){var r=I6(this),i=null==e?void 0:e8(e,Tee);return i?m6(i,e,r,n):m6(t,z7(r),e,n)},function(e,i){var o=D8(this),a=z7(e);if("string"==typeof i&&-1===jee(i,r)&&-1===jee(i,"$<")){var s=n(t,o,a,i);if(s.done)return s.value}var l=L6(i);l||(i=z7(i));var u=o.global;if(u){var c=o.unicode;o.lastIndex=0}for(var f=[];;){var d=Aee(o,a);if(null===d)break;if(Iee(f,d),!u)break;""===z7(d[0])&&(o.lastIndex=bee(a,f7(o.lastIndex),c))}for(var h,p="",g=0,m=0;m<f.length;m++){for(var v=z7((d=f[m])[0]),y=Dee(Mee(a7(d.index),a.length),0),b=[],_=1;_<d.length;_++)Iee(b,void 0===(h=d[_])?h:String(h));var w=d.groups;if(l){var x=Pee([v],b,y,a);void 0!==w&&Iee(x,w);var O=z7(fee(i,void 0,x))}else O=kee(v,a,y,b,w,i);y>=g&&(p+=Lee(a,g,y)+O,g=y+v.length)}return p+Lee(a,g)}]}(0,""[e],(function(e,t,n,r,i){var a=C6(e),l=t.exec;return l===aee||l===dee.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));r7(String.prototype,e,l[0]),r7(dee,i,l[1])}}("replace",0,!!h6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Nee||Ree);var $ee=d6.Promise,Fee=function(e,t,n){for(var r in t)r7(e,r,t[r],n);return e},zee=d6.String,qee=d6.TypeError,Uee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=C6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return D8(n),function(e){if("object"==typeof e||L6(e))return e;throw qee("Can't set "+zee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Hee=I8.f,Vee=y8("toStringTag"),Wee=function(e,t,n){e&&!u8(e=n?e:e.prototype,Vee)&&Hee(e,Vee,{configurable:!0,value:t})},Kee=y8("species"),Gee=d6.TypeError,Yee=function(e,t){if($6(t,e))return e;throw Gee("Incorrect invocation")},Xee={},Zee=y8("iterator"),Qee=Array.prototype,Jee=y8("iterator"),ete=function(e){if(null!=e)return e8(e,Jee)||e8(e,"@@iterator")||Xee[$7(e)]},tte=d6.TypeError,nte=function(e,t,n){var r,i;D8(e);try{if(!(r=e8(e,"return"))){if("throw"===t)throw n;return n}r=m6(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return D8(r),n},rte=d6.TypeError,ite=function(e,t){this.stopped=e,this.result=t},ote=ite.prototype,ate=function(e,t,n){var r,i,o,a,s,l,u,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=v9(t,f),m=function(e){return r&&nte(r,"normal",e),new ite(!0,e)},v=function(e){return d?(D8(e),p?g(e[0],e[1],m):g(e[0],e[1])):p?g(e,m):g(e)};if(h)r=e;else{if(!(i=ete(e)))throw rte(Z6(e)+" is not iterable");if(void 0!==(c=i)&&(Xee.Array===c||Qee[Zee]===c)){for(o=0,a=d7(e);a>o;o++)if((s=v(e[o]))&&$6(ote,s))return s;return new ite(!1)}r=function(e,t){var n=arguments.length<2?ete(e):t;if(J6(n))return D8(m6(n,e));throw tte(Z6(e)+" is not iterable")}(e,i)}for(l=r.next;!(u=m6(l,r)).done;){try{s=v(u.value)}catch(e){nte(r,"throw",e)}if("object"==typeof s&&s&&$6(ote,s))return s}return new ite(!1)},ste=y8("iterator"),lte=!1;try{var ute=0,cte={next:function(){return{done:!!ute++}},return:function(){lte=!0}};cte[ste]=function(){return this},Array.from(cte,(function(){throw 2}))}catch(qu){}var fte,dte,hte,pte,gte=function(e,t){if(!t&&!lte)return!1;var n=!1;try{var r={};r[ste]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},mte=d6.TypeError,vte=y8("species"),yte=C6([].slice),bte=/(?:ipad|iphone|ipod).*applewebkit/i.test(F6),_te="process"==A6(d6.process),wte=d6.setImmediate,xte=d6.clearImmediate,Ote=d6.process,Ste=d6.Dispatch,Cte=d6.Function,kte=d6.MessageChannel,Ete=d6.String,Ate=0,Tte={};try{fte=d6.location}catch(qu){}var Dte=function(e){if(u8(Tte,e)){var t=Tte[e];delete Tte[e],t()}},Mte=function(e){return function(){Dte(e)}},Pte=function(e){Dte(e.data)},Ite=function(e){d6.postMessage(Ete(e),fte.protocol+"//"+fte.host)};wte&&xte||(wte=function(e){var t=yte(arguments,1);return Tte[++Ate]=function(){fee(L6(e)?e:Cte(e),void 0,t)},dte(Ate),Ate},xte=function(e){delete Tte[e]},_te?dte=function(e){Ote.nextTick(Mte(e))}:Ste&&Ste.now?dte=function(e){Ste.now(Mte(e))}:kte&&!bte?(pte=(hte=new kte).port2,hte.port1.onmessage=Pte,dte=v9(pte.postMessage,pte)):d6.addEventListener&&L6(d6.postMessage)&&!d6.importScripts&&fte&&"file:"!==fte.protocol&&!h6(Ite)?(dte=Ite,d6.addEventListener("message",Pte,!1)):dte="onreadystatechange"in S8("script")?function(e){i9.appendChild(S8("script")).onreadystatechange=function(){i9.removeChild(this),Dte(e)}}:function(e){setTimeout(Mte(e),0)});var jte,Lte,Nte,Rte,Bte,$te,Fte,zte,qte={set:wte,clear:xte},Ute=/ipad|iphone|ipod/i.test(F6)&&void 0!==d6.Pebble,Hte=/web0s(?!.*chrome)/i.test(F6),Vte=E8.f,Wte=qte.set,Kte=d6.MutationObserver||d6.WebKitMutationObserver,Gte=d6.document,Yte=d6.process,Xte=d6.Promise,Zte=Vte(d6,"queueMicrotask"),Qte=Zte&&Zte.value;Qte||(jte=function(){var e,t;for(_te&&(e=Yte.domain)&&e.exit();Lte;){t=Lte.fn,Lte=Lte.next;try{t()}catch(e){throw Lte?Rte():Nte=void 0,e}}Nte=void 0,e&&e.enter()},bte||_te||Hte||!Kte||!Gte?!Ute&&Xte&&Xte.resolve?((Fte=Xte.resolve(void 0)).constructor=Xte,zte=v9(Fte.then,Fte),Rte=function(){zte(jte)}):_te?Rte=function(){Yte.nextTick(jte)}:(Wte=v9(Wte,d6),Rte=function(){Wte(jte)}):(Bte=!0,$te=Gte.createTextNode(""),new Kte(jte).observe($te,{characterData:!0}),Rte=function(){$te.data=Bte=!Bte}));var Jte,ene,tne,nne,rne=Qte||function(e){var t={fn:e,next:void 0};Nte&&(Nte.next=t),Lte||(Lte=t,Rte()),Nte=t},ine=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=J6(t),this.reject=J6(n)},one={f:function(e){return new ine(e)}},ane=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},sne="object"==typeof window,lne=qte.set,une=y8("species"),cne="Promise",fne=Q8.getterFor(cne),dne=Q8.set,hne=Q8.getterFor(cne),pne=$ee&&$ee.prototype,gne=$ee,mne=pne,vne=d6.TypeError,yne=d6.document,bne=d6.process,_ne=one.f,wne=_ne,xne=!!(yne&&yne.createEvent&&d6.dispatchEvent),One=L6(d6.PromiseRejectionEvent),Sne=!1,Cne=M7(cne,(function(){var e=$8(gne),t=e!==String(gne);if(!t&&66===V6)return!0;if(V6>=51&&/native code/.test(e))return!1;var n=new gne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[une]=r,!(Sne=n.then((function(){}))instanceof r)||!t&&sne&&!One})),kne=Cne||!gte((function(e){gne.all(e).catch((function(){}))})),Ene=function(e){var t;return!(!N6(e)||!L6(t=e.then))&&t},Ane=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;rne((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{c?(i||(2===e.rejection&&Pne(e),e.rejection=1),!0===c?a=r:(h&&h.enter(),a=c(r),h&&(h.exit(),l=!0)),a===u.promise?d(vne("Promise-chain cycle")):(s=Ene(a))?m6(s,a,f,d):f(a)):d(r)}catch(e){h&&!l&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Dne(e)}))}},Tne=function(e,t,n){var r,i;xne?((r=yne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),d6.dispatchEvent(r)):r={promise:t,reason:n},!One&&(i=d6["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=d6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Dne=function(e){m6(lne,d6,(function(){var t,n=e.facade,r=e.value;if(Mne(e)&&(t=ane((function(){_te?bne.emit("unhandledRejection",r,n):Tne("unhandledrejection",n,r)})),e.rejection=_te||Mne(e)?2:1,t.error))throw t.value}))},Mne=function(e){return 1!==e.rejection&&!e.parent},Pne=function(e){m6(lne,d6,(function(){var t=e.facade;_te?bne.emit("rejectionHandled",t):Tne("rejectionhandled",t,e.value)}))},Ine=function(e,t,n){return function(r){e(t,r,n)}},jne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ane(e,!0))},Lne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw vne("Promise can't be resolved itself");var r=Ene(t);r?rne((function(){var n={done:!1};try{m6(r,t,Ine(Lne,n,e),Ine(jne,n,e))}catch(t){jne(n,t,e)}})):(e.value=t,e.state=1,Ane(e,!1))}catch(t){jne({done:!1},t,e)}}};if(Cne&&(mne=(gne=function(e){Yee(this,mne),J6(e),m6(Jte,this);var t=fne(this);try{e(Ine(Lne,t),Ine(jne,t))}catch(e){jne(t,e)}}).prototype,(Jte=function(e){dne(this,{type:cne,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Fee(mne,{then:function(e,t){var n=hne(this),r=n.reactions,i=_ne(function(e,t){var n,r=D8(e).constructor;return void 0===r||null==(n=D8(r)[vte])?t:function(e){if(k9(e))return e;throw mte(Z6(e)+" is not a constructor")}(n)}(this,gne));return i.ok=!L6(e)||e,i.fail=L6(t)&&t,i.domain=_te?bne.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&Ane(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),ene=function(){var e=new Jte,t=fne(e);this.promise=e,this.resolve=Ine(Lne,t),this.reject=Ine(jne,t)},one.f=_ne=function(e){return e===gne||e===tne?new ene(e):wne(e)},L6($ee)&&pne!==Object.prototype)){nne=pne.then,Sne||(r7(pne,"then",(function(e,t){var n=this;return new gne((function(e,t){m6(nne,n,e,t)})).then(e,t)}),{unsafe:!0}),r7(pne,"catch",mne.catch,{unsafe:!0}));try{delete pne.constructor}catch(qu){}Uee&&Uee(pne,mne)}function Nne(e,t,n){return void 0===n&&(n=""),r6(this,void 0,void 0,(function(){var r,i,o,a,s,l,u;return i6(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),i=r.onInsertedVideo,o=r.checkVideo,a=r.parseVideoSrc,[4,o(t,n)]):[2];case 1:return"string"==typeof(s=c.sent())?(e.alert(s,"error"),[2]):null==s?[2]:[4,a(t)];case 2:return 0!==(l=c.sent()).trim().indexOf("<iframe ")&&(l=l.replace(/</g,"&lt;").replace(/>/g,"&gt;")),u={type:"video",src:l,poster:n,children:[{text:""}]},Promise.resolve().then((function(){wd.insertNodes(e,u)})),i(u),[2]}}))}))}function Rne(){return Bee("w-e-insert-video")}I7({global:!0,wrap:!0,forced:Cne},{Promise:gne}),Wee(gne,cne,!1),function(e){var t=B6("Promise"),n=I8.f;p6&&t&&!t[Kee]&&n(t,Kee,{configurable:!0,get:function(){return this}})}(),tne=B6(cne),I7({target:cne,stat:!0,forced:Cne},{reject:function(e){var t=_ne(this);return m6(t.reject,void 0,e),t.promise}}),I7({target:cne,stat:!0,forced:Cne},{resolve:function(e){return function(e,t){if(D8(e),N6(t)&&t.constructor===e)return t;var n=one.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),I7({target:cne,stat:!0,forced:kne},{all:function(e){var t=this,n=_ne(t),r=n.resolve,i=n.reject,o=ane((function(){var n=J6(t.resolve),o=[],a=0,s=1;ate(e,(function(e){var l=a++,u=!1;s++,m6(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=_ne(t),r=n.reject,i=ane((function(){var i=J6(t.resolve);ate(e,(function(e){m6(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Bne=function(){function e(){this.title=VI("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Rne(),this.posterInputId=Rne(),this.buttonId=Rne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||!!nA.getSelectedElems(e).some((function(t){var n=nA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.posterInputId,o=n.buttonId,a=o6(kP(VI("videoModule.videoSrc"),r,VI("videoModule.videoSrcPlaceHolder")),2),s=a[0],l=a[1],u=o6(kP(VI("videoModule.videoPoster"),i,VI("videoModule.videoPosterPlaceHolder")),2),c=u[0],f=u[1],d=qh(l),h=qh(f),p=o6(AP(o,VI("videoModule.ok")),1)[0];if(null==this.$content){var g=qh("<div></div>");g.on("click","#"+o,(function(n){return r6(t,void 0,void 0,(function(){var t,o;return i6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),o=g.find("#"+i).val().trim(),[4,Nne(e,t,o)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(c),m.append(p),d.val(""),h.val(""),setTimeout((function(){d.focus()})),m[0]},e}(),$ne=C6([].join),Fne=M6!=Object,zne=function(e,t){var n=[].join;return!!n&&h6((function(){n.call(null,",",1)}))}();I7({target:"Array",proto:!0,forced:Fne||!zne},{join:function(e){return $ne(j6(this),void 0===e?",":e)}});var qne,Une,Hne,Vne=!h6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wne=U8("IE_PROTO"),Kne=d6.Object,Gne=Kne.prototype,Yne=Vne?Kne.getPrototypeOf:function(e){var t=s8(e);if(u8(t,Wne))return t[Wne];var n=t.constructor;return L6(n)&&t instanceof n?n.prototype:t instanceof Kne?Gne:null},Xne=y8("iterator"),Zne=!1;[].keys&&("next"in(Hne=[].keys())?(Une=Yne(Yne(Hne)))!==Object.prototype&&(qne=Une):Zne=!0);var Qne=null==qne||h6((function(){var e={};return qne[Xne].call(e)!==e}));Qne&&(qne={}),L6(qne[Xne])||r7(qne,Xne,(function(){return this}));var Jne={IteratorPrototype:qne,BUGGY_SAFARI_ITERATORS:Zne},ere=Jne.IteratorPrototype,tre=function(){return this},nre=n7.PROPER,rre=n7.CONFIGURABLE,ire=Jne.IteratorPrototype,ore=Jne.BUGGY_SAFARI_ITERATORS,are=y8("iterator"),sre=function(){return this},lre=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=c9(ere,{next:_6(1,n)}),Wee(e,i,!1),Xee[i]=tre}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!ore&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[are]||h["@@iterator"]||i&&h[i],g=!ore&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=Yne(m.call(new e)))!==Object.prototype&&s.next&&(Yne(s)!==ire&&(Uee?Uee(s,ire):L6(s[are])||r7(s,are,sre)),Wee(s,f,!0)),nre&&"values"==i&&p&&"values"!==p.name&&(rre?j8(h,"name","values"):(d=!0,g=function(){return m6(p,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(ore||d||!(u in h))&&r7(h,u,l[u]);else I7({target:t,proto:!0,forced:ore||d},l);return h[are]!==g&&r7(h,are,g,{name:i}),Xee[t]=g,l},ure=Q8.set,cre=Q8.getterFor("Array Iterator"),fre=lre(Array,"Array",(function(e,t){ure(this,{type:"Array Iterator",target:j6(e),index:0,kind:t})}),(function(){var e=cre(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Xee.Arguments=Xee.Array,h9("keys"),h9("values"),h9("entries");var dre=vee.charAt,hre=Q8.set,pre=Q8.getterFor("String Iterator");lre(String,"String",(function(e){hre(this,{type:"String Iterator",string:z7(e),index:0})}),(function(){var e,t=pre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dre(n,r),t.index+=e.length,{value:e,done:!1})}));var gre=function(e,t,n){var r=w8(t);r in e?I8.f(e,r,_6(0,n)):e[r]=n},mre=d6.Array,vre=Math.max,yre=_7.f,bre="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_re={f:function(e){return bre&&"Window"==A6(e)?function(e){try{return yre(e)}catch(e){return function(e,t,n){for(var r=d7(e),i=u7(void 0,r),o=u7(r,r),a=mre(vre(o-i,0)),s=0;i<o;i++,s++)gre(a,s,e[i]);return a.length=s,a}(bre)}}(e):yre(j6(e))}},wre=h6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xre=Object.isExtensible,Ore=h6((function(){xre(1)}))||wre?function(e){return!!N6(e)&&(!wre||"ArrayBuffer"!=A6(e))&&(!xre||xre(e))}:xre,Sre=!h6((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cre=l6((function(e){var t=I8.f,n=!1,r=h8("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=_7.f,t=C6([].splice),i={};i[r]=1,e(i).length&&(_7.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t(i,o,1);break}return i},I7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_re.f}))},fastKey:function(e,t){if(!N6(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u8(e,r)){if(!Ore(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!u8(e,r)){if(!Ore(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return Sre&&n&&Ore(e)&&!u8(e,r)&&o(e),e}};H8[r]=!0})),kre=Cre.getWeakData,Ere=Q8.set,Are=Q8.getterFor,Tre=P9.find,Dre=P9.findIndex,Mre=C6([].splice),Pre=0,Ire=function(e){return e.frozen||(e.frozen=new jre)},jre=function(){this.entries=[]},Lre=function(e,t){return Tre(e.entries,(function(e){return e[0]===t}))};jre.prototype={get:function(e){var t=Lre(this,e);if(t)return t[1]},has:function(e){return!!Lre(this,e)},set:function(e,t){var n=Lre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dre(this.entries,(function(t){return t[0]===e}));return~t&&Mre(this.entries,t,1),!!~t}};var Nre,Rre={getConstructor:function(e,t,n,r){var i=e((function(e,i){Yee(e,o),Ere(e,{type:t,id:Pre++,frozen:void 0}),null!=i&&ate(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=Are(t),s=function(e,t,n){var r=a(e),i=kre(D8(t),!0);return!0===i?Ire(r).set(t,n):i[r.id]=n,e};return Fee(o,{delete:function(e){var t=a(this);if(!N6(e))return!1;var n=kre(e);return!0===n?Ire(t).delete(e):n&&u8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!N6(e))return!1;var n=kre(e);return!0===n?Ire(t).has(e):n&&u8(n,t.id)}}),Fee(o,n?{get:function(e){var t=a(this);if(N6(e)){var n=kre(e);return!0===n?Ire(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},Bre=Q8.enforce,$re=!d6.ActiveXObject&&"ActiveXObject"in d6,Fre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zre=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=d6[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=C6(s[e]);r7(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!N6(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!N6(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!N6(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(M7(e,!L6(a)||!(i||s.forEach&&!h6((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,o),Cre.enable();else if(M7(e,!0)){var f=new l,d=f[o](i?{}:-0,1)!=f,h=h6((function(){f.has(1)})),p=gte((function(e){new a(e)})),g=!i&&h6((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((l=t((function(e,t){Yee(e,s);var n=function(e,t,n){var r,i;return Uee&&L6(r=t.constructor)&&r!==n&&N6(i=r.prototype)&&i!==n.prototype&&Uee(e,i),e}(new a,e,l);return null!=t&&ate(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,I7({global:!0,forced:l!=a},u),Wee(l,e),i||n.setStrong(l,e,r),l}("WeakMap",Fre,Rre);if(z8&&$re){Nre=Rre.getConstructor(Fre,"WeakMap",!0),Cre.enable();var qre=zre.prototype,Ure=C6(qre.delete),Hre=C6(qre.has),Vre=C6(qre.get),Wre=C6(qre.set);Fee(qre,{delete:function(e){if(N6(e)&&!Ore(e)){var t=Bre(this);return t.frozen||(t.frozen=new Nre),Ure(this,e)||t.frozen.delete(e)}return Ure(this,e)},has:function(e){if(N6(e)&&!Ore(e)){var t=Bre(this);return t.frozen||(t.frozen=new Nre),Hre(this,e)||t.frozen.has(e)}return Hre(this,e)},get:function(e){if(N6(e)&&!Ore(e)){var t=Bre(this);return t.frozen||(t.frozen=new Nre),Hre(this,e)?Vre(this,e):t.frozen.get(e)}return Vre(this,e)},set:function(e,t){if(N6(e)&&!Ore(e)){var n=Bre(this);n.frozen||(n.frozen=new Nre),Hre(this,e)?Wre(this,e,t):n.frozen.set(e,t)}else Wre(this,e,t);return this}})}var Kre={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},Gre=S8("span").classList,Yre=Gre&&Gre.constructor&&Gre.constructor.prototype,Xre=Yre===Object.prototype?void 0:Yre,Zre=y8("iterator"),Qre=y8("toStringTag"),Jre=fre.values,eie=function(e,t){if(e){if(e[Zre]!==Jre)try{j8(e,Zre,Jre)}catch(t){e[Zre]=Jre}if(e[Qre]||j8(e,Qre,t),Kre[t])for(var n in fre)if(e[n]!==fre[n])try{j8(e,n,fre[n])}catch(t){e[n]=fre[n]}}};for(var tie in Kre)eie(d6[tie]&&d6[tie].prototype,tie);eie(Xre,"DOMTokenList");var nie=n7.EXISTS,rie=I8.f,iie=Function.prototype,oie=C6(iie.toString),aie=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sie=C6(aie.exec);p6&&!nie&&rie(iie,"name",{configurable:!0,get:function(){try{return sie(aie,oie(this))[1]}catch(r){return""}}});var lie=y8("species"),uie=V6>=51||!h6((function(){var e=[];return(e.constructor={})[lie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),cie=y8("species"),fie=d6.Array,die=Math.max;function hie(e){return e.getMenuConfig("uploadVideo")}I7({target:"Array",proto:!0,forced:!uie},{slice:function(e,t){var n,r,i,o=j6(this),a=d7(o),s=u7(e,a),l=u7(void 0===t?a:t,a);if(y9(o)&&(n=o.constructor,(k9(n)&&(n===fie||y9(n.prototype))||N6(n)&&null===(n=n[cie]))&&(n=void 0),n===fie||void 0===n))return yte(o,s,l);for(r=new(void 0===n?fie:n)(die(l-s,0)),i=0;s<l;s++,i++)s in o&&gre(r,i,o[s]);return r.length=i,r}});var pie=new WeakMap;function gie(e,t){return r6(this,void 0,void 0,(function(){var n,r,i,o;return i6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=pie.get(e);if(null!=t)return t;var n=hie(e),r=n.onSuccess,i=n.onProgress,o=n.onFailed,a=n.customInsert,s=n.onError;return t=ZP(n6(n6({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Nne(e,t,n)})),void r(t,n);var i=n.errno,s=void 0===i?1:i,l=n.data,u=void 0===l?{}:l;if(0===s){var c=u.url,f=void 0===c?"":c,d=u.poster;Nne(e,f,void 0===d?"":d),r(t,n)}else o(t,n)},onError:function(e,t,n){s(e,t,n)}})),pie.set(e,t),t}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var mie=function(){function e(){this.title=VI("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=void 0===r?[]:r,o=n.customBrowseAndUpload;if(o)o((function(t,n){return Nne(e,t,n)}));else{var a="";i.length>0&&(a='accept="'+i.join(", ")+'"');var s=qh("body"),l=qh('<input type="file" '+a+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var t=l[0].files;!function(e,t){var n,r;r6(this,void 0,void 0,(function(){var i,o,a,s,l,u;return i6(this,(function(c){switch(c.label){case 0:if(null==t)return[2];i=Array.prototype.slice.call(t),o=hie(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=a6(i),c.label=2;case 2:return[4,a.next()];case 3:return(s=c.sent()).done?[3,8]:(l=s.value,o?[4,o(l,(function(t,n){return Nne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,gie(e,l)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return u=c.sent(),n={error:u},[3,15];case 10:return c.trys.push([10,,13,14]),s&&!s.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||!!nA.getSelectedElems(e).some((function(t){var n=nA.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),vie=n7.PROPER,yie=RegExp.prototype,bie=yie.toString,_ie=C6(F9),wie=h6((function(){return"/a/b"!=bie.call({source:"a",flags:"b"})})),xie=vie&&"toString"!=bie.name;function Oie(){return Bee("w-e-insert-video")}(wie||xie)&&r7(RegExp.prototype,"toString",(function(){var e=D8(this),t=z7(e.source),n=e.flags;return"/"+t+"/"+z7(void 0===n&&$6(yie,e)&&!("flags"in yie)?_ie(e):n)}),{unsafe:!0});var Sie=function(){function e(){this.title=VI("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Oie(),this.heightInputId=Oie(),this.buttonId=Oie()}return e.prototype.getSelectedVideoNode=function(e){return nA.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,i=t.buttonId,o=o6(kP(VI("videoModule.width"),n,"auto"),2),a=o[0],s=qh(o[1]),l=o6(kP(VI("videoModule.height"),r,"auto"),2),u=l[0],c=qh(l[1]),f=o6(AP(i,VI("videoModule.ok")),1)[0];if(null==this.$content){var d=qh("<div></div>");d.on("click","#"+i,(function(t){t.preventDefault();var i=d.find("#"+n).val().trim(),o=d.find("#"+r).val().trim(),a=parseInt(i),s=parseInt(o),l=a?a.toString():"auto",u=s?s.toString():"auto";e.restoreSelection(),wd.setNodes(e,{width:l,height:u},{match:function(e){return nA.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var h=this.$content;h.empty(),h.append(a),h.append(u),h.append(f);var p=this.getSelectedVideoNode(e);if(null==p)return h[0];var g=p.width,m=void 0===g?"auto":g,v=p.height,y=void 0===v?"auto":v;return s.val(m),c.val(y),setTimeout((function(){s.focus()})),h[0]},e}(),Cie={renderElems:[e9],elemsToHtml:[t9],preParseHtml:[g9],parseElemsHtml:[$9],menus:[{key:"insertVideo",factory:function(){return new Bne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new mie},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Sie}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=o6(e,2),i=t[0],o=t[1];return"video"===nA.getNodeType(i)&&nA.isLastNode(r,i)&&wd.insertNodes(r,nA.genEmptyParagraph(),{at:[o[0]+1]}),n([i,o])},r}};qI("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qI("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var kie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Eie(e){var t={exports:{}};return e(t,t.exports),t.exports}var Aie,Tie,Die=function(e){return e&&e.Math==Math&&e},Mie=Die("object"==typeof globalThis&&globalThis)||Die("object"==typeof window&&window)||Die("object"==typeof self&&self)||Die("object"==typeof kie&&kie)||function(){return this}()||Function("return this")(),Pie=function(e){try{return!!e()}catch(e){return!0}},Iie=!Pie((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),jie=Function.prototype.call,Lie=jie.bind?jie.bind(jie):function(){return jie.apply(jie,arguments)},Nie={}.propertyIsEnumerable,Rie=Object.getOwnPropertyDescriptor,Bie={f:Rie&&!Nie.call({1:2},1)?function(e){var t=Rie(this,e);return!!t&&t.enumerable}:Nie},$ie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Fie=Function.prototype,zie=Fie.bind,qie=Fie.call,Uie=zie&&zie.bind(qie),Hie=zie?function(e){return e&&Uie(qie,e)}:function(e){return e&&function(){return qie.apply(e,arguments)}},Vie=Hie({}.toString),Wie=Hie("".slice),Kie=function(e){return Wie(Vie(e),8,-1)},Gie=Mie.Object,Yie=Hie("".split),Xie=Pie((function(){return!Gie("z").propertyIsEnumerable(0)}))?function(e){return"String"==Kie(e)?Yie(e,""):Gie(e)}:Gie,Zie=Mie.TypeError,Qie=function(e){if(null==e)throw Zie("Can't call method on "+e);return e},Jie=function(e){return Xie(Qie(e))},eoe=function(e){return"function"==typeof e},toe=function(e){return"object"==typeof e?null!==e:eoe(e)},noe=function(e){return eoe(e)?e:void 0},roe=function(e,t){return arguments.length<2?noe(Mie[e]):Mie[e]&&Mie[e][t]},ioe=Hie({}.isPrototypeOf),ooe=roe("navigator","userAgent")||"",aoe=Mie.process,soe=Mie.Deno,loe=aoe&&aoe.versions||soe&&soe.version,uoe=loe&&loe.v8;uoe&&(Tie=(Aie=uoe.split("."))[0]>0&&Aie[0]<4?1:+(Aie[0]+Aie[1])),!Tie&&ooe&&(!(Aie=ooe.match(/Edge\/(\d+)/))||Aie[1]>=74)&&(Aie=ooe.match(/Chrome\/(\d+)/))&&(Tie=+Aie[1]);var coe=Tie,foe=!!Object.getOwnPropertySymbols&&!Pie((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&coe&&coe<41})),doe=foe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,hoe=Mie.Object,poe=doe?function(e){return"symbol"==typeof e}:function(e){var t=roe("Symbol");return eoe(t)&&ioe(t.prototype,hoe(e))},goe=Mie.String,moe=function(e){try{return goe(e)}catch(e){return"Object"}},voe=Mie.TypeError,yoe=function(e){if(eoe(e))return e;throw voe(moe(e)+" is not a function")},boe=function(e,t){var n=e[t];return null==n?void 0:yoe(n)},_oe=Mie.TypeError,woe=Object.defineProperty,xoe=function(e,t){try{woe(Mie,e,{value:t,configurable:!0,writable:!0})}catch(o){Mie[e]=t}return t},Ooe=Mie["__core-js_shared__"]||xoe("__core-js_shared__",{}),Soe=Eie((function(e){(e.exports=function(e,t){return Ooe[e]||(Ooe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Coe=Mie.Object,koe=function(e){return Coe(Qie(e))},Eoe=Hie({}.hasOwnProperty),Aoe=Object.hasOwn||function(e,t){return Eoe(koe(e),t)},Toe=0,Doe=Math.random(),Moe=Hie(1..toString),Poe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Moe(++Toe+Doe,36)},Ioe=Soe("wks"),joe=Mie.Symbol,Loe=joe&&joe.for,Noe=doe?joe:joe&&joe.withoutSetter||Poe,Roe=function(e){if(!Aoe(Ioe,e)||!foe&&"string"!=typeof Ioe[e]){var t="Symbol."+e;foe&&Aoe(joe,e)?Ioe[e]=joe[e]:Ioe[e]=doe&&Loe?Loe(t):Noe(t)}return Ioe[e]},Boe=Mie.TypeError,$oe=Roe("toPrimitive"),Foe=function(e){var t=function(e,t){if(!toe(e)||poe(e))return e;var n,r=boe(e,$oe);if(r){if(void 0===t&&(t="default"),n=Lie(r,e,t),!toe(n)||poe(n))return n;throw Boe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&eoe(n=e.toString)&&!toe(r=Lie(n,e)))return r;if(eoe(n=e.valueOf)&&!toe(r=Lie(n,e)))return r;if("string"!==t&&eoe(n=e.toString)&&!toe(r=Lie(n,e)))return r;throw _oe("Can't convert object to primitive value")}(e,t)}(e,"string");return poe(t)?t:t+""},zoe=Mie.document,qoe=toe(zoe)&&toe(zoe.createElement),Uoe=function(e){return qoe?zoe.createElement(e):{}},Hoe=!Iie&&!Pie((function(){return 7!=Object.defineProperty(Uoe("div"),"a",{get:function(){return 7}}).a})),Voe=Object.getOwnPropertyDescriptor,Woe={f:Iie?Voe:function(e,t){if(e=Jie(e),t=Foe(t),Hoe)try{return Voe(e,t)}catch(e){}if(Aoe(e,t))return $ie(!Lie(Bie.f,e,t),e[t])}},Koe=Mie.String,Goe=Mie.TypeError,Yoe=function(e){if(toe(e))return e;throw Goe(Koe(e)+" is not an object")},Xoe=Mie.TypeError,Zoe=Object.defineProperty,Qoe={f:Iie?Zoe:function(e,t,n){if(Yoe(e),t=Foe(t),Yoe(n),Hoe)try{return Zoe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Xoe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Joe=Iie?function(e,t,n){return Qoe.f(e,t,$ie(1,n))}:function(e,t,n){return e[t]=n,e},eae=Hie(Function.toString);eoe(Ooe.inspectSource)||(Ooe.inspectSource=function(e){return eae(e)});var tae,nae,rae,iae=Ooe.inspectSource,oae=Mie.WeakMap,aae=eoe(oae)&&/native code/.test(iae(oae)),sae=Soe("keys"),lae=function(e){return sae[e]||(sae[e]=Poe(e))},uae={},cae=Mie.TypeError,fae=Mie.WeakMap;if(aae||Ooe.state){var dae=Ooe.state||(Ooe.state=new fae),hae=Hie(dae.get),pae=Hie(dae.has),gae=Hie(dae.set);tae=function(e,t){if(pae(dae,e))throw new cae("Object already initialized");return t.facade=e,gae(dae,e,t),t},nae=function(e){return hae(dae,e)||{}},rae=function(e){return pae(dae,e)}}else{var mae=lae("state");uae[mae]=!0,tae=function(e,t){if(Aoe(e,mae))throw new cae("Object already initialized");return t.facade=e,Joe(e,mae,t),t},nae=function(e){return Aoe(e,mae)?e[mae]:{}},rae=function(e){return Aoe(e,mae)}}var vae={set:tae,get:nae,has:rae,enforce:function(e){return rae(e)?nae(e):tae(e,{})},getterFor:function(e){return function(t){var n;if(!toe(t)||(n=nae(t)).type!==e)throw cae("Incompatible receiver, "+e+" required");return n}}},yae=Function.prototype,bae=Iie&&Object.getOwnPropertyDescriptor,_ae=Aoe(yae,"name"),wae={EXISTS:_ae,PROPER:_ae&&"something"===function(){}.name,CONFIGURABLE:_ae&&(!Iie||Iie&&bae(yae,"name").configurable)},xae=Eie((function(e){var t=wae.CONFIGURABLE,n=vae.get,r=vae.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;eoe(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Aoe(o,"name")||t&&o.name!==f)&&Joe(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==Mie?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:Joe(e,n,o)):u?e[n]=o:xoe(n,o)})(Function.prototype,"toString",(function(){return eoe(this)&&n(this).source||iae(this)}))})),Oae=Math.ceil,Sae=Math.floor,Cae=function(e){var t=+e;return t!=t||0===t?0:(t>0?Sae:Oae)(t)},kae=Math.max,Eae=Math.min,Aae=function(e,t){var n=Cae(e);return n<0?kae(n+t,0):Eae(n,t)},Tae=Math.min,Dae=function(e){return e>0?Tae(Cae(e),9007199254740991):0},Mae=function(e){return Dae(e.length)},Pae=function(e){return function(t,n,r){var i,o=Jie(t),a=Mae(o),s=Aae(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Iae=(Pae(!0),Pae(!1)),jae=Hie([].push),Lae=function(e,t){var n,r=Jie(e),i=0,o=[];for(n in r)!Aoe(uae,n)&&Aoe(r,n)&&jae(o,n);for(;t.length>i;)Aoe(r,n=t[i++])&&(~Iae(o,n)||jae(o,n));return o},Nae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rae=Nae.concat("length","prototype"),Bae={f:Object.getOwnPropertyNames||function(e){return Lae(e,Rae)}},$ae={f:Object.getOwnPropertySymbols},Fae=Hie([].concat),zae=roe("Reflect","ownKeys")||function(e){var t=Bae.f(Yoe(e)),n=$ae.f;return n?Fae(t,n(e)):t},qae=function(e,t){for(var n=zae(t),r=Qoe.f,i=Woe.f,o=0;o<n.length;o++){var a=n[o];Aoe(e,a)||r(e,a,i(t,a))}},Uae=/#|\.prototype\./,Hae=function(e,t){var n=Wae[Vae(e)];return n==Gae||n!=Kae&&(eoe(t)?Pie(t):!!t)},Vae=Hae.normalize=function(e){return String(e).replace(Uae,".").toLowerCase()},Wae=Hae.data={},Kae=Hae.NATIVE="N",Gae=Hae.POLYFILL="P",Yae=Hae,Xae=Woe.f,Zae=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Mie:u?Mie[s]||xoe(s,{}):(Mie[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Xae(n,r))&&a.value:n[r],!Yae(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;qae(o,i)}(e.sham||i&&i.sham)&&Joe(o,"sham",!0),xae(n,r,o,e)}},Qae=Array.isArray||function(e){return"Array"==Kie(e)},Jae={};Jae[Roe("toStringTag")]="z";var ese="[object z]"===String(Jae),tse=Roe("toStringTag"),nse=Mie.Object,rse="Arguments"==Kie(function(){return arguments}()),ise=ese?Kie:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=nse(e),tse))?n:rse?Kie(t):"Object"==(r=Kie(t))&&eoe(t.callee)?"Arguments":r},ose=function(){},ase=[],sse=roe("Reflect","construct"),lse=/^\s*(?:class|function)\b/,use=Hie(lse.exec),cse=!lse.exec(ose),fse=function(e){if(!eoe(e))return!1;try{return sse(ose,ase,e),!0}catch(e){return!1}},dse=!sse||Pie((function(){var e;return fse(fse.call)||!fse(Object)||!fse((function(){e=!0}))||e}))?function(e){if(!eoe(e))return!1;switch(ise(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cse||!!use(lse,iae(e))}:fse,hse=function(e,t,n){var r=Foe(t);r in e?Qoe.f(e,r,$ie(0,n)):e[r]=n},pse=Roe("species"),gse=Hie([].slice),mse=coe>=51||!Pie((function(){var e=[];return(e.constructor={})[pse]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),vse=Roe("species"),yse=Mie.Array,bse=Math.max;Zae({target:"Array",proto:!0,forced:!mse},{slice:function(e,t){var n,r,i,o=Jie(this),a=Mae(o),s=Aae(e,a),l=Aae(void 0===t?a:t,a);if(Qae(o)&&(n=o.constructor,(dse(n)&&(n===yse||Qae(n.prototype))||toe(n)&&null===(n=n[vse]))&&(n=void 0),n===yse||void 0===n))return gse(o,s,l);for(r=new(void 0===n?yse:n)(bse(l-s,0)),i=0;s<l;s++,i++)s in o&&hse(r,i,o[s]);return r.length=i,r}});var _se=ese?{}.toString:function(){return"[object "+ise(this)+"]"};ese||xae(Object.prototype,"toString",_se,{unsafe:!0});var wse,xse=Mie.String,Ose=function(e){if("Symbol"===ise(e))throw TypeError("Cannot convert a Symbol value to a string");return xse(e)},Sse=function(){var e=Yoe(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},Cse=Mie.RegExp,kse=Pie((function(){var e=Cse("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ese=kse||Pie((function(){return!Cse("a","y").sticky})),Ase={BROKEN_CARET:kse||Pie((function(){var e=Cse("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Ese,UNSUPPORTED_Y:kse},Tse=Object.keys||function(e){return Lae(e,Nae)},Dse=Iie?Object.defineProperties:function(e,t){Yoe(e);for(var n,r=Jie(t),i=Tse(t),o=i.length,a=0;o>a;)Qoe.f(e,n=i[a++],r[n]);return e},Mse=roe("document","documentElement"),Pse=lae("IE_PROTO"),Ise=function(){},jse=function(e){return"<script>"+e+"<\/script>"},Lse=function(e){e.write(jse("")),e.close();var t=e.parentWindow.Object;return e=null,t},Nse=function(){try{wse=new ActiveXObject("htmlfile")}catch(e){}var e,t;Nse="undefined"!=typeof document?document.domain&&wse?Lse(wse):((t=Uoe("iframe")).style.display="none",Mse.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(jse("document.F=Object")),e.close(),e.F):Lse(wse);for(var n=Nae.length;n--;)delete Nse.prototype[Nae[n]];return Nse()};uae[Pse]=!0;var Rse,Bse,$se=Object.create||function(e,t){var n;return null!==e?(Ise.prototype=Yoe(e),n=new Ise,Ise.prototype=null,n[Pse]=e):n=Nse(),void 0===t?n:Dse(n,t)},Fse=Mie.RegExp,zse=Pie((function(){var e=Fse(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),qse=Mie.RegExp,Use=Pie((function(){var e=qse("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Hse=vae.get,Vse=Soe("native-string-replace",String.prototype.replace),Wse=RegExp.prototype.exec,Kse=Wse,Gse=Hie("".charAt),Yse=Hie("".indexOf),Xse=Hie("".replace),Zse=Hie("".slice),Qse=(Bse=/b*/g,Lie(Wse,Rse=/a/,"a"),Lie(Wse,Bse,"a"),0!==Rse.lastIndex||0!==Bse.lastIndex),Jse=Ase.BROKEN_CARET,ele=void 0!==/()??/.exec("")[1];(Qse||ele||Jse||zse||Use)&&(Kse=function(e){var t,n,r,i,o,a,s,l=this,u=Hse(l),c=Ose(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=Lie(Kse,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=Jse&&l.sticky,p=Lie(Sse,l),g=l.source,m=0,v=c;if(h&&(p=Xse(p,"y",""),-1===Yse(p,"g")&&(p+="g"),v=Zse(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Gse(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),ele&&(n=new RegExp("^"+g+"$(?!\\s)",p)),Qse&&(r=l.lastIndex),i=Lie(Wse,h?n:l,v),h?i?(i.input=Zse(i.input,m),i[0]=Zse(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Qse&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),ele&&i&&i.length>1&&Lie(Vse,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=$se(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var tle=Kse;Zae({target:"RegExp",proto:!0,forced:/./.exec!==tle},{exec:tle});var nle=Function.prototype,rle=nle.apply,ile=nle.bind,ole=nle.call,ale="object"==typeof Reflect&&Reflect.apply||(ile?ole.bind(rle):function(){return ole.apply(rle,arguments)}),sle=Roe("species"),lle=RegExp.prototype,ule=Roe("match"),cle=Mie.TypeError,fle=Roe("species"),dle=function(e,t){var n,r=Yoe(e).constructor;return void 0===r||null==(n=Yoe(r)[fle])?t:function(e){if(dse(e))return e;throw cle(moe(e)+" is not a constructor")}(n)},hle=Hie("".charAt),ple=Hie("".charCodeAt),gle=Hie("".slice),mle=function(e){return function(t,n){var r,i,o=Ose(Qie(t)),a=Cae(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=ple(o,a))<55296||r>56319||a+1===s||(i=ple(o,a+1))<56320||i>57343?e?hle(o,a):r:e?gle(o,a,a+2):i-56320+(r-55296<<10)+65536}},vle={codeAt:mle(!1),charAt:mle(!0)},yle=vle.charAt,ble=function(e,t,n){return t+(n?yle(e,t).length:1)},_le=Mie.Array,wle=Math.max,xle=function(e,t,n){for(var r=Mae(e),i=Aae(t,r),o=Aae(void 0===n?r:n,r),a=_le(wle(o-i,0)),s=0;i<o;i++,s++)hse(a,s,e[i]);return a.length=s,a},Ole=Mie.TypeError,Sle=function(e,t){var n=e.exec;if(eoe(n)){var r=Lie(n,e,t);return null!==r&&Yoe(r),r}if("RegExp"===Kie(e))return Lie(tle,e,t);throw Ole("RegExp#exec called on incompatible receiver")},Cle=Ase.UNSUPPORTED_Y,kle=Math.min,Ele=[].push,Ale=Hie(/./.exec),Tle=Hie(Ele),Dle=Hie("".slice);!function(e,t,n,r){var i=Roe(e),o=!Pie((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!Pie((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[sle]=function(){return t},t.flags="",t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](""),!e}));if(!o||!a||n){var s=Hie(/./[i]),l=function(e,t,n){var r;return r="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 r,i,o=Ose(Qie(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!toe(r=e)||!(void 0!==(i=r[ule])?i:"RegExp"==Kie(r)))return Lie(t,o,e,a);for(var s,l,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=new RegExp(e.source,f+"g");(s=Lie(tle,h,o))&&!((l=h.lastIndex)>d&&(Tle(c,Dle(o,d,s.index)),s.length>1&&s.index<o.length&&ale(Ele,c,xle(s,1)),u=s[0].length,d=l,c.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return d===o.length?!u&&Ale(h,"")||Tle(c,""):Tle(c,Dle(o,d)),c.length>a?xle(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Lie(t,this,e,n)}:t,[function(t,n){var i=Qie(this),o=null==t?void 0:boe(t,e);return o?Lie(o,t,i,n):Lie(r,Ose(i),t,n)},function(e,i){var o=Yoe(this),a=Ose(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var l=dle(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Cle?"g":"y"),f=new l(Cle?"^(?:"+o.source+")":o,c),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===Sle(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=Cle?0:p;var m,v=Sle(f,Cle?Dle(a,p):a);if(null===v||(m=kle(Dae(f.lastIndex+(Cle?p:0)),a.length))===h)p=ble(a,p,u);else{if(Tle(g,Dle(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(Tle(g,v[y]),g.length===d)return g;p=h=m}}return Tle(g,Dle(a,h)),g}]}(i,""[e],(function(e,t,n,r,i){var a=Hie(e),l=t.exec;return l===tle||l===lle.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));xae(String.prototype,e,l[0]),xae(lle,i,l[1])}r&&Joe(lle[i],"sham",!0)}("split",0,!!Pie((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]})),Cle);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var Mle=function(){return Mle=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Mle.apply(this,arguments)};function Ple(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Ile(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function jle(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}var Lle=Roe("unscopables"),Nle=Array.prototype;null==Nle[Lle]&&Qoe.f(Nle,Lle,{configurable:!0,value:$se(null)});var Rle,Ble,$le,Fle=function(e){Nle[Lle][e]=!0},zle={},qle=!Pie((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ule=lae("IE_PROTO"),Hle=Mie.Object,Vle=Hle.prototype,Wle=qle?Hle.getPrototypeOf:function(e){var t=koe(e);if(Aoe(t,Ule))return t[Ule];var n=t.constructor;return eoe(n)&&t instanceof n?n.prototype:t instanceof Hle?Vle:null},Kle=Roe("iterator"),Gle=!1;[].keys&&("next"in($le=[].keys())?(Ble=Wle(Wle($le)))!==Object.prototype&&(Rle=Ble):Gle=!0);var Yle=null==Rle||Pie((function(){var e={};return Rle[Kle].call(e)!==e}));Yle&&(Rle={}),eoe(Rle[Kle])||xae(Rle,Kle,(function(){return this}));var Xle={IteratorPrototype:Rle,BUGGY_SAFARI_ITERATORS:Gle},Zle=Qoe.f,Qle=Roe("toStringTag"),Jle=function(e,t,n){e&&!Aoe(e=n?e:e.prototype,Qle)&&Zle(e,Qle,{configurable:!0,value:t})},eue=Xle.IteratorPrototype,tue=function(){return this},nue=Mie.String,rue=Mie.TypeError,iue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Hie(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Yoe(n),function(e){if("object"==typeof e||eoe(e))return e;throw rue("Can't set "+nue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oue=wae.PROPER,aue=wae.CONFIGURABLE,sue=Xle.IteratorPrototype,lue=Xle.BUGGY_SAFARI_ITERATORS,uue=Roe("iterator"),cue=function(){return this},fue=function(e,t,n,r,i,o,a){!function(e,t,n,r){var i=t+" Iterator";e.prototype=$se(eue,{next:$ie(1,n)}),Jle(e,i,!1),zle[i]=tue}(n,t,r);var s,l,u,c=function(e){if(e===i&&g)return g;if(!lue&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,h=e.prototype,p=h[uue]||h["@@iterator"]||i&&h[i],g=!lue&&p||c(i),m="Array"==t&&h.entries||p;if(m&&(s=Wle(m.call(new e)))!==Object.prototype&&s.next&&(Wle(s)!==sue&&(iue?iue(s,sue):eoe(s[uue])||xae(s,uue,cue)),Jle(s,f,!0)),oue&&"values"==i&&p&&"values"!==p.name&&(aue?Joe(h,"name","values"):(d=!0,g=function(){return Lie(p,this)})),i)if(l={values:c("values"),keys:o?g:c("keys"),entries:c("entries")},a)for(u in l)(lue||d||!(u in h))&&xae(h,u,l[u]);else Zae({target:t,proto:!0,forced:lue||d},l);return h[uue]!==g&&xae(h,uue,g,{name:i}),zle[t]=g,l},due=vae.set,hue=vae.getterFor("Array Iterator"),pue=fue(Array,"Array",(function(e,t){due(this,{type:"Array Iterator",target:Jie(e),index:0,kind:t})}),(function(){var e=hue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");zle.Arguments=zle.Array,Fle("keys"),Fle("values"),Fle("entries");var gue=vle.charAt,mue=vae.set,vue=vae.getterFor("String Iterator");fue(String,"String",(function(e){mue(this,{type:"String Iterator",string:Ose(e),index:0})}),(function(){var e,t=vue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gue(n,r),t.index+=e.length,{value:e,done:!1})}));var yue=function(e,t,n){for(var r in t)xae(e,r,t[r],n);return e},bue=Bae.f,_ue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wue={f:function(e){return _ue&&"Window"==Kie(e)?function(e){try{return bue(e)}catch(e){return xle(_ue)}}(e):bue(Jie(e))}},xue=Pie((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Oue=Object.isExtensible,Sue=Pie((function(){Oue(1)}))||xue?function(e){return!!toe(e)&&(!xue||"ArrayBuffer"!=Kie(e))&&(!Oue||Oue(e))}:Oue,Cue=!Pie((function(){return Object.isExtensible(Object.preventExtensions({}))})),kue=Eie((function(e){var t=Qoe.f,n=!1,r=Poe("meta"),i=0,o=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Bae.f,t=Hie([].splice),i={};i[r]=1,e(i).length&&(Bae.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t(i,o,1);break}return i},Zae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wue.f}))},fastKey:function(e,t){if(!toe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Aoe(e,r)){if(!Sue(e))return"F";if(!t)return"E";o(e)}return e[r].objectID},getWeakData:function(e,t){if(!Aoe(e,r)){if(!Sue(e))return!0;if(!t)return!1;o(e)}return e[r].weakData},onFreeze:function(e){return Cue&&n&&Sue(e)&&!Aoe(e,r)&&o(e),e}};uae[r]=!0})),Eue=Hie(Hie.bind),Aue=function(e,t){return yoe(e),void 0===t?e:Eue?Eue(e,t):function(){return e.apply(t,arguments)}},Tue=Roe("iterator"),Due=Array.prototype,Mue=Roe("iterator"),Pue=function(e){if(null!=e)return boe(e,Mue)||boe(e,"@@iterator")||zle[ise(e)]},Iue=Mie.TypeError,jue=function(e,t,n){var r,i;Yoe(e);try{if(!(r=boe(e,"return"))){if("throw"===t)throw n;return n}r=Lie(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Yoe(r),n},Lue=Mie.TypeError,Nue=function(e,t){this.stopped=e,this.result=t},Rue=Nue.prototype,Bue=function(e,t,n){var r,i,o,a,s,l,u,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Aue(t,f),m=function(e){return r&&jue(r,"normal",e),new Nue(!0,e)},v=function(e){return d?(Yoe(e),p?g(e[0],e[1],m):g(e[0],e[1])):p?g(e,m):g(e)};if(h)r=e;else{if(!(i=Pue(e)))throw Lue(moe(e)+" is not iterable");if(void 0!==(c=i)&&(zle.Array===c||Due[Tue]===c)){for(o=0,a=Mae(e);a>o;o++)if((s=v(e[o]))&&ioe(Rue,s))return s;return new Nue(!1)}r=function(e,t){var n=arguments.length<2?Pue(e):t;if(yoe(n))return Yoe(Lie(n,e));throw Iue(moe(e)+" is not iterable")}(e,i)}for(l=r.next;!(u=Lie(l,r)).done;){try{s=v(u.value)}catch(e){jue(r,"throw",e)}if("object"==typeof s&&s&&ioe(Rue,s))return s}return new Nue(!1)},$ue=Mie.TypeError,Fue=function(e,t){if(ioe(t,e))return e;throw $ue("Incorrect invocation")},zue=Roe("iterator"),que=!1;try{var Uue=0,Hue={next:function(){return{done:!!Uue++}},return:function(){que=!0}};Hue[zue]=function(){return this},Array.from(Hue,(function(){throw 2}))}catch(qu){}var Vue=function(e,t){if(!t&&!que)return!1;var n=!1;try{var r={};r[zue]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Wue=Roe("species"),Kue=Mie.Array,Gue=function(e,t){return new(function(e){var t;return Qae(e)&&(t=e.constructor,(dse(t)&&(t===Kue||Qae(t.prototype))||toe(t)&&null===(t=t[Wue]))&&(t=void 0)),void 0===t?Kue:t}(e))(0===t?0:t)},Yue=Hie([].push),Xue=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=koe(l),g=Xie(p),m=Aue(u,c),v=Mae(g),y=0,b=f||Gue,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Yue(_,d)}else switch(e){case 4:return!1;case 7:Yue(_,d)}return o?-1:r||i?i:_}},Zue={forEach:Xue(0),map:Xue(1),filter:Xue(2),some:Xue(3),every:Xue(4),find:Xue(5),findIndex:Xue(6),filterReject:Xue(7)},Que=kue.getWeakData,Jue=vae.set,ece=vae.getterFor,tce=Zue.find,nce=Zue.findIndex,rce=Hie([].splice),ice=0,oce=function(e){return e.frozen||(e.frozen=new ace)},ace=function(){this.entries=[]},sce=function(e,t){return tce(e.entries,(function(e){return e[0]===t}))};ace.prototype={get:function(e){var t=sce(this,e);if(t)return t[1]},has:function(e){return!!sce(this,e)},set:function(e,t){var n=sce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=nce(this.entries,(function(t){return t[0]===e}));return~t&&rce(this.entries,t,1),!!~t}};var lce,uce={getConstructor:function(e,t,n,r){var i=e((function(e,i){Fue(e,o),Jue(e,{type:t,id:ice++,frozen:void 0}),null!=i&&Bue(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=ece(t),s=function(e,t,n){var r=a(e),i=Que(Yoe(t),!0);return!0===i?oce(r).set(t,n):i[r.id]=n,e};return yue(o,{delete:function(e){var t=a(this);if(!toe(e))return!1;var n=Que(e);return!0===n?oce(t).delete(e):n&&Aoe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!toe(e))return!1;var n=Que(e);return!0===n?oce(t).has(e):n&&Aoe(n,t.id)}}),yue(o,n?{get:function(e){var t=a(this);if(toe(e)){var n=Que(e);return!0===n?oce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},cce=vae.enforce,fce=!Mie.ActiveXObject&&"ActiveXObject"in Mie,dce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hce=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=Mie[e],s=a&&a.prototype,l=a,u={},c=function(e){var t=Hie(s[e]);xae(s,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!toe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return i&&!toe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!toe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Yae(e,!eoe(a)||!(i||s.forEach&&!Pie((function(){(new a).entries().next()})))))l=n.getConstructor(t,e,r,o),kue.enable();else if(Yae(e,!0)){var f=new l,d=f[o](i?{}:-0,1)!=f,h=Pie((function(){f.has(1)})),p=Vue((function(e){new a(e)})),g=!i&&Pie((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((l=t((function(e,t){Fue(e,s);var n=function(e,t,n){var r,i;return iue&&eoe(r=t.constructor)&&r!==n&&toe(i=r.prototype)&&i!==n.prototype&&iue(e,i),e}(new a,e,l);return null!=t&&Bue(t,n[o],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=l),(h||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(o),i&&s.clear&&delete s.clear}return u[e]=l,Zae({global:!0,forced:l!=a},u),Jle(l,e),i||n.setStrong(l,e,r),l}("WeakMap",dce,uce);if(aae&&fce){lce=uce.getConstructor(dce,"WeakMap",!0),kue.enable();var pce=hce.prototype,gce=Hie(pce.delete),mce=Hie(pce.has),vce=Hie(pce.get),yce=Hie(pce.set);yue(pce,{delete:function(e){if(toe(e)&&!Sue(e)){var t=cce(this);return t.frozen||(t.frozen=new lce),gce(this,e)||t.frozen.delete(e)}return gce(this,e)},has:function(e){if(toe(e)&&!Sue(e)){var t=cce(this);return t.frozen||(t.frozen=new lce),mce(this,e)||t.frozen.has(e)}return mce(this,e)},get:function(e){if(toe(e)&&!Sue(e)){var t=cce(this);return t.frozen||(t.frozen=new lce),mce(this,e)?vce(this,e):t.frozen.get(e)}return vce(this,e)},set:function(e,t){if(toe(e)&&!Sue(e)){var n=cce(this);n.frozen||(n.frozen=new lce),mce(this,e)?yce(this,e,t):n.frozen.set(e,t)}else yce(this,e,t);return this}})}var bce={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},_ce=Uoe("span").classList,wce=_ce&&_ce.constructor&&_ce.constructor.prototype,xce=wce===Object.prototype?void 0:wce,Oce=Roe("iterator"),Sce=Roe("toStringTag"),Cce=pue.values,kce=function(e,t){if(e){if(e[Oce]!==Cce)try{Joe(e,Oce,Cce)}catch(t){e[Oce]=Cce}if(e[Sce]||Joe(e,Sce,t),bce[t])for(var n in pue)if(e[n]!==pue[n])try{Joe(e,n,pue[n])}catch(t){e[n]=pue[n]}}};for(var Ece in bce)kce(Mie[Ece]&&Mie[Ece].prototype,Ece);kce(xce,"DOMTokenList");var Ace=function(e,t){var n=[][e];return!!n&&Pie((function(){n.call(null,t||function(){throw 1},1)}))},Tce=Zue.forEach,Dce=Ace("forEach")?[].forEach:function(e){return Tce(this,e,arguments.length>1?arguments[1]:void 0)},Mce=function(e){if(e&&e.forEach!==Dce)try{Joe(e,"forEach",Dce)}catch(i){e.forEach=Dce}};for(var Pce in bce)bce[Pce]&&Mce(Mie[Pce]&&Mie[Pce].prototype);Mce(xce);var Ice,jce,Lce,Nce,Rce=Mie.Promise,Bce=Roe("species"),$ce=/(?:ipad|iphone|ipod).*applewebkit/i.test(ooe),Fce="process"==Kie(Mie.process),zce=Mie.setImmediate,qce=Mie.clearImmediate,Uce=Mie.process,Hce=Mie.Dispatch,Vce=Mie.Function,Wce=Mie.MessageChannel,Kce=Mie.String,Gce=0,Yce={};try{Ice=Mie.location}catch(qu){}var Xce=function(e){if(Aoe(Yce,e)){var t=Yce[e];delete Yce[e],t()}},Zce=function(e){return function(){Xce(e)}},Qce=function(e){Xce(e.data)},Jce=function(e){Mie.postMessage(Kce(e),Ice.protocol+"//"+Ice.host)};zce&&qce||(zce=function(e){var t=gse(arguments,1);return Yce[++Gce]=function(){ale(eoe(e)?e:Vce(e),void 0,t)},jce(Gce),Gce},qce=function(e){delete Yce[e]},Fce?jce=function(e){Uce.nextTick(Zce(e))}:Hce&&Hce.now?jce=function(e){Hce.now(Zce(e))}:Wce&&!$ce?(Nce=(Lce=new Wce).port2,Lce.port1.onmessage=Qce,jce=Aue(Nce.postMessage,Nce)):Mie.addEventListener&&eoe(Mie.postMessage)&&!Mie.importScripts&&Ice&&"file:"!==Ice.protocol&&!Pie(Jce)?(jce=Jce,Mie.addEventListener("message",Qce,!1)):jce="onreadystatechange"in Uoe("script")?function(e){Mse.appendChild(Uoe("script")).onreadystatechange=function(){Mse.removeChild(this),Xce(e)}}:function(e){setTimeout(Zce(e),0)});var efe,tfe,nfe,rfe,ife,ofe,afe,sfe,lfe={set:zce,clear:qce},ufe=/ipad|iphone|ipod/i.test(ooe)&&void 0!==Mie.Pebble,cfe=/web0s(?!.*chrome)/i.test(ooe),ffe=Woe.f,dfe=lfe.set,hfe=Mie.MutationObserver||Mie.WebKitMutationObserver,pfe=Mie.document,gfe=Mie.process,mfe=Mie.Promise,vfe=ffe(Mie,"queueMicrotask"),yfe=vfe&&vfe.value;yfe||(efe=function(){var e,t;for(Fce&&(e=gfe.domain)&&e.exit();tfe;){t=tfe.fn,tfe=tfe.next;try{t()}catch(e){throw tfe?rfe():nfe=void 0,e}}nfe=void 0,e&&e.enter()},$ce||Fce||cfe||!hfe||!pfe?!ufe&&mfe&&mfe.resolve?((afe=mfe.resolve(void 0)).constructor=mfe,sfe=Aue(afe.then,afe),rfe=function(){sfe(efe)}):Fce?rfe=function(){gfe.nextTick(efe)}:(dfe=Aue(dfe,Mie),rfe=function(){dfe(efe)}):(ife=!0,ofe=pfe.createTextNode(""),new hfe(efe).observe(ofe,{characterData:!0}),rfe=function(){ofe.data=ife=!ife}));var bfe,_fe,wfe,xfe,Ofe=yfe||function(e){var t={fn:e,next:void 0};nfe&&(nfe.next=t),tfe||(tfe=t,rfe()),nfe=t},Sfe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=yoe(t),this.reject=yoe(n)},Cfe={f:function(e){return new Sfe(e)}},kfe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Efe="object"==typeof window,Afe=lfe.set,Tfe=Roe("species"),Dfe="Promise",Mfe=vae.getterFor(Dfe),Pfe=vae.set,Ife=vae.getterFor(Dfe),jfe=Rce&&Rce.prototype,Lfe=Rce,Nfe=jfe,Rfe=Mie.TypeError,Bfe=Mie.document,$fe=Mie.process,Ffe=Cfe.f,zfe=Ffe,qfe=!!(Bfe&&Bfe.createEvent&&Mie.dispatchEvent),Ufe=eoe(Mie.PromiseRejectionEvent),Hfe=!1,Vfe=Yae(Dfe,(function(){var e=iae(Lfe),t=e!==String(Lfe);if(!t&&66===coe)return!0;if(coe>=51&&/native code/.test(e))return!1;var n=new Lfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Tfe]=r,!(Hfe=n.then((function(){}))instanceof r)||!t&&Efe&&!Ufe})),Wfe=Vfe||!Vue((function(e){Lfe.all(e).catch((function(){}))})),Kfe=function(e){var t;return!(!toe(e)||!eoe(t=e.then))&&t},Gfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ofe((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,u=n[o++],c=i?u.ok:u.fail,f=u.resolve,d=u.reject,h=u.domain;try{c?(i||(2===e.rejection&&Qfe(e),e.rejection=1),!0===c?a=r:(h&&h.enter(),a=c(r),h&&(h.exit(),l=!0)),a===u.promise?d(Rfe("Promise-chain cycle")):(s=Kfe(a))?Lie(s,a,f,d):f(a)):d(r)}catch(e){h&&!l&&h.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Xfe(e)}))}},Yfe=function(e,t,n){var r,i;qfe?((r=Bfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Mie.dispatchEvent(r)):r={promise:t,reason:n},!Ufe&&(i=Mie["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=Mie.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Xfe=function(e){Lie(Afe,Mie,(function(){var t,n=e.facade,r=e.value;if(Zfe(e)&&(t=kfe((function(){Fce?$fe.emit("unhandledRejection",r,n):Yfe("unhandledrejection",n,r)})),e.rejection=Fce||Zfe(e)?2:1,t.error))throw t.value}))},Zfe=function(e){return 1!==e.rejection&&!e.parent},Qfe=function(e){Lie(Afe,Mie,(function(){var t=e.facade;Fce?$fe.emit("rejectionHandled",t):Yfe("rejectionhandled",t,e.value)}))},Jfe=function(e,t,n){return function(r){e(t,r,n)}},ede=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Gfe(e,!0))},tde=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Rfe("Promise can't be resolved itself");var r=Kfe(t);r?Ofe((function(){var n={done:!1};try{Lie(r,t,Jfe(tde,n,e),Jfe(ede,n,e))}catch(t){ede(n,t,e)}})):(e.value=t,e.state=1,Gfe(e,!1))}catch(t){ede({done:!1},t,e)}}};if(Vfe&&(Nfe=(Lfe=function(e){Fue(this,Nfe),yoe(e),Lie(bfe,this);var t=Mfe(this);try{e(Jfe(tde,t),Jfe(ede,t))}catch(e){ede(t,e)}}).prototype,(bfe=function(e){Pfe(this,{type:Dfe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=yue(Nfe,{then:function(e,t){var n=Ife(this),r=n.reactions,i=Ffe(dle(this,Lfe));return i.ok=!eoe(e)||e,i.fail=eoe(t)&&t,i.domain=Fce?$fe.domain:void 0,n.parent=!0,r[r.length]=i,0!=n.state&&Gfe(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),_fe=function(){var e=new bfe,t=Mfe(e);this.promise=e,this.resolve=Jfe(tde,t),this.reject=Jfe(ede,t)},Cfe.f=Ffe=function(e){return e===Lfe||e===wfe?new _fe(e):zfe(e)},eoe(Rce)&&jfe!==Object.prototype)){xfe=jfe.then,Hfe||(xae(jfe,"then",(function(e,t){var n=this;return new Lfe((function(e,t){Lie(xfe,n,e,t)})).then(e,t)}),{unsafe:!0}),xae(jfe,"catch",Nfe.catch,{unsafe:!0}));try{delete jfe.constructor}catch(qu){}iue&&iue(jfe,Nfe)}Zae({global:!0,wrap:!0,forced:Vfe},{Promise:Lfe}),Jle(Lfe,Dfe,!1),function(e){var t=roe("Promise"),n=Qoe.f;Iie&&t&&!t[Bce]&&n(t,Bce,{configurable:!0,get:function(){return this}})}(),wfe=roe(Dfe),Zae({target:Dfe,stat:!0,forced:Vfe},{reject:function(e){var t=Ffe(this);return Lie(t.reject,void 0,e),t.promise}}),Zae({target:Dfe,stat:!0,forced:Vfe},{resolve:function(e){return function(e,t){if(Yoe(e),toe(t)&&t.constructor===e)return t;var n=Cfe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Zae({target:Dfe,stat:!0,forced:Wfe},{all:function(e){var t=this,n=Ffe(t),r=n.resolve,i=n.reject,o=kfe((function(){var n=yoe(t.resolve),o=[],a=0,s=1;Bue(e,(function(e){var l=a++,u=!1;s++,Lie(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Ffe(t),r=n.reject,i=kfe((function(){var i=yoe(t.resolve);Bue(e,(function(e){Lie(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var nde=wae.PROPER,rde=RegExp.prototype,ide=rde.toString,ode=Hie(Sse),ade=Pie((function(){return"/a/b"!=ide.call({source:"a",flags:"b"})})),sde=nde&&"toString"!=ide.name;(ade||sde)&&xae(RegExp.prototype,"toString",(function(){var e=Yoe(this),t=Ose(e.source),n=e.flags;return"/"+t+"/"+Ose(void 0===n&&ioe(rde,e)&&!("flags"in rde)?ode(e):n)}),{unsafe:!0});var lde=wae.EXISTS,ude=Qoe.f,cde=Function.prototype,fde=Hie(cde.toString),dde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,hde=Hie(dde.exec);Iie&&!lde&&ude(cde,"name",{configurable:!0,get:function(){try{return hde(dde,fde(this))[1]}catch(r){return""}}});var pde=new WeakMap;function gde(e){return e.getMenuConfig("uploadImage")}function mde(e,t){return Ple(this,void 0,void 0,(function(){return Ile(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var o=i.toString(),a=0===o.indexOf("data:image")?"":o;qz(e,o,t.name,a),n("ok")}}}))]}))}))}function vde(e,t){return Ple(this,void 0,void 0,(function(){var n,r,i,o;return Ile(this,(function(a){switch(a.label){case 0:return n=function(e){var t=pde.get(e);if(null!=t)return t;var n=gde(e),r=n.onSuccess,i=n.onProgress,o=n.onFailed,a=n.customInsert,s=n.onError;return t=ZP(Mle(Mle({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return qz(e,t,n,r)})),void r(t,n);var i=n.errno,s=void 0===i?1:i,l=n.data,u=void 0===l?{}:l;if(0===s){if(Array.isArray(u))u.forEach((function(t){var n=t.url,r=void 0===n?"":n,i=t.alt,o=void 0===i?"":i,a=t.href;qz(e,r,o,void 0===a?"":a)}));else{var c=u.url,f=void 0===c?"":c,d=u.alt,h=void 0===d?"":d,p=u.href;qz(e,f,h,void 0===p?"":p)}r(t,n)}else o(t,n)},onError:function(e,t,n){s(e,t,n)}})),pde.set(e,t),t}(e),r=t.name,i=t.type,o=t.size,n.addFile({name:r,type:i,size:o,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function yde(e,t){var n,r;return Ple(this,void 0,void 0,(function(){var i,o,a,s,l,u,c,f,d;return Ile(this,(function(h){switch(h.label){case 0:if(null==t)return[2];i=Array.prototype.slice.call(t),o=gde(e),a=o.customUpload,s=o.base64LimitSize,h.label=1;case 1:h.trys.push([1,11,12,17]),l=jle(i),h.label=2;case 2:return[4,l.next()];case 3:return(u=h.sent()).done?[3,10]:(c=u.value,f=c.size,s&&f<=s?[4,mde(e,c)]:[3,5]);case 4:return h.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return qz(e,t,n,r)}))]:[3,7];case 6:return h.sent(),[3,9];case 7:return[4,vde(e,c)];case 8:h.sent(),h.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=h.sent(),n={error:d},[3,17];case 12:return h.trys.push([12,,15,16]),u&&!u.done&&(r=l.return)?[4,r.call(l)]:[3,14];case 13:h.sent(),h.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var bde=Hie([].join),_de=Xie!=Object,wde=Ace("join",",");Zae({target:"Array",proto:!0,forced:_de||!wde},{join:function(e){return bde(Jie(this),void 0===e?",":e)}}),up&&(qh.fn.append=up),Xh&&(qh.fn.on=Xh),gp&&(qh.fn.remove=gp),Yh&&(qh.fn.val=Yh),bp&&(qh.fn.click=bp),tp&&(qh.fn.hide=tp);var xde=function(){function e(){this.title=VI("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Uz(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=void 0===r?[]:r,o=n.customBrowseAndUpload;if(o)o((function(t,n,r){return qz(e,t,n,r)}));else{var a="";i.length>0&&(a='accept="'+i.join(", ")+'"');var s=qh("body"),l=qh('<input type="file" '+a+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var t=l[0].files;yde(e,t)}))}},e}(),Ode={menus:[{key:"uploadImage",factory:function(){return new xde},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Uz(n))t(r);else if(r.getData("text/plain"))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e.type.split("/"),1)[0]}))?yde(e,i):t(r)}},n}};qI("en",{highLightModule:{selectLang:"Language"}}),qI("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Sde="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{};function Cde(e){var t={exports:{}};return e(t,t.exports),t.exports}var kde,Ede,Ade=function(e){return e&&e.Math==Math&&e},Tde=Ade("object"==typeof globalThis&&globalThis)||Ade("object"==typeof window&&window)||Ade("object"==typeof self&&self)||Ade("object"==typeof Sde&&Sde)||function(){return this}()||Function("return this")(),Dde=Object.defineProperty,Mde=function(e,t){try{Dde(Tde,e,{value:t,configurable:!0,writable:!0})}catch(o){Tde[e]=t}return t},Pde=Tde["__core-js_shared__"]||Mde("__core-js_shared__",{}),Ide=Cde((function(e){(e.exports=function(e,t){return Pde[e]||(Pde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),jde=Function.prototype,Lde=jde.bind,Nde=jde.call,Rde=Lde&&Lde.bind(Nde),Bde=Lde?function(e){return e&&Rde(Nde,e)}:function(e){return e&&function(){return Nde.apply(e,arguments)}},$de=Tde.TypeError,Fde=function(e){if(null==e)throw $de("Can't call method on "+e);return e},zde=Tde.Object,qde=function(e){return zde(Fde(e))},Ude=Bde({}.hasOwnProperty),Hde=Object.hasOwn||function(e,t){return Ude(qde(e),t)},Vde=0,Wde=Math.random(),Kde=Bde(1..toString),Gde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Kde(++Vde+Wde,36)},Yde=function(e){return"function"==typeof e},Xde=function(e){return Yde(e)?e:void 0},Zde=function(e,t){return arguments.length<2?Xde(Tde[e]):Tde[e]&&Tde[e][t]},Qde=Zde("navigator","userAgent")||"",Jde=Tde.process,ehe=Tde.Deno,the=Jde&&Jde.versions||ehe&&ehe.version,nhe=the&&the.v8;nhe&&(Ede=(kde=nhe.split("."))[0]>0&&kde[0]<4?1:+(kde[0]+kde[1])),!Ede&&Qde&&(!(kde=Qde.match(/Edge\/(\d+)/))||kde[1]>=74)&&(kde=Qde.match(/Chrome\/(\d+)/))&&(Ede=+kde[1]);var rhe=Ede,ihe=function(e){try{return!!e()}catch(e){return!0}},ohe=!!Object.getOwnPropertySymbols&&!ihe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rhe&&rhe<41})),ahe=ohe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,she=Ide("wks"),lhe=Tde.Symbol,uhe=lhe&&lhe.for,che=ahe?lhe:lhe&&lhe.withoutSetter||Gde,fhe=function(e){if(!Hde(she,e)||!ohe&&"string"!=typeof she[e]){var t="Symbol."+e;ohe&&Hde(lhe,e)?she[e]=lhe[e]:she[e]=ahe&&uhe?uhe(t):che(t)}return she[e]},dhe={};dhe[fhe("toStringTag")]="z";var hhe="[object z]"===String(dhe),phe=!ihe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ghe=function(e){return"object"==typeof e?null!==e:Yde(e)},mhe=Tde.document,vhe=ghe(mhe)&&ghe(mhe.createElement),yhe=function(e){return vhe?mhe.createElement(e):{}},bhe=!phe&&!ihe((function(){return 7!=Object.defineProperty(yhe("div"),"a",{get:function(){return 7}}).a})),_he=Tde.String,whe=Tde.TypeError,xhe=function(e){if(ghe(e))return e;throw whe(_he(e)+" is not an object")},Ohe=Function.prototype.call,She=Ohe.bind?Ohe.bind(Ohe):function(){return Ohe.apply(Ohe,arguments)},Che=Bde({}.isPrototypeOf),khe=Tde.Object,Ehe=ahe?function(e){return"symbol"==typeof e}:function(e){var t=Zde("Symbol");return Yde(t)&&Che(t.prototype,khe(e))},Ahe=Tde.String,The=function(e){try{return Ahe(e)}catch(e){return"Object"}},Dhe=Tde.TypeError,Mhe=function(e){if(Yde(e))return e;throw Dhe(The(e)+" is not a function")},Phe=function(e,t){var n=e[t];return null==n?void 0:Mhe(n)},Ihe=Tde.TypeError,jhe=Tde.TypeError,Lhe=fhe("toPrimitive"),Nhe=function(e){var t=function(e,t){if(!ghe(e)||Ehe(e))return e;var n,r=Phe(e,Lhe);if(r){if(void 0===t&&(t="default"),n=She(r,e,t),!ghe(n)||Ehe(n))return n;throw jhe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Yde(n=e.toString)&&!ghe(r=She(n,e)))return r;if(Yde(n=e.valueOf)&&!ghe(r=She(n,e)))return r;if("string"!==t&&Yde(n=e.toString)&&!ghe(r=She(n,e)))return r;throw Ihe("Can't convert object to primitive value")}(e,t)}(e,"string");return Ehe(t)?t:t+""},Rhe=Tde.TypeError,Bhe=Object.defineProperty,$he={f:phe?Bhe:function(e,t,n){if(xhe(e),t=Nhe(t),xhe(n),bhe)try{return Bhe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Rhe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Fhe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zhe=phe?function(e,t,n){return $he.f(e,t,Fhe(1,n))}:function(e,t,n){return e[t]=n,e},qhe=Bde(Function.toString);Yde(Pde.inspectSource)||(Pde.inspectSource=function(e){return qhe(e)});var Uhe,Hhe,Vhe,Whe=Pde.inspectSource,Khe=Tde.WeakMap,Ghe=Yde(Khe)&&/native code/.test(Whe(Khe)),Yhe=Ide("keys"),Xhe=function(e){return Yhe[e]||(Yhe[e]=Gde(e))},Zhe={},Qhe=Tde.TypeError,Jhe=Tde.WeakMap;if(Ghe||Pde.state){var epe=Pde.state||(Pde.state=new Jhe),tpe=Bde(epe.get),npe=Bde(epe.has),rpe=Bde(epe.set);Uhe=function(e,t){if(npe(epe,e))throw new Qhe("Object already initialized");return t.facade=e,rpe(epe,e,t),t},Hhe=function(e){return tpe(epe,e)||{}},Vhe=function(e){return npe(epe,e)}}else{var ipe=Xhe("state");Zhe[ipe]=!0,Uhe=function(e,t){if(Hde(e,ipe))throw new Qhe("Object already initialized");return t.facade=e,zhe(e,ipe,t),t},Hhe=function(e){return Hde(e,ipe)?e[ipe]:{}},Vhe=function(e){return Hde(e,ipe)}}var ope={set:Uhe,get:Hhe,has:Vhe,enforce:function(e){return Vhe(e)?Hhe(e):Uhe(e,{})},getterFor:function(e){return function(t){var n;if(!ghe(t)||(n=Hhe(t)).type!==e)throw Qhe("Incompatible receiver, "+e+" required");return n}}},ape=Function.prototype,spe=phe&&Object.getOwnPropertyDescriptor,lpe=Hde(ape,"name"),upe={EXISTS:lpe,PROPER:lpe&&"something"===function(){}.name,CONFIGURABLE:lpe&&(!phe||phe&&spe(ape,"name").configurable)},cpe=Cde((function(e){var t=upe.CONFIGURABLE,n=ope.get,r=ope.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,l=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Yde(o)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Hde(o,"name")||t&&o.name!==f)&&zhe(o,"name",f),(s=r(o)).source||(s.source=i.join("string"==typeof f?f:""))),e!==Tde?(l?!c&&e[n]&&(u=!0):delete e[n],u?e[n]=o:zhe(e,n,o)):u?e[n]=o:Mde(n,o)})(Function.prototype,"toString",(function(){return Yde(this)&&n(this).source||Whe(this)}))})),fpe=Bde({}.toString),dpe=Bde("".slice),hpe=function(e){return dpe(fpe(e),8,-1)},ppe=fhe("toStringTag"),gpe=Tde.Object,mpe="Arguments"==hpe(function(){return arguments}()),vpe=hhe?hpe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=gpe(e),ppe))?n:mpe?hpe(t):"Object"==(r=hpe(t))&&Yde(t.callee)?"Arguments":r},ype=hhe?{}.toString:function(){return"[object "+vpe(this)+"]"};hhe||cpe(Object.prototype,"toString",ype,{unsafe:!0});var bpe,_pe={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},wpe=yhe("span").classList,xpe=wpe&&wpe.constructor&&wpe.constructor.prototype,Ope=xpe===Object.prototype?void 0:xpe,Spe=Bde(Bde.bind),Cpe=Tde.Object,kpe=Bde("".split),Epe=ihe((function(){return!Cpe("z").propertyIsEnumerable(0)}))?function(e){return"String"==hpe(e)?kpe(e,""):Cpe(e)}:Cpe,Ape=Math.ceil,Tpe=Math.floor,Dpe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Tpe:Ape)(t)},Mpe=Math.min,Ppe=function(e){return e>0?Mpe(Dpe(e),9007199254740991):0},Ipe=function(e){return Ppe(e.length)},jpe=Array.isArray||function(e){return"Array"==hpe(e)},Lpe=function(){},Npe=[],Rpe=Zde("Reflect","construct"),Bpe=/^\s*(?:class|function)\b/,$pe=Bde(Bpe.exec),Fpe=!Bpe.exec(Lpe),zpe=function(e){if(!Yde(e))return!1;try{return Rpe(Lpe,Npe,e),!0}catch(e){return!1}},qpe=!Rpe||ihe((function(){var e;return zpe(zpe.call)||!zpe(Object)||!zpe((function(){e=!0}))||e}))?function(e){if(!Yde(e))return!1;switch(vpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fpe||!!$pe(Bpe,Whe(e))}:zpe,Upe=fhe("species"),Hpe=Tde.Array,Vpe=function(e,t){return new(function(e){var t;return jpe(e)&&(t=e.constructor,(qpe(t)&&(t===Hpe||jpe(t.prototype))||ghe(t)&&null===(t=t[Upe]))&&(t=void 0)),void 0===t?Hpe:t}(e))(0===t?0:t)},Wpe=Bde([].push),Kpe=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(l,u,c,f){for(var d,h,p=qde(l),g=Epe(p),m=function(e,t){return Mhe(e),void 0===t?e:Spe?Spe(e,t):function(){return e.apply(t,arguments)}}(u,c),v=Ipe(g),y=0,b=f||Vpe,_=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(d=g[y],y,p),e))if(t)_[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Wpe(_,d)}else switch(e){case 4:return!1;case 7:Wpe(_,d)}return o?-1:r||i?i:_}},Gpe=[Kpe(0),Kpe(1),Kpe(2),Kpe(3),Kpe(4),Kpe(5),Kpe(6),Kpe(7)][0],Ype=(bpe=[].forEach)&&ihe((function(){bpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Gpe(this,e,arguments.length>1?arguments[1]:void 0)},Xpe=function(e){if(e&&e.forEach!==Ype)try{zhe(e,"forEach",Ype)}catch(i){e.forEach=Ype}};for(var Zpe in _pe)_pe[Zpe]&&Xpe(Tde[Zpe]&&Tde[Zpe].prototype);Xpe(Ope);var Qpe={}.propertyIsEnumerable,Jpe=Object.getOwnPropertyDescriptor,ege={f:Jpe&&!Qpe.call({1:2},1)?function(e){var t=Jpe(this,e);return!!t&&t.enumerable}:Qpe},tge=function(e){return Epe(Fde(e))},nge=Object.getOwnPropertyDescriptor,rge={f:phe?nge:function(e,t){if(e=tge(e),t=Nhe(t),bhe)try{return nge(e,t)}catch(e){}if(Hde(e,t))return Fhe(!She(ege.f,e,t),e[t])}},ige=Math.max,oge=Math.min,age=function(e,t){var n=Dpe(e);return n<0?ige(n+t,0):oge(n,t)},sge=function(e){return function(t,n,r){var i,o=tge(t),a=Ipe(o),s=age(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},lge=(sge(!0),sge(!1)),uge=Bde([].push),cge=function(e,t){var n,r=tge(e),i=0,o=[];for(n in r)!Hde(Zhe,n)&&Hde(r,n)&&uge(o,n);for(;t.length>i;)Hde(r,n=t[i++])&&(~lge(o,n)||uge(o,n));return o},fge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dge=fge.concat("length","prototype"),hge={f:Object.getOwnPropertyNames||function(e){return cge(e,dge)}},pge={f:Object.getOwnPropertySymbols},gge=Bde([].concat),mge=Zde("Reflect","ownKeys")||function(e){var t=hge.f(xhe(e)),n=pge.f;return n?gge(t,n(e)):t},vge=function(e,t){for(var n=mge(t),r=$he.f,i=rge.f,o=0;o<n.length;o++){var a=n[o];Hde(e,a)||r(e,a,i(t,a))}},yge=/#|\.prototype\./,bge=function(e,t){var n=wge[_ge(e)];return n==Oge||n!=xge&&(Yde(t)?ihe(t):!!t)},_ge=bge.normalize=function(e){return String(e).replace(yge,".").toLowerCase()},wge=bge.data={},xge=bge.NATIVE="N",Oge=bge.POLYFILL="P",Sge=bge,Cge=rge.f,kge=function(e,t){var n,r,i,o,a,s=e.target,l=e.global,u=e.stat;if(n=l?Tde:u?Tde[s]||Mde(s,{}):(Tde[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Cge(n,r))&&a.value:n[r],!Sge(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;vge(o,i)}(e.sham||i&&i.sham)&&zhe(o,"sham",!0),cpe(n,r,o,e)}},Ege=Object.keys||function(e){return cge(e,fge)},Age=Object.assign,Tge=Object.defineProperty,Dge=Bde([].concat),Mge=!Age||ihe((function(){if(phe&&1!==Age({b:1},Age(Tge({},"a",{enumerable:!0,get:function(){Tge(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!=Age({},e)[n]||Ege(Age({},t)).join("")!=r}))?function(e,t){for(var n=qde(e),r=arguments.length,i=1,o=pge.f,a=ege.f;r>i;)for(var s,l=Epe(arguments[i++]),u=o?Dge(Ege(l),o(l)):Ege(l),c=u.length,f=0;c>f;)s=u[f++],phe&&!She(a,l,s)||(n[s]=l[s]);return n}:Age;kge({target:"Object",stat:!0,forced:Object.assign!==Mge},{assign:Mge});var Pge=Cde((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var u=r[e];return r[e]=a,i.languages.DFS(i.languages,(function(t,n){n===u&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],u=i.util.type(l);"Object"!==u||o[a(l)]?"Array"!==u||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(n,r,o){var a=i.util.getLanguage(n),s=i.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var l=n.parentElement;l&&"pre"===l.nodeName.toLowerCase()&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var u={element:n,language:a,grammar:s,code:n.textContent};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),o&&o.call(u.element)}if(i.hooks.run("before-sanity-check",u),(l=u.element.parentElement)&&"pre"===l.nodeName.toLowerCase()&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!u.code)return i.hooks.run("complete",u),void(o&&o.call(u.element));if(i.hooks.run("before-highlight",u),u.grammar)if(r&&e.Worker){var f=new Worker(i.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language));else c(i.util.encode(u.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run("before-tokenize",r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new l;return u(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,l,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var h=n[d];h=Array.isArray(h)?h:[h];for(var p=0;p<h.length;++p){if(f&&f.cause==d+","+p)return;var g=h[p],m=g.inside,v=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var _=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,_+"g")}for(var w=g.pattern||g,x=r.next,O=l;x!==t.tail&&!(f&&O>=f.reach);O+=x.value.length,x=x.next){var S=x.value;if(t.length>e.length)return;if(!(S instanceof o)){var C,k=1;if(y){if(!(C=a(w,O,e,v)))break;var E=C.index,A=C.index+C[0].length,T=O;for(T+=x.value.length;E>=T;)T+=(x=x.next).value.length;if(O=T-=x.value.length,x.value instanceof o)continue;for(var D=x;D!==t.tail&&(T<A||"string"==typeof D.value);D=D.next)k++,T+=D.value.length;k--,S=e.slice(O,T),C.index-=O}else if(!(C=a(w,0,S,v)))continue;E=C.index;var M=C[0],P=S.slice(0,E),I=S.slice(E+M.length),j=O+S.length;f&&j>f.reach&&(f.reach=j);var L=x.prev;if(P&&(L=u(t,L,P),O+=P.length),c(t,L,k),x=u(t,L,new o(d,m?i.tokenize(M,m):M,b,M)),I&&u(t,x,I),k>1){var N={cause:d+","+p,reach:j};s(e,t,n,x.prev,O,N),f&&N.reach>f.reach&&(f.reach=N.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function c(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()}),!1),i):i;var f=i.util.currentScript();function d(){i.manual||i.highlightAll()}if(f&&(i.filename=f.src,f.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var h=document.readyState;"loading"===h||"interactive"===h&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */e.exports&&(e.exports=t),void 0!==Sde&&(Sde.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(i){var o=i.element;if(o.matches(r)){i.code="",o.setAttribute(n,"loading");var s=o.appendChild(document.createElement("CODE"));s.textContent="Loading…";var l=o.getAttribute("data-src"),u=i.language;if("none"===u){var c=(/\.(\w+)$/.exec(l)||[,"none"])[1];u=e[c]||c}a(s,u),a(o,u);var f=t.plugins.autoloader;f&&f.loadLanguages(u);var d=new XMLHttpRequest;d.open("GET",l,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(o.setAttribute(n,"loaded"),s.textContent=d.responseText,t.highlightElement(s)):(o.setAttribute(n,"failed"),d.status>=400?s.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:s.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),o=0;n=i[o++];)t.highlightElement(n)}};var o=!1;t.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(i," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=o(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:a(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=a(i);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(l+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=a(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var i="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",o="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(o),c=RegExp(l(i+" "+o+" "+a+" "+s)),f=l(o+" "+a+" "+s),d=l(i+" "+o+" "+s),h=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),p=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[g,h]),v=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,y]),_=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,p,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[_]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,v,y]),O={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,C=/"(?:\\.|[^\\"\r\n])*"/.source,k=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:O},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:O},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,m]),lookbehind:!0,inside:O},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:O},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:O},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:O}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:O},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,v]),inside:O,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:O,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,h]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(h),alias:"class-name",inside:O}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,m,g,x,c.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,p]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:O},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var E=C+"|"+S,A=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[E]),T=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),D=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,M=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[D,M]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[D]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,P]),L=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[E]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,P]);function R(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:R(j,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:R(N,L)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,a=0;a<i.length;a++)o[i[a]]=e.languages.bash[i[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else e(i.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,i=t.classes.length;r<i;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);if(u){n=u[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n)):s[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Ige=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function jge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+jge(t)}),0)}var Lge,Nge=Tde.String,Rge=function(e){if("Symbol"===vpe(e))throw TypeError("Cannot convert a Symbol value to a string");return Nge(e)},Bge=function(){var e=xhe(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},$ge=Tde.RegExp,Fge=ihe((function(){var e=$ge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),zge=Fge||ihe((function(){return!$ge("a","y").sticky})),qge={BROKEN_CARET:Fge||ihe((function(){var e=$ge("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:zge,UNSUPPORTED_Y:Fge},Uge=phe?Object.defineProperties:function(e,t){xhe(e);for(var n,r=tge(t),i=Ege(t),o=i.length,a=0;o>a;)$he.f(e,n=i[a++],r[n]);return e},Hge=Zde("document","documentElement"),Vge=Xhe("IE_PROTO"),Wge=function(){},Kge=function(e){return"<script>"+e+"<\/script>"},Gge=function(e){e.write(Kge("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yge=function(){try{Lge=new ActiveXObject("htmlfile")}catch(e){}var e,t;Yge="undefined"!=typeof document?document.domain&&Lge?Gge(Lge):((t=yhe("iframe")).style.display="none",Hge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kge("document.F=Object")),e.close(),e.F):Gge(Lge);for(var n=fge.length;n--;)delete Yge.prototype[fge[n]];return Yge()};Zhe[Vge]=!0;var Xge,Zge,Qge=Object.create||function(e,t){var n;return null!==e?(Wge.prototype=xhe(e),n=new Wge,Wge.prototype=null,n[Vge]=e):n=Yge(),void 0===t?n:Uge(n,t)},Jge=Tde.RegExp,eme=ihe((function(){var e=Jge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),tme=Tde.RegExp,nme=ihe((function(){var e=tme("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),rme=ope.get,ime=Ide("native-string-replace",String.prototype.replace),ome=RegExp.prototype.exec,ame=ome,sme=Bde("".charAt),lme=Bde("".indexOf),ume=Bde("".replace),cme=Bde("".slice),fme=(Zge=/b*/g,She(ome,Xge=/a/,"a"),She(ome,Zge,"a"),0!==Xge.lastIndex||0!==Zge.lastIndex),dme=qge.BROKEN_CARET,hme=void 0!==/()??/.exec("")[1];(fme||hme||dme||eme||nme)&&(ame=function(e){var t,n,r,i,o,a,s,l=this,u=rme(l),c=Rge(e),f=u.raw;if(f)return f.lastIndex=l.lastIndex,t=She(ame,f,c),l.lastIndex=f.lastIndex,t;var d=u.groups,h=dme&&l.sticky,p=She(Bge,l),g=l.source,m=0,v=c;if(h&&(p=ume(p,"y",""),-1===lme(p,"g")&&(p+="g"),v=cme(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==sme(c,l.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),hme&&(n=new RegExp("^"+g+"$(?!\\s)",p)),fme&&(r=l.lastIndex),i=She(ome,h?n:l,v),h?i?(i.input=cme(i.input,m),i[0]=cme(i[0],m),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:fme&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),hme&&i&&i.length>1&&She(ime,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&d)for(i.groups=a=Qge(null),o=0;o<d.length;o++)a[(s=d[o])[0]]=i[s[1]];return i});var pme=ame;kge({target:"RegExp",proto:!0,forced:/./.exec!==pme},{exec:pme});var gme=Function.prototype,mme=gme.apply,vme=gme.bind,yme=gme.call,bme="object"==typeof Reflect&&Reflect.apply||(vme?yme.bind(mme):function(){return yme.apply(mme,arguments)}),_me=fhe("species"),wme=RegExp.prototype,xme=fhe("match"),Ome=Tde.TypeError,Sme=fhe("species"),Cme=Bde("".charAt),kme=Bde("".charCodeAt),Eme=Bde("".slice),Ame=function(e){return function(t,n){var r,i,o=Rge(Fde(t)),a=Dpe(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=kme(o,a))<55296||r>56319||a+1===s||(i=kme(o,a+1))<56320||i>57343?e?Cme(o,a):r:e?Eme(o,a,a+2):i-56320+(r-55296<<10)+65536}},Tme=(Ame(!1),Ame(!0)),Dme=function(e,t,n){return t+(n?Tme(e,t).length:1)},Mme=Tde.Array,Pme=Math.max,Ime=function(e,t,n){for(var r,i,o,a,s=Ipe(e),l=age(t,s),u=age(void 0===n?s:n,s),c=Mme(Pme(u-l,0)),f=0;l<u;l++,f++)r=c,i=f,o=e[l],(a=Nhe(i))in r?$he.f(r,a,Fhe(0,o)):r[a]=o;return c.length=f,c},jme=Tde.TypeError,Lme=function(e,t){var n=e.exec;if(Yde(n)){var r=She(n,e,t);return null!==r&&xhe(r),r}if("RegExp"===hpe(e))return She(pme,e,t);throw jme("RegExp#exec called on incompatible receiver")},Nme=qge.UNSUPPORTED_Y,Rme=Math.min,Bme=[].push,$me=Bde(/./.exec),Fme=Bde(Bme),zme=Bde("".slice);!function(e,t,n,r){var i=fhe(e),o=!ihe((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!ihe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[_me]=function(){return t},t.flags="",t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](""),!e}));if(!o||!a||n){var s=Bde(/./[i]),l=function(e,t,n){var r;return r="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 r,i,o=Rge(Fde(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!ghe(r=e)||!(void 0!==(i=r[xme])?i:"RegExp"==hpe(r)))return She(t,o,e,a);for(var s,l,u,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=new RegExp(e.source,f+"g");(s=She(pme,h,o))&&!((l=h.lastIndex)>d&&(Fme(c,zme(o,d,s.index)),s.length>1&&s.index<o.length&&bme(Bme,c,Ime(s,1)),u=s[0].length,d=l,c.length>=a));)h.lastIndex===s.index&&h.lastIndex++;return d===o.length?!u&&$me(h,"")||Fme(c,""):Fme(c,zme(o,d)),c.length>a?Ime(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:She(t,this,e,n)}:t,[function(t,n){var i=Fde(this),o=null==t?void 0:Phe(t,e);return o?She(o,t,i,n):She(r,Rge(i),t,n)},function(e,i){var o=xhe(this),a=Rge(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var l=function(e,t){var n,r=xhe(e).constructor;return void 0===r||null==(n=xhe(r)[Sme])?t:function(e){if(qpe(e))return e;throw Ome(The(e)+" is not a constructor")}(n)}(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Nme?"g":"y"),f=new l(Nme?"^(?:"+o.source+")":o,c),d=void 0===i?4294967295:i>>>0;if(0===d)return[];if(0===a.length)return null===Lme(f,a)?[a]:[];for(var h=0,p=0,g=[];p<a.length;){f.lastIndex=Nme?0:p;var m,v=Lme(f,Nme?zme(a,p):a);if(null===v||(m=Rme(Ppe(f.lastIndex+(Nme?p:0)),a.length))===h)p=Dme(a,p,u);else{if(Fme(g,zme(a,h,p)),g.length===d)return g;for(var y=1;y<=v.length-1;y++)if(Fme(g,v[y]),g.length===d)return g;p=h=m}}return Fme(g,zme(a,h)),g}]}(i,""[e],(function(e,t,n,r,i){var a=Bde(e),l=t.exec;return l===pme||l===wme.exec?o&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));cpe(String.prototype,e,l[0]),cpe(wme,i,l[1])}r&&zhe(wme[i],"sham",!0)}("split",0,!!ihe((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]})),Nme),kge({global:!0},{globalThis:Tde}),Wh&&(qh.fn.attr=Wh);var qme=upe.PROPER,Ume=RegExp.prototype,Hme=Ume.toString,Vme=Bde(Bge),Wme=ihe((function(){return"/a/b"!=Hme.call({source:"a",flags:"b"})})),Kme=qme&&"toString"!=Hme.name;(Wme||Kme)&&cpe(RegExp.prototype,"toString",(function(){var e=xhe(this),t=Rge(e.source),n=e.flags;return"/"+t+"/"+Rge(void 0===n&&Che(Ume,e)&&!("flags"in Ume)?Vme(e):n)}),{unsafe:!0});var Gme=function(){function e(){this.title=VI("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!kf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};wd.setNodes(e,n,{match:function(e){return nA.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=nA.getSelectedNodeByType(e,"code");if(null==t)return null;var n=nA.getParentNode(e,t);return kf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Yme={renderStyle:function(e,t){var n=e,r=t,i="";return Ige.forEach((function(e){n[e]&&(i=e)})),i&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,i="token "+i),r},parseStyleHtml:function(e,t,n){var r=qh(e);if(!kf.isElement(t))return t;if("code"!==nA.getNodeType(t))return t;var i=t,o=r.attr("class")||"";return 0===o.indexOf("language-")?i.language=o.split("-")[1]||"":i.language=o.toLowerCase(),i},menus:[{key:"codeSelectLang",factory:function(){return new Gme},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Xme=/"/g,Zme=Bde("".replace);kge({target:"String",proto:!0,forced:ihe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Rge(Fde(this)),r="<a",(r+=' name="'+Zme(Rge(t),Xme,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Qme=function(e){var t,n,r,i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(e,2),o=i[0],a=i[1],s=[],l=function(e){if(!rd.isText(e))return null;var t=nA.getParentNode(null,e);if(t&&"code"===nA.getNodeType(t)){var n=nA.getParentNode(null,t);if(n&&"pre"===nA.getNodeType(n))return t}return null}(o);if(null==l)return s;var u=l.language,c=void 0===u?"":u;if(!c)return s;var f=function(e,t){if(!t)return[];var n=Pge.languages[t];return n?Pge.tokenize(e.text,n):[]}(o,c),d=0;try{for(var h=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),p=h.next();!p.done;p=h.next()){var g=p.value,m=d+jge(g);"string"!=typeof g&&s.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:m},r)),d=m}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return s},Jme=function(){return Jme=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Jme.apply(this,arguments)},eve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Jme(Jme({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Jme(Jme({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Jme(Jme({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Jme(Jme({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,i=e.config,o=sk(sk({},i),t||{});if(null!=oA[n])throw new Error("Duplicated key '"+n+"' in menu items");oA[n]=r,function(e,t){null!=t&&(iA[e]=t)}(n,o)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;UM[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){qM.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;yA[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){vA.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){aD.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;lD[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){sD.push(e)}(e)},e.registerModule=function(e){tve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function tve(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,o=e.styleToHtml,a=e.preParseHtml,s=e.parseElemsHtml,l=e.parseStyleHtml,u=e.editorPlugin;t&&t.forEach((function(e){return eve.registerMenu(e)})),n&&n.forEach((function(e){return eve.registerRenderElem(e)})),r&&eve.registerRenderStyle(r),i&&i.forEach((function(e){return eve.registerElemToHtml(e)})),o&&eve.registerStyleToHtml(o),a&&a.forEach((function(e){return eve.registerPreParseHtml(e)})),s&&s.forEach((function(e){return eve.registerParseElemHtml(e)})),l&&eve.registerParseStyleHtml(l),u&&eve.registerPlugin(u)}QK.forEach((function(e){return tve(e)})),tve(y0),tve(t6),tve(Cie),tve(Ode),tve(Yme);var nve='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',rve={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},ive={hoverbarKeys:Jme(Jme({},rve),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};eve.setEditorConfig(Jme(Jme({},ive),{decorate:Qme}));var ove={hoverbarKeys:rve};eve.setSimpleEditorConfig(Jme(Jme({},ove),{decorate:Qme}));var ave={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:VI("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:VI("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:VI("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:VI("editor.image"),iconSvg:nve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:VI("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};eve.setToolbarConfig(ave);var sve={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:VI("editor.image"),iconSvg:nve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function lve(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,i=void 0===r?[]:r,o=e.html,a=e.config,s=void 0===a?{}:a,l=e.mode,u="simple"===(void 0===l?"default":l)?eve.simpleEditorConfig:eve.editorConfig,c=Jme(Jme({},u.hoverbarKeys||{}),s.hoverbarKeys||{});return $P({selector:n,config:Jme(Jme(Jme({},u),s),{hoverbarKeys:c}),content:i,html:o,plugins:eve.plugins})}function uve(e){var t=e.selector,n=e.editor,r=e.config,i=void 0===r?{}:r,o=e.mode,a=void 0===o?"default":o;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var s="simple"===a?eve.simpleToolbarConfig:eve.toolbarConfig,l=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,i=void 0===r?{}:r;if(function(e,t){return FD(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var o=sk({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}),a=new HP(n,o);return cE.set(a,e),fE.set(e,a),a}(n,{selector:t,config:Jme(Jme({},s),i)});return l}eve.setSimpleToolbarConfig(sve);var cve={}}.call(this,n("c8ba"))},cbe5:function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var r=n("9ab4"),i=n("19eb"),o=n("20c8"),a=n("9680"),s=n("4a3f");function l(e,t,n,r,i,o,a,l,u,c,f){if(0===u)return!1;var d=u;if(f>t+d&&f>r+d&&f>o+d&&f>l+d||f<t-d&&f<r-d&&f<o-d&&f<l-d||c>e+d&&c>n+d&&c>i+d&&c>a+d||c<e-d&&c<n-d&&c<i-d&&c<a-d)return!1;var h=s["e"](e,t,n,r,i,o,a,l,c,f,null);return h<=d/2}var u=n("68ab"),c=n("857d"),f=2*Math.PI;function d(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var d=Math.sqrt(s*s+l*l);if(d-u>n||d+u<n)return!1;if(Math.abs(r-i)%f<1e-4)return!0;if(o){var h=r;r=Object(c["a"])(i),i=Object(c["a"])(h)}else r=Object(c["a"])(r),i=Object(c["a"])(i);r>i&&(i+=f);var p=Math.atan2(l,s);return p<0&&(p+=f),p>=r&&p<=i||p+f>=r&&p+f<=i}var h=n("8728"),p=o["a"].CMD,g=2*Math.PI,m=1e-4;function v(e,t){return Math.abs(e-t)<m}var y=[-1,-1,-1],b=[-1,-1];function _(){var e=b[0];b[0]=b[1],b[1]=e}function w(e,t,n,r,i,o,a,l,u,c){if(c>t&&c>r&&c>o&&c>l||c<t&&c<r&&c<o&&c<l)return 0;var f=s["f"](t,r,o,l,c,y);if(0===f)return 0;for(var d=0,h=-1,p=void 0,g=void 0,m=0;m<f;m++){var v=y[m],w=0===v||1===v?.5:1,x=s["a"](e,n,i,a,v);x<u||(h<0&&(h=s["c"](t,r,o,l,b),b[1]<b[0]&&h>1&&_(),p=s["a"](t,r,o,l,b[0]),h>1&&(g=s["a"](t,r,o,l,b[1]))),2===h?v<b[0]?d+=p<t?w:-w:v<b[1]?d+=g<p?w:-w:d+=l<g?w:-w:v<b[0]?d+=p<t?w:-w:d+=l<p?w:-w)}return d}function x(e,t,n,r,i,o,a,l){if(l>t&&l>r&&l>o||l<t&&l<r&&l<o)return 0;var u=s["m"](t,r,o,l,y);if(0===u)return 0;var c=s["j"](t,r,o);if(c>=0&&c<=1){for(var f=0,d=s["h"](t,r,o,c),h=0;h<u;h++){var p=0===y[h]||1===y[h]?.5:1,g=s["h"](e,n,i,y[h]);g<a||(y[h]<c?f+=d<t?p:-p:f+=o<d?p:-p)}return f}p=0===y[0]||1===y[0]?.5:1,g=s["h"](e,n,i,y[0]);return g<a?0:o<t?p:-p}function O(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);y[0]=-l,y[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=g-1e-4){r=0,i=g;var c=o?1:-1;return a>=y[0]+e&&a<=y[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=g,i+=g);for(var d=0,h=0;h<2;h++){var p=y[h];if(p+e>a){var m=Math.atan2(s,p);c=o?1:-1;m<0&&(m=g+m),(m>=r&&m<=i||m+g>=r&&m+g<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),d+=c)}}return d}function S(e,t,n,r,i){for(var o,s,c=e.data,f=e.len(),g=0,m=0,y=0,b=0,_=0,S=0;S<f;){var C=c[S++],k=1===S;switch(C===p.M&&S>1&&(n||(g+=Object(h["a"])(m,y,b,_,r,i))),k&&(m=c[S],y=c[S+1],b=m,_=y),C){case p.M:b=c[S++],_=c[S++],m=b,y=_;break;case p.L:if(n){if(a["a"](m,y,c[S],c[S+1],t,r,i))return!0}else g+=Object(h["a"])(m,y,c[S],c[S+1],r,i)||0;m=c[S++],y=c[S++];break;case p.C:if(n){if(l(m,y,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],t,r,i))return!0}else g+=w(m,y,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],r,i)||0;m=c[S++],y=c[S++];break;case p.Q:if(n){if(u["a"](m,y,c[S++],c[S++],c[S],c[S+1],t,r,i))return!0}else g+=x(m,y,c[S++],c[S++],c[S],c[S+1],r,i)||0;m=c[S++],y=c[S++];break;case p.A:var E=c[S++],A=c[S++],T=c[S++],D=c[S++],M=c[S++],P=c[S++];S+=1;var I=!!(1-c[S++]);o=Math.cos(M)*T+E,s=Math.sin(M)*D+A,k?(b=o,_=s):g+=Object(h["a"])(m,y,o,s,r,i);var j=(r-E)*D/T+E;if(n){if(d(E,A,D,M,M+P,I,t,j,i))return!0}else g+=O(E,A,D,M,M+P,I,j,i);m=Math.cos(M+P)*T+E,y=Math.sin(M+P)*D+A;break;case p.R:b=m=c[S++],_=y=c[S++];var L=c[S++],N=c[S++];if(o=b+L,s=_+N,n){if(a["a"](b,_,o,_,t,r,i)||a["a"](o,_,o,s,t,r,i)||a["a"](o,s,b,s,t,r,i)||a["a"](b,s,b,_,t,r,i))return!0}else g+=Object(h["a"])(o,_,o,s,r,i),g+=Object(h["a"])(b,s,b,_,r,i);break;case p.Z:if(n){if(a["a"](m,y,b,_,t,r,i))return!0}else g+=Object(h["a"])(m,y,b,_,r,i);m=b,y=_;break}}return n||v(y,_)||(g+=Object(h["a"])(m,y,b,_,r,i)||0),0!==g}function C(e,t,n){return S(e,0,!1,t,n)}function k(e,t,n,r){return S(e,t,!0,n,r)}var E=n("6d8b"),A=n("41ef"),T=n("2cf4"),D=n("4bc4"),M=n("8582"),P=Object(E["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i["b"]),I={style:Object(E["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i["a"].style)},j=M["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),L=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<j.length;++s)i[j[s]]=this[j[s]];i.__dirty|=D["a"]}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(E["keys"])(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?Object(E["extend"])(this.style,a):this.useStyle(a):"shape"===o?Object(E["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(E["isString"])(e)){var t=Object(A["lum"])(e,0);return t>.5?T["a"]:t>.2?T["c"]:T["d"]}if(e)return T["d"]}return T["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(E["isString"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(A["lum"])(e,0)<T["b"];if(r===i)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~D["b"]},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 o["a"](!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 r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&D["b"])&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.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),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),k(o,a/s,e,t)))return!0}if(this.hasFill())return C(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=D["b"],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(E["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&D["b"])},t.prototype.createStyle=function(e){return Object(E["createObject"])(P,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(E["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(E["extend"])({},r.shape),Object(E["extend"])(s,n.shape)):(s=Object(E["extend"])({},i?this.shape:r.shape),Object(E["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(E["extend"])({},this.shape);for(var u={},c=Object(E["keys"])(s),f=0;f<c.length;f++){var d=c[f];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return I},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return Object(r["a"])(n,t),n.prototype.getDefaultStyle=function(){return Object(E["clone"])(e.style)},n.prototype.getDefaultShape=function(){return Object(E["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=D["a"]|D["c"]|D["b"]}(),t}(i["c"]);t["b"]=L},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cc15:function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},cca6:function(e,t,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cccd:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("e0d3");function i(){var e=Object(r["o"])();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}},cdd9:function(e,t,n){(function(e){(function(t){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(){},i=function(e){return function(){return e}},o=function(e){return e},a=function(e){return function(){throw new Error(e)}},s=i(!1),l=i(!0),u=function(){return c},c=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},o={fold:function(e,t){return e()},is:s,isSome:s,isNone:l,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:n,orThunk:t,map:u,each:r,bind:u,exists:s,forall:l,filter:u,equals:e,equals_:e,toArray:function(){return[]},toString:i("none()")};return Object.freeze&&Object.freeze(o),o}(),f=function(e){var t=i(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:l,isNone:s,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return f(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:c},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(s,(function(t){return n(e,t)}))}};return o},d=function(e){return null===e||void 0===e?c:f(e)},h={some:f,none:u,from:d},p=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},g=function(e){return function(t){return p(t)===e}},m=g("string"),v=g("object"),y=g("array"),b=g("boolean"),_=g("function"),w=Array.prototype.slice,x=Array.prototype.push,O=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},S=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!y(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);x.apply(t,e[n])}return t},C=function(e){return 0===e.length?h.none():h.some(e[0])},k=(_(Array.from)&&Array.from,function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)}),E={},A={exports:E};(function(t,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof t&&t.amd)t([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};t[s][0].call(f.exports,(function(e){var n=t[s][1][e];return o(n||e)}),f,f.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!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{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,f=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?f=c.concat(f):h=-1,f.length&&g())}function g(){if(!d){var e=l(p);d=!0;var t=f.length;while(t){c=f,f=[];while(++h<t)c&&c[h].run();h=-1,t=f.length}c=null,d=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}o.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];f.push(new m(e,t)),1!==f.length||d||l(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}l(t.promise,r)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,E,A,void 0);var T=A.exports.boltExport,D=function(e){var n=h.none(),r=[],i=function(e){return D((function(t){o((function(n){t(e(n))}))}))},o=function(e){s()?u(e):r.push(e)},a=function(e){n=h.some(e),l(r),r=[]},s=function(){return n.isSome()},l=function(e){O(e,u)},u=function(e){n.each((function(n){t.setTimeout((function(){e(n)}),0)}))};return e(a),{get:o,map:i,isReady:s}},M=function(e){return D((function(t){t(e)}))},P={nu:D,pure:M},I=function(e){t.setTimeout((function(){throw e}),0)},j=function(e){var t=function(t){e().then(t,I)},n=function(t){return j((function(){return e().then(t)}))},r=function(t){return j((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return j((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return P.nu(t)},a=function(){var t=null;return j((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},L=function(e){return j((function(){return new T(e)}))},N=function(e){return j((function(){return T.resolve(e)}))},R={nu:L,pure:N},B=function(e){var t=function(t){return e===t},n=function(t){return B(e)},r=function(t){return B(e)},o=function(t){return B(t(e))},a=function(t){return B(e)},u=function(t){t(e)},c=function(t){return t(e)},f=function(t,n){return n(e)},d=function(t){return t(e)},p=function(t){return t(e)},g=function(){return h.some(e)};return{is:t,isValue:l,isError:s,getOr:i(e),getOrThunk:i(e),getOrDie:i(e),or:n,orThunk:r,fold:f,map:o,mapError:a,each:u,bind:c,exists:d,forall:p,toOption:g}},$=function(e){var t=function(e){return e()},n=function(){return a(String(e))()},i=function(e){return e},u=function(e){return e()},c=function(t){return $(e)},f=function(t){return $(t(e))},d=function(t){return $(e)},p=function(t,n){return t(e)};return{is:s,isValue:s,isError:l,getOr:o,getOrThunk:t,getOrDie:n,or:i,orThunk:u,fold:p,map:c,mapError:f,each:r,bind:d,exists:s,forall:l,toOption:h.none}},F=function(e,t){return e.fold((function(){return $(t)}),B)},z={value:B,error:$,fromOption:F},q=function(e){var n=function(){return q(e.toCached())},r=function(t){return q(e.bind((function(e){return e.fold((function(e){return R.pure(z.error(e))}),(function(e){return t(e)}))})))},i=function(t){return q(e.map((function(e){return e.bind(t)})))},o=function(t){return q(e.map((function(e){return e.map(t)})))},a=function(t){return q(e.map((function(e){return e.mapError(t)})))},s=function(t,n){return e.map((function(e){return e.fold(t,n)}))},l=function(n,r){return q(R.nu((function(i){var o=!1,a=t.setTimeout((function(){o=!0,i(z.error(r()))}),n);e.get((function(e){o||(t.clearTimeout(a),i(e))}))})))};return k(k({},e),{toCached:n,bindFuture:r,bindResult:i,mapResult:o,mapError:a,foldResult:s,withTimeout:l})},U=function(e){return q(R.nu(e))},H=function(e){return q(R.pure(z.value(e)))},V=function(e){return q(R.pure(z.error(e)))},W=function(e){return q(R.pure(e))},K=function(e){return q(e.map(z.value))},G=function(e){return U((function(t){e.then((function(e){t(z.value(e))}),(function(e){t(z.error(e))}))}))},Y={nu:U,wrap:q,pure:H,value:H,error:V,fromResult:W,fromFuture:K,fromPromise:G},X=Object.prototype.hasOwnProperty,Z=function(e,t){return t},Q=function(e,t){var n=v(e)&&v(t);return n?ee(e,t):t},J=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)X.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},ee=J(Q),te=J(Z),ne=function(e){var t={name:"src",type:"urlinput",filetype:"image",label:"Source"},n=e.imageList.map((function(e){return{name:"images",type:"selectbox",label:"Image list",items:e}})),r={name:"alt",type:"input",label:"Image description"},i={name:"title",type:"input",label:"Image title"},o={name:"dimensions",type:"sizeinput"},a=e.classList.map((function(e){return{name:"classes",type:"selectbox",label:"Class",items:e}})),s={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]};return S([[t],n.toArray(),e.hasDescription?[r]:[],e.hasImageTitle?[i]:[],e.hasDimensions?[o]:[],[{type:"grid",columns:2,items:S([a.toArray(),e.hasImageCaption?[s]:[]])}]])},re=function(e){return{title:"General",name:"general",items:ne(e)}},ie={makeTab:re,makeItems:ne},oe=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),ae=tinymce.util.Tools.resolve("tinymce.util.Promise"),se=tinymce.util.Tools.resolve("tinymce.util.XHR"),le=function(e){return e.getParam("image_dimensions",!0,"boolean")},ue=function(e){return e.getParam("image_advtab",!1,"boolean")},ce=function(e){return e.getParam("image_uploadtab",!0,"boolean")},fe=function(e){return e.getParam("image_prepend_url","","string")},de=function(e){return e.getParam("image_class_list")},he=function(e){return e.getParam("image_description",!0,"boolean")},pe=function(e){return e.getParam("image_title",!1,"boolean")},ge=function(e){return e.getParam("image_caption",!1,"boolean")},me=function(e){return e.getParam("image_list",!1)},ve=function(e){return!!be(e)},ye=function(e){return!!_e(e)},be=function(e){return e.getParam("images_upload_url","","string")},_e=function(e){return e.getParam("images_upload_handler",void 0,"function")},we=function(e){return e.getParam("images_upload_base_path",void 0,"string")},xe=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Oe={hasDimensions:le,hasUploadTab:ce,hasAdvTab:ue,getPrependUrl:fe,getClassList:de,hasDescription:he,hasImageTitle:pe,hasImageCaption:ge,getImageList:me,hasUploadUrl:ve,hasUploadHandler:ye,getUploadUrl:be,getUploadHandler:_e,getUploadBasePath:we,getUploadCredentials:xe},Se=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},Ce=function(e,n){var r=t.document.createElement("img"),i=function(e){r.parentNode&&r.parentNode.removeChild(r),n(e)};r.onload=function(){var e=Se(r.width,r.clientWidth),t=Se(r.height,r.clientHeight),n={width:e,height:t};i(z.value(n))},r.onerror=function(){i(z.error("Failed to get image dimensions for: "+e))};var o=r.style;o.visibility="hidden",o.position="fixed",o.bottom=o.left="0px",o.width=o.height="auto",t.document.body.appendChild(r),r.src=e},ke=function(e){return e&&(e=e.replace(/px$/,"")),e},Ee=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},Ae=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},Te=function(e,t){var n=Oe.getImageList(e);"string"===typeof n?se.send({url:n,success:function(e){t(JSON.parse(e))}}):"function"===typeof n?n(t):t(n)},De=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!Oe.hasDimensions(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},Me=function(e){return new ae((function(n,r){var i=new t.FileReader;i.onload=function(){n(i.result)},i.onerror=function(){r(i.error.message)},i.readAsDataURL(e)}))},Pe=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},Ie={getImageSize:Ce,removePixelSuffix:ke,addPixelSuffix:Ee,mergeMargins:Ae,createImageList:Te,waitLoadImage:De,blobToDataUri:Me,isPlaceholderImage:Pe},je=oe.DOM,Le=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?Ie.removePixelSuffix(e.style.marginLeft):""},Ne=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?Ie.removePixelSuffix(e.style.marginTop):""},Re=function(e){return e.style.borderWidth?Ie.removePixelSuffix(e.style.borderWidth):""},Be=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},$e=function(e,t){return e.style[t]?e.style[t]:""},Fe=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},ze=function(e,t,n){e.setAttribute(t,n)},qe=function(e){var t=je.create("figure",{class:"image"});je.insertAfter(t,e),t.appendChild(e),t.appendChild(je.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Ue=function(e){var t=e.parentNode;je.insertAfter(e,t),je.remove(t)},He=function(e){Fe(e)?Ue(e):qe(e)},Ve=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},We=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=Ie.addPixelSuffix(r),Ve(e,t)):ze(e,n,r)}},Ke=function(e,t){return e.style[t]?Ie.removePixelSuffix(e.style[t]):Be(e,t)},Ge=function(e,t){var n=Ie.addPixelSuffix(t);e.style.marginLeft=n,e.style.marginRight=n},Ye=function(e,t){var n=Ie.addPixelSuffix(t);e.style.marginTop=n,e.style.marginBottom=n},Xe=function(e,t){var n=Ie.addPixelSuffix(t);e.style.borderWidth=n},Ze=function(e,t){e.style.borderStyle=t},Qe=function(e){return $e(e,"borderStyle")},Je=function(e){return"FIGURE"===e.nodeName},et=function(e){return"IMG"===e.nodeName},tt=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:""}},nt=function(e,n){var r=t.document.createElement("img");return ze(r,"style",n.style),(Le(r)||""!==n.hspace)&&Ge(r,n.hspace),(Ne(r)||""!==n.vspace)&&Ye(r,n.vspace),(Re(r)||""!==n.border)&&Xe(r,n.border),(Qe(r)||""!==n.borderStyle)&&Ze(r,n.borderStyle),e(r.getAttribute("style"))},rt=function(e,n){var r=t.document.createElement("img");if(st(e,te(n,{caption:!1}),r),ze(r,"alt",n.alt),n.caption){var i=je.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(je.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},it=function(e,t){return{src:Be(t,"src"),alt:Be(t,"alt"),title:Be(t,"title"),width:Ke(t,"width"),height:Ke(t,"height"),class:Be(t,"class"),style:e(Be(t,"style")),caption:Fe(t),hspace:Le(t),vspace:Ne(t),border:Re(t),borderStyle:$e(t,"borderStyle")}},ot=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},at=function(e,t){return function(n,r,i){e(n,i),Ve(n,t)}},st=function(e,t,n){var r=it(e,n);ot(n,r,t,"caption",(function(e,t,n){return He(e)})),ot(n,r,t,"src",ze),ot(n,r,t,"alt",ze),ot(n,r,t,"title",ze),ot(n,r,t,"width",We("width",e)),ot(n,r,t,"height",We("height",e)),ot(n,r,t,"class",ze),ot(n,r,t,"style",at((function(e,t){return ze(e,"style",t)}),e)),ot(n,r,t,"hspace",at(Ge,e)),ot(n,r,t,"vspace",at(Ye,e)),ot(n,r,t,"border",at(Xe,e)),ot(n,r,t,"borderStyle",at(Ze,e))},lt=function(e,t){var n=e.dom.styles.parse(t),r=Ie.mergeMargins(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},ut=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||Ie.isPlaceholderImage(t))?null:t},ct=function(e,t){var n=e.dom,r=n.getParent(t.parentNode,(function(t){return e.schema.getTextBlockElements()[t.nodeName]}),e.getBody());return r?n.split(r,t):t},ft=function(e){var t=ut(e);return t?it((function(t){return lt(e,t)}),t):tt()},dt=function(e,t){var n=rt((function(t){return lt(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),Je(r)){var i=ct(e,r);e.selection.select(i)}else e.selection.select(r)},ht=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},pt=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},gt=function(e,t){var n=ut(e);if(st((function(t){return lt(e,t)}),t,n),ht(e,n),Je(n.parentNode)){var r=n.parentNode;ct(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),Ie.waitLoadImage(e,t,n)},mt=function(e,t){var n=ut(e);n?t.src?gt(e,t):pt(e,n):t.src&&dt(e,t)},vt=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return h.none()},yt=tinymce.util.Tools.resolve("tinymce.util.Tools"),bt=function(e){return m(e.value)?e.value:""},_t=function(e,t){var n=[];return yt.each(e,(function(e){var r=m(e.text)?e.text:m(e.title)?e.title:"";if(void 0!==e.menu){var i=_t(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},wt=function(e){return void 0===e&&(e=bt),function(t){return t?h.from(t).map((function(t){return _t(t,e)})):h.none()}},xt=function(e){return wt(bt)(e)},Ot=function(e){return Object.prototype.hasOwnProperty.call(e,"items")},St=function(e,t){return vt(e,(function(e){return Ot(e)?St(e.items,t):e.value===t?h.some(e):h.none()}))},Ct=function(e,t){return e.bind((function(e){return St(e,t)}))},kt={sanitizer:wt,sanitize:xt,findEntry:Ct},Et=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t};function At(e){var n=function(n,r,i,o){var a,s;a=new t.XMLHttpRequest,a.open("POST",e.url),a.withCredentials=e.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){var t;a.status<200||a.status>=300?i("HTTP Error: "+a.status):(t=JSON.parse(a.responseText),t&&"string"===typeof t.location?r(Et(e.basePath,t.location)):i("Invalid JSON: "+a.responseText))},s=new t.FormData,s.append("file",n.blob(),n.filename()),a.send(s)},i=function(e,t){return new ae((function(n,i){try{t(e,n,i,r)}catch(o){i(o.message)}}))},o=function(e){return e===n},a=function(t){return!e.url&&o(e.handler)?ae.reject("Upload url missing from the settings."):i(t,e.handler)};return e=yt.extend({credentials:!1,handler:n},e),{upload:a}}var Tt=function(e){return{title:"Advanced",name:"advanced",items:[{type:"input",label:"Style",name:"style"},{type:"grid",columns:2,items:[{type:"input",label:"Vertical space",name:"vspace",inputMode:"numeric"},{type:"input",label:"Horizontal space",name:"hspace",inputMode:"numeric"},{type:"input",label:"Border width",name:"border",inputMode:"numeric"},{type:"selectbox",name:"borderstyle",label:"Border style",items:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]}]}]}},Dt={makeTab:Tt},Mt=function(e){var t=kt.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=R.nu((function(n){Ie.createImageList(e,(function(e){n(t(e).map((function(e){return S([[{text:"None",value:""}],e])})))}))})),r=kt.sanitize(Oe.getClassList(e)),i=Oe.hasAdvTab(e),o=Oe.hasUploadTab(e),a=Oe.hasUploadUrl(e),s=Oe.hasUploadHandler(e),l=ft(e),u=Oe.hasDescription(e),c=Oe.hasImageTitle(e),f=Oe.hasDimensions(e),d=Oe.hasImageCaption(e),p=Oe.getUploadUrl(e),g=Oe.getUploadBasePath(e),v=Oe.getUploadCredentials(e),y=Oe.getUploadHandler(e),b=h.some(Oe.getPrependUrl(e)).filter((function(e){return m(e)&&e.length>0}));return n.map((function(e){return{image:l,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:a,hasUploadHandler:s,hasDescription:u,hasImageTitle:c,hasDimensions:f,hasImageCaption:d,url:p,basePath:g,credentials:v,handler:y,prependURL:b}}))},Pt=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},It={makeTab:Pt},jt=function(e){return{prevImage:kt.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Lt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[]}},Nt=function(e){return{src:e.src.value,alt:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle}},Rt=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?h.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?h.some(e+t):h.none()}))},Bt=function(e,t){var n=t.getData();Rt(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},$t=function(e,t,n){e.hasDescription&&m(n.alt)&&(t.alt=n.alt),e.hasImageTitle&&m(n.title)&&(t.title=n.title),e.hasDimensions&&(m(n.width)&&(t.dimensions.width=n.width),m(n.height)&&(t.dimensions.height=n.height)),m(n.class)&&kt.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&b(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(m(n.vspace)&&(t.vspace=n.vspace),m(n.border)&&(t.border=n.border),m(n.hspace)&&(t.hspace=n.hspace),m(n.borderstyle)&&(t.borderstyle=n.borderstyle))},Ft=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=ee({},n);$t(e,i,r),t.setData(i)}},zt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||e.imageSize(o).get((function(e){e.each((function(e){n.open&&r.setData({dimensions:e})}))}))},qt=function(e,t,n){var r=n.getData(),i=kt.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},Ut=function(e,t,n,r){Bt(t,r),Ft(t,r),zt(e,t,n,r),qt(t,n,r)},Ht=function(e,t,n,r){var i=r.getData(),o=kt.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,Ut(e,t,n,r)},Vt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?Ie.removePixelSuffix(String(e["margin-top"])):""},Wt=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?Ie.removePixelSuffix(String(e["margin-right"])):""},Kt=function(e){return e["border-width"]?Ie.removePixelSuffix(String(e["border-width"])):""},Gt=function(e){return e["border-style"]?String(e["border-style"]):""},Yt=function(e,t,n){return t(e(t(n)))},Xt=function(e,t,n){var r=Ie.mergeMargins(e(n.style)),i=ee({},n);return i.vspace=Vt(r),i.hspace=Wt(r),i.border=Kt(r),i.borderstyle=Gt(r),i.style=Yt(e,t,r),i},Zt=function(e,t){var n=t.getData(),r=Xt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Qt=function(e,t,n){var r=ee(Lt(t.image),n.getData()),i=nt(e.normalizeCss,Nt(r));n.setData({style:i})},Jt=function(e,n,r,i){var o=i.getData();i.block("Uploading image"),C(o.fileinput).fold((function(){i.unblock()}),(function(o){var a=t.URL.createObjectURL(o),s=At({url:n.url,basePath:n.basePath,credentials:n.credentials,handler:n.handler}),l=function(){i.unblock(),t.URL.revokeObjectURL(a)};Ie.blobToDataUri(o).then((function(t){var u=e.createBlobCache(o,a,t);s.upload(u).then((function(t){i.setData({src:{value:t,meta:{}}}),i.showTab("general"),Ut(e,n,r,i),l()})).catch((function(t){l(),e.alertErr(i,t)}))}))}))},en=function(e,t,n){return function(r,i){"src"===i.name?Ut(e,t,n,r):"images"===i.name?Ht(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Zt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Qt(e,t,r):"fileinput"===i.name&&Jt(e,t,n,r)}},tn=function(e){return function(){e.open=!1}},nn=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:S([[ie.makeTab(e)],e.hasAdvTab?[Dt.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[It.makeTab(e)]:[]])};return t}var n={type:"panel",items:ie.makeItems(e)};return n},rn=function(e){return function(t){var n=jt(t);return{title:"Insert/Edit Image",size:"normal",body:nn(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Lt(t.image),onSubmit:e.onSubmit(t),onChange:en(e,t,n),onClose:tn(n)}}},on=function(e){return function(t){return function(n){var r=ee(Lt(t.image),n.getData());e.undoManager.transact((function(){mt(e,Nt(r))})),e.editorUpload.uploadImagesAuto(),n.close()}}},an=function(e){return function(t){return Y.nu((function(n){Ie.getImageSize(e.documentBaseURI.toAbsolute(t),(function(e){var t=e.map((function(e){return{width:String(e.width),height:String(e.height)}}));n(t)}))}))}},sn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,base64:r.split(",")[1]})}},ln=function(e){return function(t,n){e.windowManager.alert(n,t.close)}},un=function(e){return function(t){return lt(e,t)}},cn=function(e){return function(t){return e.dom.parseStyle(t)}},fn=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},dn=function(e){var t={onSubmit:on(e),imageSize:an(e),createBlobCache:sn(e),alertErr:ln(e),normalizeCss:un(e),parseStyle:cn(e),serializeStyle:fn(e)},n=function(){return Mt(e).map(rn(t)).get((function(t){e.windowManager.open(t)}))};return{open:n}},hn=function(e){e.addCommand("mceImage",dn(e).open)},pn={register:hn},gn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},mn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];gn(i)&&(i.attr("contenteditable",e?"false":null),yt.each(i.getAll("figcaption"),r))}}},vn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",mn(!0)),e.serializer.addNodeFilter("figure",mn(!1))}))},yn={setup:vn},bn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:dn(e).open,onSetup:function(t){return e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:dn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return Je(e)||et(e)&&!Ie.isPlaceholderImage(e)?["image"]:[]}})},_n={register:bn};function wn(){n.add("image",(function(e){yn.setup(e),_n.register(e),pn.register(e)}))}wn()})(window)}).call(this,n("c8ba"))},cdf9:function(e,t,n){var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),i=n("9112");e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},ce7a:function(e,t,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=l(s);u.Axios=o,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),e.exports=u,e.exports.default=u},d010:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},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 r=n("428f"),i=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d0ce:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r,i=n("6d8b"),o=n("b7d9"),a=n("ec6f"),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,f=typeof Float64Array===s?Array:Float64Array,d={float:f,int:c,ordinal:Array,number:Array,time:f};function h(e){return e>65535?l:u}function p(){return[1/0,-1/0]}function g(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function m(e,t,n,r,i){var o=d[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var v=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(i["createHashMap"])()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),s=this.defaultDimValueGetter=r[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];Object(a["f"])(o);this._dimensions=Object(i["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,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new d[t||"float"](this._rawCount),this._rawExtent[i]=p(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=p());for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.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 r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<o;u++){var c=i[u];m(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<o;p++){c=i[p];var g=r.arrayRows.call(this,e[h]||f,c.property,h,p);n[p][d]=g;var v=a[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(i["map"])(a,(function(e){return e.property})),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=p()),m(o,c,f.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,o,l);else for(var d=[],h=e;h<t;h++){d=r.getItem(h,d);for(var g=0;g<s;g++){var v=o[g],y=this._dimValueGetter(d,u[g],h,g);v[h]=y;var b=l[g];y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}!r.persistent&&r.clean&&r.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=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],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 r=0,i=this.count();r<i;r++){var o=this.get(e,r);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})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/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 r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var f=this.getRawIndex(u),d=t-i[f],h=Math.abs(d);h<=n&&((h<a||h===a&&d>=0&&s<0)&&(a=h,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{n=h(this._rawCount);e=new n(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=h(n._rawCount),o=new i(r),a=[],s=e.length,l=0,u=e[0],c=n._chunks,f=0;f<r;f++){var d=void 0,p=n.getRawIndex(f);if(0===s)d=t(f);else if(1===s){var g=c[u][p];d=t(g,f)}else{for(var m=0;m<s;m++)a[m]=c[e[m]][p];a[m]=f,d=t.apply(null,a)}d&&(o[l++]=p)}return l<r&&(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 r=Object(i["keys"])(e),o=r.length;if(!o)return this;var a=t.count(),s=h(t._rawCount),l=new s(a),u=0,c=r[0],f=e[c][0],d=e[c][1],p=t._chunks,g=!1;if(!t._indices){var m=0;if(1===o){for(var v=p[r[0]],y=0;y<n;y++){var b=v[y];(b>=f&&b<=d||isNaN(b))&&(l[u++]=m),m++}g=!0}else if(2===o){v=p[r[0]];var _=p[r[1]],w=e[r[1]][0],x=e[r[1]][1];for(y=0;y<n;y++){b=v[y];var O=_[y];(b>=f&&b<=d||isNaN(b))&&(O>=w&&O<=x||isNaN(O))&&(l[u++]=m),m++}g=!0}}if(!g)if(1===o)for(y=0;y<a;y++){var S=t.getRawIndex(y);b=p[r[0]][S];(b>=f&&b<=d||isNaN(b))&&(l[u++]=S)}else for(y=0;y<a;y++){for(var C=!0,k=(S=t.getRawIndex(y),0);k<o;k++){var E=r[k];b=p[E][S];(b<e[E][0]||b>e[E][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return u<a&&(t._indices=l),t._count=u,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 r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=p();for(var c=0;c<a;c++){for(var f=e.getRawIndex(c),d=0;d<o;d++)s[d]=r[t[d]][f];s[o]=c;var h=n&&n.apply(null,s);if(null!=h){"object"!==typeof h&&(i[0]=h,h=i);for(u=0;u<h.length;u++){var g=t[u],m=h[u],v=l[g],y=r[g];y&&(y[f]=m),m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),f=this.getRawIndex(0),d=new(h(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=f;for(var p=1;p<l-1;p+=c){for(var g=Math.min(p+c,l-1),m=Math.min(p+2*c,l),v=(m+g)/2,y=0,b=g;b<m;b++){var _=this.getRawIndex(b),w=s[_];isNaN(w)||(y+=w)}y/=m-g;var x=p,O=Math.min(p+c,l),S=p-1,C=s[f];n=-1,i=x;var k=-1,E=0;for(b=x;b<O;b++){_=this.getRawIndex(b),w=s[_];isNaN(w)?(E++,k<0&&(k=_)):(r=Math.abs((S-v)*(w-C)-(S-b)*(y-C)),r>n&&(n=r,i=_))}E>0&&E<O-x&&(d[u++]=Math.min(k,i),i=Math.max(k,i)),d[u++]=i,f=i}return d[u++]=this.getRawIndex(l-1),o._count=u,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=p(),f=new(h(this._rawCount))(Math.ceil(u/s)),d=0,g=0;g<u;g+=s){s>u-g&&(s=u-g,a.length=s);for(var m=0;m<s;m++){var v=this.getRawIndex(g+m);a[m]=l[v]}var y=n(a),b=this.getRawIndex(Math.min(g+r(a,y)||0,u-1));l[b]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),f[d++]=b}return i._count=d,i._indices=f,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=p();if(!t)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=t[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,o=this._chunks,a=t&&Object(i["reduce"])(t,(function(e,t){return e[t]=!0,e}),{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?g(o[s]):o[s];else r._chunks=o;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(i["clone"])(this._extent),e._rawExtent=Object(i["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 r=0;r<n;r++)t[r]=this._indices[r]}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,r){return Object(o["d"])(e[r],this._dimensions[r])}r={arrayRows:e,objectRows:function(e,t,n,r){return Object(o["d"])(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Object(o["d"])(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();t["b"]=v},d16a:function(e,t,n){var r=n("fc5e"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d233:function(e,t,n){"use strict";var r=n("b313"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(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 a=t;return o(t)&&!o(n)&&(a=l(t,r)),o(t)&&o(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}),a)},c=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},f=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},d=function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;++u){var c=s.charCodeAt(u);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?l+=s.charAt(u):c<128?l+=a[c]:c<2048?l+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?l+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(u+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(u)),l+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return l},h=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),l=0;l<a.length;++l){var u=a[l],c=o[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:u}),n.push(c))}return s(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},g=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)},v=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:c,combine:m,compact:h,decode:f,encode:d,isBuffer:g,isRegExp:p,maybeMap:v,merge:u}},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),i=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 r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d397:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d409:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n("5e76"),i=n("6d8b"),o=n("e86a"),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=l(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=u(o[a],i);return o.join("\n")}function l(e,t,n,r){r=r||{};var a=Object(i["extend"])({},r);a.font=t,n=Object(i["retrieve2"])(n,"..."),a.maxIterations=Object(i["retrieve2"])(r.maxIterations,2);var s=a.minChar=Object(i["retrieve2"])(r.minChar,0);a.cnCharWidth=Object(o["f"])("国",t);var l=a.ascCharWidth=Object(o["f"])("a",t);a.placeholder=Object(i["retrieve2"])(r.placeholder,"");for(var u=e=Math.max(0,e-1),c=0;c<s&&u>=l;c++)u-=l;var f=Object(o["f"])(n,t);return f>u&&(n="",f=0),u=e-f,a.ellipsis=n,a.ellipsisWidth=f,a.contentWidth=u,a.containerWidth=e,a}function u(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Object(o["f"])(e,r);if(a<=n)return e;for(var s=0;;s++){if(a<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?c(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,l),a=Object(o["f"])(e,r)}return""===e&&(e=t.placeholder),e}function c(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function f(e,t){null!=e&&(e+="");var n,r=t.overflow,a=t.padding,s=t.font,c="truncate"===r,f=Object(o["e"])(s),d=Object(i["retrieve2"])(t.lineHeight,f),h=!!t.backgroundColor,p="truncate"===t.lineOverflow,g=t.width;n=null==g||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?_(e,t.font,g,"breakAll"===r,0).lines:[];var m=n.length*d,v=Object(i["retrieve2"])(t.height,m);if(m>v&&p){var y=Math.floor(v/d);n=n.slice(0,y)}if(e&&c&&null!=g)for(var b=l(g,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w=0;w<n.length;w++)n[w]=u(n[w],b);var x=v,O=0;for(w=0;w<n.length;w++)O=Math.max(Object(o["f"])(n[w],s),O);null==g&&(g=O);var S=O;return a&&(x+=a[0]+a[2],S+=a[1]+a[3],g+=a[1]+a[3]),h&&(S=g),{lines:n,height:v,outerWidth:S,outerHeight:x,lineHeight:d,calculatedLineHeight:f,contentWidth:O,contentHeight:m,width:g}}var d=function(){function e(){}return e}(),h=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),p=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 g(e,t){var n=new p;if(null!=e&&(e+=""),!e)return n;var l,u=t.width,c=t.height,f=t.overflow,d="break"!==f&&"breakAll"!==f||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===f},h=a.lastIndex=0;while(null!=(l=a.exec(e))){var g=l.index;g>h&&m(n,e.substring(h,g),t,d),m(n,l[2],t,d,l[1]),h=a.lastIndex}h<e.length&&m(n,e.substring(h,e.length),t,d);var v=[],y=0,b=0,_=t.padding,w="truncate"===f,x="truncate"===t.lineOverflow;function O(e,t,n){e.width=t,e.lineHeight=n,y+=n,b=Math.max(b,t)}e:for(var S=0;S<n.lines.length;S++){for(var C=n.lines[S],k=0,E=0,A=0;A<C.tokens.length;A++){var T=C.tokens[A],D=T.styleName&&t.rich[T.styleName]||{},M=T.textPadding=D.padding,P=M?M[1]+M[3]:0,I=T.font=D.font||t.font;T.contentHeight=Object(o["e"])(I);var j=Object(i["retrieve2"])(D.height,T.contentHeight);if(T.innerHeight=j,M&&(j+=M[0]+M[2]),T.height=j,T.lineHeight=Object(i["retrieve3"])(D.lineHeight,t.lineHeight,j),T.align=D&&D.align||t.align,T.verticalAlign=D&&D.verticalAlign||"middle",x&&null!=c&&y+T.lineHeight>c){A>0?(C.tokens=C.tokens.slice(0,A),O(C,E,k),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break e}var L=D.width,N=null==L||"auto"===L;if("string"===typeof L&&"%"===L.charAt(L.length-1))T.percentWidth=L,v.push(T),T.contentWidth=Object(o["f"])(T.text,I);else{if(N){var R=D.backgroundColor,B=R&&R.image;B&&(B=r["b"](B),r["c"](B)&&(T.width=Math.max(T.width,B.width*j/B.height)))}var $=w&&null!=u?u-E:null;null!=$&&$<T.width?!N||$<P?(T.text="",T.width=T.contentWidth=0):(T.text=s(T.text,$-P,I,t.ellipsis,{minChar:t.truncateMinChar}),T.width=T.contentWidth=Object(o["f"])(T.text,I)):T.contentWidth=Object(o["f"])(T.text,I)}T.width+=P,E+=T.width,D&&(k=Math.max(k,T.lineHeight))}O(C,E,k)}n.outerWidth=n.width=Object(i["retrieve2"])(u,b),n.outerHeight=n.height=Object(i["retrieve2"])(c,y),n.contentHeight=y,n.contentWidth=b,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(S=0;S<v.length;S++){T=v[S];var F=T.percentWidth;T.width=parseInt(F,10)/100*n.width}return n}function m(e,t,n,r,i){var a,s,l=""===t,u=i&&n.rich[i]||{},c=e.lines,f=u.font||n.font,p=!1;if(r){var g=u.padding,m=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var v=Object(o["g"])(u.width,r.width)+m;c.length>0&&v+r.accumWidth>r.width&&(a=t.split("\n"),p=!0),r.accumWidth=v}else{var y=_(t,f,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=t.split("\n");for(var b=0;b<a.length;b++){var w=a[b],x=new d;if(x.styleName=i,x.text=w,x.isLineHolder=!w&&!l,"number"===typeof u.width?x.width=u.width:x.width=s?s[b]:Object(o["f"])(w,f),b||p)c.push(new h([x]));else{var O=(c[c.length-1]||(c[0]=new h)).tokens,S=O.length;1===S&&O[0].isLineHolder?O[0]=x:(w||!S||l)&&O.push(x)}}}function v(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var y=Object(i["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function b(e){return!v(e)||!!y[e]}function _(e,t,n,r,i){for(var a=[],s=[],l="",u="",c=0,f=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var p=Object(o["f"])(h,t),g=!r&&!b(h);(a.length?f+p>n:i+f+p>n)?f?(l||u)&&(g?(l||(l=u,u="",c=0,f=c),a.push(l),s.push(f-c),u+=h,c+=p,l="",f=c):(u&&(l+=u,u="",c=0),a.push(l),s.push(f),l=h,f=p)):g?(a.push(u),s.push(c),u=h,c=p):(a.push(h),s.push(p)):(f+=p,g?(u+=h,c+=p):(u&&(l+=u,u="",c=0),l+=h))}else u&&(l+=u,f+=c),a.push(l),s.push(f),l="",u="",c=0,f=0}return a.length||l||(l=e,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(f)),1===a.length&&(f+=i),{accumWidth:f,lines:a,linesWidths:s}}},d44e:function(e,t,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d498:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=n("4fac"),a=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!1)},t}(i["b"]);s.prototype.type="polyline",t["a"]=s},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(e){var t=0,n=0,r=0,i=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),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=l},d4c6:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r["a"])(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||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].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),i["b"].prototype.getBoundingRect.call(this)},t}(i["b"]);t["a"]=o},d4ec:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},d51b:function(e,t,n){"use strict";var r=function(){function e(e){this.value=e}return e}(),i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(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 i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,o=null;if(null==i[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[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},d58f:function(e,t,n){var r=n("1c0b"),i=n("7b0b"),o=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,l){r(n);var u=i(t),c=o(u),f=a(u.length),d=e?f-1:0,h=e?-1:1;if(s<2)while(1){if(d in c){l=c[d],d+=h;break}if(d+=h,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=h)d in c&&(l=n(l,c[d],d,u));return l}};e.exports={left:s(!1),right:s(!0)}},d5b7:function(e,t,n){"use strict";var r=n("8582"),i=n("06ad"),o=n("9850"),a=n("6fd3"),s=n("e86a"),l=n("6d8b"),u=n("2cf4"),c=n("41ef"),f=n("4bc4"),d="__zr_normal__",h=r["a"].concat(["ignore"]),p=Object(l["reduce"])(r["a"],(function(e,t){return e[t]=!0,e}),{ignore:!1}),g={},m=new o["a"](0,0,0,0),v=function(){function e(e){this.id=Object(l["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 r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[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,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,l=!1;i.parent=r?this:null;var u=!1;if(i.copyTransform(t),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):Object(s["c"])(g,n,c),i.x=g.x,i.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var h=void 0,p=void 0;"center"===d?(h=.5*c.width,p=.5*c.height):(h=Object(s["g"])(d[0],c.width),p=Object(s["g"])(d[1],c.height)),u=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+p+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,w=void 0,x=void 0;y&&this.canBeInsideText()?(_=n.insideFill,w=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=w&&"auto"!==w||(w=this.getInsideTextStroke(_),x=!0)):(_=n.outsideFill,w=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=w&&"auto"!==w||(w=this.getOutsideStroke(_),x=!0)),_=_||"#000",_===b.fill&&w===b.stroke&&x===b.autoStroke&&o===b.align&&a===b.verticalAlign||(l=!0,b.fill=_,b.stroke=w,b.autoStroke=x,b.align=o,b.verticalAlign=a,t.setDefaultTextStyle(b)),t.__dirty|=f["a"],l&&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()?u["d"]:u["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(c["parse"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(c["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(l["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(l["isObject"])(e))for(var n=e,r=Object(l["keys"])(n),i=0;i<r.length;i++){var o=r[i];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 r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==d)){var o=r.targetName,a=o?t[o]:t;r.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,h)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},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(d,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===d,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(l["indexOf"])(a,e)>=0)||!t&&1!==a.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),u||i){i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,t,n,c),p&&p.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~f["a"]),u}Object(l["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~f["a"])}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},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(l["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 r=this.currentStates.slice(),i=Object(l["indexOf"])(r,e),o=Object(l["indexOf"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(l["extend"])(n,i),i.textConfig&&(t=t||{},Object(l["extend"])(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=Object(l["extend"])({},r?this.textConfig:n.textConfig),Object(l["extend"])(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<h.length;c++){var f=h[c],d=i&&p[f];t&&null!=t[f]?d?(u=!0,s[f]=t[f]):this[f]=t[f]:a&&null!=n[f]&&(d?(u=!0,s[f]=n[f]):this[f]=n[f])}if(!i)for(c=0;c<this.animators.length;c++){var g=this.animators[c],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(t||n)[m]:t||n)}u&&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 r["c"],this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(l["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|=f["a"];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 r=e?this[e]:this;var o=new i["b"](r,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(l["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,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){y(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){y(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=y(this,t,n,r),o=0;o<i.length;o++)i[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=f["a"];function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=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 y(e,t,n,r,i){n=n||{};var o=[];S(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function b(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function _(e){return Object(l["isArrayLike"])(e[0])}function w(e,t,n){if(Object(l["isArrayLike"])(t[n]))if(Object(l["isArrayLike"])(e[n])||(e[n]=[]),Object(l["isTypedArray"])(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),b(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(_(i))for(var s=i[0].length,u=0;u<a;u++)o[u]?b(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else b(o,i,a);o.length=i.length}else e[n]=t[n]}function x(e,t){return e===t||Object(l["isArrayLike"])(e)&&Object(l["isArrayLike"])(t)&&O(e,t)}function O(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function S(e,t,n,r,o,a,s,u){for(var c=Object(l["keys"])(r),f=o.duration,d=o.delay,h=o.additive,p=o.setToFinal,g=!Object(l["isObject"])(a),m=e.animators,v=[],y=0;y<c.length;y++){var b=c[y],_=r[b];if(null!=_&&null!=n[b]&&(g||a[b]))if(!Object(l["isObject"])(_)||Object(l["isArrayLike"])(_)||Object(l["isGradientObject"])(_))v.push(b);else{if(t){u||(n[b]=_,e.updateDuringAnimation(t));continue}S(e,b,n[b],_,o,a&&a[b],s,u)}else u||(n[b]=_,e.updateDuringAnimation(t),v.push(b))}var O=v.length;if(!h&&O)for(var C=0;C<m.length;C++){var k=m[C];if(k.targetName===t){var E=k.stopTracks(v);if(E){var A=Object(l["indexOf"])(m,k);m.splice(A,1)}}}if(o.force||(v=Object(l["filter"])(v,(function(e){return!x(r[e],n[e])})),O=v.length),O>0||o.force&&!s.length){var T=void 0,D=void 0,M=void 0;if(u){D={},p&&(T={});for(C=0;C<O;C++){b=v[C];D[b]=n[b],p?T[b]=r[b]:n[b]=r[b]}}else if(p){M={};for(C=0;C<O;C++){b=v[C];M[b]=Object(i["a"])(n[b]),w(n,r,b)}}k=new i["b"](n,!1,!1,h?Object(l["filter"])(m,(function(e){return e.targetName===t})):null);k.targetName=t,o.scope&&(k.scope=o.scope),p&&T&&k.whenWithKeys(0,T,v),M&&k.whenWithKeys(0,M,v),k.whenWithKeys(null==f?500:f,u?D:r,v).delay(d||0),e.addAnimator(k,t),s.push(k)}}Object(l["mixin"])(v,a["a"]),Object(l["mixin"])(v,r["c"]),t["a"]=v},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((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,f){var p=o(e),g=!i((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!i((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&&(!u||!c||d)||"split"===e&&!h){var v=/./[p],y=n(p,""[e],(function(e,t,n,r,i){return t.exec===a?g&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],_=y[1];r(String.prototype,e,b),r(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},d7d1:function(e,t,n){"use strict";var r;(function(i){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}",u="\\d{4}",c="[^\\s]+",f=/\[([^]*?)\]/gm,d=function(){};function h(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function g(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}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"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],b=p(y,3),_=p(v,3);o.i18n={dayNamesShort:_,dayNames:v,monthNamesShort:b,monthNames:y,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+c,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,r=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?r-1:r)+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:[u,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,d],ddd:[c,d],MMM:[c,g("monthNamesShort")],MMMM:[c,g("monthNames")],a:[c,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[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 r=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 i=[];return t=t.replace(f,(function(e,t){return i.push(t),"@@@"})),t=t.replace(a,(function(t){return t in w?w[t](e,r):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(e,t,n){var r=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 i={},s=[],l=[];t=t.replace(f,(function(e,t){return l.push(t),"@@@"}));var u=h(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));u=u.replace(/@@@/g,(function(){return l.shift()}));var c=e.match(new RegExp(u,"i"));if(!c)return null;for(var d=1;d<c.length;d++)s[d-1](i,c[d],r);var p,g=new Date;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r))})()},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),l=a("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},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 r=n("d7d1"),i=a(r),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"],u=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},c=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"]}},f=t.toDate=function(e){return d(e)?new Date(e):null},d=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},h=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=f(e),e?i.default.format(e,t||"yyyy-MM-dd",c()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",c())}),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),r=n.getDay();return g(n,0===r?7:r)},t.getWeekNumber=function(e){if(!d(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(u(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return v(t).map((function(e,n){return r-(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,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),l=i.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}))},y=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},b=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},_=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=h(t,"HH:mm:ss"),b(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 r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));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 u=o<s?s:l;return y(u,e.getFullYear(),e.getMonth(),e.getDate())}),w=(t.timeWithinRange=function(e,t,n){var r=_(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return y(e,t,n,r)});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(),r=e.getMonth();return w(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return w(e,n+t,r)},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()}},d9fc:function(e,t,n){"use strict";var r=n("9ab4"),i=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},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}(i["b"]);a.prototype.type="circle",t["a"]=a},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")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},f=0;while(u.length>f)n=i(r,t=u[f++]),void 0!==n&&l(c,t,n);return c}})},dca8:function(e,t,n){var r=n("23e7"),i=n("bb2f"),o=n("d039"),a=n("861d"),s=n("f183").onFreeze,l=Object.freeze,u=o((function(){l(1)}));r({target:"Object",stat:!0,forced:u,sham:!i},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},dcdc:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},91:function(e,t,n){"use strict";n.r(t);var r=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,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},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()])},i=[];r._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,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/checkbox/src/checkbox.vue";var f=c.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},dce8:function(e,t,n){"use strict";var r=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,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();t["a"]=r},dd4f:function(e,t,n){"use strict";var r=n("9ab4"),i=n("19eb"),o=n("e86a"),a=n("cbe5"),s=n("6d8b"),l=n("726e"),u=Object(s["defaults"])({strokeFirst:!0,font:l["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a["a"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r["a"])(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(s["createObject"])(u,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=Object(o["d"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(i["c"]);c.prototype.type="tspan",t["a"]=c},ddb0:function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var f in i){var d=r[f],h=d&&d.prototype;if(h){if(h[l]!==c)try{a(h,l,c)}catch(g){h[l]=c}if(h[u]||a(h,u,f),i[f])for(var p in o)if(h[p]!==o[p])try{a(h,p,o[p])}catch(g){h[p]=o[p]}}}},dded:function(e,t,n){"use strict";var r=n("9ab4"),i=n("42e5"),o=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},deca:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"b",(function(){return g}));var r=n("6d8b"),i=n("e0d3"),o=Object(i["o"])();function a(e,t,n,i,o){var a;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();a=s&&s.animation}var l=t&&t.isAnimationEnabled(),u="update"===e;if(l){var c=void 0,f=void 0,d=void 0;i?(c=Object(r["retrieve2"])(i.duration,200),f=Object(r["retrieve2"])(i.easing,"cubicOut"),d=0):(c=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),d=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(c=a.duration),null!=a.easing&&(f=a.easing),null!=a.delay&&(d=a.delay)),Object(r["isFunction"])(d)&&(d=d(n,o)),Object(r["isFunction"])(c)&&(c=c(n));var h={duration:c||0,delay:d,easing:f};return h}return null}function s(e,t,n,i,o,s,l){var u,c=!1;Object(r["isFunction"])(o)?(l=s,s=o,o=null):Object(r["isObject"])(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var f="leave"===e;f||t.stopAnimation("leave");var d=a(e,i,o,f?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,o):null);if(d&&d.duration>0){var h=d.duration,p=d.delay,g=d.easing,m={duration:h,delay:p||0,easing:g,done:s,force:!!s||!!l,setToFinal:!f,scope:e,during:l};c?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!c&&t.attr(n),l&&l(1),s&&s()}function l(e,t,n,r,i,o){s("update",e,t,n,r,i,o)}function u(e,t,n,r,i,o){s("enter",e,t,n,r,i,o)}function c(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 f(e,t,n,r,i,o){c(e)||s("leave",e,t,n,r,i,o)}function d(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),f(e,{style:{opacity:0}},t,n,r)}function h(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||d(e,t,n,r)})):d(e,t,n,r)}function p(e){o(e).oldStyle=e.style}function g(e){return o(e).oldStyle}},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;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,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(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 r(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 i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.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,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(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,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};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("4362"))},dfe5:function(e,t){},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var i=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(e)?l(e,t,o):n(t,o):i(e,t,o)}return o.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 o(e,n,t)}))},o}))})),o=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},s=o.svg,l=o.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(e,t){void 0===e&&(e="");var n=i(u,t||{}),r=a(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return f}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,u=n("e893"),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};u(d,c);var h=d.prototype=c.prototype;h.constructor=d;var p=h.toString,g="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;l(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(f,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},e0d3:function(e,t,n){"use strict";n.d(t,"r",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"q",(function(){return p})),n.d(t,"e",(function(){return O})),n.d(t,"n",(function(){return S})),n.d(t,"l",(function(){return C})),n.d(t,"p",(function(){return k})),n.d(t,"x",(function(){return E})),n.d(t,"d",(function(){return T})),n.d(t,"u",(function(){return D})),n.d(t,"o",(function(){return M})),n.d(t,"s",(function(){return I})),n.d(t,"t",(function(){return j})),n.d(t,"b",(function(){return L})),n.d(t,"a",(function(){return N})),n.d(t,"v",(function(){return R})),n.d(t,"w",(function(){return B})),n.d(t,"g",(function(){return $})),n.d(t,"i",(function(){return F})),n.d(t,"j",(function(){return z})),n.d(t,"k",(function(){return q}));var r=n("6d8b"),i=n("22d1"),o=n("3842");function a(e,t,n){return(t-e)*n+e}var s="series\0",l="\0_ec_\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function c(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var f=["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 d(e){return!Object(r["isObject"])(e)||Object(r["isArray"])(e)||e instanceof Date?e:e.value}function h(e){return Object(r["isObject"])(e)&&!(e instanceof Array)}function p(e,t,n){var i="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;e=e||[],t=(t||[]).slice();var s=Object(r["createHashMap"])();Object(r["each"])(t,(function(e,n){Object(r["isObject"])(e)||(t[n]=null)}));var l=g(e,s,n);return(i||o)&&m(l,e,s,t),i&&v(l,t),i||o?y(l,t,o):a&&b(l,t),_(l),l}function g(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||C(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function m(e,t,n,i){Object(r["each"])(i,(function(o,a){if(o&&null!=o.id){var s=x(o.id),l=n.get(s);if(null!=l){var u=e[l];Object(r["assert"])(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=o,u.existing=t[l],i[a]=null}}}))}function v(e,t){Object(r["each"])(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!C(n)&&!C(o)&&w("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}function y(e,t,n){Object(r["each"])(t,(function(t){if(t){var r,i=0;while((r=e[i])&&(r.newOption||C(r.existing)||r.existing&&null!=t.id&&!w("id",t,r.existing)))i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}function b(e,t){Object(r["each"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function _(e){var t=Object(r["createHashMap"])();Object(r["each"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(r["each"])(e,(function(e){var n=e.newOption;Object(r["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(r["each"])(e,(function(e,n){var i=e.existing,o=e.newOption,a=e.keyInfo;if(Object(r["isObject"])(o)){if(a.name=null!=o.name?x(o.name):i?i.name:s+n,i)a.id=x(i.id);else if(null!=o.id)a.id=x(o.id);else{var l=0;do{a.id="\0"+a.name+"\0"+l++}while(t.get(a.id))}t.set(a.id,e)}}))}function w(e,t,n){var r=O(t[e],null),i=O(n[e],null);return null!=r&&null!=i&&r===i}function x(e){return O(e,"")}function O(e,t){return null==e?t:Object(r["isString"])(e)?e:Object(r["isNumber"])(e)||Object(r["isStringSafe"])(e)?e+"":t}function S(e){var t=e.name;return!(!t||!t.indexOf(s))}function C(e){return e&&null!=e.id&&0===x(e.id).indexOf(l)}function k(e){return l+e}function E(e,t,n){Object(r["each"])(e,(function(e){var i=e.newOption;Object(r["isObject"])(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=A(t,i,e.existing,n))}))}function A(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function T(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=O(e[r].seriesId,null);if(null==o)return;for(var a=u(e[r].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var f=a[l];s&&s[f]?s[f]=null:(t[o]||(t[o]={}))[f]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function D(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(r["isArray"])(t.dataIndex)?Object(r["map"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(r["isArray"])(t.name)?Object(r["map"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function M(){var e="__ec_inner_"+P++;return function(t){return t[e]||(t[e]={})}}var P=Object(o["j"])();function I(e,t,n){var r=j(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(t,r){var i=R(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function j(e,t){var n;if(Object(r["isString"])(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var o=Object(r["createHashMap"])(),a={},s=!1;return Object(r["each"])(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],u=(i[2]||"").toLowerCase();if(l&&u&&!(t&&t.includeMainTypes&&Object(r["indexOf"])(t.includeMainTypes,l)<0)){s=s||!!l;var c=o.get(l)||o.set(l,{});c[u]=e}}else a[n]=e})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var L={useDefault:!0,enableAll:!1,enableNone:!1},N={useDefault:!1,enableAll:!0,enableNone:!0};function R(e,t,n,i){i=i||L;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],l}return"none"===o||!1===o?(Object(r["assert"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&(Object(r["assert"])(i.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=e.queryComponents({mainType:t,index:o,id:a,name:s}),l)}function B(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function $(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function F(e){return"auto"===e?i["a"].domSupported?"html":"richText":e||"html"}function z(e,t){var n=Object(r["createHashMap"])(),i=[];return Object(r["each"])(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function q(e,t,n,i,s){var l=null==t||"auto"===t;if(null==i)return i;if(Object(r["isNumber"])(i)){var u=a(n||0,i,s);return Object(o["w"])(u,l?Math.max(Object(o["h"])(n||0),Object(o["h"])(i)):t)}if(Object(r["isString"])(i))return s<1?n:i;for(var c=[],f=n,d=i,h=Math.max(f?f.length:0,d.length),p=0;p<h;++p){var g=e.getDimensionInfo(p);if(g&&"ordinal"===g.type)c[p]=(s<1&&f?f:d)[p];else{var m=f&&f[p]?f[p]:0,v=d[p];u=a(m,v,s);c[p]=Object(o["w"])(u,l?Math.max(Object(o["h"])(m),Object(o["h"])(v)):t)}}return c}},e163:function(e,t,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(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 r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e198:function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",u=a.set,c=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){u(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e263:function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return b}));var r=n("401b"),i=n("4a3f"),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r["create"](),f=r["create"](),d=r["create"]();function h(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c<e.length;c++)r=e[c],i=o(i,r[0]),s=a(s,r[0]),l=o(l,r[1]),u=a(u,r[1]);t[0]=i,t[1]=l,n[0]=s,n[1]=u}}function p(e,t,n,r,i,s){i[0]=o(e,n),i[1]=o(t,r),s[0]=a(e,n),s[1]=a(t,r)}var g=[],m=[];function v(e,t,n,r,s,l,u,c,f,d){var h=i["c"],p=i["a"],v=h(e,n,s,u,g);f[0]=1/0,f[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<v;y++){var b=p(e,n,s,u,g[y]);f[0]=o(b,f[0]),d[0]=a(b,d[0])}v=h(t,r,l,c,m);for(y=0;y<v;y++){var _=p(t,r,l,c,m[y]);f[1]=o(_,f[1]),d[1]=a(_,d[1])}f[0]=o(e,f[0]),d[0]=a(e,d[0]),f[0]=o(u,f[0]),d[0]=a(u,d[0]),f[1]=o(t,f[1]),d[1]=a(t,d[1]),f[1]=o(c,f[1]),d[1]=a(c,d[1])}function y(e,t,n,r,s,l,u,c){var f=i["j"],d=i["h"],h=a(o(f(e,n,s),1),0),p=a(o(f(t,r,l),1),0),g=d(e,n,s,h),m=d(t,r,l,p);u[0]=o(e,s,g),u[1]=o(t,l,m),c[0]=a(e,s,g),c[1]=a(t,l,m)}function b(e,t,n,i,o,a,h,p,g){var m=r["min"],v=r["max"],y=Math.abs(o-a);if(y%u<1e-4&&y>1e-4)return p[0]=e-n,p[1]=t-i,g[0]=e+n,void(g[1]=t+i);if(c[0]=l(o)*n+e,c[1]=s(o)*i+t,f[0]=l(a)*n+e,f[1]=s(a)*i+t,m(p,c,f),v(g,c,f),o%=u,o<0&&(o+=u),a%=u,a<0&&(a+=u),o>a&&!h?a+=u:o<a&&h&&(o+=u),h){var b=a;a=o,o=b}for(var _=0;_<a;_+=Math.PI/2)_>o&&(d[0]=l(_)*n+e,d[1]=s(_)*i+t,m(p,d,p),v(g,d,g))}},e297:function(e,t,n){(function(n,r){e.exports&&(t=e.exports=r(n,t))})(this,(function(e,t){"use strict";return Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length>>>0,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=t);n<t;n++)if(n in this&&this[n]===e)return n;return-1}),t.prefix="",t._getPrefixedKey=function(e,t){return t=t||{},t.noPrefix?e:this.prefix+e},t.set=function(e,t,n){var r=this._getPrefixedKey(e,n);try{localStorage.setItem(r,JSON.stringify({data:t}))}catch(i){console&&console.warn("Lockr didn't successfully save the '{"+e+": "+t+"}' pair, because the localStorage is full.")}},t.get=function(e,t,n){var r,i=this._getPrefixedKey(e,n);try{r=JSON.parse(localStorage.getItem(i))}catch(o){r=localStorage[i]?{data:localStorage.getItem(i)}:null}return r?"object"===typeof r&&"undefined"!==typeof r.data?r.data:void 0:t},t.sadd=function(e,n,r){var i,o=this._getPrefixedKey(e,r),a=t.smembers(e);if(a.indexOf(n)>-1)return null;try{a.push(n),i=JSON.stringify({data:a}),localStorage.setItem(o,i)}catch(s){console.log(s),console&&console.warn("Lockr didn't successfully add the "+n+" to "+e+" set, because the localStorage is full.")}},t.smembers=function(e,t){var n,r=this._getPrefixedKey(e,t);try{n=JSON.parse(localStorage.getItem(r))}catch(i){n=null}return n&&n.data?n.data:[]},t.sismember=function(e,n,r){return t.smembers(e).indexOf(n)>-1},t.keys=function(){var e=[],n=Object.keys(localStorage);return 0===t.prefix.length?n:(n.forEach((function(n){-1!==n.indexOf(t.prefix)&&e.push(n.replace(t.prefix,""))})),e)},t.getAll=function(e){var n=t.keys();return e?n.reduce((function(e,n){var r={};return r[n]=t.get(n),e.push(r),e}),[]):n.map((function(e){return t.get(e)}))},t.srem=function(e,n,r){var i,o,a=this._getPrefixedKey(e,r),s=t.smembers(e,n);o=s.indexOf(n),o>-1&&s.splice(o,1),i=JSON.stringify({data:s});try{localStorage.setItem(a,i)}catch(l){console&&console.warn("Lockr couldn't remove the "+n+" from the set "+e)}},t.rm=function(e){var t=this._getPrefixedKey(e);localStorage.removeItem(t)},t.flush=function(){t.prefix.length?t.keys().forEach((function(e){localStorage.removeItem(t._getPrefixedKey(e))})):localStorage.clear()},t}))},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},e34a:function(e,t,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return u&&p.NEED&&l(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e444:function(e,t){e.exports=!0},e450:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},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 r=n(2),i=n(3);t["a"]={bind:function(e,t,n){var o=null,a=void 0,s=Object(i["isMac"])()?100:200,l=function(){return n.context[t.expression].apply()},u=function(){Date.now()-a<s&&l(),clearInterval(o),o=null};Object(r["on"])(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(r["once"])(document,"mouseup",u),clearInterval(o),o=setInterval(l,s))}))}}},87:function(e,t,n){"use strict";n.r(t);var r=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)},i=[];r._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),l=n.n(s),u=n(30),c={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:u["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),r=Math.pow(10,n);t=Math.round(t/this.step)*r*this.step/r}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,r=this.precision,i=n(t);return void 0!==r?(i>r&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),r):Math.max(n(e),i)},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("."),r=0;return-1!==n&&(r=t.length-n-1),r},_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)}}},f=c,d=n(0),h=Object(d["a"])(f,r,i,!1,null,null,null);h.options.__file="packages/input-number/src/input-number.vue";var p=h.exports;p.install=function(e){e.component(p.name,p)};t["default"]=p}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.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}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},e4f6:function(e,t,n){"use strict";var r=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(!n.type.indexOf("key")&&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",(function(){return["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){return e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+" ")]),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){return e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),e._v(" "),"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){return 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){return e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()]}),{file:t})],2)})),0)},i=[],o={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:"暂无数据"}}},a=n("2b0e"),s=n("3c4e"),l=n.n(s),u=n("6bd7");const c=/(%|)\{([0-9a-zA-Z_]+)\}/g;var f=function(e){function t(e,...t){return 1===t.length&&"object"===typeof t[0]&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(c,(n,r,i,o)=>{let a;return"{"===e[o-1]&&"}"===e[o+n.length]?i:(a=Object(u["a"])(t,i)?t[i]:null,null===a||void 0===a?"":a)})}return t};const d=f(a["default"]);let h=o,p=!1,g=function(){const 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,l()(h,a["default"].locale(a["default"].config.lang)||{},{clone:!0}))),e.apply(this,arguments)};const m=function(e,t){let n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;const r=e.split(".");let i=h;for(let o=0,a=r.length;o<a;o++){const e=r[o];if(n=i[e],o===a-1)return d(n,t);if(!n)return"";i=n}return""};var v={methods:{t(...e){return m.apply(this,e)}}},y=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()])},b=[],_=(n("99af"),n("d81d"),n("4e82"),n("a9e3"),n("b680"),n("a573"),{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 ".concat(t?"":"-").concat(e,"\n        a ").concat(e," ").concat(e," 0 1 1 0 ").concat(t?"-":"").concat(2*e,"\n        a ").concat(e," ").concat(e," 0 1 1 0 ").concat(t?"":"-").concat(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"".concat(e,"px")},trailPathStyle:function(){return{strokeDasharray:"".concat(this.perimeter*this.rate,"px, ").concat(this.perimeter,"px"),strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:"".concat(this.perimeter*this.rate*(this.percentage/100),"px, ").concat(this.perimeter,"px"),strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e;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)||"":"".concat(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}))}}}),w=_,x=n("2877"),O=Object(x["a"])(w,y,b,!1,null,null,null),S=O.exports;S.install=function(e){e.component(S.name,S)};var C=S,k={name:"ElUploadList",mixins:[v],data:function(){return{focusing:!1}},components:{ElProgress:C},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)}}},E=k,A=Object(x["a"])(E,r,i,!1,null,null,null);t["a"]=A.exports},e507:function(e,t,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e538:function(e,t,n){var r=n("b622");t.f=r},e562:function(e,t,n){(function(t){(function(n){"use strict";var r=function(){},i=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},o=function(e){return function(){return e}},a=function(e){return e};function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var l=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},u=function(e){return function(){throw new Error(e)}},c=o(!1),f=o(!0),d=function(){return h},h=function(){var e=function(e){return e.isNone()},t=function(e){return e()},n=function(e){return e},i={fold:function(e,t){return e()},is:c,isSome:c,isNone:f,getOr:n,getOrThunk:t,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:n,orThunk:t,map:d,each:r,bind:d,exists:c,forall:f,filter:d,equals:e,equals_:e,toArray:function(){return[]},toString:o("none()")};return Object.freeze&&Object.freeze(i),i}(),p=function(e){var t=o(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:f,isNone:c,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return p(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:h},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(c,(function(t){return n(e,t)}))}};return i},g=function(e){return null===e||void 0===e?h:p(e)},m={some:p,none:d,from:g},v=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},y=function(e){return function(t){return v(t)===e}},b=y("string"),_=y("object"),w=y("array"),x=y("null"),O=y("boolean"),S=y("function"),C=y("number"),k=Array.prototype.slice,E=Array.prototype.indexOf,A=Array.prototype.push,T=function(e,t){return E.call(e,t)},D=function(e,t){var n=T(e,t);return-1===n?m.none():m.some(n)},M=function(e,t){return T(e,t)>-1},P=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},I=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},j=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},L=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},N=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},R=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},B=function(e,t,n){return L(e,(function(e){n=t(n,e)})),n},$=function(e,t,n){return j(e,(function(e){n=t(n,e)})),n},F=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return m.some(i)}return m.none()},z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return m.some(n)}return m.none()},q=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!w(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);A.apply(t,e[n])}return t},U=function(e,t){var n=I(e,t);return q(n)},H=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},V=function(e){var t=k.call(e,0);return t.reverse(),t},W=function(e,t){return R(e,(function(e){return!M(t,e)}))},K=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},G=function(e,t){var n=k.call(e,0);return n.sort(t),n},Y=function(e){return 0===e.length?m.none():m.some(e[0])},X=function(e){return 0===e.length?m.none():m.some(e[e.length-1])},Z=S(Array.from)?Array.from:function(e){return k.call(e)},Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function J(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var ee=function(e){return function(t){return!!t&&t.nodeType===e}},te=function(e){return!!e&&!Object.getPrototypeOf(e)},ne=ee(1),re=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return M(t,n)}return!1}},ie=function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r,i;if(ne(t))for(r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null);if(i=o?o.getPropertyValue(e):null,i===n[r])return!0}return!1}},oe=function(e,t){return function(n){return ne(n)&&n[e]===t}},ae=function(e,t){return function(t){return ne(t)&&t.hasAttribute(e)}},se=function(e,t){return function(n){return ne(n)&&n.getAttribute(e)===t}},le=function(e){return ne(e)&&e.hasAttribute("data-mce-bogus")},ue=function(e){return ne(e)&&"all"===e.getAttribute("data-mce-bogus")},ce=function(e){return ne(e)&&"TABLE"===e.tagName},fe=function(e){return function(t){if(ne(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},de=re(["textarea","input"]),he=ee(3),pe=ee(8),ge=ee(9),me=ee(11),ve=re(["br"]),ye=fe("true"),be=fe("false"),_e={isText:he,isElement:ne,isComment:pe,isDocument:ge,isDocumentFragment:me,isBr:ve,isContentEditableTrue:ye,isContentEditableFalse:be,isRestrictedNode:te,matchNodeNames:re,hasPropValue:oe,hasAttribute:ae,hasAttributeValue:se,matchStyleValues:ie,isBogus:le,isBogusAll:ue,isTable:ce,isTextareaOrInput:de},we=function(e){var t=e,n=function(){return t},r=function(e){t=e},i=function(){return we(n())};return{get:n,set:r,clone:i}},xe=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Oe=function(e,t){var n=xe(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return ke(r(1),r(2))},Se=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Ce():Oe(e,n)},Ce=function(){return ke(0,0)},ke=function(e,t){return{major:e,minor:t}},Ee={nu:ke,detect:Se,unknown:Ce},Ae="Edge",Te="Chrome",De="IE",Me="Opera",Pe="Firefox",Ie="Safari",je=function(e,t){return function(){return t===e}},Le=function(){return Ne({current:void 0,version:Ee.unknown()})},Ne=function(e){var t=e.current,n=e.version;return{current:t,version:n,isEdge:je(Ae,t),isChrome:je(Te,t),isIE:je(De,t),isOpera:je(Me,t),isFirefox:je(Pe,t),isSafari:je(Ie,t)}},Re={unknown:Le,nu:Ne,edge:o(Ae),chrome:o(Te),ie:o(De),opera:o(Me),firefox:o(Pe),safari:o(Ie)},Be="Windows",$e="iOS",Fe="Android",ze="Linux",qe="OSX",Ue="Solaris",He="FreeBSD",Ve=function(e,t){return function(){return t===e}},We=function(){return Ke({current:void 0,version:Ee.unknown()})},Ke=function(e){var t=e.current,n=e.version;return{current:t,version:n,isWindows:Ve(Be,t),isiOS:Ve($e,t),isAndroid:Ve(Fe,t),isOSX:Ve(qe,t),isLinux:Ve(ze,t),isSolaris:Ve(Ue,t),isFreeBSD:Ve(He,t)}},Ge={unknown:We,nu:Ke,windows:o(Be),ios:o($e),android:o(Fe),linux:o(ze),osx:o(qe),solaris:o(Ue),freebsd:o(He)},Ye=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),a=e.isiOS()&&!i,s=e.isiOS()||e.isAndroid(),l=s||r("(pointer:coarse)"),u=i||!a&&s&&r("(min-device-width:768px)"),c=a||s&&!u,f=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!c&&!u&&!f;return{isiPad:o(i),isiPhone:o(a),isTablet:o(u),isPhone:o(c),isTouch:o(l),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:o(f),isDesktop:o(d)}},Xe=function(e,t){var n=String(t).toLowerCase();return F(e,(function(e){return e.search(n)}))},Ze=function(e,t){return Xe(e,t).map((function(e){var n=Ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Qe=function(e,t){return Xe(e,t).map((function(e){var n=Ee.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Je={detectBrowser:Ze,detectOs:Qe},et=function(e,t,n){if(""===t)return!0;if(e.length<t.length)return!1;var r=e.substr(n,n+t.length);return r===t},tt=function(e,t){return-1!==e.indexOf(t)},nt=function(e,t){return et(e,t,0)},rt=function(e){return e.replace(/^\s+|\s+$/g,"")},it=function(e){return e.replace(/^\s+/g,"")},ot=function(e){return e.replace(/\s+$/g,"")},at=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,st=function(e){return function(t){return tt(t,e)}},lt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return tt(e,"edge/")&&tt(e,"chrome")&&tt(e,"safari")&&tt(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,at],search:function(e){return tt(e,"chrome")&&!tt(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return tt(e,"msie")||tt(e,"trident")}},{name:"Opera",versionRegexes:[at,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:st("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:st("firefox")},{name:"Safari",versionRegexes:[at,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(tt(e,"safari")||tt(e,"mobile/"))&&tt(e,"applewebkit")}}],ut=[{name:"Windows",search:st("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return tt(e,"iphone")||tt(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:st("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:st("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:st("linux"),versionRegexes:[]},{name:"Solaris",search:st("sunos"),versionRegexes:[]},{name:"FreeBSD",search:st("freebsd"),versionRegexes:[]}],ct={browsers:o(lt),oses:o(ut)},ft=function(e,t){var n=ct.browsers(),r=ct.oses(),i=Je.detectBrowser(n,e).fold(Re.unknown,Re.nu),o=Je.detectOs(r,e).fold(Ge.unknown,Ge.nu),a=Ye(o,i,e,t);return{browser:i,os:o,deviceType:a}},dt={detect:ft},ht=function(e){return n.window.matchMedia(e).matches},pt=we(dt.detect(n.navigator.userAgent,ht)),gt=function(){return pt.get()},mt=function(e,t){var r=t||n.document,i=r.createElement("div");if(i.innerHTML=e,!i.hasChildNodes()||i.childNodes.length>1)throw n.console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return bt(i.childNodes[0])},vt=function(e,t){var r=t||n.document,i=r.createElement(e);return bt(i)},yt=function(e,t){var r=t||n.document,i=r.createTextNode(e);return bt(i)},bt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:o(e)}},_t=function(e,t,n){var r=e.dom();return m.from(r.elementFromPoint(t,n)).map(bt)},wt={fromHtml:mt,fromTag:vt,fromText:yt,fromDom:bt,fromPoint:_t},xt=(n.Node.ATTRIBUTE_NODE,n.Node.CDATA_SECTION_NODE,n.Node.COMMENT_NODE,n.Node.DOCUMENT_NODE),Ot=(n.Node.DOCUMENT_TYPE_NODE,n.Node.DOCUMENT_FRAGMENT_NODE,n.Node.ELEMENT_NODE),St=n.Node.TEXT_NODE,Ct=(n.Node.PROCESSING_INSTRUCTION_NODE,n.Node.ENTITY_REFERENCE_NODE,n.Node.ENTITY_NODE,n.Node.NOTATION_NODE,"undefined"!==typeof n.window?n.window:Function("return this;")(),function(e){var t=e.dom().nodeName;return t.toLowerCase()}),kt=function(e){return e.dom().nodeType},Et=function(e){return function(t){return kt(t)===e}},At=Et(Ot),Tt=Et(St),Dt=Object.keys,Mt=Object.hasOwnProperty,Pt=function(e,t){for(var n=Dt(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},It=function(e,t){return jt(e,(function(e,n){return{k:n,v:t(e,n)}}))},jt=function(e,t){var n={};return Pt(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Lt=function(e,t){var n={},r={};return Pt(e,(function(e,i){var o=t(e,i)?n:r;o[i]=e})),{t:n,f:r}},Nt=function(e,t){return Rt(e,t)?m.from(e[t]):m.none()},Rt=function(e,t){return Mt.call(e,t)},Bt=function(e){return void 0!==e.style&&S(e.style.getPropertyValue)},$t=function(e){var t=Tt(e)?e.dom().parentNode:e.dom();return void 0!==t&&null!==t&&t.ownerDocument.body.contains(t)},Ft=function(e,t,r){if(!(b(r)||O(r)||C(r)))throw n.console.error("Invalid call to Attr.set. Key ",t,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,r+"")},zt=function(e,t,n){Ft(e.dom(),t,n)},qt=function(e,t){var n=e.dom();Pt(t,(function(e,t){Ft(n,t,e)}))},Ut=function(e,t){var n=e.dom().getAttribute(t);return null===n?void 0:n},Ht=function(e,t){var n=e.dom();return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Vt=function(e,t){e.dom().removeAttribute(t)},Wt=function(e,t){var r=e.dom(),i=n.window.getComputedStyle(r),o=i.getPropertyValue(t),a=""!==o||$t(e)?o:Kt(r,t);return null===a?void 0:a},Kt=function(e,t){return Bt(e)?e.style.getPropertyValue(t):""},Gt=function(e,t){var n=e.dom(),r=Kt(n,t);return m.from(r).filter((function(e){return e.length>0}))},Yt=function(e){return e.dom().offsetWidth},Xt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return j(e,(function(e,n){r[e]=o(t[n])})),r}},Zt=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},Qt={toArray:Zt},Jt=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},en=function(e,t){return Jt(e,t,n.Node.DOCUMENT_POSITION_PRECEDING)},tn=function(e,t){return Jt(e,t,n.Node.DOCUMENT_POSITION_CONTAINED_BY)},nn={documentPositionPreceding:en,documentPositionContainedBy:tn},rn=Ot,on=xt,an=function(e,t){var n=e.dom();if(n.nodeType!==rn)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},sn=function(e){return e.nodeType!==rn&&e.nodeType!==on||0===e.childElementCount},ln=function(e,t){var r=void 0===t?n.document:t.dom();return sn(r)?[]:I(r.querySelectorAll(e),wt.fromDom)},un=function(e,t){var r=void 0===t?n.document:t.dom();return sn(r)?m.none():m.from(r.querySelector(e)).map(wt.fromDom)},cn=function(e,t){return e.dom()===t.dom()},fn=function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},dn=function(e,t){return nn.documentPositionContainedBy(e.dom(),t.dom())},hn=gt().browser,pn=hn.isIE()?dn:fn,gn=function(e){return wt.fromDom(e.dom().ownerDocument)},mn=function(e){return wt.fromDom(e.dom().ownerDocument.documentElement)},vn=function(e){return wt.fromDom(e.dom().ownerDocument.defaultView)},yn=function(e){return m.from(e.dom().parentNode).map(wt.fromDom)},bn=function(e,t){var n=S(t)?t:c,r=e.dom(),i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=wt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},_n=function(e){return m.from(e.dom().previousSibling).map(wt.fromDom)},wn=function(e){return m.from(e.dom().nextSibling).map(wt.fromDom)},xn=function(e){return V(Qt.toArray(e,_n))},On=function(e){return Qt.toArray(e,wn)},Sn=function(e){return I(e.dom().childNodes,wt.fromDom)},Cn=function(e,t){var n=e.dom().childNodes;return m.from(n[t]).map(wt.fromDom)},kn=function(e){return Cn(e,0)},En=function(e){return Cn(e,e.dom().childNodes.length-1)},An=function(e){return e.dom().childNodes.length},Tn=(Xt("element","offset"),gt().browser),Dn=function(e){return F(e,At)},Mn=function(e){return Tn.isFirefox()&&"table"===Ct(e)?Dn(Sn(e)).filter((function(e){return"caption"===Ct(e)})).bind((function(e){return Dn(On(e)).map((function(t){var n=t.dom().offsetTop,r=e.dom().offsetTop,i=e.dom().offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Pn=function(e,t){return e.children&&M(e.children,t)},In=function(e,t,n){var r,i,o=0,a=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Wt(wt.fromDom(e),"position"))return i=t.getBoundingClientRect(),o=i.left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,a=i.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop,{x:o,y:a};r=t;while(r&&r!==n&&r.nodeType&&!Pn(r,n))o+=r.offsetLeft||0,a+=r.offsetTop||0,r=r.offsetParent;r=t.parentNode;while(r&&r!==n&&r.nodeType&&!Pn(r,n))o-=r.scrollLeft||0,a-=r.scrollTop||0,r=r.parentNode;a+=Mn(wt.fromDom(t))}return{x:o,y:a}},jn={getPos:In},Ln={},Nn={exports:Ln};(function(e,n,r,i){(function(i){if("object"===typeof n&&"undefined"!==typeof r)r.exports=i();else if("function"===typeof e&&e.amd)e([],i);else{var o;o="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:this,o.EphoxContactWrapper=i()}})((function(){return function(){function e(t,n,r){function o(s,l){if(!n[s]){if(!t[s]){var u="function"==typeof i&&i;if(!l&&u)return u(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};t[s][0].call(f.exports,(function(e){var n=t[s][1][e];return o(n||e)}),f,f.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}return e}()({1:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!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{r="function"===typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,f=[],d=!1,h=-1;function p(){d&&c&&(d=!1,c.length?f=c.concat(f):h=-1,f.length&&g())}function g(){if(!d){var e=l(p);d=!0;var t=f.length;while(t){c=f,f=[];while(++h<t)c&&c[h].run();h=-1,t=f.length}c=null,d=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function v(){}o.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];f.push(new m(e,t)),1!==f.length||d||l(g)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],2:[function(e,t,n){(function(e){(function(n){var r=setTimeout;function i(){}function o(e,t){return function(){e.apply(t,arguments)}}function a(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void u(t.promise,i)}l(t.promise,r)}else(1===e._state?l:u)(t.promise,e._value)}))):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void c(e);if("function"===typeof n)return void d(o(n,t),e)}e._state=1,e._value=t,c(e)}catch(r){u(e,r)}}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,l(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(r){if(n)return;n=!0,u(t,r)}}a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new f(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(l){n(l)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},a.resolve=function(e){return e&&"object"===typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},a._immediateFn="function"===typeof e?function(t){e(t)}:function(e){r(e,0)},a._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a._setImmediateFn=function(e){a._immediateFn=e},a._setUnhandledRejectionFn=function(e){a._unhandledRejectionFn=e},"undefined"!==typeof t&&t.exports?t.exports=a:n.Promise||(n.Promise=a)})(this)}).call(this,e("timers").setImmediate)},{timers:3}],3:[function(e,t,n){(function(t,r){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},l=0;function u(e,t){this._id=e,this._clearFn=t}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},n.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},n._unrefActive=n.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n.setImmediate="function"===typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(r?e.apply(null,r):e.call(null),n.clearImmediate(t))})),t},n.clearImmediate="function"===typeof r?r:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(e,t,n){var r=e("promise-polyfill"),i=function(){return"undefined"!==typeof window?window:Function("return this;")()}();t.exports={boltExport:i.Promise||r}},{"promise-polyfill":2}]},{},[4])(4)}))})(void 0,Ln,Nn,void 0);var Rn,Bn=Nn.exports.boltExport,$n=function(e){var t=m.none(),r=[],i=function(e){return $n((function(t){o((function(n){t(e(n))}))}))},o=function(e){s()?u(e):r.push(e)},a=function(e){t=m.some(e),l(r),r=[]},s=function(){return t.isSome()},l=function(e){j(e,u)},u=function(e){t.each((function(t){n.setTimeout((function(){e(t)}),0)}))};return e(a),{get:o,map:i,isReady:s}},Fn=function(e){return $n((function(t){t(e)}))},zn={nu:$n,pure:Fn},qn=function(e){n.setTimeout((function(){throw e}),0)},Un=function(e){var t=function(t){e().then(t,qn)},n=function(t){return Un((function(){return e().then(t)}))},r=function(t){return Un((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return Un((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return zn.nu(t)},a=function(){var t=null;return Un((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Hn=function(e){return Un((function(){return new Bn(e)}))},Vn=function(e){return Un((function(){return Bn.resolve(e)}))},Wn={nu:Hn,pure:Vn},Kn=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):j(e,(function(e,t){e.get(i(t))}))}))},Gn=function(e){return Kn(e,Wn.nu)},Yn=function(e){var t=function(t){return e===t},n=function(t){return Yn(e)},r=function(t){return Yn(e)},i=function(t){return Yn(t(e))},a=function(t){return Yn(e)},s=function(t){t(e)},l=function(t){return t(e)},u=function(t,n){return n(e)},d=function(t){return t(e)},h=function(t){return t(e)},p=function(){return m.some(e)};return{is:t,isValue:f,isError:c,getOr:o(e),getOrThunk:o(e),getOrDie:o(e),or:n,orThunk:r,fold:u,map:i,mapError:a,each:s,bind:l,exists:d,forall:h,toOption:p}},Xn=function(e){var t=function(e){return e()},n=function(){return u(String(e))()},i=function(e){return e},o=function(e){return e()},s=function(t){return Xn(e)},l=function(t){return Xn(t(e))},d=function(t){return Xn(e)},h=function(t,n){return t(e)};return{is:c,isValue:c,isError:f,getOr:a,getOrThunk:t,getOrDie:n,or:i,orThunk:o,fold:h,map:s,mapError:l,each:r,bind:d,exists:c,forall:f,toOption:m.none}},Zn=function(e,t){return e.fold((function(){return Xn(t)}),Yn)},Qn={value:Yn,error:Xn,fromOption:Zn},Jn=function(){function e(e,t){return function(){e.apply(t,arguments)}}var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],c(t,e(a,this),e(s,this))},i=r.immediateFn||"function"===typeof n.setImmediate&&n.setImmediate||function(e){n.setTimeout(e,1)};function o(e){var t=this;null!==this._state?i((function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function a(t){try{if(t===this)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if("function"===typeof n)return void c(e(n,t),e(a,this),e(s,this))}this._state=!0,this._value=t,l.call(this)}catch(r){s.call(this,r)}}function s(e){this._state=!1,this._value=e,l.call(this)}function l(){for(var e=0,t=this._deferreds.length;e<t;e++)o.call(this,this._deferreds[e]);this._deferreds=null}function u(e,t,n,r){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r}function c(e,t,n){var r=!1;try{e((function(e){r||(r=!0,t(e))}),(function(e){r||(r=!0,n(e))}))}catch(i){if(r)return;r=!0,n(i)}}return r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=this;return new r((function(r,i){o.call(n,new u(e,t,r,i))}))},r.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&t(arguments[0])?arguments[0]:arguments);return new r((function(t,n){if(0===e.length)return t([]);var r=e.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}e[o]=a,0===--r&&t(e)}catch(l){n(l)}}for(var o=0;o<e.length;o++)i(o,e[o])}))},r.resolve=function(e){return e&&"object"===typeof e&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},r},er=window.Promise?window.Promise:Jn(),tr=function(e,t){var r,i=n.window.requestAnimationFrame,o=["ms","moz","webkit"],a=function(e){n.window.setTimeout(e,0)};for(r=0;r<o.length&&!i;r++)i=n.window[o[r]+"RequestAnimationFrame"];i||(i=a),i(e,t)},nr=function(e,t){return"number"!==typeof t&&(t=0),n.setTimeout(e,t)},rr=function(e,t){return"number"!==typeof t&&(t=1),n.setInterval(e,t)},ir=function(e){return n.clearTimeout(e)},or=function(e){return n.clearInterval(e)},ar=function(e,t){var r,i;return i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.clearTimeout(r),r=nr((function(){e.apply(this,i)}),t)},i.stop=function(){n.clearTimeout(r)},i},sr={requestAnimationFrame:function(e,t){Rn?Rn.then(e):Rn=new er((function(e){t||(t=n.document.body),tr(e,t)})).then(e)},setTimeout:nr,setInterval:rr,setEditorTimeout:function(e,t,n){return nr((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,r){var i;return i=rr((function(){e.removed?n.clearInterval(i):t()}),r),i},debounce:ar,throttle:ar,clearInterval:or,clearTimeout:ir},lr=n.navigator.userAgent,ur=gt(),cr=ur.browser,fr=ur.os,dr=ur.deviceType,hr=/WebKit/.test(lr)&&!cr.isEdge(),pr="FormData"in n.window&&"FileReader"in n.window&&"URL"in n.window&&!!n.URL.createObjectURL,gr=-1!==lr.indexOf("Windows Phone"),mr={opera:cr.isOpera(),webkit:hr,ie:!(!cr.isIE()&&!cr.isEdge())&&cr.version.major,gecko:cr.isFirefox(),mac:fr.isOSX()||fr.isiOS(),iOS:dr.isiPad()||dr.isiPhone(),android:fr.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:n.window.getSelection&&"Range"in n.window,documentMode:cr.isIE()?n.document.documentMode||7:10,fileApi:pr,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!cr.isIE(),desktop:dr.isDesktop(),windowsPhone:gr,browser:{current:cr.current,version:cr.version,isChrome:cr.isChrome,isEdge:cr.isEdge,isFirefox:cr.isFirefox,isIE:cr.isIE,isOpera:cr.isOpera,isSafari:cr.isSafari},os:{current:fr.current,version:fr.version,isAndroid:fr.isAndroid,isFreeBSD:fr.isFreeBSD,isiOS:fr.isiOS,isLinux:fr.isLinux,isOSX:fr.isOSX,isSolaris:fr.isSolaris,isWindows:fr.isWindows},deviceType:{isDesktop:dr.isDesktop,isiPad:dr.isiPad,isiPhone:dr.isiPhone,isPhone:dr.isPhone,isTablet:dr.isTablet,isTouch:dr.isTouch,isWebView:dr.isWebView}},vr=Array.isArray,yr=function(e){var t,n,r=e;if(!vr(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},br=function(e,t,n){var r,i;if(!e)return 0;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},_r=function(e,t){var n=[];return br(e,(function(r,i){n.push(t(r,i,e))})),n},wr=function(e,t){var n=[];return br(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},xr=function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Or=function(e,t,n,r){var i=0;for(arguments.length<3&&(n=e[0]);i<e.length;i++)n=t.call(r,n,e[i],i);return n},Sr=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},Cr=function(e,t,n){var r=Sr(e,t,n);if(-1!==r)return e[r]},kr=function(e){return e[e.length-1]},Er={isArray:vr,toArray:yr,each:br,map:_r,filter:wr,indexOf:xr,reduce:Or,findIndex:Sr,find:Cr,last:kr},Ar=/^\s*|\s*$/g,Tr=function(e){return null===e||void 0===e?"":(""+e).replace(Ar,"")},Dr=function(e,t){return t?!("array"!==t||!Er.isArray(e))||typeof e===t:void 0!==e},Mr=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},Pr=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ir=function(e,t,n){var r,i,o,a,s,l=this,u=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),o=e[3].match(/(^|\.)(\w+)$/i)[2],i=l.createNS(e[3].replace(/\.\w+$/,""),n),!i[o]){if("static"===e[2])return i[o]=t,void(this.onCreate&&this.onCreate(e[2],e[3],i[o]));t[o]||(t[o]=function(){},u=1),i[o]=t[o],l.extend(i[o].prototype,t),e[5]&&(r=l.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],s=i[o],i[o]=u?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],s.apply(this,arguments)},i[o].prototype[o]=i[o],l.each(r,(function(e,t){i[o].prototype[t]=r[t]})),l.each(t,(function(e,t){r[t]?i[o].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==o&&(i[o].prototype[t]=e)}))),l.each(t.static,(function(e,t){i[o][t]=e}))}},jr=function(e,t){for(var n,r,i,o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s,l=arguments;for(n=1,r=l.length;n<r;n++)for(i in t=l[n],t)t.hasOwnProperty(i)&&(s=t[i],void 0!==s&&(e[i]=s));return e},Lr=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Er.each(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;Lr(e,t,n,r)})))},Nr=function(e,t){var r,i;for(t=t||n.window,e=e.split("."),r=0;r<e.length;r++)i=e[r],t[i]||(t[i]={}),t=t[i];return t},Rr=function(e,t){var r,i;for(t=t||n.window,e=e.split("."),r=0,i=e.length;r<i;r++)if(t=t[e[r]],!t)break;return t},Br=function(e,t){return!e||Dr(e,"array")?e:Er.map(e.split(t||","),Tr)},$r=function(e){var t=mr.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},Fr={trim:Tr,isArray:Er.isArray,is:Dr,toArray:Er.toArray,makeMap:Mr,each:Er.each,map:Er.map,grep:Er.filter,inArray:Er.indexOf,hasOwn:Pr,extend:jr,create:Ir,walk:Lr,createNS:Nr,resolve:Rr,explode:Br,_addCacheSuffix:$r};function zr(e,t){void 0===t&&(t={});var r,s=0,l={};r=t.maxLoadTime||5e3;var u=function(e){t.referrerPolicy=e},c=function(t){e.getElementsByTagName("head")[0].appendChild(t)},f=function(i,o,a){var u,f,d,h,p=function(e){h.status=e,h.passed=[],h.failed=[],u&&(u.onload=null,u.onerror=null,u=null)},g=function(){var e=h.passed,t=e.length;while(t--)e[t]();p(2)},m=function(){var e=h.failed,t=e.length;while(t--)e[t]();p(3)},v=function(){var e=n.navigator.userAgent.match(/WebKit\/(\d*)/);return!!(e&&parseInt(e[1],10)<536)},y=function(e,t){e()||((new Date).getTime()-d<r?sr.setTimeout(t):m())},b=function(){y((function(){var t,n,r=e.styleSheets,i=r.length;while(i--)if(t=r[i],n=t.ownerNode?t.ownerNode:t.owningElement,n&&n.id===u.id)return g(),!0}),b)},_=function(){y((function(){try{var e=f.sheet.cssRules;return g(),!!e}catch(t){}}),_)};if(i=Fr._addCacheSuffix(i),l[i]?h=l[i]:(h={passed:[],failed:[]},l[i]=h),o&&h.passed.push(o),a&&h.failed.push(a),1!==h.status)if(2!==h.status)if(3!==h.status){if(h.status=1,u=e.createElement("link"),u.rel="stylesheet",u.type="text/css",u.id="u"+s++,u.async=!1,u.defer=!1,d=(new Date).getTime(),t.contentCssCors&&(u.crossOrigin="anonymous"),t.referrerPolicy&&zt(wt.fromDom(u),"referrerpolicy",t.referrerPolicy),"onload"in u&&!v())u.onload=b,u.onerror=m;else{if(n.navigator.userAgent.indexOf("Firefox")>0)return f=e.createElement("style"),f.textContent='@import "'+i+'"',_(),void c(f);b()}c(u),u.href=i}else m();else g()},d=function(e){return Wn.nu((function(t){f(e,i(t,o(Qn.value(e))),i(t,o(Qn.error(e))))}))},h=function(e){return e.fold(a,a)},p=function(e,t,n){Gn(I(e,d)).get((function(e){var r=N(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(h)):t(r.pass.map(h))}))};return{load:f,loadAll:p,_setReferrerPolicy:u}}var qr,Ur,Hr,Vr=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],Wr=["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"],Kr=["td","th"],Gr=["thead","tbody","tfoot"],Yr=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Xr=["h1","h2","h3","h4","h5","h6"],Zr=["li","dd","dt"],Qr=["ul","ol","dl"],Jr=["pre","script","textarea","style"],ei=function(e){var t;return function(n){return t=t||K(e,o(!0)),t.hasOwnProperty(Ct(n))}},ti=ei(Xr),ni=ei(Vr),ri=function(e){return"table"===Ct(e)},ii=function(e){return At(e)&&!ni(e)},oi=function(e){return At(e)&&"br"===Ct(e)},ai=ei(Yr),si=ei(Qr),li=ei(Zr),ui=ei(Wr),ci=ei(Gr),fi=ei(Kr),di=ei(Jr),hi=function(e){var t=e.previousSibling&&"SPAN"===e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"===e.nextSibling.nodeName;return t&&n},pi=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},gi=function(e,t){var n,r=t.childNodes;if(!_e.isElement(t)||!pi(t)){for(n=r.length-1;n>=0;n--)gi(e,r[n]);if(!1===_e.isDocument(t)){if(_e.isText(t)&&t.nodeValue.length>0){var i=Fr.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||i>0)return;if(0===i&&hi(t))return}else if(_e.isElement(t)&&(r=t.childNodes,1===r.length&&pi(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||ui(wt.fromDom(t))))return;e.remove(t)}return t}},mi={trimNode:gi},vi=Fr.makeMap,yi=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_i=/[<>&\"\']/g,wi=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,xi={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};Ur={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Hr={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"};var Oi=function(e){var t;return t=wt.fromTag("div").dom(),t.innerHTML=e,t.textContent||t.innerText||e},Si=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Ur[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}};qr=Si("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var Ci=function(e,t){return e.replace(t?yi:bi,(function(e){return Ur[e]||e}))},ki=function(e){return(""+e).replace(_i,(function(e){return Ur[e]||e}))},Ei=function(e,t){return e.replace(t?yi:bi,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Ur[e]||"&#"+e.charCodeAt(0)+";"}))},Ai=function(e,t,n){return n=n||qr,e.replace(t?yi:bi,(function(e){return Ur[e]||n[e]||e}))},Ti=function(e,t){var n=Si(t)||qr,r=function(e,t){return e.replace(t?yi:bi,(function(e){return void 0!==Ur[e]?Ur[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return Ai(e,t,n)},o=vi(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:Ai:o.numeric?Ei:Ci},Di=function(e){return e.replace(wi,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):xi[t]||String.fromCharCode(t)):Hr[e]||qr[e]||Oi(e)}))},Mi={encodeRaw:Ci,encodeAllRaw:ki,encodeNumeric:Ei,encodeNamed:Ai,getEncodeFunc:Ti,decode:Di},Pi={},Ii={},ji=Fr.makeMap,Li=Fr.each,Ni=Fr.extend,Ri=Fr.explode,Bi=Fr.inArray,$i=function(e,t){return e=Fr.trim(e),e?e.split(t||" "):[]},Fi=function(e){var t,n,r,i,o,a,s={},l=function(e,n,r){var i,o,a,l=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=$i(r)),e=$i(e),i=e.length;while(i--)o=$i([t,n].join(" ")),a={attributes:l(o),attributesOrder:o,children:l(r,Ii)},s[e[i]]=a},u=function(e,t){var n,r,i,o;e=$i(e),n=e.length,t=$i(t);while(n--)for(r=s[e[n]],i=0,o=t.length;i<o;i++)r.attributes[t[i]]={},r.attributesOrder.push(t[i])};return Pi[e]?Pi[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Li($i(a),(function(e){l(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),Li($i(o),(function(e){l(e,"",i)}))),i=i||[n,r].join(" "),l("html","manifest","head body"),l("head","","base command link meta noscript script style title"),l("title hr noscript br"),l("base","href target"),l("link","href rel media hreflang type sizes hreflang"),l("meta","name http-equiv content charset"),l("style","media type scoped"),l("script","src async defer type charset"),l("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),l("address dt dd div caption","",i),l("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),l("blockquote","cite",i),l("ol","reversed start type","li"),l("ul","","li"),l("li","value",i),l("dl","","dt dd"),l("a","href target rel media hreflang type",r),l("q","cite",r),l("ins del","cite datetime",i),l("img","src sizes srcset alt usemap ismap width height"),l("iframe","src name width height",i),l("embed","src type width height"),l("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),l("param","name value"),l("map","name",[i,"area"].join(" ")),l("area","alt coords shape href target rel media hreflang type"),l("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),l("colgroup","span","col"),l("col","span"),l("tbody thead tfoot","","tr"),l("tr","","td th"),l("td","colspan rowspan headers",i),l("th","colspan rowspan headers scope abbr",i),l("form","accept-charset action autocomplete enctype method name novalidate target",i),l("fieldset","disabled form name",[i,"legend"].join(" ")),l("label","form for",r),l("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),l("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),l("select","disabled form multiple name required size","option optgroup"),l("optgroup","disabled label","option"),l("option","disabled label selected value"),l("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),l("menu","type label",[i,"li"].join(" ")),l("noscript","",i),"html4"!==e&&(l("wbr"),l("ruby","",[r,"rt rp"].join(" ")),l("figcaption","",i),l("mark rt rp summary bdi","",r),l("canvas","width height",i),l("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),l("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),l("picture","","img source"),l("source","src srcset type media sizes"),l("track","kind src srclang label default"),l("datalist","",[r,"option"].join(" ")),l("article section nav aside main header footer","",i),l("hgroup","","h1 h2 h3 h4 h5 h6"),l("figure","",[i,"figcaption"].join(" ")),l("time","datetime",r),l("dialog","open",i),l("command","type label icon disabled checked radiogroup command"),l("output","for form name",r),l("progress","value max",r),l("meter","value min max low high optimum",r),l("details","open",[i,"summary"].join(" ")),l("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(u("script","language xml:space"),u("style","xml:space"),u("object","declare classid code codebase codetype archive standby align border hspace vspace"),u("embed","align name hspace vspace"),u("param","valuetype type"),u("a","charset name rev shape coords"),u("br","clear"),u("applet","codebase archive code object alt name width height align hspace vspace"),u("img","name longdesc align border hspace vspace"),u("iframe","longdesc frameborder marginwidth marginheight scrolling align"),u("font basefont","size color face"),u("input","usemap align"),u("select","onchange"),u("textarea"),u("h1 h2 h3 h4 h5 h6 div p legend caption","align"),u("ul","type compact"),u("li","type"),u("ol dl menu dir","compact"),u("pre","width xml:space"),u("hr","align noshade size width"),u("isindex","prompt"),u("table","summary width frame rules cellspacing cellpadding align bgcolor"),u("col","width align char charoff valign"),u("colgroup","width align char charoff valign"),u("thead","align char charoff valign"),u("tr","align char charoff valign bgcolor"),u("th","axis align char charoff valign nowrap bgcolor width height"),u("form","accept"),u("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),u("tfoot","align char charoff valign"),u("tbody","align char charoff valign"),u("area","nohref"),u("body","background bgcolor text link vlink alink")),"html4"!==e&&(u("input button select textarea","autofocus"),u("input textarea","placeholder"),u("a","download"),u("link script img","crossorigin"),u("iframe","sandbox seamless allowfullscreen")),Li($i("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Pi[e]=s,s)},zi=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Li(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?ji(e,/[, ]/):Ri(e,/[, ]/)}))),n};function qi(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p={},g={},m=[],v={},y={},b=function(t,n,r){var i=e[t];return i?i=ji(i,/[, ]/,ji(i.toUpperCase(),/[, ]/)):(i=Pi[t],i||(i=ji(n," ",ji(n.toUpperCase()," ")),i=Ni(i,r),Pi[t]=i)),i};e=e||{},r=Fi(e.schema),!1===e.verify_html&&(e.valid_elements="*[*]"),t=zi(e.valid_styles),n=zi(e.invalid_styles,"map"),l=zi(e.valid_classes,"map"),i=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),o=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=b("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),s=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),c=b("non_empty_elements","td th iframe video audio object script pre code",a),f=b("move_caret_before_on_enter_elements","table",c),d=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),u=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),h=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),Li((e.special||"script noscript noframes noembed title style textarea xmp").split(" "),(function(e){y[e]=new RegExp("</"+e+"[^>]*>","gi")}));var _=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,g,v,y,b,w,x,O=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,S=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,C=/[*?+]/;if(e)for(e=$i(e,","),p["@"]&&(y=p["@"].attributes,b=p["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(o=O.exec(e[t]),o){if(g=o[1],u=o[2],v=o[3],l=o[5],d={},h=[],a={attributes:d,attributesOrder:h},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===o[4]&&(a.removeEmptyAttrs=!0),y){for(w in y)d[w]=y[w];h.push.apply(h,b)}if(l)for(l=$i(l,"|"),r=0,i=l.length;r<i;r++)if(o=S.exec(l[r]),o){if(s={},f=o[1],c=o[2].replace(/[\\:]:/g,":"),g=o[3],x=o[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(c),s.required=!0),"-"===f){delete d[c],h.splice(Bi(h,c),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:c,value:x}),s.defaultValue=x),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:c,value:x}),s.forcedValue=x),"<"===g&&(s.validValues=ji(x,"?"))),C.test(c)?(a.attributePatterns=a.attributePatterns||[],s.pattern=_(c),a.attributePatterns.push(s)):(d[c]||h.push(c),d[c]=s)}y||"@"!==u||(y=d,b=h),v&&(a.outputName=u,p[v]=a),C.test(u)?(a.pattern=_(u),m.push(a)):p[u]=a}},x=function(e){p={},m=[],w(e),Li(r,(function(e,t){g[t]=e.children}))},O=function(e){var t=/^(~)?(.+)$/;e&&(Pi.text_block_elements=Pi.block_elements=null,Li($i(e,","),(function(e){var n=t.exec(e),r="~"===n[1],i=r?"span":"div",o=n[2];if(g[o]=g[i],v[o]=i,r||(u[o.toUpperCase()]={},u[o]={}),!p[o]){var a=p[i];a=Ni({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,p[o]=a}Li(g,(function(e,t){e[i]&&(g[t]=e=Ni({},g[t]),e[o]=e[i])}))})))},S=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;Pi[e.schema]=null,t&&Li($i(t,","),(function(e){var t,r,i=n.exec(e);i&&(r=i[1],t=r?g[i[2]]:g[i[2]]={"#comment":{}},t=g[i[2]],Li($i(i[3],"|"),(function(e){"-"===r?delete t[e]:t[e]={}})))}))},C=function(e){var t,n=p[e];if(n)return n;t=m.length;while(t--)if(n=m[t],n.pattern.test(e))return n};e.valid_elements?x(e.valid_elements):(Li(r,(function(e,t){p[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children})),"html5"!==e.schema&&Li($i("strong/b em/i"),(function(e){e=$i(e,"/"),p[e[1]].outputName=e[0]})),Li($i("ol ul sub sup blockquote span font a table tbody tr strong em b i"),(function(e){p[e]&&(p[e].removeEmpty=!0)})),Li($i("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){p[e].paddEmpty=!0})),Li($i("span"),(function(e){p[e].removeEmptyAttrs=!0}))),O(e.custom_elements),S(e.valid_children),w(e.extended_valid_elements),S("+ol[ul|ol],+ul[ul|ol]"),Li({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,t){p[t]&&(p[t].parentsRequired=$i(e))})),e.invalid_elements&&Li(Ri(e.invalid_elements),(function(e){p[e]&&delete p[e]})),C("span")||w("span[!data-mce-type|*]");var k=function(){return t},E=function(){return n},A=function(){return l},T=function(){return s},D=function(){return u},M=function(){return d},P=function(){return h},I=function(){return a},j=function(){return o},L=function(){return c},N=function(){return f},R=function(){return i},B=function(){return y},$=function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},F=function(e,t){var n,r,i=C(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},z=function(){return v};return{children:g,elements:p,getValidStyles:k,getValidClasses:A,getBlockElements:D,getInvalidStyles:E,getShortEndedElements:I,getTextBlockElements:M,getTextInlineElements:P,getBoolAttrs:T,getElementRule:C,getSelfClosingElements:j,getNonEmptyElements:L,getMoveCaretBeforeOnEnterElements:N,getWhiteSpaceElements:R,getSpecialElements:B,isValidChild:$,isValid:F,getCustomElements:z,addValidElements:w,setValidElements:x,addCustomElements:O,addValidChildren:S}}var Ui,Hi,Vi,Wi,Ki,Gi,Yi,Xi,Zi,Qi,Ji,eo,to,no,ro,io,oo,ao,so,lo=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},uo=function(e,t){var n,r,i,o,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,u=/\s+$/,c={},f="\ufeff";for(e=e||{},t&&(i=t.getValidStyles(),o=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+f).split(" "),n=0;n<r.length;n++)c[r[n]]=f+n,c[f+n]=r[n];return{toHex:function(e){return e.replace(a,lo)},parse:function(t){var r,i,o,d,h={},p=e.url_converter,g=e.url_converter_scope||this,m=function(e,t,r){var i,o,a,s;if(i=h[e+"-top"+t],i&&(o=h[e+"-right"+t],o&&(a=h[e+"-bottom"+t],a&&(s=h[e+"-left"+t],s)))){var l=[i,o,a,s];n=l.length-1;while(n--)if(l[n]!==l[n+1])break;n>-1&&r||(h[e+t]=-1===n?l[0]:l.join(" "),delete h[e+"-top"+t],delete h[e+"-right"+t],delete h[e+"-bottom"+t],delete h[e+"-left"+t])}},v=function(e){var t,n=h[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return h[e]=n[0],!0}},y=function(e,t,n,r){v(t)&&v(n)&&v(r)&&(h[e]=h[t]+" "+h[n]+" "+h[r],delete h[t],delete h[n],delete h[r])},b=function(e){return d=!0,c[e]},_=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return c[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},w=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},x=function(e){return e.replace(/\\[0-9a-f]+/gi,w)},O=function(t,n,r,i,o,a){if(o=o||a,o)return o=_(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=_(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return p&&(n=p.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,b).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,b)}));while(r=l.exec(t))if(l.lastIndex=r.index+r[0].length,i=r[1].replace(u,"").toLowerCase(),o=r[2].replace(u,""),i&&o){if(i=x(i),o=x(o),-1!==i.indexOf(f)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(o)))continue;"font-weight"===i&&"700"===o?o="bold":"color"!==i&&"background-color"!==i||(o=o.toLowerCase()),o=o.replace(a,lo),o=o.replace(s,O),h[i]=d?_(o,!0):o}m("border","",!0),m("border","-width"),m("border","-color"),m("border","-style"),m("padding",""),m("margin",""),y("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(e,t){var n,r,a="",s=function(t){var n,r,o,s;if(n=i[t],n)for(r=0,o=n.length;r<o;r++)t=n[r],s=e[t],s&&(a+=(a.length>0?" ":"")+t+": "+s+";")},l=function(e,t){var n;return n=o["*"],(!n||!n[e])&&(n=o[t],!n||!n[e])};if(t&&i)s("*"),s(t);else for(n in e)r=e[n],!r||o&&!l(n,t)||(a+=(a.length>0?" ":"")+n+": "+r+";");return a}}},co="mce-data-",fo=/^(?:mouse|contextmenu)|click/,ho={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1,mozPressure:1},po=function(e){return e.isDefaultPrevented===mo||e.isDefaultPrevented===go},go=function(){return!1},mo=function(){return!0},vo=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},yo=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},bo=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&n.length>0)return n[0]}return t},_o=function(e,t){var r,i=t||{};for(r in e)ho[r]||(i[r]=e[r]);if(i.target||(i.target=i.srcElement||n.document),mr.experimentalShadowDom&&(i.target=bo(e,i.target)),e&&fo.test(e.type)&&void 0===e.pageX&&void 0!==e.clientX){var o=i.target.ownerDocument||n.document,a=o.documentElement,s=o.body;i.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),i.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}return i.preventDefault=function(){i.isDefaultPrevented=mo,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},i.stopPropagation=function(){i.isPropagationStopped=mo,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=mo,i.stopPropagation()},!1===po(i)&&(i.isDefaultPrevented=go,i.isPropagationStopped=go,i.isImmediatePropagationStopped=go),"undefined"===typeof i.metaKey&&(i.metaKey=!1),i},wo=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){yo(e,"DOMContentLoaded",a),yo(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i))};o()?a():vo(e,"DOMContentLoaded",a),vo(e,"load",a)}},xo=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=co+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in n.document.documentElement,this.hasFocusIn="onfocusin"in n.document.documentElement,this.count=1}return e.prototype.bind=function(e,t,r,i){var o,a,s,l,u,c,f,d=this,h=n.window,p=function(e){d.executeHandlers(_o(e||h.event),o)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?o=e[d.expando]:(o=d.count++,e[d.expando]=o,d.events[o]={}),i=i||e;var g=t.split(" ");s=g.length;while(s--)l=g[s],c=p,u=f=!1,"DOMContentLoaded"===l&&(l="ready"),d.domLoaded&&"ready"===l&&"complete"===e.readyState?r.call(i,_o({type:l})):(d.hasMouseEnterLeave||(u=d.mouseEnterLeave[l],u&&(c=function(e){var t,n;if(t=e.currentTarget,n=e.relatedTarget,n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=_o(e||h.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,o))})),d.hasFocusIn||"focusin"!==l&&"focusout"!==l||(f=!0,u="focusin"===l?"focus":"blur",c=function(e){e=_o(e||h.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,o)}),a=d.events[o][l],a?"ready"===l&&d.domLoaded?r(_o({type:l})):a.push({func:r,scope:i}):(d.events[o][l]=a=[{func:r,scope:i}],a.fakeName=u,a.capture=f,a.nativeHandler=c,"ready"===l?wo(e,c,d):vo(e,u||l,c,f)));return e=a=0,r}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s,l;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando],r){if(l=this.events[r],t){var u=t.split(" ");o=u.length;while(o--)if(s=u[o],i=l[s],i){if(n){a=i.length;while(a--)if(i[a].func===n){var c=i.nativeHandler,f=i.fakeName,d=i.capture;i=i.slice(0,a).concat(i.slice(a+1)),i.nativeHandler=c,i.fakeName=f,i.capture=d,l[s]=i}}n&&0!==i.length||(delete l[s],yo(e,i.fakeName||s,i.nativeHandler,i.capture))}}else{for(s in l)i=l[s],yo(e,i.fakeName||s,i.nativeHandler,i.capture);l={}}for(s in l)return this;delete this.events[r];try{delete e[this.expando]}catch(h){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=_o(null,n);i.type=t,i.target=e;do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n,r,i,o,a=this.events[t];if(n=a&&a[e.type],n)for(r=0,i=n.length;r<i;r++)if(o=n[r],o&&!1===o.func.call(o.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return},e.Event=new e,e}(),Oo="sizzle"+-new Date,So=n.window.document,Co=0,ko=0,Eo=sa(),Ao=sa(),To=sa(),Do=function(e,t){return e===t&&(Ji=!0),0},Mo="undefined",Po=1<<31,Io={}.hasOwnProperty,jo=[],Lo=jo.pop,No=jo.push,Ro=jo.push,Bo=jo.slice,$o=jo.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Fo="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",zo="[\\x20\\t\\r\\n\\f]",qo="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Uo="\\["+zo+"*("+qo+")(?:"+zo+"*([*^$|!~]?=)"+zo+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+qo+"))|)"+zo+"*\\]",Ho=":("+qo+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Uo+")*)|.*)\\)|)",Vo=new RegExp("^"+zo+"+|((?:^|[^\\\\])(?:\\\\.)*)"+zo+"+$","g"),Wo=new RegExp("^"+zo+"*,"+zo+"*"),Ko=new RegExp("^"+zo+"*([>+~]|"+zo+")"+zo+"*"),Go=new RegExp("="+zo+"*([^\\]'\"]*?)"+zo+"*\\]","g"),Yo=new RegExp(Ho),Xo=new RegExp("^"+qo+"$"),Zo={ID:new RegExp("^#("+qo+")"),CLASS:new RegExp("^\\.("+qo+")"),TAG:new RegExp("^("+qo+"|[*])"),ATTR:new RegExp("^"+Uo),PSEUDO:new RegExp("^"+Ho),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+zo+"*(even|odd|(([+-]|)(\\d*)n|)"+zo+"*(?:([+-]|)"+zo+"*(\\d+)|))"+zo+"*\\)|)","i"),bool:new RegExp("^(?:"+Fo+")$","i"),needsContext:new RegExp("^"+zo+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+zo+"*((?:-\\d)?\\d*)"+zo+"*\\)|)(?=[^-]|$)","i")},Qo=/^(?:input|select|textarea|button)$/i,Jo=/^h\d$/i,ea=/^[^{]+\{\s*\[native \w/,ta=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,na=/[+~]/,ra=/'|\\/g,ia=new RegExp("\\\\([\\da-f]{1,6}"+zo+"?|("+zo+")|.)","ig"),oa=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Ro.apply(jo=Bo.call(So.childNodes),So.childNodes),jo[So.childNodes.length].nodeType}catch(KR){Ro={apply:jo.length?function(e,t){No.apply(e,Bo.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var aa=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h;if((t?t.ownerDocument||t:So)!==to&&eo(t),t=t||to,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(ro&&!r){if(i=ta.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&so(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Ro.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&Hi.getElementsByClassName)return Ro.apply(n,t.getElementsByClassName(a)),n}if(Hi.qsa&&(!io||!io.test(e))){if(f=c=Oo,d=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){u=Gi(e),(c=t.getAttribute("id"))?f=c.replace(ra,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=u.length;while(l--)u[l]=f+ga(u[l]);d=na.test(e)&&ha(t.parentNode)||t,h=u.join(",")}if(h)try{return Ro.apply(n,d.querySelectorAll(h)),n}catch(p){}finally{c||t.removeAttribute("id")}}}return Xi(e.replace(Vo,"$1"),t,n,r)};function sa(){var e=[];function t(n,r){return e.push(n+" ")>Vi.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function la(e){return e[Oo]=!0,e}function ua(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||Po)-(~e.sourceIndex||Po);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ca(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function fa(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function da(e){return la((function(t){return t=+t,la((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ha(e){return e&&typeof e.getElementsByTagName!==Mo&&e}for(Ui in Hi=aa.support={},Ki=aa.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},eo=aa.setDocument=function(e){var t,n=e?e.ownerDocument||e:So,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==to&&9===n.nodeType&&n.documentElement?(to=n,no=n.documentElement,ro=!Ki(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){eo()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){eo()}))),Hi.attributes=!0,Hi.getElementsByTagName=!0,Hi.getElementsByClassName=ea.test(n.getElementsByClassName),Hi.getById=!0,Vi.find.ID=function(e,t){if(typeof t.getElementById!==Mo&&ro){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},Vi.filter.ID=function(e){var t=e.replace(ia,oa);return function(e){return e.getAttribute("id")===t}},Vi.find.TAG=Hi.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==Mo)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},Vi.find.CLASS=Hi.getElementsByClassName&&function(e,t){if(ro)return t.getElementsByClassName(e)},oo=[],io=[],Hi.disconnectedMatch=!0,io=io.length&&new RegExp(io.join("|")),oo=oo.length&&new RegExp(oo.join("|")),t=ea.test(no.compareDocumentPosition),so=t||ea.test(no.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},Do=t?function(e,t){if(e===t)return Ji=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!Hi.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===So&&so(So,e)?-1:t===n||t.ownerDocument===So&&so(So,t)?1:Qi?$o.call(Qi,e)-$o.call(Qi,t):0:4&r?-1:1)}:function(e,t){if(e===t)return Ji=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:Qi?$o.call(Qi,e)-$o.call(Qi,t):0;if(o===a)return ua(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ua(s[i],l[i]):s[i]===So?-1:l[i]===So?1:0},n):to},aa.matches=function(e,t){return aa(e,null,null,t)},aa.matchesSelector=function(e,t){if((e.ownerDocument||e)!==to&&eo(e),t=t.replace(Go,"='$1']"),Hi.matchesSelector&&ro&&(!oo||!oo.test(t))&&(!io||!io.test(t)))try{var n=ao.call(e,t);if(n||Hi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(KR){}return aa(t,to,null,[e]).length>0},aa.contains=function(e,t){return(e.ownerDocument||e)!==to&&eo(e),so(e,t)},aa.attr=function(e,t){(e.ownerDocument||e)!==to&&eo(e);var n=Vi.attrHandle[t.toLowerCase()],r=n&&Io.call(Vi.attrHandle,t.toLowerCase())?n(e,t,!ro):void 0;return void 0!==r?r:Hi.attributes||!ro?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},aa.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},aa.uniqueSort=function(e){var t,n=[],r=0,i=0;if(Ji=!Hi.detectDuplicates,Qi=!Hi.sortStable&&e.slice(0),e.sort(Do),Ji){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return Qi=null,e},Wi=aa.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=Wi(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=Wi(t);return n},Vi=aa.selectors={cacheLength:50,createPseudo:la,match:Zo,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ia,oa),e[3]=(e[3]||e[4]||e[5]||"").replace(ia,oa),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||aa.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&aa.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Zo.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Yo.test(n)&&(t=Gi(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ia,oa).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Eo[e+" "];return t||(t=new RegExp("(^|"+zo+")"+e+"("+zo+"|$)"))&&Eo(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==Mo&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=aa.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(m){if(o){while(g){f=t;while(f=f[g])if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){c=m[Oo]||(m[Oo]={}),u=c[e]||[],h=u[0]===Co&&u[1],d=u[0]===Co&&u[2],f=h&&m.childNodes[h];while(f=++h&&f&&f[g]||(d=h=0)||p.pop())if(1===f.nodeType&&++d&&f===t){c[e]=[Co,h,d];break}}else if(y&&(u=(t[Oo]||(t[Oo]={}))[e])&&u[0]===Co)d=u[1];else while(f=++h&&f&&f[g]||(d=h=0)||p.pop())if((s?f.nodeName.toLowerCase()===v:1===f.nodeType)&&++d&&(y&&((f[Oo]||(f[Oo]={}))[e]=[Co,d]),f===t))break;return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(e,t){var n,r=Vi.pseudos[e]||Vi.setFilters[e.toLowerCase()]||aa.error("unsupported pseudo: "+e);return r[Oo]?r(t):r.length>1?(n=[e,e,"",t],Vi.setFilters.hasOwnProperty(e.toLowerCase())?la((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=$o.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:la((function(e){var t=[],n=[],r=Yi(e.replace(Vo,"$1"));return r[Oo]?la((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}})),has:la((function(e){return function(t){return aa(e,t).length>0}})),contains:la((function(e){return e=e.replace(ia,oa),function(t){return(t.textContent||t.innerText||Wi(t)).indexOf(e)>-1}})),lang:la((function(e){return Xo.test(e||"")||aa.error("unsupported lang: "+e),e=e.replace(ia,oa).toLowerCase(),function(t){var n;do{if(n=ro?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.window.location&&n.window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===no},focus:function(e){return e===to.activeElement&&(!to.hasFocus||to.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!Vi.pseudos.empty(e)},header:function(e){return Jo.test(e.nodeName)},input:function(e){return Qo.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:da((function(){return[0]})),last:da((function(e,t){return[t-1]})),eq:da((function(e,t,n){return[n<0?n+t:n]})),even:da((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:da((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:da((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:da((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},Vi.pseudos.nth=Vi.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Vi.pseudos[Ui]=ca(Ui);for(Ui in{submit:!0,reset:!0})Vi.pseudos[Ui]=fa(Ui);function pa(){}function ga(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ma(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=ko++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[Co,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(l=t[Oo]||(t[Oo]={}),(s=l[r])&&s[0]===Co&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function va(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ya(e,t,n){for(var r=0,i=t.length;r<i;r++)aa(e,t[r],n);return n}function ba(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function _a(e,t,n,r,i,o){return r&&!r[Oo]&&(r=_a(r)),i&&!i[Oo]&&(i=_a(i,o)),la((function(o,a,s,l){var u,c,f,d=[],h=[],p=a.length,g=o||ya(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:ba(g,d,e,s,l),v=n?i||(o?e:p||r)?[]:a:m;if(n&&n(m,v,s,l),r){u=ba(v,h),r(u,[],s,l),c=u.length;while(c--)(f=u[c])&&(v[h[c]]=!(m[h[c]]=f))}if(o){if(i||e){if(i){u=[],c=v.length;while(c--)(f=v[c])&&u.push(m[c]=f);i(null,v=[],u,l)}c=v.length;while(c--)(f=v[c])&&(u=i?$o.call(o,f):d[c])>-1&&(o[u]=!(a[u]=f))}}else v=ba(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):Ro.apply(a,v)}))}function wa(e){for(var t,n,r,i=e.length,o=Vi.relative[e[0].type],a=o||Vi.relative[" "],s=o?1:0,l=ma((function(e){return e===t}),a,!0),u=ma((function(e){return $o.call(t,e)>-1}),a,!0),c=[function(e,n,r){return!o&&(r||n!==Zi)||((t=n).nodeType?l(e,n,r):u(e,n,r))}];s<i;s++)if(n=Vi.relative[e[s].type])c=[ma(va(c),n)];else{if(n=Vi.filter[e[s].type].apply(null,e[s].matches),n[Oo]){for(r=++s;r<i;r++)if(Vi.relative[e[r].type])break;return _a(s>1&&va(c),s>1&&ga(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Vo,"$1"),n,s<r&&wa(e.slice(s,r)),r<i&&wa(e=e.slice(r)),r<i&&ga(e))}c.push(n)}return va(c)}function xa(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,l){var u,c,f,d=0,h="0",p=i&&[],g=[],m=Zi,v=i||r&&Vi.find.TAG("*",l),y=Co+=null==m?1:Math.random()||.1,b=v.length;for(l&&(Zi=o!==to&&o);h!==b&&null!=(u=v[h]);h++){if(r&&u){c=0;while(f=e[c++])if(f(u,o,a)){s.push(u);break}l&&(Co=y)}n&&((u=!f&&u)&&d--,i&&p.push(u))}if(d+=h,n&&h!==d){c=0;while(f=t[c++])f(p,g,o,a);if(i){if(d>0)while(h--)p[h]||g[h]||(g[h]=Lo.call(s));g=ba(g)}Ro.apply(s,g),l&&!i&&g.length>0&&d+t.length>1&&aa.uniqueSort(s)}return l&&(Co=y,Zi=m),p};return n?la(i):i}pa.prototype=Vi.filters=Vi.pseudos,Vi.setFilters=new pa,Gi=aa.tokenize=function(e,t){var n,r,i,o,a,s,l,u=Ao[e+" "];if(u)return t?0:u.slice(0);a=e,s=[],l=Vi.preFilter;while(a){for(o in n&&!(r=Wo.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Ko.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Vo," ")}),a=a.slice(n.length)),Vi.filter)Vi.filter.hasOwnProperty(o)&&(!(r=Zo[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?aa.error(e):Ao(e,s).slice(0)},Yi=aa.compile=function(e,t){var n,r=[],i=[],o=To[e+" "];if(!o){t||(t=Gi(e)),n=t.length;while(n--)o=wa(t[n]),o[Oo]?r.push(o):i.push(o);o=To(e,xa(i,r)),o.selector=e}return o},Xi=aa.select=function(e,t,n,r){var i,o,a,s,l,u="function"===typeof e&&e,c=!r&&Gi(e=u.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&Hi.getById&&9===t.nodeType&&ro&&Vi.relative[o[1].type]){if(t=(Vi.find.ID(a.matches[0].replace(ia,oa),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=Zo.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],Vi.relative[s=a.type])break;if((l=Vi.find[s])&&(r=l(a.matches[0].replace(ia,oa),na.test(o[0].type)&&ha(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&ga(o),!e)return Ro.apply(n,r),n;break}}}return(u||Yi(e,c))(r,t,!ro,n,na.test(e)&&ha(t.parentNode)||t),n},Hi.sortStable=Oo.split("").sort(Do).join("")===Oo,Hi.detectDuplicates=!!Ji,eo(),Hi.sortDetached=!0;var Oa=n.document,Sa=Array.prototype.push,Ca=Array.prototype.slice,ka=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ea=xo.Event,Aa=Fr.makeMap("children,contents,next,prev"),Ta=function(e){return"undefined"!==typeof e},Da=function(e){return"string"===typeof e},Ma=function(e){return e&&e===e.window},Pa=function(e,t){var n,r,i;t=t||Oa,i=t.createElement("div"),n=t.createDocumentFragment(),i.innerHTML=e;while(r=i.firstChild)n.appendChild(r);return n},Ia=function(e,t,n,r){var i;if(Da(t))t=Pa(t,Ga(e[0]));else if(t.length&&!t.nodeType){if(t=Qa.makeArray(t),r)for(i=t.length-1;i>=0;i--)Ia(e,t[i],n,r);else for(i=0;i<t.length;i++)Ia(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},ja=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},La=function(e,t,n){var r,i;return t=Qa(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},Na=Fr.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Ra=Fr.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Ba={for:"htmlFor",class:"className",readonly:"readOnly"},$a={float:"cssFloat"},Fa={},za={},qa=function(e,t){return new Qa.fn.init(e,t)},Ua=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Ha=/^\s*|\s*$/g,Va=function(e){return null===e||void 0===e?"":(""+e).replace(Ha,"")},Wa=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},Ka=function(e,t){var n=[];return Wa(e,(function(e,r){t(r,e)&&n.push(r)})),n},Ga=function(e){return e?9===e.nodeType?e:e.ownerDocument:Oa};qa.fn=qa.prototype={constructor:qa,selector:"",context:null,length:0,init:function(e,t){var r,i,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Qa(e).attr(t);o.context=t=n.document}if(Da(e)){if(o.selector=e,r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:ka.exec(e),!r)return Qa(t).find(e);if(r[1]){i=Pa(e,Ga(t)).firstChild;while(i)Sa.call(o,i),i=i.nextSibling}else{if(i=Ga(t).getElementById(r[2]),!i)return o;if(i.id!==r[2])return o.find(e);o.length=1,o[0]=i}}else this.add(e,!1);return o},toArray:function(){return Fr.toArray(this)},add:function(e,t){var n,r,i=this;if(Da(e))return i.add(Qa(e));if(!1!==t)for(n=Qa.unique(i.toArray().concat(Qa.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else Sa.apply(i,Qa.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)Wa(e,(function(e,t){r.attr(e,t)}));else{if(!Ta(t)){if(r[0]&&1===r[0].nodeType){if(n=Fa[e],n&&n.get)return n.get(r[0],e);if(Ra[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=Fa[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=Ba[e]||e,"object"===typeof e)Wa(e,(function(e,t){n.prop(e,t)}));else{if(!Ta(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)Wa(e,(function(e,t){i.css(e,t)}));else if(Ta(t))e=o(e),"number"!==typeof t||Na[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=za[e],r&&r.set)r.set(this,t);else{try{this.style[$a[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=za[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],Ea.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(Ta(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Qa(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(Ta(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return Ia(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return Ia(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?Ia(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?Ia(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Qa(e).append(this),this},prependTo:function(e){return Qa(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return La(this,e)},wrapAll:function(e){return La(this,e,!0)},wrapInner:function(e){return this.each((function(){Qa(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Qa(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Qa(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?Wa(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i,o;o=ja(r,e),o!==t&&(i=r.className,o?r.className=Va((" "+i+" ").replace(" "+e+" "," ")):r.className+=i?" "+e:e)}))),n},hasClass:function(e){return ja(this[0],e)},each:function(e){return Wa(this,e)},on:function(e,t){return this.each((function(){Ea.bind(this,e,t)}))},off:function(e,t){return this.each((function(){Ea.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?Ea.fire(this,e.type,e):Ea.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Qa(Ca.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Qa.find(e,this[t],r);return Qa(r)},filter:function(e){return Qa("function"===typeof e?Ka(this.toArray(),(function(t,n){return e(n,t)})):Qa.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Qa&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Qa(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Qa(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:Sa,sort:Array.prototype.sort,splice:Array.prototype.splice},Fr.extend(qa,{extend:Fr.extend,makeArray:function(e){return Ma(e)||e.nodeType?[e]:Fr.toArray(e)},inArray:Ua,isArray:Fr.isArray,each:Wa,trim:Va,grep:Ka,find:aa,expr:aa.selectors,unique:aa.uniqueSort,text:aa.getText,contains:aa.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Qa.find.matchesSelector(t[0],e)?[t[0]]:[]:Qa.find.matches(e,t),t}});var Ya=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof Qa&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&Qa(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},Xa=function(e,t,n,r){var i=[];for(r instanceof Qa&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Qa(e).is(r))break}i.push(e)}return i},Za=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Wa({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ya(e,"parentNode")},next:function(e){return Za(e,"nextSibling",1)},prev:function(e){return Za(e,"previousSibling",1)},children:function(e){return Xa(e.firstChild,"nextSibling",1)},contents:function(e){return Fr.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){qa.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(Qa.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(Aa[e]||(i=Qa.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=Qa(i);return n?o.filter(n):o}})),Wa({parentsUntil:function(e,t){return Ya(e,"parentNode",t)},nextUntil:function(e,t){return Xa(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Xa(e,"previousSibling",1,t).slice(1)}},(function(e,t){qa.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(Qa.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=Qa.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=Qa(o);return r?a.filter(r):a}})),qa.fn.is=function(e){return!!e&&this.filter(e).length>0},qa.fn.init.prototype=qa.fn,qa.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return Qa.extend(n,this),n},qa.attrHooks=Fa,qa.cssHooks=za;var Qa=qa,Ja=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),es=function(e,t){var n=yn(e);n.each((function(n){n.dom().insertBefore(t.dom(),e.dom())}))},ts=function(e,t){var n=wn(e);n.fold((function(){var n=yn(e);n.each((function(e){rs(e,t)}))}),(function(e){es(e,t)}))},ns=function(e,t){var n=kn(e);n.fold((function(){rs(e,t)}),(function(n){e.dom().insertBefore(t.dom(),n.dom())}))},rs=function(e,t){e.dom().appendChild(t.dom())},is=function(e,t){es(e,t),rs(t,e)},os=function(e,t){j(t,(function(t){es(e,t)}))},as=function(e,t){j(t,(function(t){rs(e,t)}))},ss=function(e){e.dom().textContent="",j(Sn(e),(function(e){ls(e)}))},ls=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},us=function(e){var t=Sn(e);t.length>0&&os(e,t),ls(e)},cs=function(e,t){var n=function(n,r){return cs(e+n,t+r)};return{left:o(e),top:o(t),translate:n}},fs=cs,ds=function(e){var t=e.getBoundingClientRect();return fs(t.left,t.top)},hs=function(e,t){return void 0!==e?e:void 0!==t?t:0},ps=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom())return fs(n.offsetLeft,n.offsetTop);var o=hs(r.pageYOffset,i.scrollTop),a=hs(r.pageXOffset,i.scrollLeft),s=hs(i.clientTop,n.clientTop),l=hs(i.clientLeft,n.clientLeft);return gs(e).translate(a-l,o-s)},gs=function(e){var t=e.dom(),n=t.ownerDocument,r=n.body;return r===t?fs(r.offsetLeft,r.offsetTop):$t(e)?ds(t):fs(0,0)},ms=gt().browser.isSafari(),vs=function(e){var t=void 0!==e?e.dom():n.document,r=t.body.scrollLeft||t.documentElement.scrollLeft,i=t.body.scrollTop||t.documentElement.scrollTop;return fs(r,i)},ys=function(e,t,r){var i=void 0!==r?r.dom():n.document,o=i.defaultView;o.scrollTo(e,t)},bs=function(e,t){ms&&S(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},_s=function(e,t,n,r){return{x:o(e),y:o(t),width:o(n),height:o(r),right:o(e+n),bottom:o(t+r)}},ws=function(e){var t=void 0===e?n.window:e,r=t["visualViewport"];if(void 0!==r)return _s(r.pageLeft,r.pageTop,r.width,r.height);var i=wt.fromDom(t.document),o=t.document.documentElement,a=vs(i),s=o.clientWidth,l=o.clientHeight;return _s(a.left(),a.top(),s,l)},xs=Fr.each,Os=Fr.grep,Ss=mr.ie,Cs=/^([a-z0-9],?)+$/i,ks=/^[ \t\r\n]*$/,Es=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(e,t){null===t||"object"!==typeof t?(r&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},As=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Ts=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i};function Ds(e,t){var r,i=this;void 0===t&&(t={});var o={},a=n.window,s={},l=0,u=!0,c=!0,f=zr(e,{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),d=[],h=t.schema?t.schema:qi({}),p=uo({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),g=t.ownEvents?new xo:xo.Event,m=h.getBlockElements(),v=Qa.overrideDefaults((function(){return{context:e,element:De.getRoot()}})),y=function(e){if("string"===typeof e)return!!m[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!m[e.nodeName])}return!1},_=function(t){if(t&&e&&"string"===typeof t){var n=e.getElementById(t);return n&&n.id!==t?e.getElementsByName(t)[1]:n}return t},w=function(e){return"string"===typeof e&&(e=_(e)),v(e)},x=function(e,t,n){var i,o,a=w(e);return a.length&&(i=r[t],o=i&&i.get?i.get(a,t):a.attr(t)),"undefined"===typeof o&&(o=n||""),o},O=function(e){var t=_(e);return t?t.attributes:[]},S=function(e,n,i){var o,a;""===i&&(i=null);var s=w(e);o=s.attr(n),s.length&&(a=r[n],a&&a.set?a.set(s,i,n):s.attr(n,i),o!==i&&t.onSetAttrib&&t.onSetAttrib({attrElm:s,attrName:n,attrValue:i}))},C=function(t,n){if(!Ss||1!==t.nodeType||n)return t.cloneNode(n);if(!n){var r=e.createElement(t.nodeName);return xs(O(t),(function(e){S(r,e.nodeName,x(t,e.nodeName))})),r}return null},k=function(){return t.root_element||e.body},E=function(e){var t=ws(e);return{x:t.x(),y:t.y(),w:t.width(),h:t.height()}},A=function(t,n){return jn.getPos(e.body,_(t),n)},T=function(e,n,r){var i=b(n)?w(e).css(n,r):w(e).css(n);t.update_styles&&As(p,i)},D=function(e,n){var r=w(e).css(n);t.update_styles&&As(p,r)},M=function(e,t,n){var r=w(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=mr.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},P=function(e){var t,n;return e=_(e),t=M(e,"width"),n=M(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},I=function(e){var t,n;return e=_(e),t=A(e),n=P(e),{x:t.x,y:t.y,w:n.w,h:n.h}},j=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Cs.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return aa(t,o[0].ownerDocument||o[0],null,o).length>0},L=function(e,t,n,r){var i,o=[],a=_(e);r=void 0===r,n=n||("BODY"!==k().nodeName?k().parentNode:null),Fr.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return j(e,i)});while(a){if(a===n||!a.nodeType||9===a.nodeType)break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},N=function(e,t,n){var r=L(e,t,n,!1);return r&&r.length>0?r[0]:null},R=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return j(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},B=function(e,t){return R(e,t,"nextSibling")},$=function(e,t){return R(e,t,"previousSibling")},F=function(n,r){return aa(n,_(r)||t.root_element||e,[])},z=function(e,t,n){var r,o="string"===typeof e?_(e):e;if(!o)return!1;if(Fr.isArray(o)&&(o.length||0===o.length))return r=[],xs(o,(function(e,i){e&&("string"===typeof e&&(e=_(e)),r.push(t.call(n,e,i)))})),r;var a=n||i;return t.call(a,o)},q=function(e,t){w(e).each((function(e,n){xs(t,(function(e,t){S(n,t,e)}))}))},U=function(e,t){var n=w(e);Ss?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Qa("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},H=function(t,n,r,i,o){return z(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return q(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&U(a,i)),o?a:t.appendChild(a)}))},V=function(t,n,r){return H(e.createElement(t),t,n,r,!0)},W=Mi.decode,K=Mi.encodeAllRaw,G=function(e,t,n){var r,i="";for(r in i+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!==typeof t[r]&&(i+=" "+r+'="'+K(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},Y=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i},X=function(e,t){var n=w(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},Z=function(e){return z(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},J=function(e){return p.parse(e)},ee=function(e,t){return p.serialize(e,t)},te=function(t){var r,i;if(De!==Ds.DOM&&e===n.document){if(o[t])return;o[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},ne=function(r){var i;De===Ds.DOM||e!==n.document?(r||(r=""),i=e.getElementsByTagName("head")[0],xs(r.split(","),(function(e){var n;e=Fr._addCacheSuffix(e),s[e]||(s[e]=!0,n=V("link",Q(Q({rel:"stylesheet",type:"text/css",href:e},t.contentCssCors?{crossOrigin:"anonymous"}:{}),t.referrerPolicy?{referrerPolicy:t.referrerPolicy}:{})),i.appendChild(n))}))):Ds.DOM.loadCSS(r)},re=function(e,t,n){w(e).toggleClass(t,n).each((function(){""===this.className&&Qa(this).attr("class",null)}))},ie=function(e,t){w(e).addClass(t)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){return w(e).hasClass(t)},se=function(e){w(e).show()},le=function(e){w(e).hide()},ue=function(e){return"none"===w(e).css("display")},ce=function(e){return(e||"mce_")+l++},fe=function(e){var t="string"===typeof e?_(e):e;return _e.isElement(t)?t.outerHTML:Qa("<div></div>").append(Qa(t).clone()).html()},de=function(e,t){w(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}X(Qa(this).html(t),!0)}))},he=function(e,t){var n=_(t);return z(e,(function(e){var t,r;return t=n.parentNode,r=n.nextSibling,r?t.insertBefore(e,r):t.appendChild(e),e}))},pe=function(e,t,n){return z(t,(function(t){return Fr.is(t,"array")&&(e=e.cloneNode(!0)),n&&xs(Os(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},ge=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=V(t),xs(O(e),(function(t){S(n,t.nodeName,x(e,t.nodeName))})),pe(n,e,!0)),n||e},me=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return p.toHex(Fr.trim(e))},ye=function(e,t){var n,r,i,o,a=0;if(e=e.firstChild,e){var s=new Ja(e,e.parentNode),l=h?h.getWhiteSpaceElements():{};t=t||(h?h.getNonEmptyElements():null);do{if(i=e.nodeType,_e.isElement(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=s.next("all"===u);continue}if(o=e.nodeName.toLowerCase(),t&&t[o]){if("br"===o){a++,e=s.next();continue}return!1}r=O(e),n=r.length;while(n--)if(o=r[n].nodeName,"name"===o||"data-mce-bookmark"===o)return!1}if(8===i)return!1;if(3===i&&!ks.test(e.nodeValue))return!1;if(3===i&&e.parentNode&&l[e.parentNode.nodeName]&&ks.test(e.nodeValue))return!1;e=s.next()}while(e)}return a<=1},be=function(){return e.createRange()},we=function(e,t,n){var r,i,o,a=be();if(e&&t)return a.setStart(e.parentNode,Ts(e)),a.setEnd(t.parentNode,Ts(t)),r=a.extractContents(),a=be(),a.setStart(t.parentNode,Ts(t)+1),a.setEnd(e.parentNode,Ts(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(mi.trimNode(De,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(mi.trimNode(De,i),e),X(e),n||t},xe=function(n,r,i,o){if(Fr.isArray(n)){var s=n.length,l=[];while(s--)l[s]=xe(n[s],r,i,o);return l}return!t.collect||n!==e&&n!==a||d.push([n,r,i,o]),g.bind(n,r,i,o||De)},Oe=function(t,n,r){var i;if(Fr.isArray(t)){i=t.length;var o=[];while(i--)o[i]=Oe(t[i],n,r);return o}if(d&&(t===e||t===a)){i=d.length;while(i--){var s=d[i];t!==s[0]||n&&n!==s[1]||r&&r!==s[2]||g.unbind(s[0],s[1],s[2])}}return g.unbind(t,n,r)},Se=function(e,t,n){return g.fire(e,t,n)},Ce=function(e){if(e&&_e.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},ke=function(e){for(var t=k(),n=null;e&&e!==t;e=e.parentNode)if(n=Ce(e),null!==n)break;return n},Ee=function(){if(d){var e=d.length;while(e--){var t=d[e];g.unbind(t[0],t[1],t[2])}}aa.setDocument&&aa.setDocument()},Ae=function(e,t){while(e){if(t===e)return!0;e=e.parentNode}return!1},Te=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},De={doc:e,settings:t,win:a,files:s,stdMode:u,boxModel:c,styleSheetLoader:f,boundEvents:d,styles:p,schema:h,events:g,isBlock:y,$:v,$$:w,root:null,clone:C,getRoot:k,getViewPort:E,getRect:I,getSize:P,getParent:N,getParents:L,get:_,getNext:B,getPrev:$,select:F,is:j,add:H,create:V,createHTML:G,createFragment:Y,remove:X,setStyle:T,getStyle:M,setStyles:D,removeAllAttribs:Z,setAttrib:S,setAttribs:q,getAttrib:x,getPos:A,parseStyle:J,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:ie,removeClass:oe,hasClass:ae,toggleClass:re,show:se,hide:le,isHidden:ue,uniqueId:ce,setHTML:U,getOuterHTML:fe,setOuterHTML:de,decode:W,encode:K,insertAfter:he,replace:pe,rename:ge,findCommonAncestor:me,toHex:ve,run:z,getAttribs:O,isEmpty:ye,createRng:be,nodeIndex:Ts,split:we,bind:xe,unbind:Oe,fire:Se,getContentEditable:Ce,getContentEditableParent:ke,destroy:Ee,isChildOf:Ae,dumpRng:Te};return r=Es(p,t,(function(){return De})),De}(function(e){e.DOM=e(n.document),e.nodeIndex=Ts})(Ds||(Ds={}));var Ms=Ds,Ps=Ms.DOM,Is=Fr.each,js=Fr.grep,Ls=0,Ns=1,Rs=2,Bs=3,$s=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,r){var i,o,a=Ps,s=function(){a.remove(o),i&&(i.onreadystatechange=i.onload=i=null),t()},l=function(){S(r)?r():"undefined"!==typeof n.console&&n.console.log&&n.console.log("Failed to load script: "+e)};o=a.uniqueId(),i=n.document.createElement("script"),i.id=o,i.type="text/javascript",i.src=Fr._addCacheSuffix(e),this.settings.referrerPolicy&&a.setAttrib(i,"referrerpolicy",this.settings.referrerPolicy),i.onload=s,i.onerror=l,(n.document.getElementsByTagName("head")[0]||n.document.body).appendChild(i)},e.prototype.isDone=function(e){return this.states[e]===Rs},e.prototype.markDone=function(e){this.states[e]=Rs},e.prototype.add=function(e,t,n,r){var i=this.states[e];void 0===i&&(this.queue.push(e),this.states[e]=Ls),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i,o=this,a=[],s=function(e,t){Is(o.scriptLoadedCallbacks[t],(function(t){S(t[e])&&t[e].call(t.scope)})),o.scriptLoadedCallbacks[t]=void 0};o.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this}),i=function(){var t=js(e);if(e.length=0,Is(t,(function(e){o.states[e]!==Rs?o.states[e]!==Bs?o.states[e]!==Ns&&(o.states[e]=Ns,o.loading++,o.loadScript(e,(function(){o.states[e]=Rs,o.loading--,s("success",e),i()}),(function(){o.states[e]=Bs,o.loading--,a.push(e),s("failure",e),i()}))):s("failure",e):s("success",e)})),!o.loading){var n=o.queueLoadedCallbacks.slice(0);o.queueLoadedCallbacks.length=0,Is(n,(function(e){0===a.length?S(e.success)&&e.success.call(e.scope):S(e.failure)&&e.failure.call(e.scope,a)}))}},i()},e.ScriptLoader=new e,e}(),Fs=function(e){return _(e)&&Rt(e,"raw")},zs=function(e){return w(e)&&e.length>1},qs={},Us=we("en"),Hs=function(){return It(qs,(function(e){return Q({},e)}))},Vs=function(e){e&&Us.set(e)},Ws=function(){return Us.get()},Ks=function(e,t){var n=qs[e];for(var r in n||(qs[e]=n={}),t)n[r.toLowerCase()]=t[r]},Gs=function(e){var t=qs[Us.get()]||{},n=function(e){return S(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e),i=r.toLowerCase();return Rt(t,i)?n(t[i]):r},o=function(e){return e.replace(/{context:\w+}$/,"")},a=function(e){return e};if(r(e))return a("");if(Fs(e))return a(n(e.raw));if(zs(e)){var s=e.slice(1),l=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Rt(s,t)?n(s[t]):e}));return a(o(l))}return a(o(i(e)))},Ys=function(){return Nt(qs,Us.get()).bind((function(e){return Nt(e,"_dir")})).exists((function(e){return"rtl"===e}))},Xs=function(e){return Rt(qs,e)},Zs={getData:Hs,setCode:Vs,getCode:Ws,add:Ks,translate:Gs,isRtl:Ys,hasCode:Xs},Qs=Fr.each;function Js(){var e=this,t=[],n={},r={},i=[],o=function(e){if(r[e])return r[e].instance},a=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},s=function(e,t){var r=Zs.getCode();if(r&&!1!==Js.languageLoad){if(t)if(t=","+t+",",-1!==t.indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1===t.indexOf(","+r+","))return;$s.ScriptLoader.add(n[e]+"/langs/"+r+".js")}},l=function(e,n,o){t.push(n),r[e]={instance:n,dependencies:o};var a=N(i,(function(t){return t.name===e}));return i=a.fail,Qs(a.pass,(function(e){e.callback()})),n},u=function(e){delete n[e],delete r[e]},c=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},f=function(t,n){var r=e.urls[t];Qs(n,(function(e){$s.ScriptLoader.add(r+"/"+e)}))},d=function(e,t,n,r){var i=a(e);Qs(i,(function(e){var n=c(t,e);h(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call($s))},h=function(e,t,i,o,a){if(!n[e]){var s="string"===typeof t?t:t.prefix+t.resource+t.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=Js.baseURL+"/"+s),n[e]=s.substring(0,s.lastIndexOf("/")),r[e]?d(e,t,i,o):$s.ScriptLoader.add(s,(function(){return d(e,t,i,o)}),o,a)}},p=function(e,t){r.hasOwnProperty(e)?t():i.push({name:e,callback:t})};return{items:t,urls:n,lookup:r,_listeners:i,get:o,dependencies:a,requireLangPack:s,add:l,remove:u,createUrl:c,addComponents:f,load:h,waitFor:p}}(function(e){e.PluginManager=e(),e.ThemeManager=e()})(Js||(Js={}));var el=Js,tl=function(e,t){var r=null,i=function(){null!==r&&(n.clearTimeout(r),r=null)},o=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];null===r&&(r=n.setTimeout((function(){e.apply(null,i),r=null}),t))};return{cancel:i,throttle:o}},nl=function(e,t){var r=null,i=function(){null!==r&&(n.clearTimeout(r),r=null)},o=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];null!==r&&n.clearTimeout(r),r=n.setTimeout((function(){e.apply(null,i),r=null}),t)};return{cancel:i,throttle:o}},rl=function(e,t){var n=Ut(e,t);return void 0===n||""===n?[]:n.split(" ")},il=function(e,t,n){var r=rl(e,t),i=r.concat([n]);return zt(e,t,i.join(" ")),!0},ol=function(e,t,n){var r=R(rl(e,t),(function(e){return e!==n}));return r.length>0?zt(e,t,r.join(" ")):Vt(e,t),!1},al=function(e){return void 0!==e.dom().classList},sl=function(e){return rl(e,"class")},ll=function(e,t){return il(e,"class",t)},ul=function(e,t){return ol(e,"class",t)},cl=function(e,t){al(e)?e.dom().classList.add(t):ll(e,t)},fl=function(e){var t=al(e)?e.dom().classList:sl(e);0===t.length&&Vt(e,"class")},dl=function(e,t){if(al(e)){var n=e.dom().classList;n.remove(t)}else ul(e,t);fl(e)},hl=function(e,t){return al(e)&&e.dom().classList.contains(t)},pl=function(e,t){var n=[];return j(Sn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(pl(e,t))})),n},gl=function(e,t){return ln(t,e)};function ml(e,t,n,r,i){return e(n,r)?m.some(n):S(i)&&i(n)?m.none():t(n,r,i)}var vl=function(e,t,n){var r=e.dom(),i=S(n)?n:o(!1);while(r.parentNode){r=r.parentNode;var a=wt.fromDom(r);if(t(a))return m.some(a);if(i(a))break}return m.none()},yl=function(e,t,n){var r=function(e,t){return t(e)};return ml(r,vl,e,t,n)},bl=function(e,t,n){return vl(e,(function(e){return an(e,t)}),n)},_l=function(e,t){return un(t,e)},wl=function(e,t,n){return ml(an,bl,e,t,n)},xl=o("mce-annotation"),Ol=o("data-mce-annotation"),Sl=o("data-mce-annotation-uid"),Cl=function(e,t){var n=e.selection.getRng(),r=wt.fromDom(n.startContainer),i=wt.fromDom(e.getBody()),o=t.fold((function(){return"."+xl()}),(function(e){return"["+Ol()+'="'+e+'"]'})),a=Cn(r,n.startOffset).getOr(r),s=wl(a,o,(function(e){return cn(e,i)})),l=function(e,t){return Ht(e,t)?m.some(Ut(e,t)):m.none()};return s.bind((function(t){return l(t,""+Sl()).bind((function(n){return l(t,""+Ol()).map((function(t){var r=El(e,n);return{uid:n,name:t,elements:r}}))}))}))},kl=function(e){return At(e)&&hl(e,xl())},El=function(e,t){var n=wt.fromDom(e.getBody());return gl(n,"["+Sl()+'="'+t+'"]')},Al=function(e,t){var n=wt.fromDom(e.getBody()),r=gl(n,"["+Ol()+'="'+t+'"]'),i={};return j(r,(function(e){var t=Ut(e,Sl()),n=i.hasOwnProperty(t)?i[t]:[];i[t]=n.concat([e])})),i},Tl=function(e,t){var n=we({}),r=function(){return{listeners:[],previous:we(m.none())}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=i.hasOwnProperty(e)?i[e]:r(),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){j(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:I(n,(function(e){return e.dom()}))})}))}))},s=function(e){i(e,(function(t){j(t.listeners,(function(t){return t(!1,e)}))}))},l=nl((function(){var t=n.get(),r=G(Dt(t));j(r,(function(t){o(t,(function(n){var r=n.previous.get();return Cl(e,m.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.set(m.none()))}),(function(e){var t=e.uid,i=e.name,o=e.elements;r.is(t)||(a(i,t,o),n.previous.set(m.some(t)))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){l.cancel()})),e.on("NodeChange",(function(){l.throttle()}));var u=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:u}},Dl=function(e,t){var n=function(e){return m.from(e.attr(Ol())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){j(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Ml=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return e.hasOwnProperty(t)?m.from(e[t]).map((function(e){return e.settings})):m.none()};return{register:t,lookup:n}},Pl=0,Il=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Pl++,e+"_"+r+Pl+String(n)},jl=function(e,t){j(t,(function(t){cl(e,t)}))},Ll=function(e,t){return wt.fromDom(e.dom().cloneNode(t))},Nl=function(e){return Ll(e,!1)},Rl=function(e){return Ll(e,!0)},Bl=function(e,t){var r=t||n.document,i=r.createElement("div");return i.innerHTML=e,Sn(wt.fromDom(i))},$l=function(e){return e.dom().innerHTML},Fl=function(e,t){var n=gn(e),r=n.dom(),i=wt.fromDom(r.createDocumentFragment()),o=Bl(t,r);as(i,o),ss(e),rs(e,i)},zl="\ufeff",ql=function(e){return e===zl},Ul=function(e){return e.replace(new RegExp(zl,"g"),"")},Hl={isZwsp:ql,ZWSP:zl,trim:Ul},Vl=_e.isElement,Wl=_e.isText,Kl=function(e){return Wl(e)&&(e=e.parentNode),Vl(e)&&e.hasAttribute("data-mce-caret")},Gl=function(e){return Wl(e)&&Hl.isZwsp(e.data)},Yl=function(e){return Kl(e)||Gl(e)},Xl=function(e){return e.firstChild!==e.lastChild||!_e.isBr(e.firstChild)},Zl=function(e,t){var n,r,i,o;if(n=e.ownerDocument,i=n.createTextNode(Hl.ZWSP),o=e.parentNode,t){if(r=e.previousSibling,Wl(r)){if(Yl(r))return r;if(ru(r))return r.splitText(r.data.length-1)}o.insertBefore(i,e)}else{if(r=e.nextSibling,Wl(r)){if(Yl(r))return r;if(nu(r))return r.splitText(1),r}e.nextSibling?o.insertBefore(i,e.nextSibling):o.appendChild(i)}return i},Ql=function(e){var t=e.container();return!(!e||!_e.isText(t))&&(t.data.charAt(e.offset())===Hl.ZWSP||e.isAtStart()&&Gl(t.previousSibling))},Jl=function(e){var t=e.container();return!(!e||!_e.isText(t))&&(t.data.charAt(e.offset()-1)===Hl.ZWSP||e.isAtEnd()&&Gl(t.nextSibling))},eu=function(){var e=n.document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},tu=function(e,t,n){var r,i,o;return r=t.ownerDocument,i=r.createElement(e),i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(eu()),o=t.parentNode,n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},nu=function(e){return Wl(e)&&e.data[0]===Hl.ZWSP},ru=function(e){return Wl(e)&&e.data[e.data.length-1]===Hl.ZWSP},iu=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];_e.isBogus(n)&&n.parentNode.removeChild(n)},ou=function(e){return e&&e.hasAttribute("data-mce-caret")?(iu(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},au=function(e){return Kl(e.startContainer)},su=_e.isContentEditableTrue,lu=_e.isContentEditableFalse,uu=_e.isBr,cu=_e.isText,fu=_e.matchNodeNames(["script","style","textarea"]),du=_e.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),hu=_e.matchNodeNames(["table"]),pu=Yl,gu=function(e){return!pu(e)&&(cu(e)?!fu(e.parentNode):du(e)||uu(e)||hu(e)||vu(e))},mu=function(e){return _e.isElement(e)&&"true"===e.getAttribute("unselectable")},vu=function(e){return!1===mu(e)&&lu(e)},yu=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(vu(e))return!1;if(su(e))return!0}return!0},bu=function(e){return!!vu(e)&&!0!==$(Z(e.getElementsByTagName("*")),(function(e,t){return e||su(t)}),!1)},_u=function(e){return du(e)||bu(e)},wu=function(e,t){return gu(e)&&yu(e,t)},xu=Math.round,Ou=function(e){return e?{left:xu(e.left),top:xu(e.top),bottom:xu(e.bottom),right:xu(e.right),width:xu(e.width),height:xu(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Su=function(e,t){return e=Ou(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Cu=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ku=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},Eu=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&ku(t.top-e.bottom,e,t)},Au=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ku(t.bottom-e.top,e,t)},Tu=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},Du=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},Mu=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},Pu=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯ﾞ-ﾟ]"),Iu=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&Pu.test(e)},ju=function(e,t,n){return e.isSome()&&t.isSome()?m.some(n(e.getOrDie(),t.getOrDie())):m.none()},Lu=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?m.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):m.none()},Nu=function(e,t){return e?m.some(t):m.none()},Ru=[].slice,Bu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ru.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},$u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ru.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},Fu={and:$u,or:Bu},zu=_e.isElement,qu=gu,Uu=_e.matchStyleValues("display","block table"),Hu=_e.matchStyleValues("float","left right"),Vu=Fu.and(zu,qu,l(Hu)),Wu=l(_e.matchStyleValues("white-space","pre pre-line pre-wrap")),Ku=_e.isText,Gu=_e.isBr,Yu=Ms.nodeIndex,Xu=Mu,Zu=function(e){return"createRange"in e?e.createRange():Ms.DOM.createRng()},Qu=function(e){return e&&/[\r\n\t ]/.test(e)},Ju=function(e){return!!e.setStart&&!!e.setEnd},ec=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(Qu(e.toString())&&Wu(n.parentNode)&&_e.isText(n)&&(t=n.data,Qu(t[r-1])||Qu(t[r+1])))},tc=function(e){var t,n=e.ownerDocument,r=Zu(n),i=n.createTextNode(" "),o=e.parentNode;return o.insertBefore(i,e),r.setStart(i,0),r.setEnd(i,1),t=Ou(r.getBoundingClientRect()),o.removeChild(i),t},nc=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&_e.isText(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),ic(o)}return null},rc=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},ic=function(e){var t,n;return n=e.getClientRects(),t=n.length>0?Ou(n[0]):Ou(e.getBoundingClientRect()),!Ju(e)&&Gu(e)&&rc(t)?tc(e):rc(t)&&Ju(e)?nc(e):t},oc=function(e,t){var n=Su(e,t);return n.width=1,n.right=n.left+1,n},ac=function(e){var t,n,r=[],i=function(e){0!==e.height&&(r.length>0&&Cu(e,r[r.length-1])||r.push(e))},o=function(e,t){var n=Zu(e.ownerDocument);if(t<e.data.length){if(Iu(e.data[t]))return r;if(Iu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!ec(n)))return i(oc(ic(n),!1)),r}t>0&&(n.setStart(e,t-1),n.setEnd(e,t),ec(n)||i(oc(ic(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),ec(n)||i(oc(ic(n),!0)))};if(Ku(e.container()))return o(e.container(),e.offset()),r;if(zu(e.container()))if(e.isAtEnd())n=Xu(e.container(),e.offset()),Ku(n)&&o(n,n.data.length),Vu(n)&&!Gu(n)&&i(oc(ic(n),!1));else{if(n=Xu(e.container(),e.offset()),Ku(n)&&o(n,0),Vu(n)&&e.isAtEnd())return i(oc(ic(n),!1)),r;t=Xu(e.container(),e.offset()-1),Vu(t)&&!Gu(t)&&(Uu(t)||Uu(n)||!Vu(n))&&i(oc(ic(t),!1)),Vu(n)&&i(oc(ic(n),!0))}return r};function sc(e,t,n){var r=function(){return Ku(e),0===t},i=function(){return Ku(e)?t>=e.data.length:t>=e.childNodes.length},a=function(){var n;return n=Zu(e.ownerDocument),n.setStart(e,t),n.setEnd(e,t),n},s=function(){return n||(n=ac(sc(e,t))),n},l=function(){return s().length>0},u=function(n){return n&&e===n.container()&&t===n.offset()},c=function(n){return Xu(e,n?t-1:t)};return{container:o(e),offset:o(t),toRange:a,getClientRects:s,isVisible:l,isAtStart:r,isAtEnd:i,isEqual:u,getNode:c}}(function(e){e.fromRangeStart=function(t){return e(t.startContainer,t.startOffset)},e.fromRangeEnd=function(t){return e(t.endContainer,t.endOffset)},e.after=function(t){return e(t.parentNode,Yu(t)+1)},e.before=function(t){return e(t.parentNode,Yu(t))},e.isAbove=function(e,t){return ju(Y(t.getClientRects()),X(e.getClientRects()),Eu).getOr(!1)},e.isBelow=function(e,t){return ju(X(t.getClientRects()),Y(e.getClientRects()),Au).getOr(!1)},e.isAtStart=function(e){return!!e&&e.isAtStart()},e.isAtEnd=function(e){return!!e&&e.isAtEnd()},e.isTextPosition=function(e){return!!e&&_e.isText(e.container())},e.isElementPosition=function(t){return!1===e.isTextPosition(t)}})(sc||(sc={}));var lc,uc=sc,cc=_e.isText,fc=_e.isBogus,dc=Ms.nodeIndex,hc=function(e){var t=e.parentNode;return fc(t)?hc(t):t},pc=function(e){return e?Er.reduce(e.childNodes,(function(e,t){return fc(t)&&"BR"!==t.nodeName?e=e.concat(pc(t)):e.push(t),e}),[]):[]},gc=function(e,t){while(e=e.previousSibling){if(!cc(e))break;t+=e.data.length}return t},mc=function(e){return function(t){return e===t}},vc=function(e){var t,n,r;return t=pc(hc(e)),n=Er.findIndex(t,mc(e),e),t=t.slice(0,n+1),r=Er.reduce(t,(function(e,n,r){return cc(n)&&cc(t[r-1])&&e++,e}),0),t=Er.filter(t,_e.matchNodeNames([e.nodeName])),n=Er.findIndex(t,mc(e),e),n-r},yc=function(e){var t;return t=cc(e)?"text()":e.nodeName.toLowerCase(),t+"["+vc(e)+"]"},bc=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},_c=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),cc(n)?i=gc(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(yc(n)),a=bc(e,n),a=Er.filter(a,l(_e.isBogus)),s=s.concat(Er.map(a,(function(e){return yc(e)}))),s.reverse().join("/")+","+i},wc=function(e,t,n){var r=pc(e);return r=Er.filter(r,(function(e,t){return!cc(e)||!cc(r[t-1])})),r=Er.filter(r,_e.matchNodeNames([t])),r[n]},xc=function(e,t){var n,r=e,i=0;while(cc(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!cc(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return cc(e)&&t>e.data.length&&(t=e.data.length),uc(e,t)},Oc=function(e,t){var n,r,i;return t?(n=t.split(","),t=n[0].split("/"),i=n.length>1?n[1]:"before",r=Er.reduce(t,(function(e,t){return t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t),t?("text()"===t[1]&&(t[1]="#text"),wc(e,t[1],parseInt(t[2],10))):null}),e),r?cc(r)?xc(r,parseInt(i,10)):(i="after"===i?dc(r)+1:dc(r),uc(r.parentNode,i)):null):null},Sc=function(e,t){_e.isText(t)&&0===t.data.length&&e.remove(t)},Cc=function(e,t,n){t.insertNode(n),Sc(e,n.previousSibling),Sc(e,n.nextSibling)},kc=function(e,t,n){var r=m.from(n.firstChild),i=m.from(n.lastChild);t.insertNode(n),r.each((function(t){return Sc(e,t.previousSibling)})),i.each((function(t){return Sc(e,t.nextSibling)}))},Ec=function(e,t,n){_e.isDocumentFragment(n)?kc(e,t,n):Cc(e,t,n)},Ac=_e.isContentEditableFalse,Tc=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&_e.isText(r);r=r.previousSibling)i+=e(r.data).length;return i},Dc=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],l=[],u=0,c=e.getRoot();for(_e.isText(a)?l.push(n?Tc(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(u=1,s=Math.max(0,o.length-1)),l.push(e.nodeIndex(o[s],n)+u));a&&a!==c;a=a.parentNode)l.push(e.nodeIndex(a,n));return l},Mc=function(e,t,n,r){var i=t.dom,o={};return o.start=Dc(i,e,n,r,!0),t.isCollapsed()||(o.end=Dc(i,e,n,r,!1)),o},Pc=function(e,t,n){var r=0;return Fr.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},Ic=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],_e.isElement(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},jc=function(e){return Ic(e,!0),Ic(e,!1),e},Lc=function(e,t){var n;if(_e.isElement(e)&&(e=Mu(e,t),Ac(e)))return e;if(Yl(e)){if(_e.isText(e)&&Kl(e)&&(e=e.parentNode),n=e.previousSibling,Ac(n))return n;if(n=e.nextSibling,Ac(n))return n}},Nc=function(e){return Lc(e.startContainer,e.startOffset)||Lc(e.endContainer,e.endOffset)},Rc=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Ac(r)||"IMG"===i)return{name:i,index:Pc(n.dom,i,r)};var a=Nc(o);return a?(i=a.tagName,{name:i,index:Pc(n.dom,i,a)}):Mc(e,n,t,o)},Bc=function(e){var t=e.getRng();return{start:_c(e.dom.getRoot(),uc.fromRangeStart(t)),end:_c(e.dom.getRoot(),uc.fromRangeEnd(t))}},$c=function(e){return{rng:e.getRng()}},Fc=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},zc=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:Pc(n,s,a)};var l=jc(r.cloneRange());if(!o){l.collapse(!1);var u=Fc(n,i+"_end",t);Ec(n,l,u)}r=jc(r),r.collapse(!0);var c=Fc(n,i+"_start",t);return Ec(n,r,c),e.moveToBookmark({id:i,keep:1}),{id:i}},qc=function(e,t,n){return 2===t?Rc(Hl.trim,n,e):3===t?Bc(e):t?$c(e):zc(e,!1)},Uc={getBookmark:qc,getUndoBookmark:s(Rc,a,!0),getPersistentBookmark:zc},Hc="_mce_caret",Vc=function(e){return _e.isElement(e)&&e.id===Hc},Wc=function(e,t){while(t&&t!==e){if(t.id===Hc)return t;t=t.parentNode}return null},Kc=_e.isElement,Gc=_e.isText,Yc=function(e){var t=e.parentNode;t&&t.removeChild(e)},Xc=function(e){try{return e.nodeValue}catch(t){return""}},Zc=function(e,t){0===t.length?Yc(e):e.nodeValue=t},Qc=function(e){var t=Hl.trim(e);return{count:e.length-t.length,text:t}},Jc=function(e,t){return af(e),t},ef=function(e,t){var n=Qc(e.data.substr(0,t.offset())),r=Qc(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Zc(e,i),uc(e,t.offset()-n.count)):t},tf=function(e,t){var n=t.container(),r=D(Z(n.childNodes),e).map((function(e){return e<t.offset()?uc(n,t.offset()-1):t})).getOr(t);return af(e),r},nf=function(e,t){return Gc(e)&&t.container()===e?ef(e,t):Jc(e,t)},rf=function(e,t){return t.container()===e.parentNode?tf(e,t):Jc(e,t)},of=function(e,t){return uc.isTextPosition(t)?nf(e,t):rf(e,t)},af=function(e){if(Kc(e)&&Yl(e)&&(Xl(e)?e.removeAttribute("data-mce-caret"):Yc(e)),Gc(e)){var t=Hl.trim(Xc(e));Zc(e,t)}},sf={removeAndReposition:of,remove:af},lf=gt().browser,uf=_e.isContentEditableFalse,cf=function(e){return _e.isElement(e)&&/^(TD|TH)$/i.test(e.tagName)},ff=function(e,t,n){var r,i,o,a,s,l=Su(t.getBoundingClientRect(),n);return"BODY"===e.tagName?(r=e.ownerDocument.documentElement,i=e.scrollLeft||r.scrollLeft,o=e.scrollTop||r.scrollTop):(s=e.getBoundingClientRect(),i=e.scrollLeft-s.left,o=e.scrollTop-s.top),l.left+=i,l.right+=i,l.top+=o,l.bottom+=o,l.width=1,a=t.offsetWidth-t.clientWidth,a>0&&(n&&(a*=-1),l.left+=a,l.right+=a),l},df=function(e){var t,n,r,i,o;for(t=Qa("*[contentEditable=false]",e),i=0;i<t.length;i++)n=t[i],r=n.previousSibling,ru(r)&&(o=r.data,1===o.length?r.parentNode.removeChild(r):r.deleteData(o.length-1,1)),r=n.nextSibling,nu(r)&&(o=r.data,1===o.length?r.parentNode.removeChild(r):r.deleteData(0,1))},hf=function(e,t,n){var r,i,o=we(m.none()),a=function(n,r){var a,u;if(s(),cf(r))return null;if(!t(r))return i=Zl(r,n),u=r.ownerDocument.createRange(),uf(i.nextSibling)?(u.setStart(i,0),u.setEnd(i,0)):(u.setStart(i,1),u.setEnd(i,1)),u;i=tu("p",r,n),a=ff(e,r,n),Qa(i).css("top",a.top);var c=Qa('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(a).appendTo(e)[0];return o.set(m.some({caret:c,element:r,before:n})),o.get().each((function(e){n&&Qa(e.caret).addClass("mce-visual-caret-before")})),l(),u=r.ownerDocument.createRange(),u.setStart(i,0),u.setEnd(i,0),u},s=function(){df(e),i&&(sf.remove(i),i=null),o.get().each((function(e){Qa(e.caret).remove(),o.set(m.none())})),sr.clearInterval(r)},l=function(){r=sr.setInterval((function(){n()?Qa("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):Qa("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")}),500)},u=function(){o.get().each((function(t){var n=ff(e,t.element,t.before);Qa(t.caret).css(Q({},n))}))},c=function(){return sr.clearInterval(r)},f=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:a,hide:s,getCss:f,reposition:u,destroy:c}},pf=function(){return lf.isIE()||lf.isEdge()||lf.isFirefox()},gf=function(e){return uf(e)||_e.isTable(e)&&pf()},mf=_e.isContentEditableFalse,vf=_e.matchStyleValues("display","block table table-cell table-caption list-item"),yf=Yl,bf=Kl,_f=_e.isElement,wf=gu,xf=function(e){return e>0},Of=function(e){return e<0},Sf=function(e,t){var n;while(n=e(t))if(!bf(n))return n;return null},Cf=function(e,t,n,r,i){var o=new Ja(e,r);if(Of(t)){if((mf(e)||bf(e))&&(e=Sf(o.prev,!0),n(e)))return e;while(e=Sf(o.prev,i))if(n(e))return e}if(xf(t)){if((mf(e)||bf(e))&&(e=Sf(o.next,!0),n(e)))return e;while(e=Sf(o.next,i))if(n(e))return e}return null},kf=function(e,t){while(e&&e!==t){if(vf(e))return e;e=e.parentNode}return null},Ef=function(e,t,n){return kf(e.container(),n)===kf(t.container(),n)},Af=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),_f(n)?n.childNodes[r+e]:null):null},Tf=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},Df=function(e,t,n){return kf(t,e)===kf(n,e)},Mf=function(e,t,n){var r,i;i=e?"previousSibling":"nextSibling";while(n&&n!==t){if(r=n[i],yf(r)&&(r=r[i]),mf(r)){if(Df(t,r,n))return r;break}if(wf(r))break;n=n.parentNode}return null},Pf=s(Tf,!0),If=s(Tf,!1),jf=function(e,t,n){var r,i,o,a,l=s(Mf,!0,t),u=s(Mf,!1,t);if(i=n.startContainer,o=n.startOffset,Kl(i)){if(_f(i)||(i=i.parentNode),a=i.getAttribute("data-mce-caret"),"before"===a&&(r=i.nextSibling,gf(r)))return Pf(r);if("after"===a&&(r=i.previousSibling,gf(r)))return If(r)}if(!n.collapsed)return n;if(_e.isText(i)){if(yf(i)){if(1===e){if(r=u(i),r)return Pf(r);if(r=l(i),r)return If(r)}if(-1===e){if(r=l(i),r)return If(r);if(r=u(i),r)return Pf(r)}return n}if(ru(i)&&o>=i.data.length-1)return 1===e&&(r=u(i),r)?Pf(r):n;if(nu(i)&&o<=1)return-1===e&&(r=l(i),r)?If(r):n;if(o===i.data.length)return r=u(i),r?Pf(r):n;if(0===o)return r=l(i),r?If(r):n}return n},Lf=function(e,t){return m.from(Af(e?0:-1,t)).filter(mf)},Nf=function(e,t,n){var r=jf(e,t,n);return-1===e?sc.fromRangeStart(r):sc.fromRangeEnd(r)},Rf=function(e){return m.from(e.getNode()).map(wt.fromDom)},Bf=function(e){return m.from(e.getNode(!0)).map(wt.fromDom)},$f=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Ff=function(e,t){var n=Ef(e,t);return!(n||!_e.isBr(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(lc||(lc={}));var zf=_e.isContentEditableFalse,qf=_e.isText,Uf=_e.isElement,Hf=_e.isBr,Vf=gu,Wf=_u,Kf=wu,Gf=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Yf=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Xf=function(e,t){if(xf(e)){if(Vf(t.previousSibling)&&!qf(t.previousSibling))return uc.before(t);if(qf(t))return uc(t,0)}if(Of(e)){if(Vf(t.nextSibling)&&!qf(t.nextSibling))return uc.after(t);if(qf(t))return uc(t,t.data.length)}return Of(e)?Hf(t)?uc.before(t):uc.after(t):uc.before(t)},Zf=function(e,t){var n=t.nextSibling;return n&&Vf(n)?qf(n)?uc(n,0):uc.before(n):Qf(lc.Forwards,uc.after(t),e)},Qf=function(e,t,n){var r,i,a,s,l;if(!Uf(n)||!t)return null;if(t.isEqual(uc.after(n))&&n.lastChild){if(l=uc.after(n.lastChild),Of(e)&&Vf(n.lastChild)&&Uf(n.lastChild))return Hf(n.lastChild)?uc.before(n.lastChild):l}else l=t;var u=l.container(),c=l.offset();if(qf(u)){if(Of(e)&&c>0)return uc(u,--c);if(xf(e)&&c<u.length)return uc(u,++c);r=u}else{if(Of(e)&&c>0&&(i=Yf(u,c-1),Vf(i)))return!Wf(i)&&(a=Cf(i,e,Kf,i),a)?qf(a)?uc(a,a.data.length):uc.after(a):qf(i)?uc(i,i.data.length):uc.before(i);if(xf(e)&&c<u.childNodes.length&&(i=Yf(u,c),Vf(i)))return Hf(i)?Zf(n,i):!Wf(i)&&(a=Cf(i,e,Kf,i),a)?qf(a)?uc(a,0):uc.before(a):qf(i)?uc(i,0):uc.after(i);r=i||l.getNode()}return(xf(e)&&l.isAtEnd()||Of(e)&&l.isAtStart())&&(r=Cf(r,e,o(!0),n,!0),Kf(r,n))?Xf(e,r):(i=Cf(r,e,Kf,n),s=Er.last(R(Gf(u,n),zf)),!s||i&&s.contains(i)?i?Xf(e,i):null:(l=xf(e)?uc.after(s):uc.before(s),l))},Jf=function(e){return{next:function(t){return Qf(lc.Forwards,t,e)},prev:function(t){return Qf(lc.Backwards,t,e)}}},ed=function(e,t,n){var r=e?uc.before(n):uc.after(n);return sd(e,t,r)},td=function(e){return _e.isBr(e)?uc.before(e):uc.after(e)},nd=function(e){return uc.isTextPosition(e)?0===e.offset():gu(e.getNode())},rd=function(e){if(uc.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return gu(e.getNode(!0))},id=function(e,t){return!uc.isTextPosition(e)&&!uc.isTextPosition(t)&&e.getNode()===t.getNode(!0)},od=function(e){return!uc.isTextPosition(e)&&_e.isBr(e.getNode())},ad=function(e,t,n){return e?!id(t,n)&&!od(t)&&rd(t)&&nd(n):!id(n,t)&&nd(t)&&rd(n)},sd=function(e,t,n){var r=Jf(t);return m.from(e?r.next(n):r.prev(n))},ld=function(e,t,n){return sd(e,t,n).bind((function(r){return Ef(n,r,t)&&ad(e,n,r)?sd(e,t,r):m.some(r)}))},ud=function(e,t,n,r){return ld(e,t,n).bind((function(n){return r(n)?ud(e,t,n,r):m.some(n)}))},cd=function(e,t){var n=e?t.firstChild:t.lastChild;return _e.isText(n)?m.some(uc(n,e?0:n.data.length)):n?gu(n)?m.some(e?uc.before(n):td(n)):ed(e,t,n):m.none()},fd=s(sd,!0),dd=s(sd,!1),hd={fromPosition:sd,nextPosition:fd,prevPosition:dd,navigate:ld,navigateIgnore:ud,positionIn:cd,firstPositionIn:s(cd,!0),lastPositionIn:s(cd,!1)},pd=function(e){return"string"===typeof e.start},gd=function(e){return e.hasOwnProperty("rng")},md=function(e){return e.hasOwnProperty("id")},vd=function(e){return e.hasOwnProperty("name")},yd=function(e){return Fr.isArray(e.start)},bd=function(e,t){return _e.isElement(t)&&e.isBlock(t)&&!t.innerHTML&&!mr.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},_d=function(e,t){var n,r;return n=e.createRng(),r=Oc(e.getRoot(),t.start),n.setStart(r.container(),r.offset()),r=Oc(e.getRoot(),t.end),n.setEnd(r.container(),r.offset()),n},wd=function(e,t){var n=e.ownerDocument.createTextNode(Hl.ZWSP);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},xd=function(e){return!1===e.hasChildNodes()},Od=function(e,t){return hd.lastPositionIn(e).fold((function(){return!1}),(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},Sd=function(e,t,n){return!(!xd(t)||!Wc(e,t))&&(wd(t,n),!0)},Cd=function(e,t,n,r){var i,o,a,s,l=n[t?"start":"end"],u=e.getRoot();if(l){for(a=l[0],o=u,i=l.length-1;i>=1;i--){if(s=o.childNodes,Sd(u,o,r))return!0;if(l[i]>s.length-1)return!!Sd(u,o,r)||Od(o,r);o=s[l[i]]}3===o.nodeType&&(a=Math.min(l[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(l[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},kd=function(e){return _e.isText(e)&&e.data.length>0},Ed=function(e,t,n){var r,i,o,a,s,l,u=e.get(n.id+"_"+t),c=n.keep;if(u){if(r=u.parentNode,"start"===t?(c?u.hasChildNodes()?(r=u.firstChild,i=1):kd(u.nextSibling)?(r=u.nextSibling,i=0):kd(u.previousSibling)?(r=u.previousSibling,i=u.previousSibling.data.length):(r=u.parentNode,i=e.nodeIndex(u)+1):i=e.nodeIndex(u),s=r,l=i):(c?u.hasChildNodes()?(r=u.firstChild,i=1):kd(u.previousSibling)?(r=u.previousSibling,i=u.previousSibling.data.length):(r=u.parentNode,i=e.nodeIndex(u)):i=e.nodeIndex(u),s=r,l=i),!c){a=u.previousSibling,o=u.nextSibling,Fr.each(Fr.grep(u.childNodes),(function(e){_e.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(u=e.get(n.id+"_"+t))e.remove(u,!0);a&&o&&a.nodeType===o.nodeType&&_e.isText(a)&&!mr.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,l=i)}return m.some(uc(s,l))}return m.none()},Ad=function(e,t){var n=e.createRng();return Cd(e,!0,t,n)&&Cd(e,!1,t,n)?m.some(n):m.none()},Td=function(e,t){var n=Ed(e,"start",t),r=Ed(e,"end",t);return ju(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(bd(e,t.container()),t.offset()),r.setEnd(bd(e,n.container()),n.offset()),r}))},Dd=function(e,t){return m.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},Md=function(e,t){var n=e.dom;if(t){if(yd(t))return Ad(n,t);if(pd(t))return m.some(_d(n,t));if(md(t))return Td(n,t);if(vd(t))return Dd(n,t);if(gd(t))return m.some(t.rng)}return m.none()},Pd={resolve:Md},Id=function(e,t,n){return Uc.getBookmark(e,t,n)},jd=function(e,t){Pd.resolve(e,t).each((function(t){e.setRng(t)}))},Ld=function(e){return _e.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Nd={getBookmark:Id,moveToBookmark:jd,isBookmarkNode:Ld},Rd=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Bd=function(e,t,n){var r,i,o,a=n.startOffset,s=n.startContainer;if((n.startContainer!==n.endContainer||!Rd(n.startContainer.childNodes[n.startOffset]))&&1===s.nodeType)for(o=s.childNodes,a<o.length?(s=o[a],r=new Ja(s,e.getParent(s,e.isBlock))):(s=o[o.length-1],r=new Ja(s,e.getParent(s,e.isBlock)),r.next(!0)),i=r.current();i;i=r.next())if(3===i.nodeType&&!qd(i))return n.setStart(i,0),void t.setRng(n)},$d=function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!qd(e))return e},Fd=function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},zd=function(e,t,n){return e.schema.isValidChild(t,n)},qd=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},Ud=function(e,t){return"string"!==typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Hd=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Vd=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Wd=function(e,t,n){return Vd(e,e.getStyle(t,n),n)},Kd=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},Gd=function(e,t,n){return e.getParents(t,n,e.getRoot())},Yd={isInlineBlock:Rd,moveStart:Bd,getNonWhiteSpaceSibling:$d,isTextBlock:Fd,isValid:zd,isWhiteSpaceNode:qd,replaceVars:Ud,isEq:Hd,normalizeStyleValue:Vd,getStyle:Wd,getTextDecoration:Kd,getParents:Gd},Xd=Nd.isBookmarkNode,Zd=Yd.getParents,Qd=Yd.isWhiteSpaceNode,Jd=Yd.isTextBlock,eh=function(e,t){"undefined"===typeof t&&(t=3===e.nodeType?e.length:e.childNodes.length);while(e&&e.hasChildNodes())e=e.childNodes[t],e&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},th=function(e,t){var n=eh(e,t);if(n.node){while(n.node&&0===n.offset&&n.node.previousSibling)n=eh(n.node.previousSibling);n.node&&n.offset>0&&3===n.node.nodeType&&" "===n.node.nodeValue.charAt(n.offset-1)&&n.offset>1&&(e=n.node,e.splitText(n.offset-1))}return e},nh=function(e){return"BR"===e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},rh=function(e,t){var n=t;while(n){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},ih=function(e,t,n,r){var i,o,a=n.nodeValue;return"undefined"===typeof r&&(r=e?a.length:0),e?(i=a.lastIndexOf(" ",r),o=a.lastIndexOf(" ",r),i=i>o?i:o,-1!==i&&!t&&(i<r||!e)&&i<=a.length&&i++):(i=a.indexOf(" ",r),o=a.indexOf(" ",r),i=-1!==i&&(-1===o||i<o)?i:o),i},oh=function(e,t,n,r,i,o){var a,s,l;if(3===n.nodeType){if(s=ih(i,o,n,r),-1!==s)return{container:n,offset:s};l=n}var u=new Ja(n,e.getParent(n,e.isBlock)||t);while(a=u[i?"prev":"next"]())if(3!==a.nodeType||Xd(a.parentNode)){if(e.isBlock(a)||Yd.isEq(a,"BR"))break}else if(l=a,s=ih(i,o,a),-1!==s)return{container:a,offset:s};if(l)return r=i?0:l.length,{container:l,offset:r}},ah=function(e,t,n,r,i){var o,a,s,l;for(3===r.nodeType&&0===r.nodeValue.length&&r[i]&&(r=r[i]),o=Zd(e,r),a=0;a<o.length;a++)for(s=0;s<t.length;s++)if(l=t[s],(!("collapsed"in l)||l.collapsed===n.collapsed)&&e.is(o[a],l.selector))return o[a];return r},sh=function(e,t,n,r){var i,o=e.dom,a=o.getRoot();if(t[0].wrapper||(i=o.getParent(n,t[0].block,a)),!i){var s=o.getParent(n,"LI,TD,TH");i=o.getParent(3===n.nodeType?n.parentNode:n,(function(t){return t!==a&&Jd(e,t)}),s)}if(i&&t[0].wrapper&&(i=Zd(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],Yd.isEq(i,"br"))break}return i||n},lh=function(e,t,n,r,i,o,a){var s,l,u,c,f;if(s=l=a?n:i,c=a?"previousSibling":"nextSibling",f=e.getRoot(),3===s.nodeType&&!Qd(s)&&(a?r>0:o<s.nodeValue.length))return s;while(1){if(!t[0].block_expand&&e.isBlock(l))return l;for(u=l[c];u;u=u[c])if(!Xd(u)&&!Qd(u)&&!nh(u))return l;if(l===f||l.parentNode===f){s=l;break}l=l.parentNode}return s},uh=function(e,t,n,r){var i,o=t.startContainer,a=t.startOffset,s=t.endContainer,l=t.endOffset,u=e.dom;return 1===o.nodeType&&o.hasChildNodes()&&(o=Mu(o,a),3===o.nodeType&&(a=0)),1===s.nodeType&&s.hasChildNodes()&&(s=Mu(s,t.collapsed?l:l-1),3===s.nodeType&&(l=s.nodeValue.length)),o=rh(u,o),s=rh(u,s),(Xd(o.parentNode)||Xd(o))&&(o=Xd(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,3===o.nodeType&&(a=t.collapsed?o.length:0)),(Xd(s.parentNode)||Xd(s))&&(s=Xd(s)?s:s.parentNode,s=t.collapsed?s.nextSibling||s:s.previousSibling||s,3===s.nodeType&&(l=t.collapsed?0:s.length)),t.collapsed&&(i=oh(u,e.getBody(),o,a,!0,r),i&&(o=i.container,a=i.offset),i=oh(u,e.getBody(),s,l,!1,r),i&&(s=i.container,l=i.offset)),n[0].inline&&(s=r?s:th(s,l)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===o.nodeType&&0!==a||(o=lh(u,n,o,a,s,l,!0)),n[0].inline&&3===s.nodeType&&l!==s.nodeValue.length||(s=lh(u,n,o,a,s,l,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(o=ah(u,n,t,o,"previousSibling"),s=ah(u,n,t,s,"nextSibling")),(n[0].block||n[0].selector)&&(o=sh(e,n,o,"previousSibling"),s=sh(e,n,s,"nextSibling"),n[0].block&&(u.isBlock(o)||(o=lh(u,n,o,a,s,l,!0)),u.isBlock(s)||(s=lh(u,n,o,a,s,l,!1)))),1===o.nodeType&&(a=u.nodeIndex(o),o=o.parentNode),1===s.nodeType&&(l=u.nodeIndex(s)+1,s=s.parentNode),{startContainer:o,startOffset:a,endContainer:s,endOffset:l}},ch={expandRng:uh},fh=Fr.each,dh=function(e,t){var n=e.childNodes;return t--,t>n.length-1?t=n.length-1:t<0&&(t=0),n[t]||e},hh=function(e,t,n){var r,i,o,a,s,l,u,c=t.startContainer,f=t.startOffset,d=t.endContainer,h=t.endOffset;if(u=e.select("td[data-mce-selected],th[data-mce-selected]"),u.length>0)fh(u,(function(e){n([e])}));else{var p=function(e){var t;return t=e[0],3===t.nodeType&&t===c&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===h&&e.length>0&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},g=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},m=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},v=function(e,t,r){var i=r?"nextSibling":"previousSibling";for(a=e,s=a.parentNode;a&&a!==t;a=s)s=a.parentNode,l=g(a===e?a:a[i],i),l.length&&(r||l.reverse(),n(p(l)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(d=dh(d,h)),c===d)return n(p([c]));for(r=e.findCommonAncestor(c,d),a=c;a;a=a.parentNode){if(a===d)return v(c,r,!0);if(a===r)break}for(a=d;a;a=a.parentNode){if(a===c)return v(d,r);if(a===r)break}i=m(c,r)||c,o=m(d,r)||d,v(c,i,!0),l=g(i===c?i:i.nextSibling,"nextSibling",o===d?o.nextSibling:o),l.length&&n(p(l)),v(d,o)}},ph={walk:hh},gh=function(){return"\ufeff"};function mh(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?m.from(t.dom().nodeValue):m.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r};return{get:n,getOption:r,set:i}}var vh=mh(Tt,"text"),yh=function(e){return vh.get(e)},bh=function(e){return Tt(e)&&yh(e)===gh()},_h=function(e,t,n,r){return yn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||bh(t)?"valid":kl(t)?"existing":Vc(t)?"caret":Yd.isValid(e,n,r)&&Yd.isValid(e,Ct(i),n)?"valid":"invalid-child"}))},wh=function(e){return 3===e.startContainer.nodeType&&e.startContainer.nodeValue.length>=e.startOffset&&" "===e.startContainer.nodeValue[e.startOffset]},xh=function(e,t){var n=ch.expandRng(e,t,[{inline:!0}],wh(t));t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Oh=function(e,t,n,r){var i=t.uid,o=void 0===i?Il("mce-annotation"):i,a=J(t,["uid"]),s=wt.fromTag("span",e);cl(s,xl()),zt(s,""+Sl(),o),zt(s,""+Ol(),n);var l=r(o,a),u=l.attributes,c=void 0===u?{}:u,f=l.classes,d=void 0===f?[]:f;return qt(s,c),jl(s,d),s},Sh=function(e,t,n,r,i){var o=[],a=Oh(e.getDoc(),i,n,r),s=we(m.none()),l=function(){s.set(m.none())},u=function(){return s.get().getOrThunk((function(){var e=Nl(a);return o.push(e),s.set(m.some(e)),e}))},c=function(e){j(e,f)},f=function(t){var n=_h(e,t,"span",Ct(t));switch(n){case"invalid-child":l();var r=Sn(t);c(r),l();break;case"valid":var i=u();is(t,i);break;case"skipping":case"existing":case"caret":}},d=function(e){var t=I(e,wt.fromDom);c(t)};return ph.walk(e.dom,t,(function(e){l(),d(e)})),o},Ch=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection.getRng();if(i.collapsed&&xh(e,i),e.selection.getRng().collapsed){var o=Oh(e.getDoc(),r,t,n.decorate);Fl(o," "),e.selection.getRng().insertNode(o.dom()),e.selection.select(o.dom())}else{var a=Uc.getPersistentBookmark(e.selection,!1),s=e.selection.getRng();Sh(e,s,t,n.decorate,r),e.selection.moveToBookmark(a)}}))},kh=function(e){var t=Ml();Dl(e,t);var n=Tl(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Ch(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Cl(e,m.some(t)).each((function(e){var t=e.elements;j(t,us)}))},getAll:function(t){var n=Al(e,t);return It(n,(function(e){return I(e,(function(e){return e.dom()}))}))}}},Eh=/^[ \t\r\n]*$/,Ah={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Th=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},Dh=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,Ah[t]||1);if(n)for(var i in n)r.attr(i,n[i]);return r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e){for(var i in e)r.attr(i,e[i]);return r}if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var o=n.length;while(o--)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){o=n.length;while(o--)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=Th(r,t))r.name===e&&n.push(r);return n},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=Th(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;var o=i.attributes.length;while(o--){var a=i.attributes[o].name;if("name"===a||0===a.indexOf("data-mce-bookmark"))return!1}}if(8===i.type)return!1;if(3===i.type&&!Eh.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Eh.test(i.value))return!1;if(n&&n(i))return!1}while(i=Th(i,r));return!0},e.prototype.walk=function(e){return Th(this,null,e)},e}(),Mh=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},Ph=function(e){return e.replace(/<!--|-->/g,"")},Ih=function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},jh=function(e,t,n){var r,i,o,a,s=1;a=e.getShortEndedElements(),o=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g,o.lastIndex=r=n;while(i=o.exec(t)){if(r=o.lastIndex,"/"===i[1])s--;else if(!i[1]){if(i[2]in a)continue;s++}if(0===s)break}return r},Lh=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null};function Nh(e,t){void 0===t&&(t=qi());var n=function(){};e=e||{},!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,i=e.cdata?e.cdata:n,o=e.text?e.text:n,a=e.start?e.start:n,s=e.end?e.end:n,l=e.pi?e.pi:n,u=e.doctype?e.doctype:n,c=function(n){var c,f,d,h,p,g,m,v,y,b,_,w,x,O,S,C,k,E,A,T,D,M,P,I,j,L,N,R,B,$,F=0,z=[],q=0,U=Mi.decode,H=Fr.makeMap("src,href,data,background,formaction,poster,xlink:href"),V=/((java|vb)script|mhtml):/i,W=function(e){var t,n;t=z.length;while(t--)if(z[t].name===e)break;if(t>=0){for(n=z.length-1;n>=t;n--)e=z[n],e.valid&&s(e.name);z.length=t}},K=function(t,n,r,i,o){var a,s,l=/[\s\u0000-\u001F]+/g;if(n=n.toLowerCase(),r=n in _?n:U(r||i||o||""),x&&!v&&!1===Mh(n)){if(a=E[n],!a&&A){s=A.length;while(s--)if(a=A[s],a.pattern.test(n))break;-1===s&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(H[n]&&!e.allow_script_urls){var u=r.replace(l,"");try{u=decodeURIComponent(u)}catch(c){u=unescape(u)}if(V.test(u))return;if(Ih(e,u))return}v&&(n in H||0===n.indexOf("on"))||(h.map[n]=r,h.push({name:n,value:r}))};L=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),N=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,b=t.getShortEndedElements(),j=e.self_closing_elements||t.getSelfClosingElements(),_=t.getBoolAttrs(),x=e.validate,y=e.remove_internals,$=e.fix_self_closing,R=t.getSpecialElements(),P=n+">";while(c=L.exec(P)){if(F<c.index&&o(U(n.substr(F,c.index-F))),f=c[6])f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),W(f);else if(f=c[7]){if(c.index+c[0].length>n.length){o(U(n.substr(c.index))),F=c.index+c[0].length;continue}f=f.toLowerCase(),":"===f.charAt(0)&&(f=f.substr(1)),w=f in b,$&&j[f]&&z.length>0&&z[z.length-1].name===f&&W(f);var G=Lh(N,c[8]);if(null!==G){if("all"===G){F=jh(t,n,L.lastIndex),L.lastIndex=F;continue}S=!1}if(!x||(O=t.getElementRule(f))){if(S=!0,x&&(E=O.attributes,A=O.attributePatterns),(k=c[8])?(v=-1!==k.indexOf("data-mce-type"),v&&y&&(S=!1),h=[],h.map={},k.replace(N,K)):(h=[],h.map={}),x&&!v){if(T=O.attributesRequired,D=O.attributesDefault,M=O.attributesForced,I=O.removeEmptyAttrs,I&&!h.length&&(S=!1),M){p=M.length;while(p--)C=M[p],m=C.name,B=C.value,"{$uid}"===B&&(B="mce_"+q++),h.map[m]=B,h.push({name:m,value:B})}if(D){p=D.length;while(p--)C=D[p],m=C.name,m in h.map||(B=C.value,"{$uid}"===B&&(B="mce_"+q++),h.map[m]=B,h.push({name:m,value:B}))}if(T){p=T.length;while(p--)if(T[p]in h.map)break;-1===p&&(S=!1)}if(C=h.map["data-mce-bogus"]){if("all"===C){F=jh(t,n,L.lastIndex),L.lastIndex=F;continue}S=!1}}S&&a(f,h,w)}else S=!1;if(d=R[f]){d.lastIndex=F=c.index+c[0].length,(c=d.exec(n))?(S&&(g=n.substr(F,c.index-F)),F=c.index+c[0].length):(g=n.substr(F),F=n.length),S&&(g.length>0&&o(g,!0),s(f)),L.lastIndex=F;continue}w||(k&&k.indexOf("/")===k.length-1?S&&s(f):z.push({name:f,valid:S}))}else(f=c[1])?(">"===f.charAt(0)&&(f=" "+f),e.allow_conditional_comments||"[if"!==f.substr(0,3).toLowerCase()||(f=" "+f),r(f)):(f=c[2])?i(Ph(f)):(f=c[3])?u(f):(f=c[4])&&l(f,c[5]);F=c.index+c[0].length}for(F<n.length&&o(U(n.substr(F))),p=z.length-1;p>=0;p--)f=z[p],f.valid&&s(f.name)};return{parse:c}}(function(e){e.findEndTag=jh})(Nh||(Nh={}));var Rh,Bh=Nh,$h=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")},Fh=function(e,t){var n,r,i,o,a,s=t,l=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,u=e.schema;s=$h(e.getTempAttrs(),s),a=u.getShortEndedElements();while(o=l.exec(s))r=l.lastIndex,i=o[0].length,n=a[o[1]]?r:Bh.findEndTag(u,s,r),s=s.substring(0,r-i)+s.substring(n),l.lastIndex=r-i;return Hl.trim(s)},zh=Fh,qh={trimExternal:zh,trimInternal:Fh},Uh=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return i.hasOwnProperty(e.id)?i[e.id]:n}return r},Hh=function(e){return e.getParam("iframe_attrs",{})},Vh=function(e){return e.getParam("doctype","<!DOCTYPE html>")},Wh=function(e){return e.getParam("document_base_url","")},Kh=function(e){return Uh(e,"body_id","tinymce")},Gh=function(e){return Uh(e,"body_class","")},Yh=function(e){return e.getParam("content_security_policy","")},Xh=function(e){return e.getParam("br_in_pre",!0)},Zh=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Qh=function(e){return e.getParam("forced_root_block_attrs",{})},Jh=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},ep=function(e){return e.getParam("no_newline_selector","")},tp=function(e){return e.getParam("keep_styles",!0)},np=function(e){return e.getParam("end_container_on_empty_block",!1)},rp=function(e){return Fr.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},ip=function(e){return Fr.explode(e.getParam("font_size_classes",""))},op=function(e){return e.getParam("images_dataimg_filter",o(!0),"function")},ap=function(e){return e.getParam("automatic_uploads",!0,"boolean")},sp=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},lp=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},up=function(e){return e.getParam("icons","","string")},cp=function(e){return e.getParam("icons_url","","string")},fp=function(e){return e.getParam("images_upload_url","","string")},dp=function(e){return e.getParam("images_upload_base_path","","string")},hp=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},pp=function(e){return e.getParam("images_upload_handler",null,"function")},gp=function(e){return e.getParam("content_css_cors",!1,"boolean")},mp=function(e){return e.getParam("referrer_policy","","string")},vp=function(e){return e.getParam("language","en","string")},yp=function(e){return e.getParam("language_url","","string")},bp=function(e){return e.getParam("indent_use_margin",!1)},_p=function(e){return e.getParam("indentation","40px","string")},wp=function(e){var t=e.settings.content_css;return b(t)?I(t.split(","),rt):w(t)?t:!1===t||e.inline?[]:["default"]},xp=function(e){return e.getParam("directionality",Zs.isRtl()?"rtl":void 0)},Op=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Sp={getIframeAttrs:Hh,getDocType:Vh,getDocumentBaseUrl:Wh,getBodyId:Kh,getBodyClass:Gh,getContentSecurityPolicy:Yh,shouldPutBrInPre:Xh,getForcedRootBlock:Zh,getForcedRootBlockAttrs:Qh,getBrNewLineSelector:Jh,getNoNewLineSelector:ep,shouldKeepStyles:tp,shouldEndContainerOnEmptyBlock:np,getFontStyleValues:rp,getFontSizeClasses:ip,getIconPackName:up,getIconsUrl:cp,getImagesDataImgFilter:op,isAutomaticUploadsEnabled:ap,shouldReuseFileName:sp,shouldReplaceBlobUris:lp,getImageUploadUrl:fp,getImageUploadBasePath:dp,getImagesUploadCredentials:hp,getImagesUploadHandler:pp,shouldUseContentCssCors:gp,getReferrerPolicy:mp,getLanguageCode:vp,getLanguageUrl:yp,shouldIndentUseMargin:bp,getIndentation:_p,getContentCss:wp,getDirectionality:xp,getInlineBoundarySelector:Op},Cp="html",kp=function(e,t){var n=Sp.getForcedRootBlock(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},Ep=function(e,t,n){var r;if(t.format=t.format?t.format:Cp,t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=Fr.trim(qh.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=Hl.trim(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);r=kp(e,e.serializer.serialize(n,t))}return"text"===t.format||di(wt.fromDom(n))?t.content=r:t.content=Fr.trim(r),t.no_events||e.fire("GetContent",t),t.content},Ap=function(e,t){return void 0===t&&(t={}),m.from(e.getBody()).fold(o("tree"===t.format?new Dh("body",11):""),(function(n){return Ep(e,t,n)}))},Tp=Fr.makeMap,Dp=function(e){var t,n,r,i,o,a=[];return e=e||{},t=e.indent,n=Tp(e.indent_before||""),r=Tp(e.indent_after||""),i=Mi.getEncodeFunc(e.entity_encoding||"raw",e.entities),o="html"===e.element_format,{start:function(e,s,l){var u,c,f,d;if(t&&n[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n")),a.push("<",e),s)for(u=0,c=s.length;u<c;u++)f=s[u],a.push(" ",f.name,'="',i(f.value,!0),'"');a[a.length]=!l||o?">":" />",l&&t&&r[e]&&a.length>0&&(d=a[a.length-1],d.length>0&&"\n"!==d&&a.push("\n"))},end:function(e){var n;a.push("</",e,">"),t&&r[e]&&a.length>0&&(n=a[a.length-1],n.length>0&&"\n"!==n&&a.push("\n"))},text:function(e,t){e.length>0&&(a[a.length]=t?e:i(e))},cdata:function(e){a.push("<![CDATA[",e,"]]>")},comment:function(e){a.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?a.push("<?",e," ",i(n),"?>"):a.push("<?",e,"?>"),t&&a.push("\n")},doctype:function(e){a.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){a.length=0},getContent:function(){return a.join("").replace(/\n$/,"")}}},Mp=function(e,t){void 0===t&&(t=qi());var n=Dp(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i,o;o=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}},n.reset();var a=function(e){var r,s,l,u,c,f,d,h,p,g=i[e.type];if(g)g(e);else{if(r=e.name,s=e.shortEnded,l=e.attributes,o&&l&&l.length>1&&(f=[],f.map={},p=t.getElementRule(e.name),p)){for(d=0,h=p.attributesOrder.length;d<h;d++)u=p.attributesOrder[d],u in l.map&&(c=l.map[u],f.map[u]=c,f.push({name:u,value:c}));for(d=0,h=l.length;d<h;d++)u=l[d].name,u in f.map||(c=l.map[u],f.map[u]=c,f.push({name:u,value:c}));l=f}if(n.start(e.name,l,s),!s){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(r)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()};return{serialize:r}},Pp=function(e,t){t(e),e.firstChild&&Pp(e.firstChild,t),e.next&&Pp(e.next,t)},Ip=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&Pp(n.firstChild,(function(n){j(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),j(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)r.hasOwnProperty(a)&&o.push(r[a]);for(var a in i)i.hasOwnProperty(a)&&o.push(i[a]);return o},jp=function(e,t,n){var r=Ip(e,t,n);j(r,(function(e){j(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},Lp=function(e){var t=gn(e).dom();return e.dom()===t.activeElement},Np=function(e){var t=void 0!==e?e.dom():n.document;return m.from(t.activeElement).map(wt.fromDom)},Rp=function(e){return Np(gn(e)).filter((function(t){return e.dom().contains(t.dom())}))},Bp=function(e){if(!w(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],r={};return j(e,(function(i,o){var a=Dt(i);if(1!==a.length)throw new Error("one and only one name per case");var s=a[0],l=i[s];if(void 0!==r[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!w(l))throw new Error("case arguments must be an array");t.push(s),r[s]=function(){var r=arguments.length;if(r!==l.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+l.length+" ("+l+"), got "+r);for(var i=new Array(r),a=0;a<i.length;a++)i[a]=arguments[a];var u=function(e){var n=Dt(e);if(t.length!==n.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+n.join(","));var r=H(t,(function(e){return M(n,e)}));if(!r)throw new Error("Not all branches were specified when using match. Specified: "+n.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,i)};return{fold:function(){if(arguments.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+arguments.length);var t=arguments[o];return t.apply(null,i)},match:u,log:function(e){n.console.log(e,{constructors:t,constructor:s,params:i})}}}})),r},$p={generate:Bp},Fp=Xt("start","soffset","finish","foffset"),zp={create:Fp},qp=$p.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Up=function(e,t,n,r){return e.fold(t,n,r)},Hp=function(e){return e.fold(a,a,a)},Vp=qp.before,Wp=qp.on,Kp=qp.after,Gp={before:Vp,on:Wp,after:Kp,cata:Up,getStart:Hp},Yp=$p.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Xp=function(e){return Yp.exact(e.start(),e.soffset(),e.finish(),e.foffset())},Zp=function(e){return e.match({domRange:function(e){return wt.fromDom(e.startContainer)},relative:function(e,t){return Gp.getStart(e)},exact:function(e,t,n,r){return e}})},Qp=Yp.domRange,Jp=Yp.relative,eg=Yp.exact,tg=function(e){var t=Zp(e);return vn(t)},ng=zp.create,rg={domRange:Qp,relative:Jp,exact:eg,exactFromRange:Xp,getWin:tg,range:ng},ig=gt().browser,og=function(e,t){var n=Tt(t)?yh(t).length:Sn(t).length+1;return e>n?n:e<0?0:e},ag=function(e){return rg.range(e.start(),og(e.soffset(),e.start()),e.finish(),og(e.foffset(),e.finish()))},sg=function(e,t){return!_e.isRestrictedNode(t.dom())&&(pn(e,t)||cn(e,t))},lg=function(e){return function(t){return sg(e,t.start())&&sg(e,t.finish())}},ug=function(e){return!0===e.inline||ig.isIE()},cg=function(e){return rg.range(wt.fromDom(e.startContainer),e.startOffset,wt.fromDom(e.endContainer),e.endOffset)},fg=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?m.from(t.getRangeAt(0)):m.none();return n.map(cg)},dg=function(e){var t=vn(e);return fg(t.dom()).filter(lg(e))},hg=function(e,t){return m.from(t).filter(lg(e)).map(ag)},pg=function(e){var t=n.document.createRange();try{return t.setStart(e.start().dom(),e.soffset()),t.setEnd(e.finish().dom(),e.foffset()),m.some(t)}catch(r){return m.none()}},gg=function(e){var t=ug(e)?dg(wt.fromDom(e.getBody())):m.none();e.bookmark=t.isSome()?t:e.bookmark},mg=function(e,t){var n=wt.fromDom(e.getBody()),r=ug(e)?m.from(t):m.none(),i=r.map(cg).filter(lg(n));e.bookmark=i.isSome()?i:e.bookmark},vg=function(e){var t=e.bookmark?e.bookmark:m.none();return t.bind((function(t){return hg(wt.fromDom(e.getBody()),t)})).bind(pg)},yg=function(e){vg(e).each((function(t){e.selection.setRng(t)}))},bg={store:gg,storeNative:mg,readRange:fg,restore:yg,getRng:vg,getBookmark:dg,validate:hg},_g=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},wg={isEditorUIElement:_g},xg=function(e){return"nodechange"===e.type&&e.selectionChange},Og=function(e,t){var r=function(){t.throttle()};Ms.DOM.bind(n.document,"mouseup",r),e.on("remove",(function(){Ms.DOM.unbind(n.document,"mouseup",r)}))},Sg=function(e){e.on("focusout",(function(){bg.store(e)}))},Cg=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},kg=function(e,t){var n=gt().browser;n.isIE()?Sg(e):Cg(e,t),e.on("keyup NodeChange",(function(t){xg(t)||bg.store(e)}))},Eg=function(e){var t=tl((function(){bg.store(e)}),0);e.on("init",(function(){e.inline&&Og(e,t),kg(e,t)})),e.on("remove",(function(){t.cancel()}))},Ag={register:Eg},Tg=Ms.DOM,Dg=function(e){return wg.isEditorUIElement(e)},Mg=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Pg=function(e,t){var n=e?e.settings.custom_ui_selector:"",r=Tg.getParent(t,(function(t){return Dg(t)||!!n&&e.dom.is(t,n)}));return null!==r},Ig=function(){try{return n.document.activeElement}catch(e){return n.document.body}},jg=function(e,t){var r=t.editor;Ag.register(r),r.on("focusin",(function(){var t=this,n=e.focusedEditor;n!==t&&(n&&n.fire("blur",{focusedEditor:t}),e.setActive(t),e.focusedEditor=t,t.fire("focus",{blurredEditor:n}),t.focus(!0))})),r.on("focusout",(function(){var t=this;sr.setEditorTimeout(t,(function(){var n=e.focusedEditor;Pg(t,Ig())||n!==t||(t.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Rh||(Rh=function(t){var r,i=e.activeEditor;r=t.target,i&&r.ownerDocument===n.document&&(r===n.document.body||Pg(i,r)||e.focusedEditor!==i||(i.fire("blur",{focusedEditor:null}),e.focusedEditor=null))},Tg.bind(n.document,"focusin",Rh))},Lg=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Tg.unbind(n.document,"focusin",Rh),Rh=null)},Ng=function(e){e.on("AddEditor",s(jg,e)),e.on("RemoveEditor",s(Lg,e))},Rg={setup:Ng,isEditorUIElement:Dg,isEditorContentAreaElement:Mg,isUIElement:Pg},Bg=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},$g=function(e){return e.collapsed?m.from(Mu(e.startContainer,e.startOffset)).map(wt.fromDom):m.none()},Fg=function(e,t){return $g(t).bind((function(t){return ci(t)?m.some(t):!1===pn(e,t)?m.some(e):m.none()}))},zg=function(e,t){Fg(wt.fromDom(e.getBody()),t).bind((function(e){return hd.firstPositionIn(e.dom())})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},qg=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},Ug=function(e){return Lp(e)||Rp(e).isSome()},Hg=function(e){return e.iframeElement&&Lp(wt.fromDom(e.iframeElement))},Vg=function(e){var t=e.getBody();return t&&Ug(wt.fromDom(t))},Wg=function(e){return Np().filter((function(t){return!Rg.isEditorContentAreaElement(t.dom())&&Rg.isUIElement(e,t.dom())})).isSome()},Kg=function(e){return e.inline?Vg(e):Hg(e)},Gg=function(e){return Kg(e)||Wg(e)},Yg=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Kg(e)&&bg.getRng(e).each((function(t){e.selection.setRng(t),r=t}));var i=Bg(e,t.getNode());if(e.$.contains(n,i))return qg(i),zg(e,r),void Xg(e);e.inline||(mr.opera||qg(n),e.getWin().focus()),(mr.gecko||e.inline)&&(qg(n),zg(e,r)),Xg(e)},Xg=function(e){return e.editorManager.setActive(e)},Zg=function(e,t){e.removed||(t?Xg(e):Yg(e))},Qg={focus:Zg,hasFocus:Kg,hasEditorOrUiFocus:Gg},Jg="html",em=function(e){return e instanceof Dh},tm=function(e){Qg.hasFocus(e)&&hd.firstPositionIn(e.getBody()).each((function(t){var n=t.getNode(),r=_e.isTable(n)?hd.firstPositionIn(n).getOr(t):t;e.selection.setRng(r.toRange())}))},nm=function(e,t){e.dom.setHTML(e.getBody(),t),tm(e)},rm=function(e,t,n,r){var i,o;return 0===n.length||/^\s+$/.test(n)?(o='<br data-mce-bogus="1">',"TABLE"===t.nodeName?n="<tr><td>"+o+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+o+"</li>"),i=Sp.getForcedRootBlock(e),i&&e.schema.isValidChild(t.nodeName.toLowerCase(),i.toLowerCase())?(n=o,n=e.dom.createHTML(i,e.settings.forced_root_block_attrs,n)):n||(n='<br data-mce-bogus="1">'),nm(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Mp({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=di(wt.fromDom(t))?n:Fr.trim(n),nm(e,r.content),r.no_events||e.fire("SetContent",r)),r.content},im=function(e,t,n,r){jp(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Mp({validate:e.validate},e.schema).serialize(n);return r.content=di(wt.fromDom(t))?i:Fr.trim(i),nm(e,r.content),r.no_events||e.fire("SetContent",r),n},om=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:Jg,n.set=!0,n.content=em(t)?"":t,em(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),m.from(e.getBody()).fold(o(t),(function(r){return em(t)?im(e,r,t,n):rm(e,r,t,n)}))},am=function(e,t){return e.fire("PreProcess",t)},sm=function(e,t){return e.fire("PostProcess",t)},lm=function(e){return e.fire("remove")},um=function(e){return e.fire("detach")},cm=function(e,t){return e.fire("SwitchMode",{mode:t})},fm=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},dm=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},hm={firePreProcess:am,firePostProcess:sm,fireRemove:lm,fireDetach:um,fireSwitchMode:cm,fireObjectResizeStart:fm,fireObjectResized:dm},pm=Ms.DOM,gm=function(e){pm.setStyle(e.id,"display",e.orgDisplay)},mm=function(e){return m.from(e).each((function(e){return e.destroy()}))},vm=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},ym=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),pm.unbind(t,"submit reset",e.formEventDelegate))},bm=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&pm.remove(i.nextSibling),hm.fireRemove(e),e.editorManager.remove(e),!e.inline&&r&&gm(e),hm.fireDetach(e),pm.remove(e.getContainer()),mm(t),mm(n),e.destroy()}},_m=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),mm(n),mm(r)),ym(e),vm(e),e.destroyed=!0):e.remove())},wm=Object.prototype.hasOwnProperty,xm=function(e,t){return t},Om=function(e,t){var n=_(e)&&_(t);return n?Cm(e,t):t},Sm=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)wm.call(o,a)&&(r[a]=e(r[a],o[a]))}return r}},Cm=Sm(Om),km=Sm(xm),Em=Xt("sections","settings"),Am=gt().deviceType,Tm=Am.isTouch(),Dm=Am.isPhone(),Mm=["lists","autolink","autosave"],Pm={table_grid:!1,object_resizing:!1,resize:!1},Im=function(e){var t=w(e)?e.join(" "):e,n=I(b(t)?t.split(" "):[],rt);return R(n,(function(e){return e.length>0}))},jm=function(e){return R(e,s(M,Mm))},Lm=function(e,t){var n=Lt(t,(function(t,n){return M(e,n)}));return Em(n.t,n.f)},Nm=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=r.hasOwnProperty(t)?r[t]:{};return Fr.extend({},n,i)},Rm=function(e,t){return e.sections().hasOwnProperty(t)},Bm=function(e,t,n){var r=e.sections();return Rm(e,t)&&r[t].theme===n},$m=function(e,t){return Rm(e,t)?e.sections()[t]:{}},Fm=function(e,t,n,r){var i={id:e,theme:"silver",toolbar_drawer:"floating",plugins:"",document_base_url:t,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:r.convertURL,url_converter_scope:r};return Q(Q({},i),n?Pm:{})},zm=function(e){var t={resize:!1,toolbar_drawer:!1,toolbar_sticky:!1},n={menubar:!1};return Q(Q(Q({},Pm),t),e?n:{})},qm=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?Fr.extend({},e.external_plugins,n):n},Um=function(e,t){return[].concat(Im(e)).concat(Im(t))},Hm=function(e,t,n,r){var i=Im(n.forced_plugins),o=Im(r.plugins),a=$m(t,"mobile"),s=a.plugins?Im(a.plugins):o,l=e&&Bm(t,"mobile","mobile")?jm(s):e&&Rm(t,"mobile")?s:o,u=Um(i,l);return Fr.extend(r,{plugins:u.join(" ")})},Vm=function(e,t){return e&&Rm(t,"mobile")},Wm=function(e,t,n,r,i){var o=e?{mobile:zm(t)}:{},a=Lm(["mobile"],Cm(o,i)),s=Fr.extend(n,r,a.settings(),Vm(e,a)?Nm(a,"mobile"):{},{validate:!0,external_plugins:qm(r,a.settings())});return Hm(e,a,r,s)},Km=function(e,t,n,r,i){var o=Fm(t,n,Tm,e);return Wm(Tm,Dm,o,r,i)},Gm=function(e,t,n){return m.from(t.settings[n]).filter(e)},Ym=function(e){var t={};return"string"===typeof e?j(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[Fr.trim(n[0])]=Fr.trim(n[1]):t[Fr.trim(n[0])]=Fr.trim(n[0])})):t=e,t},Xm=function(e){return function(t){return w(t)&&H(t,e)}},Zm=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?Ym(i):"string"===r?Gm(b,e,t).getOr(n):"number"===r?Gm(C,e,t).getOr(n):"boolean"===r?Gm(O,e,t).getOr(n):"object"===r?Gm(_,e,t).getOr(n):"array"===r?Gm(w,e,t).getOr(n):"string[]"===r?Gm(Xm(b),e,t).getOr(n):"function"===r?Gm(S,e,t).getOr(n):i},Qm=function(e,t){var n=t.dom();return n[e]},Jm=function(e,t){return parseInt(Wt(t,e),10)},ev=s(Qm,"clientWidth"),tv=s(Qm,"clientHeight"),nv=s(Jm,"margin-top"),rv=s(Jm,"margin-left"),iv=function(e){return e.dom().getBoundingClientRect()},ov=function(e,t,n){var r=ev(e),i=tv(e);return t>=0&&n>=0&&t<=r&&n<=i},av=function(e,t,n,r){var i=iv(t),o=e?i.left+t.dom().clientLeft+rv(t):0,a=e?i.top+t.dom().clientTop+nv(t):0,s=n-o,l=r-a;return{x:s,y:l}},sv=function(e,t,n){var r=wt.fromDom(e.getBody()),i=e.inline?r:mn(r),o=av(e.inline,i,t,n);return ov(i,o.x,o.y)},lv=function(e){return m.from(e).map(wt.fromDom)},uv=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return lv(t).map((function(e){return pn(gn(e),e)})).getOr(!1)},cv={isXYInContentArea:sv,isEditorAttachedToDom:uv};function fv(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}function dv(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():fv()},r=function(){return m.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){z(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},l=function(r){if(!e.removed&&cv.isEditorAttachedToDom(e))return F(t,(function(e){return i(n().getArgs(e),r)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(r,(function(){s(t),o()}));return a(t),o(),t}))},u=function(){r().each((function(e){n().close(e),s(e),o()}))},c=function(){return t},f=function(e){e.on("SkinLoaded",(function(){var t=e.settings.service_message;t&&l({text:t,type:"warning",timeout:0})})),e.on("ResizeEditor ResizeWindow NodeChange",(function(){sr.requestAnimationFrame(o)})),e.on("remove",(function(){j(t.slice(),(function(e){n().close(e)}))}))};return f(e),{open:l,close:u,getNotifications:c}}function hv(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var pv=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():hv()},r=function(e,t){return function(){return t?t.apply(e,arguments):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=R(t,(function(e){return e!==n})),0===t.length&&e.focus()},l=function(){return m.from(t[t.length-1])},u=function(t){e.editorManager.setActive(e),bg.store(e);var n=t();return a(n),n},c=function(e,t){return u((function(){return n().open(e,t,s)}))},f=function(e){return u((function(){return n().openUrl(e,s)}))},d=function(e,t,i){n().alert(e,r(i||this,t))},h=function(e,t,i){n().confirm(e,r(i||this,t))},p=function(){l().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){j(t,(function(e){n().close(e)}))})),{open:c,openUrl:f,alert:d,confirm:h,close:p}},gv=function(e,t){e.notificationManager.open({type:"error",text:t})},mv=function(e,t){e._skinLoaded?gv(e,t):e.on("SkinLoaded",(function(){gv(e,t)}))},vv=function(e,t){mv(e,Zs.translate(["Failed to upload image: {0}",t]))},yv=function(e){n.console.error(e)},bv=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},_v=function(e,t){yv(bv("plugin",e,t))},wv=function(e,t){yv(bv("icons",e,t))},xv=function(e,t){yv(bv("language",e,t))},Ov=function(e,t,n){var r=Zs.translate(["Failed to initialize plugin: {0}",t]);Sv(r,n),mv(e,r)},Sv=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=n.window.console;i&&(i.error?i.error.apply(i,arguments):i.log.apply(i,arguments))},Cv={pluginLoadError:_v,iconsLoadError:wv,languageLoadError:xv,pluginInitError:Ov,uploadError:vv,displayError:mv,initError:Sv},kv=function(){return{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 1 1 0-2h9.2zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h6.8zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h4.4zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 0 1 0-2h2zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 1 1 0-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 0 1-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 0 1-.7-.3A1 1 0 0 1 11 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-1a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H5a1 1 0 0 1-.7-.3A1 1 0 0 1 4 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 0 1-.8.3 1 1 0 0 1-.6-.3l-.8-.7a1 1 0 0 1-.3-.8c0-.2.1-.5.3-.7a1 1 0 0 1 1.4 0zm-10-7l-.7-.8a1 1 0 0 1-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.8-.3zm10 0a1 1 0 0 1-.8.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 0 1 0 1.4l-.8.8a1 1 0 0 1-.6.3 1 1 0 0 1-.8-.3 1 1 0 0 1-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 0 1 3.7 2.4 4 4 0 0 1 0 3.2A4 4 0 0 1 12 16a4 4 0 0 1-3.7-2.4 4 4 0 0 1 0-3.2A4 4 0 0 1 12 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8zM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 1 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-6 8a6 6 0 0 0 6 6V6a6 6 0 0 0-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 0 0-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9zM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z" fill-rule="nonzero"/></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2zm14-2v2h2a2 2 0 0 0-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 0 0 2-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2zm2 14h-2v2a2 2 0 0 0 2-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 0 0-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 0 1 .6.5l.1.3a8.5 8.5 0 0 1 .3.6l1.9 4.6 2-5.2a1 1 0 0 1 1-.6.5.5 0 0 1 .5.6L13 14v2.8a.7.7 0 0 1-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1zM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 0 1-3.1 1.9 6.1 6.1 0 0 1-5.5-1.6A5.8 5.8 0 0 1 6 14v-.3l.1-1.2A13.9 13.9 0 0 1 7.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 0 0 .2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 0 0-3-4.2L12 6a26.1 26.1 0 0 0-2.2 2.5l-1-1a20.9 20.9 0 0 1 2.9-3.3L12 4l1 .8a22.2 22.2 0 0 1 4 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2.1 2a2 2 0 1 0 2.7 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19zm-1 8.8l.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><g fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke="#000" stroke-width="2"><path d="M12 5v14M5 12h14"/></g></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8zM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7zM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 0 0-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 0 0 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-cell-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><path d="M12.5 5.5v6h6v-6h-6zm-1 0h-6v6h6v-6zm1 13h6v-6h-6v6zm-1 0v-6h-6v6h6zm-7-14h15v15h-15v-15z" fill-rule="nonzero"/></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5.5 5.5v13h13v-13h-13zm-1-1h15v15h-15v-15z" opacity=".2"/><path d="M11.5 11.5v-7h1v7h7v1h-7v7h-1v-7h-7v-1h7z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path d="M9 11.2l1 1v.2l-1 1v-2.2zm5 1l1-1v2.2l-1-1v-.2zM20 5v14H4V5h16zm-1 2h-4v.8l-.2-.2-.8.8V7h-4v1.4l-.8-.8-.2.2V7H5v11h4v-1.8l.5.5.5-.4V18h4v-1.8l.8.8.2-.3V18h4V7zm-3.9 3.4l-1.8 1.9 1.8 1.9c.4.3.4.9 0 1.2-.3.3-.8.3-1.2 0L12 13.5l-1.8 1.9a.8.8 0 0 1-1.2 0 .9.9 0 0 1 0-1.2l1.8-1.9-1.9-2a.9.9 0 0 1 1.2-1.2l2 2 1.8-1.8c.3-.4.9-.4 1.2 0a.8.8 0 0 1 0 1.1z" fill-rule="evenodd"/></svg>',"table-delete-row":'<svg width="24" height="24"><path d="M16.7 8.8l1.1 1.2-2.4 2.5L18 15l-1.2 1.2-2.5-2.5-2.4 2.5-1.3-1.2 2.5-2.5-2.5-2.5 1.2-1.3 2.6 2.6 2.4-2.5zM4 5h16v14H4V5zm15 5V7H5v3h4.8l1 1H5v3h5.8l-1 1H5v3h14v-3h-.4l-1-1H19v-3h-1.3l1-1h.3z" fill-rule="evenodd"/></svg>',"table-delete-table":'<svg width="24" height="26"><path d="M4 6h16v14H4V6zm1 2v11h14V8H5zm11.7 8.7l-1.5 1.5L12 15l-3.3 3.2-1.4-1.5 3.2-3.2-3.3-3.2 1.5-1.5L12 12l3.2-3.2 1.5 1.5-3.2 3.2 3.2 3.2z" fill-rule="evenodd"/></svg>',"table-insert-column-after":'<svg width="24" height="24"><path d="M14.3 9c.4 0 .7.3.7.6v2.2h2.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7H15v2.2c0 .3-.3.6-.7.6a.7.7 0 0 1-.6-.6v-2.2h-2.2a.7.7 0 0 1 0-1.4h2.2V9.6c0-.3.3-.6.6-.6zM4 5h16v14H4V5zm5 13v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8V7h-9v11h9z" fill-rule="evenodd"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path d="M9.7 16a.7.7 0 0 1-.7-.6v-2.2H6.9a.7.7 0 0 1 0-1.4H9V9.6c0-.3.3-.6.7-.6.3 0 .6.3.6.6v2.2h2.2c.4 0 .8.3.8.7 0 .4-.4.7-.8.7h-2.2v2.2c0 .3-.3.6-.6.6zM4 5h16v14H4V5zm10 13V7H5v11h9zm5 0v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path d="M14.8 10.5c0 .3-.2.5-.5.5h-1.8v1.8c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.6V11H9.7a.5.5 0 0 1 0-1h1.8V8.3c0-.3.2-.6.5-.6s.5.3.5.6V10h1.8c.3 0 .5.2.5.5zM4 5h16v14H4V5zm5 13v-3H5v3h4zm5 0v-3h-4v3h4zm5 0v-3h-4v3h4zm0-4V7H5v7h14z" fill-rule="evenodd"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path d="M9.2 14.5c0-.3.2-.5.5-.5h1.8v-1.8c0-.3.2-.5.5-.5s.5.2.5.6V14h1.8c.3 0 .5.2.5.5s-.2.5-.5.5h-1.8v1.7c0 .3-.2.6-.5.6a.5.5 0 0 1-.5-.6V15H9.7a.5.5 0 0 1-.5-.5zM4 5h16v14H4V5zm6 2v3h4V7h-4zM5 7v3h4V7H5zm14 11v-7H5v7h14zm0-8V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm10 12v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4zm5 8v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4z" fill-rule="evenodd"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 13h9v-7h-9v7zm4-11h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10-1h4V7h-4v3zM5 15v3h4v-3H5z" fill-rule="evenodd"/></svg>',"table-row-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm6 3h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-split-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 2v3h4V7h-4zM9 18v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8v-7h-9v7h9zm0-8V7h-4v3h4zm-3.5 4.5l1.5 1.6c.3.2.3.7 0 1-.2.2-.7.2-1 0l-1.5-1.6-1.6 1.5c-.2.3-.7.3-1 0a.7.7 0 0 1 0-1l1.6-1.5-1.5-1.6a.7.7 0 0 1 1-1l1.5 1.6 1.6-1.5c.2-.3.7-.3 1 0 .2.2.2.7 0 1l-1.6 1.5z" fill-rule="evenodd"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm5 12v-3H5v3h4zm0-4v-3H5v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4z" fill-rule="evenodd"/></svg>',table:'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 9h4v-3h-4v3zm4 1h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 1 1 2 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2zM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1zM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12zM11 6.4L8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 0 1-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 0 1-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 0 1 0 2v7a1 1 0 0 1-2 0V9h-1v7a1 1 0 0 1-2 0v-4a2.5 2.5 0 0 1-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 0 1 2 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>'}},Ev=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Rt(e,t)};return{add:t,get:n,has:r}},Av=Ev(),Tv=el.PluginManager,Dv=el.ThemeManager;function Mv(e,t){var r={},i=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},o=function(e,r,o,a){var s,l;s=new n.XMLHttpRequest,s.open("POST",t.url),s.withCredentials=t.credentials,s.upload.onprogress=function(e){a(e.loaded/e.total*100)},s.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+s.status)},s.onload=function(){var e;s.status<200||s.status>=300?o("HTTP Error: "+s.status):(e=JSON.parse(s.responseText),e&&"string"===typeof e.location?r(i(t.basePath,e.location)):o("Invalid JSON: "+s.responseText))},l=new n.FormData,l.append("file",e.blob(),e.filename()),s.send(l)},a=function(){return new er((function(e){e([])}))},s=function(e,t){return{url:t,blobInfo:e,status:!0}},l=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},u=function(e,t){Fr.each(r[e],(function(e){e(t)})),delete r[e]},c=function(t,n,r){return e.markPending(t.blobUri()),new er((function(i){var o,a,c=function(){};try{var f=function(){o&&(o.close(),a=c)},d=function(n){f(),e.markUploaded(t.blobUri(),n),u(t.blobUri(),s(t,n)),i(s(t,n))},h=function(n){f(),e.removeFailed(t.blobUri()),u(t.blobUri(),l(t,n)),i(l(t,n))};a=function(e){e<0||e>100||(o||(o=r()),o.progressBar.value(e))},n(t,d,h,a)}catch(p){i(l(t,p.message))}}))},f=function(e){return e===o},d=function(e){var t=e.blobUri();return new er((function(e){r[t]=r[t]||[],r[t].push(e)}))},h=function(n,r){return n=Fr.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),er.all(Fr.map(n,(function(n){return e.isPending(n.blobUri())?d(n):c(n,t.handler,r)})))},p=function(e,n){return!t.url&&f(t.handler)?a():h(e,n)};return!1===S(t.handler)&&(t.handler=o),{upload:p}}var Pv=function(e){return new er((function(t,r){var i=function(){r("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var o=new n.XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){200===this.status?t(this.response):i()},o.onerror=i,o.send()}catch(a){i()}}))},Iv=function(e){var t,n,r=decodeURIComponent(e).split(",");return n=/data:([^;]+)/.exec(r[0]),n&&(t=n[1]),{type:t,data:r[1]}},jv=function(e){return new er((function(t){var r,i,o,a=Iv(e);try{r=n.atob(a.data)}catch(KR){return void t(new n.Blob([]))}for(i=new Uint8Array(r.length),o=0;o<i.length;o++)i[o]=r.charCodeAt(o);t(new n.Blob([i],{type:a.type}))}))},Lv=function(e){return 0===e.indexOf("blob:")?Pv(e):0===e.indexOf("data:")?jv(e):null},Nv=function(e){return new er((function(t){var r=new n.FileReader;r.onloadend=function(){t(r.result)},r.readAsDataURL(e)}))},Rv={uriToBlob:Lv,blobToDataUri:Nv,parseDataUri:Iv},Bv=0,$v=function(e){return(e||"blobid")+Bv++},Fv=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):Rv.uriToBlob(t.src).then((function(r){Rv.blobToDataUri(r).then((function(a){i=Rv.parseDataUri(a).data,o=e.create($v(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));i=Rv.parseDataUri(t.src).data,o=e.findFirst((function(e){return e.base64()===i})),o?n({image:t,blobInfo:o}):Rv.uriToBlob(t.src).then((function(r){o=e.create($v(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},zv=function(e){return e?Z(e.getElementsByTagName("img")):[]};function qv(e,t){var n={},r=function(r,i){var a;i||(i=o(!0)),a=R(zv(r),(function(t){var n=t.src;return!!mr.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===mr.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))}));var s=I(a,(function(e){if(n[e.src])return new er((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new er((function(n,r){Fv(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return er.all(s)};return{findAll:r}}var Uv=0,Hv=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},Vv=function(e){return e+Uv+++Hv()},Wv={uuid:Vv},Kv=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"};return t[e.toLowerCase()]||"dat"},r=function(e,t,n,r){if(b(e)){var o=e;return i({id:o,name:r,blob:t,base64:n})}if(_(e))return i(e);throw new Error("Unknown input type")},i=function(e){var r,i;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return r=e.id||Wv.uuid("blobid"),i=e.name||r,{id:o(r),name:o(i),filename:o(i+"."+t(e.blob.type)),blob:o(e.blob),base64:o(e.base64),blobUri:o(e.blobUri||n.URL.createObjectURL(e.blob)),uri:o(e.uri)}},a=function(t){s(t.id())||e.push(t)},s=function(e){return l((function(t){return t.id()===e}))},l=function(t){return R(e,t)[0]},u=function(e){return l((function(t){return t.blobUri()===e}))},c=function(t){e=R(e,(function(e){return e.blobUri()!==t||(n.URL.revokeObjectURL(e.blobUri()),!1)}))},f=function(){j(e,(function(e){n.URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:r,add:a,get:s,getByUri:u,findFirst:l,removeByUri:c,destroy:f}};function Gv(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},l=function(t){n[t]=r(e,null)},u=function(e,i){n[e]=r(t,i)},c=function(e){delete n[e]},f=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:l,markUploaded:u,removeFailed:c,destroy:f}}var Yv,Xv=function(e){var t,n,r=Kv(),i=Gv(),o=[],a=function(t){return function(n){return e.selection?t(n):[]}},s=function(){return"?"+(new Date).getTime()},l=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},u=function(e,t,n){return e=l(e,'src="'+t+'"','src="'+n+'"'),e=l(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},c=function(t,n){j(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=I(e.fragments,(function(e){return u(e,t,n)})):e.content=u(e.content,t,n)}))},f=function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},d=function(t,n){r.removeByUri(t.src),c(t.src,n),e.$(t).attr({src:Sp.shouldReuseFileName(e)?n+s():n,"data-mce-src":e.convertURL(n,"src")})},h=function(n){return t||(t=Mv(i,{url:Sp.getImageUploadUrl(e),basePath:Sp.getImageUploadBasePath(e),credentials:Sp.getImagesUploadCredentials(e),handler:Sp.getImagesUploadHandler(e)})),v().then(a((function(r){var i;return i=I(r,(function(e){return e.blobInfo})),t.upload(i,f).then(a((function(t){var i=I(t,(function(t,n){var i=r[n].image;return t.status&&Sp.shouldReplaceBlobUris(e)?d(i,t.url):t.error&&Cv.uploadError(e,t.error),{element:i,status:t.status}}));return n&&n(i),i})))})))},p=function(t){if(Sp.isAutomaticUploadsEnabled(e))return h(t)},g=function(t){if(!1===H(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Sp.getImagesDataImgFilter(e);return n(t)}return!0},m=function(e){o.push(e)},v=function(){return n||(n=qv(i,r)),n.findAll(e.getBody(),g).then(a((function(t){return t=R(t,(function(t){return"string"!==typeof t||(Cv.displayError(e,t),!1)})),j(t,(function(e){c(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},y=function(){r.destroy(),i.destroy(),n=t=null},b=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=$(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Sp.isAutomaticUploadsEnabled(e)?p():v()})),e.on("RawSaveContent",(function(e){e.content=b(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||(e.content=b(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){j(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:m,uploadImages:h,uploadImagesAuto:p,scanForImages:v,destroy:y}},Zv=function(e){return e.slice(0,-1)},Qv=function(e,t,n){return pn(t,e)?Zv(bn(e,(function(e){return n(e)||cn(e,t)}))):[]},Jv=function(e,t){return Qv(e,t,o(!1))},ey=function(e,t){return[e].concat(Jv(e,t))},ty={parentsUntil:Qv,parents:Jv,parentsAndSelf:ey},ny=function(e,t){return e.hasOwnProperty(t.nodeName)},ry=function(e,t){return!!_e.isText(t)||!!_e.isElement(t)&&(!ny(e,t)&&!Nd.isBookmarkNode(t))},iy=function(e,t,n){return P(ty.parents(wt.fromDom(n),wt.fromDom(t)),(function(t){return ny(e,t.dom())}))},oy=function(e,t){if(_e.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||ny(e,t.nextSibling)))return!0}return!1},ay=function(e){var t,n,r,i,o,a,s,l,u,c,f=e.dom,d=e.selection,h=e.schema,p=h.getBlockElements(),g=d.getStart(),m=e.getBody(),v=Sp.getForcedRootBlock(e);if(g&&_e.isElement(g)&&v&&(c=m.nodeName.toLowerCase(),h.isValidChild(c,v.toLowerCase())&&!iy(p,m,g))){t=d.getRng(),n=t.startContainer,r=t.startOffset,i=t.endContainer,o=t.endOffset,u=Qg.hasFocus(e),g=m.firstChild;while(g)if(ry(p,g)){if(oy(p,g)){s=g,g=g.nextSibling,f.remove(s);continue}a||(a=f.create(v,Sp.getForcedRootBlockAttrs(e)),g.parentNode.insertBefore(a,g),l=!0),s=g,g=g.nextSibling,a.appendChild(s)}else a=null,g=g.nextSibling;l&&u&&(t.setStart(n,r),t.setEnd(i,o),d.setRng(t),e.nodeChanged())}},sy=function(e){Sp.getForcedRootBlock(e)&&e.on("NodeChange",s(ay,e))},ly={setup:sy},uy=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},cy={isEq:uy},fy=function(e){var t=e.startContainer,n=e.startOffset;return _e.isText(t)?0===n?m.some(wt.fromDom(t)):m.none():m.from(t.childNodes[n]).map(wt.fromDom)},dy=function(e){var t=e.endContainer,n=e.endOffset;return _e.isText(t)?n===t.data.length?m.some(wt.fromDom(t)):m.none():m.from(t.childNodes[n-1]).map(wt.fromDom)},hy=function(e){return kn(e).fold(o([e]),(function(t){return[e].concat(hy(t))}))},py=function(e){return En(e).fold(o([e]),(function(t){return"br"===Ct(t)?_n(t).map((function(t){return[e].concat(py(t))})).getOr([]):[e].concat(py(t))}))},gy=function(e,t){return ju(fy(t),dy(t),(function(t,n){var r=F(hy(e),s(cn,t)),i=F(py(e),s(cn,n));return r.isSome()&&i.isSome()})).getOr(!1)},my=function(e,t,n,r){var i=n,o=new Ja(n,i),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==Fr.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},vy=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},yy=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r,i;r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset},"nodechange"!==n.type&&cy.isEq(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!mr.range&&e.selection.isCollapsed()||vy(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&vy(e)&&("IMG"===e.selection.getNode().nodeName?sr.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!this.editor.settings.disable_nodechange&&!this.editor.readonly&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if(n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e),n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),by={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return mr.mac?e.metaKey:e.ctrlKey&&!e.altKey}},_y=function(e){return function(t){return e===t}},wy=_y(" "),xy=function(e){return/^[\r\n\t ]$/.test(e)},Oy=function(e){return!xy(e)&&!wy(e)},Sy=function(e,t,n){return m.from(n.container()).filter(_e.isText).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},Cy=s(Sy,!0,xy),ky=s(Sy,!1,xy),Ey=function(e){var t=e.container();return _e.isText(t)&&0===t.data.length},Ay=function(e,t){return function(n){return m.from(Af(e?0:-1,n)).filter(t).isSome()}},Ty=function(e){return"IMG"===e.nodeName&&"block"===Wt(wt.fromDom(e),"display")},Dy=function(e){return _e.isContentEditableFalse(e)&&!_e.isBogusAll(e)},My=Ay(!0,Ty),Py=Ay(!1,Ty),Iy=Ay(!0,_e.isTable),jy=Ay(!1,_e.isTable),Ly=Ay(!0,Dy),Ny=Ay(!1,Dy),Ry=function(e){var t=function(t){return I(t,(function(t){return t=Ou(t),t.node=e,t}))};if(_e.isElement(e))return t(e.getClientRects());if(_e.isText(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},By=function(e){return $(e,(function(e,t){return e.concat(Ry(t))}),[])};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(Yv||(Yv={}));var $y=function(e,t,n,r){while(r=Cf(r,e,wu,t))if(n(r))return},Fy=function(e,t,n,r,i,o){var a,s,l=0,u=[],c=function(r){var o,a,c;for(c=By([r]),-1===e&&(c=c.reverse()),o=0;o<c.length;o++)if(a=c[o],!n(a,s)){if(u.length>0&&t(a,Er.last(u))&&l++,a.line=l,i(a))return!0;u.push(a)}};return s=Er.last(o.getClientRects()),s?(a=o.getNode(),c(a),$y(e,r,c,a),u):u},zy=function(e,t){return t.line>e},qy=function(e,t){return t.line===e},Uy=s(Fy,Yv.Up,Eu,Au),Hy=s(Fy,Yv.Down,Au,Eu),Vy=function(e,t,n,r){var i,o,a,s,l,u,c=Jf(t),f=[],d=0,h=function(e){return Er.last(e.getClientRects())};1===e?(i=c.next,o=Au,a=Eu,s=uc.after(r)):(i=c.prev,o=Eu,a=Au,s=uc.before(r)),u=h(s);do{if(s.isVisible()&&(l=h(s),!a(l,u))){if(f.length>0&&o(l,Er.last(f))&&d++,l=Ou(l),l.position=s,l.line=d,n(l))return f;f.push(l)}}while(s=i(s));return f},Wy=function(e){return function(t){return zy(e,t)}},Ky=function(e){return function(t){return qy(e,t)}},Gy=_e.isContentEditableFalse,Yy=Cf,Xy=function(e,t){return Math.abs(e.left-t)},Zy=function(e,t){return Math.abs(e.right-t)},Qy=function(e,t){return e>=t.left&&e<=t.right},Jy=function(e,t){return Er.reduce(e,(function(e,n){var r,i;return r=Math.min(Xy(e,t),Zy(e,t)),i=Math.min(Xy(n,t),Zy(n,t)),Qy(t,n)?n:Qy(t,e)?e:i===r&&Gy(n.node)||i<r?n:e}))},eb=function(e,t,n,r){while(r=Yy(r,e,wu,t))if(n(r))return},tb=function(e,t){var n=[],r=function(e,r){var i;return i=R(By([r]),(function(n){return!e(n,t)})),n=n.concat(i),0===i.length};return n.push(t),eb(Yv.Up,e,s(r,Eu),t.node),eb(Yv.Down,e,s(r,Au),t.node),n},nb=function(e){return R(Z(e.getElementsByTagName("*")),gf)},rb=function(e,t){return{node:e.node,before:Xy(e,t)<Zy(e,t)}},ib=function(e,t,n){var r,i=By(nb(e)),o=R(i,(function(e){return n>=e.top&&n<=e.bottom}));return r=Jy(o,t),r&&(r=Jy(tb(e,r),t),r&&gf(r.node))?rb(r,t):null},ob=function(e,t,n){if(n.collapsed)return!1;if(mr.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(_e.isElement(r))return P(r.getClientRects(),(function(n){return Tu(n,e,t)}))}return P(n.getClientRects(),(function(n){return Tu(n,e,t)}))},ab={isXYWithinRange:ob},sb=function(e){var t,n,r,i;return i=e.getBoundingClientRect(),t=e.ownerDocument,n=t.documentElement,r=t.defaultView,{top:i.top+r.pageYOffset-n.clientTop,left:i.left+r.pageXOffset-n.clientLeft}},lb=function(e){return e.inline?sb(e.getBody()):{left:0,top:0}},ub=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},cb=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},fb=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=sb(e.getContentAreaContainer()),r=cb(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},db=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},hb=function(e,t){return db(lb(e),ub(e),fb(e,t))},pb={calc:hb},gb=_e.isContentEditableFalse,mb=_e.isContentEditableTrue,vb=function(e,t){return gb(t)&&t!==e},yb=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!gb(t)},bb=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},_b=function(e,t,n,r){var i=t.cloneNode(!0);e.dom.setStyles(i,{width:n,height:r}),e.dom.setAttrib(i,"data-mce-selected",null);var o=e.dom.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(o,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(i,{margin:0,boxSizing:"border-box"}),o.appendChild(i),o},wb=function(e,t){e.parentNode!==t&&t.appendChild(e)},xb=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},Ob=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Sb=function(e){return 0===e.button},Cb=function(e){return e.element},kb=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},Eb=function(e,t){return function(n){if(Sb(n)){var r=F(t.dom.getParents(n.target),Fu.or(gb,mb)).getOr(null);if(vb(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?o.scrollWidth:a.offsetWidth)-2,e.maxY=(t.inline?o.scrollHeight:a.offsetHeight)-2,e.relX=n.pageX-i.x,e.relY=n.pageY-i.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=_b(t,r,e.width,e.height)}}}},Ab=function(e,t){var n=sr.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return function(r){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(Cb(e)&&!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=kb(e,pb.calc(t,r));wb(e.ghost,t.getBody()),xb(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}},Tb=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},Db=function(e,t){return function(n){if(e.dragging&&yb(t,Tb(t.selection),e.element)){var r=bb(e.element),i=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||(r=i.targetClone,t.undoManager.transact((function(){Ob(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()})))}Pb(e)}},Mb=function(e,t){return function(){e.dragging&&t.fire("dragend"),Pb(e)}},Pb=function(e){e.dragging=!1,e.element=null,Ob(e.ghost)},Ib=function(e){var t,r,i,o,a,s,l={};t=Ms.DOM,s=n.document,r=Eb(l,e),i=Ab(l,e),o=Db(l,e),a=Mb(l,e),e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o),t.bind(s,"mousemove",i),t.bind(s,"mouseup",a),e.on("remove",(function(){t.unbind(s,"mousemove",i),t.unbind(s,"mouseup",a)}))},jb=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(gb(n)||gb(e.dom.getContentEditableParent(n)))&&t.preventDefault()}))},Lb=function(e){Ib(e),jb(e)},Nb={init:Lb},Rb=_e.isContentEditableTrue,Bb=_e.isContentEditableFalse,$b=function(e,t,n,r,i){return t._selectionOverrides.showCaret(e,n,r,i)},Fb=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},zb=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?null:Fb(t)},qb=function(e,t,n){var r=jf(1,e.getBody(),t),i=uc.fromRangeStart(r),o=i.getNode();if(Bb(o))return $b(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Bb(a))return $b(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return Bb(e)||Rb(e)}));return Bb(s)?$b(1,e,s,!1,n):null},Ub=function(e,t,n){if(!t||!t.collapsed)return t;var r=qb(e,t,n);return r||t},Hb=function(e){var t=tl((function(){if(!e.removed&&e.getBody().contains(n.document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var r=Ub(e,e.selection.getRng(),!1);e.selection.setRng(r)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},Vb={setup:Hb},Wb=_e.isContentEditableTrue,Kb=_e.isContentEditableFalse,Gb=function(e,t){var n=e.getBody();while(t&&t!==n){if(Wb(t)||Kb(t))return t;t=t.parentNode}return null},Yb=function(e){var t,n=function(t){return e.dom.isBlock(t)},r=e.getBody(),i=hf(e.getBody(),n,(function(){return Qg.hasFocus(e)})),o="sel-"+e.dom.uniqueId(),a=function(t){return e.dom.hasClass(t,"mce-offscreen-selection")},s=function(){var t=e.dom.get(o);return t?t.getElementsByTagName("*")[0]:t},l=function(t){t&&e.selection.setRng(t)},u=function(){return e.selection.getRng()},c=function(t,n,r,o){var a;return void 0===o&&(o=!0),a=e.fire("ShowCaret",{target:n,direction:t,before:r}),a.isDefaultPrevented()?null:(o&&e.selection.scrollIntoView(n,-1===t),i.show(r,n))},f=function(t){t.hasAttribute("data-mce-caret")&&(ou(t),l(u()),e.selection.scrollIntoView(t[0]))},d=function(){e.on("mouseup",(function(t){var n=u();n.collapsed&&cv.isXYInContentArea(e,t.clientX,t.clientY)&&l(qb(e,n,!1))})),e.on("click",(function(t){var n;n=Gb(e,t.target),n&&(Kb(n)&&(t.preventDefault(),e.focus()),Wb(n)&&e.dom.isChildOf(n,e.selection.getNode())&&v())})),e.on("blur NewBlock",(function(){v()})),e.on("ResizeWindow FullscreenStateChanged",(function(){return i.reposition()}));var n=function(e){var t=!1;e.on("touchstart",(function(){t=!1})),e.on("touchmove",(function(){t=!0})),e.on("touchend",(function(n){if(!t){var r=Gb(e,n.target);Kb(r)&&(n.preventDefault(),m(zb(e,r)))}}),!0)},o=function(e){var t=Jf(e);if(!e.firstChild)return!1;var n=uc.before(e.firstChild),r=t.next(n);return r&&!Ly(r)&&!Ny(r)},f=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),i=e.dom.getParent(n,e.dom.isBlock);return r===i},d=function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),i=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,i)||!1!==Kb(Gb(e,r)))||r&&!f(r,i)&&o(r)};n(e),e.on("mousedown",(function(t){var n,i=t.target;if((i===r||"HTML"===i.nodeName||e.dom.isChildOf(i,r))&&!1!==cv.isXYInContentArea(e,t.clientX,t.clientY))if(n=Gb(e,i),n)Kb(n)?(t.preventDefault(),m(zb(e,n))):(v(),Wb(n)&&t.shiftKey||ab.isXYWithinRange(t.clientX,t.clientY,e.selection.getRng())||(b(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(!1===gf(i)){v(),b();var o=ib(r,t.clientX,t.clientY);if(o&&!d(t.target,o.node)){t.preventDefault();var a=c(1,o.node,o.before,!1);e.getBody().focus(),l(a)}}})),e.on("keypress",(function(t){if(!by.modifierPressed(t))switch(t.keyCode){default:Kb(e.selection.getNode())&&t.preventDefault();break}})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=g(e.range);var t=m(e.range,e.forward);t&&(e.range=t)}));var h=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range;p(t)||h(t.startContainer.parentNode)||b(),a(t.startContainer.parentNode)||v()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!mr.ie){var n=s();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText))}})),Nb.init(e),Vb.setup(e)},h=function(e){return Yl(e)||nu(e)||ru(e)},p=function(e){return h(e.startContainer)||h(e.endContainer)},g=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset;return Rt(n,i.nodeName.toLowerCase())?0===o?r.setStartBefore(i):r.setStartAfter(i):r.setStart(i,o),Rt(n,a.nodeName.toLowerCase())?0===s?r.setEndBefore(a):r.setEndAfter(a):r.setEnd(a,s),r},m=function(n,i){var a,s,l,u,f,d,h,g,m,v,y=e.$,_=e.dom;if(!n)return null;if(n.collapsed){if(!p(n))if(!1===i){if(g=Nf(-1,r,n),gf(g.getNode(!0)))return c(-1,g.getNode(!0),!1,!1);if(gf(g.getNode()))return c(-1,g.getNode(),!g.isAtEnd(),!1)}else{if(g=Nf(1,r,n),gf(g.getNode()))return c(1,g.getNode(),!g.isAtEnd(),!1);if(gf(g.getNode(!0)))return c(1,g.getNode(!0),!1,!1)}return null}if(u=n.startContainer,f=n.startOffset,d=n.endOffset,3===u.nodeType&&0===f&&Kb(u.parentNode)&&(u=u.parentNode,f=_.nodeIndex(u),u=u.parentNode),1!==u.nodeType)return null;if(d===f+1&&u===n.endContainer&&(a=u.childNodes[f]),!Kb(a))return null;if(m=v=a.cloneNode(!0),h=e.fire("ObjectSelected",{target:a,targetClone:m}),h.isDefaultPrevented())return null;s=_l(wt.fromDom(e.getBody()),"#"+o).fold((function(){return y([])}),(function(e){return y([e.dom()])})),m=h.targetClone,0===s.length&&(s=y('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",o),s.appendTo(e.getBody())),n=e.dom.createRng(),m===v&&mr.ie?(s.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(m),n.setStartAfter(s[0].firstChild.firstChild),n.setEndAfter(m)):(s.empty().append(" ").append(m).append(" "),n.setStart(s[0].firstChild,1),n.setEnd(s[0].lastChild,0)),s.css({top:_.getPos(a,e.getBody()).y}),s[0].focus(),l=e.selection.getSel(),l.removeAllRanges(),l.addRange(n);var w=wt.fromDom(a);return j(gl(wt.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){cn(w,e)||Vt(e,"data-mce-selected")})),e.dom.getAttrib(a,"data-mce-selected")||a.setAttribute("data-mce-selected","1"),t=a,b(),n},v=function(){t&&(t.removeAttribute("data-mce-selected"),_l(wt.fromDom(e.getBody()),"#"+o).each(ls),t=null),_l(wt.fromDom(e.getBody()),"#"+o).each(ls),t=null},y=function(){i.destroy(),t=null},b=function(){i.hide()};return mr.ceFalse&&d(),{showCaret:c,showBlockCaretContainer:f,hideFakeCaret:b,destroy:y}},Xb=0,Zb=1,Qb=2,Jb=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var u=l(n,r,i,o);if(null===u||u.start===r&&u.diag===r-o||u.end===n&&u.diag===n-i){var c=n,f=i;while(c<r||f<o)c<r&&f<o&&e[c]===t[f]?(s.push([Xb,e[c]]),++c,++f):r-n>o-i?(s.push([Qb,e[c]]),++c):(s.push([Zb,t[f]]),++f)}else{a(n,u.start,i,u.start-u.diag,s);for(var d=u.start;d<u.end;++d)s.push([Xb,e[d]]);a(u.end,r,u.end-u.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},l=function(n,o,a,l){var u=o-n,c=l-a;if(0===u||0===c)return null;var f,d,h,p,g,m=u-c,v=c+u,y=(v%2===0?v:v+1)/2;for(r[1+y]=n,i[1+y]=o+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){h=d+y,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,p=r[h],g=p-n+a-d;while(p<o&&g<l&&e[p]===t[g])r[h]=++p,++g;if(m%2!==0&&m-f<=d&&d<=m+f&&i[h-m]<=r[h])return s(i[h-m],d+n-a,o,l)}for(d=m-f;d<=m+f;d+=2){h=d+y-m,d===m-f||d!==m+f&&i[h+1]<=i[h-1]?i[h]=i[h+1]-1:i[h]=i[h-1],p=i[h]-1,g=p-n+a-d;while(p>=n&&g>=a&&e[p]===t[g])i[h]=p--,g--;if(m%2===0&&-f<=d&&d<=f&&i[h]<=r[h+m])return s(i[h],d+n-a,o,l)}}},u=[];return a(0,e.length,0,t.length,u),u},e_={KEEP:Xb,DELETE:Qb,INSERT:Zb,diff:Jb},t_=function(e){return _e.isElement(e)?e.outerHTML:_e.isText(e)?Mi.encodeRaw(e.data,!1):_e.isComment(e)?"\x3c!--"+e.data+"--\x3e":""},n_=function(e){var t,r,i;i=n.document.createElement("div"),t=n.document.createDocumentFragment(),e&&(i.innerHTML=e);while(r=i.firstChild)t.appendChild(r);return t},r_=function(e,t,n){var r=n_(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},i_=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},o_=function(e,t){var n=0;j(e,(function(e){e[0]===e_.KEEP?n++:e[0]===e_.INSERT?(r_(t,e[1],n),n++):e[0]===e_.DELETE&&i_(t,n)}))},a_=function(e){return R(I(Z(e.childNodes),t_),(function(e){return e.length>0}))},s_=function(e,t){var n=I(Z(t.childNodes),t_);return o_(e_.diff(n,e),t),t},l_={read:a_,write:s_},u_=we(m.none()),c_=function(){return u_.get().getOrThunk((function(){var e=n.document.implementation.createHTMLDocument("undo");return u_.set(m.some(e)),e}))},f_=function(e){return-1!==e.indexOf("</iframe>")},d_=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},h_=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},p_=function(e){var t,n,r;return t=l_.read(e.getBody()),r=U(t,(function(t){var n=qh.trimInternal(e.serializer,t);return n.length>0?[n]:[]})),n=r.join(""),f_(n)?d_(r):h_(n)},g_=function(e,t,n){"fragmented"===t.type?l_.write(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},m_=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},v_=function(e){var t=wt.fromTag("body",c_());return Fl(t,m_(e)),j(gl(t,"*[data-mce-bogus]"),us),$l(t)},y_=function(e,t){return m_(e)===m_(t)},b_=function(e,t){return v_(e)===v_(t)},__=function(e,t){return!(!e||!t)&&(!!y_(e,t)||b_(e,t))},w_={createFragmentedLevel:d_,createCompleteLevel:h_,createFromEditor:p_,applyToEditor:g_,isEq:__},x_=function(e){return 0===e.get()},O_=function(e,t,n){x_(n)&&(e.typing=t)},S_=function(e,t){e.typing&&(O_(e,!1,t),e.add())},C_=function(e){e.typing&&(e.typing=!1,e.add())},k_=function(e,t,n){x_(t)&&n.set(m.some(Uc.getUndoBookmark(e.selection)))},E_=function(e,t,n,r,i,o,a){var s=e.settings,l=w_.createFromEditor(e);if(o=o||{},o=Fr.extend(o,l),!1===x_(r)||e.removed)return null;var u=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:u,originalEvent:a}).isDefaultPrevented())return null;if(u&&w_.isEq(u,o))return null;if(t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e})),s.custom_undo_redo_levels&&t.data.length>s.custom_undo_redo_levels){for(var c=0;c<t.data.length-1;c++)t.data[c]=t.data[c+1];t.data.length--,n.set(t.data.length)}o.bookmark=Uc.getUndoBookmark(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var f={level:o,lastLevel:u,originalEvent:a};return e.fire("AddUndo",f),n.get()>0&&(e.setDirty(!0),e.fire("change",f)),o},A_=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},T_=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];w_.applyToEditor(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},D_=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],w_.applyToEditor(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},M_=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,O_(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],w_.applyToEditor(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},P_=function(e){e.clear(),e.add()},I_=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!w_.isEq(w_.createFromEditor(e),t.data[0])},j_=function(e,t){return t.get()<e.data.length-1&&!e.typing},L_=function(e,t,n){return S_(e,t),e.beforeChange(),e.ignore(n),e.add()},N_=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},R_=function(e,t,n){var r=we(!1),i=function(e){O_(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;"Undo"!==r&&"Redo"!==r&&"mceRepaint"!==r&&(S_(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===w_.isEq(w_.createFromEditor(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),O_(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data};e.on("input",(function(e){e.inputType&&(o(e)||a(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},B_=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},$_=function(e){var t=we(m.none()),n=we(0),r=we(0),i={data:[],typing:!1,beforeChange:function(){k_(e,n,t)},add:function(o,a){return E_(e,i,r,n,t,o,a)},undo:function(){return M_(e,i,n,r)},redo:function(){return D_(e,r,i.data)},clear:function(){A_(e,i,r)},reset:function(){P_(i)},hasUndo:function(){return I_(e,i,r)},hasRedo:function(){return j_(i,r)},transact:function(e){return L_(i,n,e)},ignore:function(e){N_(n,e)},extra:function(t,n){T_(e,i,r,t,n)}};return R_(e,i,n),B_(e),i},F_=function(e){var t=[],n=e.dom();while(n)t.push(wt.fromDom(n)),n=n.lastChild;return t},z_=function(e){var t=gl(e,"br"),n=R(F_(e).slice(-1),oi);t.length===n.length&&j(n,ls)},q_=function(e){ss(e),rs(e,wt.fromHtml('<br data-mce-bogus="1">'))},U_=function(e){return Tt(e)?" "===yh(e):oi(e)},H_=function(e){return 1===R(Sn(e),U_).length},V_=function(e){En(e).each((function(t){_n(t).each((function(n){ni(e)&&oi(t)&&ni(n)&&ls(t)}))}))},W_={removeTrailingBr:z_,fillWithPaddingBr:q_,isPaddedElement:H_,trimBlockTrailingBr:V_},K_=Yd.isEq,G_=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++)if(!1===r[i].inherit&&e.dom.is(t,r[i].selector))return!0;return!1},Y_=function(e,t,n,r){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,(function(t){return!!G_(e,t,n)||(t.parentNode===i||!!Q_(e,t,n,r,!0))})),Q_(e,t,n,r))},X_=function(e,t,n){return!!K_(t,n.inline)||(!!K_(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Z_=function(e,t,n,r,i,o){var a,s,l,u=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(u)if("undefined"===typeof u.length){for(a in u)if(u.hasOwnProperty(a)){if(s="attributes"===r?e.getAttrib(t,a):Yd.getStyle(e,t,a),i&&!s&&!n.exact)return;if((!i||n.exact)&&!K_(s,Yd.normalizeStyleValue(e,Yd.replaceVars(u[a],o),a)))return}}else for(l=0;l<u.length;l++)if("attributes"===r?e.getAttrib(t,u[l]):Yd.getStyle(e,t,u[l]))return n;return n},Q_=function(e,t,n,r,i){var o,a,s,l,u=e.formatter.get(n),c=e.dom;if(u&&t)for(a=0;a<u.length;a++)if(o=u[a],X_(e.dom,t,o)&&Z_(c,t,o,"attributes",i,r)&&Z_(c,t,o,"styles",i,r)){if(l=o.classes)for(s=0;s<l.length;s++)if(!e.dom.hasClass(t,l[s]))return;return o}},J_=function(e,t,n,r){var i;return r?Y_(e,r,t,n):(r=e.selection.getNode(),!!Y_(e,r,t,n)||(i=e.selection.getStart(),!(i===r||!Y_(e,i,t,n))))},ew=function(e,t,n){var r,i=[],o={};return r=e.selection.getStart(),e.dom.getParent(r,(function(r){var a,s;for(a=0;a<t.length;a++)s=t[a],!o[s]&&Q_(e,r,s,n)&&(o[s]=!0,i.push(s))}),e.dom.getRoot()),i},tw=function(e,t){var n,r,i,o,a,s=e.formatter.get(t),l=e.dom;if(s)for(n=e.selection.getStart(),r=Yd.getParents(l,n),o=s.length-1;o>=0;o--){if(a=s[o].selector,!a||s[o].defaultBlock)return!0;for(i=r.length-1;i>=0;i--)if(l.is(r[i],a))return!0}return!1},nw={matchNode:Q_,matchName:X_,match:J_,matchAll:ew,canApply:tw,matchesUnInheritedFormatSelector:G_},rw=function(e,t){return e.splitText(t)},iw=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&_e.isText(t)?n>0&&n<t.nodeValue.length&&(r=rw(t,n),t=r.previousSibling,i>n?(i-=n,t=r=rw(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(_e.isText(t)&&n>0&&n<t.nodeValue.length&&(t=rw(t,n),n=0),_e.isText(r)&&i>0&&i<r.nodeValue.length&&(r=rw(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},ow=function(e){return-1!==" \f\n\r\t\v".indexOf(e)},aw=function(e,t,n){var r=$(e,(function(r,i){return ow(i)||" "===i?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},sw=function(e,t,n){if(0!==n){var r=e.data.slice(t,t+n),i=t+n>=e.data.length,o=0===t;e.replaceData(t,n,aw(r,o,i))}},lw=function(e,t){var n=e.data.slice(t),r=n.length-it(n).length;return sw(e,t,r)},uw=function(e,t){var n=e.data.slice(0,t),r=n.length-ot(n).length;return sw(e,t-r,r)},cw=function(e,t,n){var r=ot(e.data).length;return e.appendData(t.data),ls(wt.fromDom(t)),n&&lw(e,r),e},fw=function(e,t,n){return bl(e,t,n).isSome()},dw=function(e,t){var n=wt.fromDom(e),r=wt.fromDom(t);return fw(r,"pre,code",s(cn,n))},hw=function(e,t){return _e.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===dw(e,t)},pw=function(e){return _e.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")},gw=function(e,t){return gu(t)&&!1===hw(e,t)||pw(t)||mw(t)},mw=_e.hasAttribute("data-mce-bookmark"),vw=_e.hasAttribute("data-mce-bogus"),yw=_e.hasAttributeValue("data-mce-bogus","all"),bw=function(e){var t,n=0;if(gw(e,e))return!1;if(t=e.firstChild,!t)return!0;var r=new Ja(t,e);do{if(yw(t))t=r.next(!0);else if(vw(t))t=r.next();else if(_e.isBr(t))n++,t=r.next();else{if(gw(e,t))return!1;t=r.next()}}while(t);return n<=1},_w=function(e){return bw(e.dom())},ww={isEmpty:_w},xw=function(e,t){var n=e.container(),r=e.offset();return!1===uc.isTextPosition(e)&&n===t.parentNode&&r>uc.before(t).offset()},Ow=function(e,t){return xw(t,e)?uc(t.container(),t.offset()-1):t},Sw=function(e){return _e.isText(e)?uc(e,0):uc.before(e)},Cw=function(e){return _e.isText(e)?uc(e,e.data.length):uc.after(e)},kw=function(e){return gu(e.previousSibling)?m.some(Cw(e.previousSibling)):e.previousSibling?hd.lastPositionIn(e.previousSibling):m.none()},Ew=function(e){return gu(e.nextSibling)?m.some(Sw(e.nextSibling)):e.nextSibling?hd.firstPositionIn(e.nextSibling):m.none()},Aw=function(e,t){var n=uc.before(t.previousSibling?t.previousSibling:t.parentNode);return hd.prevPosition(e,n).fold((function(){return hd.nextPosition(e,uc.after(t))}),m.some)},Tw=function(e,t){return hd.nextPosition(e,uc.after(t)).fold((function(){return hd.prevPosition(e,uc.before(t))}),m.some)},Dw=function(e,t){return kw(t).orThunk((function(){return Ew(t)})).orThunk((function(){return Aw(e,t)}))},Mw=function(e,t){return Ew(t).orThunk((function(){return kw(t)})).orThunk((function(){return Tw(e,t)}))},Pw=function(e,t,n){return e?Mw(t,n):Dw(t,n)},Iw=function(e,t,n){return Pw(e,t,n).map(s(Ow,n))},jw=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Lw=function(e){return function(t){return t.dom()===e}},Nw=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Ct(t))},Rw=function(e){if(ww.isEmpty(e)){var t=wt.fromHtml('<br data-mce-bogus="1">');return ss(e),rs(e,t),m.some(uc.before(t.dom()))}return m.none()},Bw=function(e,t,n){var r=_n(e).filter(Tt),i=wn(e).filter(Tt);return ls(e),Lu(r,i,t,(function(e,t,r){var i=e.dom(),o=t.dom(),a=i.data.length;return cw(i,o,n),r.container()===o?uc(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return uw(e.dom(),e.dom().length)})),i.each((function(e){return lw(e.dom(),0)}))),t}))},$w=function(e,t){return Rt(e.schema.getTextInlineElements(),Ct(t))},Fw=function(e,t,n,r){void 0===r&&(r=!0);var i=Iw(t,e.getBody(),n.dom()),o=vl(n,s(Nw,e),Lw(e.getBody())),a=Bw(n,i,$w(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(Rw).fold((function(){r&&jw(e,t,a)}),(function(n){r&&jw(e,t,m.some(n))}))},zw={deleteElement:Fw},qw=Hl.ZWSP,Uw="_mce_caret",Hw=function(e,t){return e.importNode(t,!0)},Vw=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==qw||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},Ww=function(e){return Vw(e).length>0},Kw=function(e){if(e){var t=new Ja(e,e);for(e=t.current();e;e=t.next())if(3===e.nodeType)return e}return null},Gw=function(e){var t=wt.fromTag("span");return qt(t,{id:Uw,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&rs(t,wt.fromText(qw)),t},Yw=function(e){var t=Kw(e);return t&&t.nodeValue.charAt(0)===qw&&t.deleteData(0,1),t},Xw=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(Ww(t))zw.deleteElement(e,!1,wt.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=Yw(t);o.startContainer===s&&o.startOffset>0&&o.setStart(s,o.startOffset-1),o.endContainer===s&&o.endOffset>0&&o.setEnd(s,o.endOffset-1),r.remove(t,!0),a&&r.isEmpty(a)&&W_.fillWithPaddingBr(wt.fromDom(a)),i.setRng(o)}},Zw=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)Xw(e,t,n);else if(t=Wc(e.getBody(),i.getStart()),!t)while(t=r.get(Uw))Xw(e,t,!1)},Qw=function(e,t,n){var r=e.dom,i=r.getParent(n,s(Yd.isTextBlock,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(W_.removeTrailingBr(wt.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},Jw=function(e,t){return e.appendChild(t),t},ex=function(e,t){var n=B(e,(function(e,t){return Jw(e,t.cloneNode(!1))}),t);return Jw(n,n.ownerDocument.createTextNode(qw))},tx=function(e,t,n){var r,i,o,a,s,l,u,c=e.selection;r=c.getRng(),a=r.startOffset,l=r.startContainer,u=l.nodeValue,i=Wc(e.getBody(),c.getStart()),i&&(o=Kw(i));var f=/[^\s\u00a0\u00ad\u200b\ufeff]/;u&&a>0&&a<u.length&&f.test(u.charAt(a))&&f.test(u.charAt(a-1))?(s=c.getBookmark(),r.collapse(!0),r=ch.expandRng(e,r,e.formatter.get(t)),r=iw(r),e.formatter.apply(t,n,r),c.moveToBookmark(s)):(i&&o.nodeValue===qw||(i=Hw(e.getDoc(),Gw(!0).dom()),o=i.firstChild,r.insertNode(i),a=1),e.formatter.apply(t,n,i),c.setCursorLocation(o,a))},nx=function(e,t,n,r){var i,o,a,s,l,u,c,f=e.dom,d=e.selection,h=[],p=d.getRng();i=p.startContainer,o=p.startOffset,l=i,3===i.nodeType&&(o!==i.nodeValue.length&&(s=!0),l=l.parentNode);while(l){if(nw.matchNode(e,l,t,n,r)){u=l;break}l.nextSibling&&(s=!0),h.push(l),l=l.parentNode}if(u)if(s){a=d.getBookmark(),p.collapse(!0);var g=ch.expandRng(e,p,e.formatter.get(t),!0);g=iw(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{c=Wc(e.getBody(),u);var m=Gw(!1).dom(),v=ex(h,m);Qw(e,m,c||u),Xw(e,c,!1),d.setCursorLocation(v,1),f.isEmpty(u)&&f.remove(u)}},rx=function(e,t){var n=e.selection,r=e.getBody();Zw(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==qw||Zw(e,Wc(r,n.getStart())),37!==t&&39!==t||Zw(e,Wc(r,n.getStart()))},ix=function(e){e.on("mouseup keydown",(function(t){rx(e,t.keyCode)}))},ox=function(e,t){var n=Gw(!1),r=ex(t,n.dom());return es(wt.fromDom(e),n),ls(wt.fromDom(e)),uc(r,0)},ax=function(e,t){var n=e.schema.getTextInlineElements();return n.hasOwnProperty(Ct(t))&&!Vc(t.dom())&&!_e.isBogus(t.dom())},sx=function(e){return Vc(e.dom())&&Ww(e.dom())},lx={},ux=Er.filter,cx=Er.each,fx=function(e,t){var n=lx[e];n||(lx[e]=n=[]),lx[e].push(t)},dx=function(e,t){cx(lx[e],(function(e){e(t)}))};fx("pre",(function(e){var t,n,r=e.selection.getRng(),i=function(e){return t(e.previousSibling)&&-1!==Er.indexOf(n,e.previousSibling)},o=function(e,t){Qa(t).remove(),Qa(e).append("<br><br>").append(t.childNodes)};t=_e.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),cx(ux(ux(n,t),i),(function(e){o(e.previousSibling,e)})))}));var hx={postProcess:dx},px=Fr.each,gx=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return px(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!Nd.isBookmarkNode(t)&&!Nd.isBookmarkNode(n)))}},mx=/^(src|href|style)$/,vx=Fr.each,yx=Yd.isEq,bx=function(e){return/^(TH|TD)$/.test(e.nodeName)},_x=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},wx=function(e,t,n){var r,i,o;return r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"],_e.isElement(r)&&(o=r.childNodes.length-1,!n&&i&&i--,r=r.childNodes[i>o?o:i]),_e.isText(r)&&n&&i>=r.nodeValue.length&&(r=new Ja(r,e.getBody()).next()||r),_e.isText(r)&&!n&&0===i&&(r=new Ja(r,e.getBody()).prev()||r),r},xx=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},Ox=function(e,t,n,r,i){var o=wt.fromDom(t),a=wt.fromDom(e.create(r,i)),s=n?On(o):xn(o);return as(a,s),n?(es(o,a),ns(a,o)):(ts(o,a),rs(a,o)),a.dom()},Sx=function(e,t,n){return!!yx(t,n.inline)||(!!yx(t,n.block)||(n.selector?_e.isElement(t)&&e.is(t,n.selector):void 0))},Cx=function(e,t){return t.links&&"A"===e.tagName},kx=function(e,t,n,r){return t=Yd.getNonWhiteSpaceSibling(t,n,r),!t||"BR"===t.nodeName||e.isBlock(t)},Ex=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=Sp.getForcedRootBlock(e);n.block&&(a?i===o.getRoot()&&(n.list_block&&yx(t,n.list_block)||vx(Fr.grep(t.childNodes),(function(t){Yd.isValid(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=xx(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=0}))):o.isBlock(t)&&!o.isBlock(i)&&(kx(o,t,!1)||kx(o,t.firstChild,!0,1)||t.insertBefore(o.create("br"),t.firstChild),kx(o,t,!0)||kx(o,t.lastChild,!1,1)||t.appendChild(o.create("br")))),n.selector&&n.inline&&!yx(n.inline,t)||o.remove(t,1)},Ax=function(e,t,n,r,i){var o,a,s,l=e.dom;if(!Sx(l,r,t)&&!Cx(r,t))return!1;if("all"!==t.remove)for(vx(t.styles,(function(e,o){e=Yd.normalizeStyleValue(l,Yd.replaceVars(e,n),o),"number"===typeof o&&(o=e,i=0),(t.remove_similar||!i||yx(Yd.getStyle(l,i,o),e))&&l.setStyle(r,o,""),s=1})),s&&""===l.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),vx(t.attributes,(function(e,o){var a;if(e=Yd.replaceVars(e,n),"number"===typeof o&&(o=e,i=0),t.remove_similar||!i||yx(l.getAttrib(i,o),e)){if("class"===o&&(e=l.getAttrib(r,o),e&&(a="",vx(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(a+=(a?" ":"")+e)})),a)))return void l.setAttrib(r,o,a);"class"===o&&r.removeAttribute("className"),mx.test(o)&&r.removeAttribute("data-mce-"+o),r.removeAttribute(o)}})),vx(t.classes,(function(e){e=Yd.replaceVars(e,n),i&&!l.hasClass(i,e)||l.removeClass(r,e)})),a=l.getAttribs(r),o=0;o<a.length;o++){var u=a[o].nodeName;if(0!==u.indexOf("_")&&0!==u.indexOf("data-"))return!1}return"none"!==t.remove?(Ex(e,r,t),!0):void 0},Tx=function(e,t,n,r,i){var o;return vx(Yd.getParents(e.dom,t.parentNode).reverse(),(function(t){var a;o||"_start"===t.id||"_end"===t.id||(a=nw.matchNode(e,t,n,r,i),a&&!1!==a.split&&(o=t))})),o},Dx=function(e,t,n,r,i,o,a,s){var l,u,c,f,d,h,p=e.dom;if(n){for(h=n.parentNode,l=r.parentNode;l&&l!==h;l=l.parentNode){for(u=p.clone(l,!1),d=0;d<t.length;d++)if(Ax(e,t[d],s,u,u)){u=0;break}u&&(c&&u.appendChild(c),f||(f=u),c=u)}!o||a.mixed&&p.isBlock(n)||(r=p.split(n,r)),c&&(i.parentNode.insertBefore(c,i),f.appendChild(i))}return r},Mx=function(e,t,n,r,i){var o,a,s=e.formatter.get(t),l=s[0],u=!0,c=e.dom,f=e.selection,d=function(r){var o=Tx(e,r,t,n,i);return Dx(e,s,o,r,r,!0,l,n)},h=function(e){return Nd.isBookmarkNode(e)&&_e.isElement(e)&&("_start"===e.id||"_end"===e.id)},p=function(t){var r,i,o,a,f;if(_e.isElement(t)&&c.getContentEditable(t)&&(a=u,u="true"===c.getContentEditable(t),f=!0),r=Fr.grep(t.childNodes),u&&!f)for(i=0,o=s.length;i<o;i++)if(Ax(e,s[i],n,t,t))break;if(l.deep&&r.length){for(i=0,o=r.length;i<o;i++)p(r[i]);f&&(u=a)}},g=function(e){var t=c.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return h(n)&&(n=n[e?"firstChild":"lastChild"]),_e.isText(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),c.remove(t,!0),n},v=function(t){var n,r,i=t.commonAncestorContainer;if(t=ch.expandRng(e,t,s,!0),l.split){if(t=iw(t),n=wx(e,t,!0),r=wx(e,t),n!==r){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),i&&/^T(HEAD|BODY|FOOT|R)$/.test(i.nodeName)&&bx(r)&&r.firstChild&&(r=r.firstChild||r),_x(c,n,r)){var o=m.from(n.firstChild).getOr(n);return d(Ox(c,o,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void g(!0)}if(_x(c,r,n)){o=m.from(r.lastChild).getOr(r);return d(Ox(c,o,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void g(!1)}n=xx(c,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=xx(c,r,"span",{id:"_end","data-mce-type":"bookmark"}),d(n),d(r),n=g(!0),r=g()}else n=r=d(n);t.startContainer=n.parentNode?n.parentNode:n,t.startOffset=c.nodeIndex(n),t.endContainer=r.parentNode?r.parentNode:r,t.endOffset=c.nodeIndex(r)+1}ph.walk(c,t,(function(t){vx(t,(function(t){p(t),_e.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===Yd.getTextDecoration(c,t.parentNode)&&Ax(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)}))}))};if(r)r.nodeType?(a=c.createRng(),a.setStartBefore(r),a.setEndAfter(r),v(a)):v(r);else if("false"!==c.getContentEditable(f.getNode()))f.isCollapsed()&&l.inline&&!c.select("td[data-mce-selected],th[data-mce-selected]").length?nx(e,t,n,i):(o=Uc.getPersistentBookmark(e.selection,!0),v(f.getRng()),f.moveToBookmark(o),l.inline&&nw.match(e,t,n,f.getStart())&&Yd.moveStart(c,f,f.getRng()),e.nodeChanged());else{r=f.getNode();for(var y=0,b=s.length;y<b;y++)if(s[y].ceFalseOverride&&Ax(e,s[y],n,r,r))break}},Px={removeFormat:Ax,remove:Mx},Ix=Fr.each,jx=function(e){return e&&1===e.nodeType&&!Nd.isBookmarkNode(e)&&!Vc(e)&&!_e.isBogus(e)},Lx=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!Nd.isBookmarkNode(n))return n}return e},Nx=function(e,t,n){var r,i,o=new gx(e);if(t&&n&&(t=Lx(t,"previousSibling"),n=Lx(n,"nextSibling"),o.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)i=r,r=r.nextSibling,t.appendChild(i);return e.remove(n),Fr.each(Fr.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},Rx=function(e,t,n){Ix(e.childNodes,(function(e){jx(e)&&(t(e)&&n(e),e.hasChildNodes()&&Rx(e,t,n))}))},Bx=function(e,t){return s((function(t,n){return!(!n||!Yd.getStyle(e,n,t))}),t)},$x=function(e,t,n){return s((function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Fx(e,r)}),t,n)},Fx=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},zx=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=Yd.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},qx=function(e,t,n,r){(t.styles.color||t.styles.textDecoration)&&(Fr.walk(r,s(zx,e),"childNodes"),zx(e,r))},Ux=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Rx(r,Bx(e,"fontSize"),$x(e,"backgroundColor",Yd.replaceVars(t.styles.backgroundColor,n)))},Hx=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Rx(r,Bx(e,"fontSize"),$x(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},Vx=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=Nx(e,Yd.getNonWhiteSpaceSibling(r),r),r=Nx(e,r,Yd.getNonWhiteSpaceSibling(r,!0)))},Wx=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";Ix(e.select(r,n),(function(n){jx(n)&&Ix(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},Kx=function(e,t,n,r){Ix(t,(function(t){Ix(e.dom.select(t.inline,r),(function(r){jx(r)&&Px.removeFormat(e,t,n,r,t.exact?r:null)})),Wx(e.dom,t,r)}))},Gx=function(e,t,n,r,i){nw.matchNode(e,i.parentNode,n,r)&&Px.removeFormat(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(nw.matchNode(e,o,n,r))return Px.removeFormat(e,t,r,i),!0}))},Yx={mergeWithChildren:Kx,mergeUnderlineAndColor:qx,mergeBackgroundColorAndFontSize:Ux,mergeSubSup:Hx,mergeSiblings:Vx,mergeWithParents:Gx},Xx=function(e,t,r,i){var o=n.document.createRange();return o.setStart(e,t),o.setEnd(r,i),o},Zx=function(e){var t=uc.fromRangeStart(e),n=uc.fromRangeEnd(e),r=e.commonAncestorContainer;return hd.fromPosition(!1,r,n).map((function(i){return!Ef(t,n,r)&&Ef(t,i,r)?Xx(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},Qx=function(e){return e.collapsed?e:Zx(e)},Jx={normalize:Qx},eO=Fr.each,tO=function(e){return e&&1===e.nodeType&&!Nd.isBookmarkNode(e)&&!Vc(e)&&!_e.isBogus(e)},nO=function(e,t,n,r){var i,o,a=e.formatter.get(t),s=a[0],l=!r&&e.selection.isCollapsed(),u=e.dom,c=e.selection,f=function(e,t){if(t=t||s,e){if(t.onformat&&t.onformat(e,t,n,r),eO(t.styles,(function(t,r){u.setStyle(e,r,Yd.replaceVars(t,n))})),t.styles){var i=u.getAttrib(e,"style");i&&e.setAttribute("data-mce-style",i)}eO(t.attributes,(function(t,r){u.setAttrib(e,r,Yd.replaceVars(t,n))})),eO(t.classes,(function(t){t=Yd.replaceVars(t,n),u.hasClass(e,t)||u.addClass(e,t)}))}},d=function(e,t){var n=!1;return!!s.selector&&(eO(e,(function(e){if(!("collapsed"in e)||e.collapsed===l)return u.is(t,e.selector)&&!Vc(t)?(f(t,e),n=!0,!1):void 0})),n)},h=function(r,i,o,l){var u,c,h=[],p=!0;u=s.inline||s.block,c=r.create(u),f(c),ph.walk(r,i,(function(i){var o,g=function(i){var m,v,y,b;if(b=p,m=i.nodeName.toLowerCase(),v=i.parentNode.nodeName.toLowerCase(),1===i.nodeType&&r.getContentEditable(i)&&(b=p,p="true"===r.getContentEditable(i),y=!0),Yd.isEq(m,"br"))return o=0,void(s.block&&r.remove(i));if(s.wrapper&&nw.matchNode(e,i,t,n))o=0;else{if(p&&!y&&s.block&&!s.wrapper&&Yd.isTextBlock(e,m)&&Yd.isValid(e,v,u))return i=r.rename(i,u),f(i),h.push(i),void(o=0);if(s.selector){var _=d(a,i);if(!s.inline||_)return void(o=0)}!p||y||!Yd.isValid(e,u,m)||!Yd.isValid(e,v,u)||!l&&3===i.nodeType&&1===i.nodeValue.length&&65279===i.nodeValue.charCodeAt(0)||Vc(i)||s.inline&&r.isBlock(i)?(o=0,eO(Fr.grep(i.childNodes),g),y&&(p=b),o=0):(o||(o=r.clone(c,!1),i.parentNode.insertBefore(o,i),h.push(o)),o.appendChild(i))}};eO(i,g)})),!0===s.links&&eO(h,(function(e){var t=function(e){"A"===e.nodeName&&f(e,s),eO(Fr.grep(e.childNodes),t)};t(e)})),eO(h,(function(i){var o,l=function(e){var t=0;return eO(e.childNodes,(function(e){Yd.isWhiteSpaceNode(e)||Nd.isBookmarkNode(e)||t++})),t},u=function(e){var t=!1;return eO(e.childNodes,(function(e){if(tO(e))return t=e,!1})),t},c=function(e){var t,n;return t=u(e),t&&!Nd.isBookmarkNode(t)&&nw.matchName(r,t,s)&&(n=r.clone(t,!1),f(n),r.replace(n,e,!0),r.remove(t,1)),n||e};o=l(i),!(h.length>1)&&r.isBlock(i)||0!==o?(s.inline||s.wrapper)&&(s.exact||1!==o||(i=c(i)),Yx.mergeWithChildren(e,a,n,i),Yx.mergeWithParents(e,s,t,n,i),Yx.mergeBackgroundColorAndFontSize(r,s,n,i),Yx.mergeSubSup(r,s,n,i),Yx.mergeSiblings(r,s,n,i)):r.remove(i,1)}))};if("false"!==u.getContentEditable(c.getNode())){if(s){if(r)r.nodeType?d(a,r)||(o=u.createRng(),o.setStartBefore(r),o.setEndAfter(r),h(u,ch.expandRng(e,o,a),null,!0)):h(u,r,null,!0);else if(l&&s.inline&&!u.select("td[data-mce-selected],th[data-mce-selected]").length)tx(e,t,n);else{var p=e.selection.getNode();e.settings.forced_root_block||!a[0].defaultBlock||u.getParent(p,u.isBlock)||nO(e,a[0].defaultBlock),e.selection.setRng(Jx.normalize(e.selection.getRng())),i=Uc.getPersistentBookmark(e.selection,!0),h(u,ch.expandRng(e,c.getRng(),a)),s.styles&&Yx.mergeUnderlineAndColor(u,s,n,p),c.moveToBookmark(i),Yd.moveStart(u,c,c.getRng()),e.nodeChanged()}hx.postProcess(t,e)}}else{r=c.getNode();for(var g=0,m=a.length;g<m;g++)if(a[g].ceFalseOverride&&u.is(r,a[g].selector))return void f(r,a[g])}},rO={applyFormat:nO},iO=function(e,t){var n=we({});e.set({}),t.on("NodeChange",(function(r){oO(t,r.element,n,e.get())}))},oO=function(e,t,n,r){var i=Dt(n.get()),o={},a={},s=R(Yd.getParents(e.dom,t),(function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")}));Pt(r,(function(t,n){Fr.each(s,(function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===i.indexOf(n)&&(j(t.callbacks,(function(e){e(!0,{node:r,format:n,parents:s})})),o[n]=t.callbacks),a[n]=t.callbacks,!1):!nw.matchesUnInheritedFormatSelector(e,r,n)&&void 0}))}));var l=aO(n.get(),a,t,s);n.set(Q(Q({},o),l))},aO=function(e,t,n,r){return Lt(e,(function(e,i){return!!Rt(t,i)||(j(e,(function(e){e(!1,{node:n,format:i,parents:r})})),!1)})).t},sO=function(e,t,n,r){var i=e.get();j(t.split(","),(function(e){i[e]||(i[e]={similar:r,callbacks:[]}),i[e].callbacks.push(n)})),e.set(i)},lO=function(e,t,n){var r=e.get();j(t.split(","),(function(e){r[e].callbacks=R(r[e].callbacks,(function(e){return e!==n})),0===r[e].callbacks.length&&delete r[e]})),e.set(r)},uO=function(e,t,n,r,i){return null===t.get()&&iO(t,e),sO(t,n,r,i),{unbind:function(){return lO(t,n,r)}}},cO=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(t,n,r){Fr.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return Fr.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},fO={get:cO};function dO(e){var t={},n=function(e){return e?t[e]:t},r=function(e){return Rt(t,e)},i=function(e,n){e&&("string"!==typeof e?Fr.each(e,(function(e,t){i(t,e)})):(w(n)||(n=[n]),Fr.each(n,(function(e){"undefined"===typeof e.deep&&(e.deep=!e.selector),"undefined"===typeof e.split&&(e.split=!e.selector||e.inline),"undefined"===typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"===typeof e.classes&&(e.classes=e.classes.split(/\s+/))})),t[e]=n))},o=function(e){return e&&t[e]&&delete t[e],t};return i(fO.get(e.dom)),i(e.settings.formats),{get:n,has:r,register:i,unregister:o}}var hO=Fr.each,pO=Ms.DOM,gO=function(e,t){var n,r,i,o=t&&t.schema||qi({}),a=function(e,t){t.classes.length&&pO.addClass(e,t.classes.join(" ")),pO.setAttribs(e,t.attrs)},s=function(e){var t;return r="string"===typeof e?{name:e,classes:[],attrs:{}}:e,t=pO.create(r.name),a(t,r),t},l=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==Fr.inArray(i,t)?t:i[0])},u=function(e,t,n){var r,i,o,a=t.length>0&&t[0],c=a&&a.name;if(o=l(e,c),o)c===o?(i=t[0],t=t.slice(1)):i=o;else if(a)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=pO.create("div"),r.appendChild(e)),Fr.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),u(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=pO.create("div"),i.appendChild(u(n,e.slice(1),r.siblings)),i):""},mO=function(e,t){return gO(yO(e),t)},vO=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=Fr.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Fr.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},yO=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Fr.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=Fr.map(e.split(/(?:~\+|~|\+)/),vO),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},bO=function(e,t){var n,r,i,o,a,s,l="";if(s=e.settings.preview_styles,!1===s)return"";"string"!==typeof s&&(s="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var u=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}return"preview"in t&&(s=t.preview,!1===s)?"":(n=t.block||t.inline||"span",o=yO(t.selector),o.length?(o[0].name||(o[0].name=n),n=t.selector,r=gO(o,e)):r=gO([n],e),i=pO.select(n,r)[0]||r.firstChild,hO(t.styles,(function(e,t){e=u(e),e&&pO.setStyle(i,t,e)})),hO(t.attributes,(function(e,t){e=u(e),e&&pO.setAttrib(i,t,e)})),hO(t.classes,(function(e){e=u(e),pO.hasClass(i,e)||pO.addClass(i,e)})),e.fire("PreviewFormats"),pO.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),a=pO.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,hO(s.split(" "),(function(t){var n=pO.getStyle(i,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=pO.getStyle(e.getBody(),t,!0),"#ffffff"!==pO.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==pO.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===a)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*a+"px"}"border"===t&&n&&(l+="padding:0 2px;"),l+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),pO.remove(r),l)},_O={getCssText:bO,parseSelector:yO,selectorToHtml:mO},wO=function(e,t,n,r,i){var o=t.get(n);!nw.match(e,n,r,i)||"toggle"in o[0]&&!o[0].toggle?rO.applyFormat(e,n,r,i):Px.remove(e,n,r,i)},xO={toggle:wO},OO=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},SO={setup:OO},CO=function(e){var t=dO(e),n=we(null);return SO.setup(e),ix(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:s(rO.applyFormat,e),remove:s(Px.remove,e),toggle:s(xO.toggle,e,t),match:s(nw.match,e),matchAll:s(nw.matchAll,e),matchNode:s(nw.matchNode,e),canApply:s(nw.canApply,e),formatChanged:s(uO,e,n),getCssText:s(_O.getCssText,e)}},kO=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n,r=e.length;while(r--)n=e[r],n.attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)})),e.addAttributeFilter("src,href,style",(function(e,r){var i,o,a=e.length,s="data-mce-"+r,l=t.url_converter,u=t.url_converter_scope;while(a--)i=e[a],o=i.attr(s),void 0!==o?(i.attr(r,o.length>0?o:null),i.attr(s,null)):(o=i.attr(r),"style"===r?o=n.serializeStyle(n.parseStyle(o),i.name):l&&(o=l.call(u,o,r,i.name)),i.attr(r,o.length>0?o:null))})),e.addAttributeFilter("class",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("class"),n&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r,i=e.length;while(i--)if(r=e[i],"bookmark"===r.attr("data-mce-type")&&!n.cleanup){var o=m.from(r.firstChild).exists((function(e){return!Hl.isZwsp(e.value)}));o?r.unwrap():r.remove()}})),e.addNodeFilter("noscript",(function(e){var t,n=e.length;while(n--)t=e[n].firstChild,t&&(t.value=Mi.decode(t.value))})),e.addNodeFilter("script,style",(function(e,n){var r,i,o,a=e.length,s=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};while(a--)r=e[a],i=r.firstChild?r.firstChild.value:"","script"===n?(o=r.attr("type"),o&&r.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="// <![CDATA[\n"+s(i)+"\n// ]]>")):"xhtml"===t.element_format&&i.length>0&&(r.firstChild.value="\x3c!--\n"+s(i)+"\n--\x3e")})),e.addNodeFilter("#comment",(function(e){var t,n=e.length;while(n--)t=e[n],0===t.value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n,r=e.length;while(r--)n=e[r],7===n.type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))})),e.addAttributeFilter("data-mce-type",(function(t){j(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},EO=function(e){var t,n,r=function(e){return e&&"br"===e.name};t=e.lastChild,r(t)&&(n=t.prev,r(n)&&(t.remove(),n.remove()))},AO={register:kO,trimTrailingBr:EO},TO=function(e,t,r){var i,o,a,s=e.dom;return t=t.cloneNode(!0),i=n.document.implementation,i.createHTMLDocument&&(o=i.createHTMLDocument(""),Fr.each("BODY"===t.nodeName?t.childNodes:[t],(function(e){o.body.appendChild(o.importNode(e,!0))})),t="BODY"!==t.nodeName?o.body.firstChild:o.body,a=s.doc,s.doc=o),hm.firePreProcess(e,km(r,{node:t})),a&&(s.doc=a),t},DO=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},MO=function(e,t,n){return DO(e,n)?TO(e,t,n):t},PO={process:MO},IO=function(e,t){j(t,(function(t){e.attr(t,null)}))},jO=function(e,t,n){e.addNodeFilter("font",(function(e){j(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),IO(e,["color","face","size"])}))}))},LO=function(e,t){e.addNodeFilter("strike",(function(e){j(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},NO=function(e,t){var n=uo();t.convert_fonts_to_spans&&jO(e,n,Fr.explode(t.font_size_legacy_values)),LO(e,n)},RO=function(e,t){t.inline_styles&&NO(e,t)},BO={register:RO},$O=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new Dh("br",1)).shortEnded=!0:r.empty().append(new Dh("#text",3)).value=" "},FO=function(e){return zO(e,"#text")&&" "===e.firstChild.value},zO=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},qO=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},UO=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return qO(e,t)}))},HO=function(e,t){return e&&(t[e.name]||"br"===e.name)},VO=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,l,u,c,f,d,h=e.length,p=Fr.extend({},n.getBlockElements()),g=n.getNonEmptyElements(),m=n.getNonEmptyElements();for(p.body=1,o=0;o<h;o++)if(a=e[o],s=a.parent,p[a.parent.name]&&a===s.lastChild){u=a.prev;while(u){if(c=u.name,"span"!==c||"bookmark"!==u.attr("data-mce-type")){if("br"!==c)break;if("br"===c){a=null;break}}u=u.prev}a&&(a.remove(),UO(n,g,m,s)&&(f=n.getElementRule(s.name),f&&(f.removeEmpty?s.remove():f.paddEmpty&&$O(t,i,p,s))))}else{l=a;while(s&&s.firstChild===l&&s.lastChild===l){if(l=s,p[s.name])break;s=s.parent}l===s&&!0!==t.padd_empty_with_br&&(d=new Dh("#text",3),d.value=" ",a.replace(d))}})),e.addAttributeFilter("href",(function(e){var n,r=e.length,i=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},o=function(e){var t=e?Fr.trim(e):"";return/\b(noopener)\b/g.test(t)?t:i(t)};if(!t.allow_unsafe_link_target)while(r--)n=e[r],"a"===n.name&&"_blank"===n.attr("target")&&n.attr("rel",o(n.attr("rel")))})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new Dh("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t,r,i,o,a,s,l,u=e.length,c=n.getValidClasses();while(u--){for(t=e[u],r=t.attr("class").split(" "),a="",i=0;i<r.length;i++)o=r[i],l=!1,s=c["*"],s&&s[o]&&(l=!0),s=c[t.name],!l&&s&&s[o]&&(l=!0),l&&(a&&(a+=" "),a+=o);a.length||(a=null),t.attr("class",a)}}))},WO=Fr.makeMap,KO=Fr.each,GO=Fr.explode,YO=Fr.extend,XO=function(e,t){void 0===t&&(t=qi());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){var n,r,i,o,a,l,u,c,f,d,h,p,g,m,v,y;for(p=WO("tr,td,th,tbody,thead,tfoot,table"),d=t.getNonEmptyElements(),h=t.getWhiteSpaceElements(),g=t.getTextBlockElements(),m=t.getSpecialElements(),n=0;n<e.length;n++)if(r=e[n],r.parent&&!r.fixed)if(g[r.name]&&"li"===r.parent.name){v=r.next;while(v){if(!g[v.name])break;v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next}r.unwrap(r)}else{for(o=[r],i=r.parent;i&&!t.isValidChild(i.name,r.name)&&!p[i.name];i=i.parent)o.push(i);if(i&&o.length>1){for(o.reverse(),a=l=s(o[0].clone()),f=0;f<o.length-1;f++){for(t.isValidChild(l.name,o[f].name)?(u=s(o[f].clone()),l.append(u)):u=l,c=o[f].firstChild;c&&c!==o[f+1];)y=c.next,u.append(c),c=y;l=u}UO(t,d,h,a)?i.insert(r,o[0],!0):(i.insert(a,o[0],!0),i.insert(r,a)),i=o[0],(UO(t,d,h,i)||zO(i,"br"))&&i.empty().remove()}else if(r.parent){if("li"===r.name){if(v=r.prev,v&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if(v=r.next,v&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(s(new Dh("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(s(new Dh("div",1))):m[r.name]?r.empty().remove():r.unwrap()}}},s=function(e){var t,a,s;a=e.name,a in n&&(s=i[a],s?s.push(e):i[a]=[e]),t=r.length;while(t--)a=r[t].name,a in e.attributes.map&&(s=o[a],s?s.push(e):o[a]=[e]);return e},l=function(e,t){KO(GO(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},u=function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},c=function(e,t){KO(GO(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},f=function(){return[].concat(r)},d=function(s,l){var u,c,f,d,h,p,g,m,v,y,b,_=[],w=function(e){return!1===e?"":!0===e?"p":e};l=l||{},i={},o={},v=YO(WO("script,style,head,html,body,title,meta,param"),t.getBlockElements());var x=t.getNonEmptyElements(),O=t.children,S=e.validate,C="forced_root_block"in l?l.forced_root_block:e.forced_root_block,k=w(C),E=t.getWhiteSpaceElements(),A=/^[ \t\r\n]+/,T=/[ \t\r\n]+$/,D=/[ \t\r\n]+/g,M=/^[ \t\r\n]+$/;y=E.hasOwnProperty(l.context)||E.hasOwnProperty(e.root_name);var P=function(){var n,r,i=N.firstChild,o=function(e){e&&(i=e.firstChild,i&&3===i.type&&(i.value=i.value.replace(A,"")),i=e.lastChild,i&&3===i.type&&(i.value=i.value.replace(T,"")))};if(t.isValidChild(N.name,k.toLowerCase())){while(i)n=i.next,3===i.type||1===i.type&&"p"!==i.name&&!v[i.name]&&!i.attr("data-mce-type")?(r||(r=I(k,1),r.attr(e.forced_root_block_attrs),N.insert(r,i)),r.append(i)):(o(r),r=null),i=n;o(r)}},I=function(e,t){var r,o=new Dh(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},j=function(e){var n,r,i,o,a=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if(i=n.value.replace(T,""),i.length>0)return void(n.value=i);if(r=n.next,r){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}o=n.prev,n.remove(),n=o}},L=function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n};u=Bh({validate:S,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,self_closing_elements:L(t.getSelfClosingElements()),cdata:function(e){b.append(I("#cdata",4)).value=e},text:function(e,t){var n;y||(e=e.replace(D," "),HO(b.lastChild,v)&&(e=e.replace(A,""))),0!==e.length&&(n=I("#text",3),n.raw=!!t,b.append(n).value=e)},comment:function(e){b.append(I("#comment",8)).value=e},pi:function(e,t){b.append(I(e,7)).value=t,j(b)},doctype:function(e){var t;t=b.append(I("#doctype",10)),t.value=e,j(b)},start:function(e,n,i){var a,s,l,u,c;if(l=S?t.getElementRule(e):{},l){a=I(l.outputName||e,1),a.attributes=n,a.shortEnded=i,b.append(a),c=O[b.name],c&&O[a.name]&&!c[a.name]&&_.push(a),s=r.length;while(s--)u=r[s].name,u in n.map&&(g=o[u],g?g.push(a):o[u]=[a]);v[e]&&j(a),i||(b=a),!y&&E[e]&&(y=!0)}},end:function(n){var r,i,o,a,s;if(i=S?t.getElementRule(n):{},i){if(v[n]&&!y){if(r=b.firstChild,r&&3===r.type)if(o=r.value.replace(A,""),o.length>0)r.value=o,r=r.next;else{a=r.next,r.remove(),r=a;while(r&&3===r.type)o=r.value,a=r.next,(0===o.length||M.test(o))&&(r.remove(),r=a),r=a}if(r=b.lastChild,r&&3===r.type)if(o=r.value.replace(T,""),o.length>0)r.value=o,r=r.prev;else{a=r.prev,r.remove(),r=a;while(r&&3===r.type)o=r.value,a=r.prev,(0===o.length||M.test(o))&&(r.remove(),r=a),r=a}}if(y&&E[n]&&(y=!1),i.removeEmpty&&UO(t,x,E,b)&&!b.attr("name")&&!b.attr("id"))return s=b.parent,v[b.name]?b.empty().remove():b.unwrap(),void(b=s);i.paddEmpty&&(FO(b)||UO(t,x,E,b))&&$O(e,l,v,b),b=b.parent}}},t);var N=b=new Dh(l.context||e.root_name,11);if(u.parse(s),S&&_.length&&(l.context?l.invalid=!0:a(_)),k&&("body"===N.name||l.isRootContent)&&P(),!l.invalid){for(m in i)if(i.hasOwnProperty(m)){g=n[m],c=i[m],h=c.length;while(h--)c[h].parent||c.splice(h,1);for(f=0,d=g.length;f<d;f++)g[f](c,m,l)}for(f=0,d=r.length;f<d;f++)if(g=r[f],g.name in o){c=o[g.name],h=c.length;while(h--)c[h].parent||c.splice(h,1);for(h=0,p=g.callbacks.length;h<p;h++)g.callbacks[h](c,g.name,l)}}return N},h={schema:t,addAttributeFilter:c,getAttributeFilters:f,addNodeFilter:l,getNodeFilters:u,filterNode:s,parse:d};return VO(h,e),BO.register(h,e),h},ZO=function(e,t,n){-1===Fr.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},QO=function(e,t,n){if(!t.no_events&&e){var r=hm.firePostProcess(e,km(t,{content:n}));return r.content}return n},JO=function(e,t,n){var r=Hl.trim(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||di(wt.fromDom(t))?r:Fr.trim(r)},eS=function(e,t,n){var r=n.selection?km({forced_root_block:!1},n):n,i=e.parse(t,r);return AO.trimTrailingBr(i),i},tS=function(e,t,n){var r=Mp(e,t);return r.serialize(n)},nS=function(e,t,n,r,i){var o=tS(t,n,r);return QO(e,i,o)},rS=function(e,t){var n,r,i,o=["data-mce-selected"];n=t&&t.dom?t.dom:Ms.DOM,r=t&&t.schema?t.schema:qi(e),e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs,i=XO(e,r),AO.register(i,e,n);var a=function(o,a){var s=km({format:"html"},a||{}),l=PO.process(t,o,s),u=JO(n,l,s),c=eS(i,u,s);return"tree"===s.format?c:nS(t,e,r,c,s)};return{schema:r,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:a,addRules:function(e){r.addValidElements(e)},setRules:function(e){r.setValidElements(e)},addTempAttr:s(ZO,i,o),getTempAttrs:function(){return o}}},iS=function(e,t){var n=rS(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs}};function oS(e){return{getBookmark:s(Nd.getBookmark,e),moveToBookmark:s(Nd.moveToBookmark,e)}}(function(e){e.isBookmarkNode=Nd.isBookmarkNode})(oS||(oS={}));var aS=oS,sS=_e.isContentEditableFalse,lS=_e.isContentEditableTrue,uS=function(e,t){while(t&&t!==e){if(lS(t)||sS(t))return t;t=t.parentNode}return null},cS=function(e,t){var r,i,o,a,s,l,u,c,f,d,h,p,g,m,v,y,b,_=t.dom,w=Fr.each,x=t.getDoc(),O=n.document,S=Math.abs,C=Math.round,k=t.getBody();a={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var E=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},A=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return E(e.target)&&!ab.isXYWithinRange(n.clientX,n.clientY,t)}return E(e.target)&&!ab.isXYWithinRange(e.clientX,e.clientY,t)},T=function(e){var n=e.target;A(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},D=function(e){return t.dom.is(e,"figure.image")?e.querySelector("img"):e},M=function(e){var n=t.settings.object_resizing;return!1!==n&&!mr.iOS&&("string"!==typeof n&&(n="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&an(wt.fromDom(e),n)))},P=function(e){var n,a,w,x,O;n=e.screenX-l,a=e.screenY-u,m=n*s[2]+d,v=a*s[3]+h,m=m<5?5:m,v=v<5?5:v,w=E(r)&&!1!==t.settings.resize_img_proportional?!by.modifierPressed(e):by.modifierPressed(e)||E(r)&&s[2]*s[3]!==0,w&&(S(n)>S(a)?(v=C(m*p),m=C(v/p)):(m=C(v/p),v=C(m*p))),_.setStyles(D(i),{width:m,height:v}),x=s.startPos.x+n,O=s.startPos.y+a,x=x>0?x:0,O=O>0?O:0,_.setStyles(o,{left:x,top:O,display:"block"}),o.innerHTML=m+" &times; "+v,s[2]<0&&i.clientWidth<=m&&_.setStyle(i,"left",c+(d-m)),s[3]<0&&i.clientHeight<=v&&_.setStyle(i,"top",f+(h-v)),n=k.scrollWidth-y,a=k.scrollHeight-b,n+a!==0&&_.setStyles(o,{left:x-n,top:O-a}),g||(hm.fireObjectResizeStart(t,r,d,h),g=!0)},I=function(){g=!1;var e=function(e,n){n&&(r.style[e]||!t.schema.isValid(r.nodeName.toLowerCase(),e)?_.setStyle(D(r),e,n):_.setAttrib(D(r),e,n))};e("width",m),e("height",v),_.unbind(x,"mousemove",P),_.unbind(x,"mouseup",I),O!==x&&(_.unbind(O,"mousemove",P),_.unbind(O,"mouseup",I)),_.remove(i),_.remove(o),j(r),hm.fireObjectResized(t,r,m,v),_.setAttrib(r,"style",_.getAttrib(r,"style")),t.nodeChanged()},j=function(e){var n,g,S,C,E;L(),B(),n=_.getPos(e,k),c=n.x,f=n.y,E=e.getBoundingClientRect(),g=E.width||E.right-E.left,S=E.height||E.bottom-E.top,r!==e&&(r=e,m=v=0),C=t.fire("ObjectSelected",{target:e}),M(e)&&!C.isDefaultPrevented()?w(a,(function(e,t){var n,a=function(t){l=t.screenX,u=t.screenY,d=D(r).clientWidth,h=D(r).clientHeight,p=h/d,s=e,e.startPos={x:g*e[0]+c,y:S*e[1]+f},y=k.scrollWidth,b=k.scrollHeight,i=r.cloneNode(!0),_.addClass(i,"mce-clonedresizable"),_.setAttrib(i,"data-mce-bogus","all"),i.contentEditable=!1,i.unSelectabe=!0,_.setStyles(i,{left:c,top:f,margin:0}),i.removeAttribute("data-mce-selected"),k.appendChild(i),_.bind(x,"mousemove",P),_.bind(x,"mouseup",I),O!==x&&(_.bind(O,"mousemove",P),_.bind(O,"mouseup",I)),o=_.add(k,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+h)};n=_.get("mceResizeHandle"+t),n&&_.remove(n),n=_.add(k,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===mr.ie&&(n.contentEditable=!1),_.bind(n,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),a(e)})),e.elm=n,_.setStyles(n,{left:g*e[0]+c-n.offsetWidth/2,top:S*e[1]+f-n.offsetHeight/2})})):L(),r.setAttribute("data-mce-selected","1")},L=function(){var e,t;for(e in B(),r&&r.removeAttribute("data-mce-selected"),a)t=_.get("mceResizeHandle"+e),t&&(_.unbind(t),_.remove(t))},N=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};g||t.removed||(w(_.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute("data-mce-selected")})),i="mousedown"===n.type?n.target:e.getNode(),i=_.$(i).closest("table,img,figure.image,hr")[0],o(i,k)&&($(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?j(i):L())},R=function(e){return sS(uS(t.getBody(),e))},B=function(){for(var e in a){var t=a[e];t.elm&&(_.unbind(t.elm),delete t.elm)}},$=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};t.on("init",(function(){$(),(mr.browser.isIE()||mr.browser.isEdge())&&(t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||R(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())})),t.dom.bind(k,"mscontrolselect",(function(e){var n=function(e){sr.setEditorTimeout(t,(function(){t.selection.select(e)}))};if(R(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))})));var e=sr.throttle((function(e){t.composing||N(e)}));t.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),t.on("keyup compositionend",(function(t){r&&"TABLE"===r.nodeName&&e(t)})),t.on("hide blur",L),t.on("contextmenu longpress",T,!0)})),t.on("remove",B);var F=function(){r=i=null};return{isResizable:M,showResizeRect:j,hideResizeRect:L,updateResizeRect:N,destroy:F}};function fS(e,t){var n=function(t,n){if(!C(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();Bt(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Wt(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return $(t,(function(t,n){var r=Wt(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}}var dS=fS("height",(function(e){var t=e.dom();return $t(e)?t.getBoundingClientRect().height:t.offsetHeight})),hS=function(e){return dS.get(e)},pS=function(e,t){var n=e.view(t);return n.fold(o([]),(function(t){var n=e.owner(t),r=pS(e,n);return[t].concat(r)}))},gS=function(e,t){var n=t.owner(e);return pS(t,n)},mS=function(e){var t=e.dom()===n.document?m.none():m.from(e.dom().defaultView.frameElement);return t.map(wt.fromDom)},vS=function(e){return gn(e)},yS=Object.freeze({view:mS,owner:vS}),bS=function(e){var t=wt.fromDom(n.document),r=vs(t),i=gS(e,yS),o=gs(e),a=B(i,(function(e,t){var n=gs(t);return{left:e.left+n.left(),top:e.top+n.top()}}),{left:0,top:0});return fs(a.left+o.left()+r.left(),a.top+o.top()+r.top())},_S=function(e){return"textarea"===Ct(e)},wS=function(e,t){var n=Sn(e);if(0===n.length||_S(e))return{element:e,offset:t};if(t<n.length&&!_S(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return _S(r)?{element:e,offset:t}:"img"===Ct(r)?{element:r,offset:1}:Tt(r)?{element:r,offset:yh(r).length}:{element:r,offset:Sn(r).length}},xS=function(e,t){var n=ps(e),r=hS(e);return{element:e,bottom:n.top()+r,pos:n,cleanup:t}},OS=function(e,t){var n=wS(e,t),r=wt.fromHtml('<span data-mce-bogus="all">'+Hl.ZWSP+"</span>");return es(n.element,r),xS(r,(function(){return ls(r)}))},SS=function(e){return xS(wt.fromDom(e),r)},CS=function(e,t,n,r){AS(e,(function(i,o){return kS(e,t,n,r)}),n)},kS=function(e,t,n,r){var i=wt.fromDom(e.getBody()),o=wt.fromDom(e.getDoc());Yt(i);var a=vs(o).top(),s=OS(wt.fromDom(n.startContainer),n.startOffset);t(o,a,s,r),s.cleanup()},ES=function(e,t,n,r){var i=wt.fromDom(e.getDoc()),o=vs(i).top();n(i,o,t,r)},AS=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(wt.fromDom(r),wt.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},TS=function(e,t,n){var r=e.fire("ScrollIntoView",{elm:t,alignToTop:n});return r.isDefaultPrevented()},DS=function(e,t,n,r){var i=e.pos;if(n)ys(i.left(),i.top(),r);else{var o=i.top()-t+(e.bottom-i.top());ys(i.left(),o,r)}},MS=function(e,t,n,r,i){r.pos.top()<t?DS(r,n,!1!==i,e):r.bottom>n+t&&DS(r,n,!0===i,e)},PS=function(e,t,n,r){var i=e.dom().defaultView.innerHeight;MS(e,t,i,n,r)},IS=function(e,t,r,i,o){var a=t.dom().defaultView.innerHeight;MS(t,r,a,i,o);var s=bS(i.element),l=ws(n.window);s.top()<l.y()?bs(i.element,!1!==o):s.top()>l.bottom()&&bs(i.element,!0===o)},jS=function(e,t,n){return CS(e,s(PS),t,n)},LS=function(e,t,n){return ES(e,SS(t),s(PS),n)},NS=function(e,t,n){return CS(e,s(IS,e),t,n)},RS=function(e,t,n){return ES(e,SS(t),s(IS,e),n)},BS=function(e,t,n){if(!TS(e,t,n)){var r=e.inline?LS:RS;r(e,t,n)}},$S=function(e,t,n){var r=e.inline?jS:NS;r(e,t,n)},FS={scrollElementIntoView:BS,scrollRangeIntoView:$S},zS=function(e){return _e.isContentEditableTrue(e)||_e.isContentEditableFalse(e)},qS=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},US=function(e,t,n){var r,i,o;if(r=n.elementFromPoint(e,t),i=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),i.moveToElementText(r),o=Fr.toArray(i.getClientRects()),o=o.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),o.length>0){t=(o[0].bottom+o[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(a){}}return null},HS=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return _e.isContentEditableFalse(qS(n,t,zS))?null:e},VS=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=US(e,t,n)}return HS(r,n.body)}return r},WS={fromPoint:VS},KS=function(e,t){return I(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},GS={processRanges:KS},YS=function(e,t){var r=t||n.document,i=r.createDocumentFragment();return j(e,(function(e){i.appendChild(e.dom())})),wt.fromDom(i)},XS=Xt("element","width","rows"),ZS=Xt("element","cells"),QS=Xt("x","y"),JS=function(e,t){var n=parseInt(Ut(e,t),10);return isNaN(n)?1:n},eC=function(e,t,n,r,i){for(var o=JS(i,"rowspan"),a=JS(i,"colspan"),s=e.rows(),l=n;l<n+o;l++){s[l]||(s[l]=ZS(Rl(r),[]));for(var u=t;u<t+a;u++){var c=s[l].cells();c[u]=l===n&&u===t?i:Nl(i)}}},tC=function(e,t,n){var r=e.rows(),i=r[n]?r[n].cells():[];return!!i[t]},nC=function(e,t,n){while(tC(e,t,n))t++;return t},rC=function(e){return $(e,(function(e,t){return t.cells().length>e?t.cells().length:e}),0)},iC=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var i=n[r].cells(),o=0;o<i.length;o++)if(cn(i[o],t))return m.some(QS(o,r));return m.none()},oC=function(e,t,n,r,i){for(var o=[],a=e.rows(),s=n;s<=i;s++){var l=a[s].cells(),u=t<r?l.slice(t,r+1):l.slice(r,t+1);o.push(ZS(a[s].element(),u))}return o},aC=function(e,t,n){var r=t.x(),i=t.y(),o=n.x(),a=n.y(),s=i<a?oC(e,r,i,o,a):oC(e,r,a,o,i);return XS(e.element(),rC(s),s)},sC=function(e,t){var n=Nl(e.element()),r=wt.fromTag("tbody");return as(r,t),rs(n,r),n},lC=function(e){return I(e.rows(),(function(e){var t=I(e.cells(),(function(e){var t=Rl(e);return Vt(t,"colspan"),Vt(t,"rowspan"),t})),n=Nl(e.element());return as(n,t),n}))},uC=function(e){var t=XS(Nl(e),0,[]);return j(gl(e,"tr"),(function(e,n){j(gl(e,"td,th"),(function(r,i){eC(t,nC(t,i,n),n,e,r)}))})),XS(t.element(),rC(t.rows()),t.rows())},cC=function(e){return sC(e,lC(e))},fC=function(e,t,n){return iC(e,t).bind((function(t){return iC(e,n).map((function(n){return aC(e,t,n)}))}))},dC={fromDom:uC,toDom:cC,subsection:fC},hC=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},pC=function(e){return U(e,(function(e){var t=Du(e);return t?[wt.fromDom(t)]:[]}))},gC=function(e){return hC(e).length>1},mC={getRanges:hC,getSelectedNodes:pC,hasMultipleRanges:gC},vC=function(e){return R(mC.getSelectedNodes(e),fi)},yC=function(e){return gl(e,"td[data-mce-selected],th[data-mce-selected]")},bC=function(e,t){var n=yC(t),r=vC(e);return n.length>0?n:r},_C=function(e){return bC(mC.getRanges(e.selection.getSel()),wt.fromDom(e.getBody()))},wC={getCellsFromRanges:vC,getCellsFromElement:yC,getCellsFromElementOrRanges:bC,getCellsFromEditor:_C},xC=function(e){return F(e,(function(e){return"ul"===Ct(e)||"ol"===Ct(e)}))},OC=function(e,t){return F(e,(function(e){return"li"===Ct(e)&&gy(e,t)})).fold(o([]),(function(t){return xC(e).map((function(e){return[wt.fromTag("li"),wt.fromTag(Ct(e))]})).getOr([])}))},SC=function(e,t){var n=$(t,(function(e,t){return rs(t,e),t}),e);return t.length>0?YS([n]):n},CC=function(e){return li(e)?yn(e).filter(si).fold(o([]),(function(t){return[e,t]})):si(e)?[e]:[]},kC=function(e,t){var n=wt.fromDom(t.commonAncestorContainer),r=ty.parentsAndSelf(n,e),i=R(r,(function(e){return ii(e)||ti(e)})),o=OC(r,t),a=i.concat(o.length?o:CC(n));return I(a,Nl)},EC=function(){return YS([])},AC=function(e,t){return SC(wt.fromDom(t.cloneContents()),kC(e,t))},TC=function(e,t){return bl(t,"table",s(cn,e))},DC=function(e,t){return TC(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=dC.fromDom(e);return dC.subsection(i,n,r).map((function(e){return YS([dC.toDom(e)])}))})).getOrThunk(EC)},MC=function(e,t){return t.length>0&&t[0].collapsed?EC():AC(e,t[0])},PC=function(e,t){var n=wC.getCellsFromElementOrRanges(t,e);return n.length>0?DC(e,n):MC(e,t)},IC={read:PC},jC=function(e){return m.from(e.selection.getRng()).map((function(t){var n=e.dom.add(e.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),r=Hl.trim(n.innerText);return e.dom.remove(n),r})).getOr("")},LC=function(e,t){var n,r=e.selection.getRng(),i=e.dom.create("body"),o=e.selection.getSel(),a=GS.processRanges(e,mC.getRanges(o));return n=t.contextual?IC.read(wt.fromDom(e.getBody()),a).dom():r.cloneContents(),n&&i.appendChild(n),e.selection.serializer.serialize(i,t)},NC=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,t=e.fire("BeforeGetContent",t),t.isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return jC(e);t.getInner=!0;var n=LC(e,t);return"tree"===t.format?n:(t.content=e.selection.isCollapsed()?"":n,e.fire("GetContent",t),t.content)},RC={getContent:NC},BC=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},$C=function(e,t,n){return null!==BC(e,t,n)},FC=function(e,t,n){return $C(e,t,(function(e){return e.nodeName===n}))},zC=function(e){return e&&"TABLE"===e.nodeName},qC=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},UC=function(e,t){return Yl(e)&&!1===$C(e,t,Vc)},HC=function(e,t,n){var r=new Ja(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(_e.isBr(t))return!0},VC=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},WC=function(e,t){while(t&&t!==e){if(_e.isContentEditableFalse(t))return!0;t=t.parentNode}return!1},KC=function(e,t,n,r,i){var o,a,s=e.getRoot(),l=e.schema.getNonEmptyElements(),u=e.getParent(i.parentNode,e.isBlock)||s;if(r&&_e.isBr(i)&&t&&e.isEmpty(u))return m.some(sc(i.parentNode,e.nodeIndex(i)));var c=new Ja(i,u);while(a=c[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||UC(a,s))return m.none();if(_e.isText(a)&&a.nodeValue.length>0)return!1===FC(a,s,"A")?m.some(sc(a,r?a.nodeValue.length:0)):m.none();if(e.isBlock(a)||l[a.nodeName.toLowerCase()])return m.none();o=a}return n&&o?m.some(sc(o,0)):m.none()},GC=function(e,t,n,r){var i,o,a,s,l,u,c=e.getRoot(),f=!1;if(i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"],u=_e.isElement(i)&&o===i.childNodes.length,s=e.schema.getNonEmptyElements(),l=n,Yl(i))return m.none();if(_e.isElement(i)&&o>i.childNodes.length-1&&(l=!1),_e.isDocument(i)&&(i=c,o=0),i===c){if(l&&(a=i.childNodes[o>0?o-1:0],a)){if(Yl(a))return m.none();if(s[a.nodeName]||zC(a))return m.none()}if(i.hasChildNodes()){if(o=Math.min(!l&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=_e.isText(i)&&u?i.data.length:0,!t&&i===c.lastChild&&zC(i))return m.none();if(WC(c,i)||Yl(i))return m.none();if(i.hasChildNodes()&&!1===zC(i)){a=i;var d=new Ja(i,c);do{if(_e.isContentEditableFalse(a)||Yl(a)){f=!1;break}if(_e.isText(a)&&a.nodeValue.length>0){o=l?0:a.nodeValue.length,i=a,f=!0;break}if(s[a.nodeName.toLowerCase()]&&!qC(a)){o=e.nodeIndex(a),i=a.parentNode,l||o++,f=!0;break}}while(a=l?d.next():d.prev())}}}return t&&(_e.isText(i)&&0===o&&KC(e,u,t,!0,i).each((function(e){i=e.container(),o=e.offset(),f=!0})),_e.isElement(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!_e.isBr(a)||VC(a,"A")||HC(e,a,!1)||HC(e,a,!0)||KC(e,u,t,!0,a).each((function(e){i=e.container(),o=e.offset(),f=!0})))),l&&!t&&_e.isText(i)&&o===i.nodeValue.length&&KC(e,u,t,!1,i).each((function(e){i=e.container(),o=e.offset(),f=!0})),f?m.some(sc(i,o)):m.none()},YC=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=sc.fromRangeStart(t);return GC(e,n,!0,r).each((function(e){n&&sc.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||GC(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),cy.isEq(t,r)?m.none():m.some(r)},XC={normalize:YC},ZC=function(e,t){e.insertData(0,t)},QC=function(e){return 0===e.dom().length?(ls(e),m.none()):m.some(e)},JC=function(e,t){var n=m.from(t.firstChild).map(wt.fromDom),r=m.from(t.lastChild).map(wt.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(_n).filter(Tt).bind(QC),o=r.bind(wn).filter(Tt).bind(QC);ju(i,n.filter(Tt),(function(e,t){ZC(t.dom(),e.dom().data),ls(e)})),ju(o,r.filter(Tt),(function(t,n){var r=n.dom().length;n.dom().appendData(t.dom().data),e.setEnd(n.dom(),r),ls(t)})),e.collapse(!1)},ek=function(e,t){return e=e||{format:"html"},e.set=!0,e.selection=!0,e.content=t,e},tk=function(e,t,n){if(n=ek(n,t),n.no_events||(n=e.fire("BeforeSetContent",n),!n.isDefaultPrevented())){var r=e.selection.getRng();JC(r,r.createContextualFragment(n.content)),e.selection.setRng(r),FS.scrollRangeIntoView(e,r),n.no_events||e.fire("SetContent",n)}else e.fire("SetContent",n)},nk={setContent:tk},rk=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return m.from(o).map(wt.fromDom).map((function(e){return r&&t.collapsed?e:Cn(e,i(e,a)).getOr(e)})).bind((function(e){return At(e)?m.some(e):yn(e)})).map((function(e){return e.dom()})).getOr(e)},ik=function(e,t,n){return rk(e,t,!0,n,(function(e,t){return Math.min(An(e),t)}))},ok=function(e,t,n){return rk(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},ak=function(e,t){var n=e;while(e&&_e.isText(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},sk=function(e,t){var n,r,i,o,a;return t?(r=t.startContainer,i=t.endContainer,o=t.startOffset,a=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?ak(r.nextSibling,!0):r.parentNode,i=0===a?ak(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n):e},lk=function(e,t,n,r){var i,o,a=[];if(o=e.getRoot(),n=e.getParent(n||ik(o,t,t.collapsed),e.isBlock),r=e.getParent(r||ok(o,t,t.collapsed),e.isBlock),n&&n!==o&&a.push(n),n&&r&&n!==r){i=n;var s=new Ja(n,o);while((i=s.next())&&i!==r)e.isBlock(i)&&a.push(i)}return r&&n!==r&&r!==o&&a.push(r),a},uk=function(e,t,n){return m.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(my(e,i,t,!0),my(e,i,t,!1)),i}))},ck=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=R(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function fk(e,t){var n,r;return{selectorChangedWithUnbind:function(i,o){return n||(n={},r={},t.on("NodeChange",(function(t){var i=t.element,o=e.getParents(i,null,e.getRoot()),a={};Fr.each(n,(function(t,n){Fr.each(o,(function(i){if(e.is(i,n))return r[n]||(Fr.each(t,(function(e){e(!0,{node:i,selector:n,parents:o})})),r[n]=t),a[n]=t,!1}))})),Fr.each(r,(function(e,t){a[t]||(delete r[t],Fr.each(e,(function(e){e(!1,{node:i,selector:t,parents:o})})))}))}))),n[i]||(n[i]=[]),n[i].push(o),{unbind:function(){ck(n,i,o),ck(r,i,o)}}}}}var dk,hk=function(e){return!!e.select},pk=function(e){return!(!e||!e.ownerDocument)&&pn(wt.fromDom(e.ownerDocument),wt.fromDom(e))},gk=function(e){return!!e&&(!!hk(e)||pk(e.startContainer)&&pk(e.endContainer))},mk=function(e,t,n,r){var i,o,a,s,l=fk(e,r).selectorChangedWithUnbind,u=function(t,n){var i=e.createRng();t?(i.setStart(t,n),i.setEnd(t,n),w(i),y(!1)):(my(e,i,r.getBody(),!0),w(i))},c=function(e){return RC.getContent(r,e)},f=function(e,t){return nk.setContent(r,e,t)},d=function(e){return ik(r.getBody(),_(),e)},h=function(e){return ok(r.getBody(),_(),e)},p=function(e,t){return i.getBookmark(e,t)},g=function(e){return i.moveToBookmark(e)},m=function(t,n){return uk(e,t,n).each(w),t},v=function(){var e=_(),t=b();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},y=function(e){var t=_();t.collapse(!!e),w(t)},b=function(){return t.getSelection?t.getSelection():t.document.selection},_=function(){var n,i,o,l,u=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}};if(!t)return null;if(l=t.document,"undefined"===typeof l||null===l)return null;if(void 0!==r.bookmark&&!1===Qg.hasFocus(r)){var c=bg.getRng(r);if(c.isSome())return c.map((function(e){return GS.processRanges(r,[e])[0]})).getOr(l.createRange())}try{(n=b())&&!_e.isRestrictedNode(n.anchorNode)&&(i=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():l.createRange())}catch(f){}return i=GS.processRanges(r,[i])[0],i||(i=l.createRange?l.createRange():l.body.createTextRange()),i.setStart&&9===i.startContainer.nodeType&&i.collapsed&&(o=e.getRoot(),i.setStart(o,0),i.setEnd(o,0)),a&&s&&(0===u(i.START_TO_START,i,a)&&0===u(i.END_TO_END,i,a)?i=s:(a=null,s=null)),i},w=function(e,t){var n,i,o;if(gk(e)){var l=hk(e)?e:null;if(l){s=null;try{l.select()}catch(u){}}else{if(n=b(),o=r.fire("SetSelectionRange",{range:e,forward:t}),e=o.range,n){s=e;try{n.removeAllRanges(),n.addRange(e)}catch(u){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),a=n.rangeCount>0?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||mr.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(i=e.startContainer.childNodes[e.startOffset],i&&"IMG"===i.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(i,0,i,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},x=function(t){return f(e.getOuterHTML(t)),t},O=function(){return sk(r.getBody(),_())},S=function(t,n){return lk(e,_(),t,n)},C=function(){var t,n,r=b();return!(r&&r.anchorNode&&r.focusNode)||(t=e.createRng(),t.setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),n=e.createRng(),n.setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0)},k=function(){var t=_(),n=b();if(!mC.hasMultipleRanges(n)&&vy(r)){var i=XC.normalize(e,t);return i.each((function(e){w(e,C())})),i.getOr(t)}return t},E=function(e,t){return l(e,t),I},A=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},T=function(e,t){return FS.scrollElementIntoView(r,e,t)},D=function(e,t){return w(WS.fromPoint(e,t,r.getDoc()))},M=function(){var e=_();return e.collapsed?uc.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},P=function(){t=a=s=null,o.destroy()},I={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:y,setCursorLocation:u,getContent:c,setContent:f,getBookmark:p,moveToBookmark:g,select:m,isCollapsed:v,isForward:C,setNode:x,getNode:O,getSel:b,setRng:w,getRng:_,getStart:d,getEnd:h,getSelectedBlocks:S,normalize:k,selectorChanged:E,selectorChangedWithUnbind:l,getScrollContainer:A,scrollIntoView:T,placeCaretAt:D,getBoundingClientRect:M,destroy:P};return i=aS(I),o=cS(I,r),I.bookmarkManager=i,I.controlSelection=o,I},vk=_e.isText,yk=function(e){return vk(e)&&e.data[0]===Hl.ZWSP},bk=function(e){return vk(e)&&e.data[e.data.length-1]===Hl.ZWSP},_k=function(e){return e.ownerDocument.createTextNode(Hl.ZWSP)},wk=function(e){if(vk(e.previousSibling))return bk(e.previousSibling)||e.previousSibling.appendData(Hl.ZWSP),e.previousSibling;if(vk(e))return yk(e)||e.insertData(0,Hl.ZWSP),e;var t=_k(e);return e.parentNode.insertBefore(t,e),t},xk=function(e){if(vk(e.nextSibling))return yk(e.nextSibling)||e.nextSibling.insertData(0,Hl.ZWSP),e.nextSibling;if(vk(e))return bk(e)||e.appendData(Hl.ZWSP),e;var t=_k(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},Ok=function(e,t){return e?wk(t):xk(t)},Sk=s(Ok,!0),Ck=s(Ok,!1),kk=function(e,t){return _e.isText(e.container())?Ok(t,e.container()):Ok(t,e.getNode())},Ek=function(e,t){var n=t.get();return n&&e.container()===n&&Gl(n)},Ak=function(e,t){return t.fold((function(t){sf.remove(e.get());var n=Sk(t);return e.set(n),m.some(uc(n,n.length-1))}),(function(t){return hd.firstPositionIn(t).map((function(t){if(Ek(t,e))return uc(e.get(),1);sf.remove(e.get());var n=kk(t,!0);return e.set(n),uc(n,1)}))}),(function(t){return hd.lastPositionIn(t).map((function(t){if(Ek(t,e))return uc(e.get(),e.get().length-1);sf.remove(e.get());var n=kk(t,!1);return e.set(n),uc(n,n.length-1)}))}),(function(t){sf.remove(e.get());var n=Ck(t);return e.set(n),m.some(uc(n,1))}))},Tk={renderCaret:Ak},Dk=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Mk=function(e){return Dk.test(e)},Pk=function(e,t){return an(wt.fromDom(t),Sp.getInlineBoundarySelector(e))},Ik=function(e){return"rtl"===Ms.DOM.getStyle(e,"direction",!0)||Mk(e.textContent)},jk=function(e,t,n){return R(Ms.DOM.getParents(n.container(),"*",t),e)},Lk=function(e,t,n){var r=jk(e,t,n);return m.from(r[r.length-1])},Nk=function(e,t,n){var r=kf(t,e),i=kf(n,e);return r&&r===i},Rk=function(e){return Ql(e)||Jl(e)},Bk=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Gl(n)?_e.isText(n.nextSibling)?uc(n.nextSibling,0):uc.after(n):Ql(t)?uc(n,r+1):t:Gl(n)?_e.isText(n.previousSibling)?uc(n.previousSibling,n.previousSibling.data.length):uc.before(n):Jl(t)?uc(n,r-1):t},$k=s(Bk,!0),Fk=s(Bk,!1),zk={isInlineTarget:Pk,findRootInline:Lk,isRtl:Ik,isAtZwsp:Rk,normalizePosition:Bk,normalizeForwards:$k,normalizeBackwards:Fk,hasSameParentBlock:Nk},qk=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return m.none()},Uk={evaluateUntil:qk},Hk=$p.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Vk=function(e,t){var n=kf(t,e);return n||e},Wk=function(e,t,n){var r=zk.normalizeForwards(n),i=Vk(t,r.container());return zk.findRootInline(e,i,r).fold((function(){return hd.nextPosition(i,r).bind(s(zk.findRootInline,e,i)).map((function(e){return Hk.before(e)}))}),m.none)},Kk=function(e,t){return null===Wc(e,t)},Gk=function(e,t,n){return zk.findRootInline(e,t,n).filter(s(Kk,t))},Yk=function(e,t,n){var r=zk.normalizeBackwards(n);return Gk(e,t,r).bind((function(e){var t=hd.prevPosition(e,r);return t.isNone()?m.some(Hk.start(e)):m.none()}))},Xk=function(e,t,n){var r=zk.normalizeForwards(n);return Gk(e,t,r).bind((function(e){var t=hd.nextPosition(e,r);return t.isNone()?m.some(Hk.end(e)):m.none()}))},Zk=function(e,t,n){var r=zk.normalizeBackwards(n),i=Vk(t,r.container());return zk.findRootInline(e,i,r).fold((function(){return hd.prevPosition(i,r).bind(s(zk.findRootInline,e,i)).map((function(e){return Hk.after(e)}))}),m.none)},Qk=function(e){return!1===zk.isRtl(eE(e))},Jk=function(e,t,n){var r=Uk.evaluateUntil([Wk,Yk,Xk,Zk],[e,t,n]);return r.filter(Qk)},eE=function(e){return e.fold(a,a,a,a)},tE=function(e){return e.fold(o("before"),o("start"),o("end"),o("after"))},nE=function(e){return e.fold(Hk.before,Hk.before,Hk.after,Hk.after)},rE=function(e){return e.fold(Hk.start,Hk.start,Hk.end,Hk.end)},iE=function(e,t){return tE(e)===tE(t)&&eE(e)===eE(t)},oE=function(e,t,n,r,i,o){return ju(zk.findRootInline(t,n,r),zk.findRootInline(t,n,i),(function(t,r){return t!==r&&zk.hasSameParentBlock(n,t,r)?Hk.after(e?t:r):o})).getOr(o)},aE=function(e,t){return e.fold(o(!0),(function(e){return!iE(e,t)}))},sE=function(e,t,n,r,i){var o=zk.normalizePosition(e,i),a=hd.fromPosition(e,n,o).map(s(zk.normalizePosition,e)),l=a.fold((function(){return r.map(nE)}),(function(i){return Jk(t,n,i).map(s(oE,e,t,n,o,i)).filter(s(aE,r))}));return l.filter(Qk)},lE=function(e,t){return e?t.fold(i(m.some,Hk.start),m.none,i(m.some,Hk.after),m.none):t.fold(m.none,i(m.some,Hk.before),m.none,i(m.some,Hk.end))},uE=function(e,t,n,r){var i=zk.normalizePosition(e,r),o=Jk(t,n,i);return Jk(t,n,i).bind(s(lE,e)).orThunk((function(){return sE(e,t,n,o,r)}))},cE={readLocation:Jk,findLocation:uE,prevLocation:s(uE,!1),nextLocation:s(uE,!0),getElement:eE,outside:nE,inside:rE},fE=function(e){return S(e.selection.getSel().modify)},dE=function(e,t,n){var r=e?1:-1;return t.setRng(uc(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},hE=function(e,t){var n=t.selection.getRng(),r=e?uc.fromRangeEnd(n):uc.fromRangeStart(n);return!!fE(t)&&(e&&Ql(r)?dE(!0,t.selection,r):!(e||!Jl(r))&&dE(!1,t.selection,r))},pE={hasSelectionModifyApi:fE,moveByWord:hE},gE=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},mE=function(e){return!1!==e.settings.inline_boundaries},vE=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},yE=function(e,t,n){return Tk.renderCaret(t,n).map((function(t){return gE(e,t),n}))},bE=function(e,t,n){var r=e.getBody(),i=uc.fromRangeStart(e.selection.getRng()),o=s(zk.isInlineTarget,e),a=cE.findLocation(n,o,r,i);return a.bind((function(n){return yE(e,t,n)}))},_E=function(e,t,n){var r=R(t.select('*[data-mce-selected="inline-boundary"]'),e),i=R(n,e);j(W(r,i),s(vE,!1)),j(W(i,r),s(vE,!0))},wE=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=uc.fromRangeStart(e.selection.getRng());uc.isTextPosition(n)&&!1===zk.isAtZwsp(n)&&(gE(e,sf.removeAndReposition(t.get(),n)),t.set(null))}},xE=function(e,t,n,r){if(t.selection.isCollapsed()){var i=R(r,e);j(i,(function(r){var i=uc.fromRangeStart(t.selection.getRng());cE.readLocation(e,t.getBody(),i).bind((function(e){return yE(t,n,e)}))}))}},OE=function(e,t,n){return function(){return!!mE(e)&&bE(e,t,n).isSome()}},SE=function(e,t,n){return function(){return!!mE(t)&&pE.moveByWord(e,t)}},CE=function(e){var t=we(null),n=s(zk.isInlineTarget,e);return e.on("NodeChange",(function(r){mE(e)&&(_E(n,e.dom,r.parents),wE(e,t),xE(n,e,t,r.parents))})),t},kE=s(SE,!0),EE=s(SE,!1),AE={move:OE,moveNextWord:kE,movePrevWord:EE,setupSelectedState:CE,setCaretPosition:gE};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(dk||(dk={}));var TE,DE,ME=function(e,t){return e===lc.Backwards?t.reverse():t},PE=function(e,t,n){return e===lc.Forwards?t.next(n):t.prev(n)},IE=function(e,t,n,r){return _e.isBr(r.getNode(t===lc.Forwards))?dk.Br:!1===Ef(n,r)?dk.Block:dk.Wrap},jE=function(e,t,n,r){var i,o=Jf(n),a=r,s=[];while(a){if(i=PE(t,o,a),!i)break;if(_e.isBr(i.getNode(!1)))return t===lc.Forwards?{positions:ME(t,s).concat([i]),breakType:dk.Br,breakAt:m.some(i)}:{positions:ME(t,s),breakType:dk.Br,breakAt:m.some(i)};if(i.isVisible()){if(e(a,i)){var l=IE(n,t,a,i);return{positions:ME(t,s),breakType:l,breakAt:m.some(i)}}s.push(i),a=i}else a=i}return{positions:ME(t,s),breakType:dk.Eol,breakAt:m.none()}},LE=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===lc.Backwards?i.concat(r):[r].concat(i)})).getOr([])},NE=function(e,t){return $(e,(function(e,n){return e.fold((function(){return m.some(n)}),(function(r){return ju(Y(r.getClientRects()),Y(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),m.none())},RE=function(e,t){return Y(t.getClientRects()).bind((function(t){return NE(e,t.left)}))},BE=s(jE,sc.isAbove,-1),$E=s(jE,sc.isBelow,1),FE=function(e,t){return BE(e,t).breakAt.isNone()},zE=function(e,t){return $E(e,t).breakAt.isNone()},qE=s(LE,-1,BE),UE=s(LE,1,$E),HE=function(e){return hd.firstPositionIn(e).map((function(t){return[t].concat($E(e,t).positions)})).getOr([])},VE=function(e){return hd.lastPositionIn(e).map((function(t){return BE(e,t).positions.concat(t)})).getOr([])},WE=_e.isContentEditableFalse,KE=Du,GE=function(e,t,n,r){var i=e===lc.Forwards,o=i?Ly:Ny;if(!r.collapsed){var a=KE(r);if(WE(a))return $b(e,t,a,e===lc.Backwards,!0)}var s=au(r),l=Nf(e,t.getBody(),r);if(o(l))return zb(t,l.getNode(!i));var u=zk.normalizePosition(i,n(l));if(!u)return s?r:null;if(o(u))return $b(e,t,u.getNode(!i),i,!0);var c=n(u);return c&&o(c)&&Ff(u,c)?$b(e,t,c.getNode(!i),i,!0):s?Ub(t,u.toRange(),!0):null},YE=function(e,t,n,r){var i,o,a,s,l,u,c,f,d;if(d=KE(r),i=Nf(e,t.getBody(),r),o=n(t.getBody(),Wy(1),i),a=R(o,Ky(1)),l=Er.last(i.getClientRects()),(Ly(i)||Iy(i))&&(d=i.getNode()),(Ny(i)||jy(i))&&(d=i.getNode(!0)),!l)return null;if(u=l.left,s=Jy(a,u),s&&WE(s.node))return c=Math.abs(u-s.left),f=Math.abs(u-s.right),$b(e,t,s.node,c<f,!0);if(d){var h=Vy(e,t.getBody(),Wy(1),d);if(s=Jy(R(h,Ky(1)),u),s)return Ub(t,s.position.toRange(),!0);if(s=Er.last(R(h,Ky(0))),s)return Ub(t,s.position.toRange(),!0)}},XE=function(e){var t=e.dom.create(Sp.getForcedRootBlock(e));return(!mr.ie||mr.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},ZE=function(e,t,n){var r,i,o,a=Jf(e.getBody()),l=s($f,a.next),u=s($f,a.prev);if(n.collapsed&&e.settings.forced_root_block){if(r=e.dom.getParent(n.startContainer,"PRE"),!r)return;i=1===t?l(uc.fromRangeStart(n)):u(uc.fromRangeStart(n)),i||(o=XE(e),1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}},QE=function(e,t){var n,r=Jf(e.getBody()),i=s($f,r.next),o=s($f,r.prev),a=t?lc.Forwards:lc.Backwards,l=t?i:o,u=e.selection.getRng();return n=GE(a,e,l,u),n||(n=ZE(e,a,u),n||null)},JE=function(e,t){var n,r=t?1:-1,i=t?Hy:Uy,o=e.selection.getRng();return n=YE(r,e,i,o),n||(n=ZE(e,r,o),n||null)},eA=function(e,t){return function(){var n=QE(e,t);return!!n&&(e.selection.setRng(n),!0)}},tA=function(e,t){return function(){var n=JE(e,t);return!!n&&(e.selection.setRng(n),!0)}},nA=function(e){return function(t){return e?Ny(t):Ly(t)}},rA=function(e,t){return function(){var n=t?uc.fromRangeEnd(e.selection.getRng()):uc.fromRangeStart(e.selection.getRng()),r=t?$E(e.getBody(),n):BE(e.getBody(),n),i=t?X(r.positions):Y(r.positions);return i.filter(nA(t)).fold(o(!1),(function(t){return e.selection.setRng(t.toRange()),!0}))}},iA=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},oA=function(e,t){return U(t,(function(t){var n=iA(Ou(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},aA=function(e,t,n){return $(e,(function(e,r){return e.fold((function(){return m.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return m.some(o<i?r:e)}))}),m.none())},sA=function(e,t,n,r,i){var o=gl(wt.fromDom(n),"td,th,caption").map((function(e){return e.dom()})),a=R(oA(e,o),(function(e){return t(e,i)}));return aA(a,r,i).map((function(e){return e.cell}))},lA=function(e){return e.bottom},uA=function(e){return e.top},cA=function(e,t){return e.y<t},fA=function(e,t){return e.y>t},dA=s(sA,lA,cA),hA=s(sA,uA,fA),pA=function(e,t){return Y(t.getClientRects()).bind((function(t){return dA(e,t.left,t.top)})).bind((function(e){return RE(VE(e),t)}))},gA=function(e,t){return X(t.getClientRects()).bind((function(t){return hA(e,t.left,t.top)})).bind((function(e){return RE(HE(e),t)}))},mA=function(e,t){e.selection.setRng(t),FS.scrollRangeIntoView(e,t)},vA=function(e,t,n){return n.breakAt.map((function(n){return e(t,n).breakAt.isSome()})).getOr(!1)},yA=function(e){return e.breakType===dk.Wrap&&0===e.positions.length},bA=function(e){return e.breakType===dk.Br&&1===e.positions.length},_A=function(e,t,n){var r=e(t,n);return yA(r)||!_e.isBr(n.getNode())&&bA(r)?!vA(e,t,r):r.breakAt.isNone()},wA=s(_A,BE),xA=s(_A,$E),OA=function(e,t,n){var r=uc.fromRangeStart(t);return hd.positionIn(!e,n).map((function(e){return e.isEqual(r)})).getOr(!1)},SA=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;if(pf()&&OA(t,i,n)){var a=$b(o,e,n,!t,!0);return mA(e,a),!0}return!1},CA=function(e,t,n){return pA(t,n).orThunk((function(){return Y(n.getClientRects()).bind((function(n){return NE(qE(e,uc.before(t)),n.left)}))})).getOr(uc.before(t))},kA=function(e,t,n){return gA(t,n).orThunk((function(){return Y(n.getClientRects()).bind((function(n){return NE(UE(e,uc.after(t)),n.left)}))})).getOr(uc.after(t))},EA=function(e,t){var n=t.getNode(e);return _e.isElement(n)&&"TABLE"===n.nodeName?m.some(n):m.none()},AA=function(e,t,n,r){var i=Sp.getForcedRootBlock(t);i?t.undoManager.transact((function(){var r=wt.fromTag(i);qt(r,Sp.getForcedRootBlockAttrs(t)),rs(r,wt.fromTag("br")),e?ts(wt.fromDom(n),r):es(wt.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom(),0),o.setEnd(r.dom(),0),mA(t,o)})):mA(t,r.toRange())},TA=function(e,t,n){var r=EA(!!t,n),i=!1===t;r.fold((function(){return mA(e,n.toRange())}),(function(r){return hd.positionIn(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return mA(e,n.toRange())}),(function(i){return AA(t,e,r,n)}))}))},DA=function(e,t,n,r){var i=e.selection.getRng(),o=uc.fromRangeStart(i),a=e.getBody();if(!t&&wA(r,o)){var s=CA(a,n,o);return TA(e,t,s),!0}if(t&&xA(r,o)){s=kA(a,n,o);return TA(e,t,s),!0}return!1},MA=function(e,t){return function(){return m.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(n){return m.from(e.dom.getParent(n,"table")).map((function(n){return SA(e,t,n)}))})).getOr(!1)}},PA=function(e,t){return function(){return m.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(n){return m.from(e.dom.getParent(n,"table")).map((function(r){return DA(e,t,r,n)}))})).getOr(!1)}},IA=function(e){return M(["figcaption"],Ct(e))},jA=function(e){var t=n.document.createRange();return t.setStartBefore(e.dom()),t.setEndBefore(e.dom()),t},LA=function(e,t,n){n?rs(e,t):ns(e,t)},NA=function(e,t){var n=wt.fromTag("br");return LA(e,n,t),jA(n)},RA=function(e,t,n,r){var i=wt.fromTag(n),o=wt.fromTag("br");return qt(i,r),rs(i,o),LA(e,i,t),jA(o)},BA=function(e,t,n,r){return""===t?NA(e,r):RA(e,r,t,n)},$A=function(e,t){var n=s(cn,t);return yl(wt.fromDom(e.container()),ni,n).filter(IA)},FA=function(e,t,n){return t?zE(e.dom(),n):FE(e.dom(),n)},zA=function(e,t){var n=wt.fromDom(e.getBody()),r=uc.fromRangeStart(e.selection.getRng()),i=Sp.getForcedRootBlock(e),o=Sp.getForcedRootBlockAttrs(e);return $A(r,n).exists((function(){if(FA(n,t,r)){var a=BA(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},qA=function(e,t){return function(){return!!e.selection.isCollapsed()&&zA(e,t)}},UA=function(e){return I(e,(function(e){return km({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:r},e)}))},HA=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},VA=function(e,t){return U(UA(e),(function(e){return HA(e,t)?[e]:[]}))},WA=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},KA=function(e,t){return F(VA(e,t),(function(e){return e.action()}))},GA={match:VA,action:WA,execute:KA},YA=function(e,t,n){var r=gt().os;GA.execute([{keyCode:by.RIGHT,action:eA(e,!0)},{keyCode:by.LEFT,action:eA(e,!1)},{keyCode:by.UP,action:tA(e,!1)},{keyCode:by.DOWN,action:tA(e,!0)},{keyCode:by.RIGHT,action:MA(e,!0)},{keyCode:by.LEFT,action:MA(e,!1)},{keyCode:by.UP,action:PA(e,!1)},{keyCode:by.DOWN,action:PA(e,!0)},{keyCode:by.RIGHT,action:AE.move(e,t,!0)},{keyCode:by.LEFT,action:AE.move(e,t,!1)},{keyCode:by.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:AE.moveNextWord(e,t)},{keyCode:by.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:AE.movePrevWord(e,t)},{keyCode:by.UP,action:qA(e,!1)},{keyCode:by.DOWN,action:qA(e,!0)}],n).each((function(e){n.preventDefault()}))},XA=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&YA(e,t,n)}))},ZA={setup:XA},QA=function(e){return function(t){return cn(e,wt.fromDom(t.dom().parentNode))}},JA=function(e,t){return pn(e,t)?yl(t,(function(e){return ai(e)||li(e)}),QA(e)):m.none()},eT=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},tT=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),eT(e))},nT=function(e,t,n){return ju(hd.firstPositionIn(n),hd.lastPositionIn(n),(function(r,i){var o=zk.normalizePosition(!0,r),a=zk.normalizePosition(!1,i),s=zk.normalizePosition(!1,t);return e?hd.nextPosition(n,s).map((function(e){return e.isEqual(a)&&t.isEqual(o)})).getOr(!1):hd.prevPosition(n,s).map((function(e){return e.isEqual(o)&&t.isEqual(a)})).getOr(!1)})).getOr(!0)},rT={getParentBlock:JA,paddEmptyBody:tT,willDeleteLastPositionInElement:nT},iT=function(e,t){return{block:o(e),position:o(t)}},oT=function(e,t){return{from:o(e),to:o(t)}},aT=function(e,t){var n=wt.fromDom(e),r=wt.fromDom(t.container());return rT.getParentBlock(n,r).map((function(e){return iT(e,t)}))},sT=function(e){return!1===cn(e.from().block(),e.to().block())},lT=function(e){return yn(e.from().block()).bind((function(t){return yn(e.to().block()).filter((function(e){return cn(t,e)}))})).isSome()},uT=function(e){return!1===_e.isContentEditableFalse(e.from().block().dom())&&!1===_e.isContentEditableFalse(e.to().block().dom())},cT=function(e,t,n){return _e.isBr(n.position().getNode())&&!1===ww.isEmpty(n.block())?hd.positionIn(!1,n.block().dom()).bind((function(r){return r.isEqual(n.position())?hd.fromPosition(t,e,r).bind((function(t){return aT(e,t)})):m.some(n)})).getOr(n):n},fT=function(e,t,n){var r=aT(e,uc.fromRangeStart(n)),i=r.bind((function(n){return hd.fromPosition(t,e,n.position()).bind((function(n){return aT(e,n).map((function(n){return cT(e,t,n)}))}))}));return ju(r,i,oT).filter((function(e){return sT(e)&&lT(e)&&uT(e)}))},dT=function(e,t,n){return n.collapsed?fT(e,t,n):m.none()},hT={read:dT},pT=function(e){var t=Sn(e);return z(t,ni).fold((function(){return t}),(function(e){return t.slice(0,e)}))},gT=function(e){var t=pT(e);return j(t,ls),t},mT=function(e,t){var n=ty.parentsAndSelf(t,e);return F(n.reverse(),ww.isEmpty).each(ls)},vT=function(e){return 0===R(xn(e),(function(e){return!ww.isEmpty(e)})).length},yT=function(e,t,n,r){if(ww.isEmpty(n))return W_.fillWithPaddingBr(n),hd.firstPositionIn(n.dom());vT(r)&&ww.isEmpty(t)&&es(r,wt.fromTag("br"));var i=hd.prevPosition(n.dom(),uc.before(r.dom()));return j(gT(t),(function(e){es(r,e)})),mT(e,t),i},bT=function(e,t,n){if(ww.isEmpty(n))return ls(n),ww.isEmpty(t)&&W_.fillWithPaddingBr(t),hd.firstPositionIn(t.dom());var r=hd.lastPositionIn(n.dom());return j(gT(t),(function(e){rs(n,e)})),mT(e,t),r},_T=function(e,t){var n=ty.parentsAndSelf(t,e);return m.from(n[n.length-1])},wT=function(e,t){return pn(t,e)?_T(t,e):m.none()},xT=function(e,t){hd.positionIn(e,t.dom()).map((function(e){return e.getNode()})).map(wt.fromDom).filter(oi).each(ls)},OT=function(e,t,n){return xT(!0,t),xT(!1,n),wT(t,n).fold(s(bT,e,t,n),s(yT,e,t,n))},ST=function(e,t,n,r){return t?OT(e,r,n):OT(e,n,r)},CT={mergeBlocks:ST},kT=function(e,t){var n=wt.fromDom(e.getBody()),r=hT.read(n.dom(),t,e.selection.getRng()).bind((function(e){return CT.mergeBlocks(n,t,e.from().block(),e.to().block())}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},ET={backspaceDelete:kT},AT=function(e,t){var n=t.getRng();return ju(rT.getParentBlock(e,wt.fromDom(n.startContainer)),rT.getParentBlock(e,wt.fromDom(n.endContainer)),(function(r,i){return!1===cn(r,i)&&(n.deleteContents(),CT.mergeBlocks(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},TT=function(e,t){var n=wt.fromDom(t),r=s(cn,e);return vl(n,fi,r).isSome()},DT=function(e,t){return TT(e,t.startContainer)||TT(e,t.endContainer)},MT=function(e,t){var n=hd.prevPosition(e.dom(),uc.fromRangeStart(t)).isNone(),r=hd.nextPosition(e.dom(),uc.fromRangeEnd(t)).isNone();return!DT(e,t)&&n&&r},PT=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},IT=function(e){var t=wt.fromDom(e.getBody()),n=e.selection.getRng();return MT(t,n)?PT(e):AT(t,e.selection)},jT=function(e,t){return!e.selection.isCollapsed()&&IT(e)},LT={backspaceDelete:jT},NT=function(e){return Rf(e).exists(oi)},RT=function(e,t,n){var r=R(ty.parentsAndSelf(wt.fromDom(n.container()),t),ni),i=Y(r).getOr(t);return hd.fromPosition(e,i.dom(),n).filter(NT)},BT=function(e,t){return Rf(t).exists(oi)||RT(!0,e,t).isSome()},$T=function(e,t){return Bf(t).exists(oi)||RT(!1,e,t).isSome()},FT=s(RT,!1),zT=s(RT,!0),qT=function(e){return fi(wt.fromDom(e))||li(wt.fromDom(e))},UT=$p.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),HT=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return _e.isElement(n)&&n.getAttribute("data-mce-caret")===r},VT=function(e,t,n,r){var i=function(t){return ii(wt.fromDom(t))&&!Ef(n,r,e)};return Lf(!t,n).fold((function(){return Lf(t,r).fold(o(!1),i)}),i)},WT=function(e,t,n,r){var i=r.getNode(!1===t);return rT.getParentBlock(wt.fromDom(e),wt.fromDom(n.getNode())).map((function(e){return ww.isEmpty(e)?UT.remove(e.dom()):UT.moveToElement(i)})).orThunk((function(){return m.some(UT.moveToElement(i))}))},KT=function(e,t,n){return hd.fromPosition(t,e,n).bind((function(r){return qT(r.getNode())||VT(e,t,n,r)?m.none():t&&_e.isContentEditableFalse(r.getNode())||!1===t&&_e.isContentEditableFalse(r.getNode(!0))?WT(e,t,n,r):t&&Ny(n)||!1===t&&Ly(n)?m.some(UT.moveToPosition(r)):m.none()}))},GT=function(e,t){return e&&_e.isContentEditableFalse(t.nextSibling)?m.some(UT.moveToElement(t.nextSibling)):!1===e&&_e.isContentEditableFalse(t.previousSibling)?m.some(UT.moveToElement(t.previousSibling)):m.none()},YT=function(e,t,n){return n.fold((function(e){return m.some(UT.remove(e))}),(function(e){return m.some(UT.moveToElement(e))}),(function(n){return Ef(t,n,e)?m.none():m.some(UT.moveToPosition(n))}))},XT=function(e,t,n){return HT(t,n)?GT(t,n.getNode(!1===t)).fold((function(){return KT(e,t,n)}),m.some):KT(e,t,n).bind((function(t){return YT(e,n,t)}))},ZT=function(e,t,n){var r=jf(t?1:-1,e,n),i=uc.fromRangeStart(r),o=wt.fromDom(e);return!1===t&&Ny(i)?m.some(UT.remove(i.getNode(!0))):t&&Ly(i)?m.some(UT.remove(i.getNode())):!1===t&&Ly(i)&&$T(o,i)?FT(o,i).map((function(e){return UT.remove(e.getNode())})):t&&Ny(i)&&BT(o,i)?zT(o,i).map((function(e){return UT.remove(e.getNode())})):XT(e,t,i)},QT=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),zw.deleteElement(e,t,wt.fromDom(n)),!0}},JT=function(e,t){return function(n){var r=t?uc.before(n):uc.after(n);return e.selection.setRng(r.toRange()),!0}},eD=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},tD=function(e,t){return m.from(oD(e.getBody(),t))},nD=function(e,t){var n=e.selection.getNode();return tD(e,n).filter(_e.isContentEditableFalse).fold((function(){var n=ZT(e.getBody(),t,e.selection.getRng()).map((function(n){return n.fold(QT(e,t),JT(e,t),eD(e))}));return n.getOr(!1)}),(function(){return!0}))},rD=function(e){j(gl(e,".mce-offscreen-selection"),ls)},iD=function(e,t){var n=e.selection.getNode();if(_e.isContentEditableFalse(n)){var r=tD(e,n.parentNode).filter(_e.isContentEditableFalse);return r.fold((function(){return rD(wt.fromDom(e.getBody())),zw.deleteElement(e,t,wt.fromDom(e.selection.getNode())),rT.paddEmptyBody(e),!0}),(function(){return!0}))}return!1},oD=function(e,t){while(t&&t!==e){if(_e.isContentEditableTrue(t)||_e.isContentEditableFalse(t))return t;t=t.parentNode}return null},aD=function(e){var t,n=oD(e.getBody(),e.selection.getNode());return _e.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(uc.before(t).toRange())),!0},sD=function(e,t){return e.selection.isCollapsed()?nD(e,t):iD(e,t)},lD={backspaceDelete:sD,paddEmptyElement:aD},uD=function(e,t){_e.isText(t)&&0===t.data.length&&e.remove(t)},cD=function(e,t,n,r,i,o){var a=$b(r,e,o.getNode(!i),i,!0);if(t.collapsed){var s=t.cloneRange();i?s.setEnd(a.startContainer,a.startOffset):s.setStart(a.endContainer,a.endOffset),s.deleteContents()}else t.deleteContents();return e.selection.setRng(a),uD(e.dom,n),!0},fD=function(e,t){var n=e.selection.getRng();if(!_e.isText(n.commonAncestorContainer))return!1;var r=t?lc.Forwards:lc.Backwards,i=Jf(e.getBody()),o=s($f,i.next),a=s($f,i.prev),l=t?o:a,u=t?Ly:Ny,c=Nf(r,e.getBody(),n),f=zk.normalizePosition(t,l(c));if(!f)return!1;if(u(f))return cD(e,n,c.getNode(),r,t,f);var d=l(f);return!!(d&&u(d)&&Ff(f,d))&&cD(e,n,c.getNode(),r,t,d)},dD=function(e,t){return fD(e,t)},hD={backspaceDelete:dD},pD=function(e){return!1!==e.settings.inline_boundaries},gD=function(e,t){var r=n.document.createRange();return r.setStart(e.container(),e.offset()),r.setEnd(t.container(),t.offset()),r},mD=function(e){return ju(hd.firstPositionIn(e),hd.lastPositionIn(e),(function(t,n){var r=zk.normalizePosition(!0,t),i=zk.normalizePosition(!1,n);return hd.nextPosition(e,r).map((function(e){return e.isEqual(i)})).getOr(!0)})).getOr(!0)},vD=function(e,t){return function(n){return Tk.renderCaret(t,n).map((function(t){return AE.setCaretPosition(e,t),!0})).getOr(!1)}},yD=function(e,t,n,r){var i=e.getBody(),o=s(zk.isInlineTarget,e);e.undoManager.ignore((function(){e.selection.setRng(gD(n,r)),e.execCommand("Delete"),cE.readLocation(o,i,uc.fromRangeStart(e.selection.getRng())).map(cE.inside).map(vD(e,t))})),e.nodeChanged()},bD=function(e,t){var n=kf(t,e);return n||e},_D=function(e,t,n,r){var i=bD(e.getBody(),r.container()),a=s(zk.isInlineTarget,e),l=cE.readLocation(a,i,r);return l.bind((function(e){return n?e.fold(o(m.some(cE.inside(e))),m.none,o(m.some(cE.outside(e))),m.none):e.fold(m.none,o(m.some(cE.outside(e))),m.none,o(m.some(cE.inside(e))))})).map(vD(e,t)).getOrThunk((function(){var o=hd.navigate(n,i,r),s=o.bind((function(e){return cE.readLocation(a,i,e)}));return l.isSome()&&s.isSome()?zk.findRootInline(a,i,r).map((function(t){return!!mD(t)&&(zw.deleteElement(e,n,wt.fromDom(t)),!0)})).getOr(!1):s.bind((function(i){return o.map((function(i){return n?yD(e,t,r,i):yD(e,t,i,r),!0}))})).getOr(!1)}))},wD=function(e,t,n){if(e.selection.isCollapsed()&&pD(e)){var r=uc.fromRangeStart(e.selection.getRng());return _D(e,t,n,r)}return!1},xD={backspaceDelete:wD},OD=function(e,t){var n=ty.parentsAndSelf(t,e);return z(n,ni).fold(o(n),(function(e){return n.slice(0,e)}))},SD=function(e){return 1===Sn(e).length},CD=function(e,t,n,r){var i=s(ax,t),o=I(R(r,i),(function(e){return e.dom()}));if(0===o.length)zw.deleteElement(t,e,n);else{var a=ox(n.dom(),o);t.selection.setRng(a.toRange())}},kD=function(e,t){var n=wt.fromDom(e.getBody()),r=wt.fromDom(e.selection.getStart()),i=R(OD(n,r),SD);return X(i).map((function(n){var r=uc.fromRangeStart(e.selection.getRng());return!(!rT.willDeleteLastPositionInElement(t,r,n.dom())||sx(n))&&(CD(t,e,n,i),!0)})).getOr(!1)},ED=function(e,t){return!!e.selection.isCollapsed()&&kD(e,t)},AD={backspaceDelete:ED},TD=function(e,t){return{start:o(e),end:o(t)}},DD=function(e,t,n){return{rng:o(e),table:o(t),cells:o(n)}},MD=$p.generate([{removeTable:["element"]},{emptyCells:["cells"]}]),PD=function(e){return function(t){return cn(e,t)}},ID=function(e,t){return wl(wt.fromDom(e),"td,th",t)},jD=function(e,t){return bl(e,"table",t)},LD=function(e){return!1===cn(e.start(),e.end())},ND=function(e,t){return jD(e.start(),t).bind((function(n){return jD(e.end(),t).bind((function(e){return Nu(cn(n,e),n)}))}))},RD=function(e){return gl(e,"td,th")},BD=function(e,t){return jD(e.start(),t).bind((function(t){return X(RD(t)).map((function(t){return TD(e.start(),t)}))}))},$D=function(e,t){var n=ID(t.startContainer,e),r=ID(t.endContainer,e);return t.collapsed?m.none():ju(n,r,TD).fold((function(){return n.fold((function(){return r.bind((function(t){return jD(t,e).bind((function(e){return Y(RD(e)).map((function(e){return TD(e,t)}))}))}))}),(function(t){return jD(t,e).bind((function(e){return X(RD(e)).map((function(e){return TD(t,e)}))}))}))}),(function(t){return FD(e,t)?m.none():BD(t,e)}))},FD=function(e,t){return ND(t,e).isSome()},zD=function(e,t){var n=ID(e.startContainer,t),r=ID(e.endContainer,t);return ju(n,r,TD).filter(LD).filter((function(e){return FD(t,e)})).orThunk((function(){return $D(t,e)}))},qD=function(e,t){return ND(e,t).map((function(t){return DD(e,t,RD(t))}))},UD=function(e,t){var n=PD(e);return zD(t,n).bind((function(e){return qD(e,n)}))},HD=function(e,t){return z(e,(function(e){return cn(e,t)}))},VD=function(e){return ju(HD(e.cells(),e.rng().start()),HD(e.cells(),e.rng().end()),(function(t,n){return e.cells().slice(t,n+1)}))},WD=function(e){return VD(e).map((function(t){var n=e.cells();return t.length===n.length?MD.removeTable(e.table()):MD.emptyCells(t)}))},KD=function(e,t){return UD(e,t).bind(WD)},GD=function(e,t){return j(t,W_.fillWithPaddingBr),e.selection.setCursorLocation(t[0].dom(),0),!0},YD=function(e,t){return zw.deleteElement(e,!1,t),!0},XD=function(e,t,n){return KD(t,n).map((function(t){return t.fold(s(YD,e),s(GD,e))}))},ZD=function(e,t){return rM(e,t)},QD=function(e,t,n,r){return tM(t,r).fold((function(){return XD(e,t,n)}),(function(t){return ZD(e,t)})).getOr(!1)},JD=function(e,t){var n=wt.fromDom(e.getBody()),r=e.selection.getRng(),i=wC.getCellsFromEditor(e);return 0!==i.length?GD(e,i):QD(e,n,r,t)},eM=function(e,t){return F(ty.parentsAndSelf(t,e),fi)},tM=function(e,t){return F(ty.parentsAndSelf(t,e),(function(e){return"caption"===Ct(e)}))},nM=function(e,t,n,r,i){return hd.navigate(n,e.getBody(),i).bind((function(e){return eM(t,wt.fromDom(e.getNode())).map((function(e){return!1===cn(e,r)}))}))},rM=function(e,t){return W_.fillWithPaddingBr(t),e.selection.setCursorLocation(t.dom(),0),m.some(!0)},iM=function(e,t,n,r){return hd.firstPositionIn(e.dom()).bind((function(i){return hd.lastPositionIn(e.dom()).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},oM=function(e,t){return rM(e,t)},aM=function(e,t,n){return tM(e,wt.fromDom(n.getNode())).map((function(e){return!1===cn(e,t)}))},sM=function(e,t,n,r,i){return hd.navigate(n,e.getBody(),i).bind((function(o){return iM(r,n,i,o)?oM(e,r):aM(t,r,o)})).or(m.some(!0))},lM=function(e,t,n,r){var i=uc.fromRangeStart(e.selection.getRng());return eM(n,r).bind((function(r){return ww.isEmpty(r)?rM(e,r):nM(e,n,t,r,i)})).getOr(!1)},uM=function(e,t,n,r){var i=uc.fromRangeStart(e.selection.getRng());return ww.isEmpty(r)?rM(e,r):sM(e,n,t,r,i)},cM=function(e,t){return e?Iy(t):jy(t)},fM=function(e,t){var n=uc.fromRangeStart(e.selection.getRng());return cM(t,n)||hd.fromPosition(t,e.getBody(),n).map((function(e){return cM(t,e)})).getOr(!1)},dM=function(e,t,n){var r=wt.fromDom(e.getBody());return tM(r,n).fold((function(){return lM(e,t,r,n)||fM(e,t)}),(function(n){return uM(e,t,r,n).getOr(!1)}))},hM=function(e,t){var n=wt.fromDom(e.selection.getStart(!0)),r=wC.getCellsFromEditor(e);return e.selection.isCollapsed()&&0===r.length?dM(e,t,n):JD(e,n)},pM={backspaceDelete:hM},gM=function(e,t){var n=uc.fromRangeStart(e.selection.getRng());return hd.fromPosition(t,e.getBody(),n).filter((function(e){return t?My(e):Py(e)})).bind((function(e){return m.from(Af(t?0:-1,e))})).map((function(t){return e.selection.select(t),!0})).getOr(!1)},mM=function(e,t){return!!e.selection.isCollapsed()&&gM(e,t)},vM={backspaceDelete:mM},yM=function(e){return yl(e,(function(e){return _e.isContentEditableTrue(e.dom())||_e.isContentEditableFalse(e.dom())})).exists((function(e){return _e.isContentEditableTrue(e.dom())}))},bM=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},_M=function(e,t){var n=e||ri(t)?"margin":"padding",r="rtl"===Wt(t,"direction")?"-right":"-left";return n+r},wM=function(e,t,n,r,i,o){var a=_M(n,wt.fromDom(o));if("outdent"===t){var s=Math.max(0,bM(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=bM(o.style[a])+r+i;e.setStyle(o,a,s)}},xM=function(e,t){return H(t,(function(t){var n=_M(Sp.shouldIndentUseMargin(e),t),r=Gt(t,n).map(bM).getOr(0),i=e.dom.getContentEditable(t.dom());return"false"!==i&&r>0}))},OM=function(e){var t=kM(e);return!0!==e.readonly&&(t.length>1||xM(e,t))},SM=function(e){return si(e)||li(e)},CM=function(e){return yn(e).map(SM).getOr(!1)},kM=function(e){return R(I(e.selection.getSelectedBlocks(),wt.fromDom),(function(e){return!SM(e)&&!CM(e)&&yM(e)}))},EM=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Sp.getIndentation(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),l=Sp.shouldIndentUseMargin(e),u=Sp.getForcedRootBlock(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==u||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),j(kM(e),(function(e){wM(n,t,l,s,a,e.dom())}))},AM=function(e,t,n){return hd.navigateIgnore(e,t,n,Ey)},TM=function(e,t){return F(ty.parentsAndSelf(wt.fromDom(t.container()),e),ni)},DM=function(e,t,n){return AM(e,t.dom(),n).forall((function(e){return TM(t,n).fold((function(){return!1===Ef(e,n,t.dom())}),(function(r){return!1===Ef(e,n,t.dom())&&pn(r,wt.fromDom(e.container()))}))}))},MM=function(e,t,n){return TM(t,n).fold((function(){return AM(e,t.dom(),n).forall((function(e){return!1===Ef(e,n,t.dom())}))}),(function(t){return AM(e,t.dom(),n).isNone()}))},PM=s(MM,!1),IM=s(MM,!0),jM=s(DM,!1),LM=s(DM,!0),NM=function(e,t,n){if(e.selection.isCollapsed()&&OM(e)){var r=e.dom,i=e.selection.getRng(),o=uc.fromRangeStart(i),a=r.getParent(i.startContainer,r.isBlock);if(null!==a&&PM(wt.fromDom(a),o))return EM(e,"outdent"),!0}return!1},RM={backspaceDelete:NM},BM=function(e,t,n){GA.execute([{keyCode:by.BACKSPACE,action:GA.action(RM.backspaceDelete,e,!1)},{keyCode:by.BACKSPACE,action:GA.action(lD.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(lD.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(hD.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(hD.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(xD.backspaceDelete,e,t,!1)},{keyCode:by.DELETE,action:GA.action(xD.backspaceDelete,e,t,!0)},{keyCode:by.BACKSPACE,action:GA.action(pM.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(pM.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(vM.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(vM.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(LT.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(LT.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(ET.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(ET.backspaceDelete,e,!0)},{keyCode:by.BACKSPACE,action:GA.action(AD.backspaceDelete,e,!1)},{keyCode:by.DELETE,action:GA.action(AD.backspaceDelete,e,!0)}],n).each((function(e){n.preventDefault()}))},$M=function(e,t){GA.execute([{keyCode:by.BACKSPACE,action:GA.action(lD.paddEmptyElement,e)},{keyCode:by.DELETE,action:GA.action(lD.paddEmptyElement,e)}],t)},FM=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&BM(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&$M(e,t)}))},zM={setup:FM},qM=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},UM=function(e,t){var n,r,i=t,o=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var s=qM(t.firstChild);s&&/^(UL|OL|DL)$/.test(s.nodeName)&&t.insertBefore(o.doc.createTextNode(" "),t.firstChild)}if(r=o.createRng(),t.normalize(),t.hasChildNodes()){var l=new Ja(t,t);while(n=l.current()){if(_e.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}i=n,n=l.next()}n||(r.setStart(i,0),r.setEnd(i,0))}else _e.isBr(t)?t.nextSibling&&o.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),e.selection.scrollIntoView(t)}},HM=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},VM=function(e){return m.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},WM=function(e){return VM(e).fold(o(""),(function(e){return e.nodeName.toUpperCase()}))},KM=function(e){return VM(e).filter((function(e){return li(wt.fromDom(e))})).isSome()},GM={moveToCaretPosition:UM,getEditableRoot:HM,getParentBlock:VM,getParentBlockName:WM,isListItemParentBlock:KM},YM=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},XM=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},ZM=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},QM=function(e){return ZM(e)&&ZM(e.parentNode)},JM=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},eP=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(_e.isElement(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},tP=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){QM(n)&&(i="LI");var s=i?t(i):o.create("BR");if(eP(n,r,!0)&&eP(n,r,!1))XM(n,"LI")?o.insertAfter(s,JM(n)):o.replace(s,n);else if(eP(n,r,!0))XM(n,"LI")?(o.insertAfter(s,JM(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n);else if(eP(n,r,!1))o.insertAfter(s,JM(n));else{n=JM(n);var l=a.cloneRange();l.setStartAfter(r),l.setEndAfter(n);var u=l.extractContents();"LI"===i&&YM(u,"LI")?(s=u.firstChild,o.insertAfter(u,n)):(o.insertAfter(u,n),o.insertAfter(s,n))}o.remove(r),GM.moveToCaretPosition(e,s)}},nP={insert:tP},rP=function(e){j(pl(wt.fromDom(e),Tt),(function(e){var t=e.dom();t.nodeValue=Hl.trim(t.nodeValue)}))},iP=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},oP=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},aP=function(e){e.innerHTML='<br data-mce-bogus="1">'},sP=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},lP=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},uP=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;_e.isElement(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||iP(e,i))&&e.remove(i)}},cP=function(e,t,n){return!1===_e.isText(t)?n:e?1===n&&t.data.charAt(n-1)===Hl.ZWSP?0:n:n===t.data.length-1&&t.data.charAt(n)===Hl.ZWSP?t.data.length:n},fP=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,cP(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,cP(!1,e.endContainer,e.endOffset)),t},dP=function(e){do{_e.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},hP=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},pP=function(e,t){var n=Sp.getForcedRootBlock(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&e.dom.setAttribs(t,Sp.getForcedRootBlockAttrs(e))},gP=function(e,t,n,r,i){var o,a,s,l,u,c,f=t||"P",d=e.dom,h=hP(d,r);if(a=d.getParent(r,d.isBlock),!a||!lP(d,a)){if(a=a||h,c=a===e.getBody()||oP(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=d.create(f),pP(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;l=r;while(l.parentNode!==a)l=l.parentNode;while(l&&!d.isBlock(l))s=l,l=l.previousSibling;if(s&&e.schema.isValidChild(c,f.toLowerCase())){o=d.create(f),pP(e,o),s.parentNode.insertBefore(o,s),l=s;while(l&&!d.isBlock(l))u=l.nextSibling,o.appendChild(l),l=u;n.setStart(r,i),n.setEnd(r,i)}}return r},mP=function(e,t){var n;t.normalize(),n=t.lastChild,n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},vP=function(e,t){var n,r,i,o,a,s,l,u,c,f,d,h,p,g=e.dom,m=e.schema,v=m.getNonEmptyElements(),y=e.selection.getRng(),b=function(t){var n,o,s,l=i,u=m.getTextInlineElements();if(t||"TABLE"===f||"HR"===f?(n=g.create(t||h),pP(e,n)):n=a.cloneNode(!1),s=n,!1===Sp.shouldKeepStyles(e))g.setAttrib(n,"style",null),g.setAttrib(n,"class",null);else do{if(u[l.nodeName]){if(Vc(l)||Nd.isBookmarkNode(l))continue;o=l.cloneNode(!1),g.setAttrib(o,"id",""),n.hasChildNodes()?(o.appendChild(n.firstChild),n.appendChild(o)):(s=o,n.appendChild(o))}}while((l=l.parentNode)&&l!==r);return aP(s),n},_=function(e){var t,n,r=cP(e,i,o);if(_e.isText(i)&&(e?r>0:r<i.nodeValue.length))return!1;if(i.parentNode===a&&p&&!e)return!0;if(e&&_e.isElement(i)&&i===a.firstChild)return!0;if(sP(i,"TABLE")||sP(i,"HR"))return p&&!e||!p&&e;var s=new Ja(i,a);_e.isText(i)&&(e&&0===r?s.prev():e||r!==i.nodeValue.length||s.next());while(t=s.current()){if(_e.isElement(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),v[n]&&"br"!==n))return!1}else if(_e.isText(t)&&!/^[ \t\r\n]*$/.test(t.nodeValue))return!1;e?s.prev():s.next()}return!0},w=function(){l=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?b(h):b(),Sp.shouldEndContainerOnEmptyBlock(e)&&lP(g,c)&&g.isEmpty(a)?l=g.split(c,a):g.insertAfter(l,a),GM.moveToCaretPosition(e,l)};XC.normalize(g,y).each((function(e){y.setStart(e.startContainer,e.startOffset),y.setEnd(e.endContainer,e.endOffset)})),i=y.startContainer,o=y.startOffset,h=Sp.getForcedRootBlock(e),s=!(!t||!t.shiftKey);var x=!(!t||!t.ctrlKey);_e.isElement(i)&&i.hasChildNodes()&&(p=o>i.childNodes.length-1,i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i,o=p&&_e.isText(i)?i.nodeValue.length:0),r=hP(g,i),r&&((h&&!s||!h&&s)&&(i=gP(e,h,y,i,o)),a=g.getParent(i,g.isBlock),c=a?g.getParent(a.parentNode,g.isBlock):null,f=a?a.nodeName.toUpperCase():"",d=c?c.nodeName.toUpperCase():"","LI"!==d||x||(a=c,c=c.parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(a)?nP.insert(e,b,c,a,h):h&&a===e.getBody()||(h=h||"P",Kl(a)?(l=ou(a),g.isEmpty(a)&&aP(a),GM.moveToCaretPosition(e,l)):_()?w():_(!0)?(l=a.parentNode.insertBefore(b(),a),GM.moveToCaretPosition(e,sP(a,"HR")?l:a)):(n=fP(y).cloneRange(),n.setEndAfter(a),u=n.extractContents(),rP(u),dP(u),l=u.firstChild,g.insertAfter(u,a),uP(g,v,l),mP(g,a),g.isEmpty(a)&&aP(a),l.normalize(),g.isEmpty(l)?(g.remove(l),w()):GM.moveToCaretPosition(e,l)),g.setAttrib(l,"id",""),e.fire("NewBlock",{newBlock:l})))},yP={insert:vP},bP=function(e,t,n){var r,i=new Ja(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},_P=function(e,t,n){var r=e.create("span",{},"&nbsp;");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},wP=function(e,t,n,r){var i=e.createRng();r?(i.setStartBefore(n),i.setEndBefore(n)):(i.setStartAfter(n),i.setEndAfter(n)),t.setRng(i)},xP=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();XC.normalize(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,l=a.startContainer;if(1===l.nodeType&&l.hasChildNodes()){var u=s>l.childNodes.length-1;l=l.childNodes[Math.min(s,l.childNodes.length-1)]||l,s=u&&3===l.nodeType?l.nodeValue.length:0}var c=o.getParent(l,o.isBlock),f=c?o.getParent(c.parentNode,o.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(c=f),l&&3===l.nodeType&&s>=l.nodeValue.length&&(bP(e.schema,l,c)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Ec(o,a,n),_P(o,i,n),wP(o,i,n,r),e.undoManager.add()},OP=function(e,t){var n=wt.fromTag("br");es(wt.fromDom(t),n),e.undoManager.add()},SP=function(e,t){kP(e.getBody(),t)||ts(wt.fromDom(t),wt.fromTag("br"));var n=wt.fromTag("br");ts(wt.fromDom(t),n),_P(e.dom,e.selection,n.dom()),wP(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},CP=function(e){return _e.isBr(e.getNode())},kP=function(e,t){return!!CP(uc.after(t))||hd.nextPosition(e,uc.after(t)).map((function(e){return _e.isBr(e.getNode())})).getOr(!1)},EP=function(e){return e&&"A"===e.nodeName&&"href"in e},AP=function(e){return e.fold(o(!1),EP,EP,o(!1))},TP=function(e){var t=s(zk.isInlineTarget,e),n=uc.fromRangeStart(e.selection.getRng());return cE.readLocation(t,e.getBody(),n).filter(AP)},DP=function(e,t){t.fold(r,s(OP,e),s(SP,e),r)},MP=function(e,t){var n=TP(e);n.isSome()?n.each(s(DP,e)):xP(e,t)},PP={insert:MP},IP=function(e,t){return GM.getParentBlock(e).filter((function(e){return t.length>0&&an(wt.fromDom(e),t)})).isSome()},jP=function(e){return IP(e,Sp.getBrNewLineSelector(e))},LP=function(e){return IP(e,Sp.getNoNewLineSelector(e))},NP={shouldInsertBr:jP,shouldBlockNewLine:LP},RP=$p.generate([{br:[]},{block:[]},{none:[]}]),BP=function(e,t){return NP.shouldBlockNewLine(e)},$P=function(e){return function(t,n){var r=""===Sp.getForcedRootBlock(t);return r===e}},FP=function(e){return function(t,n){return GM.isListItemParentBlock(t)===e}},zP=function(e,t){return function(n,r){var i=GM.getParentBlockName(n)===e.toUpperCase();return i===t}},qP=function(e){return zP("pre",e)},UP=function(){return zP("summary",!0)},HP=function(e){return function(t,n){return Sp.shouldPutBrInPre(t)===e}},VP=function(e,t){return NP.shouldInsertBr(e)},WP=function(e,t){return t},KP=function(e){var t=Sp.getForcedRootBlock(e),n=GM.getEditableRoot(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},GP=function(e,t){return function(n,r){var i=$(e,(function(e,t){return e&&t(n,r)}),!0);return i?m.some(t):m.none()}},YP=function(e,t){return Uk.evaluateUntil([GP([BP],RP.none()),GP([UP()],RP.br()),GP([qP(!0),HP(!1),WP],RP.br()),GP([qP(!0),HP(!1)],RP.block()),GP([qP(!0),HP(!0),WP],RP.block()),GP([qP(!0),HP(!0)],RP.br()),GP([FP(!0),WP],RP.br()),GP([FP(!0)],RP.block()),GP([$P(!0),WP,KP],RP.block()),GP([$P(!0)],RP.br()),GP([VP],RP.br()),GP([$P(!1),WP],RP.br()),GP([KP],RP.block())],[e,!(!t||!t.shiftKey)]).getOr(RP.none())},XP={getAction:YP},ZP=function(e,t){XP.getAction(e,t).fold((function(){PP.insert(e,t)}),(function(){yP.insert(e,t)}),r)},QP={insert:ZP},JP=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),C_(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),QP.insert(e,t)})))},eI=function(e){e.on("keydown",(function(t){t.keyCode===by.ENTER&&JP(e,t)}))},tI={setup:eI},nI=function(e,t){var n=t.container(),r=t.offset();return _e.isText(n)?(n.insertData(r,e),m.some(sc(n,r+e.length))):Rf(t).map((function(n){var r=wt.fromText(e);return t.isAtEnd()?ts(n,r):es(n,r),sc(r.dom(),e.length)}))},rI=s(nI," "),iI=s(nI," "),oI=" ",aI=function(e){return sc.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},sI=function(e,t){var n=R(ty.parentsAndSelf(wt.fromDom(t.container()),e),ni);return Y(n).getOr(e)},lI=function(e,t){return aI(t)?ky(t):ky(t)||hd.prevPosition(sI(e,t).dom(),t).exists(ky)},uI=function(e,t){return aI(t)?Cy(t):Cy(t)||hd.nextPosition(sI(e,t).dom(),t).exists(Cy)},cI=function(e){return M(["pre","pre-wrap"],e)},fI=function(e){return Rf(e).bind((function(e){return yl(e,At)})).exists((function(e){return cI(Wt(e,"white-space"))}))},dI=function(e,t){return hd.prevPosition(e.dom(),t).isNone()},hI=function(e,t){return hd.nextPosition(e.dom(),t).isNone()},pI=function(e,t){return dI(e,t)||hI(e,t)||PM(e,t)||IM(e,t)||$T(e,t)||BT(e,t)},gI=function(e,t){return!fI(t)&&(pI(e,t)||lI(e,t)||uI(e,t))},mI=function(e,t){return!fI(t)&&(PM(e,t)||jM(e,t)||$T(e,t)||lI(e,t))},vI=function(e){var t=e.container(),n=e.offset();return _e.isText(t)&&n<t.data.length?sc(t,n+1):e},yI=function(e,t){var n=vI(t);return!fI(n)&&(IM(e,n)||LM(e,n)||BT(e,n)||uI(e,n))},bI=function(e,t){return mI(e,t)||yI(e,t)},_I=function(e,t){return wy(e.charAt(t))},wI=function(e){var t=e.container();return _e.isText(t)&&tt(t.data,oI)},xI=function(e){var t=e.split("");return I(t,(function(e,n){return wy(e)&&n>0&&n<t.length-1&&Oy(t[n-1])&&Oy(t[n+1])?" ":e})).join("")},OI=function(e,t){var n=t.data,r=sc(t,0);return!(!_I(n,0)||bI(e,r))&&(t.data=" "+n.slice(1),!0)},SI=function(e){var t=e.data,n=xI(t);return n!==t&&(e.data=n,!0)},CI=function(e,t){var n=t.data,r=sc(t,n.length-1);return!(!_I(n,n.length-1)||bI(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},kI=function(e,t){return m.some(t).filter(wI).bind((function(t){var n=t.container(),r=OI(e,n)||SI(n)||CI(e,n);return r?m.some(t):m.none()}))},EI=function(e){var t=wt.fromDom(e.getBody());e.selection.isCollapsed()&&kI(t,sc.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},AI=function(e){return function(t){return t.fold((function(t){return hd.prevPosition(e.dom(),uc.before(t))}),(function(e){return hd.firstPositionIn(e)}),(function(e){return hd.lastPositionIn(e)}),(function(t){return hd.nextPosition(e.dom(),uc.after(t))}))}},TI=function(e,t){return function(n){return gI(e,n)?rI(t):iI(t)}},DI=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},MI=function(e){var t=uc.fromRangeStart(e.selection.getRng()),n=wt.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=s(zk.isInlineTarget,e),i=uc.fromRangeStart(e.selection.getRng());return cE.readLocation(r,e.getBody(),i).bind(AI(n)).bind(TI(n,t)).exists(DI(e))}return!1},PI=function(e,t){GA.execute([{keyCode:by.SPACEBAR,action:GA.action(MI,e)}],t).each((function(e){t.preventDefault()}))},II=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&PI(e,t)}))},jI={setup:II},LI=function(e){return _l(wt.fromDom(e.getBody()),"*[data-mce-caret]").fold(o(null),(function(e){return e.dom()}))},NI=function(e){e.selection.setRng(e.selection.getRng())},RI=function(e,t){t.hasAttribute("data-mce-caret")&&(ou(t),NI(e),e.selection.scrollIntoView(t))},BI=function(e,t){var n=LI(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void RI(e,n)):void(Xl(n)&&(RI(e,n),e.undoManager.add()))},$I=function(e){e.on("keyup compositionstart",s(BI,e))},FI={setup:$I},zI=gt().browser,qI=function(e){var t=tl((function(){e.composing||EI(e)}),0);zI.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},UI=function(e){qI(e),e.on("input",(function(t){!1===t.isComposing&&EI(e)}))},HI=function(e,t){GA.execute([{keyCode:by.END,action:rA(e,!0)},{keyCode:by.HOME,action:rA(e,!1)}],t).each((function(e){t.preventDefault()}))},VI=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&HI(e,t)}))},WI={setup:VI},KI=function(e){var t=AE.setupSelectedState(e);FI.setup(e),ZA.setup(e,t),zM.setup(e,t),tI.setup(e),jI.setup(e),UI(e),WI.setup(e)},GI={setup:KI},YI=function(e){var t=Fr.each,r=by.BACKSPACE,i=by.DELETE,o=e.dom,a=e.selection,s=e.settings,l=e.parser,u=mr.gecko,c=mr.ie,f=mr.webkit,d="data:text/mce-internal,",h=c?"Text":"URL",p=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},g=function(e){return e.isDefaultPrevented()},m=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&a.select(t.target),n=e.selection.getContent(),n.length>0&&(r=d+escape(e.id)+","+escape(n),t.dataTransfer.setData(h,r)))},v=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(h),t&&t.indexOf(d)>=0)?(t=t.substr(d.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},y=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},b=function(){var t=function(e){var t=o.create("body"),n=e.cloneContents();return t.appendChild(n),a.serializer.serialize(t,{format:"html"})},n=function(n){var r=t(n),i=o.createRng();i.selectNode(e.getBody());var a=t(i);return r===a};e.on("keydown",(function(t){var a,s,l=t.keyCode;if(!g(t)&&(l===i||l===r)){if(a=e.selection.isCollapsed(),s=e.getBody(),a&&!o.isEmpty(s))return;if(!a&&!n(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&o.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},_=function(){e.shortcuts.add("meta+a",null,"SelectAll")},w=function(){e.inline||o.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=a.getRng(),e.getBody().focus(),"mousedown"===t.type){if(Yl(n.startContainer))return;a.placeCaretAt(t.clientX,t.clientY)}else a.setRng(n)}))},x=function(){e.on("keydown",(function(t){if(!g(t)&&t.keyCode===r){if(!e.getBody().getElementsByTagName("hr").length)return;if(a.isCollapsed()&&0===a.getRng().startOffset){var n=a.getNode(),i=n.previousSibling;if("HR"===n.nodeName)return o.remove(n),void t.preventDefault();i&&i.nodeName&&"hr"===i.nodeName.toLowerCase()&&(o.remove(i),t.preventDefault())}}}))},O=function(){n.Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!g(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),sr.setEditorTimeout(e,(function(){n.focus()}))}}))},S=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==o.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&o.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),a.select(n))}))},C=function(){var n=function(){var n=o.getAttribs(a.getStart().cloneNode(!1));return function(){var r=a.getStart();r!==e.getBody()&&(o.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!a.isCollapsed()&&o.getParent(a.getStart(),o.isBlock)!==o.getParent(a.getEnd(),o.isBlock)};e.on("keypress",(function(t){var i;if(!g(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),o.bind(e.getDoc(),"cut",(function(t){var i;!g(t)&&r()&&(i=n(),sr.setEditorTimeout(e,(function(){i()})))}))},k=function(){e.on("keydown",(function(e){if(!g(e)&&e.keyCode===r&&a.isCollapsed()&&0===a.getRng().startOffset){var t=a.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},E=function(){e.on("keydown",(function(t){var n,r,i,s,l;if(!g(t)&&t.keyCode===by.BACKSPACE&&(n=a.getRng(),r=n.startContainer,i=n.startOffset,s=o.getRoot(),l=r,n.collapsed&&0===i)){while(l&&l.parentNode&&l.parentNode.firstChild===l&&l.parentNode!==s)l=l.parentNode;"BLOCKQUOTE"===l.tagName&&(e.formatter.toggle("blockquote",null,l),n=o.createRng(),n.setStart(r,0),n.setEnd(r,0),a.setRng(n))}}))},A=function(){var t=function(){p("StyleWithCSS",!1),p("enableInlineTableEditing",!1),s.object_resizing||p("enableObjectResizing",!1)};s.readonly||e.on("BeforeExecCommand mousedown",t)},T=function(){var n=function(){t(o.select("a"),(function(e){var t=e.parentNode,n=o.getRoot();if(t.lastChild===e){while(t&&!o.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}o.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},D=function(){s.forced_root_block&&e.on("init",(function(){p("DefaultParagraphSeparator",Sp.getForcedRootBlock(e))}))},M=function(){e.on("keyup focusin mouseup",(function(e){by.modifierPressed(e)||a.normalize()}),!0)},P=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},I=function(){e.inline||e.on("keydown",(function(){n.document.activeElement===n.document.body&&e.getWin().focus()}))},j=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(mr.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},L=function(){mr.mac&&e.on("keydown",(function(t){if(by.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},N=function(){p("AutoUrlDetect",!1)},R=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},B=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},$=function(){l.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},F=function(){e.on("dragstart",(function(e){m(e)})),e.on("drop",(function(t){if(!g(t)){var n=v(t);if(n&&n.id!==e.id){t.preventDefault();var r=WS.fromPoint(t.x,t.y,e.getDoc());a.setRng(r),y(n.html,!0)}}}))},z=function(){},q=function(){var t;return!(!u||e.removed)&&(t=e.selection.getSel(),!t||!t.rangeCount||0===t.rangeCount)};return E(),b(),mr.windowsPhone||M(),f&&(w(),S(),D(),B(),k(),$(),mr.iOS?(I(),j(),R()):_()),mr.ie>=11&&(j(),k()),mr.ie&&(_(),N(),F()),u&&(x(),O(),C(),A(),T(),P(),L(),k()),{refreshContentEditable:z,isHidden:q}},XI=function(e){return _e.isElement(e)&&ai(wt.fromDom(e))},ZI=function(e){var t=e.selection.getRng(),n=sc.fromRangeStart(t),r=sc.fromRangeEnd(t);if(sc.isElementPosition(n)){var i=n.container();XI(i)&&hd.firstPositionIn(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(sc.isElementPosition(r)){i=n.container();XI(i)&&hd.lastPositionIn(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(Jx.normalize(t))},QI=function(e){e.on("click",(function(t){t.detail>=3&&ZI(e)}))},JI=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},ej=function(e){e.parser.addNodeFilter("details",(function(e){j(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){j(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",b(t)?t:null),e.attr("data-mce-open",null)}))}))},tj=function(e){JI(e),ej(e)},nj=Ms.DOM,rj=function(e,t){var n=wt.fromDom(e.getDoc().head),r=wt.fromTag("style");zt(r,"type","text/css"),rs(r,wt.fromText(t)),rs(n,r)},ij=function(e){var t=XO(e.settings,e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o,a=t.length,s=e.dom;while(a--)if(r=t[a],i=r.attr(n),o="data-mce-"+n,!r.attr(o)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=s.serializeStyle(s.parseStyle(i),r.name),i.length||(i=null),r.attr(o,i),r.attr(n,i)):"tabindex"===n?(r.attr(o,i),r.attr(n,null)):r.attr(o,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t,n,r=e.length;while(r--)t=e[r],n=t.attr("type")||"no/type",0!==n.indexOf("mce-")&&t.attr("type","mce-"+n)})),t.addNodeFilter("#cdata",(function(e){var t,n=e.length;while(n--)t=e[n],t.type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n,r=t.length,i=e.schema.getNonEmptyElements();while(r--)n=t[r],n.isEmpty(i)&&0===n.getAll("br").length&&(n.append(new Dh("br",1)).shortEnded=!0)})),t},oj=function(e){e.settings.auto_focus&&sr.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},aj=function(e){e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),oj(e)},sj=function(e){return e.inline?nj.styleSheetLoader:e.dom.styleSheetLoader},lj=function(e,t){var r,i,o=e.settings,a=e.getElement(),s=e.getDoc();o.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(s.open(),s.write(e.iframeHTML),s.close()),e.inline&&(e.on("remove",(function(){var e=this.getBody();nj.removeClass(e,"mce-content-body"),nj.removeClass(e,"mce-edit-focus"),nj.setAttrib(e,"contentEditable",null)})),nj.addClass(a,"mce-content-body"),e.contentDocument=s=n.document,e.contentWindow=n.window,e.bodyElement=a,e.contentAreaContainer=a,o.root_name=a.nodeName.toLowerCase()),r=e.getBody(),r.disabled=!0,e.readonly=o.readonly,e.readonly||(e.inline&&"static"===nj.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=e.getParam("content_editable_state",!0)),r.disabled=!1,e.editorUpload=Xv(e),e.schema=qi(o),e.dom=Ms(s,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:o.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Sp.shouldUseContentCssCors(e),referrerPolicy:Sp.getReferrerPolicy(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=ij(e),e.serializer=iS(o,e),e.selection=mk(e.dom,e.getWin(),e.serializer,e),e.annotator=kh(e),e.formatter=CO(e),e.undoManager=$_(e),e._nodeChangeDispatcher=new yy(e),e._selectionOverrides=Yb(e),tj(e),QI(e),GI.setup(e),ly.setup(e),e.fire("PreInit"),o.browser_spellcheck||o.gecko_spellcheck||(s.body.spellcheck=!1,nj.setAttrib(r,"spellcheck","false")),e.quirks=YI(e),e.fire("PostRender");var l=Sp.getDirectionality(e);void 0!==l&&(r.dir=l),o.protect&&e.on("BeforeSetContent",(function(e){Fr.each(o.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"}),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type})),e.contentStyles.length>0&&(i="",Fr.each(e.contentStyles,(function(e){i+=e+"\r\n"})),e.dom.addStyle(i)),sj(e).loadAll(e.contentCSS,(function(t){aj(e)}),(function(t){aj(e)})),o.content_style&&rj(e,o.content_style)},uj={initContentBody:lj},cj=Ms.DOM,fj=function(e,t){if(n.document.domain!==n.window.location.hostname&&mr.browser.isIE()){var r=Wv.uuid("mce");e[r]=function(){uj.initContentBody(e)};var i='javascript:(function(){document.open();document.domain="'+n.document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return cj.setAttrib(t,"src",i),!0}return!1},dj=function(e,t,n,r){var i=wt.fromTag("iframe");return qt(i,r),qt(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),cl(i,"tox-edit-area__iframe"),i},hj=function(e){var t,n,r;return r=Sp.getDocType(e)+"<html><head>",Sp.getDocumentBaseUrl(e)!==e.documentBaseUrl&&(r+='<base href="'+e.documentBaseURI.getURI()+'" />'),r+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',t=Sp.getBodyId(e),n=Sp.getBodyClass(e),Sp.getContentSecurityPolicy(e)&&(r+='<meta http-equiv="Content-Security-Policy" content="'+Sp.getContentSecurityPolicy(e)+'" />'),r+='</head><body id="'+t+'" class="mce-content-body '+n+'" data-id="'+e.id+'"><br></body></html>',r},pj=function(e,t){var n=e.editorManager.translate("Rich Text Area. Press ALT-0 for help."),r=dj(e.id,n,t.height,Sp.getIframeAttrs(e)).dom();r.onload=function(){r.onload=null,e.fire("load")};var i=fj(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=hj(e),cj.add(t.iframeContainer,r),i},gj=function(e,t){var n=pj(e,t);t.editorContainer&&(cj.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=cj.isHidden(t.editorContainer)),e.getElement().style.display="none",cj.setAttrib(e.id,"aria-hidden","true"),n||uj.initContentBody(e)},mj={init:gj},vj=function(e){return/^[a-z0-9\-]+$/i.test(e)},yj=function(e){var t=Sp.getContentCss(e),n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return I(t,(function(t){return vj(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},bj=function(e){e.contentCSS=e.contentCSS.concat(yj(e))},_j=Ms.DOM,wj=function(e,t,n){var r=Tv.get(n),i=Tv.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Fr.trim(n),r&&-1===Fr.inArray(t,n)){if(Fr.each(Tv.dependencies(n),(function(n){wj(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(KR){Cv.pluginInitError(e,n,KR)}}},xj=function(e){return e.replace(/^\-/,"")},Oj=function(e){var t=[];Fr.each(e.settings.plugins.split(/[ ,]/),(function(n){wj(e,t,xj(n))}))},Sj=function(e){var t=Fr.trim(e.settings.icons),n=e.ui.registry.getAll().icons,r=kv(),i=Q(Q({},r),Av.get(t).icons);Pt(i,(function(t,r){Rt(n,r)||e.ui.registry.addIcon(r,t)}))},Cj=function(e){var t=e.settings.theme;if(b(t)){e.settings.theme=xj(t);var n=Dv.get(t);e.theme=new n(e,Dv.urls[t]),e.theme.init&&e.theme.init(e,Dv.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},kj=function(e){return e.theme.renderUI()},Ej=function(e){var t=e.getElement(),n=e.settings.theme,r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},Aj=function(e){return{editorContainer:e,iframeContainer:e}},Tj=function(e){var t=_j.create("div");return _j.insertAfter(t,e),Aj(t)},Dj=function(e){var t=e.getElement();return e.inline?Aj(null):Tj(t)},Mj=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,b(e.settings.theme)?kj(e):S(e.settings.theme)?Ej(e):Dj(e)},Pj=function(e){e.fire("ScriptsLoaded"),Sj(e),Cj(e),Oj(e);var t=Mj(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,bj(e),e.inline?uj.initContentBody(e):mj.init(e,t)},Ij={init:Pj},jj=Ms.DOM,Lj=function(e){return"-"===e.charAt(0)},Nj=function(e,t){var n=Sp.getLanguageCode(t),i=Sp.getLanguageUrl(t);if(!1===Zs.hasCode(n)&&"en"!==n){var o=""!==i?i:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,r,void 0,(function(){Cv.languageLoadError(o,n)}))}},Rj=function(e,t,n,r){var i=t.settings,o=i.theme;if(b(o)){if(!Lj(o)&&!Dv.urls.hasOwnProperty(o)){var a=i.theme_url;a?Dv.load(o,t.documentBaseURI.toAbsolute(a)):Dv.load(o,"themes/"+o+"/theme"+n+".js")}e.loadQueue((function(){Dv.waitFor(o,r)}))}else r()},Bj=function(e){return m.from(Sp.getIconsUrl(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:m.none()}}))},$j=function(e){return m.from(Sp.getIconPackName(e)).filter((function(e){return e.length>0&&!Av.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons.js",name:m.some(t)}}))},Fj=function(e,t){Bj(t).orThunk((function(){return $j(t)})).each((function(t){e.add(t.url,r,void 0,(function(){Cv.iconsLoadError(t.url,t.name.getOrUndefined())}))}))},zj=function(e,t){w(e.plugins)&&(e.plugins=e.plugins.join(" ")),Fr.each(e.external_plugins,(function(t,n){Tv.load(n,t,r,void 0,(function(){Cv.pluginLoadError(n,t)})),e.plugins+=" "+n})),Fr.each(e.plugins.split(/[ ,]/),(function(e){if(e=Fr.trim(e),e&&!Tv.urls[e])if(Lj(e)){e=e.substr(1,e.length);var n=Tv.dependencies(e);Fr.each(n,(function(e){var n={prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"};e=Tv.createUrl(n,e),Tv.load(e.resource,e,r,void 0,(function(){Cv.pluginLoadError(e.prefix+e.resource+e.suffix,e.resource)}))}))}else{var i={prefix:"plugins/",resource:e,suffix:"/plugin"+t+".js"};Tv.load(e,i,r,void 0,(function(){Cv.pluginLoadError(i.prefix+i.resource+i.suffix,e)}))}}))},qj=function(e,t){var n=$s.ScriptLoader;Rj(n,e,t,(function(){Nj(n,e),Fj(n,e),zj(e.settings,t),n.loadQueue((function(){e.removed||Ij.init(e)}),e,(function(){e.removed||Ij.init(e)}))}))},Uj=function(e){var t=e.settings,r=e.id;Zs.setCode(Sp.getLanguageCode(e));var i=function(){jj.unbind(n.window,"ready",i),e.render()};if(xo.Event.domLoaded){if(e.getElement()&&mr.contentEditable){t.inline?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||jj.getParent(r,"form");o&&(e.formElement=o,t.hidden_input&&!_e.isTextareaOrInput(e.getElement())&&(jj.insertAfter(jj.create("input",{type:"hidden",name:r}),r),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},jj.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!t.submit_patch||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=pv(e),e.notificationManager=dv(e),"xml"===t.encoding&&e.on("GetContent",(function(e){e.save&&(e.content=jj.encode(e.content))})),t.add_form_submit_trigger&&e.on("submit",(function(){e.initialized&&e.save()})),t.add_unload_trigger&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),qj(e,e.suffix)}}else jj.bind(n.window,"ready",i)},Hj={render:Uj},Vj="data-mce-contenteditable",Wj=function(e,t,n){hl(e,t)&&!1===n?dl(e,t):n&&cl(e,t)},Kj=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},Gj=function(e,t){e.dom().contentEditable=t?"true":"false"},Yj=function(e){j(gl(e,'*[contenteditable="true"]'),(function(e){zt(e,Vj,"true"),Gj(e,!1)}))},Xj=function(e){j(gl(e,"*["+Vj+'="true"]'),(function(e){Vt(e,Vj),Gj(e,!0)}))},Zj=function(e){m.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},Qj=function(e){e.selection.setRng(e.selection.getRng())},Jj=function(e,t){var n=wt.fromDom(e.getBody());Wj(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),Zj(e),e.readonly=!0,Gj(n,!1),Yj(n)):(e.readonly=!1,Gj(n,!0),Xj(n),Kj(e,"StyleWithCSS",!1),Kj(e,"enableInlineTableEditing",!1),Kj(e,"enableObjectResizing",!1),Qg.hasEditorOrUiFocus(e)&&e.focus(),Qj(e),e.nodeChanged())},eL=function(e){return!0===e.readonly},tL=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){eL(e)&&j(t,(function(e){e.attr(Vj,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(Vj,(function(t){eL(e)&&j(t,(function(e){e.attr("contenteditable",e.attr(Vj))}))})),e.serializer.addTempAttr(Vj)},nL=function(e){e.serializer?tL(e):e.on("PreInit",(function(){tL(e)}))},rL=function(e){return"click"===e.type},iL=function(e){var t=e.target;rL(e)&&"A"===t.tagName&&!by.metaKeyPressed(e)&&e.preventDefault()},oL=function(e){e.on("ShowCaret",(function(t){eL(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){eL(e)&&t.preventDefault()}))},aL=["design","readonly"],sL=function(e,t,r,i){var o=r[t.get()],a=r[i];try{a.activate()}catch(KR){return void n.console.error("problem while activating editor mode "+i+":",KR)}o.deactivate(),o.editorReadOnly!==a.editorReadOnly&&Jj(e,a.editorReadOnly),t.set(i),hm.fireSwitchMode(e,i)},lL=function(e,t,n,r){if(r!==n.get()){if(!Rt(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?sL(e,n,t,r):e.on("init",(function(){return sL(e,n,t,r)}))}},uL=function(e,t,r){var i;if(M(aL,t))throw new Error("Cannot override default mode "+t);return Q(Q({},e),(i={},i[t]=Q(Q({},r),{deactivate:function(){try{r.deactivate()}catch(KR){n.console.error("problem while deactivating editor mode "+t+":",KR)}}}),i))},cL=function(e){var t=we("design"),n=we({design:{activate:r,deactivate:r,editorReadOnly:!1},readonly:{activate:r,deactivate:r,editorReadOnly:!0}});return nL(e),oL(e),{isReadOnly:function(){return eL(e)},set:function(r){return lL(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(uL(n.get(),e,t))}}},fL=function(e){return e.firstChild&&e.firstChild===e.lastChild},dL=function(e){return"br"===e.name||" "===e.value},hL=function(e,t){var n=e.getBlockElements();return n[t.name]&&fL(t)&&dL(t.firstChild)},pL=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||hL(e,t))},gL=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),pL(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},mL=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},vL=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return mL(i)},yL=function(e){return Fr.grep(e.childNodes,(function(e){return"LI"===e.nodeName}))},bL=function(e){return" "===e.data||_e.isBr(e)},_L=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&bL(e.firstChild)},wL=function(e){return!e.firstChild||_L(e)},xL=function(e){return e.length>0&&wL(e[e.length-1])?e.slice(0,-1):e},OL=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},SL=function(e,t){return!!OL(e,t)},CL=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},kL=function(e,t){var n=uc.before(e),r=Jf(t),i=r.next(n);return i?i.toRange():null},EL=function(e,t){var n=uc.after(e),r=Jf(t),i=r.prev(n);return i?i.toRange():null},AL=function(e,t,n,r){var i=CL(e,r),o=e.parentNode;return o.insertBefore(i[0],e),Fr.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),EL(t[t.length-1],n)},TL=function(e,t,n){var r=e.parentNode;return Fr.each(t,(function(t){r.insertBefore(t,e)})),kL(e,n)},DL=function(e,t,n,r){return r.insertAfter(t.reverse(),e),EL(t[0],n)},ML=function(e,t,n,r){var i=vL(t,e,r),o=OL(t,n.startContainer),a=xL(yL(i.firstChild)),s=1,l=2,u=t.getRoot(),c=function(e){var r=uc.fromRangeStart(n),i=Jf(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||OL(t,a.getNode())!==o};return c(s)?TL(o,a,u):c(l)?DL(o,a,u,t):AL(o,a,u,n)},PL={isListFragment:gL,insertAtCaret:ML,isParentBlockLi:SL,trimListItems:xL,listItems:yL},IL=function(e,t){return _e.isText(e)&&" "===e.nodeValue[t-1]},jL=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var i=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(r>0?t=t.replace(/^&nbsp;/," "):i("previousSibling")||(t=t.replace(/^ /,"&nbsp;")),r<n.length?t=t.replace(/&nbsp;(<br>|)$/," "):i("nextSibling")||(t=t.replace(/(&nbsp;| )(<br>|)$/,"&nbsp;"))),t},LL=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(" "===n.data[r]?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):" "===n.data[r-1]&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t},NL=_e.matchNodeNames(["td","th"]),RL=function(e,t){var n=e.selection.getRng(),r=n.startContainer,i=n.startOffset;n.collapsed&&IL(r,i)&&_e.isText(r)&&(r.insertData(i-1," "),r.deleteData(i,1),n.setStart(r,i),n.setEnd(r,i),e.selection.setRng(n)),e.selection.setContent(t)},BL=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):RL(e,t)}},$L=function(e,t){m.from(e.getParent(t,"td,th")).map(wt.fromDom).each(W_.trimBlockTrailingBr)},FL=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=new gx(r);Fr.each(r.select("*[data-mce-fragment]"),(function(e){for(var t=e.parentNode;t&&t!==i;t=t.parentNode)n[e.nodeName.toLowerCase()]&&o.compare(t,e)&&r.remove(e,!0)}))}},zL=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},qL=function(e){Fr.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},UL=function(e){return!!e.getAttribute("data-mce-fragment")},HL=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},VL=function(e,t){var n,r,i,o,a,s=e.dom,l=e.selection,u=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null};if(t){if(e.selection.scrollIntoView(t),n=u(t),n)return s.remove(t),void l.select(n);var c=s.createRng();o=t.previousSibling,o&&3===o.nodeType?(c.setStart(o,o.nodeValue.length),mr.ie||(a=t.nextSibling,a&&3===a.nodeType&&(o.appendData(a.data),a.parentNode.removeChild(a)))):(c.setStartBefore(t),c.setEndBefore(t));var f=function(t){var n=uc.fromRangeStart(t),r=Jf(e.getBody());if(n=r.next(n),n)return n.toRange()};r=s.getParent(t,s.isBlock),s.remove(t),r&&s.isEmpty(r)&&(e.$(r).empty(),c.setStart(r,0),c.setEnd(r,0),NL(r)||UL(r)||!(i=f(c))?s.add(r,s.create("br",{"data-mce-bogus":"1"})):(c=i,s.remove(r))),l.setRng(c)}},WL=function(e,t,n){var r,i,o,a,s,l,u,c,f,d,h,p=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=jL(p.getRng(),t)),r=e.parser,h=n.merge,i=Mp({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;&#x200B;</span>',l={content:t,format:"html",selection:!0,paste:n.paste},l=e.fire("BeforeSetContent",l),l.isDefaultPrevented())e.fire("SetContent",{content:l.content,format:"html",selection:!0,paste:n.paste});else{t=l.content,-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),c=p.getRng();var m=c.startContainer||(c.parentElement?c.parentElement():null),v=e.getBody();m===v&&p.isCollapsed()&&g.isBlock(v.firstChild)&&HL(e,v.firstChild)&&g.isEmpty(v.firstChild)&&(c=g.createRng(),c.setStart(v.firstChild,0),c.setEnd(v.firstChild,0),p.setRng(c)),p.isCollapsed()||(e.selection.setRng(Jx.normalize(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=LL(e.selection.getRng(),t)),o=p.getNode();var y={context:o.nodeName.toLowerCase(),data:n.data,insert:!0};if(s=r.parse(t,y),!0===n.paste&&PL.isListFragment(e.schema,s)&&PL.isParentBlockLi(g,o))return c=PL.insertAtCaret(i,g,e.selection.getRng(),s),e.selection.setRng(c),void e.fire("SetContent",l);if(zL(s),f=s.lastChild,"mce_marker"===f.attr("id"))for(u=f,f=f.prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(u,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(o),y.invalid){RL(e,d),o=p.getNode(),a=e.getBody(),9===o.nodeType?o=f=a:f=o;while(f!==a)o=f,f=f.parentNode;t=o===a?a.innerHTML:g.getOuterHTML(o),t=i.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return i.serialize(s)})))),o===a?g.setHTML(a,t):g.setOuterHTML(o,t)}else t=i.serialize(s),BL(e,t,o);FL(e,h),VL(e,g.get("mce_marker")),qL(e.getBody()),$L(e.dom,e.selection.getStart()),e.fire("SetContent",l),e.addVisual()}},KL=function(e){var t;return"string"!==typeof e?(t=Fr.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}},GL=function(e,t){var n=KL(t);WL(e,n.content,n.details)},YL={insertAtCaret:GL},XL=function(e,t){e.getDoc().execCommand(t,!1,null)},ZL=function(e){RM.backspaceDelete(e,!1)||lD.backspaceDelete(e,!1)||hD.backspaceDelete(e,!1)||xD.backspaceDelete(e,!1)||ET.backspaceDelete(e,!1)||pM.backspaceDelete(e)||LT.backspaceDelete(e,!1)||AD.backspaceDelete(e,!1)||(XL(e,"Delete"),rT.paddEmptyBody(e))},QL=function(e){lD.backspaceDelete(e,!0)||hD.backspaceDelete(e,!0)||xD.backspaceDelete(e,!0)||ET.backspaceDelete(e,!0)||pM.backspaceDelete(e)||LT.backspaceDelete(e,!0)||AD.backspaceDelete(e,!0)||XL(e,"ForwardDelete")},JL={deleteCommand:ZL,forwardDeleteCommand:QL},eN=function(e,t,n){var r=function(t){return Gt(t,e)},i=function(e){return cn(wt.fromDom(t),e)};return yl(wt.fromDom(n),(function(e){return r(e).isSome()}),i).bind(r)},tN=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},nN=function(e,t){return/[0-9.]+px$/.test(e)?tN(72*parseInt(e,10)/96,t||0)+"pt":e},rN=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},iN=function(e,t){return m.from(Ms.DOM.getStyle(t,e,!0))},oN=function(e){return function(t,n){return m.from(n).map(wt.fromDom).filter(At).bind((function(n){return eN(e,t,n.dom()).or(iN(e,n.dom()))})).getOr("")}},aN={getFontSize:oN("font-size"),getFontFamily:i(rN,oN("font-family")),toPt:nN},sN=function(e){return hd.firstPositionIn(e.getBody()).map((function(e){var t=e.container();return _e.isText(t)?t.parentNode:t}))},lN=function(e,t){return e.startContainer===t&&0===e.startOffset},uN=function(e){return m.from(e.selection.getRng()).bind((function(t){var n=e.getBody();return lN(t,n)?m.none():m.from(e.selection.getStart(!0))}))},cN=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Sp.getFontStyleValues(e),i=Sp.getFontSizeClasses(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},fN=function(e){var t=e.split(/\s*,\s*/);return I(t,(function(e){return-1===e.indexOf(" ")||nt(e,'"')||nt(e,"'")?e:'"'+e+'"'})).join(",")},dN=function(e,t){var n=cN(e,t);e.formatter.toggle("fontname",{value:fN(n)}),e.nodeChanged()},hN=function(e){return uN(e).fold((function(){return sN(e).map((function(t){return aN.getFontFamily(e.getBody(),t)})).getOr("")}),(function(t){return aN.getFontFamily(e.getBody(),t)}))},pN=function(e,t){e.formatter.toggle("fontsize",{value:cN(e,t)}),e.nodeChanged()},gN=function(e){return uN(e).fold((function(){return sN(e).map((function(t){return aN.getFontSize(e.getBody(),t)})).getOr("")}),(function(t){return aN.getFontSize(e.getBody(),t)}))},mN=Fr.each,vN=Fr.map,yN=Fr.inArray,bN=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o,a=!1,s=this;if(!s.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?bg.restore(s.editor):s.editor.focus(),r=s.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;if(o=e.toLowerCase(),i=s.commands.exec[o])return i(o,t,n),s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(mN(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),a=!0,!1})),a)return a;if(s.editor.theme&&s.editor.theme.execCommand&&s.editor.theme.execCommand(e,t,n))return s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=s.editor.getDoc().execCommand(e,t,n)}catch(l){}return!!a&&(s.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){var n=this;t=t||"exec",mN(e,(function(e,r){mN(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");mr.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),mN("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,i;t.execNativeCommand(n),r=e.dom.getParent(e.selection.getNode(),"ol,ul"),r&&(i=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(i.nodeName)&&(t.storeSelection(),e.dom.split(i,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){dN(e,r)},FontSize:function(t,n,r){pN(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){YL.insertAtCaret(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){QP.insert(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){EM(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var i;"string"===typeof r&&(r={href:r}),i=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),_e.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){JL.deleteCommand(e)},forwardDelete:function(){JL.forwardDeleteCommand(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return PP.insert(e,r),!0}});var n=function(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=vN(n,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==yN(r,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return OM(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return hN(e)}),this),t.addQueryValueHandler("FontSize",(function(){return gN(e)}),this)},e}(),_N=Fr.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),wN=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||c}return e.isNative=function(e){return!!_N[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,i,o;if(e=e.toLowerCase(),t=t||{},t.type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=f},t.stopPropagation=function(){t.isPropagationStopped=f},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=f},t.isDefaultPrevented=c,t.isPropagationStopped=c,t.isImmediatePropagationStopped=c),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e],n)for(r=0,i=n.length;r<i;r++){if(o=n[r],o.once&&this.off(e,o.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===o.func.call(this.scope,t))return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var i,o,a;if(!1===t&&(t=c),t){var s={func:t};r&&Fr.extend(s,r),o=e.toLowerCase().split(" "),a=o.length;while(a--)e=o[a],i=this.bindings[e],i||(i=this.bindings[e]=[],this.toggleEvent(e,!0)),n?i.unshift(s):i.push(s)}return this},e.prototype.off=function(e,t){var n,r,i,o,a;if(e){o=e.toLowerCase().split(" "),n=o.length;while(n--){if(e=o[n],r=this.bindings[e],!e){for(i in this.bindings)this.toggleEvent(i,!1),delete this.bindings[i];return this}if(r){if(t){a=r.length;while(a--)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r)}else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}}else{for(e in this.bindings)this.toggleEvent(e,!1);this.bindings={}}return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),xN=function(e){return e._eventDispatcher||(e._eventDispatcher=new wN({scope:e,toggleEvent:function(t,n){wN.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},ON={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=xN(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return xN(this).on(e,t,n)},off:function(e,t){return xN(this).off(e,t)},once:function(e,t){return xN(this).once(e,t)},hasEventListeners:function(e){return xN(this).has(e)}},SN=Ms.DOM,CN=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=SN.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},kN=function(e){return!e.hidden&&!eL(e)},EN=function(e,t,n){kN(e)?e.fire(t,n):eL(e)&&iL(n)},AN=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=CN(e,t),e.settings.event_root){if(TE||(TE={},e.editorManager.on("removeEditor",(function(){var t;if(!e.editorManager.activeEditor&&TE){for(t in TE)e.dom.unbind(CN(e,t));TE=null}}))),TE[t])return;r=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||SN.isChildOf(r,a))&&EN(i[o],t,n)}},TE[t]=r,SN.bind(n,t,r)}else r=function(n){EN(e,t,n)},SN.bind(n,t,r),e.delegates[t]=r},TN=Q(Q({},ON),{bindPendingEventDelegates:function(){var e=this;Fr.each(e._pendingNativeEvents,(function(t){AN(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?AN(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(CN(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(CN(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}}),DN=Fr.each,MN=Fr.explode,PN={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},IN=Fr.makeMap("alt,ctrl,shift,meta,access"),jN=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(DN(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i,o=this;return i=n,"string"===typeof n?n=function(){o.editor.execCommand(i,!1,null)}:Fr.isArray(i)&&(n=function(){o.editor.execCommand(i[0],i[1],i[2])}),DN(MN(Fr.trim(e)),(function(e){var i=o.createShortcut(e,t,n,r);o.shortcuts[i.id]=i})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.parseShortcut=function(e){var t,n,r={};for(n in DN(MN(e.toLowerCase(),"+"),(function(e){e in IN?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=PN[e]||e.toUpperCase().charCodeAt(0))})),t=[r.keyCode],IN)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,mr.mac?r.ctrl=!0:r.shift=!0),r.meta&&(mr.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var i;return i=Fr.map(MN(e,">"),this.parseShortcut),i[i.length-1]=Fr.extend(i[i.length-1],{func:n,scope:r||this.editor}),Fr.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),LN=Fr.each,NN=Fr.trim,RN="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),BN={ftp:21,http:80,https:443,mailto:25},$N=function(){function e(t,r){t=NN(t),this.settings=r||{};var i=this.settings.base_uri,o=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))o.source=t;else{var a=0===t.indexOf("//");if(0!==t.indexOf("/")||a||(t=(i&&i.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var s=this.settings.base_uri?this.settings.base_uri.path:new e(n.document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+o.toAbsPath(s,t);else{var l=/([^#?]*)([#?]?.*)/.exec(t);t=(i&&i.protocol||"http")+"://mce_host"+o.toAbsPath(s,l[1])+l[2]}}t=t.replace(/@@/g,"(mce_at)");var u=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);LN(RN,(function(e,t){var n=u[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),o[e]=n})),i&&(o.protocol||(o.protocol=i.protocol),o.userInfo||(o.userInfo=i.userInfo),o.port||"mce_host"!==o.host||(o.port=i.port),o.host&&"mce_host"!==o.host||(o.host=i.host),o.source=""),a&&(o.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=BN[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i,o=0,a="",s=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),s.length>=n.length)for(r=0,i=s.length;r<i;r++)if(r>=n.length||s[r]!==n[r]){o=r+1;break}if(s.length<n.length)for(r=0,i=n.length;r<i;r++)if(r>=s.length||s[r]!==n[r]){o=r+1;break}if(1===o)return t;for(r=0,i=s.length-(o-1);r<i;r++)a+="../";for(r=o-1,i=n.length;r<i;r++)a+=r!==o-1?"/"+n[r]:n[r];return a},e.prototype.toAbsPath=function(e,t){var n,r,i,o=0,a=[];r=/\/$/.test(t)?"/":"";var s=e.split("/"),l=t.split("/");for(LN(s,(function(e){e&&a.push(e)})),s=a,n=l.length-1,a=[];n>=0;n--)0!==l[n].length&&"."!==l[n]&&(".."!==l[n]?o>0?o--:a.push(l[n]):o++);return n=s.length-o,i=n<=0?a.reverse().join("/"):s.slice(0,n).join("/")+"/"+a.reverse().join("/"),0!==i.indexOf("/")&&(i="/"+i),r&&i.lastIndexOf("/")!==i.length-1&&(i+=r),i},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),FN=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=Q(Q({},r),{type:t})}},l=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:l,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},zN=function(){var e=FN();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},qN=Ms.DOM,UN=Fr.extend,HN=Fr.each,VN=Fr.resolve,WN=mr.ie,KN=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,UN(this,TN),this.settings=Km(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&($s.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ms.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),el.languageLoad=this.settings.language_load,el.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new $N(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new jN(this),this.editorCommands=new bN(this),this.settings.cache_suffix&&(mr.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:zN()};var i=this,o=cL(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Qa.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){Hj.render(this)},e.prototype.focus=function(e){Qg.focus(this,e)},e.prototype.hasFocus=function(){return Qg.hasFocus(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?VN(r):0,o=VN(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,Array.prototype.slice.call(arguments,1))},e.prototype.translate=function(e){return Zs.translate(e)},e.prototype.getParam=function(e,t,n){return Zm(this,e,t,n)},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(qN.show(e.getContainer()),qN.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(WN&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(qN.hide(e.getContainer()),qN.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=_e.isTextareaOrInput(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,_e.isTextareaOrInput(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=qN.getParent(r.id,"form"))&&HN(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return om(this,e,t)},e.prototype.getContent=function(e){return Ap(this,e)},e.prototype.insertContent=function(e,t){t&&(e=UN({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?om(this,this.startContent,{format:"raw"}):om(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=qN.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=qN.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){var t,n=this,r=n.settings,i=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),HN(i.select("table,a",e),(function(e){var o;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",o=i.getAttrib(e,"border"),void(o&&"0"!==o||!n.hasVisual?i.removeClass(e,t):i.addClass(e,t));case"A":return void(i.getAttrib(e,"href")||(o=i.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",o&&n.hasVisual?i.addClass(e,t):i.removeClass(e,t)))}})),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},e.prototype.remove=function(){bm(this)},e.prototype.destroy=function(e){_m(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),GN=Ms.DOM,YN=Fr.explode,XN=Fr.each,ZN=Fr.extend,QN=0,JN=!1,eR=[],tR=[],nR=function(e){return"length"!==e},rR=function(e){var t=e.type;XN(lR.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},iR=function(e){e!==JN&&(e?Qa(window).on("resize scroll",rR):Qa(window).off("resize scroll",rR),JN=e)},oR=function(e){var t=tR;delete eR[e.id];for(var n=0;n<eR.length;n++)if(eR[n]===e){eR.splice(n,1);break}return tR=R(tR,(function(t){return e!==t})),lR.activeEditor===e&&(lR.activeEditor=tR.length>0?tR[0]:null),lR.focusedEditor===e&&(lR.focusedEditor=null),t.length!==tR.length},aR=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(oR(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},sR="CSS1Compat"!==n.document.compatMode,lR=Q(Q({},ON),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Qa,majorVersion:"5",minorVersion:"1.0",releaseDate:"2019-10-17",editors:eR,i18n:Zs,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,r=this,i="";t=$N.getDocumentBaseUrl(n.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var o=window.tinymce||window.tinyMCEPreInit;if(o)e=o.base||o.baseURL,i=o.suffix;else{for(var a=n.document.getElementsByTagName("script"),s=0;s<a.length;s++){var l=a[s].src||"";if(""!==l){var u=l.substring(l.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(l)){-1!==u.indexOf(".min")&&(i=".min"),e=l.substring(0,l.lastIndexOf("/"));break}}}if(!e&&n.document.currentScript){l=n.document.currentScript.src;-1!==l.indexOf(".min")&&(i=".min"),e=l.substring(0,l.lastIndexOf("/"))}}r.baseURL=new $N(t).toAbsolute(e),r.documentBaseURL=t,r.baseURI=new $N(r.baseURL),r.suffix=i,Rg.setup(r)},overrideDefaults:function(e){var t,n;t=e.base_url,t&&this._setBaseUrl(t),n=e.suffix,e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;for(var i in r)el.PluginManager.urls[i]=r[i]},init:function(e){var t,r,i=this;r=Fr.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");var o=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},a=function(e){var t=e.id;return t||(t=e.name,t=t&&!GN.get(t)?e.name:GN.uniqueId(),e.setAttribute("id",t)),t},s=function(t){var n=e[t];if(n)return n.apply(i,Array.prototype.slice.call(arguments,2))},l=function(e,t){return t.constructor===RegExp?t.test(e.className):GN.hasClass(e,t)},u=function(e){var t,r=[];if(mr.browser.isIE()&&mr.browser.version.major<11)return Cv.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(sR)return Cv.initError("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return XN(e.types,(function(e){r=r.concat(GN.select(e.selector))})),r;if(e.selector)return GN.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":t=e.elements||"",t.length>0&&XN(YN(t),(function(e){var t;(t=GN.get(e))?r.push(t):XN(n.document.forms,(function(t){XN(t.elements,(function(t){t.name===e&&(e="mce_editor_"+QN++,GN.setAttrib(t,"id",e),r.push(t))}))}))}));break;case"textareas":case"specific_textareas":XN(GN.select("textarea"),(function(t){e.editor_deselector&&l(t,e.editor_deselector)||e.editor_selector&&!l(t,e.editor_selector)||r.push(t)}));break}return r},c=function(e){t=e},f=function(){var t,n=0,r=[],l=function(e,o,a){var s=new KN(e,o,i);r.push(s),s.on("init",(function(){++n===t.length&&c(r)})),s.targetElm=s.targetElm||a,s.render()};GN.unbind(window,"ready",f),s("onpageload"),t=Qa.unique(u(e)),e.types?XN(e.types,(function(n){Fr.each(t,(function(t){return!GN.is(t,n.selector)||(l(a(t),ZN({},e,n),t),!1)}))})):(Fr.each(t,(function(e){aR(i.get(e.id))})),t=Fr.grep(t,(function(e){return!i.get(e.id)})),0===t.length?c([]):XN(t,(function(t){o(e,t)?Cv.initError("Could not initialize inline editor on invalid inline target element",t):l(a(t),e,t)})))};return i.settings=e,GN.bind(window,"ready",f),new er((function(e){t?e(t):c=function(t){e(t)}}))},get:function(e){return 0===arguments.length?tR.slice(0):b(e)?F(tR,(function(t){return t.id===e})).getOr(null):C(e)&&tR[e]?tR[e]:null},add:function(e){var t,n=this;return t=eR[e.id],t===e||(null===n.get(e.id)&&(nR(e.id)&&(eR[e.id]=e),eR.push(e),tR.push(e)),iR(!0),n.activeEditor=e,n.fire("AddEditor",{editor:e}),DE||(DE=function(e){var t=n.fire("BeforeUnload");if(t.returnValue)return e.preventDefault(),e.returnValue=t.returnValue,t.returnValue},window.addEventListener("beforeunload",DE))),e},createEditor:function(e,t){return this.add(new KN(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!b(e))return n=e,x(r.get(n.id))?null:(oR(n)&&r.fire("RemoveEditor",{editor:n}),0===tR.length&&window.removeEventListener("beforeunload",DE),n.remove(),iR(tR.length>0),n);XN(GN.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=tR.length-1;t>=0;t--)r.remove(tR[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new KN(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",0,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){XN(tR,(function(e){e.save()}))},addI18n:function(e,t){Zs.add(e,t)},translate:function(e){return Zs.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new $N(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new $N(this.baseURL)}});function uR(e){var t=function(t,n){return ph.walk(e,t,n)},n=iw,r=function(t){return XC.normalize(e,t).fold(o(!1),(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}}lR.setup(),function(e){e.compareRanges=cy.isEq,e.getCaretRangeFromPoint=WS.fromPoint,e.getSelectedNode=Du,e.getNode=Mu}(uR||(uR={}));var cR,fR,dR=uR,hR=function(e,t,r){void 0===r&&(r=1e3);var i=!1,o=null,a=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];i||(i=!0,null!==o&&(n.clearTimeout(o),o=null),e.apply(null,t))}},s=a(e),l=a(t),u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i||null!==o||(o=n.setTimeout((function(){return l.apply(null,e)}),r))};return{start:u,resolve:s,reject:l}},pR=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new er((function(e,a){var s=hR(e,a);t[n]=s.resolve,$s.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=er.resolve(r)};return{load:n,add:r}},gR=pR(),mR=Math.min,vR=Math.max,yR=Math.round,bR=function(e,t,n){var r,i,o,a,s,l;return r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,l=t.h,n=(n||"").split(""),"b"===n[0]&&(i+=l),"r"===n[1]&&(r+=s),"c"===n[0]&&(i+=yR(l/2)),"c"===n[1]&&(r+=yR(s/2)),"b"===n[3]&&(i-=a),"r"===n[4]&&(r-=o),"c"===n[3]&&(i-=yR(a/2)),"c"===n[4]&&(r-=yR(o/2)),SR(r,i,o,a)},_R=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=bR(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},wR=function(e,t,n){return SR(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},xR=function(e,t){var n,r,i,o;return n=vR(e.x,t.x),r=vR(e.y,t.y),i=mR(e.x+e.w,t.x+t.w),o=mR(e.y+e.h,t.y+t.h),i-n<0||o-r<0?null:SR(n,r,i-n,o-r)},OR=function(e,t,n){var r,i,o,a,s,l,u,c,f,d;return s=e.x,l=e.y,u=e.x+e.w,c=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=vR(0,t.x-s),i=vR(0,t.y-l),o=vR(0,u-f),a=vR(0,c-d),s+=r,l+=i,n&&(u+=r,c+=i,s-=o,l-=a),u-=o,c-=a,SR(s,l,u-s,c-l)},SR=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},CR=function(e){return SR(e.left,e.top,e.width,e.height)},kR={inflate:wR,relativePosition:bR,findBestRelativePosition:_R,intersect:xR,clamp:OR,create:SR,fromClientRect:CR},ER=Fr.each,AR=Fr.extend,TR=function(){};TR.extend=cR=function(e){var t,n,r,i=this,o=i.prototype,a=function(){var e,t,n,r=this;if(!fR&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},s=function(){return this},l=function(e,t){return function(){var n,r=this,i=r._super;return r._super=o[e],n=t.apply(r,arguments),r._super=i,n}};for(n in fR=!0,t=new i,fR=!1,e.Mixins&&(ER(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),o.Mixins&&(e.Mixins=o.Mixins.concat(e.Mixins))),e.Methods&&ER(e.Methods.split(","),(function(t){e[t]=s})),e.Properties&&ER(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&ER(e.Statics,(function(e,t){a[t]=e})),e.Defaults&&o.Defaults&&(e.Defaults=AR({},o.Defaults,e.Defaults)),e)r=e[n],"function"===typeof r&&o[n]?t[n]=l(n,r):t[n]=r;return a.prototype=t,a.constructor=a,a.extend=cR,a};var DR,MR=Math.min,PR=Math.max,IR=Math.round,jR=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o,a,s,l;return r=0,i=0,o=0,e/=255,t/=255,n/=255,s=MR(e,MR(t,n)),l=PR(e,PR(t,n)),s===l?(o=s,{h:0,s:0,v:100*o}):(a=e===s?t-n:n===s?e-t:n-e,r=e===s?3:n===s?1:5,r=60*(r-a/(l-s)),i=(l-s)/l,o=l,{h:IR(r),s:IR(100*i),v:IR(100*o)})},a=function(e,t,o){var a,s,l,u;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=PR(0,MR(t,1)),o=PR(0,MR(o,1)),0!==t){switch(a=e/60,s=o*t,l=s*(1-Math.abs(a%2-1)),u=o-s,Math.floor(a)){case 0:n=s,r=l,i=0;break;case 1:n=l,r=s,i=0;break;case 2:n=0,r=s,i=l;break;case 3:n=0,r=l,i=s;break;case 4:n=l,r=0,i=s;break;case 5:n=s,r=0,i=l;break;default:n=r=i=0}n=IR(255*(n+u)),r=IR(255*(r+u)),i=IR(255*(i+u))}else n=r=i=IR(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},l=function(){return{r:n,g:r,b:i}},u=function(){return o(n,r,i)},c=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&c(e),t.toRgb=l,t.toHsv=u,t.toHex=s,t.parse=c,t},LR=function(e){var t=JSON.stringify(e);return b(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},NR={serialize:LR,parse:function(e){try{return JSON.parse(e)}catch(t){}}},RR={callbacks:{},count:0,send:function(e){var t=this,n=Ms.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},BR=Q(Q({},ON),{send:function(e){var t,r=0,i=function(){!e.async||4===t.readyState||r++>1e4?(e.success&&r<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):sr.setTimeout(i,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",BR.fire("beforeInitialize",{settings:e}),t=new n.XMLHttpRequest,t){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Fr.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=BR.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return i();sr.setTimeout(i,10)}}}),$R=Fr.extend,FR=function(){function e(e){this.settings=$R({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=$R(this.settings,e);r.success=function(e,i){e=NR.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=NR.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",BR.send(r)},e}(),zR=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{DR=n.window.localStorage}catch(KR){DR=zR()}var qR=DR,UR={geom:{Rect:kR},util:{Promise:er,Delay:sr,Tools:Fr,VK:by,URI:$N,Class:TR,EventDispatcher:wN,Observable:ON,I18n:Zs,XHR:BR,JSON:NR,JSONRequest:FR,JSONP:RR,LocalStorage:qR,Color:jR},dom:{EventUtils:xo,Sizzle:aa,DomQuery:Qa,TreeWalker:Ja,DOMUtils:Ms,ScriptLoader:$s,RangeUtils:dR,Serializer:iS,ControlSelection:cS,BookmarkManager:aS,Selection:mk,Event:xo.Event},html:{Styles:uo,Entities:Mi,Node:Dh,Schema:qi,SaxParser:Bh,DomParser:XO,Writer:Dp,Serializer:Mp},Env:mr,AddOnManager:el,Annotator:kh,Formatter:CO,UndoManager:$_,EditorCommands:bN,WindowManager:pv,NotificationManager:dv,EditorObservable:TN,Shortcuts:jN,Editor:KN,FocusManager:wg,EditorManager:lR,DOM:Ms.DOM,ScriptLoader:$s.ScriptLoader,PluginManager:el.PluginManager,ThemeManager:el.ThemeManager,IconManager:Av,Resource:gR,trim:Fr.trim,isArray:Fr.isArray,is:Fr.is,toArray:Fr.toArray,makeMap:Fr.makeMap,each:Fr.each,map:Fr.map,grep:Fr.grep,inArray:Fr.inArray,extend:Fr.extend,create:Fr.create,walk:Fr.walk,createNS:Fr.createNS,resolve:Fr.resolve,explode:Fr.explode,_addCacheSuffix:Fr._addCacheSuffix,isOpera:mr.opera,isWebKit:mr.webkit,isIE:mr.ie,isGecko:mr.gecko,isMac:mr.mac},HR=Fr.extend(lR,UR),VR=function(t){try{e.exports=t}catch(n){}},WR=function(e){window.tinymce=e,window.tinyMCE=e};WR(HR),VR(HR)})(window)}).call(this,n("c8ba"))},e62d:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.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 r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("da84"),c=n("d066"),f=n("fea9"),d=n("6eeb"),h=n("e2cc"),p=n("d44e"),g=n("2626"),m=n("861d"),v=n("1c0b"),y=n("19aa"),b=n("c6b6"),_=n("8925"),w=n("2266"),x=n("1c7e"),O=n("4840"),S=n("2cf49").set,C=n("b575"),k=n("cdf9"),E=n("44de"),A=n("f069"),T=n("e667"),D=n("69f3"),M=n("94ca"),P=n("b622"),I=n("2d00"),j=P("species"),L="Promise",N=D.get,R=D.set,B=D.getterFor(L),$=f,F=u.TypeError,z=u.document,q=u.process,U=c("fetch"),H=A.f,V=H,W="process"==b(q),K=!!(z&&z.createEvent&&u.dispatchEvent),G="unhandledrejection",Y="rejectionhandled",X=0,Z=1,Q=2,J=1,ee=2,te=M(L,(function(){var e=_($)!==String($);if(!e){if(66===I)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!$.prototype["finally"])return!0;if(I>=51&&/native code/.test($))return!1;var t=$.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[j]=n,!(t.then((function(){}))instanceof n)})),ne=te||!x((function(e){$.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ie=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;C((function(){var i=t.value,o=t.state==Z,a=0;while(r.length>a){var s,l,u,c=r[a++],f=o?c.ok:c.fail,d=c.resolve,h=c.reject,p=c.domain;try{f?(o||(t.rejection===ee&&le(e,t),t.rejection=J),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),u=!0)),s===c.promise?h(F("Promise-chain cycle")):(l=re(s))?l.call(s,d,h):d(s)):h(i)}catch(g){p&&!u&&p.exit(),h(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ae(e,t)}))}},oe=function(e,t,n){var r,i;K?(r=z.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(i=u["on"+e])?i(r):e===G&&E("Unhandled promise rejection",n)},ae=function(e,t){S.call(u,(function(){var n,r=t.value,i=se(t);if(i&&(n=T((function(){W?q.emit("unhandledRejection",r,e):oe(G,e,r)})),t.rejection=W||se(t)?ee:J,n.error))throw n.value}))},se=function(e){return e.rejection!==J&&!e.parent},le=function(e,t){S.call(u,(function(){W?q.emit("rejectionHandled",e):oe(Y,e,t.value)}))},ue=function(e,t,n,r){return function(i){e(t,n,i,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=Q,ie(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw F("Promise can't be resolved itself");var i=re(n);i?C((function(){var r={done:!1};try{i.call(n,ue(fe,e,r,t),ue(ce,e,r,t))}catch(o){ce(e,r,o,t)}})):(t.value=n,t.state=Z,ie(e,t,!1))}catch(o){ce(e,{done:!1},o,t)}}};te&&($=function(e){y(this,$,L),v(e),r.call(this);var t=N(this);try{e(ue(fe,this,t),ue(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){R(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=h($.prototype,{then:function(e,t){var n=B(this),r=H(O(this,$));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=W?q.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ie(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=N(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(ce,e,t)},A.f=H=function(e){return e===$||e===o?new i(e):V(e)},l||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new $((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k($,U.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:$}),p($,L,!1,!0),g(L),o=c(L),s({target:L,stat:!0,forced:te},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:L,stat:!0,forced:l||te},{resolve:function(e){return k(l&&this===o?$:this,e)}}),s({target:L,stat:!0,forced:ne},{all:function(e){var t=this,n=H(t),r=n.resolve,i=n.reject,o=T((function(){var n=v(t.resolve),o=[],a=0,s=1;w(e,(function(e){var l=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=H(t),r=n.reject,i=T((function(){var i=v(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e772:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n("8122")},33:function(e,t,n){"use strict";var r=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)},i=[];r._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},u={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,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[i]===t[i])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,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},c=u,f=n(0),d=Object(f["a"])(c,r,i,!1,null,null,null);d.options.__file="packages/select/src/option.vue";t["a"]=d.exports},4:function(e,t){e.exports=n("d010")},54:function(e,t,n){"use strict";n.r(t);var r=n(33);r["a"].install=function(e){e.component(r["a"].name,r["a"])},t["default"]=r["a"]}})},e86a:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"c",(function(){return p}));var r=n("9850"),i=n("d51b"),o=n("726e"),a={};function s(e,t){t=t||o["a"];var n=a[t];n||(n=a[t]=new i["a"](500));var r=n.get(e);return null==r&&(r=o["d"].measureText(e,t).width,n.put(e,r)),r}function l(e,t,n,i){var o=s(e,t),a=d(t),l=c(0,o,n),u=f(0,a,i),h=new r["a"](l,u,o,a);return h}function u(e,t,n,i){var o=((e||"")+"").split("\n"),a=o.length;if(1===a)return l(o[0],t,n,i);for(var s=new r["a"](0,0,0,0),u=0;u<o.length;u++){var c=l(o[u],t,n,i);0===u?s.copy(c):s.union(c)}return s}function c(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function f(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function d(e){return s("国",e)}function h(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=h(r[0],n.width),u+=h(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}},e887:function(e,t,n){"use strict";var r=n("6d8b"),i=n("2dc5"),o=n("8918"),a=n("625e"),s=n("e0d3"),l=n("7d6c"),u=n("9fbc"),c=n("cccd"),f=n("2306"),d=s["o"](),h=Object(c["a"])(),p=function(){function e(){this.group=new i["a"],this.uid=o["c"]("viewChart"),this.renderTask=Object(u["a"])({plan:v,reset:y}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&m(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&m(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Object(f["traverseElements"])(this.group,e)},e.markUpdateMethod=function(e,t){d(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function g(e,t,n){e&&Object(l["y"])(e)&&("emphasis"===t?l["r"]:l["C"])(e,n)}function m(e,t,n){var i=s["u"](e,t),o=t&&null!=t.highlightKey?Object(l["v"])(t.highlightKey):null;null!=i?Object(r["each"])(s["r"](i),(function(t){g(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){g(e,n,o)}))}function v(e){return h(e.model)}function y(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&d(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),b[l]}a["b"](p,["dispose"]),a["c"](p);var b={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)}}};t["a"]=p},e893:function(e,t,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},e974:function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5128");function a(e){return e&&e.__esModule?e:{default:e}}var s=i.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,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(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(r,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 r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},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)}}},e9c4:function(e,t,n){var r=n("23e7"),i=n("d066"),o=n("d039"),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return l.test(e)&&!u.test(i)||u.test(e)&&!l.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},f=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:f},{stringify:function(e,t,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,c):r}})},ea34:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},ec6f:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return v}));var r=n("6d8b"),i=n("07fd"),o=n("e0d3"),a=n("0f99"),s=function(){function e(e){this.data=e.data||(e.sourceFormat===i["d"]?{}:[]),this.sourceFormat=e.sourceFormat||i["h"],this.seriesLayoutBy=e.seriesLayoutBy||i["a"],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 r=t[n];null==r.type&&Object(a["b"])(this,n)===a["a"].Must&&(r.type="ordinal")}}return e}();function l(e){return e instanceof s}function u(e,t,n){n=n||d(e);var i=t.seriesLayoutBy,o=h(e,n,i,t.sourceHeader,t.dimensions),a=new s({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(r["clone"])(t)});return a}function c(e){return new s({data:e,sourceFormat:Object(r["isTypedArray"])(e)?i["g"]:i["f"]})}function f(e){return new s({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(r["clone"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function d(e){var t=i["h"];if(Object(r["isTypedArray"])(e))t=i["g"];else if(Object(r["isArray"])(e)){0===e.length&&(t=i["c"]);for(var n=0,o=e.length;n<o;n++){var a=e[n];if(null!=a){if(Object(r["isArray"])(a)||Object(r["isTypedArray"])(a)){t=i["c"];break}if(Object(r["isObject"])(a)){t=i["e"];break}}}}else if(Object(r["isObject"])(e))for(var s in e)if(Object(r["hasOwn"])(e,s)&&Object(r["isArrayLike"])(e[s])){t=i["d"];break}return t}function h(e,t,n,a,s){var l,u;if(!e)return{dimensionsDefine:g(s),startIndex:u,dimensionsDetectedCount:l};if(t===i["c"]){var c=e;"auto"===a||null==a?m((function(e){null!=e&&"-"!==e&&(Object(r["isString"])(e)?null==u&&(u=1):u=0)}),n,c,10):u=Object(r["isNumber"])(a)?a:a?1:0,s||1!==u||(s=[],m((function(e,t){s[t]=null!=e?e+"":""}),n,c,1/0)),l=s?s.length:n===i["b"]?c.length:c[0]?c[0].length:null}else if(t===i["e"])s||(s=p(e));else if(t===i["d"])s||(s=[],Object(r["each"])(e,(function(e,t){s.push(t)})));else if(t===i["f"]){var f=Object(o["h"])(e[0]);l=Object(r["isArray"])(f)&&f.length||1}else i["g"];return{startIndex:u,dimensionsDefine:g(s),dimensionsDetectedCount:l}}function p(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return Object(r["keys"])(t)}function g(e){if(e){var t=Object(r["createHashMap"])();return Object(r["map"])(e,(function(e,n){e=Object(r["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 o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i}))}}function m(e,t,n,r){if(t===i["b"])for(var o=0;o<n.length&&o<r;o++)e(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<r;o++)e(a[o],o)}}function v(e){var t=e.sourceFormat;return t===i["e"]||t===i["d"]}},eda2:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return c})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"k",(function(){return b}));var r=n("6d8b"),i=n("65ed"),o=n("3842"),a=n("f876");function s(e){if(!Object(o["k"])(e))return r["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 l(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 u=r["normalizeCssArray"];function c(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(e){return e&&r["trim"](e)?e:"-"}function u(e){return!(null==e||isNaN(e)||!isFinite(e))}var c="time"===t,f=e instanceof Date;if(c||f){var d=c?Object(o["p"])(e):e;if(!isNaN(+d))return Object(a["h"])(d,i,n);if(f)return"-"}if("ordinal"===t)return r["isStringSafe"](e)?l(e):r["isNumber"](e)&&u(e)?e+"":"-";var h=Object(o["o"])(e);return u(h)?s(h):r["isStringSafe"](e)?l(e):"boolean"===typeof e?e+"":"-"}var f=["a","b","c","d","e","f","g"],d=function(e,t){return"{"+e+(null==t?"":t)+"}"};function h(e,t,n){r["isArray"](t)||(t=[t]);var o=t.length;if(!o)return"";for(var a=t[0].$vars||[],s=0;s<a.length;s++){var l=f[s];e=e.replace(d(l),d(l,0))}for(var u=0;u<o;u++)for(var c=0;c<a.length;c++){var h=t[u][a[c]];e=e.replace(d(f[c],u),n?Object(i["a"])(h):h)}return e}function p(e,t,n){return r["each"](t,(function(t,r){e=e.replace("{"+r+"}",n?Object(i["a"])(t):t)})),e}function g(e,t){var n=r["isString"](e)?{color:e,extraCssText:t}:e||{},o=n.color,a=n.type;t=n.extraCssText;var s=n.renderMode||"html";if(!o)return"";if("html"===s)return"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Object(i["a"])(o)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Object(i["a"])(o)+";"+(t||"")+'"></span>';var l=n.markerId||"markerX";return{renderMode:s,content:"{"+l+"|}  ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function m(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Object(o["p"])(t),i=n?"getUTC":"get",s=r[i+"FullYear"](),l=r[i+"Month"]()+1,u=r[i+"Date"](),c=r[i+"Hours"](),f=r[i+"Minutes"](),d=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return e=e.replace("MM",Object(a["y"])(l,2)).replace("M",l).replace("yyyy",s).replace("yy",Object(a["y"])(s%100+"",2)).replace("dd",Object(a["y"])(u,2)).replace("d",u).replace("hh",Object(a["y"])(c,2)).replace("h",c).replace("mm",Object(a["y"])(f,2)).replace("m",f).replace("ss",Object(a["y"])(d,2)).replace("s",d).replace("SSS",Object(a["y"])(h,3)),e}function v(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function y(e,t){return t=t||"transparent",r["isString"](e)?e:r["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function b(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},edae:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c}));var r="[ECharts] ",i={},o="undefined"!==typeof console&&console.warn&&console.log;function a(e,t,n){if(o){if(n){if(i[t])return;i[t]=!0}console[e](r+t)}}function s(e,t){a("warn",e,t)}function l(e,t){a("error",e,t)}function u(e){0}function c(e){throw new Error(e)}},eedf:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},96:function(e,t,n){"use strict";n.r(t);var r=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()])},i=[];r._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,r,i,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var u=l.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},ef08: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)},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r={setContent:t,getContent:n},i=function(e){var t=r.getContent(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:t},onSubmit:function(t){r.setContent(e,t.getData().code),t.close()}})},o={open:i},a=function(e){e.addCommand("mceCodeEditor",(function(){o.open(e)}))},s={register:a},l=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return o.open(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return o.open(e)}})},u={register:l};function c(){e.add("code",(function(e){return s.register(e),u.register(e),{}}))}c()})()},ef59:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v}));var r=n("4319"),i=n("22d1"),o={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",custom:"Custom chart",chart:"Chart"}},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:". "}}}},a={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:"旭日图",custom:"自定义图表",chart:"图表"}},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:""}}}},s=n("6d8b"),l="ZH",u="EN",c=u,f={},d={},h=i["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||c).toUpperCase();return e.indexOf(l)>-1?l:c}():c;function p(e,t){e=e.toUpperCase(),d[e]=new r["a"](t),f[e]=t}function g(e){if(Object(s["isString"])(e)){var t=f[e.toUpperCase()]||{};return e===l||e===u?Object(s["clone"])(t):Object(s["merge"])(Object(s["clone"])(t),Object(s["clone"])(f[c]),!1)}return Object(s["merge"])(Object(s["clone"])(e),Object(s["clone"])(f[c]),!1)}function m(e){return d[e]}function v(){return d[c]}p(u,o),p(l,a)},efec:function(e,t,n){var r=n("9112"),i=n("51eb"),o=n("b622"),a=o("toPrimitive"),s=Date.prototype;a in s||r(s,a,i)},f069:function(e,t,n){"use strict";var r=n("1c0b"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},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:"暂无数据"}}}},f183:function(e,t,n){var r=n("d012"),i=n("861d"),o=n("5135"),a=n("9bf2").f,s=n("90e3"),l=n("bb2f"),u=s("meta"),c=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},h=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},p=function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},g=function(e){return l&&m.REQUIRED&&f(e)&&!o(e,u)&&d(e),e},m=e.exports={REQUIRED:!1,fastKey:h,getWeakData:p,onFreeze:g};r[u]=!0},f3ad:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},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 r=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)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),l=n.n(s),u=void 0,c="\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",f=["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 d(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=f.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=d(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";"+c),u.value=e.value||e.placeholder||"";var l=u.scrollHeight,f={};"border-box"===a?l+=o:"content-box"===a&&(l-=i),u.value="";var h=u.scrollHeight-i;if(null!==t){var p=h*t;"border-box"===a&&(p=p+i+o),l=Math.max(p,l),f.minHeight=p+"px"}if(null!==n){var g=h*n;"border-box"===a&&(g=g+i+o),l=Math.min(g,l)}return f.height=l+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,f}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,r=e.maxRows;this.textareaCalcStyle=h(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:h(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,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[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)}},y=v,b=n(0),_=Object(b["a"])(y,r,i,!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")}})},f3bb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var r=n("6d8b"),i=n("e0d3");function o(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(r["each"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,o){t=Object(r["extend"])({},t),o.dispatchAction(Object(r["extend"])(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function a(e,t,n,o,a){var s=e+t;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,o=e.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===t){var c=e.getData(),f=Object(i["u"])(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:e.id,name:Object(r["isArray"])(f)?c.getName(f[0]):c.getName(f),selected:Object(r["isString"])(o)?o:Object(r["extend"])({},o)})}}))}function s(e,t,n){e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(a("map","selectchanged",t,r,e),a("pie","selectchanged",t,r,e)):"select"===e.fromAction?(a("map","selected",t,r,e),a("pie","selected",t,r,e)):"unselect"===e.fromAction&&(a("map","unselected",t,r,e),a("pie","unselected",t,r,e))}))}},f494:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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 r(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},88:function(e,t,n){"use strict";n.r(t);var r=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)])},i=[];r._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,u=n(0),c=Object(u["a"])(l,r,i,!1,null,null,null);c.options.__file="packages/radio/src/radio.vue";var f=c.exports;f.install=function(e){e.component(f.name,f)};t["default"]=f}})},f5df:function(e,t,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f6d8:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("6d8b"),i=n("217c"),o=n("2b17"),a=n("e0d3");function s(e){var t,n,s,u,c=e.series,f=e.dataIndex,d=e.multipleSeries,h=c.getData(),p=h.mapDimensionsAll("defaultedTooltip"),g=p.length,m=c.getRawValue(f),v=Object(r["isArray"])(m),y=Object(i["e"])(c,f);if(g>1||v&&!g){var b=l(m,c,f,p,y);t=b.inlineValues,n=b.inlineValueTypes,s=b.blocks,u=b.inlineValues[0]}else if(g){var _=h.getDimensionInfo(p[0]);u=t=Object(o["e"])(h,f,p[0]),n=_.type}else u=t=v?m[0]:m;var w=Object(a["n"])(c),x=w&&c.name||"",O=h.getName(f),S=d?x:O;return Object(i["c"])("section",{header:x,noHeader:d||!w,sortParam:u,blocks:[Object(i["c"])("nameValue",{markerType:"item",markerColor:y,name:S,noName:!Object(r["trim"])(S),value:t,valueType:n,dataIndex:f})].concat(s||[])})}function l(e,t,n,a,s){var l=t.getData(),u=Object(r["reduce"])(e,(function(e,t,n){var r=l.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],f=[],d=[];function h(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(u?d.push(Object(i["c"])("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:e,valueType:n.type})):(c.push(e),f.push(n.type)))}return a.length?Object(r["each"])(a,(function(e){h(Object(o["e"])(l,n,e),e)})):Object(r["each"])(e,h),{inlineValues:c,inlineValueTypes:f,blocks:d}}},f72b:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f}));var r=n("6d8b"),i=n("ec6f"),o=n("07fd"),a=n("0f99"),s=n("04f7"),l=n("d0ce"),u=n("2b17"),c=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,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,u=void 0,c=void 0,f=void 0;if(s){var h=a[0];h.prepareSource(),f=h.getSource(),u=f.data,c=f.sourceFormat,t=[h._getVersionSign()]}else u=l.get("data",!0),c=Object(r["isTypedArray"])(u)?o["g"]:o["f"],t=[];var p=this._getSourceMetaRawOption()||{},g=f&&f.metaRawOption||{},m=Object(r["retrieve2"])(p.seriesLayoutBy,g.seriesLayoutBy)||null,v=Object(r["retrieve2"])(p.sourceHeader,g.sourceHeader),y=Object(r["retrieve2"])(p.dimensions,g.dimensions),b=m!==g.seriesLayoutBy||!!v!==!!g.sourceHeader||y;e=b?[Object(i["b"])(u,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},c)]:[]}else{var _=n;if(s){var w=this._applyTransform(a);e=w.sourceList,t=w.upstreamSignList}else{var x=_.get("source",!0);e=[Object(i["b"])(x,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){var l="";1!==e.length&&h(l)}var u=[],c=[];return Object(r["each"])(e,(function(e){e.prepareSource();var t=e.getSource(a||0),n="";null==a||t||h(n),u.push(t),c.push(e._getVersionSign())})),o?t=Object(s["a"])(o,u,{datasetIndex:n.componentIndex}):null!=a&&(t=[Object(i["a"])(u[0])]),{sourceList:t,upstreamSignList:c}},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 r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new l["b"],a.initData(new u["a"](t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(d(e)){var t=Object(a["f"])(e);return t?[t.getSourceManager()]:[]}return Object(r["map"])(Object(a["e"])(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(d(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function f(e){var t=e.option.transform;t&&Object(r["setAsPrimitive"])(e.option.transform)}function d(e){return"series"===e.mainType}function h(e){throw new Error(e)}},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f876:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"B",(function(){return m})),n.d(t,"y",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"l",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"r",(function(){return x})),n.d(t,"n",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"w",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"o",(function(){return A})),n.d(t,"u",(function(){return T})),n.d(t,"z",(function(){return D})),n.d(t,"s",(function(){return M})),n.d(t,"k",(function(){return P})),n.d(t,"x",(function(){return I})),n.d(t,"g",(function(){return j})),n.d(t,"p",(function(){return L})),n.d(t,"v",(function(){return N})),n.d(t,"A",(function(){return R})),n.d(t,"t",(function(){return B}));var r=n("6d8b"),i=n("3842"),o=n("ef59"),a=n("4319"),s=1e3,l=60*s,u=60*l,c=24*u,f=365*c,d={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}"},h="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:h,hour:h+" "+d.hour,minute:h+" "+d.minute,second:h+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(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 b(e){return e===y(e)}function _(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function w(e,t,n,r){var s=i["p"](e),l=s[C(n)](),u=s[k(n)]()+1,c=Math.floor((u-1)/3)+1,f=s[E(n)](),d=s["get"+(n?"UTC":"")+"Day"](),h=s[A(n)](),p=(h-1)%12+1,g=s[T(n)](),m=s[D(n)](),y=s[M(n)](),b=h>=12?"pm":"am",_=b.toUpperCase(),w=r instanceof a["a"]?r:Object(o["d"])(r||o["a"])||Object(o["c"])(),x=w.getModel("time"),O=x.get("month"),S=x.get("monthAbbr"),P=x.get("dayOfWeek"),I=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,b+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,O[u-1]).replace(/{MMM}/g,S[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(f,2)).replace(/{d}/g,f+"").replace(/{eeee}/g,P[d]).replace(/{ee}/g,I[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function x(e,t,n,i,o){var a=null;if(r["isString"](n))a=n;else if(r["isFunction"](n))a=n(e.value,t,{level:e.level});else{var s=r["extend"]({},d);if(e.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:r["defaults"](n,s):s,c=O(e.value,o);if(u[c])a=u[c];else if(u.inherit){var f=m.indexOf(c);for(l=f-1;l>=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(r["isArray"](a)){var h=null==e.level?0:e.level>=0?e.level:a.length+e.level;h=Math.min(h,a.length-1),a=a[h]}}return w(new Date(e.value),a,o,i)}function O(e,t){var n=i["p"](e),r=n[k(t)]()+1,o=n[E(t)](),a=n[A(t)](),s=n[T(t)](),l=n[D(t)](),u=n[M(t)](),c=0===u,f=c&&0===l,d=f&&0===s,h=d&&0===a,p=h&&1===o,g=p&&1===r;return g?"year":p?"month":h?"day":d?"hour":f?"minute":c?"second":"millisecond"}function S(e,t,n){var o=r["isNumber"](e)?i["p"](e):e;switch(t=t||O(e,n),t){case"year":return o[C(n)]();case"half-year":return o[k(n)]()>=6?1:0;case"quarter":return Math.floor((o[k(n)]()+1)/4);case"month":return o[k(n)]();case"day":return o[E(n)]();case"half-day":return o[A(n)]()/24;case"hour":return o[A(n)]();case"minute":return o[T(n)]();case"second":return o[D(n)]();case"millisecond":return o[M(n)]()}}function C(e){return e?"getUTCFullYear":"getFullYear"}function k(e){return e?"getUTCMonth":"getMonth"}function E(e){return e?"getUTCDate":"getDate"}function A(e){return e?"getUTCHours":"getHours"}function T(e){return e?"getUTCMinutes":"getMinutes"}function D(e){return e?"getUTCSeconds":"getSeconds"}function M(e){return e?"getUTCMilliseconds":"getMilliseconds"}function P(e){return e?"setUTCFullYear":"setFullYear"}function I(e){return e?"setUTCMonth":"setMonth"}function j(e){return e?"setUTCDate":"setDate"}function L(e){return e?"setUTCHours":"setHours"}function N(e){return e?"setUTCMinutes":"setMinutes"}function R(e){return e?"setUTCSeconds":"setSeconds"}function B(e){return e?"setUTCMilliseconds":"setMilliseconds"}},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f934:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"c",(function(){return b}));var r=n("6d8b"),i=n("9850"),o=n("3842"),a=n("eda2"),s=r["each"],l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,f,d=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);f=a+m,f>i||l.newline?(o+=s+n,a=0,f=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=f+n)}))}var f=c;r["curry"](c,"vertical"),r["curry"](c,"horizontal");function d(e,t,n){var r=t.width,i=t.height,s=Object(o["q"])(e.left,r),l=Object(o["q"])(e.top,i),u=Object(o["q"])(e.right,r),c=Object(o["q"])(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=a["i"](n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function h(e,t,n){n=a["i"](n||0);var r=t.width,s=t.height,l=Object(o["q"])(e.left,r),u=Object(o["q"])(e.top,s),c=Object(o["q"])(e.right,r),f=Object(o["q"])(e.bottom,s),d=Object(o["q"])(e.width,r),h=Object(o["q"])(e.height,s),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(d)&&(d=r-c-g-l),isNaN(h)&&(h=s-f-p-u),null!=m&&(isNaN(d)&&isNaN(h)&&(m>r/s?d=.8*r:h=.8*s),isNaN(d)&&(d=m*h),isNaN(h)&&(h=d/m)),isNaN(l)&&(l=r-c-d-g),isNaN(u)&&(u=s-f-h-p),e.left||e.right){case"center":l=r/2-d/2-n[3];break;case"right":l=r-d-g;break}switch(e.top||e.bottom){case"middle":case"center":u=s/2-h/2-n[0];break;case"bottom":u=s-h-p;break}l=l||0,u=u||0,isNaN(d)&&(d=r-g-l-(c||0)),isNaN(h)&&(h=s-p-u-(f||0));var v=new i["a"](l+n[3],u+n[0],d,h);return v.margin=n,v}function p(e,t,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],f=a&&a.boundingMode||"all";if(s=s||e,s.x=e.x,s.y=e.y,!u&&!c)return!1;if("raw"===f)l="group"===e.type?new i["a"](0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();l=l.clone(),l.applyTransform(d)}var p=h(r["defaults"]({width:l.width,height:l.height},t),n,o),g=u?p.x-l.x:0,m=c?p.y-l.y:0;return"raw"===f?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===e&&e.markRedraw(),!0}function g(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function m(e){var t=e.layoutMode||e.constructor.layoutMode;return r["isObject"](t)?t:t?{type:t}:null}function v(e,t,n){var i=n&&n.ignoreSize;!r["isArray"](i)&&(i=[i,i]);var o=l(u[0],0),a=l(u[1],1);function l(n,r){var o={},a=0,l={},u=0,d=2;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(o[e]=l[e]=t[e]),f(o,e)&&a++,f(l,e)&&u++})),i[r])return f(t,n[1])?l[n[2]]=null:f(t,n[2])&&(l[n[1]]=null),l;if(u!==d&&a){if(a>=d)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!c(o,p)&&c(e,p)){o[p]=e[p];break}}return o}return l}function c(e,t){return e.hasOwnProperty(t)}function f(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){s(e,(function(e){t[e]=n[e]}))}d(u[0],e,o),d(u[1],e,a)}function y(e){return b({},e)}function b(e,t){return t&&e&&s(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}},fadd:function(e,t,n){"use strict";function r(e,t,n){var r;while(e){if(t(e)&&(r=e,n))break;e=e.__hostTarget||e.parent}return r}n.d(t,"a",(function(){return r}))},faf5:function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),u=n("8418"),c=n("b622"),f=n("1dde"),d=n("ae40"),h=f("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=c("species"),m=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(e,t){var n,r,c,f=l(this),d=s(f.length),h=a(e,d),p=a(void 0===t?d:t,d);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(f,h,p);for(r=new(void 0===n?Array:n)(v(p-h,0)),c=0;h<p;h++,c++)h in f&&u(r,c,f[h]);return r.length=c,r}})},fc5e:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fcd4:function(e,t,n){t.f=n("cc15")},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 r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},fed5:function(e,t){t.f=Object.getOwnPropertySymbols},fffc:function(e,t,n){"use strict";var r=n("23e7"),i=n("2266"),o=n("1c0b"),a=n("825a");r({target:"Iterator",proto:!0,real:!0},{find:function(e){return a(this),o(e),i(this,(function(t){if(e(t))return i.stop(t)}),void 0,!1,!0).result}})}}]);