You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.9 KiB
1 lines
2.9 KiB
import{K as b,J as v}from"./index-BLqts8WY.js";import{$ as O,U as g,W as f,a6 as m,Q as p,O as y}from"./index-MyY_xqVN.js";function w(t,e,n){var o,r;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(r=t[n],r===0&&1/r===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(r=t[n],typeof r=="number"&&r!==r)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(O(t[n],e))return n;n+=1}return-1}function h(t,e){return w(e,t,0)>=0}function s(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var a=function(e){return(e<10?"0":"")+e},_=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function S(t,e){var n=function(i){var c=e.concat([t]);return h(i,c)?"<Circular>":S(i,c)},o=function(u,i){return f(function(c){return s(c)+": "+n(u[c])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+f(n,t).join(", ")+"))";case"[object Array]":return"["+f(n,t).concat(o(t,m(function(u){return/^\d+$/.test(u)},g(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):s(_(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":s(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var r=t.toString();if(r!=="[object Object]")return r}return"{"+o(t,g(t)).join(", ")+"}"}}var l=b(function(e){return S(e,[])});function j(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}var C=v(function(e,n){if(p(e)){if(p(n))return e.concat(n);throw new TypeError(l(n)+" is not an array")}if(y(e)){if(y(n))return e+n;throw new TypeError(l(n)+" is not a string")}if(e!=null&&j(e["fantasy-land/concat"]))return e["fantasy-land/concat"](n);if(e!=null&&j(e.concat))return e.concat(n);throw new TypeError(l(e)+' does not have a method named "concat" or "fantasy-land/concat"')});export{j as _,h as a,w as b,C as c,S as d,l as t};
|
|
|