mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
2 lines
54 KiB
JavaScript
2 lines
54 KiB
JavaScript
|
import{f as J,M as K,v as $,h as Y,k as X,al as M,B as S,x as Z,_ as j}from"./_plugin-vue_export-helper-3f67fb71.js";import{C as rr}from"./index-abaedc7c.js";import{h as nr}from"./billing-356772f3.js";var A={},er={get exports(){return A},set exports(W){A=W}};(function(W,B){(function(b,i){W.exports=i()})(nr,function(){var b=function(i,f){var _=Array.prototype.concat,d=Array.prototype.slice,w=Object.prototype.toString;function g(m,v){var a=m>v?m:v;return i.pow(10,17-~~(i.log(a>0?a:-a)*i.LOG10E))}var u=Array.isArray||function(v){return w.call(v)==="[object Array]"};function r(m){return w.call(m)==="[object Function]"}function n(m){return typeof m=="number"?m-m===0:!1}function e(m){return _.apply([],m)}function o(){return new o._init(arguments)}o.fn=o.prototype,o._init=function(v){if(u(v[0]))if(u(v[0][0])){r(v[1])&&(v[0]=o.map(v[0],v[1]));for(var a=0;a<v[0].length;a++)this[a]=v[0][a];this.length=v[0].length}else this[0]=r(v[1])?o.map(v[0],v[1]):v[0],this.length=1;else if(n(v[0]))this[0]=o.seq.apply(null,v),this.length=1;else{if(v[0]instanceof o)return o(v[0].toArray());this[0]=[],this.length=1}return this},o._init.prototype=o.prototype,o._init.constructor=o,o.utils={calcRdx:g,isArray:u,isFunction:r,isNumber:n,toVector:e},o._random_fn=i.random,o.setRandom=function(v){if(typeof v!="function")throw new TypeError("fn is not a function");o._random_fn=v},o.extend=function(v){var a,p;if(arguments.length===1){for(p in v)o[p]=v[p];return this}for(a=1;a<arguments.length;a++)for(p in arguments[a])v[p]=arguments[a][p];return v},o.rows=function(v){return v.length||1},o.cols=function(v){return v[0].length||1},o.dimensions=function(v){return{rows:o.rows(v),cols:o.cols(v)}},o.row=function(v,a){return u(a)?a.map(function(p){return o.row(v,p)}):v[a]},o.rowa=function(v,a){return o.row(v,a)},o.col=function(v,a){if(u(a)){var p=o.arange(v.length).map(function(){return new Array(a.length)});return a.forEach(function(h,D){o.arange(v.length).forEach(function(R){p[R][D]=v[R][h]})}),p}for(var y=new Array(v.length),q=0;q<v.length;q++)y[q]=[v[q][a]];return y},o.cola=function(v,a){return o.col(v,a).map(function(p){return p[0]})},o.diag=function(v){for(var a=o.rows(v),p=new Array(a),y=0;y<a;y++)p[y]=[v[y][y]];return p},o.antidiag=function(v){for(var a=o.rows(v)-1,p=new Array(a),y=0;a>=0;a--,y++)p[y]=[v[y][a]];return p},o.transpose=function(v){var a=[],p,y,q,h,D;for(u(v[0])||(v=[v]),y=v.length,q=v[0].length,D=0;D<q;D++){for(p=new Array(y),h=0;h<y;h++)p[h]=v[h][D];a.push(p)}return a.length===1?a[0]:a},o.map=function(v,a,p){var y,q,h,D,R;for(u(v[0])||(v=[v]),q=v.length,h=v[0].length,D=p?v:new Array(q),y=0;y<q;y++)for(D[y]||(D[y]=new Array(h)),R=0;R<h;R++)D[y][R]=a(v[y][R],y,R);return D.length===1?D[0]:D},o.cumreduce=function(v,a,p){var y,q,h,D,R;for(u(v[0])||(v=[v]),q=v.length,h=v[0].length,D=p?v:new Array(q),y=0;y<q;y++)for(D[y]||(D[y]=new Array(h)),h>0&&(D[y][0]=v[y][0]),R=1;R<h;R++)D[y][R]=a(D[y][R-1],v[y][R]);return D.length===1?D[0]:D},o.alter=function(v,a){return o.map(v,a,!0)},o.create=function(v,a,p){var y=new Array(v),q,h;for(r(a)&&(p=a,a=v),q=0;q<v;q++)for(y[q]=new Array(a),h=0;h<a;h++)y[q][h]=p(q,h);return y};function t(){return 0}o.zeros=function(v,a){return n(a)||(a=v),o.create(v,a,t)};function l(){return 1}o.ones=function(v,a){return n(a)||(a=v),o.create(v,a,l)},o.rand=function(v,a){return n(a)||(a=v),o.create(v,a,o._random_fn)};function s(m,v){return m===v?1:0}o.identity=function(v,a){return n(a)||(a=v),o.create(v,a,s)},o.symmetric=function(v){var a=v.length,p,y;if(v.length!==v[0].length)return!1;for(p=0;p<a;p++)for(y=0;y<a;y++)if(v[y][p]!==v[p][y])return!1;return!0},o.clear=function(v){return o.alter(v,t)},o.seq=function(v,a,p,y){r(y)||(y=!1);var q=[],h=g(v,a),D=(a*h-v*h)/((p-1)*h),R=v,z;for(z=0;R<=a&&z<p;z++,R=(v*h+D*h*z)/h)q.push(y?y(R,z):R);return q},o.arange=function(v,a,p){var y=[],q;if(p=p||1,a===f&&(a=v,v=0),v===a||p===0)return[];if(v<a&&p<0)return[];if(v>a&&p>0)return[];if(p>0)for(q=v;q<a;q+=p)y.push(q);else for(q=v;q>a;q+=p)y.push(q);return y},o.slice=function(){function m(a,p,y,q){var h,D=[],R=a.length;if(p===f&&y===f&&q===f)return
|