@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
2 lines (1 loc) • 1.37 kB
JavaScript
function n(n){return!("object"!=typeof n||null===n||!y(n))}function t(n){return"function"==typeof n&&!n.prototype}function e(e){return t(e)&&(e=e()),n(e)?e.value:e}function o(...n){const t=e(n[0]);return n.every(n=>e(n)===t)}function r(n,t,o=""){const r=e(n);return e(r?t:o)}function u(...n){const t=n.map(e);let o;if(t.length>0&&"string"==typeof t[0]&&t[0].startsWith("__logSite:")&&(o=t.shift()),void 0!==o){let n;try{n=JSON.stringify(t,(n,t)=>"function"==typeof t?`[Function:${t.name||"anonymous"}]`:t)}catch{n=t+""}if(g.get(o)===n)return"";g.set(o,n)}return console.log(...t),""}function c(...n){return console.info(this,...n.map(e)),""}function i(...n){return n.map(e)}function f(n){const t={};return Object.keys(n).forEach(e=>{Object.defineProperty(t,e,{get(){const t=n[e];if("function"==typeof t){const e=t.call(n);return e&&e.__isCurriedComponent,e}return t},set(){},enumerable:!0})}),t}function s(e,...o){return(...r)=>{let u=e;if(t(e)&&0===e.length){const n=e();"function"==typeof n&&(u=n)}return u(...o.map(e=>n(e)?e:t(e)?e():e),...r)}}function a(...n){for(const t of n){const n=e(t);if(n)return n}return n.length>0?e(n[n.length-1]):void 0}function l(n){return!e(n)}function p(...n){return n.every(n=>!!e(n))}import{q as y}from"./vm-CFZXVoe9.js";const g=/* @__PURE__ */new Map;export{p as $,i as a,c as b,o as c,s as d,f as e,r as f,u as g,l as h,a as i};