mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
|
import{aM as x,aA as I,aN as M,aO as O,aP as l,aQ as m,aR as h,aF as w,aS as A,aT as F,aU as N,aV as E,aW as P}from"./index-DmZQsxOK.js";import{c as p}from"./_baseUniq-BxBa45pm.js";var g=1/0,R=17976931348623157e292;function T(n){if(!n)return n===0?n:0;if(n=x(n),n===g||n===-g){var a=n<0?-1:1;return a*R}return n===n?n:0}function L(n){var a=T(n),r=a%1;return a===a?r?a-r:a:0}var b=Object.prototype,S=b.hasOwnProperty,Y=I(function(n,a){n=Object(n);var r=-1,e=a.length,t=e>2?a[2]:void 0;for(t&&M(a[0],a[1],t)&&(e=1);++r<e;)for(var f=a[r],i=O(f),s=-1,d=i.length;++s<d;){var u=i[s],v=n[u];(v===void 0||l(v,b[u])&&!S.call(n,u))&&(n[u]=f[u])}return n});function _(n){var a=n==null?0:n.length;return a?n[a-1]:void 0}function q(n){return function(a,r,e){var t=Object(a);if(!m(a)){var f=h(r);a=w(a),r=function(s){return f(t[s],s,t)}}var i=n(a,r,e);return i>-1?t[f?a[i]:i]:void 0}}var C=Math.max;function G(n,a,r){var e=n==null?0:n.length;if(!e)return-1;var t=r==null?0:L(r);return t<0&&(t=C(e+t,0)),A(n,h(a),t)}var o=q(G);function Q(n,a){var r=-1,e=m(n)?Array(n.length):[];return p(n,function(t,f,i){e[++r]=a(t,f,i)}),e}function z(n,a){var r=F(n)?N:Q;return r(n,h(a))}function U(n,a){return n<a}function V(n,a,r){for(var e=-1,t=n.length;++e<t;){var f=n[e],i=a(f);if(i!=null&&(s===void 0?i===i&&!E(i):r(i,s)))var s=i,d=f}return d}function B(n){return n&&n.length?V(n,P,U):void 0}export{U as a,V as b,Q as c,B as d,Y as e,o as f,L as g,_ as l,z as m,T as t};
|