altair-static
Version:
Static package for altair graphql client
2 lines (1 loc) • 1.91 kB
JavaScript
function b(o,f){for(var i=0;i<f.length;i++){const e=f[i];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in o)){const t=Object.getOwnPropertyDescriptor(e,r);t&&Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a,g;function p(){if(g)return a;g=1;function o(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(e=`${e}`,e=e.replace(/[ \t\n\f\r]/g,""),e.length%4===0&&(e=e.replace(/==?$/,"")),e.length%4===1||/[^+/0-9A-Za-z]/.test(e))return null;let r="",t=0,n=0;for(let u=0;u<e.length;u++)t<<=6,t|=i(e[u]),n+=6,n===24&&(r+=String.fromCharCode((t&16711680)>>16),r+=String.fromCharCode((t&65280)>>8),r+=String.fromCharCode(t&255),t=n=0);return n===12?(t>>=4,r+=String.fromCharCode(t)):n===18&&(t>>=2,r+=String.fromCharCode((t&65280)>>8),r+=String.fromCharCode(t&255)),r}const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(e){const r=f.indexOf(e);return r<0?void 0:r}return a=o,a}var l,d;function s(){if(d)return l;d=1;function o(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let r;for(e=`${e}`,r=0;r<e.length;r++)if(e.charCodeAt(r)>255)return null;let t="";for(r=0;r<e.length;r+=3){const n=[void 0,void 0,void 0,void 0];n[0]=e.charCodeAt(r)>>2,n[1]=(e.charCodeAt(r)&3)<<4,e.length>r+1&&(n[1]|=e.charCodeAt(r+1)>>4,n[2]=(e.charCodeAt(r+1)&15)<<2),e.length>r+2&&(n[2]|=e.charCodeAt(r+2)>>6,n[3]=e.charCodeAt(r+2)&63);for(let u=0;u<n.length;u++)typeof n[u]>"u"?t+="=":t+=i(n[u])}return t}const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i(e){if(e>=0&&e<64)return f[e]}return l=o,l}var c,h;function C(){if(h)return c;h=1;const o=p(),f=s();return c={atob:o,btoa:f},c}var m=C();const y=b({__proto__:null},[m]);export{y as i};