@byzanteam/primitive-element
Advanced tools
Comparing version 0.1.3-alpha.bbbac1bc to 0.1.3-alpha.eb3991c7
@@ -1,1 +0,1 @@ | ||
import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,n=e||r||Function("return this")(),o=n.Symbol,i=Object.prototype,s=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;var u=Object.prototype.toString;var l=o?o.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}(t):function(t){return u.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}var p=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function y(t){return t}function v(t){if(!d(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var b,_=n["__core-js_shared__"],g=(b=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var m=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,O=Function.prototype,x=Object.prototype,j=O.toString,S=x.hasOwnProperty,P=RegExp("^"+j.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(t){return!(!d(t)||(e=t,g&&g in e))&&(v(t)?P:w).test(function(t){if(null!=t){try{return m.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function A(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return E(r)?r:void 0}var z=Object.create,F=function(){function t(){}return function(e){if(!d(e))return{};if(z)return z(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function T(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var M=Date.now;var C,q,$,R=function(){try{var t=A(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),W=(C=R?function(t,e){return R(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:y,q=0,$=0,function(){var t=M(),e=16-(t-$);if($=t,e>0){if(++q>=800)return arguments[0]}else q=0;return C.apply(void 0,arguments)}),I=/^(?:0|[1-9]\d*)$/;function k(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&I.test(t))&&t>-1&&t%1==0&&t<e}function N(t,e,r){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function D(t,e){return t===e||t!=t&&e!=e}var L=Object.prototype.hasOwnProperty;function B(t,e,r){var n=t[e];L.call(t,e)&&D(n,r)&&(void 0!==r||e in t)||N(t,e,r)}var U=Math.max;function V(t,e){return W(function(t,e,r){return e=U(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=U(n.length-e,0),s=Array(i);++o<i;)s[o]=n[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=n[o];return a[e]=r(s),T(t,this,a)}}(t,e,y),t+"")}function G(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function H(t){return null!=t&&G(t.length)&&!v(t)}var X=Object.prototype;function J(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function K(t){return f(t)&&"[object Arguments]"==h(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,Z=Q.propertyIsEnumerable,tt=K(function(){return arguments}())?K:function(t){return f(t)&&Y.call(t,"callee")&&!Z.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,rt=et&&"object"==typeof module&&module&&!module.nodeType&&module,nt=rt&&rt.exports===et?n.Buffer:void 0,ot=(nt?nt.isBuffer:void 0)||function(){return!1},it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var st="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=st&&"object"==typeof module&&module&&!module.nodeType&&module,ct=at&&at.exports===st&&e.process,ut=function(){try{var t=at&&at.require&&at.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),lt=ut&&ut.isTypedArray,ht=lt?function(t){return function(e){return t(e)}}(lt):function(t){return f(t)&&G(t.length)&&!!it[h(t)]},ft=Object.prototype.hasOwnProperty;function pt(t,e){var r=p(t),n=!r&&tt(t),o=!r&&!n&&ot(t),i=!r&&!n&&!o&&ht(t),s=r||n||o||i,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!ft.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||k(u,c))||a.push(u);return a}var dt=Object.prototype.hasOwnProperty;function yt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=J(t),r=[];for(var n in t)("constructor"!=n||!e&&dt.call(t,n))&&r.push(n);return r}function vt(t){return H(t)?pt(t,!0):yt(t)}var bt=A(Object,"create");var _t=Object.prototype.hasOwnProperty;var gt=Object.prototype.hasOwnProperty;function mt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t,e){for(var r=t.length;r--;)if(D(t[r][0],e))return r;return-1}mt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _t.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:gt.call(e,t)},mt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,r=wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ot.call(e,r,1),--this.size,!0)},xt.prototype.get=function(t){var e=this.__data__,r=wt(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return wt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var r=this.__data__,n=wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var jt=A(n,"Map");function St(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(jt||xt),string:new mt}},Pt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return St(this,t).get(t)},Pt.prototype.has=function(t){return St(this,t).has(t)},Pt.prototype.set=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Et=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),At=Function.prototype,zt=Object.prototype,Ft=At.toString,Tt=zt.hasOwnProperty,Mt=Ft.call(Object);function Ct(t){var e=this.__data__=new xt(t);this.size=e.size}Ct.prototype.clear=function(){this.__data__=new xt,this.size=0},Ct.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!jt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(t,e),this.size=r.size,this};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,$t=qt&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=$t&&$t.exports===qt?n.Buffer:void 0,Wt=Rt?Rt.allocUnsafe:void 0;var It=n.Uint8Array;function kt(t,e){var r,n,o=e?(r=t.buffer,n=new r.constructor(r.byteLength),new It(n).set(new It(r)),n):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Nt,Dt=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),s=i.length;s--;){var a=i[Nt?s:++n];if(!1===e(o[a],a,o))break}return t};function Lt(t,e,r){(void 0!==r&&!D(t[e],r)||void 0===r&&!(e in t))&&N(t,e,r)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=n?n(r[a],t[a],a,r,t):void 0;void 0===c&&(c=t[a]),o?N(r,a,c):B(r,a,c)}return r}(t,vt(t))}function Vt(t,e,r,n,o,i,s){var a=Bt(t,r),c=Bt(e,r),u=s.get(c);if(u)Lt(t,r,u);else{var l,y=i?i(a,c,r+"",t,e,s):void 0,b=void 0===y;if(b){var _=p(c),g=!_&&ot(c),m=!_&&!g&&ht(c);y=c,_||g||m?p(a)?y=a:f(l=a)&&H(l)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(a):g?(b=!1,y=function(t,e){if(e)return t.slice();var r=t.length,n=Wt?Wt(r):new t.constructor(r);return t.copy(n),n}(c,!0)):m?(b=!1,y=kt(c,!0)):y=[]:function(t){if(!f(t)||"[object Object]"!=h(t))return!1;var e=Et(t);if(null===e)return!0;var r=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ft.call(r)==Mt}(c)||tt(c)?(y=a,tt(a)?y=Ut(a):d(a)&&!v(a)||(y=function(t){return"function"!=typeof t.constructor||J(t)?{}:F(Et(t))}(c))):b=!1}b&&(s.set(c,y),o(y,c,n,i,s),s.delete(c)),Lt(t,r,y)}}function Gt(t,e,r,n,o){t!==e&&Dt(e,(function(i,s){if(o||(o=new Ct),d(i))Vt(t,e,s,r,Gt,n,o);else{var a=n?n(Bt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Lt(t,s,a)}}),vt)}function Ht(t,e,r,n,o,i){return d(t)&&d(e)&&(i.set(e,t),Gt(t,e,void 0,Ht,i),i.delete(e)),t}var Xt,Jt=(Xt=function(t,e,r,n){Gt(t,e,r,n)},V((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Xt.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!d(r))return!1;var n=typeof e;return!!("number"==n?H(r)&&k(e,r.length):"string"==n&&e in r)&&D(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var s=e[r];s&&Xt(t,s,r,o)}return t}))),Kt=V((function(t){return t.push(void 0,Ht),T(Jt,void 0,t)}));var Qt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];t.call(e,o[1],o[0])}},e}()}(),Yt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var ee=["top","right","bottom","left","width","height","size","weight"],re="undefined"!=typeof MutationObserver,ne=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,o=0;function i(){r&&(r=!1,t()),n&&a()}function s(){te(i)}function a(){var t=Date.now();if(r){if(t-o<2)return;n=!0}else r=!0,n=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Yt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),re?(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)},t.prototype.disconnect_=function(){Yt&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;ee.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),oe=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ie=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Zt},se=fe(0,0,0,0);function ae(t){return parseFloat(t)||0}function ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+ae(t["border-"+r+"-width"])}),0)}function ue(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return se;var n=ie(t).getComputedStyle(t),o=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],i=t["padding-"+o];e[o]=ae(i)}return e}(n),i=o.left+o.right,s=o.top+o.bottom,a=ae(n.width),c=ae(n.height);if("border-box"===n.boxSizing&&(Math.round(a+i)!==e&&(a-=ce(n,"left","right")+i),Math.round(c+s)!==r&&(c-=ce(n,"top","bottom")+s)),!function(t){return t===ie(t).document.documentElement}(t)){var u=Math.round(a+i)-e,l=Math.round(c+s)-r;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return fe(o.left,o.top,a,c)}var le="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ie(t).SVGGraphicsElement}:function(t){return t instanceof ie(t).SVGElement&&"function"==typeof t.getBBox};function he(t){return Yt?le(t)?function(t){var e=t.getBBox();return fe(0,0,e.width,e.height)}(t):ue(t):se}function fe(t,e,r,n){return{x:t,y:e,width:r,height:n}}var pe=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=he(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),de=function(t,e){var r,n,o,i,s,a,c,u=(n=(r=e).x,o=r.y,i=r.width,s=r.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),oe(c,{x:n,y:o,width:i,height:s,top:o,right:n+i,bottom:s+o,left:n}),c);oe(this,{target:t,contentRect:u})},ye=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new Qt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new pe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new de(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ve="undefined"!=typeof WeakMap?new WeakMap:new Qt,be=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ne.getInstance(),n=new ye(e,r,this);ve.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){be.prototype[t]=function(){var e;return(e=ve.get(this))[t].apply(e,arguments)}}));var _e=void 0!==Zt.ResizeObserver?Zt.ResizeObserver:be,ge="function"==typeof Float32Array;function me(t,e){return 1-3*e+3*t}function we(t,e){return 3*e-6*t}function Oe(t){return 3*t}function xe(t,e,r){return((me(e,r)*t+we(e,r))*t+Oe(e))*t}function je(t,e,r){return 3*me(e,r)*t*t+2*we(e,r)*t+Oe(e)}function Se(t){return t}var Pe=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return Se;for(var o=ge?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=xe(.1*i,t,r);function s(e){for(var n=0,i=1;10!==i&&o[i]<=e;++i)n+=.1;--i;var s=n+.1*((e-o[i])/(o[i+1]-o[i])),a=je(s,t,r);return a>=.001?function(t,e,r,n){for(var o=0;o<4;++o){var i=je(e,r,n);if(0===i)return e;e-=(xe(e,r,n)-t)/i}return e}(e,s,t,r):0===a?s:function(t,e,r,n,o){var i,s,a=0;do{(i=xe(s=e+(r-e)/2,n,o)-t)>0?r=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:xe(s(t),e,n)}};const Ee="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Ae="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),ze=Pe(0,0,1,1),Fe=Pe(.25,.1,.25,1),Te=Pe(.42,0,1,1),Me=Pe(0,0,.58,1),Ce=Pe(.42,0,.58,1),qe="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),$e={delay:0,duration:250,pause:0,easingFunction:"ease"},Re={linear:ze,ease:Fe,easeIn:Te,easeOut:Me,easeInOut:Ce};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Re[t]||Re.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:o})=>e<=t+r+n+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-r,c=a<0?0:a>n?1:a/n;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const We=(t={})=>{let e=0,r=0,n=!1;const o={...$e,...t},i=new Map,s=()=>{const t=qe();i.forEach(e=>e.execute(t)),i.size?r=Ee(s):c()},a=()=>{n=!0,Ee(s)},c=()=>{n=!1,Ae(r)};return{subscribe:(t,r)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),r)),n||a(),c}}};function Ie(t,e,r,n,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof r?r.options:r;let h;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),n&&(l._scopeId=n),i?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=h):e&&(h=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),h)if(l.functional){const t=l.render;l.render=function(e,r){return h.call(r),t(e,r)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,h):[h]}return r}const ke=t.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:We({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["weightSize","spacing"]),[o="normal",i=12]=e;return Object.assign({fontWeight:o,fontSize:`${i}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Kt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new _e(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Ne=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Ne._withStripped=!0;const De=Ie({render:Ne,staticRenderFns:[]},void 0,ke,void 0,!1,void 0,!1,void 0,void 0,void 0);const Le=t.extend({components:{TextMarquee:De},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Kt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Kt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Kt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Kt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:o}=this.valueProperty.textStyle,[i,s]=t,[a,c]=e,[u,l]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(s,c,l)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${c}px`,"--serial-weight":a,"--value-width":this.getLength(this.valueProperty.width),"--value-color":o,"--value-size":`${l}px`,"--value-weight":u,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Kt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Kt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0}}});var Be=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var o=e.field,i=e.value;return r("li",{key:o+t.page,staticClass:"list-bar-chart__item"},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":o,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(i)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,i)}):t._e()])})),0)};Be._withStripped=!0;const Ue=Ie({render:Be,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);export default Ue;export{Ue as ListBarChart}; | ||
import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,n=e||r||Function("return this")(),i=n.Symbol,o=Object.prototype,s=o.hasOwnProperty,a=o.toString,c=i?i.toStringTag:void 0;var u=Object.prototype.toString;var l=i?i.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[c]=r:delete t[c]),i}(t):function(t){return u.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}var p=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function y(t){return t}function v(t){if(!d(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var b,_=n["__core-js_shared__"],m=(b=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var g=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,O=Function.prototype,x=Object.prototype,j=O.toString,S=x.hasOwnProperty,P=RegExp("^"+j.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(t){return!(!d(t)||(e=t,m&&m in e))&&(v(t)?P:w).test(function(t){if(null!=t){try{return g.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function A(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return E(r)?r:void 0}var z=Object.create,M=function(){function t(){}return function(e){if(!d(e))return{};if(z)return z(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function F(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var T=Date.now;var C,$,q,I=function(){try{var t=A(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),R=(C=I?function(t,e){return I(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:y,$=0,q=0,function(){var t=T(),e=16-(t-q);if(q=t,e>0){if(++$>=800)return arguments[0]}else $=0;return C.apply(void 0,arguments)}),k=/^(?:0|[1-9]\d*)$/;function W(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&k.test(t))&&t>-1&&t%1==0&&t<e}function N(t,e,r){"__proto__"==e&&I?I(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function D(t,e){return t===e||t!=t&&e!=e}var L=Object.prototype.hasOwnProperty;function B(t,e,r){var n=t[e];L.call(t,e)&&D(n,r)&&(void 0!==r||e in t)||N(t,e,r)}var U=Math.max;function V(t,e){return R(function(t,e,r){return e=U(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=U(n.length-e,0),s=Array(o);++i<o;)s[i]=n[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=n[i];return a[e]=r(s),F(t,this,a)}}(t,e,y),t+"")}function G(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function H(t){return null!=t&&G(t.length)&&!v(t)}var X=Object.prototype;function J(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function K(t){return f(t)&&"[object Arguments]"==h(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,Z=Q.propertyIsEnumerable,tt=K(function(){return arguments}())?K:function(t){return f(t)&&Y.call(t,"callee")&&!Z.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,rt=et&&"object"==typeof module&&module&&!module.nodeType&&module,nt=rt&&rt.exports===et?n.Buffer:void 0,it=(nt?nt.isBuffer:void 0)||function(){return!1},ot={};ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Arguments]"]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object Boolean]"]=ot["[object DataView]"]=ot["[object Date]"]=ot["[object Error]"]=ot["[object Function]"]=ot["[object Map]"]=ot["[object Number]"]=ot["[object Object]"]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object WeakMap]"]=!1;var st="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=st&&"object"==typeof module&&module&&!module.nodeType&&module,ct=at&&at.exports===st&&e.process,ut=function(){try{var t=at&&at.require&&at.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),lt=ut&&ut.isTypedArray,ht=lt?function(t){return function(e){return t(e)}}(lt):function(t){return f(t)&&G(t.length)&&!!ot[h(t)]},ft=Object.prototype.hasOwnProperty;function pt(t,e){var r=p(t),n=!r&&tt(t),i=!r&&!n&&it(t),o=!r&&!n&&!i&&ht(t),s=r||n||i||o,a=s?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=a.length;for(var u in t)!e&&!ft.call(t,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||W(u,c))||a.push(u);return a}var dt=Object.prototype.hasOwnProperty;function yt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=J(t),r=[];for(var n in t)("constructor"!=n||!e&&dt.call(t,n))&&r.push(n);return r}function vt(t){return H(t)?pt(t,!0):yt(t)}var bt=A(Object,"create");var _t=Object.prototype.hasOwnProperty;var mt=Object.prototype.hasOwnProperty;function gt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t,e){for(var r=t.length;r--;)if(D(t[r][0],e))return r;return-1}gt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},gt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},gt.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return _t.call(e,t)?e[t]:void 0},gt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:mt.call(e,t)},gt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function xt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}xt.prototype.clear=function(){this.__data__=[],this.size=0},xt.prototype.delete=function(t){var e=this.__data__,r=wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ot.call(e,r,1),--this.size,!0)},xt.prototype.get=function(t){var e=this.__data__,r=wt(e,t);return r<0?void 0:e[r][1]},xt.prototype.has=function(t){return wt(this.__data__,t)>-1},xt.prototype.set=function(t,e){var r=this.__data__,n=wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var jt=A(n,"Map");function St(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new gt,map:new(jt||xt),string:new gt}},Pt.prototype.delete=function(t){var e=St(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return St(this,t).get(t)},Pt.prototype.has=function(t){return St(this,t).has(t)},Pt.prototype.set=function(t,e){var r=St(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Et=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),At=Function.prototype,zt=Object.prototype,Mt=At.toString,Ft=zt.hasOwnProperty,Tt=Mt.call(Object);function Ct(t){var e=this.__data__=new xt(t);this.size=e.size}Ct.prototype.clear=function(){this.__data__=new xt,this.size=0},Ct.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var r=this.__data__;if(r instanceof xt){var n=r.__data__;if(!jt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(t,e),this.size=r.size,this};var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,qt=$t&&"object"==typeof module&&module&&!module.nodeType&&module,It=qt&&qt.exports===$t?n.Buffer:void 0,Rt=It?It.allocUnsafe:void 0;var kt=n.Uint8Array;function Wt(t,e){var r,n,i=e?(r=t.buffer,n=new r.constructor(r.byteLength),new kt(n).set(new kt(r)),n):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var Nt,Dt=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),s=o.length;s--;){var a=o[Nt?s:++n];if(!1===e(i[a],a,i))break}return t};function Lt(t,e,r){(void 0!==r&&!D(t[e],r)||void 0===r&&!(e in t))&&N(t,e,r)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,r,n){var i=!r;r||(r={});for(var o=-1,s=e.length;++o<s;){var a=e[o],c=n?n(r[a],t[a],a,r,t):void 0;void 0===c&&(c=t[a]),i?N(r,a,c):B(r,a,c)}return r}(t,vt(t))}function Vt(t,e,r,n,i,o,s){var a=Bt(t,r),c=Bt(e,r),u=s.get(c);if(u)Lt(t,r,u);else{var l,y=o?o(a,c,r+"",t,e,s):void 0,b=void 0===y;if(b){var _=p(c),m=!_&&it(c),g=!_&&!m&&ht(c);y=c,_||m||g?p(a)?y=a:f(l=a)&&H(l)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(a):m?(b=!1,y=function(t,e){if(e)return t.slice();var r=t.length,n=Rt?Rt(r):new t.constructor(r);return t.copy(n),n}(c,!0)):g?(b=!1,y=Wt(c,!0)):y=[]:function(t){if(!f(t)||"[object Object]"!=h(t))return!1;var e=Et(t);if(null===e)return!0;var r=Ft.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mt.call(r)==Tt}(c)||tt(c)?(y=a,tt(a)?y=Ut(a):d(a)&&!v(a)||(y=function(t){return"function"!=typeof t.constructor||J(t)?{}:M(Et(t))}(c))):b=!1}b&&(s.set(c,y),i(y,c,n,o,s),s.delete(c)),Lt(t,r,y)}}function Gt(t,e,r,n,i){t!==e&&Dt(e,(function(o,s){if(i||(i=new Ct),d(o))Vt(t,e,s,r,Gt,n,i);else{var a=n?n(Bt(t,s),o,s+"",t,e,i):void 0;void 0===a&&(a=o),Lt(t,s,a)}}),vt)}function Ht(t,e,r,n,i,o){return d(t)&&d(e)&&(o.set(e,t),Gt(t,e,void 0,Ht,o),o.delete(e)),t}var Xt,Jt=(Xt=function(t,e,r,n){Gt(t,e,r,n)},V((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Xt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!d(r))return!1;var n=typeof e;return!!("number"==n?H(r)&&W(e,r.length):"string"==n&&e in r)&&D(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var s=e[r];s&&Xt(t,s,r,i)}return t}))),Kt=V((function(t){return t.push(void 0,Ht),F(Jt,void 0,t)}));var Qt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}()}(),Yt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var ee=["top","right","bottom","left","width","height","size","weight"],re="undefined"!=typeof MutationObserver,ne=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&a()}function s(){te(o)}function a(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(s,e);i=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Yt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),re?(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)},t.prototype.disconnect_=function(){Yt&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;ee.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ie=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},oe=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Zt},se=fe(0,0,0,0);function ae(t){return parseFloat(t)||0}function ce(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+ae(t["border-"+r+"-width"])}),0)}function ue(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return se;var n=oe(t).getComputedStyle(t),i=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=ae(o)}return e}(n),o=i.left+i.right,s=i.top+i.bottom,a=ae(n.width),c=ae(n.height);if("border-box"===n.boxSizing&&(Math.round(a+o)!==e&&(a-=ce(n,"left","right")+o),Math.round(c+s)!==r&&(c-=ce(n,"top","bottom")+s)),!function(t){return t===oe(t).document.documentElement}(t)){var u=Math.round(a+o)-e,l=Math.round(c+s)-r;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return fe(i.left,i.top,a,c)}var le="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof oe(t).SVGGraphicsElement}:function(t){return t instanceof oe(t).SVGElement&&"function"==typeof t.getBBox};function he(t){return Yt?le(t)?function(t){var e=t.getBBox();return fe(0,0,e.width,e.height)}(t):ue(t):se}function fe(t,e,r,n){return{x:t,y:e,width:r,height:n}}var pe=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=he(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),de=function(t,e){var r,n,i,o,s,a,c,u=(n=(r=e).x,i=r.y,o=r.width,s=r.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),ie(c,{x:n,y:i,width:o,height:s,top:i,right:n+o,bottom:s+i,left:n}),c);ie(this,{target:t,contentRect:u})},ye=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new Qt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof oe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new pe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof oe(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new de(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ve="undefined"!=typeof WeakMap?new WeakMap:new Qt,be=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ne.getInstance(),n=new ye(e,r,this);ve.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){be.prototype[t]=function(){var e;return(e=ve.get(this))[t].apply(e,arguments)}}));var _e=void 0!==Zt.ResizeObserver?Zt.ResizeObserver:be,me="function"==typeof Float32Array;function ge(t,e){return 1-3*e+3*t}function we(t,e){return 3*e-6*t}function Oe(t){return 3*t}function xe(t,e,r){return((ge(e,r)*t+we(e,r))*t+Oe(e))*t}function je(t,e,r){return 3*ge(e,r)*t*t+2*we(e,r)*t+Oe(e)}function Se(t){return t}var Pe=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return Se;for(var i=me?new Float32Array(11):new Array(11),o=0;o<11;++o)i[o]=xe(.1*o,t,r);function s(e){for(var n=0,o=1;10!==o&&i[o]<=e;++o)n+=.1;--o;var s=n+.1*((e-i[o])/(i[o+1]-i[o])),a=je(s,t,r);return a>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=je(e,r,n);if(0===o)return e;e-=(xe(e,r,n)-t)/o}return e}(e,s,t,r):0===a?s:function(t,e,r,n,i){var o,s,a=0;do{(o=xe(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s}while(Math.abs(o)>1e-7&&++a<10);return s}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:xe(s(t),e,n)}};const Ee="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Ae="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),ze=Pe(0,0,1,1),Me=Pe(.25,.1,.25,1),Fe=Pe(.42,0,1,1),Te=Pe(0,0,.58,1),Ce=Pe(.42,0,.58,1),$e="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),qe={delay:0,duration:250,pause:0,easingFunction:"ease"},Ie={linear:ze,ease:Me,easeIn:Fe,easeOut:Te,easeInOut:Ce};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Ie[t]||Ie.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:i})=>e<=t+r+n+i)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:i,handler:o})=>{const s=TimerSubscription.getEasingFunction(i),a=t-e-r,c=a<0?0:a>n?1:a/n;c>0&&c<1&&o(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Re=(t={})=>{let e=0,r=0,n=!1;const i={...qe,...t},o=new Map,s=()=>{const t=$e();o.forEach(e=>e.execute(t)),o.size?r=Ee(s):c()},a=()=>{n=!0,Ee(s)},c=()=>{n=!1,Ae(r)};return{subscribe:(t,r)=>{const s=e++,c=()=>o.delete(s);return o.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...i,...t}));default:return[{...i,...t}]}})(t),r)),n||a(),c}}};function ke(t,e,r,n,i,o,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof r?r.options:r;let h;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),n&&(l._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=h):e&&(h=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),h)if(l.functional){const t=l.render;l.render=function(e,r){return h.call(r),t(e,r)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,h):[h]}return r}const We=t.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:Re({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["weightSize","spacing"]),[i="normal",o=12]=e;return Object.assign({fontWeight:i,fontSize:`${o}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Kt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new _e(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Ne=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Ne._withStripped=!0;const De=ke({render:Ne,staticRenderFns:[]},void 0,We,void 0,!1,void 0,!1,void 0,void 0,void 0);const Le=t.extend({components:{TextMarquee:De},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Kt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Kt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Kt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Kt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:i}=this.valueProperty.textStyle,[o,s]=t,[a,c]=e,[u,l]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(s,c,l)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${c}px`,"--serial-weight":a,"--value-width":this.getLength(this.valueProperty.width),"--value-color":i,"--value-size":`${l}px`,"--value-weight":u,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Kt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Kt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0},handleItemClick(t,e,r,n){this.$emit("item-click",{field:t,value:e},r,n)},handleItemMounseEnter(t,e,r,n){this.$emit("item-mouseenter",{field:t,value:e},r,n)},handleItemMouseLeave(t,e,r,n){this.$emit("item-mouseleave",{field:t,value:e},r,n)}}});var Be=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var i=e.field,o=e.value;return r("li",{key:i+t.page,staticClass:"list-bar-chart__item",on:{click:function(e){return t.handleItemClick(i,o,n,e)},mouseenter:function(e){return t.handleItemMounseEnter(i,o,n,e)},mouseleave:function(e){return t.handleItemMouseLeave(i,o,n,e)}}},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":i,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(o)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,o)}):t._e()])})),0)};Be._withStripped=!0;const Ue=ke({render:Be,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);export default Ue;export{Ue as ListBarChart}; |
@@ -1,1 +0,1 @@ | ||
import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,n=e||r||Function("return this")(),i=n.Symbol,o=Object.prototype,a=o.hasOwnProperty,s=o.toString,c=i?i.toStringTag:void 0;var l=Object.prototype.toString;var u=i?i.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?function(t){var e=a.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[c]=r:delete t[c]),i}(t):function(t){return l.call(t)}(t)}function p(t){return null!=t&&"object"==typeof t}var f=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function y(t){return t}function v(t){if(!d(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var g,b=n["__core-js_shared__"],m=(g=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";var _=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,x=Function.prototype,O=Object.prototype,S=x.toString,j=O.hasOwnProperty,P=RegExp("^"+S.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(t){return!(!d(t)||(e=t,m&&m in e))&&(v(t)?P:w).test(function(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function A(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return E(r)?r:void 0}var F=Object.create,V=function(){function t(){}return function(e){if(!d(e))return{};if(F)return F(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function C(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var T=Date.now;var M,$,z,R=function(){try{var t=A(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),D=(M=R?function(t,e){return R(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:y,$=0,z=0,function(){var t=T(),e=16-(t-z);if(z=t,e>0){if(++$>=800)return arguments[0]}else $=0;return M.apply(void 0,arguments)}),N=/^(?:0|[1-9]\d*)$/;function q(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&N.test(t))&&t>-1&&t%1==0&&t<e}function W(t,e,r){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function k(t,e){return t===e||t!=t&&e!=e}var I=Object.prototype.hasOwnProperty;function L(t,e,r){var n=t[e];I.call(t,e)&&k(n,r)&&(void 0!==r||e in t)||W(t,e,r)}var B=Math.max;function U(t,e){return D(function(t,e,r){return e=B(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=B(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),C(t,this,s)}}(t,e,y),t+"")}function H(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function G(t){return null!=t&&H(t.length)&&!v(t)}var K=Object.prototype;function X(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||K)}function J(t){return p(t)&&"[object Arguments]"==h(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,Z=Q.propertyIsEnumerable,tt=J(function(){return arguments}())?J:function(t){return p(t)&&Y.call(t,"callee")&&!Z.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,rt=et&&"object"==typeof module&&module&&!module.nodeType&&module,nt=rt&&rt.exports===et?n.Buffer:void 0,it=(nt?nt.isBuffer:void 0)||function(){return!1},ot={};ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Arguments]"]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object Boolean]"]=ot["[object DataView]"]=ot["[object Date]"]=ot["[object Error]"]=ot["[object Function]"]=ot["[object Map]"]=ot["[object Number]"]=ot["[object Object]"]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object WeakMap]"]=!1;var at="object"==typeof exports&&exports&&!exports.nodeType&&exports,st=at&&"object"==typeof module&&module&&!module.nodeType&&module,ct=st&&st.exports===at&&e.process,lt=function(){try{var t=st&&st.require&&st.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),ut=lt&<.isTypedArray,ht=ut?function(t){return function(e){return t(e)}}(ut):function(t){return p(t)&&H(t.length)&&!!ot[h(t)]},pt=Object.prototype.hasOwnProperty;function ft(t,e){var r=f(t),n=!r&&tt(t),i=!r&&!n&&it(t),o=!r&&!n&&!i&&ht(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=s.length;for(var l in t)!e&&!pt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||q(l,c))||s.push(l);return s}var dt=Object.prototype.hasOwnProperty;function yt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=X(t),r=[];for(var n in t)("constructor"!=n||!e&&dt.call(t,n))&&r.push(n);return r}function vt(t){return G(t)?ft(t,!0):yt(t)}var gt=A(Object,"create");var bt=Object.prototype.hasOwnProperty;var mt=Object.prototype.hasOwnProperty;function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t,e){for(var r=t.length;r--;)if(k(t[r][0],e))return r;return-1}_t.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return bt.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:mt.call(e,t)},_t.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function Ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(t){var e=this.__data__,r=wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():xt.call(e,r,1),--this.size,!0)},Ot.prototype.get=function(t){var e=this.__data__,r=wt(e,t);return r<0?void 0:e[r][1]},Ot.prototype.has=function(t){return wt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var r=this.__data__,n=wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var St=A(n,"Map");function jt(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(St||Ot),string:new _t}},Pt.prototype.delete=function(t){var e=jt(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return jt(this,t).get(t)},Pt.prototype.has=function(t){return jt(this,t).has(t)},Pt.prototype.set=function(t,e){var r=jt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Et=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),At=Function.prototype,Ft=Object.prototype,Vt=At.toString,Ct=Ft.hasOwnProperty,Tt=Vt.call(Object);function Mt(t){var e=this.__data__=new Ot(t);this.size=e.size}Mt.prototype.clear=function(){this.__data__=new Ot,this.size=0},Mt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!St||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(t,e),this.size=r.size,this};var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=zt&&zt.exports===$t?n.Buffer:void 0,Dt=Rt?Rt.allocUnsafe:void 0;var Nt=n.Uint8Array;function qt(t,e){var r,n,i=e?(r=t.buffer,n=new r.constructor(r.byteLength),new Nt(n).set(new Nt(r)),n):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var Wt,kt=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[Wt?a:++n];if(!1===e(i[s],s,i))break}return t};function It(t,e,r){(void 0!==r&&!k(t[e],r)||void 0===r&&!(e in t))&&W(t,e,r)}function Lt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Bt(t){return function(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),i?W(r,s,c):L(r,s,c)}return r}(t,vt(t))}function Ut(t,e,r,n,i,o,a){var s=Lt(t,r),c=Lt(e,r),l=a.get(c);if(l)It(t,r,l);else{var u,y=o?o(s,c,r+"",t,e,a):void 0,g=void 0===y;if(g){var b=f(c),m=!b&&it(c),_=!b&&!m&&ht(c);y=c,b||m||_?f(s)?y=s:p(u=s)&&G(u)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):m?(g=!1,y=function(t,e){if(e)return t.slice();var r=t.length,n=Dt?Dt(r):new t.constructor(r);return t.copy(n),n}(c,!0)):_?(g=!1,y=qt(c,!0)):y=[]:function(t){if(!p(t)||"[object Object]"!=h(t))return!1;var e=Et(t);if(null===e)return!0;var r=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Vt.call(r)==Tt}(c)||tt(c)?(y=s,tt(s)?y=Bt(s):d(s)&&!v(s)||(y=function(t){return"function"!=typeof t.constructor||X(t)?{}:V(Et(t))}(c))):g=!1}g&&(a.set(c,y),i(y,c,n,o,a),a.delete(c)),It(t,r,y)}}function Ht(t,e,r,n,i){t!==e&&kt(e,(function(o,a){if(i||(i=new Mt),d(o))Ut(t,e,a,r,Ht,n,i);else{var s=n?n(Lt(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),It(t,a,s)}}),vt)}function Gt(t,e,r,n,i,o){return d(t)&&d(e)&&(o.set(e,t),Ht(t,e,void 0,Gt,o),o.delete(e)),t}var Kt,Xt,Jt,Qt=(Kt=function(t,e,r,n){Ht(t,e,r,n)},U((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Kt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!d(r))return!1;var n=typeof e;return!!("number"==n?G(r)&&q(e,r.length):"string"==n&&e in r)&&k(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&Kt(t,a,r,i)}return t}))),Yt=U((function(t){return t.push(void 0,Gt),C(Qt,void 0,t)})),Zt=function(){return(Zt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},te=function(){function t(t,e,r){var n=this;this.target=t,this.endVal=e,this.options=r,this.version="2.0.5",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.countDown?n.frameVal=n.startVal-(n.startVal-n.endVal)*(e/n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration),n.countDown?n.frameVal=n.frameVal<n.endVal?n.endVal:n.frameVal:n.frameVal=n.frameVal>n.endVal?n.endVal:n.frameVal,n.frameVal=Math.round(n.frameVal*n.decimalMult)/n.decimalMult,n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.callback&&n.callback()},this.formatNumber=function(t){var e,r,i,o,a,s=t<0?"-":"";if(e=Math.abs(t).toFixed(n.options.decimalPlaces),i=(r=(e+="").split("."))[0],o=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){a="";for(var c=0,l=i.length;c<l;++c)0!==c&&c%3==0&&(a=n.options.separator+a),a=i[l-c-1]+a;i=a}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]})),o=o.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]}))),s+n.options.prefix+i+o+n.options.suffix},this.easeOutExpo=function(t,e,r,n){return r*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=Zt(Zt({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();!function(t){t.left="left",t.top="top",t.bottom="bottom"}(Xt||(Xt={})),function(t){t.left="left",t.center="center",t.right="right"}(Jt||(Jt={}));const ee={textStyle:{fontFamily:"微软雅黑",weightSize:["normal",12],color:"#9dacbe"},textContent:"",show:!0};function re(t,e,r,n,i,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);const u="function"==typeof r?r.options:r;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),n&&(u._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=h):e&&(h=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,r){return h.call(r),t(e,r)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return r}const ne=t.extend({props:{data:{type:Number,default:0},global:{type:Object},header:{type:Object},flipperPrefix:{type:Object},flipperSuffix:{type:Object},flipperDigital:{type:Object}},data:()=>({counter:null}),computed:{headerProperty(){return Yt({},this.header,ee)},flipperPrefixProperty(){return Yt({},this.flipperPrefix,ee)},flipperSuffixProperty(){return Yt({},this.flipperSuffix,ee)},flipperDigitalProperty(){return Yt({},this.flipperDigital,{textStyle:ee.textStyle,spacing:0,decimal:".",decimalNumber:2,backgroundColor:"#9dacbe",backgroundRadius:0,separator:!1,thousandSeparator:",",numerals:Array.from({length:10}).map((t,e)=>`<span class="digital-number">${e}</span>`),digitalAnimation:{show:!0,duration:5e3}})},countupParams(){return{duration:this.flipperDigitalProperty.digitalAnimation.show?this.flipperDigitalProperty.digitalAnimation.duration/1e3:0,decimalPlaces:this.flipperDigitalProperty.decimalNumber,formattingFn:this.formatFn}},globalProperty(){return Yt({},this.global,{layout:Xt.left,margin:4,align:Jt.left})},classes(){return["digital-card",`digital-card--layout-${this.globalProperty.layout}`,`digital-card--position-${this.globalProperty.position}`]},digitalClass(){return{"digital-card__digital":!0,"digital-card__digital--separate":this.flipperDigitalProperty.separator}},headerStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.headerProperty.textStyle)),{"--header-margin":`${this.globalProperty.margin}px`})},digitalStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.flipperDigitalProperty.textStyle)),{"--digital-background":this.flipperDigitalProperty.backgroundColor,"--digital-radius":`${this.flipperDigitalProperty.backgroundRadius}px`,"--digital-spacing":`${this.flipperDigitalProperty.spacing/2}px`})}},watch:{data(t){var e;null===(e=this.counter)||void 0===e||e.update(t)},countupParams(){this.createCounter()}},mounted(){this.createCounter()},beforeDestroy(){this.counter=null},methods:{getTextStyle(t){const[e,r]=t.weightSize;return Object.assign(Object.assign({},t),{"font-weight":e,"font-size":`${r}px`})},createCounter(){this.counter=new te(this.$refs.digitalRef,this.data,this.countupParams),this.counter.start()},formatFn(t){const{decimalNumber:e,decimal:r,thousandSeparator:n,numerals:i}=this.flipperDigitalProperty,o=t<0?"-":"";let a,s,c,l,u="";a=Math.abs(t).toFixed(e),a+="",s=a.split("."),c=s[0],l=s.length>1?`<span class="separator">${r}</span>${s[1]}`:"",u="";for(let t=0,e=c.length;t<e;++t)0!==t&&t%3==0&&(u=`<span class="separator">${n}</span>${u}`),u=c[e-t-1]+u;return c=u,i&&i.length&&(c=c.replace(/[0-9]/g,t=>i[+t]),l=l.replace(/[0-9]/g,t=>i[+t])),o+c+l}}});var ie=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes},[t.header.show?r("div",{staticClass:"digital-card__header",style:t.headerStyle},[t._v("\n "+t._s(t.header.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"digital-card__body"},[t.flipperPrefixProperty.show?r("div",{staticClass:"digital-card__prefix",style:t.getTextStyle(t.flipperPrefixProperty.textStyle)},[t._v("\n "+t._s(t.flipperPrefixProperty.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{ref:"digitalRef",class:t.digitalClass,style:t.digitalStyle}),t._v(" "),t.flipperSuffixProperty.show?r("div",{staticClass:"digital-card__suffix",style:t.getTextStyle(t.flipperSuffixProperty.textStyle)},[t._v("\n "+t._s(t.flipperSuffixProperty.textContent)+"\n ")]):t._e()])])};ie._withStripped=!0;const oe=re({render:ie,staticRenderFns:[]},void 0,ne,void 0,!1,void 0,!1,void 0,void 0,void 0);function ae(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function se(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}var ce=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}()}(),le="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ue="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),he="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ue):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var pe=["top","right","bottom","left","width","height","size","weight"],fe="undefined"!=typeof MutationObserver,de=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&s()}function a(){he(o)}function s(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(a,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){le&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fe?(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)},t.prototype.disconnect_=function(){le&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;pe.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ye=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},ve=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ue},ge=Oe(0,0,0,0);function be(t){return parseFloat(t)||0}function me(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+be(t["border-"+r+"-width"])}),0)}function _e(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return ge;var n=ve(t).getComputedStyle(t),i=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=be(o)}return e}(n),o=i.left+i.right,a=i.top+i.bottom,s=be(n.width),c=be(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=me(n,"left","right")+o),Math.round(c+a)!==r&&(c-=me(n,"top","bottom")+a)),!function(t){return t===ve(t).document.documentElement}(t)){var l=Math.round(s+o)-e,u=Math.round(c+a)-r;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return Oe(i.left,i.top,s,c)}var we="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ve(t).SVGGraphicsElement}:function(t){return t instanceof ve(t).SVGElement&&"function"==typeof t.getBBox};function xe(t){return le?we(t)?function(t){var e=t.getBBox();return Oe(0,0,e.width,e.height)}(t):_e(t):ge}function Oe(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Se=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Oe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=xe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),je=function(t,e){var r,n,i,o,a,s,c,l=(n=(r=e).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),ye(c,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),c);ye(this,{target:t,contentRect:l})},Pe=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new ce,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ve(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Se(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ve(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new je(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ee="undefined"!=typeof WeakMap?new WeakMap:new ce,Ae=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=de.getInstance(),n=new Pe(e,r,this);Ee.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){Ae.prototype[t]=function(){var e;return(e=Ee.get(this))[t].apply(e,arguments)}}));var Fe=void 0!==ue.ResizeObserver?ue.ResizeObserver:Ae,Ve="function"==typeof Float32Array;function Ce(t,e){return 1-3*e+3*t}function Te(t,e){return 3*e-6*t}function Me(t){return 3*t}function $e(t,e,r){return((Ce(e,r)*t+Te(e,r))*t+Me(e))*t}function ze(t,e,r){return 3*Ce(e,r)*t*t+2*Te(e,r)*t+Me(e)}function Re(t){return t}var De=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return Re;for(var i=Ve?new Float32Array(11):new Array(11),o=0;o<11;++o)i[o]=$e(.1*o,t,r);function a(e){for(var n=0,o=1;10!==o&&i[o]<=e;++o)n+=.1;--o;var a=n+.1*((e-i[o])/(i[o+1]-i[o])),s=ze(a,t,r);return s>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=ze(e,r,n);if(0===o)return e;e-=($e(e,r,n)-t)/o}return e}(e,a,t,r):0===s?a:function(t,e,r,n,i){var o,a,s=0;do{(o=$e(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:$e(a(t),e,n)}};const Ne="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),qe="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),We=De(0,0,1,1),ke=De(.25,.1,.25,1),Ie=De(.42,0,1,1),Le=De(0,0,.58,1),Be=De(.42,0,.58,1),Ue="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),He={delay:0,duration:250,pause:0,easingFunction:"ease"},Ge={linear:We,ease:ke,easeIn:Ie,easeOut:Le,easeInOut:Be};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Ge[t]||Ge.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:i})=>e<=t+r+n+i)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:i,handler:o})=>{const a=TimerSubscription.getEasingFunction(i),s=t-e-r,c=s<0?0:s>n?1:s/n;c>0&&c<1&&o(a(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ke=(t={})=>{let e=0,r=0,n=!1;const i={...He,...t},o=new Map,a=()=>{const t=Ue();o.forEach(e=>e.execute(t)),o.size?r=Ne(a):c()},s=()=>{n=!0,Ne(a)},c=()=>{n=!1,qe(r)};return{subscribe:(t,r)=>{const a=e++,c=()=>o.delete(a);return o.set(a,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...i,...t}));default:return[{...i,...t}]}})(t),r)),n||s(),c}}};const Xe=t.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:Ke({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=ae(t,["weightSize","spacing"]),[i="normal",o=12]=e;return Object.assign({fontWeight:i,fontSize:`${o}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Fe(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Je=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Je._withStripped=!0;const Qe=re({render:Je,staticRenderFns:[]},void 0,Xe,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ye=t.extend({components:{TextMarquee:Qe},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Yt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Yt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Yt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Yt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:i}=this.valueProperty.textStyle,[o,a]=t,[s,c]=e,[l,u]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(a,c,u)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${c}px`,"--serial-weight":s,"--value-width":this.getLength(this.valueProperty.width),"--value-color":i,"--value-size":`${u}px`,"--value-weight":l,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Yt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Yt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0}}});var Ze=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var i=e.field,o=e.value;return r("li",{key:i+t.page,staticClass:"list-bar-chart__item"},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":i,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(o)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,o)}):t._e()])})),0)};Ze._withStripped=!0;const tr=re({render:Ze,staticRenderFns:[]},void 0,Ye,void 0,!1,void 0,!1,void 0,void 0,void 0);const er=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ke(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,r]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${r}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Yt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Fe(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:r}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:r,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var rr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};rr._withStripped=!0;const nr=re({render:rr,staticRenderFns:[]},void 0,er,void 0,!1,void 0,!1,void 0,void 0,void 0);function ir(t){return(ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function or(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ar(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sr(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function cr(t,e){lr(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){lr(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){lr(t,e,r)}))}function lr(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach((function(n){var i=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,i,t,r):Reflect.defineMetadata(n,i,t)}))}var ur={__proto__:[]}instanceof Array;function hr(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var n=new e;e.prototype._init=r;var i={};return Object.keys(n).forEach((function(t){void 0!==n[t]&&(i[t]=n[t])})),i}var pr=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function fr(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.name=r.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(pr.indexOf(t)>-1)r[t]=n[t];else{var e=Object.getOwnPropertyDescriptor(n,t);void 0!==e.value?"function"==typeof e.value?(r.methods||(r.methods={}))[t]=e.value:(r.mixins||(r.mixins=[])).push({data:function(){return or({},t,e.value)}}):(e.get||e.set)&&((r.computed||(r.computed={}))[t]={get:e.get,set:e.set})}})),(r.mixins||(r.mixins=[])).push({data:function(){return hr(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(t){return t(r)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof t?o.constructor:t,s=a.extend(r);return yr(s,e,a),sr()&&cr(s,e),s}var dr={prototype:!0,arguments:!0,callee:!0,caller:!0};function yr(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!dr[n]){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||i.configurable){var o,a,s=Object.getOwnPropertyDescriptor(e,n);if(!ur){if("cid"===n)return;var c=Object.getOwnPropertyDescriptor(r,n);if(o=s.value,a=ir(o),null!=o&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,n,s)}}}))}function vr(t){return"function"==typeof t?fr(t):function(e){return fr(e,t)}}vr.registerHooks=function(t){pr.push.apply(pr,ar(t))};var gr="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function br(t){return void 0===t&&(t={}),function(e,r){var n;!function(t,e,r){if(gr&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}(t,e,r),(n=function(e,r){(e.props||(e.props={}))[r]=t},function(t,e,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return n(t,e,r)}))})(e,r)}}const mr={borderColor:"transparent",borderWidth:0,radius:0},_r=t.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.borderStyle;return Object.assign(Object.assign({},mr),{borderColor:t,borderWidth:e,radius:r})},imgStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${r}px`}}}});var wr=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};wr._withStripped=!0;const xr=re({render:wr,staticRenderFns:[]},void 0,_r,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0),Or={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let Sr=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},Or),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:r}=t,n=ae(t,["weightSize","spacing"]),[i,o]=e;return Object.assign(Object.assign({},n),{letterSpacing:`${r}px`,fontWeight:i,fontSize:`${o}px`})}};se([br({default:"这是一个标题",type:String})],Sr.prototype,"titleContent",void 0),se([br({default:()=>({}),type:Object})],Sr.prototype,"titleStyle",void 0),Sr=se([vr],Sr);const jr=Sr;var Pr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};Pr._withStripped=!0;const Er=re({render:Pr,staticRenderFns:[]},void 0,jr,void 0,!1,void 0,!1,void 0,void 0,void 0);export{oe as DigitalCardFlipper,tr as ListBarChart,nr as MultilineText,xr as SingleImage,Qe as TextMarquee,Er as Title}; | ||
import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,r="object"==typeof self&&self&&self.Object===Object&&self,n=e||r||Function("return this")(),i=n.Symbol,o=Object.prototype,a=o.hasOwnProperty,s=o.toString,l=i?i.toStringTag:void 0;var c=Object.prototype.toString;var u=i?i.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?function(t){var e=a.call(t,l),r=t[l];try{t[l]=void 0;var n=!0}catch(t){}var i=s.call(t);return n&&(e?t[l]=r:delete t[l]),i}(t):function(t){return c.call(t)}(t)}function p(t){return null!=t&&"object"==typeof t}var f=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function y(t){return t}function v(t){if(!d(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var g,b=n["__core-js_shared__"],m=(g=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";var _=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,x=Function.prototype,O=Object.prototype,S=x.toString,j=O.hasOwnProperty,P=RegExp("^"+S.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(t){return!(!d(t)||(e=t,m&&m in e))&&(v(t)?P:w).test(function(t){if(null!=t){try{return _.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function A(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return E(r)?r:void 0}var F=Object.create,V=function(){function t(){}return function(e){if(!d(e))return{};if(F)return F(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function C(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var T=Date.now;var M,$,z,R=function(){try{var t=A(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),D=(M=R?function(t,e){return R(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:y,$=0,z=0,function(){var t=T(),e=16-(t-z);if(z=t,e>0){if(++$>=800)return arguments[0]}else $=0;return M.apply(void 0,arguments)}),k=/^(?:0|[1-9]\d*)$/;function N(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&k.test(t))&&t>-1&&t%1==0&&t<e}function q(t,e,r){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function I(t,e){return t===e||t!=t&&e!=e}var W=Object.prototype.hasOwnProperty;function L(t,e,r){var n=t[e];W.call(t,e)&&I(n,r)&&(void 0!==r||e in t)||q(t,e,r)}var B=Math.max;function U(t,e){return D(function(t,e,r){return e=B(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=B(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),C(t,this,s)}}(t,e,y),t+"")}function H(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function G(t){return null!=t&&H(t.length)&&!v(t)}var K=Object.prototype;function X(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||K)}function Z(t){return p(t)&&"[object Arguments]"==h(t)}var J=Object.prototype,Q=J.hasOwnProperty,Y=J.propertyIsEnumerable,tt=Z(function(){return arguments}())?Z:function(t){return p(t)&&Q.call(t,"callee")&&!Y.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,rt=et&&"object"==typeof module&&module&&!module.nodeType&&module,nt=rt&&rt.exports===et?n.Buffer:void 0,it=(nt?nt.isBuffer:void 0)||function(){return!1},ot={};ot["[object Float32Array]"]=ot["[object Float64Array]"]=ot["[object Int8Array]"]=ot["[object Int16Array]"]=ot["[object Int32Array]"]=ot["[object Uint8Array]"]=ot["[object Uint8ClampedArray]"]=ot["[object Uint16Array]"]=ot["[object Uint32Array]"]=!0,ot["[object Arguments]"]=ot["[object Array]"]=ot["[object ArrayBuffer]"]=ot["[object Boolean]"]=ot["[object DataView]"]=ot["[object Date]"]=ot["[object Error]"]=ot["[object Function]"]=ot["[object Map]"]=ot["[object Number]"]=ot["[object Object]"]=ot["[object RegExp]"]=ot["[object Set]"]=ot["[object String]"]=ot["[object WeakMap]"]=!1;var at="object"==typeof exports&&exports&&!exports.nodeType&&exports,st=at&&"object"==typeof module&&module&&!module.nodeType&&module,lt=st&&st.exports===at&&e.process,ct=function(){try{var t=st&&st.require&&st.require("util").types;return t||lt&<.binding&<.binding("util")}catch(t){}}(),ut=ct&&ct.isTypedArray,ht=ut?function(t){return function(e){return t(e)}}(ut):function(t){return p(t)&&H(t.length)&&!!ot[h(t)]},pt=Object.prototype.hasOwnProperty;function ft(t,e){var r=f(t),n=!r&&tt(t),i=!r&&!n&&it(t),o=!r&&!n&&!i&&ht(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=s.length;for(var c in t)!e&&!pt.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||N(c,l))||s.push(c);return s}var dt=Object.prototype.hasOwnProperty;function yt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=X(t),r=[];for(var n in t)("constructor"!=n||!e&&dt.call(t,n))&&r.push(n);return r}function vt(t){return G(t)?ft(t,!0):yt(t)}var gt=A(Object,"create");var bt=Object.prototype.hasOwnProperty;var mt=Object.prototype.hasOwnProperty;function _t(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function wt(t,e){for(var r=t.length;r--;)if(I(t[r][0],e))return r;return-1}_t.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},_t.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},_t.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return bt.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:mt.call(e,t)},_t.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function Ot(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ot.prototype.clear=function(){this.__data__=[],this.size=0},Ot.prototype.delete=function(t){var e=this.__data__,r=wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():xt.call(e,r,1),--this.size,!0)},Ot.prototype.get=function(t){var e=this.__data__,r=wt(e,t);return r<0?void 0:e[r][1]},Ot.prototype.has=function(t){return wt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var r=this.__data__,n=wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var St=A(n,"Map");function jt(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Pt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new _t,map:new(St||Ot),string:new _t}},Pt.prototype.delete=function(t){var e=jt(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return jt(this,t).get(t)},Pt.prototype.has=function(t){return jt(this,t).has(t)},Pt.prototype.set=function(t,e){var r=jt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var Et=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),At=Function.prototype,Ft=Object.prototype,Vt=At.toString,Ct=Ft.hasOwnProperty,Tt=Vt.call(Object);function Mt(t){var e=this.__data__=new Ot(t);this.size=e.size}Mt.prototype.clear=function(){this.__data__=new Ot,this.size=0},Mt.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!St||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pt(n)}return r.set(t,e),this.size=r.size,this};var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=zt&&zt.exports===$t?n.Buffer:void 0,Dt=Rt?Rt.allocUnsafe:void 0;var kt=n.Uint8Array;function Nt(t,e){var r,n,i=e?(r=t.buffer,n=new r.constructor(r.byteLength),new kt(n).set(new kt(r)),n):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var qt,It=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[qt?a:++n];if(!1===e(i[s],s,i))break}return t};function Wt(t,e,r){(void 0!==r&&!I(t[e],r)||void 0===r&&!(e in t))&&q(t,e,r)}function Lt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Bt(t){return function(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=n?n(r[s],t[s],s,r,t):void 0;void 0===l&&(l=t[s]),i?q(r,s,l):L(r,s,l)}return r}(t,vt(t))}function Ut(t,e,r,n,i,o,a){var s=Lt(t,r),l=Lt(e,r),c=a.get(l);if(c)Wt(t,r,c);else{var u,y=o?o(s,l,r+"",t,e,a):void 0,g=void 0===y;if(g){var b=f(l),m=!b&&it(l),_=!b&&!m&&ht(l);y=l,b||m||_?f(s)?y=s:p(u=s)&&G(u)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):m?(g=!1,y=function(t,e){if(e)return t.slice();var r=t.length,n=Dt?Dt(r):new t.constructor(r);return t.copy(n),n}(l,!0)):_?(g=!1,y=Nt(l,!0)):y=[]:function(t){if(!p(t)||"[object Object]"!=h(t))return!1;var e=Et(t);if(null===e)return!0;var r=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Vt.call(r)==Tt}(l)||tt(l)?(y=s,tt(s)?y=Bt(s):d(s)&&!v(s)||(y=function(t){return"function"!=typeof t.constructor||X(t)?{}:V(Et(t))}(l))):g=!1}g&&(a.set(l,y),i(y,l,n,o,a),a.delete(l)),Wt(t,r,y)}}function Ht(t,e,r,n,i){t!==e&&It(e,(function(o,a){if(i||(i=new Mt),d(o))Ut(t,e,a,r,Ht,n,i);else{var s=n?n(Lt(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Wt(t,a,s)}}),vt)}function Gt(t,e,r,n,i,o){return d(t)&&d(e)&&(o.set(e,t),Ht(t,e,void 0,Gt,o),o.delete(e)),t}var Kt,Xt,Zt,Jt=(Kt=function(t,e,r,n){Ht(t,e,r,n)},U((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Kt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!d(r))return!1;var n=typeof e;return!!("number"==n?G(r)&&N(e,r.length):"string"==n&&e in r)&&I(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&Kt(t,a,r,i)}return t}))),Qt=U((function(t){return t.push(void 0,Gt),C(Jt,void 0,t)})),Yt=function(){return(Yt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},te=function(){function t(t,e,r){var n=this;this.target=t,this.endVal=e,this.options=r,this.version="2.0.5",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.countDown?n.frameVal=n.startVal-(n.startVal-n.endVal)*(e/n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration),n.countDown?n.frameVal=n.frameVal<n.endVal?n.endVal:n.frameVal:n.frameVal=n.frameVal>n.endVal?n.endVal:n.frameVal,n.frameVal=Math.round(n.frameVal*n.decimalMult)/n.decimalMult,n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.callback&&n.callback()},this.formatNumber=function(t){var e,r,i,o,a,s=t<0?"-":"";if(e=Math.abs(t).toFixed(n.options.decimalPlaces),i=(r=(e+="").split("."))[0],o=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){a="";for(var l=0,c=i.length;l<c;++l)0!==l&&l%3==0&&(a=n.options.separator+a),a=i[c-l-1]+a;i=a}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]})),o=o.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]}))),s+n.options.prefix+i+o+n.options.suffix},this.easeOutExpo=function(t,e,r,n){return r*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=Yt(Yt({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();!function(t){t.left="left",t.top="top",t.bottom="bottom"}(Xt||(Xt={})),function(t){t.left="left",t.center="center",t.right="right"}(Zt||(Zt={}));const ee={textStyle:{fontFamily:"微软雅黑",weightSize:["normal",12],color:"#9dacbe"},textContent:"",show:!0};function re(t,e,r,n,i,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof r?r.options:r;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),n&&(u._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=h):e&&(h=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,r){return h.call(r),t(e,r)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return r}const ne=t.extend({props:{data:{type:Number,default:0},global:{type:Object},header:{type:Object},flipperPrefix:{type:Object},flipperSuffix:{type:Object},flipperDigital:{type:Object}},data:()=>({counter:null}),computed:{headerProperty(){return Qt({},this.header,ee)},flipperPrefixProperty(){return Qt({},this.flipperPrefix,ee)},flipperSuffixProperty(){return Qt({},this.flipperSuffix,ee)},flipperDigitalProperty(){return Qt({},this.flipperDigital,{textStyle:ee.textStyle,spacing:0,decimal:".",decimalNumber:2,backgroundColor:"#9dacbe",backgroundRadius:0,separator:!1,thousandSeparator:",",numerals:Array.from({length:10}).map((t,e)=>`<span class="digital-number">${e}</span>`),digitalAnimation:{show:!0,duration:5e3}})},countupParams(){return{duration:this.flipperDigitalProperty.digitalAnimation.show?this.flipperDigitalProperty.digitalAnimation.duration/1e3:0,decimalPlaces:this.flipperDigitalProperty.decimalNumber,formattingFn:this.formatFn}},globalProperty(){return Qt({},this.global,{layout:Xt.left,margin:4,align:Zt.left})},classes(){return["digital-card",`digital-card--layout-${this.globalProperty.layout}`,`digital-card--position-${this.globalProperty.position}`]},digitalClass(){return{"digital-card__digital":!0,"digital-card__digital--separate":this.flipperDigitalProperty.separator}},headerStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.headerProperty.textStyle)),{"--header-margin":`${this.globalProperty.margin}px`})},digitalStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.flipperDigitalProperty.textStyle)),{"--digital-background":this.flipperDigitalProperty.backgroundColor,"--digital-radius":`${this.flipperDigitalProperty.backgroundRadius}px`,"--digital-spacing":`${this.flipperDigitalProperty.spacing/2}px`})}},watch:{data(t){var e;null===(e=this.counter)||void 0===e||e.update(t)},countupParams(){this.createCounter()}},mounted(){this.createCounter()},beforeDestroy(){this.counter=null},methods:{getTextStyle(t){const[e,r]=t.weightSize;return Object.assign(Object.assign({},t),{"font-weight":e,"font-size":`${r}px`})},createCounter(){this.counter=new te(this.$refs.digitalRef,this.data,this.countupParams),this.counter.start()},formatFn(t){const{decimalNumber:e,decimal:r,thousandSeparator:n,numerals:i}=this.flipperDigitalProperty,o=t<0?"-":"";let a,s,l,c,u="";a=Math.abs(t).toFixed(e),a+="",s=a.split("."),l=s[0],c=s.length>1?`<span class="separator">${r}</span>${s[1]}`:"",u="";for(let t=0,e=l.length;t<e;++t)0!==t&&t%3==0&&(u=`<span class="separator">${n}</span>${u}`),u=l[e-t-1]+u;return l=u,i&&i.length&&(l=l.replace(/[0-9]/g,t=>i[+t]),c=c.replace(/[0-9]/g,t=>i[+t])),o+l+c}}});var ie=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes},[t.header.show?r("div",{staticClass:"digital-card__header",style:t.headerStyle},[t._v("\n "+t._s(t.header.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"digital-card__body"},[t.flipperPrefixProperty.show?r("div",{staticClass:"digital-card__prefix",style:t.getTextStyle(t.flipperPrefixProperty.textStyle)},[t._v("\n "+t._s(t.flipperPrefixProperty.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{ref:"digitalRef",class:t.digitalClass,style:t.digitalStyle}),t._v(" "),t.flipperSuffixProperty.show?r("div",{staticClass:"digital-card__suffix",style:t.getTextStyle(t.flipperSuffixProperty.textStyle)},[t._v("\n "+t._s(t.flipperSuffixProperty.textContent)+"\n ")]):t._e()])])};ie._withStripped=!0;const oe=re({render:ie,staticRenderFns:[]},void 0,ne,void 0,!1,void 0,!1,void 0,void 0,void 0);function ae(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function se(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}var le=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}()}(),ce="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ue="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),he="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ue):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var pe=["top","right","bottom","left","width","height","size","weight"],fe="undefined"!=typeof MutationObserver,de=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&s()}function a(){he(o)}function s(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(a,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ce&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fe?(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)},t.prototype.disconnect_=function(){ce&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;pe.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ye=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},ve=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ue},ge=Oe(0,0,0,0);function be(t){return parseFloat(t)||0}function me(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+be(t["border-"+r+"-width"])}),0)}function _e(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return ge;var n=ve(t).getComputedStyle(t),i=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=be(o)}return e}(n),o=i.left+i.right,a=i.top+i.bottom,s=be(n.width),l=be(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=me(n,"left","right")+o),Math.round(l+a)!==r&&(l-=me(n,"top","bottom")+a)),!function(t){return t===ve(t).document.documentElement}(t)){var c=Math.round(s+o)-e,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Oe(i.left,i.top,s,l)}var we="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ve(t).SVGGraphicsElement}:function(t){return t instanceof ve(t).SVGElement&&"function"==typeof t.getBBox};function xe(t){return ce?we(t)?function(t){var e=t.getBBox();return Oe(0,0,e.width,e.height)}(t):_e(t):ge}function Oe(t,e,r,n){return{x:t,y:e,width:r,height:n}}var Se=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Oe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=xe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),je=function(t,e){var r,n,i,o,a,s,l,c=(n=(r=e).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),ye(l,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),l);ye(this,{target:t,contentRect:c})},Pe=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new le,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ve(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Se(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ve(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new je(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ee="undefined"!=typeof WeakMap?new WeakMap:new le,Ae=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=de.getInstance(),n=new Pe(e,r,this);Ee.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){Ae.prototype[t]=function(){var e;return(e=Ee.get(this))[t].apply(e,arguments)}}));var Fe=void 0!==ue.ResizeObserver?ue.ResizeObserver:Ae,Ve="function"==typeof Float32Array;function Ce(t,e){return 1-3*e+3*t}function Te(t,e){return 3*e-6*t}function Me(t){return 3*t}function $e(t,e,r){return((Ce(e,r)*t+Te(e,r))*t+Me(e))*t}function ze(t,e,r){return 3*Ce(e,r)*t*t+2*Te(e,r)*t+Me(e)}function Re(t){return t}var De=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return Re;for(var i=Ve?new Float32Array(11):new Array(11),o=0;o<11;++o)i[o]=$e(.1*o,t,r);function a(e){for(var n=0,o=1;10!==o&&i[o]<=e;++o)n+=.1;--o;var a=n+.1*((e-i[o])/(i[o+1]-i[o])),s=ze(a,t,r);return s>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=ze(e,r,n);if(0===o)return e;e-=($e(e,r,n)-t)/o}return e}(e,a,t,r):0===s?a:function(t,e,r,n,i){var o,a,s=0;do{(o=$e(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:$e(a(t),e,n)}};const ke="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Ne="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),qe=De(0,0,1,1),Ie=De(.25,.1,.25,1),We=De(.42,0,1,1),Le=De(0,0,.58,1),Be=De(.42,0,.58,1),Ue="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),He={delay:0,duration:250,pause:0,easingFunction:"ease"},Ge={linear:qe,ease:Ie,easeIn:We,easeOut:Le,easeInOut:Be};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Ge[t]||Ge.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:i})=>e<=t+r+n+i)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:i,handler:o})=>{const a=TimerSubscription.getEasingFunction(i),s=t-e-r,l=s<0?0:s>n?1:s/n;l>0&&l<1&&o(a(l))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ke=(t={})=>{let e=0,r=0,n=!1;const i={...He,...t},o=new Map,a=()=>{const t=Ue();o.forEach(e=>e.execute(t)),o.size?r=ke(a):l()},s=()=>{n=!0,ke(a)},l=()=>{n=!1,Ne(r)};return{subscribe:(t,r)=>{const a=e++,l=()=>o.delete(a);return o.set(a,new TimerSubscription(l,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...i,...t}));default:return[{...i,...t}]}})(t),r)),n||s(),l}}};const Xe=t.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:Ke({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=ae(t,["weightSize","spacing"]),[i="normal",o=12]=e;return Object.assign({fontWeight:i,fontSize:`${o}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Qt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Fe(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Ze=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Ze._withStripped=!0;const Je=re({render:Ze,staticRenderFns:[]},void 0,Xe,void 0,!1,void 0,!1,void 0,void 0,void 0);const Qe=t.extend({components:{TextMarquee:Je},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Qt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Qt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Qt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Qt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:i}=this.valueProperty.textStyle,[o,a]=t,[s,l]=e,[c,u]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(a,l,u)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${l}px`,"--serial-weight":s,"--value-width":this.getLength(this.valueProperty.width),"--value-color":i,"--value-size":`${u}px`,"--value-weight":c,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Qt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Qt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0},handleItemClick(t,e,r,n){this.$emit("item-click",{field:t,value:e},r,n)},handleItemMounseEnter(t,e,r,n){this.$emit("item-mouseenter",{field:t,value:e},r,n)},handleItemMouseLeave(t,e,r,n){this.$emit("item-mouseleave",{field:t,value:e},r,n)}}});var Ye=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var i=e.field,o=e.value;return r("li",{key:i+t.page,staticClass:"list-bar-chart__item",on:{click:function(e){return t.handleItemClick(i,o,n,e)},mouseenter:function(e){return t.handleItemMounseEnter(i,o,n,e)},mouseleave:function(e){return t.handleItemMouseLeave(i,o,n,e)}}},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":i,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(o)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,o)}):t._e()])})),0)};Ye._withStripped=!0;const tr=re({render:Ye,staticRenderFns:[]},void 0,Qe,void 0,!1,void 0,!1,void 0,void 0,void 0);const er=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ke(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Qt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,r]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${r}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Qt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Fe(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:r}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:r,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var rr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};rr._withStripped=!0;const nr=re({render:rr,staticRenderFns:[]},void 0,er,void 0,!1,void 0,!1,void 0,void 0,void 0);function ir(t){return(ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function or(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ar(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sr(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function lr(t,e){cr(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){cr(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){cr(t,e,r)}))}function cr(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach((function(n){var i=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,i,t,r):Reflect.defineMetadata(n,i,t)}))}var ur={__proto__:[]}instanceof Array;function hr(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var n=new e;e.prototype._init=r;var i={};return Object.keys(n).forEach((function(t){void 0!==n[t]&&(i[t]=n[t])})),i}var pr=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function fr(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.name=r.name||e._componentTag||e.name;var n=e.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(pr.indexOf(t)>-1)r[t]=n[t];else{var e=Object.getOwnPropertyDescriptor(n,t);void 0!==e.value?"function"==typeof e.value?(r.methods||(r.methods={}))[t]=e.value:(r.mixins||(r.mixins=[])).push({data:function(){return or({},t,e.value)}}):(e.get||e.set)&&((r.computed||(r.computed={}))[t]={get:e.get,set:e.set})}})),(r.mixins||(r.mixins=[])).push({data:function(){return hr(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(t){return t(r)})),delete e.__decorators__);var o=Object.getPrototypeOf(e.prototype),a=o instanceof t?o.constructor:t,s=a.extend(r);return yr(s,e,a),sr()&&lr(s,e),s}var dr={prototype:!0,arguments:!0,callee:!0,caller:!0};function yr(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!dr[n]){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||i.configurable){var o,a,s=Object.getOwnPropertyDescriptor(e,n);if(!ur){if("cid"===n)return;var l=Object.getOwnPropertyDescriptor(r,n);if(o=s.value,a=ir(o),null!=o&&("object"===a||"function"===a)&&l&&l.value===s.value)return}Object.defineProperty(t,n,s)}}}))}function vr(t){return"function"==typeof t?fr(t):function(e){return fr(e,t)}}vr.registerHooks=function(t){pr.push.apply(pr,ar(t))};var gr="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function br(t){return void 0===t&&(t={}),function(e,r){var n;!function(t,e,r){if(gr&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}(t,e,r),(n=function(e,r){(e.props||(e.props={}))[r]=t},function(t,e,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return n(t,e,r)}))})(e,r)}}var mr=/\B([A-Z])/g;function _r(t){return t instanceof Promise||t&&"function"==typeof t.then}const wr={borderColor:"transparent",borderWidth:0,radius:0},xr=t.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.borderStyle;return Object.assign(Object.assign({},wr),{borderColor:t,borderWidth:e,radius:r})},imgStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${r}px`}}},methods:{handleImgClick(t){this.$emit("click",t)}}});var Or=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url},on:{click:this.handleImgClick}})};Or._withStripped=!0;const Sr=re({render:Or,staticRenderFns:[]},void 0,xr,"data-v-c6b7e896",!1,void 0,!1,void 0,void 0,void 0),jr={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let Pr=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},jr),this.titleStyle)}handleTitleClick(t){return t}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:r}=t,n=ae(t,["weightSize","spacing"]),[i,o]=e;return Object.assign(Object.assign({},n),{letterSpacing:`${r}px`,fontWeight:i,fontSize:`${o}px`})}};var Er;se([br({default:"这是一个标题",type:String})],Pr.prototype,"titleContent",void 0),se([br({default:()=>({}),type:Object})],Pr.prototype,"titleStyle",void 0),se([(Er="click",function(t,e,r){var n=e.replace(mr,"-$1").toLowerCase(),i=r.value;r.value=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=function(r){var i=Er||n;void 0===r?0===e.length?t.$emit(i):1===e.length?t.$emit(i,e[0]):t.$emit(i,e):t.$emit(i,r)},a=i.apply(this,e);return _r(a)?a.then((function(t){o(t)})):o(a),a}})],Pr.prototype,"handleTitleClick",null),Pr=se([vr],Pr);const Ar=Pr;var Fr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title",on:{click:this.handleTitleClick}},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};Fr._withStripped=!0;const Vr=re({render:Fr,staticRenderFns:[]},void 0,Ar,void 0,!1,void 0,!1,void 0,void 0,void 0);export{oe as DigitalCardFlipper,tr as ListBarChart,nr as MultilineText,Sr as SingleImage,Je as TextMarquee,Vr as Title}; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var r="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")(),o=i.Symbol,a=Object.prototype,s=a.hasOwnProperty,c=a.toString,l=o?o.toStringTag:void 0;var u=Object.prototype.toString;var h=o?o.toStringTag:void 0;function p(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?function(t){var e=s.call(t,l),r=t[l];try{t[l]=void 0;var n=!0}catch(t){}var i=c.call(t);return n&&(e?t[l]=r:delete t[l]),i}(t):function(t){return u.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}var d=Array.isArray;function y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function v(t){return t}function b(t){if(!y(t))return!1;var e=p(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var g,m=i["__core-js_shared__"],_=(g=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";var w=Function.prototype.toString;var x=/^\[object .+?Constructor\]$/,O=Function.prototype,S=Object.prototype,j=O.toString,P=S.hasOwnProperty,E=RegExp("^"+j.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function A(t){return!(!y(t)||(e=t,_&&_ in e))&&(b(t)?E:x).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function F(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return A(r)?r:void 0}var V=Object.create,C=function(){function t(){}return function(e){if(!y(e))return{};if(V)return V(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function T(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var M=Date.now;var $,z,R,D=function(){try{var t=F(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),N=($=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:v,z=0,R=0,function(){var t=M(),e=16-(t-R);if(R=t,e>0){if(++z>=800)return arguments[0]}else z=0;return $.apply(void 0,arguments)}),q=/^(?:0|[1-9]\d*)$/;function W(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&q.test(t))&&t>-1&&t%1==0&&t<e}function k(t,e,r){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function I(t,e){return t===e||t!=t&&e!=e}var L=Object.prototype.hasOwnProperty;function B(t,e,r){var n=t[e];L.call(t,e)&&I(n,r)&&(void 0!==r||e in t)||k(t,e,r)}var U=Math.max;function H(t,e){return N(function(t,e,r){return e=U(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=U(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),T(t,this,s)}}(t,e,v),t+"")}function G(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function K(t){return null!=t&&G(t.length)&&!b(t)}var X=Object.prototype;function J(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function Q(t){return f(t)&&"[object Arguments]"==p(t)}var Y=Object.prototype,Z=Y.hasOwnProperty,tt=Y.propertyIsEnumerable,et=Q(function(){return arguments}())?Q:function(t){return f(t)&&Z.call(t,"callee")&&!tt.call(t,"callee")};var rt="object"==typeof t&&t&&!t.nodeType&&t,nt=rt&&"object"==typeof module&&module&&!module.nodeType&&module,it=nt&&nt.exports===rt?i.Buffer:void 0,ot=(it?it.isBuffer:void 0)||function(){return!1},at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1;var st="object"==typeof t&&t&&!t.nodeType&&t,ct=st&&"object"==typeof module&&module&&!module.nodeType&&module,lt=ct&&ct.exports===st&&r.process,ut=function(){try{var t=ct&&ct.require&&ct.require("util").types;return t||lt&<.binding&<.binding("util")}catch(t){}}(),ht=ut&&ut.isTypedArray,pt=ht?function(t){return function(e){return t(e)}}(ht):function(t){return f(t)&&G(t.length)&&!!at[p(t)]},ft=Object.prototype.hasOwnProperty;function dt(t,e){var r=d(t),n=!r&&et(t),i=!r&&!n&&ot(t),o=!r&&!n&&!i&&pt(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=s.length;for(var l in t)!e&&!ft.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||W(l,c))||s.push(l);return s}var yt=Object.prototype.hasOwnProperty;function vt(t){if(!y(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=J(t),r=[];for(var n in t)("constructor"!=n||!e&&yt.call(t,n))&&r.push(n);return r}function bt(t){return K(t)?dt(t,!0):vt(t)}var gt=F(Object,"create");var mt=Object.prototype.hasOwnProperty;var _t=Object.prototype.hasOwnProperty;function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t,e){for(var r=t.length;r--;)if(I(t[r][0],e))return r;return-1}wt.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},wt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},wt.prototype.get=function(t){var e=this.__data__;if(gt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return mt.call(e,t)?e[t]:void 0},wt.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:_t.call(e,t)},wt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function St(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}St.prototype.clear=function(){this.__data__=[],this.size=0},St.prototype.delete=function(t){var e=this.__data__,r=xt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ot.call(e,r,1),--this.size,!0)},St.prototype.get=function(t){var e=this.__data__,r=xt(e,t);return r<0?void 0:e[r][1]},St.prototype.has=function(t){return xt(this.__data__,t)>-1},St.prototype.set=function(t,e){var r=this.__data__,n=xt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var jt=F(i,"Map");function Pt(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new wt,map:new(jt||St),string:new wt}},Et.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},Et.prototype.get=function(t){return Pt(this,t).get(t)},Et.prototype.has=function(t){return Pt(this,t).has(t)},Et.prototype.set=function(t,e){var r=Pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var At=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),Ft=Function.prototype,Vt=Object.prototype,Ct=Ft.toString,Tt=Vt.hasOwnProperty,Mt=Ct.call(Object);function $t(t){var e=this.__data__=new St(t);this.size=e.size}$t.prototype.clear=function(){this.__data__=new St,this.size=0},$t.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,e){var r=this.__data__;if(r instanceof St){var n=r.__data__;if(!jt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(t,e),this.size=r.size,this};var zt="object"==typeof t&&t&&!t.nodeType&&t,Rt=zt&&"object"==typeof module&&module&&!module.nodeType&&module,Dt=Rt&&Rt.exports===zt?i.Buffer:void 0,Nt=Dt?Dt.allocUnsafe:void 0;var qt=i.Uint8Array;function Wt(t,e){var r,n,i=e?(r=t.buffer,n=new r.constructor(r.byteLength),new qt(n).set(new qt(r)),n):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var kt,It=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[kt?a:++n];if(!1===e(i[s],s,i))break}return t};function Lt(t,e,r){(void 0!==r&&!I(t[e],r)||void 0===r&&!(e in t))&&k(t,e,r)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),i?k(r,s,c):B(r,s,c)}return r}(t,bt(t))}function Ht(t,e,r,n,i,o,a){var s=Bt(t,r),c=Bt(e,r),l=a.get(c);if(l)Lt(t,r,l);else{var u,h=o?o(s,c,r+"",t,e,a):void 0,v=void 0===h;if(v){var g=d(c),m=!g&&ot(c),_=!g&&!m&&pt(c);h=c,g||m||_?d(s)?h=s:f(u=s)&&K(u)?h=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):m?(v=!1,h=function(t,e){if(e)return t.slice();var r=t.length,n=Nt?Nt(r):new t.constructor(r);return t.copy(n),n}(c,!0)):_?(v=!1,h=Wt(c,!0)):h=[]:function(t){if(!f(t)||"[object Object]"!=p(t))return!1;var e=At(t);if(null===e)return!0;var r=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ct.call(r)==Mt}(c)||et(c)?(h=s,et(s)?h=Ut(s):y(s)&&!b(s)||(h=function(t){return"function"!=typeof t.constructor||J(t)?{}:C(At(t))}(c))):v=!1}v&&(a.set(c,h),i(h,c,n,o,a),a.delete(c)),Lt(t,r,h)}}function Gt(t,e,r,n,i){t!==e&&It(e,(function(o,a){if(i||(i=new $t),y(o))Ht(t,e,a,r,Gt,n,i);else{var s=n?n(Bt(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Lt(t,a,s)}}),bt)}function Kt(t,e,r,n,i,o){return y(t)&&y(e)&&(o.set(e,t),Gt(t,e,void 0,Kt,o),o.delete(e)),t}var Xt,Jt,Qt,Yt=(Xt=function(t,e,r,n){Gt(t,e,r,n)},H((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Xt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!y(r))return!1;var n=typeof e;return!!("number"==n?K(r)&&W(e,r.length):"string"==n&&e in r)&&I(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&Xt(t,a,r,i)}return t}))),Zt=H((function(t){return t.push(void 0,Kt),T(Yt,void 0,t)})),te=function(){return(te=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ee=function(){function t(t,e,r){var n=this;this.target=t,this.endVal=e,this.options=r,this.version="2.0.5",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.countDown?n.frameVal=n.startVal-(n.startVal-n.endVal)*(e/n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration),n.countDown?n.frameVal=n.frameVal<n.endVal?n.endVal:n.frameVal:n.frameVal=n.frameVal>n.endVal?n.endVal:n.frameVal,n.frameVal=Math.round(n.frameVal*n.decimalMult)/n.decimalMult,n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.callback&&n.callback()},this.formatNumber=function(t){var e,r,i,o,a,s=t<0?"-":"";if(e=Math.abs(t).toFixed(n.options.decimalPlaces),i=(r=(e+="").split("."))[0],o=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){a="";for(var c=0,l=i.length;c<l;++c)0!==c&&c%3==0&&(a=n.options.separator+a),a=i[l-c-1]+a;i=a}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]})),o=o.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]}))),s+n.options.prefix+i+o+n.options.suffix},this.easeOutExpo=function(t,e,r,n){return r*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=te(te({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();!function(t){t.left="left",t.top="top",t.bottom="bottom"}(Jt||(Jt={})),function(t){t.left="left",t.center="center",t.right="right"}(Qt||(Qt={}));const re={textStyle:{fontFamily:"微软雅黑",weightSize:["normal",12],color:"#9dacbe"},textContent:"",show:!0};function ne(t,e,r,n,i,o,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);const u="function"==typeof r?r.options:r;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),n&&(u._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=h):e&&(h=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,r){return h.call(r),t(e,r)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return r}const ie=e.extend({props:{data:{type:Number,default:0},global:{type:Object},header:{type:Object},flipperPrefix:{type:Object},flipperSuffix:{type:Object},flipperDigital:{type:Object}},data:()=>({counter:null}),computed:{headerProperty(){return Zt({},this.header,re)},flipperPrefixProperty(){return Zt({},this.flipperPrefix,re)},flipperSuffixProperty(){return Zt({},this.flipperSuffix,re)},flipperDigitalProperty(){return Zt({},this.flipperDigital,{textStyle:re.textStyle,spacing:0,decimal:".",decimalNumber:2,backgroundColor:"#9dacbe",backgroundRadius:0,separator:!1,thousandSeparator:",",numerals:Array.from({length:10}).map((t,e)=>`<span class="digital-number">${e}</span>`),digitalAnimation:{show:!0,duration:5e3}})},countupParams(){return{duration:this.flipperDigitalProperty.digitalAnimation.show?this.flipperDigitalProperty.digitalAnimation.duration/1e3:0,decimalPlaces:this.flipperDigitalProperty.decimalNumber,formattingFn:this.formatFn}},globalProperty(){return Zt({},this.global,{layout:Jt.left,margin:4,align:Qt.left})},classes(){return["digital-card",`digital-card--layout-${this.globalProperty.layout}`,`digital-card--position-${this.globalProperty.position}`]},digitalClass(){return{"digital-card__digital":!0,"digital-card__digital--separate":this.flipperDigitalProperty.separator}},headerStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.headerProperty.textStyle)),{"--header-margin":`${this.globalProperty.margin}px`})},digitalStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.flipperDigitalProperty.textStyle)),{"--digital-background":this.flipperDigitalProperty.backgroundColor,"--digital-radius":`${this.flipperDigitalProperty.backgroundRadius}px`,"--digital-spacing":`${this.flipperDigitalProperty.spacing/2}px`})}},watch:{data(t){var e;null===(e=this.counter)||void 0===e||e.update(t)},countupParams(){this.createCounter()}},mounted(){this.createCounter()},beforeDestroy(){this.counter=null},methods:{getTextStyle(t){const[e,r]=t.weightSize;return Object.assign(Object.assign({},t),{"font-weight":e,"font-size":`${r}px`})},createCounter(){this.counter=new ee(this.$refs.digitalRef,this.data,this.countupParams),this.counter.start()},formatFn(t){const{decimalNumber:e,decimal:r,thousandSeparator:n,numerals:i}=this.flipperDigitalProperty,o=t<0?"-":"";let a,s,c,l,u="";a=Math.abs(t).toFixed(e),a+="",s=a.split("."),c=s[0],l=s.length>1?`<span class="separator">${r}</span>${s[1]}`:"",u="";for(let t=0,e=c.length;t<e;++t)0!==t&&t%3==0&&(u=`<span class="separator">${n}</span>${u}`),u=c[e-t-1]+u;return c=u,i&&i.length&&(c=c.replace(/[0-9]/g,t=>i[+t]),l=l.replace(/[0-9]/g,t=>i[+t])),o+c+l}}});var oe=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes},[t.header.show?r("div",{staticClass:"digital-card__header",style:t.headerStyle},[t._v("\n "+t._s(t.header.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"digital-card__body"},[t.flipperPrefixProperty.show?r("div",{staticClass:"digital-card__prefix",style:t.getTextStyle(t.flipperPrefixProperty.textStyle)},[t._v("\n "+t._s(t.flipperPrefixProperty.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{ref:"digitalRef",class:t.digitalClass,style:t.digitalStyle}),t._v(" "),t.flipperSuffixProperty.show?r("div",{staticClass:"digital-card__suffix",style:t.getTextStyle(t.flipperSuffixProperty.textStyle)},[t._v("\n "+t._s(t.flipperSuffixProperty.textContent)+"\n ")]):t._e()])])};oe._withStripped=!0;const ae=ne({render:oe,staticRenderFns:[]},void 0,ie,void 0,!1,void 0,!1,void 0,void 0,void 0);function se(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function ce(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}var le=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}()}(),ue="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,he="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),pe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(he):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var fe=["top","right","bottom","left","width","height","size","weight"],de="undefined"!=typeof MutationObserver,ye=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&s()}function a(){pe(o)}function s(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(a,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ue&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),de?(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)},t.prototype.disconnect_=function(){ue&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;fe.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ve=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},be=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||he},ge=Se(0,0,0,0);function me(t){return parseFloat(t)||0}function _e(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+me(t["border-"+r+"-width"])}),0)}function we(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return ge;var n=be(t).getComputedStyle(t),i=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=me(o)}return e}(n),o=i.left+i.right,a=i.top+i.bottom,s=me(n.width),c=me(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=_e(n,"left","right")+o),Math.round(c+a)!==r&&(c-=_e(n,"top","bottom")+a)),!function(t){return t===be(t).document.documentElement}(t)){var l=Math.round(s+o)-e,u=Math.round(c+a)-r;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return Se(i.left,i.top,s,c)}var xe="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof be(t).SVGGraphicsElement}:function(t){return t instanceof be(t).SVGElement&&"function"==typeof t.getBBox};function Oe(t){return ue?xe(t)?function(t){var e=t.getBBox();return Se(0,0,e.width,e.height)}(t):we(t):ge}function Se(t,e,r,n){return{x:t,y:e,width:r,height:n}}var je=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Se(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Oe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Pe=function(t,e){var r,n,i,o,a,s,c,l=(n=(r=e).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),ve(c,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),c);ve(this,{target:t,contentRect:l})},Ee=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new le,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof be(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new je(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof be(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Pe(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ae="undefined"!=typeof WeakMap?new WeakMap:new le,Fe=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ye.getInstance(),n=new Ee(e,r,this);Ae.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){Fe.prototype[t]=function(){var e;return(e=Ae.get(this))[t].apply(e,arguments)}}));var Ve=void 0!==he.ResizeObserver?he.ResizeObserver:Fe,Ce="function"==typeof Float32Array;function Te(t,e){return 1-3*e+3*t}function Me(t,e){return 3*e-6*t}function $e(t){return 3*t}function ze(t,e,r){return((Te(e,r)*t+Me(e,r))*t+$e(e))*t}function Re(t,e,r){return 3*Te(e,r)*t*t+2*Me(e,r)*t+$e(e)}function De(t){return t}var Ne=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return De;for(var i=Ce?new Float32Array(11):new Array(11),o=0;o<11;++o)i[o]=ze(.1*o,t,r);function a(e){for(var n=0,o=1;10!==o&&i[o]<=e;++o)n+=.1;--o;var a=n+.1*((e-i[o])/(i[o+1]-i[o])),s=Re(a,t,r);return s>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=Re(e,r,n);if(0===o)return e;e-=(ze(e,r,n)-t)/o}return e}(e,a,t,r):0===s?a:function(t,e,r,n,i){var o,a,s=0;do{(o=ze(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:ze(a(t),e,n)}};const qe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),We="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),ke=Ne(0,0,1,1),Ie=Ne(.25,.1,.25,1),Le=Ne(.42,0,1,1),Be=Ne(0,0,.58,1),Ue=Ne(.42,0,.58,1),He="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),Ge={delay:0,duration:250,pause:0,easingFunction:"ease"},Ke={linear:ke,ease:Ie,easeIn:Le,easeOut:Be,easeInOut:Ue};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Ke[t]||Ke.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:i})=>e<=t+r+n+i)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:i,handler:o})=>{const a=TimerSubscription.getEasingFunction(i),s=t-e-r,c=s<0?0:s>n?1:s/n;c>0&&c<1&&o(a(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Xe=(t={})=>{let e=0,r=0,n=!1;const i={...Ge,...t},o=new Map,a=()=>{const t=He();o.forEach(e=>e.execute(t)),o.size?r=qe(a):c()},s=()=>{n=!0,qe(a)},c=()=>{n=!1,We(r)};return{subscribe:(t,r)=>{const a=e++,c=()=>o.delete(a);return o.set(a,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...i,...t}));default:return[{...i,...t}]}})(t),r)),n||s(),c}}};const Je=e.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:Xe({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=se(t,["weightSize","spacing"]),[i="normal",o=12]=e;return Object.assign({fontWeight:i,fontSize:`${o}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Zt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Ve(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Qe=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Qe._withStripped=!0;const Ye=ne({render:Qe,staticRenderFns:[]},void 0,Je,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ze=e.extend({components:{TextMarquee:Ye},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Zt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Zt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Zt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Zt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:i}=this.valueProperty.textStyle,[o,a]=t,[s,c]=e,[l,u]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(a,c,u)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${c}px`,"--serial-weight":s,"--value-width":this.getLength(this.valueProperty.width),"--value-color":i,"--value-size":`${u}px`,"--value-weight":l,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Zt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Zt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0}}});var tr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var i=e.field,o=e.value;return r("li",{key:i+t.page,staticClass:"list-bar-chart__item"},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":i,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(o)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,o)}):t._e()])})),0)};tr._withStripped=!0;const er=ne({render:tr,staticRenderFns:[]},void 0,Ze,void 0,!1,void 0,!1,void 0,void 0,void 0);const rr=e.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Xe(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Zt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,r]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${r}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Zt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Ve(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:r}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:r,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var nr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};nr._withStripped=!0;const ir=ne({render:nr,staticRenderFns:[]},void 0,rr,void 0,!1,void 0,!1,void 0,void 0,void 0);function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ar(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sr(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function cr(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function lr(t,e){ur(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){ur(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){ur(t,e,r)}))}function ur(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach((function(n){var i=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,i,t,r):Reflect.defineMetadata(n,i,t)}))}var hr={__proto__:[]}instanceof Array;function pr(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var n=new e;e.prototype._init=r;var i={};return Object.keys(n).forEach((function(t){void 0!==n[t]&&(i[t]=n[t])})),i}var fr=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function dr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.name=r.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(fr.indexOf(t)>-1)r[t]=n[t];else{var e=Object.getOwnPropertyDescriptor(n,t);void 0!==e.value?"function"==typeof e.value?(r.methods||(r.methods={}))[t]=e.value:(r.mixins||(r.mixins=[])).push({data:function(){return ar({},t,e.value)}}):(e.get||e.set)&&((r.computed||(r.computed={}))[t]={get:e.get,set:e.set})}})),(r.mixins||(r.mixins=[])).push({data:function(){return pr(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(r)})),delete t.__decorators__);var o=Object.getPrototypeOf(t.prototype),a=o instanceof e?o.constructor:e,s=a.extend(r);return vr(s,t,a),cr()&&lr(s,t),s}var yr={prototype:!0,arguments:!0,callee:!0,caller:!0};function vr(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!yr[n]){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||i.configurable){var o,a,s=Object.getOwnPropertyDescriptor(e,n);if(!hr){if("cid"===n)return;var c=Object.getOwnPropertyDescriptor(r,n);if(o=s.value,a=or(o),null!=o&&("object"===a||"function"===a)&&c&&c.value===s.value)return}Object.defineProperty(t,n,s)}}}))}function br(t){return"function"==typeof t?dr(t):function(e){return dr(e,t)}}br.registerHooks=function(t){fr.push.apply(fr,sr(t))};var gr="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function mr(t){return void 0===t&&(t={}),function(e,r){var n;!function(t,e,r){if(gr&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}(t,e,r),(n=function(e,r){(e.props||(e.props={}))[r]=t},function(t,e,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return n(t,e,r)}))})(e,r)}}const _r={borderColor:"transparent",borderWidth:0,radius:0},wr=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.borderStyle;return Object.assign(Object.assign({},_r),{borderColor:t,borderWidth:e,radius:r})},imgStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${r}px`}}}});var xr=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};xr._withStripped=!0;const Or=ne({render:xr,staticRenderFns:[]},void 0,wr,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0),Sr={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let jr=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},Sr),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:r}=t,n=se(t,["weightSize","spacing"]),[i,o]=e;return Object.assign(Object.assign({},n),{letterSpacing:`${r}px`,fontWeight:i,fontSize:`${o}px`})}};ce([mr({default:"这是一个标题",type:String})],jr.prototype,"titleContent",void 0),ce([mr({default:()=>({}),type:Object})],jr.prototype,"titleStyle",void 0),jr=ce([br],jr);const Pr=jr;var Er=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};Er._withStripped=!0;const Ar=ne({render:Er,staticRenderFns:[]},void 0,Pr,void 0,!1,void 0,!1,void 0,void 0,void 0);t.DigitalCardFlipper=ae,t.ListBarChart=er,t.MultilineText=ir,t.SingleImage=Or,t.TextMarquee=Ye,t.Title=Ar,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var r="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")(),o=i.Symbol,a=Object.prototype,s=a.hasOwnProperty,l=a.toString,c=o?o.toStringTag:void 0;var u=Object.prototype.toString;var h=o?o.toStringTag:void 0;function p(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?function(t){var e=s.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var i=l.call(t);return n&&(e?t[c]=r:delete t[c]),i}(t):function(t){return u.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}var d=Array.isArray;function y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function v(t){return t}function g(t){if(!y(t))return!1;var e=p(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var b,m=i["__core-js_shared__"],_=(b=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var w=Function.prototype.toString;var x=/^\[object .+?Constructor\]$/,O=Function.prototype,S=Object.prototype,j=O.toString,P=S.hasOwnProperty,E=RegExp("^"+j.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function A(t){return!(!y(t)||(e=t,_&&_ in e))&&(g(t)?E:x).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function F(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return A(r)?r:void 0}var V=Object.create,C=function(){function t(){}return function(e){if(!y(e))return{};if(V)return V(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function M(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var T=Date.now;var $,z,R,D=function(){try{var t=F(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),k=($=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:v,z=0,R=0,function(){var t=T(),e=16-(t-R);if(R=t,e>0){if(++z>=800)return arguments[0]}else z=0;return $.apply(void 0,arguments)}),N=/^(?:0|[1-9]\d*)$/;function q(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&N.test(t))&&t>-1&&t%1==0&&t<e}function I(t,e,r){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function W(t,e){return t===e||t!=t&&e!=e}var L=Object.prototype.hasOwnProperty;function B(t,e,r){var n=t[e];L.call(t,e)&&W(n,r)&&(void 0!==r||e in t)||I(t,e,r)}var U=Math.max;function H(t,e){return k(function(t,e,r){return e=U(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=U(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=r(a),M(t,this,s)}}(t,e,v),t+"")}function G(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function K(t){return null!=t&&G(t.length)&&!g(t)}var X=Object.prototype;function Z(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function J(t){return f(t)&&"[object Arguments]"==p(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,tt=Q.propertyIsEnumerable,et=J(function(){return arguments}())?J:function(t){return f(t)&&Y.call(t,"callee")&&!tt.call(t,"callee")};var rt="object"==typeof t&&t&&!t.nodeType&&t,nt=rt&&"object"==typeof module&&module&&!module.nodeType&&module,it=nt&&nt.exports===rt?i.Buffer:void 0,ot=(it?it.isBuffer:void 0)||function(){return!1},at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1;var st="object"==typeof t&&t&&!t.nodeType&&t,lt=st&&"object"==typeof module&&module&&!module.nodeType&&module,ct=lt&<.exports===st&&r.process,ut=function(){try{var t=lt&<.require&<.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),ht=ut&&ut.isTypedArray,pt=ht?function(t){return function(e){return t(e)}}(ht):function(t){return f(t)&&G(t.length)&&!!at[p(t)]},ft=Object.prototype.hasOwnProperty;function dt(t,e){var r=d(t),n=!r&&et(t),i=!r&&!n&&ot(t),o=!r&&!n&&!i&&pt(t),a=r||n||i||o,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],l=s.length;for(var c in t)!e&&!ft.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||q(c,l))||s.push(c);return s}var yt=Object.prototype.hasOwnProperty;function vt(t){if(!y(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Z(t),r=[];for(var n in t)("constructor"!=n||!e&&yt.call(t,n))&&r.push(n);return r}function gt(t){return K(t)?dt(t,!0):vt(t)}var bt=F(Object,"create");var mt=Object.prototype.hasOwnProperty;var _t=Object.prototype.hasOwnProperty;function wt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xt(t,e){for(var r=t.length;r--;)if(W(t[r][0],e))return r;return-1}wt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},wt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},wt.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return mt.call(e,t)?e[t]:void 0},wt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:_t.call(e,t)},wt.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function St(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}St.prototype.clear=function(){this.__data__=[],this.size=0},St.prototype.delete=function(t){var e=this.__data__,r=xt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ot.call(e,r,1),--this.size,!0)},St.prototype.get=function(t){var e=this.__data__,r=xt(e,t);return r<0?void 0:e[r][1]},St.prototype.has=function(t){return xt(this.__data__,t)>-1},St.prototype.set=function(t,e){var r=this.__data__,n=xt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var jt=F(i,"Map");function Pt(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function Et(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new wt,map:new(jt||St),string:new wt}},Et.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},Et.prototype.get=function(t){return Pt(this,t).get(t)},Et.prototype.has=function(t){return Pt(this,t).has(t)},Et.prototype.set=function(t,e){var r=Pt(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var At=function(t,e){return function(r){return t(e(r))}}(Object.getPrototypeOf,Object),Ft=Function.prototype,Vt=Object.prototype,Ct=Ft.toString,Mt=Vt.hasOwnProperty,Tt=Ct.call(Object);function $t(t){var e=this.__data__=new St(t);this.size=e.size}$t.prototype.clear=function(){this.__data__=new St,this.size=0},$t.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,e){var r=this.__data__;if(r instanceof St){var n=r.__data__;if(!jt||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(t,e),this.size=r.size,this};var zt="object"==typeof t&&t&&!t.nodeType&&t,Rt=zt&&"object"==typeof module&&module&&!module.nodeType&&module,Dt=Rt&&Rt.exports===zt?i.Buffer:void 0,kt=Dt?Dt.allocUnsafe:void 0;var Nt=i.Uint8Array;function qt(t,e){var r,n,i=e?(r=t.buffer,n=new r.constructor(r.byteLength),new Nt(n).set(new Nt(r)),n):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}var It,Wt=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),a=o.length;a--;){var s=o[It?a:++n];if(!1===e(i[s],s,i))break}return t};function Lt(t,e,r){(void 0!==r&&!W(t[e],r)||void 0===r&&!(e in t))&&I(t,e,r)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,r,n){var i=!r;r||(r={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=n?n(r[s],t[s],s,r,t):void 0;void 0===l&&(l=t[s]),i?I(r,s,l):B(r,s,l)}return r}(t,gt(t))}function Ht(t,e,r,n,i,o,a){var s=Bt(t,r),l=Bt(e,r),c=a.get(l);if(c)Lt(t,r,c);else{var u,h=o?o(s,l,r+"",t,e,a):void 0,v=void 0===h;if(v){var b=d(l),m=!b&&ot(l),_=!b&&!m&&pt(l);h=l,b||m||_?d(s)?h=s:f(u=s)&&K(u)?h=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(s):m?(v=!1,h=function(t,e){if(e)return t.slice();var r=t.length,n=kt?kt(r):new t.constructor(r);return t.copy(n),n}(l,!0)):_?(v=!1,h=qt(l,!0)):h=[]:function(t){if(!f(t)||"[object Object]"!=p(t))return!1;var e=At(t);if(null===e)return!0;var r=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Ct.call(r)==Tt}(l)||et(l)?(h=s,et(s)?h=Ut(s):y(s)&&!g(s)||(h=function(t){return"function"!=typeof t.constructor||Z(t)?{}:C(At(t))}(l))):v=!1}v&&(a.set(l,h),i(h,l,n,o,a),a.delete(l)),Lt(t,r,h)}}function Gt(t,e,r,n,i){t!==e&&Wt(e,(function(o,a){if(i||(i=new $t),y(o))Ht(t,e,a,r,Gt,n,i);else{var s=n?n(Bt(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Lt(t,a,s)}}),gt)}function Kt(t,e,r,n,i,o){return y(t)&&y(e)&&(o.set(e,t),Gt(t,e,void 0,Kt,o),o.delete(e)),t}var Xt,Zt,Jt,Qt=(Xt=function(t,e,r,n){Gt(t,e,r,n)},H((function(t,e){var r=-1,n=e.length,i=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(i=Xt.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(t,e,r){if(!y(r))return!1;var n=typeof e;return!!("number"==n?K(r)&&q(e,r.length):"string"==n&&e in r)&&W(r[e],t)}(e[0],e[1],o)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var a=e[r];a&&Xt(t,a,r,i)}return t}))),Yt=H((function(t){return t.push(void 0,Kt),M(Qt,void 0,t)})),te=function(){return(te=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},ee=function(){function t(t,e,r){var n=this;this.target=t,this.endVal=e,this.options=r,this.version="2.0.5",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(t){n.startTime||(n.startTime=t);var e=t-n.startTime;n.remaining=n.duration-e,n.useEasing?n.countDown?n.frameVal=n.startVal-n.easingFn(e,0,n.startVal-n.endVal,n.duration):n.frameVal=n.easingFn(e,n.startVal,n.endVal-n.startVal,n.duration):n.countDown?n.frameVal=n.startVal-(n.startVal-n.endVal)*(e/n.duration):n.frameVal=n.startVal+(n.endVal-n.startVal)*(e/n.duration),n.countDown?n.frameVal=n.frameVal<n.endVal?n.endVal:n.frameVal:n.frameVal=n.frameVal>n.endVal?n.endVal:n.frameVal,n.frameVal=Math.round(n.frameVal*n.decimalMult)/n.decimalMult,n.printValue(n.frameVal),e<n.duration?n.rAF=requestAnimationFrame(n.count):null!==n.finalEndVal?n.update(n.finalEndVal):n.callback&&n.callback()},this.formatNumber=function(t){var e,r,i,o,a,s=t<0?"-":"";if(e=Math.abs(t).toFixed(n.options.decimalPlaces),i=(r=(e+="").split("."))[0],o=r.length>1?n.options.decimal+r[1]:"",n.options.useGrouping){a="";for(var l=0,c=i.length;l<c;++l)0!==l&&l%3==0&&(a=n.options.separator+a),a=i[c-l-1]+a;i=a}return n.options.numerals&&n.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]})),o=o.replace(/[0-9]/g,(function(t){return n.options.numerals[+t]}))),s+n.options.prefix+i+o+n.options.suffix},this.easeOutExpo=function(t,e,r,n){return r*(1-Math.pow(2,-10*t/n))*1024/1023+e},this.options=te(te({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(e),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=Math.pow(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof t?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e=this.formattingFn(t);"INPUT"===this.el.tagName?this.el.value=e:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=e:this.el.innerHTML=e},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: "+t,null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}();!function(t){t.left="left",t.top="top",t.bottom="bottom"}(Zt||(Zt={})),function(t){t.left="left",t.center="center",t.right="right"}(Jt||(Jt={}));const re={textStyle:{fontFamily:"微软雅黑",weightSize:["normal",12],color:"#9dacbe"},textContent:"",show:!0};function ne(t,e,r,n,i,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof r?r.options:r;let h;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),n&&(u._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=h):e&&(h=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(u.functional){const t=u.render;u.render=function(e,r){return h.call(r),t(e,r)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,h):[h]}return r}const ie=e.extend({props:{data:{type:Number,default:0},global:{type:Object},header:{type:Object},flipperPrefix:{type:Object},flipperSuffix:{type:Object},flipperDigital:{type:Object}},data:()=>({counter:null}),computed:{headerProperty(){return Yt({},this.header,re)},flipperPrefixProperty(){return Yt({},this.flipperPrefix,re)},flipperSuffixProperty(){return Yt({},this.flipperSuffix,re)},flipperDigitalProperty(){return Yt({},this.flipperDigital,{textStyle:re.textStyle,spacing:0,decimal:".",decimalNumber:2,backgroundColor:"#9dacbe",backgroundRadius:0,separator:!1,thousandSeparator:",",numerals:Array.from({length:10}).map((t,e)=>`<span class="digital-number">${e}</span>`),digitalAnimation:{show:!0,duration:5e3}})},countupParams(){return{duration:this.flipperDigitalProperty.digitalAnimation.show?this.flipperDigitalProperty.digitalAnimation.duration/1e3:0,decimalPlaces:this.flipperDigitalProperty.decimalNumber,formattingFn:this.formatFn}},globalProperty(){return Yt({},this.global,{layout:Zt.left,margin:4,align:Jt.left})},classes(){return["digital-card",`digital-card--layout-${this.globalProperty.layout}`,`digital-card--position-${this.globalProperty.position}`]},digitalClass(){return{"digital-card__digital":!0,"digital-card__digital--separate":this.flipperDigitalProperty.separator}},headerStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.headerProperty.textStyle)),{"--header-margin":`${this.globalProperty.margin}px`})},digitalStyle(){return Object.assign(Object.assign({},this.getTextStyle(this.flipperDigitalProperty.textStyle)),{"--digital-background":this.flipperDigitalProperty.backgroundColor,"--digital-radius":`${this.flipperDigitalProperty.backgroundRadius}px`,"--digital-spacing":`${this.flipperDigitalProperty.spacing/2}px`})}},watch:{data(t){var e;null===(e=this.counter)||void 0===e||e.update(t)},countupParams(){this.createCounter()}},mounted(){this.createCounter()},beforeDestroy(){this.counter=null},methods:{getTextStyle(t){const[e,r]=t.weightSize;return Object.assign(Object.assign({},t),{"font-weight":e,"font-size":`${r}px`})},createCounter(){this.counter=new ee(this.$refs.digitalRef,this.data,this.countupParams),this.counter.start()},formatFn(t){const{decimalNumber:e,decimal:r,thousandSeparator:n,numerals:i}=this.flipperDigitalProperty,o=t<0?"-":"";let a,s,l,c,u="";a=Math.abs(t).toFixed(e),a+="",s=a.split("."),l=s[0],c=s.length>1?`<span class="separator">${r}</span>${s[1]}`:"",u="";for(let t=0,e=l.length;t<e;++t)0!==t&&t%3==0&&(u=`<span class="separator">${n}</span>${u}`),u=l[e-t-1]+u;return l=u,i&&i.length&&(l=l.replace(/[0-9]/g,t=>i[+t]),c=c.replace(/[0-9]/g,t=>i[+t])),o+l+c}}});var oe=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{class:t.classes},[t.header.show?r("div",{staticClass:"digital-card__header",style:t.headerStyle},[t._v("\n "+t._s(t.header.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{staticClass:"digital-card__body"},[t.flipperPrefixProperty.show?r("div",{staticClass:"digital-card__prefix",style:t.getTextStyle(t.flipperPrefixProperty.textStyle)},[t._v("\n "+t._s(t.flipperPrefixProperty.textContent)+"\n ")]):t._e(),t._v(" "),r("div",{ref:"digitalRef",class:t.digitalClass,style:t.digitalStyle}),t._v(" "),t.flipperSuffixProperty.show?r("div",{staticClass:"digital-card__suffix",style:t.getTextStyle(t.flipperSuffixProperty.textStyle)},[t._v("\n "+t._s(t.flipperSuffixProperty.textContent)+"\n ")]):t._e()])])};oe._withStripped=!0;const ae=ne({render:oe,staticRenderFns:[]},void 0,ie,void 0,!1,void 0,!1,void 0,void 0,void 0);function se(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function le(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}var ce=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var r=-1;return t.some((function(t,n){return t[0]===e&&(r=n,!0)})),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var r=t(this.__entries__,e),n=this.__entries__[r];return n&&n[1]},e.prototype.set=function(e,r){var n=t(this.__entries__,e);~n?this.__entries__[n][1]=r:this.__entries__.push([e,r])},e.prototype.delete=function(e){var r=this.__entries__,n=t(r,e);~n&&r.splice(n,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var r=0,n=this.__entries__;r<n.length;r++){var i=n[r];t.call(e,i[1],i[0])}},e}()}(),ue="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,he="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),pe="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(he):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var fe=["top","right","bottom","left","width","height","size","weight"],de="undefined"!=typeof MutationObserver,ye=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var r=!1,n=!1,i=0;function o(){r&&(r=!1,t()),n&&s()}function a(){pe(o)}function s(){var t=Date.now();if(r){if(t-i<2)return;n=!0}else r=!0,n=!1,setTimeout(a,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,r=e.indexOf(t);~r&&e.splice(r,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ue&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),de?(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)},t.prototype.disconnect_=function(){ue&&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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,r=void 0===e?"":e;fe.some((function(t){return!!~r.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ve=function(t,e){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},ge=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||he},be=Se(0,0,0,0);function me(t){return parseFloat(t)||0}function _e(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return e.reduce((function(e,r){return e+me(t["border-"+r+"-width"])}),0)}function we(t){var e=t.clientWidth,r=t.clientHeight;if(!e&&!r)return be;var n=ge(t).getComputedStyle(t),i=function(t){for(var e={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var i=n[r],o=t["padding-"+i];e[i]=me(o)}return e}(n),o=i.left+i.right,a=i.top+i.bottom,s=me(n.width),l=me(n.height);if("border-box"===n.boxSizing&&(Math.round(s+o)!==e&&(s-=_e(n,"left","right")+o),Math.round(l+a)!==r&&(l-=_e(n,"top","bottom")+a)),!function(t){return t===ge(t).document.documentElement}(t)){var c=Math.round(s+o)-e,u=Math.round(l+a)-r;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return Se(i.left,i.top,s,l)}var xe="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ge(t).SVGGraphicsElement}:function(t){return t instanceof ge(t).SVGElement&&"function"==typeof t.getBBox};function Oe(t){return ue?xe(t)?function(t){var e=t.getBBox();return Se(0,0,e.width,e.height)}(t):we(t):be}function Se(t,e,r,n){return{x:t,y:e,width:r,height:n}}var je=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Se(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Oe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Pe=function(t,e){var r,n,i,o,a,s,l,c=(n=(r=e).x,i=r.y,o=r.width,a=r.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),ve(l,{x:n,y:i,width:o,height:a,top:i,right:n+o,bottom:a+i,left:n}),l);ve(this,{target:t,contentRect:c})},Ee=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new ce,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ge(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new je(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ge(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Pe(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ae="undefined"!=typeof WeakMap?new WeakMap:new ce,Fe=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ye.getInstance(),n=new Ee(e,r,this);Ae.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){Fe.prototype[t]=function(){var e;return(e=Ae.get(this))[t].apply(e,arguments)}}));var Ve=void 0!==he.ResizeObserver?he.ResizeObserver:Fe,Ce="function"==typeof Float32Array;function Me(t,e){return 1-3*e+3*t}function Te(t,e){return 3*e-6*t}function $e(t){return 3*t}function ze(t,e,r){return((Me(e,r)*t+Te(e,r))*t+$e(e))*t}function Re(t,e,r){return 3*Me(e,r)*t*t+2*Te(e,r)*t+$e(e)}function De(t){return t}var ke=function(t,e,r,n){if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return De;for(var i=Ce?new Float32Array(11):new Array(11),o=0;o<11;++o)i[o]=ze(.1*o,t,r);function a(e){for(var n=0,o=1;10!==o&&i[o]<=e;++o)n+=.1;--o;var a=n+.1*((e-i[o])/(i[o+1]-i[o])),s=Re(a,t,r);return s>=.001?function(t,e,r,n){for(var i=0;i<4;++i){var o=Re(e,r,n);if(0===o)return e;e-=(ze(e,r,n)-t)/o}return e}(e,a,t,r):0===s?a:function(t,e,r,n,i){var o,a,s=0;do{(o=ze(a=e+(r-e)/2,n,i)-t)>0?r=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,n,n+.1,t,r)}return function(t){return 0===t?0:1===t?1:ze(a(t),e,n)}};const Ne="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),qe="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Ie=ke(0,0,1,1),We=ke(.25,.1,.25,1),Le=ke(.42,0,1,1),Be=ke(0,0,.58,1),Ue=ke(.42,0,.58,1),He="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),Ge={delay:0,duration:250,pause:0,easingFunction:"ease"},Ke={linear:Ie,ease:We,easeIn:Le,easeOut:Be,easeInOut:Ue};class TimerSubscription{constructor(t,e,r){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=r}static getEasingFunction(t){return"function"==typeof t?t:Ke[t]||Ke.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:r,duration:n,pause:i})=>e<=t+r+n+i)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:r,duration:n,easingFunction:i,handler:o})=>{const a=TimerSubscription.getEasingFunction(i),s=t-e-r,l=s<0?0:s>n?1:s/n;l>0&&l<1&&o(a(l))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Xe=(t={})=>{let e=0,r=0,n=!1;const i={...Ge,...t},o=new Map,a=()=>{const t=He();o.forEach(e=>e.execute(t)),o.size?r=Ne(a):l()},s=()=>{n=!0,Ne(a)},l=()=>{n=!1,qe(r)};return{subscribe:(t,r)=>{const a=e++,l=()=>o.delete(a);return o.set(a,new TimerSubscription(l,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...i,...t}));default:return[{...i,...t}]}})(t),r)),n||s(),l}}};const Ze=e.extend({props:{textContent:{type:String,default:""},marquee:{type:Object,default:()=>({})},textStyle:{type:Object}},data:()=>({clientWidth:0,observer:null,progress:0,scrollWidth:0,timer:Xe({easingFunction:"linear"}),unsubscribe:()=>{}}),computed:{classes(){return["text-marquee__content",{"text-marquee__content--ellipsis":!this.marquee.show}]},isMarquee(){return!!this.marquee.show},left(){if(this.scrollWidth<=this.clientWidth)return 0;const t=this.clientWidth+this.scrollWidth,e=t*this.progress;return(e>this.scrollWidth?1:0)*t-e},styles(){const t=this.textStyleProperty,{weightSize:e,spacing:r}=t,n=se(t,["weightSize","spacing"]),[i="normal",o=12]=e;return Object.assign({fontWeight:i,fontSize:`${o}px`,transform:`translateX(${this.left}px)`,letterSpacing:`${r}px`},n)},textStyleProperty(){return Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["nornal",12],color:"white",textAlign:"center",spacing:0})},wrapperStyles(){return{textAlign:this.textStyleProperty.textAlign}}},watch:{isMarquee(){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Ve(this.handleResize)},mounted(){this.observer.observe(this.$el),this.observer.observe(this.$refs.content)},beforeDestroy(){this.unsubscribe(),this.observer.disconnect()},methods:{handleResize(){const{clientWidth:t,scrollWidth:e}=this.$el;this.unsubscribe(),this.clientWidth=t,this.scrollWidth=e,this.resetPosition()},resetPosition(){this.progress=0,this.scroll()},scroll(){this.marquee.show&&(this.unsubscribe=this.timer.subscribe({duration:this.marquee.duration||4e3,handler:this.updateProgress},this.resetPosition))},updateProgress(t){this.progress=t}}});var Je=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"text-marquee",style:this.wrapperStyles},[e("span",{ref:"content",class:this.classes,style:this.styles},[this._v("\n "+this._s(this.textContent)+"\n ")])])};Je._withStripped=!0;const Qe=ne({render:Je,staticRenderFns:[]},void 0,Ze,void 0,!1,void 0,!1,void 0,void 0,void 0);const Ye=e.extend({components:{TextMarquee:Qe},props:{barStyle:{type:Object},carousel:{type:Object},category:{type:Object},data:{type:Object,required:!0},global:{type:Object},serialNumber:{type:Object},xField:{type:String,required:!0},yField:{type:String,required:!0},value:{type:Object}},data:()=>({page:0,timer:NaN}),computed:{autoCarousel(){return this.carouselProperty.autoCarousel},barStyleProperty(){return Yt({},this.barStyle,{show:!0,color:"#4abaf8",height:6,max:"actual maximum",backgroudColor:"rgba(157, 172, 190, 0.35)"})},carouselProperty(){return Yt({},this.carousel,{autoCarousel:!1,time:5e3})},categoryProperty(){return Yt({},this.category,{textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},marquee:{show:!1,duration:8e3}})},currentPage(){return this.datasets.slice(this.startIndex,this.startIndex+this.globalProperty.count)},dataMax(){const t=this.datasets.map(({value:t})=>t);return Math.max(...t)},datasets(){const t=this.getFieldIndex(this.xField),e=this.getFieldIndex(this.yField);return t<0||e<0?[]:this.data.data.map(r=>({field:r[t],value:r[e]}))},globalProperty(){return Yt({},this.global,{fontFamily:"微软雅黑",lineSpacing:12,count:6})},listStyles(){const{weightSize:t}=this.categoryProperty.textStyle,{weightSize:e,color:r}=this.serialNumberProperty.textStyle,{weightSize:n,color:i}=this.valueProperty.textStyle,[o,a]=t,[s,l]=e,[c,u]=n;return{"--bar-background":this.barStyleProperty.backgroudColor,"--bar-color":this.barStyleProperty.color,"--bar-height":`${this.barStyleProperty.height}px`,"--font-size":`${Math.max(a,l,u)}px`,"--line-spacing":`${this.globalProperty.lineSpacing}px`,"--serial-width":this.getLength(this.serialNumberProperty.width),"--serial-color":r,"--serial-size":`${l}px`,"--serial-weight":s,"--value-width":this.getLength(this.valueProperty.width),"--value-color":i,"--value-size":`${u}px`,"--value-weight":c,fontFamily:this.globalProperty.fontFamily}},marqueeTextStyle(){return Object.assign({fontFamily:this.globalProperty.fontFamily},this.categoryProperty.textStyle)},maxPage(){return Math.ceil(this.datasets.length/this.globalProperty.count)},maximum(){switch(this.barStyleProperty.max){case"1.1 maximum":return 1.1*this.dataMax;case"1.2 maximum":return 1.2*this.dataMax;default:return"number"==typeof this.barStyleProperty.max?this.barStyleProperty.max:this.dataMax}},serialNumberProperty(){return Yt({},this.serialNumber,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:80})},startIndex(){return this.page%this.maxPage*this.globalProperty.count},valueProperty(){return Yt({},this.value,{show:!0,textStyle:{weightSize:["normal",12],color:"rgba(255, 255, 255, 0.8)"},width:64})}},watch:{autoCarousel:{immediate:!0,handler(t){t?this.startCarousel():this.stopCarousel()}}},methods:{getBarStyles(t,e){return{"--bar-delay":`${100*t}ms`,"--bar-width":`${100*e/this.maximum}%`}},getFieldIndex(t){return this.data.schema.findIndex(e=>e.field===t)},getLength:t=>"string"==typeof t&&t.endsWith("%")?t:`${t}px`,startCarousel(){this.timer=window.setTimeout(()=>{this.page+=1,this.startCarousel()},this.carouselProperty.time)},stopCarousel(){window.clearTimeout(this.timer),this.page=0},handleItemClick(t,e,r,n){this.$emit("item-click",{field:t,value:e},r,n)},handleItemMounseEnter(t,e,r,n){this.$emit("item-mouseenter",{field:t,value:e},r,n)},handleItemMouseLeave(t,e,r,n){this.$emit("item-mouseleave",{field:t,value:e},r,n)}}});var tr=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ul",{staticClass:"list-bar-chart",style:t.listStyles},t._l(t.currentPage,(function(e,n){var i=e.field,o=e.value;return r("li",{key:i+t.page,staticClass:"list-bar-chart__item",on:{click:function(e){return t.handleItemClick(i,o,n,e)},mouseenter:function(e){return t.handleItemMounseEnter(i,o,n,e)},mouseleave:function(e){return t.handleItemMouseLeave(i,o,n,e)}}},[r("div",{staticClass:"list-bar-chart__title"},[t.serialNumberProperty.show?r("span",{staticClass:"list-bar-chart__serial"},[t._v("\n No."+t._s(t.startIndex+n+1)+"\n ")]):t._e(),t._v(" "),r("TextMarquee",{staticClass:"list-bar-chart__field",attrs:{"text-content":i,"text-style":t.marqueeTextStyle,marquee:t.categoryProperty.marquee}}),t._v(" "),t.valueProperty.show?r("span",{staticClass:"list-bar-chart__value"},[t._v("\n "+t._s(o)+"\n ")]):t._e()],1),t._v(" "),t.barStyleProperty.show?r("div",{staticClass:"list-bar-chart__bar",style:t.getBarStyles(n,o)}):t._e()])})),0)};tr._withStripped=!0;const er=ne({render:tr,staticRenderFns:[]},void 0,Ye,void 0,!1,void 0,!1,void 0,void 0,void 0);const rr=e.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Xe(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,r]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${r}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Yt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new Ve(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:r}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:r,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var nr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};nr._withStripped=!0;const ir=ne({render:nr,staticRenderFns:[]},void 0,rr,void 0,!1,void 0,!1,void 0,void 0,void 0);function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ar(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sr(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function lr(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function cr(t,e){ur(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(r){ur(t.prototype,e.prototype,r)})),Object.getOwnPropertyNames(e).forEach((function(r){ur(t,e,r)}))}function ur(t,e,r){(r?Reflect.getOwnMetadataKeys(e,r):Reflect.getOwnMetadataKeys(e)).forEach((function(n){var i=r?Reflect.getOwnMetadata(n,e,r):Reflect.getOwnMetadata(n,e);r?Reflect.defineMetadata(n,i,t,r):Reflect.defineMetadata(n,i,t)}))}var hr={__proto__:[]}instanceof Array;function pr(t,e){var r=e.prototype._init;e.prototype._init=function(){var e=this,r=Object.getOwnPropertyNames(t);if(t.$options.props)for(var n in t.$options.props)t.hasOwnProperty(n)||r.push(n);r.forEach((function(r){"_"!==r.charAt(0)&&Object.defineProperty(e,r,{get:function(){return t[r]},set:function(e){t[r]=e},configurable:!0})}))};var n=new e;e.prototype._init=r;var i={};return Object.keys(n).forEach((function(t){void 0!==n[t]&&(i[t]=n[t])})),i}var fr=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function dr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.name=r.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(fr.indexOf(t)>-1)r[t]=n[t];else{var e=Object.getOwnPropertyDescriptor(n,t);void 0!==e.value?"function"==typeof e.value?(r.methods||(r.methods={}))[t]=e.value:(r.mixins||(r.mixins=[])).push({data:function(){return ar({},t,e.value)}}):(e.get||e.set)&&((r.computed||(r.computed={}))[t]={get:e.get,set:e.set})}})),(r.mixins||(r.mixins=[])).push({data:function(){return pr(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(r)})),delete t.__decorators__);var o=Object.getPrototypeOf(t.prototype),a=o instanceof e?o.constructor:e,s=a.extend(r);return vr(s,t,a),lr()&&cr(s,t),s}var yr={prototype:!0,arguments:!0,callee:!0,caller:!0};function vr(t,e,r){Object.getOwnPropertyNames(e).forEach((function(n){if(!yr[n]){var i=Object.getOwnPropertyDescriptor(t,n);if(!i||i.configurable){var o,a,s=Object.getOwnPropertyDescriptor(e,n);if(!hr){if("cid"===n)return;var l=Object.getOwnPropertyDescriptor(r,n);if(o=s.value,a=or(o),null!=o&&("object"===a||"function"===a)&&l&&l.value===s.value)return}Object.defineProperty(t,n,s)}}}))}function gr(t){return"function"==typeof t?dr(t):function(e){return dr(e,t)}}gr.registerHooks=function(t){fr.push.apply(fr,sr(t))};var br="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function mr(t){return void 0===t&&(t={}),function(e,r){var n;!function(t,e,r){if(br&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var n=Reflect.getMetadata("design:type",e,r);n!==Object&&(t.type=n)}}(t,e,r),(n=function(e,r){(e.props||(e.props={}))[r]=t},function(t,e,r){var i="function"==typeof t?t:t.constructor;i.__decorators__||(i.__decorators__=[]),"number"!=typeof r&&(r=void 0),i.__decorators__.push((function(t){return n(t,e,r)}))})(e,r)}}var _r=/\B([A-Z])/g;function wr(t){return t instanceof Promise||t&&"function"==typeof t.then}const xr={borderColor:"transparent",borderWidth:0,radius:0},Or=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.borderStyle;return Object.assign(Object.assign({},xr),{borderColor:t,borderWidth:e,radius:r})},imgStyle(){const{borderColor:t,borderWidth:e,radius:r}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${r}px`}}},methods:{handleImgClick(t){this.$emit("click",t)}}});var Sr=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url},on:{click:this.handleImgClick}})};Sr._withStripped=!0;const jr=ne({render:Sr,staticRenderFns:[]},void 0,Or,"data-v-c6b7e896",!1,void 0,!1,void 0,void 0,void 0),Pr={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let Er=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},Pr),this.titleStyle)}handleTitleClick(t){return t}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:r}=t,n=se(t,["weightSize","spacing"]),[i,o]=e;return Object.assign(Object.assign({},n),{letterSpacing:`${r}px`,fontWeight:i,fontSize:`${o}px`})}};var Ar;le([mr({default:"这是一个标题",type:String})],Er.prototype,"titleContent",void 0),le([mr({default:()=>({}),type:Object})],Er.prototype,"titleStyle",void 0),le([(Ar="click",function(t,e,r){var n=e.replace(_r,"-$1").toLowerCase(),i=r.value;r.value=function(){for(var t=this,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=function(r){var i=Ar||n;void 0===r?0===e.length?t.$emit(i):1===e.length?t.$emit(i,e[0]):t.$emit(i,e):t.$emit(i,r)},a=i.apply(this,e);return wr(a)?a.then((function(t){o(t)})):o(a),a}})],Er.prototype,"handleTitleClick",null),Er=le([gr],Er);const Fr=Er;var Vr=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title",on:{click:this.handleTitleClick}},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};Vr._withStripped=!0;const Cr=ne({render:Vr,staticRenderFns:[]},void 0,Fr,void 0,!1,void 0,!1,void 0,void 0,void 0);t.DigitalCardFlipper=ae,t.ListBarChart=er,t.MultilineText=ir,t.SingleImage=jr,t.TextMarquee=Qe,t.Title=Cr,Object.defineProperty(t,"__esModule",{value:!0})})); |
@@ -1,1 +0,1 @@ | ||
import e from"vue";const t={borderColor:"transparent",borderWidth:0,radius:0};const r=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:e,borderWidth:r,radius:o}=this.borderStyle;return Object.assign(Object.assign({},t),{borderColor:e,borderWidth:r,radius:o})},imgStyle(){const{borderColor:e,borderWidth:t,radius:r}=this.normalizedStyle;return{borderColor:e,borderWidth:`${t}px`,borderRadius:`${r}px`}}}});var o=function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};o._withStripped=!0;const n=function(e,t,r,o,n,i,s,d,a,l){"boolean"!=typeof s&&(a=d,d=s,s=!1);const c="function"==typeof r?r.options:r;let u;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),o&&(c._scopeId=o),i?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},c._ssrRegister=u):t&&(u=s?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),u)if(c.functional){const e=c.render;c.render=function(t,r){return u.call(r),e(t,r)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,u):[u]}return r}({render:o,staticRenderFns:[]},void 0,r,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0);export default n;export{n as SingleImage}; | ||
import e from"vue";const t={borderColor:"transparent",borderWidth:0,radius:0};const r=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:e,borderWidth:r,radius:o}=this.borderStyle;return Object.assign(Object.assign({},t),{borderColor:e,borderWidth:r,radius:o})},imgStyle(){const{borderColor:e,borderWidth:t,radius:r}=this.normalizedStyle;return{borderColor:e,borderWidth:`${t}px`,borderRadius:`${r}px`}}},methods:{handleImgClick(e){this.$emit("click",e)}}});var o=function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url},on:{click:this.handleImgClick}})};o._withStripped=!0;const n=function(e,t,r,o,n,i,s,d,a,c){"boolean"!=typeof s&&(a=d,d=s,s=!1);const l="function"==typeof r?r.options:r;let h;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,n&&(l.functional=!0)),o&&(l._scopeId=o),i?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=h):t&&(h=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),h)if(l.functional){const e=l.render;l.render=function(t,r){return h.call(r),e(t,r)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,h):[h]}return r}({render:o,staticRenderFns:[]},void 0,r,"data-v-c6b7e896",!1,void 0,!1,void 0,void 0,void 0);export default n;export{n as SingleImage}; |
@@ -1,1 +0,1 @@ | ||
import t from"vue";function e(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){a(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){a(t,e,n)}))}function a(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var f={__proto__:[]}instanceof Array;function s(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var p=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(p.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return r({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return s(this,e)}});var a=e.__decorators__;a&&(a.forEach((function(t){return t(n)})),delete e.__decorators__);var f=Object.getPrototypeOf(e.prototype),u=f instanceof t?f.constructor:t,l=u.extend(n);return d(l,e,u),i()&&c(l,e),l}var l={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(t,e,r){Object.getOwnPropertyNames(e).forEach((function(o){if(!l[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var c,a,s=Object.getOwnPropertyDescriptor(e,o);if(!f){if("cid"===o)return;var p=Object.getOwnPropertyDescriptor(r,o);if(c=s.value,a=n(c),null!=c&&("object"===a||"function"===a)&&p&&p.value===s.value)return}Object.defineProperty(t,o,s)}}}))}function y(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}y.registerHooks=function(t){p.push.apply(p,o(t))};var v="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function g(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(v&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const b={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let O=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},b),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};e([g({default:"这是一个标题",type:String})],O.prototype,"titleContent",void 0),e([g({default:()=>({}),type:Object})],O.prototype,"titleStyle",void 0),O=e([y],O);const _=O;var h=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};h._withStripped=!0;const m=function(t,e,n,r,o,i,c,a,f,s){"boolean"!=typeof c&&(f=a,a=c,c=!1);const p="function"==typeof n?n.options:n;let u;if(t&&t.render&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),r&&(p._scopeId=r),i?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,f(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},p._ssrRegister=u):e&&(u=c?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),u)if(p.functional){const t=p.render;p.render=function(e,n){return u.call(n),t(e,n)}}else{const t=p.beforeCreate;p.beforeCreate=t?[].concat(t,u):[u]}return n}({render:h,staticRenderFns:[]},void 0,_,void 0,!1,void 0,!1,void 0,void 0,void 0);export default m;export{m as Title}; | ||
import t from"vue";function e(t,e,n,r){var o,i=arguments.length,c=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,n,c):o(e,n))||c);return i>3&&c&&Object.defineProperty(e,n,c),c}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function c(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){a(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){a(t,e,n)}))}function a(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var f={__proto__:[]}instanceof Array;function s(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var u=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(u.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return r({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return s(this,e)}});var a=e.__decorators__;a&&(a.forEach((function(t){return t(n)})),delete e.__decorators__);var f=Object.getPrototypeOf(e.prototype),p=f instanceof t?f.constructor:t,l=p.extend(n);return d(l,e,p),i()&&c(l,e),l}var l={prototype:!0,arguments:!0,callee:!0,caller:!0};function d(t,e,r){Object.getOwnPropertyNames(e).forEach((function(o){if(!l[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var c,a,s=Object.getOwnPropertyDescriptor(e,o);if(!f){if("cid"===o)return;var u=Object.getOwnPropertyDescriptor(r,o);if(c=s.value,a=n(c),null!=c&&("object"===a||"function"===a)&&u&&u.value===s.value)return}Object.defineProperty(t,o,s)}}}))}function y(t){return"function"==typeof t?p(t):function(e){return p(e,t)}}y.registerHooks=function(t){u.push.apply(u,o(t))};var v="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function h(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(v&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}var g=/\B([A-Z])/g;function b(t){return t instanceof Promise||t&&"function"==typeof t.then}const O={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let _=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},O),this.titleStyle)}handleTitleClick(t){return t}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};var m;e([h({default:"这是一个标题",type:String})],_.prototype,"titleContent",void 0),e([h({default:()=>({}),type:Object})],_.prototype,"titleStyle",void 0),e([(m="click",function(t,e,n){var r=e.replace(g,"-$1").toLowerCase(),o=n.value;n.value=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=function(n){var o=m||r;void 0===n?0===e.length?t.$emit(o):1===e.length?t.$emit(o,e[0]):t.$emit(o,e):t.$emit(o,n)},c=o.apply(this,e);return b(c)?c.then((function(t){i(t)})):i(c),c}})],_.prototype,"handleTitleClick",null),_=e([y],_);const j=_;var w=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title",on:{click:this.handleTitleClick}},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};w._withStripped=!0;const S=function(t,e,n,r,o,i,c,a,f,s){"boolean"!=typeof c&&(f=a,a=c,c=!1);const u="function"==typeof n?n.options:n;let p;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,o&&(u.functional=!0)),r&&(u._scopeId=r),i?(p=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,f(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=p):e&&(p=c?function(t){e.call(this,s(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),p)if(u.functional){const t=u.render;u.render=function(e,n){return p.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,p):[p]}return n}({render:w,staticRenderFns:[]},void 0,j,void 0,!1,void 0,!1,void 0,void 0,void 0);export default S;export{S as Title}; |
{ | ||
"name": "@byzanteam/primitive-element", | ||
"version": "0.1.3-alpha.bbbac1bc", | ||
"version": "0.1.3-alpha.eb3991c7", | ||
"description": "Internal components of BA", | ||
@@ -21,2 +21,3 @@ "main": "dist/primitive-element.umd.js", | ||
"dependencies": { | ||
"@byzanteam/timer": "^0.2.0", | ||
"countup.js": "^2.0.5", | ||
@@ -29,3 +30,2 @@ "lodash-es": "^4.17.15", | ||
"devDependencies": { | ||
"@byzanteam/timer": "^0.2.0", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
@@ -32,0 +32,0 @@ "@rollup/plugin-json": "^4.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
217504
29
794
7
+ Added@byzanteam/timer@^0.2.0
+ Added@byzanteam/timer@0.2.0(transitive)
+ Addedbezier-easing@2.1.0(transitive)