UNPKG

gentelella

Version:

Gentelella v4 — free admin template. 60 pages, 20 chart variants, fully interactive inbox & kanban, live theme generator, component playground, PWA-ready. Vite 8, vanilla JS, no Bootstrap, no jQuery.

1 lines 1.07 MB
import{n as t}from"./rolldown-runtime-DEgBLETi.js";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var i,r,o=function(){var t={};if("undefined"==typeof JSON)return t;for(var e=0;95>e;e++)t[String.fromCharCode(e+32)]=("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N".charCodeAt(e)-20)/100;return t}(),a={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!i){var n=a.createCanvas();i=n&&n.getContext("2d")}if(i)return r!==e&&(r=i.font=e||"12px sans-serif"),i.measureText(t);t=t||"";var s=/((?:\d+)?\.?\d*)px/.exec(e=e||"12px sans-serif"),l=s&&+s[1]||12,u=0;if(0>e.indexOf("mono"))for(var c=0;t.length>c;c++){var h=o[t[c]];u+=null==h?l:h*l}else u=l*t.length;return{width:u}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function s(t){for(var e in a)a.hasOwnProperty(e)&&t[e]&&(a[e]=t[e])}var l=t({EPSILON:()=>wt,HashMap:()=>ft,RADIAN_TO_DEGREE:()=>bt,assert:()=>st,assignProps:()=>D,bind:()=>F,clone:()=>M,concatArray:()=>yt,createCanvas:()=>k,createHashMap:()=>gt,createObject:()=>vt,curry:()=>H,defaults:()=>A,disableUserSelect:()=>mt,each:()=>N,eqNaN:()=>et,extend:()=>C,filter:()=>V,find:()=>B,guid:()=>w,hasOwn:()=>xt,indexOf:()=>L,inherits:()=>P,isArray:()=>W,isArrayLike:()=>R,isBuiltInObject:()=>q,isDom:()=>$,isFunction:()=>U,isGradientObject:()=>J,isImagePatternObject:()=>Q,isNumber:()=>Z,isObject:()=>j,isPrimitive:()=>ht,isRegExp:()=>tt,isString:()=>Y,isStringSafe:()=>X,isTypedArray:()=>K,keys:()=>G,logError:()=>S,map:()=>E,merge:()=>I,mergeAll:()=>T,mixin:()=>O,noop:()=>_t,normalizeCssArray:()=>at,reduce:()=>z,retrieve:()=>nt,retrieve2:()=>it,retrieve3:()=>rt,setAsPrimitive:()=>ct,slice:()=>ot,trim:()=>lt}),u=z(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),c=z(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),h=Object.prototype.toString,p=Array.prototype,d=p.forEach,f=p.filter,g=p.slice,y=p.map,v=function(){}.constructor,m=v?v.prototype:null,x="__proto__",_=2311,b=Math.pow(2,53)-1;function w(){return b>_||(_=0),_++}function S(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e]}function M(t){if(null==t||"object"!=typeof t)return t;var e=t,n=h.call(t);if("[object Array]"===n){if(!ht(t)){e=[];for(var i=0,r=t.length;r>i;i++)e[i]=M(t[i])}}else if(c[n]){if(!ht(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;r>i;i++)e[i]=t[i]}}else if(!u[n]&&!ht(t)&&!$(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==x&&(e[a]=M(t[a]));return e}function I(t,e,n){if(!j(e)||!j(t))return n?M(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==x){var r=t[i],o=e[i];!j(o)||!j(r)||W(o)||W(r)||$(o)||$(r)||q(o)||q(r)||ht(o)||ht(r)?!n&&i in t||(t[i]=M(e[i])):I(r,o,n)}return t}function T(t,e){for(var n=t[0],i=1,r=t.length;r>i;i++)n=I(n,t[i],e);return n}function C(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==x&&(t[n]=e[n]);return t}function D(t,e,n){t=t||{};for(var i=0;n.length>i;i++){var r=n[i];t[r]=e[r]}return t}function A(t,e,n){for(var i=G(e),r=0,o=i.length;o>r;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var k=a.createCanvas;function L(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n}return-1}function P(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function O(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;i.length>r;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else A(t,e,n)}function R(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function N(t,e,n){if(t&&e)if(t.forEach&&t.forEach===d)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;r>i;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function E(t,e,n){if(!t)return[];if(!e)return ot(t);if(t.map&&t.map===y)return t.map(e,n);for(var i=[],r=0,o=t.length;o>r;r++)i.push(e.call(n,t[r],r,t));return i}function z(t,e,n,i){if(t&&e){for(var r=0,o=t.length;o>r;r++)n=e.call(i,n,t[r],r,t);return n}}function V(t,e,n){if(!t)return[];if(!e)return ot(t);if(t.filter&&t.filter===f)return t.filter(e,n);for(var i=[],r=0,o=t.length;o>r;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function B(t,e,n){if(t&&e)for(var i=0,r=t.length;r>i;i++)if(e.call(n,t[i],i,t))return t[i]}function G(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var F=m&&U(m.bind)?m.call.bind(m.bind):function(t,e){for(var n=[],i=2;arguments.length>i;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(g.call(arguments)))}};function H(t){for(var e=[],n=1;arguments.length>n;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(g.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):"[object Array]"===h.call(t)}function U(t){return"function"==typeof t}function Y(t){return"string"==typeof t}function X(t){return"[object String]"===h.call(t)}function Z(t){return"number"==typeof t}function j(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function q(t){return!!u[h.call(t)]}function K(t){return!!c[h.call(t)]}function $(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function J(t){return null!=t.colorStops}function Q(t){return null!=t.image}function tt(t){return"[object RegExp]"===h.call(t)}function et(t){return t!=t}function nt(){for(var t=[],e=0;arguments.length>e;e++)t[e]=arguments[e];for(var n=0,i=t.length;i>n;n++)if(null!=t[n])return t[n]}function it(t,e){return null!=t?t:e}function rt(t,e,n){return null!=t?t:null!=e?e:n}function ot(t){for(var e=[],n=1;arguments.length>n;n++)e[n-1]=arguments[n];return g.apply(t,e)}function at(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function st(t,e){if(!t)throw new Error(e)}function lt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ut="__ec_primitive__";function ct(t){t[ut]=!0}function ht(t){return t[ut]}var pt=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return G(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),dt="function"==typeof Map,ft=function(){function t(e){var n=W(e);this.data=dt?new Map:new pt;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&N(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},t.prototype.keys=function(){var t=this.data.keys();return dt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function gt(t){return new ft(t)}function yt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;t.length>i;i++)n[i]=t[i];var r=t.length;for(i=0;e.length>i;i++)n[i+r]=e[i];return n}function vt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&C(n,e),n}function mt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function xt(t,e){return t.hasOwnProperty(e)}function _t(){}var bt=180/Math.PI,wt=Number.EPSILON||Math.pow(2,-52),St=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Mt=new function(){this.browser=new St,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};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Mt.wxa=!0,Mt.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Mt.worker=!0:!Mt.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Mt.node=!0,Mt.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document){var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,Mt);var It="___EC__COMPONENT__CONTAINER___",Tt="___EC__EXTENDED_CLASS___";function Ct(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function Dt(t,e){t.$constructor=t,t.extend=function(t){var e,i,r=this;return U(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?e=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},P(e,this)),C(e.prototype,t),e[Tt]=!0,e.extend=this.extend,e.superCall=Lt,e.superApply=Pt,e.superClass=r,e}}function At(t,e){t.extend=e.extend}var kt=Math.round(10*Math.random());function Lt(t,e){for(var n=[],i=2;arguments.length>i;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Pt(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Ot(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){st(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Ct(i);if(r.sub){if(r.sub!==It){var o=function(t){var n=e[t.main];return n&&n[It]||((n=e[t.main]={})[It]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[It]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Ct(t),i=[],r=e[n.main];return r&&r[It]?N(r,function(t,e){e!==It&&i.push(t)}):i.push(r),i},t.hasClass=function(t){return!!e[Ct(t).main]},t.getAllClassMainTypes=function(){var t=[];return N(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[Ct(t).main];return n&&n[It]}}function Rt(t,e){for(var n=0;t.length>n;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;t.length>a;a++){var s=t[a][1];if(!(i&&L(i,s)>=0||r&&0>L(r,s))){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Nt=Rt([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Et=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Nt(this,t,e)},t}(),zt=function(t){this.value=t},Vt=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new zt(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Bt=function(){function t(t){this._list=new Vt,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new zt(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Gt=new Bt(50);function Ft(t){if("string"==typeof t){var e=Gt.get(t);return e&&e.image}return t}function Ht(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Gt.get(t),s={hostEl:n,cb:i,cbPayload:r};return o?!Ut(e=o.image)&&o.pending.push(s):((e=a.loadImage(t,Wt,Wt)).__zrImageSrc=t,Gt.put(t,e.__cachedImgObj={image:e,pending:[s]})),e}return t}return e}function Wt(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;t.pending.length>e;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Ut(t){return t&&t.width&&t.height}var Yt=t({clone:()=>te,copy:()=>jt,create:()=>Xt,identity:()=>Zt,invert:()=>Qt,mul:()=>qt,rotate:()=>$t,scale:()=>Jt,translate:()=>Kt});function Xt(){return[1,0,0,1,0,0]}function Zt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function qt(t,e,n){var i=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],s=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=e[0]*n[0]+e[2]*n[1],t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t}function Kt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function $t(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function Jt(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Qt(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(t[0]=a*(l=1/l),t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function te(t){var e=[1,0,0,1,0,0];return jt(e,t),e}var ee=t({add:()=>ae,applyTransform:()=>Me,clone:()=>re,copy:()=>ie,create:()=>ne,dist:()=>xe,distSquare:()=>be,distance:()=>me,distanceSquare:()=>_e,div:()=>fe,dot:()=>ge,len:()=>ue,lenSquare:()=>he,length:()=>ce,lengthSquare:()=>pe,lerp:()=>Se,max:()=>Te,min:()=>Ie,mul:()=>de,negate:()=>we,normalize:()=>ve,scale:()=>ye,scaleAndAdd:()=>se,set:()=>oe,sub:()=>le});function ne(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ie(t,e){return t[0]=e[0],t[1]=e[1],t}function re(t){return[t[0],t[1]]}function oe(t,e,n){return t[0]=e,t[1]=n,t}function ae(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function se(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function le(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ue(t){return Math.sqrt(he(t))}var ce=ue;function he(t){return t[0]*t[0]+t[1]*t[1]}var pe=he;function de(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function fe(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function ge(t,e){return t[0]*e[0]+t[1]*e[1]}function ye(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function ve(t,e){var n=ue(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function me(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var xe=me;function _e(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var be=_e;function we(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Se(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function Me(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function Ie(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Te(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Ce,De=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),Ae=Math.min,ke=Math.max,Le=Math.abs,Pe=["x","y"],Oe=["width","height"],Re=new De,Ne=new De,Ee=new De,ze=new De,Ve=Qe(),Be=Ve.minTv,Ge=Ve.maxTv,Fe=[0,0],He=function(){function t(t,e,n,i){Ue(this,t,e,n,i)}return t.set=function(t,e,n,i,r){return 0>i&&(e+=i,i=-i),0>r&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=Ae(t.x,this.x),n=Ae(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?ke(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?ke(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return Xe([1,0,0,1,0,0],this,t)},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&De.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=Ue(qe,e.x,e.y,e.width,e.height)),n instanceof t||(n=Ue(Ke,n.x,n.y,n.width,n.height));var s=!!i;Ve.reset(r,s);var l=Ve.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,y=n.y+n.height-l;if(u>c||h>p||d>f||g>y)return!1;var v=!(d>c||u>f||g>p||h>y);return(s||o)&&(Fe[0]=1/0,Fe[1]=0,Je(u,c,d,f,0,s,o,a),Je(h,p,g,y,1,s,o,a),s&&De.copy(i,v?Ve.useDir?Ve.dirMinTv:Be:Ge)),v},t.contain=function(t,e,n){return!(t.x>e||e>t.x+t.width||t.y>n||n>t.y+t.height)},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){Ye(this,t)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,n){if(n){if(1e-5>n[1]&&n[1]>-1e-5&&1e-5>n[2]&&n[2]>-1e-5){var i=n[0],r=n[3],o=n[5];return t.x=e.x*i+n[4],t.y=e.y*r+o,t.width=e.width*i,t.height=e.height*r,0>t.width&&(t.x+=t.width,t.width=-t.width),void(0>t.height&&(t.y+=t.height,t.height=-t.height))}Re.x=Ee.x=e.x,Re.y=ze.y=e.y,Ne.x=ze.x=e.x+e.width,Ne.y=Ee.y=e.y+e.height,Re.transform(n),ze.transform(n),Ne.transform(n),Ee.transform(n),t.x=Ae(Re.x,Ne.x,Ee.x,ze.x),t.y=Ae(Re.y,Ne.y,Ee.y,ze.y);var a=ke(Re.x,Ne.x,Ee.x,ze.x),s=ke(Re.y,Ne.y,Ee.y,ze.y);t.width=a-t.x,t.height=s-t.y}else t!==e&&Ye(t,e)},t.calculateTransform=function(t,e,n){var i=n.width/e.width,r=n.height/e.height;return Kt(t=Zt(t||[]),t,oe($e,-e.x,-e.y)),Jt(t,t,oe($e,i,r)),Kt(t,t,oe($e,n.x,n.y)),t},t}(),We=He.create,Ue=He.set,Ye=He.copy,Xe=He.calculateTransform,Ze=He.applyTransform,je=He.contain,qe=new He(0,0,0,0),Ke=new He(0,0,0,0),$e=[];function Je(t,e,n,i,r,o,a,s){var l=Le(e-n),u=Le(i-t),c=Ae(l,u),h=Pe[r],p=Pe[1-r],d=Oe[r];n>e||t>i?u>l?(o&&(Ge[h]=-l),s&&(a[h]=e,a[d]=0)):(o&&(Ge[h]=u),s&&(a[h]=t,a[d]=0)):(a&&(a[h]=ke(t,n),a[d]=Ae(e,i)-a[h]),o&&(Fe[0]>c||Ve.useDir)&&(Fe[0]=Ae(c,Fe[0]),l>=u&&Ve.bidirectional||(Be[h]=l,Be[p]=0,Ve.useDir&&Ve.calcDirMTV()),u>l&&Ve.bidirectional||(Be[h]=-u,Be[p]=0,Ve.useDir&&Ve.calcDirMTV())))}function Qe(){var t=0,e=new De,n=new De,i={minTv:new De,maxTv:new De,useDir:!1,dirMinTv:new De,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=ke(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return 1e-10>Le(t)}return i}function tn(t){Ce||(Ce=new Bt(100));var e=Ce.get(t=t||"12px sans-serif");return e||(e={font:t,strWidthCache:new Bt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:a.measureText("国",t).width,asciiCharWidth:a.measureText("a",t).width},Ce.put(t,e)),e}var en=0;function nn(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(5>en){t=t||"12px sans-serif";for(var e=[],n=+new Date,i=0;127>=i;i++)e[i]=a.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?en=5:r>2&&en++,e}}(t.font),t.asciiWidthMapTried=!0),0>e||e>127?t.stWideCharWidth:null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth}function rn(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=a.measureText(e,t.font).width,n.put(e,i)),i}function on(t,e,n,i){var r=rn(tn(e),t),o=un(e);return new He(sn(0,r,n),ln(0,o,i),r,o)}function an(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return on(r[0],e,n,i);for(var o=new He(0,0,0,0),a=0;r.length>a;a++){var s=on(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function sn(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function ln(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function un(t){return tn(t).stWideCharWidth}function cn(t,e){return"string"==typeof t?0>t.lastIndexOf("%")?parseFloat(t):parseFloat(t)/100*e:t}function hn(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=cn(i[0],n.width),u+=cn(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var pn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function dn(t,e,n,i,r){var o={};return fn(o,t,e,n,i,r),o.text}function fn(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=gn(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;c>u;u++)yn(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function gn(t,e,n,i){var r=C({},i=i||{});n=it(n,"..."),r.maxIterations=it(i.maxIterations,2);var o=r.minChar=it(i.minChar,0),a=r.fontMeasureInfo=tn(e),s=a.asciiCharWidth;r.placeholder=it(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;o>u&&l>=s;u++)l-=s;var c=rn(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function yn(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=rn(o,e);if(i>=a)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(r>=a||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?vn(e,r,o):a>0?Math.floor(e.length*r/a):0;a=rn(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function vn(t,e,n){for(var i=0,r=0,o=t.length;o>r&&e>i;r++)i+=nn(n,t.charCodeAt(r));return r}var mn=function(){},xn=function(t){this.tokens=[],t&&(this.tokens=t)},_n=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function bn(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=cn(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=Mn(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var y=tn(c),v=0;o.length>v;v++){var m=o[v],x=new mn;if(x.styleName=r,x.text=m,x.isLineHolder=!m&&!s,x.width="number"==typeof l.width?l.width:a?a[v]:rn(y,m),v||h)u.push(new xn([x]));else{var _=(u[u.length-1]||(u[0]=new xn)).tokens,b=_.length;1===b&&_[0].isLineHolder?_[0]=x:(m||!b||s)&&_.push(x)}}}var wn=z(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Sn(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&591>=e||e>=880&&4351>=e||e>=4608&&5119>=e||e>=7680&&8303>=e}(t)||!!wn[t]}function Mn(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=tn(e),p=0;t.length>p;p++){var d=t.charAt(p);if("\n"!==d){var f=nn(h,d.charCodeAt(0)),g=!i&&!Sn(d);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function In(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;He.set(Tn,sn(n,a,r),ln(i,s,o),a,s),He.intersect(e,Tn,null,Cn);var l=Cn.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=sn(l.x,l.width,r,!0),t.baseY=ln(l.y,l.height,o,!0)}}var Tn=new He(0,0,0,0),Cn={outIntersectRect:{},clamp:!0};function Dn(t){return null!=t?t+="":t=""}function An(t,e,n,i){var r=new He(sn(t.x||0,e,t.textAlign),ln(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:kn(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function kn(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ln=Zt;function Pn(t){return t>5e-5||-5e-5>t}var On=[],Rn=[],Nn=[1,0,0,1,0,0],En=Math.abs,zn=function(){function t(){}var e;return t.prototype.getLocalTransform=function(t){return Vn(this,t)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Pn(this.rotation)||Pn(this.x)||Pn(this.y)||Pn(this.scaleX-1)||Pn(this.scaleY-1)||Pn(this.skewX)||Pn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ln(n),t&&(e?qt(n,t,n):jt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],Qt(this.invTransform,n)):n&&(Ln(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(On);var n=0>On[0]?-1:1,i=0>On[1]?-1:1,r=((On[0]-n)*e+n)/On[0]||0,o=((On[1]-i)*e+i)/On[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],qt(Rn,t.invTransform,e),e=Rn);var n=this.originX,i=this.originY;(n||i)&&(Nn[4]=n,Nn[5]=i,qt(Rn,e,Nn),Rn[4]-=n,Rn[5]-=i,e=Rn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),0>e[0]&&(t[0]=-t[0]),0>e[3]&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Me(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Me(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&En(t[0]-1)>1e-10&&En(t[3]-1)>1e-10?Math.sqrt(En(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Fn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&$t(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Vn=zn.getLocalTransform;function Bn(){return new zn}var Gn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Fn(t,e){return D(t,e,Gn)}var Hn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return 1>(t*=2)?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return 1>(t*=2)?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return 1>(t*=2)?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return 1>(t*=2)?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:1>(t*=2)?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),1>(t*=2)?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return 1>(t*=2)?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Hn.bounceOut(1-t)},bounceOut:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return.5>t?.5*Hn.bounceIn(2*t):.5*Hn.bounceOut(2*t-1)+.5}},Wn=Math.pow,Un=Math.sqrt,Yn=1e-4,Xn=Un(3),Zn=1/3,jn=ne(),qn=ne(),Kn=ne();function $n(t){return t>-1e-8&&1e-8>t}function Jn(t){return t>1e-8||-1e-8>t}function Qn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ti(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ei(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if($n(c)&&$n(h))$n(s)?o[0]=0:0>(M=-l/s)||M>1||(o[d++]=M);else{var f=h*h-4*c*p;if($n(f)){var g=h/c,y=-g/2;0>(M=-s/a+g)||M>1||(o[d++]=M),0>y||y>1||(o[d++]=y)}else if(f>0){var v=Un(f),m=c*s+1.5*a*(-h+v),x=c*s+1.5*a*(-h-v);0>(M=(-s-((m=0>m?-Wn(-m,Zn):Wn(m,Zn))+(x=0>x?-Wn(-x,Zn):Wn(x,Zn))))/(3*a))||M>1||(o[d++]=M)}else{var _=(2*c*s-3*a*h)/(2*Un(c*c*c)),b=Math.acos(_)/3,w=Un(c),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Xn*Math.sin(b)))/(3*a),(-s+w*(S-Xn*Math.sin(b)))/(3*a));0>M||M>1||(o[d++]=M),0>y||y>1||(o[d++]=y),0>I||I>1||(o[d++]=I)}}return d}function ni(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if($n(a))Jn(o)&&(0>(c=-s/o)||c>1||(r[l++]=c));else{var u=o*o-4*a*s;if($n(u))r[0]=-o/(2*a);else if(u>0){var c,h=Un(u),p=(-o-h)/(2*a);0>(c=(-o+h)/(2*a))||c>1||(r[l++]=c),0>p||p>1||(r[l++]=p)}}return l}function ii(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ri(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;l>=d;d++){var f=d*p,g=Qn(t,n,r,a,f),y=Qn(e,i,o,s,f),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function oi(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ai(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function si(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function li(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function ui(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;a>=h;h++){var p=h*c,d=oi(t,n,r,p),f=oi(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var ci=/cubic-bezier\(([0-9,\.e ]+)\)/;function hi(t){var e=t&&ci.exec(t);if(e){var n=e[1].split(","),i=+lt(n[0]),r=+lt(n[1]),o=+lt(n[2]),a=+lt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t>0?1>t?ei(0,i,o,1,t,s)&&Qn(0,r,a,1,s[0]):1:0}}}var pi=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||_t,this.ondestroy=t.ondestroy||_t,this.onrestart=t.onrestart||_t,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;0>r&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=U(t)?t:Hn[t]||hi(t)},t}(),di=t({fastLerp:()=>ki,fastMapToColor:()=>Li,lerp:()=>Pi,lift:()=>Di,liftColor:()=>Gi,lum:()=>zi,mapToColor:()=>Oi,modifyAlpha:()=>Ni,modifyHSL:()=>Ri,parse:()=>Ti,parseCssFloat:()=>mi,parseCssInt:()=>vi,random:()=>Vi,stringify:()=>Ei,toHex:()=>Ai}),fi={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 gi(t){return 0>(t=Math.round(t))?0:t>255?255:t}function yi(t){return 0>t?0:t>1?1:t}function vi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?gi(parseFloat(e)/100*255):gi(parseInt(e,10))}function mi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?yi(parseFloat(e)/100):yi(parseFloat(e))}function xi(t,e,n){return 0>n?n+=1:n>1&&(n-=1),1>6*n?t+(e-t)*n*6:1>2*n?e:2>3*n?t+(e-t)*(2/3-n)*6:t}function _i(t,e,n){return t+(e-t)*n}function bi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function wi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Si=new Bt(20),Mi=null;function Ii(t,e){Mi&&wi(Mi,e),Mi=Si.put(t,Mi||e.slice())}function Ti(t,e){if(t){e=e||[];var n=Si.get(t);if(n)return wi(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in fi)return wi(e,fi[i]),Ii(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?0>(r=parseInt(i.slice(1,4),16))||r>4095?void bi(e,0,0,0,1):(bi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Ii(t,e),e):7===o||9===o?0>(r=parseInt(i.slice(1,7),16))||r>16777215?void bi(e,0,0,0,1):(bi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Ii(t,e),e):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?bi(e,+u[0],+u[1],+u[2],1):bi(e,0,0,0,1);c=mi(u.pop());case"rgb":return 3>u.length?void bi(e,0,0,0,1):(bi(e,vi(u[0]),vi(u[1]),vi(u[2]),3===u.length?c:mi(u[3])),Ii(t,e),e);case"hsla":return 4!==u.length?void bi(e,0,0,0,1):(u[3]=mi(u[3]),Ci(u,e),Ii(t,e),e);case"hsl":return 3!==u.length?void bi(e,0,0,0,1):(Ci(u,e),Ii(t,e),e);default:return}}bi(e,0,0,0,1)}}function Ci(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=mi(t[1]),r=mi(t[2]),o=r>.5?r+i-r*i:r*(i+1),a=2*r-o;return bi(e=e||[],gi(255*xi(a,o,n+1/3)),gi(255*xi(a,o,n)),gi(255*xi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Di(t,e){var n=Ti(t);if(n){for(var i=0;3>i;i++)n[i]=0>e?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:0>n[i]&&(n[i]=0);return Ei(n,4===n.length?"rgba":"rgb")}}function Ai(t){var e=Ti(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function ki(t,e,n){if(e&&e.length&&t>=0&&1>=t){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=gi(_i(a[0],s[0],l)),n[1]=gi(_i(a[1],s[1],l)),n[2]=gi(_i(a[2],s[2],l)),n[3]=yi(_i(a[3],s[3],l)),n}}var Li=ki;function Pi(t,e,n){if(e&&e.length&&t>=0&&1>=t){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Ti(e[r]),s=Ti(e[o]),l=i-r,u=Ei([gi(_i(a[0],s[0],l)),gi(_i(a[1],s[1],l)),gi(_i(a[2],s[2],l)),yi(_i(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Oi=Pi;function Ri(t,e,n,i){var r=Ti(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=.5>u?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),0>e&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(r),null!=e&&(r[0]=function(t){return 0>(t=Math.round(t))?0:t>360?360:t}(U(e)?e(r[0]):e)),null!=n&&(r[1]=mi(U(n)?n(r[1]):n)),null!=i&&(r[2]=mi(U(i)?i(r[2]):i)),Ei(Ci(r),"rgba")}function Ni(t,e){var n=Ti(t);if(n&&null!=e)return n[3]=yi(e),Ei(n,"rgba")}function Ei(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function zi(t,e){var n=Ti(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Vi(){return Ei([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Bi=new Bt(100);function Gi(t){if(Y(t)){var e=Bi.get(t);return e||(e=Di(t,-.1),Bi.put(t,e)),e}if(J(t)){var n=C({},t);return n.colorStops=E(t.colorStops,function(t){return{offset:t.offset,color:Di(t.color,-.1)}}),n}return t}var Fi=Math.round;function Hi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Ti(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function Wi(t){return 1e-4>t&&t>-1e-4}function Ui(t){return Fi(1e3*t)/1e3}function Yi(t){return Fi(1e4*t)/1e4}var Xi={left:"start",right:"end",center:"middle",middle:"middle"};function Zi(t){return t&&!!t.image}function ji(t){return Zi(t)||function(t){return t&&!!t.svgElement}(t)}function qi(t){return"linear"===t.type}function Ki(t){return"radial"===t.type}function $i(t){return t&&("linear"===t.type||"radial"===t.type)}function Ji(t){return"url(#"+t+")"}function Qi(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function tr(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*bt,r=it(t.scaleX,1),o=it(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+Fi(a*bt)+"deg, "+Fi(s*bt)+"deg)"),l.join(" ")}var er="undefined"!=typeof Buffer&&"function"==typeof Buffer.from?function(t){return Buffer.from(t).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null},nr=Array.prototype.slice;function ir(t,e,n){return(e-t)*n+t}function rr(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=ir(e[o],n[o],i);return t}function or(t,e,n,i){for(var r=e.length,o=0;r>o;o++)t[o]=e[o]+n[o]*i;return t}function ar(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;r>a;a++){t[a]||(t[a]=[]);for(var s=0;o>s;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function sr(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function lr(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;a>s;s++)i.push(1===n?r[s]:nr.call(r[s]));var l=i[0]&&i[0].length;for(s=0;i.length>s;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;l>u;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function ur(t){if(R(t)){var e=t.length;if(R(t[0])){for(var n=[],i=0;e>i;i++)n.push(nr.call(t[i]));return n}return nr.call(t)}return t}function cr(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function hr(t){return 4===t||5===t}function pr(t){return 1===t||2===t}var dr=[0,0,0,0],fr=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(R(e)){var l=function(t){return R(t&&t[0])?2:1}(e);a=l,(1===l&&!Z(e[0])||2===l&&!Z(e[0][0]))&&(o=!0)}else if(Z(e)&&!et(e))a=0;else if(Y(e))if(isNaN(+e)){var u=Ti(e);u&&(s=u,a=3)}else a=0;else if(J(e)){var c=C({},s);c.colorStops=E(e.colorStops,function(t){return{offset:t.offset,color:Ti(t.color)}}),qi(e)?a=4:Ki(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=U(n)?n:Hn[n]||hi(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=pr(i),l=hr(i),u=0;r>u;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?lr(h,p,i):l&&sr(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;r>u;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=or([],n[u].value,d,-1):pr(i)&&(n[u].additiveValue=1===i?or([],n[u].value,d,-1):ar([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additive