1 line
138 KiB
JavaScript
Raw Normal View History

2025-06-11 17:16:05 +08:00
(function(){function g(a,c){var b;a||(a={});for(b in c)a[b]=c[b];return a}function h(){for(var d=arguments.length,b={},c=function(d,e){var a,b;typeof d!=="object"&&(d={});for(b in e)e.hasOwnProperty(b)&&(a=e[b],d[b]=a&&typeof a==="object"&&Object.prototype.toString.call(a)!=="[object Array]"&&typeof a.nodeType!=="number"?c(d[b]||{},a):e[b]);return d},a=0;a<d;a++)b=c(b,arguments[a]);return b}function j(a,b){return parseInt(a,b||10)}function J(a){return typeof a==="string"}function z(a){return typeof a==="object"}function mb(a){return Object.prototype.toString.call(a)==="[object Array]"}function W(a){return typeof a==="number"}function R(a){return x.log(a)/x.LN10}function K(a){return x.pow(10,a)}function L(a,c){for(var b=a.length;b--;)if(a[b]===c){a.splice(b,1);break}}function d(a){return a!==f&&a!==null}function i(b,a,e){var c,f;if(J(a))d(e)?b.setAttribute(a,e):b&&b.getAttribute&&(f=b.getAttribute(a));else if(d(a)&&z(a))for(c in a)b.setAttribute(c,a[c]);return f}function O(a){return mb(a)?a:[a]}function a(){for(var c=arguments,a,d=c.length,b=0;b<d;b++)if(a=c[b],typeof a!=="undefined"&&a!==null)return a}function o(b,a){if(X&&a&&a.opacity!==f)a.filter="alpha(opacity="+a.opacity*100+")";g(b.style,a)}function A(a,b,c,d,e){a=k.createElement(a);b&&g(a,b);e&&o(a,{padding:0,border:y,margin:0});c&&o(a,c);d&&d.appendChild(a);return a}function M(b,c){var a=function(){};a.prototype=new b;g(a.prototype,c);return a}function fb(b,c,a,d){var e=u.lang,b=+b||0,f=c===-1?(b.toString().split(".")[1]||"").length:isNaN(c=p(c))?2:c,c=a===void 0?e.decimalPoint:a,d=d===void 0?e.thousandsSep:d,e=b<0?"-":"",a=String(j(b=p(b).toFixed(f))),g=a.length>3?a.length%3:0;return e+(g?a.substr(0,g)+d:"")+a.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+d)+(f?c+p(b-a).toFixed(f).slice(2):"")}function gb(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function Qb(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);a.unshift(d);return c.apply(this,a)}}function hb(e,j){for(var f="{",h=!1,a,b,g,c,d,i=[];(f=e.indexOf(f))!==-1;){a=e.slice(0,f);if(h){b=a.split(":");g=b.shift().split(".");d=g.length;a=j;for(c=0;c<d;c++)a=a[g[c]];if(b.length)b=b.join(":"),g=/\.([0-9])/,c=u.lang,d=void 0,/f$/.test(b)?(d=(d=b.match(g))?d[1]:-1,a=fb(a,d,c.decimalPoint,b.indexOf(",")>-1?c.thousandsSep:"")):(a=Mb(b,a))}i.push(a);e=e.slice(f+1);f=(h=!h)?"}":"{"}i.push(e);return i.join("")}function Rb(a){return x.pow(10,v(x.log(a)/x.LN10))}function Sb(e,b,d,c){var f,d=a(d,1);f=e/d;b||(b=[1,2,2.5,5,10],c&&c.allowDecimals===!1&&(d===1?(b=[1,2,5,10]):d<=.1&&(b=[1/d])));for(c=0;c<b.length;c++)if(e=b[c],f<=(b[c]+(b[c+1]||b[c]))/2)break;e*=d;return e}function ec(g,h){for(var a=h||[[fc,[1,2,5,10,20,25,50,100,200,500]],[Tb,[1,2,5,10,15,30]],[Nb,[1,2,5,10,15,30]],[tb,[1,2,3,4,6,8,12]],[Y,[1,2]],[Ab,[1,2]],[ub,[1,2,3,4,6]],[ib,null]],b=a[a.length-1],d=m[b[0]],e=b[1],f=0;f<a.length;f++)if(b=a[f],d=m[b[0]],e=b[1],a[f+1]&&g<=(d*e[e.length-1]+m[a[f+1][0]])/2)break;d===m[ib]&&g<5*d&&(e=[1,2,5]);a=Sb(g/d,e,b[0]===ib?c(Rb(g/d),1):1);return{unitRange:d,count:a,unitName:b[0]}}function gc(l,j,q,h){var k=[],n={},o=u.global.useUTC,i,c=new Date(j),e=l.unitRange,f=l.count;if(d(j)){e>=m[Tb]&&(c.setMilliseconds(0),c.setSeconds(e>=m[Nb]?0:f*v(c.getSeconds()/f)));e>=m[Nb]&&c[hc](e>=m[tb]?0:f*v(c[Ub]()/f));e>=m[tb]&&c[ic](e>=m[Y]?0:f*v(c[Vb]()/f));e>=m[Y]&&c[Wb](e>=m[ub]?1:f*v(c[vb]()/f));e>=m[ub]&&(c[jc](e>=m[ib]?0:f*v(c[Bb]()/f)),i=c[Cb]());e>=m[ib]&&(i-=i%f,c[kc](i));e===m[Ab]&&c[Wb](c[vb]()-c[Xb]()+a(h,1));j=1;i=c[Cb]();for(var h=c.getTime(),p=c[Bb](),r=c[vb](),s=o?0:(8.64e7+c.getTimezoneOffset()*6e4)%8.64e7;h<q;)k.push(h),e===m[ib]?(h=Db(i+j*f,0)):e===m[ub]?(h=Db(i,p+j*f)):!o&&(e===m[Y]||e===m[Ab])?(h=Db(i,p,r+j*f*(e===m[Y]?1:7))):(h+=e*f),j++;k.push(h);b(Yb(k,function(a){return e<=m[tb]&&a%m[Y]===s}),function(a){n[a]=Y})}k.info=g(l,{higherRanks:n,totalRange:e*f});return k}function lc(){this.symbol=this.color=0}function mc(b,e){for(var d=b.length,c,a=0;a<d;a++)b[a].ss_i=a;b.sort(function(a,b){c=e(a,b);return c===0?a.ss_i-b.ss_i:c});for(a=0;a<d;a++)delete b[a].ss_i}function nb(a){for(var b=