@baskerhq/localstage 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ import ThemeSet from './set.js';
2
+ import '@oclif/core/interfaces';
3
+ import '@oclif/core';
4
+
5
+ declare class ThemePull extends ThemeSet {
6
+ static description: string;
7
+ static hidden: boolean;
8
+ }
9
+
10
+ export { ThemePull as default };
@@ -0,0 +1 @@
1
+ const _0x2c726c=_0x26bf;(function(_0x12666f,_0x4343af){const _0x2e502d=_0x26bf,_0x56c626=_0x12666f();while(!![]){try{const _0x563f21=-parseInt(_0x2e502d(0x187))/0x1+-parseInt(_0x2e502d(0x162))/0x2+-parseInt(_0x2e502d(0x16e))/0x3+-parseInt(_0x2e502d(0x178))/0x4*(parseInt(_0x2e502d(0x147))/0x5)+parseInt(_0x2e502d(0x176))/0x6*(parseInt(_0x2e502d(0x14f))/0x7)+-parseInt(_0x2e502d(0x154))/0x8+parseInt(_0x2e502d(0x158))/0x9;if(_0x563f21===_0x4343af)break;else _0x56c626['push'](_0x56c626['shift']());}catch(_0x41b82f){_0x56c626['push'](_0x56c626['shift']());}}}(_0x26b0,0xa47af));import{Command,Args,Flags}from'\x40\x6f\x63\x6c\x69\x66\x2f\x63\x6f\x72\x65';import{dirname,resolve,join,basename}from'\x70\x61\x74\x68';import{existsSync,unlinkSync,writeFileSync,readFileSync}from'\x66\x73';import{fileURLToPath}from'\x75\x72\x6c';import{PayloadSDK}from'\x40\x70\x61\x79\x6c\x6f\x61\x64\x63\x6d\x73\x2f\x73\x64\x6b';var i=_0x5a0cb6=>typeof _0x5a0cb6==_0x2c726c(0x183)&&_0x5a0cb6!==null,a=(_0x598175,_0xba6c93)=>{const _0x411ade=_0x2c726c;if(!i(_0x598175))return null;let _0x36d608=_0x598175[_0xba6c93];return typeof _0x36d608==_0x411ade(0x190)?_0x36d608:null;},h=(_0x195137,_0x33c322)=>{const _0x5dac2a=_0x2c726c;if(!i(_0x195137))return null;let _0x2e2a9d=_0x195137[_0x33c322];return typeof _0x2e2a9d==_0x5dac2a(0x155)&&Number['\x69\x73\x46\x69\x6e\x69\x74\x65'](_0x2e2a9d)?_0x2e2a9d:null;},$=fileURLToPath(import.meta.url),P=dirname($),O=[resolve(P,_0x2c726c(0x17a)),resolve(P,_0x2c726c(0x189))],f,F=()=>{const _0x1b4680=_0x2c726c;if(f!==void 0x0)return f;for(let _0x2eb3d6 of O)if(existsSync(_0x2eb3d6))try{let _0x24d739=readFileSync(_0x2eb3d6,_0x1b4680(0x146)),_0x54ef94=JSON[_0x1b4680(0x14a)](_0x24d739);if(!i(_0x54ef94))continue;let _0x31572e=a(_0x54ef94,_0x1b4680(0x16d));if(_0x31572e)return f=_0x31572e,_0x31572e;}catch{}return f=null,null;},k=_0x8df0f2=>{const _0x54d262=_0x2c726c;if(_0x8df0f2)return _0x8df0f2;let _0x9e6a73=process[_0x54d262(0x164)][_0x54d262(0x16c)]||process[_0x54d262(0x164)][_0x54d262(0x14e)];return _0x9e6a73||F()||_0x54d262(0x163);},b=_0x38a387=>{const _0x5b2d7c=_0x2c726c;let _0x34d9d6=process[_0x5b2d7c(0x164)][_0x5b2d7c(0x14c)];if(_0x34d9d6&&!_0x38a387){let _0x471e8d=resolve(_0x34d9d6);if(!existsSync(_0x471e8d))throw new Error('\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e\x74\x20\x74\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20'+_0x471e8d);return _0x471e8d;}if(_0x38a387){let _0x264ff5=resolve(_0x38a387);if(!existsSync(_0x264ff5))throw new Error(_0x5b2d7c(0x179)+_0x264ff5);return _0x264ff5;}let _0x53c782=process[_0x5b2d7c(0x17b)]();if([_0x5b2d7c(0x14d),_0x5b2d7c(0x15f)][_0x5b2d7c(0x153)](_0x4c59c3=>existsSync(resolve(_0x53c782,_0x4c59c3))))return _0x53c782;throw new Error('\x4e\x6f\x20\x74\x68\x65\x6d\x65\x20\x66\x69\x6c\x65\x73\x20\x64\x65\x74\x65\x63\x74\x65\x64\x20\x69\x6e\x20\x63\x75\x72\x72\x65\x6e\x74\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x2e\x20\x45\x78\x70\x65\x63\x74\x65\x64\x20\x74\x6f\x20\x66\x69\x6e\x64\x3a\x20\x6c\x61\x79\x6f\x75\x74\x73\x2f\x20\x6f\x72\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x2f\x2e');};function A(_0x5a0494){const _0x4a234f=_0x2c726c;let _0x706be8=_0x5a0494['\x65\x6e\x64\x73\x57\x69\x74\x68']('\x2f')?_0x5a0494[_0x4a234f(0x18f)](0x0,-0x1):_0x5a0494;return new PayloadSDK({'\x62\x61\x73\x65\x55\x52\x4c':_0x706be8+'\x2f\x61\x70\x69'});}function v({token:_0x409cb3,tenantId:_0xa4eced}){const _0x4d8f88=_0x2c726c;let _0x1d4136={};return _0x409cb3&&(_0x1d4136[_0x4d8f88(0x180)]=_0x4d8f88(0x141)+_0x409cb3),_0xa4eced&&(_0x1d4136[_0x4d8f88(0x17e)]=String(_0xa4eced)),_0x1d4136;}var C=async({payloadUrl:_0x56c2c2,tenantId:_0x548469,authToken:_0x56635e,themeKey:_0x3ce8cf})=>{const _0x44910d=_0x2c726c;let _0x3c4a05=await A(_0x56c2c2)[_0x44910d(0x191)]({'\x63\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e':_0x44910d(0x186),'\x6c\x69\x6d\x69\x74':0x1,'\x77\x68\x65\x72\x65':{'\x6b\x65\x79':{'\x65\x71\x75\x61\x6c\x73':_0x3ce8cf},'\x74\x65\x6e\x61\x6e\x74':{'\x65\x71\x75\x61\x6c\x73':_0x548469}}},{'\x68\x65\x61\x64\x65\x72\x73':v({'\x74\x6f\x6b\x65\x6e':_0x56635e,'\x74\x65\x6e\x61\x6e\x74\x49\x64':_0x548469})});if(!i(_0x3c4a05)||!Array[_0x44910d(0x18b)](_0x3c4a05[_0x44910d(0x18c)]))return null;for(let _0x4d1ffb of _0x3c4a05[_0x44910d(0x18c)]){let _0x383c43=a(_0x4d1ffb,'\x69\x64');if(_0x383c43)return _0x383c43;}return null;},V=join(process[_0x2c726c(0x17b)](),_0x2c726c(0x165)),W=0x18*0x3c*0x3c*0x3e8,I=class{[_0x2c726c(0x15a)]=null;['\x74\x65\x6e\x61\x6e\x74\x49\x64']=null;['\x74\x65\x6e\x61\x6e\x74']=null;['\x74\x68\x65\x6d\x65\x49\x64']=null;[_0x2c726c(0x15b)];constructor(_0x5fded9=V){const _0x51265f=_0x2c726c;this[_0x51265f(0x15b)]=_0x5fded9;}[_0x2c726c(0x156)](){const _0x42b7a4=_0x2c726c;return this[_0x42b7a4(0x15a)];}['\x67\x65\x74\x54\x65\x6e\x61\x6e\x74\x49\x64'](){const _0x4b254=_0x2c726c;return this[_0x4b254(0x181)];}[_0x2c726c(0x151)](){const _0xb16300=_0x2c726c;return this[_0xb16300(0x140)];}[_0x2c726c(0x170)](){const _0x513331=_0x2c726c;return this[_0x513331(0x18a)];}[_0x2c726c(0x144)](_0x54041b,_0x4e7210,_0x394652){const _0x354c83=_0x2c726c;this[_0x354c83(0x15a)]=_0x54041b,this[_0x354c83(0x181)]=_0x4e7210,this[_0x354c83(0x140)]=_0x394652??null;}[_0x2c726c(0x184)](_0x280c15){const _0x4e7461=_0x2c726c;this[_0x4e7461(0x18a)]=_0x280c15;}[_0x2c726c(0x159)](){const _0x44188b=_0x2c726c;this[_0x44188b(0x18a)]=null;}[_0x2c726c(0x16a)](){const _0x515147=_0x2c726c;if(this[_0x515147(0x15a)]=null,this[_0x515147(0x181)]=null,this[_0x515147(0x140)]=null,!this[_0x515147(0x18a)]){if(existsSync(this['\x73\x65\x73\x73\x69\x6f\x6e\x46\x69\x6c\x65']))try{unlinkSync(this[_0x515147(0x15b)]);}catch(_0x581637){console[_0x515147(0x152)](_0x515147(0x167),_0x581637);}return;}this[_0x515147(0x185)]();}['\x70\x65\x72\x73\x69\x73\x74\x54\x6f\x46\x69\x6c\x65'](){const _0x34890b=_0x2c726c;let _0x5e2c36=!!(this[_0x34890b(0x15a)]&&this[_0x34890b(0x181)]),_0x356c36=!!this[_0x34890b(0x18a)];if(!_0x5e2c36&&!_0x356c36)return;let _0x14630f={'\x74\x69\x6d\x65\x73\x74\x61\x6d\x70':Date[_0x34890b(0x14b)]()};this[_0x34890b(0x15a)]&&this[_0x34890b(0x181)]&&(_0x14630f[_0x34890b(0x15a)]=this[_0x34890b(0x15a)],_0x14630f[_0x34890b(0x181)]=this[_0x34890b(0x181)],_0x14630f[_0x34890b(0x140)]=this[_0x34890b(0x140)]??void 0x0),this[_0x34890b(0x18a)]&&(_0x14630f[_0x34890b(0x18a)]=this[_0x34890b(0x18a)]);try{writeFileSync(this[_0x34890b(0x15b)],JSON[_0x34890b(0x166)](_0x14630f,null,0x2));}catch(_0x43542f){console[_0x34890b(0x152)]('\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x61\x63\x68\x65\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a',_0x43542f);}}[_0x2c726c(0x161)](){const _0x2d7554=_0x2c726c;try{if(!existsSync(this[_0x2d7554(0x15b)]))return;let _0x5605e0=readFileSync(this[_0x2d7554(0x15b)],'\x75\x74\x66\x2d\x38'),_0x4bf343=JSON[_0x2d7554(0x14a)](_0x5605e0);if(!i(_0x4bf343))return;let _0x4c9531=h(_0x4bf343,_0x2d7554(0x15e));if(typeof _0x4c9531!=_0x2d7554(0x155))return;if(Date['\x6e\x6f\x77']()-_0x4c9531>W){let _0x322dd4=a(_0x4bf343,_0x2d7554(0x18a));_0x322dd4&&(this['\x74\x68\x65\x6d\x65\x49\x64']=_0x322dd4);return;}let _0xae206e=a(_0x4bf343,_0x2d7554(0x15a)),_0x2d5d0e=a(_0x4bf343,_0x2d7554(0x181)),_0x5c3921=_0x2d7554(0x140)in _0x4bf343?_0x4bf343[_0x2d7554(0x140)]:null,_0x4b35e4=a(_0x4bf343,_0x2d7554(0x18a));this[_0x2d7554(0x15a)]=_0xae206e??null,this[_0x2d7554(0x181)]=_0x2d5d0e??null,this[_0x2d7554(0x140)]=_0x5c3921??null,this[_0x2d7554(0x18a)]=_0x4b35e4??null;}catch(_0x2c7886){console[_0x2d7554(0x152)](_0x2d7554(0x188),_0x2c7886);}}},d=new I();d[_0x2c726c(0x161)]();function _0x26bf(_0x3f9185,_0x2a0be5){_0x3f9185=_0x3f9185-0x140;const _0x26b078=_0x26b0();let _0x26bf7b=_0x26b078[_0x3f9185];return _0x26bf7b;}function E(){const _0x3e2d34=_0x2c726c;return d[_0x3e2d34(0x156)]();}function _0x26b0(){const _0x2b1b0f=['\x63\x6c\x65\x61\x72\x54\x68\x65\x6d\x65\x49\x64','\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e','\x73\x65\x73\x73\x69\x6f\x6e\x46\x69\x6c\x65','\x66\x75\x6e\x63\x74\x69\x6f\x6e','\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64','\x74\x69\x6d\x65\x73\x74\x61\x6d\x70','\x74\x65\x6d\x70\x6c\x61\x74\x65\x73','\x6d\x65\x73\x73\x61\x67\x65','\x6c\x6f\x61\x64\x46\x72\x6f\x6d\x46\x69\x6c\x65','\x31\x36\x32\x31\x36\x31\x34\x58\x4f\x72\x53\x6d\x6e','\x68\x74\x74\x70\x3a\x2f\x2f\x6c\x6f\x63\x61\x6c\x68\x6f\x73\x74\x3a\x33\x30\x30\x30','\x65\x6e\x76','\x2e\x6c\x6f\x63\x61\x6c\x73\x74\x61\x67\x65\x2d\x73\x65\x73\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e','\x73\x74\x72\x69\x6e\x67\x69\x66\x79','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x72\x65\x6d\x6f\x76\x65\x20\x63\x61\x63\x68\x65\x64\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a','\x53\x74\x6f\x72\x65\x20\x6f\x72\x20\x66\x65\x74\x63\x68\x20\x61\x20\x74\x68\x65\x6d\x65\x20\x49\x44\x20\x66\x6f\x72\x20\x6c\x6f\x63\x61\x6c\x20\x74\x68\x65\x6d\x65\x20\x73\x65\x74\x74\x69\x6e\x67\x73\x2e','\x4d\x69\x73\x73\x69\x6e\x67\x20\x61\x75\x74\x68\x20\x73\x65\x73\x73\x69\x6f\x6e\x2e\x20\x52\x75\x6e\x20\x27\x62\x61\x73\x6b\x65\x72\x20\x74\x68\x65\x6d\x65\x20\x64\x65\x76\x27\x20\x61\x6e\x64\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x66\x69\x72\x73\x74\x2e','\x63\x6c\x65\x61\x72','\u2705\x20\x54\x68\x65\x6d\x65\x20\x49\x44\x20\x73\x74\x6f\x72\x65\x64\x3a\x20','\x42\x41\x53\x4b\x45\x52\x5f\x43\x4d\x53\x5f\x55\x52\x4c','\x63\x6d\x73\x55\x72\x6c','\x39\x34\x32\x39\x31\x35\x49\x54\x7a\x4a\x5a\x59','\x6c\x6f\x67','\x67\x65\x74\x54\x68\x65\x6d\x65\x49\x64','\x67\x65\x74\x54\x65\x6e\x61\x6e\x74\x49\x64','\x53\x65\x73\x73\x69\x6f\x6e\x20\x65\x78\x70\x69\x72\x65\x64\x2e\x20\x52\x75\x6e\x20\x27\x62\x61\x73\x6b\x65\x72\x20\x74\x68\x65\x6d\x65\x20\x64\x65\x76\x27\x20\x61\x6e\x64\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x61\x67\x61\x69\x6e\x2e','\u2139\ufe0f\x20\x20\x54\x68\x65\x6d\x65\x20\x6b\x65\x79\x3a\x20','\x74\x68\x65\x6d\x65\x2d\x69\x64','\x70\x61\x79\x6c\x6f\x61\x64\x2d\x75\x72\x6c','\x31\x38\x51\x4a\x64\x6d\x44\x54','\x63\x6c\x6f\x6e\x65','\x31\x38\x39\x34\x31\x32\x63\x62\x76\x67\x42\x73','\x54\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20','\x2e\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x64\x65\x66\x61\x75\x6c\x74\x73\x2e\x6a\x73\x6f\x6e','\x63\x77\x64','\x74\x68\x65\x6d\x65\x50\x61\x74\x68','\x74\x68\x65\x6d\x65','\x78\x2d\x62\x61\x73\x6b\x65\x72\x2d\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64','\x54\x65\x6e\x61\x6e\x74\x20\x49\x44\x20\x74\x6f\x20\x75\x73\x65\x20\x77\x68\x65\x6e\x20\x6c\x6f\x6f\x6b\x69\x6e\x67\x20\x75\x70\x20\x74\x68\x65\x20\x74\x68\x65\x6d\x65','\x41\x75\x74\x68\x6f\x72\x69\x7a\x61\x74\x69\x6f\x6e','\x74\x65\x6e\x61\x6e\x74\x49\x64','\x50\x61\x74\x68\x20\x74\x6f\x20\x74\x68\x65\x20\x74\x68\x65\x6d\x65\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79','\x6f\x62\x6a\x65\x63\x74','\x73\x65\x74\x54\x68\x65\x6d\x65\x49\x64','\x70\x65\x72\x73\x69\x73\x74\x54\x6f\x46\x69\x6c\x65','\x74\x68\x65\x6d\x65\x73','\x39\x34\x30\x33\x39\x37\x76\x4c\x63\x64\x46\x71','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x61\x64\x20\x63\x61\x63\x68\x65\x64\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a','\x2e\x2e\x2f\x2e\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x64\x65\x66\x61\x75\x6c\x74\x73\x2e\x6a\x73\x6f\x6e','\x74\x68\x65\x6d\x65\x49\x64','\x69\x73\x41\x72\x72\x61\x79','\x64\x6f\x63\x73','\x6a\x73\x6f\x6e','\x73\x74\x61\x74\x75\x73','\x73\x6c\x69\x63\x65','\x73\x74\x72\x69\x6e\x67','\x66\x69\x6e\x64','\x68\x69\x64\x64\x65\x6e','\x66\x6c\x61\x67\x73','\x50\x61\x79\x6c\x6f\x61\x64\x20\x43\x4d\x53\x20\x62\x61\x73\x65\x20\x55\x52\x4c','\x74\x65\x6e\x61\x6e\x74','\x42\x65\x61\x72\x65\x72\x20','\x65\x72\x72\x6f\x72','\x74\x68\x65\x6d\x65\x2d\x6b\x65\x79','\x73\x65\x74\x41\x75\x74\x68','\x4e\x6f\x20\x74\x68\x65\x6d\x65\x20\x66\x6f\x75\x6e\x64\x20\x66\x6f\x72\x20\x6b\x65\x79\x20\x27','\x75\x74\x66\x2d\x38','\x33\x30\x7a\x73\x6f\x59\x5a\x48','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x63\x61\x74\x65\x20\x74\x68\x65\x6d\x65\x2e','\x61\x72\x67\x73','\x70\x61\x72\x73\x65','\x6e\x6f\x77','\x4c\x4f\x43\x41\x4c\x53\x54\x41\x47\x45\x5f\x54\x48\x45\x4d\x45\x5f\x50\x41\x54\x48','\x6c\x61\x79\x6f\x75\x74\x73','\x50\x41\x59\x4c\x4f\x41\x44\x5f\x55\x52\x4c','\x33\x35\x34\x32\x37\x37\x6c\x54\x6d\x4e\x62\x4f','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x67\x65\x74\x54\x65\x6e\x61\x6e\x74','\x77\x61\x72\x6e','\x73\x6f\x6d\x65','\x35\x37\x38\x39\x34\x30\x38\x46\x70\x47\x7a\x6d\x68','\x6e\x75\x6d\x62\x65\x72','\x67\x65\x74\x54\x6f\x6b\x65\x6e','\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e','\x33\x32\x33\x35\x36\x36\x32\x39\x52\x69\x4c\x42\x53\x46'];_0x26b0=function(){return _0x2b1b0f;};return _0x26b0();}function L(){const _0x20f941=_0x2c726c;return d[_0x20f941(0x171)]();}function w(_0x27d4cc){const _0x269b8e=_0x2c726c;d[_0x269b8e(0x184)](_0x27d4cc),d[_0x269b8e(0x185)]();}var X=_0x30d88b=>i(_0x30d88b)&&typeof _0x30d88b[_0x2c726c(0x18e)]==_0x2c726c(0x155),U=_0xdaa383=>{if(!i(_0xdaa383))return null;let _0xc5519a=_0xdaa383['\x72\x65\x73\x70\x6f\x6e\x73\x65'];return X(_0xc5519a)?_0xc5519a:null;},Y=_0x36bac5=>{const _0x1504a1=_0x2c726c;let _0x133a4b=U(_0x36bac5);return _0x133a4b?_0x133a4b[_0x1504a1(0x18e)]:h(_0x36bac5,_0x1504a1(0x18e))??h(_0x36bac5,_0x1504a1(0x150));},D=_0x81ba7c=>{let _0x33a7f0=Y(_0x81ba7c);return _0x33a7f0===0x191||_0x33a7f0===0x193;},G=async(_0xae181f,_0x392854)=>{const _0x1e8b20=_0x2c726c;let _0x29de5e=U(_0xae181f);if(!_0x29de5e)return a(_0xae181f,_0x1e8b20(0x160))??_0x392854;if(_0x29de5e[_0x1e8b20(0x18e)]===0x191||_0x29de5e[_0x1e8b20(0x18e)]===0x193)return'\x53\x65\x73\x73\x69\x6f\x6e\x20\x65\x78\x70\x69\x72\x65\x64\x2e\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x61\x67\x61\x69\x6e\x2e';let _0x132c26=typeof _0x29de5e[_0x1e8b20(0x177)]==_0x1e8b20(0x15c)?_0x29de5e[_0x1e8b20(0x177)]():_0x29de5e;if(i(_0x132c26)&&typeof _0x132c26[_0x1e8b20(0x18d)]==_0x1e8b20(0x15c))try{let _0x4e291c=await _0x132c26[_0x1e8b20(0x18d)](),_0x2e84af=a(_0x4e291c,_0x1e8b20(0x160));if(_0x2e84af)return _0x2e84af;}catch{}return _0x392854;},p=class e extends Command{static [_0x2c726c(0x157)]=_0x2c726c(0x168);static [_0x2c726c(0x149)]={'\x74\x68\x65\x6d\x65\x50\x61\x74\x68':Args[_0x2c726c(0x190)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x2c726c(0x182),'\x72\x65\x71\x75\x69\x72\x65\x64':![]})};static [_0x2c726c(0x193)]={'\x74\x68\x65\x6d\x65':Flags[_0x2c726c(0x190)]({'\x63\x68\x61\x72':'\x74','\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x2c726c(0x182)}),'\x70\x61\x79\x6c\x6f\x61\x64\x2d\x75\x72\x6c':Flags[_0x2c726c(0x190)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x2c726c(0x194),'\x64\x65\x66\x61\x75\x6c\x74':k()}),'\x74\x68\x65\x6d\x65\x2d\x69\x64':Flags[_0x2c726c(0x190)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':'\x54\x68\x65\x6d\x65\x20\x49\x44\x20\x74\x6f\x20\x73\x74\x6f\x72\x65'}),'\x74\x68\x65\x6d\x65\x2d\x6b\x65\x79':Flags[_0x2c726c(0x190)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':'\x54\x68\x65\x6d\x65\x20\x6b\x65\x79\x20\x74\x6f\x20\x6c\x6f\x6f\x6b\x20\x75\x70\x20\x28\x64\x65\x66\x61\x75\x6c\x74\x73\x20\x74\x6f\x20\x66\x6f\x6c\x64\x65\x72\x20\x6e\x61\x6d\x65\x29'}),'\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64':Flags[_0x2c726c(0x190)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x2c726c(0x17f)})};async['\x72\x75\x6e'](){const _0x3b1f66=_0x2c726c;let {args:_0xd0e990,flags:_0x4dcb16}=await this[_0x3b1f66(0x14a)](e),_0x5e40ec=_0x4dcb16[_0x3b1f66(0x17d)]??_0xd0e990[_0x3b1f66(0x17c)]??null,_0x359010;try{_0x359010=b(_0x5e40ec);}catch(_0x316157){this[_0x3b1f66(0x142)](_0x316157 instanceof Error?_0x316157[_0x3b1f66(0x160)]:_0x3b1f66(0x148));return;}let _0x5a8261=k(_0x4dcb16[_0x3b1f66(0x175)]);if(_0x4dcb16[_0x3b1f66(0x174)]){w(_0x4dcb16[_0x3b1f66(0x174)]),this[_0x3b1f66(0x16f)](_0x3b1f66(0x16b)+_0x4dcb16[_0x3b1f66(0x174)]);return;}let _0xf532b1=_0x4dcb16[_0x3b1f66(0x143)]??basename(_0x359010),_0x1fd7c2=E(),_0x2c1663=_0x4dcb16[_0x3b1f66(0x15d)]??L();if(!_0x1fd7c2||!_0x2c1663){this[_0x3b1f66(0x142)](_0x3b1f66(0x169));return;}try{let _0x47cb25=await C({'\x70\x61\x79\x6c\x6f\x61\x64\x55\x72\x6c':_0x5a8261,'\x74\x65\x6e\x61\x6e\x74\x49\x64':_0x2c1663,'\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e':_0x1fd7c2,'\x74\x68\x65\x6d\x65\x4b\x65\x79':_0xf532b1});if(!_0x47cb25){this[_0x3b1f66(0x142)](_0x3b1f66(0x145)+_0xf532b1+'\x27\x2e');return;}w(_0x47cb25),this[_0x3b1f66(0x16f)](_0x3b1f66(0x16b)+_0x47cb25),this[_0x3b1f66(0x16f)](_0x3b1f66(0x173)+_0xf532b1);}catch(_0x42337f){if(D(_0x42337f)){this['\x65\x72\x72\x6f\x72'](_0x3b1f66(0x172));return;}let _0x11c3c6=await G(_0x42337f,'\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x6f\x6b\x20\x75\x70\x20\x74\x68\x65\x6d\x65\x20\x49\x44\x2e');this['\x65\x72\x72\x6f\x72'](_0x11c3c6);}}},S=class extends p{static [_0x2c726c(0x157)]='\x41\x6c\x69\x61\x73\x20\x66\x6f\x72\x20\x74\x68\x65\x6d\x65\x20\x73\x65\x74\x2e';static [_0x2c726c(0x192)]=!![];};export{S as default};
@@ -0,0 +1,19 @@
1
+ import * as _oclif_core_interfaces from '@oclif/core/interfaces';
2
+ import { Command } from '@oclif/core';
3
+
4
+ declare class ThemeSet extends Command {
5
+ static description: string;
6
+ static args: {
7
+ themePath: _oclif_core_interfaces.Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ theme: _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
11
+ "payload-url": _oclif_core_interfaces.OptionFlag<string, _oclif_core_interfaces.CustomOptions>;
12
+ "theme-id": _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
13
+ "theme-key": _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
14
+ "tenant-id": _oclif_core_interfaces.OptionFlag<string | undefined, _oclif_core_interfaces.CustomOptions>;
15
+ };
16
+ run(): Promise<void>;
17
+ }
18
+
19
+ export { ThemeSet as default };
@@ -0,0 +1 @@
1
+ const _0x274ccf=_0x5708;(function(_0x3b4427,_0x5f59ac){const _0x10b0f8=_0x5708,_0x3fb5f0=_0x3b4427();while(!![]){try{const _0x487319=parseInt(_0x10b0f8(0x1bd))/0x1+-parseInt(_0x10b0f8(0x1d7))/0x2+parseInt(_0x10b0f8(0x1e8))/0x3+-parseInt(_0x10b0f8(0x1ca))/0x4+-parseInt(_0x10b0f8(0x1fa))/0x5+-parseInt(_0x10b0f8(0x205))/0x6+parseInt(_0x10b0f8(0x1fe))/0x7;if(_0x487319===_0x5f59ac)break;else _0x3fb5f0['push'](_0x3fb5f0['shift']());}catch(_0x1aaf92){_0x3fb5f0['push'](_0x3fb5f0['shift']());}}}(_0x4d7a,0x3a24c));import{Command,Args,Flags}from'\x40\x6f\x63\x6c\x69\x66\x2f\x63\x6f\x72\x65';import{dirname,resolve,join,basename}from'\x70\x61\x74\x68';function _0x4d7a(){const _0x232877=['\x73\x74\x72\x69\x6e\x67','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x6f\x6b\x20\x75\x70\x20\x74\x68\x65\x6d\x65\x20\x49\x44\x2e','\x65\x72\x72\x6f\x72','\x45\x6e\x76\x69\x72\x6f\x6e\x6d\x65\x6e\x74\x20\x74\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20','\x68\x74\x74\x70\x3a\x2f\x2f\x6c\x6f\x63\x61\x6c\x68\x6f\x73\x74\x3a\x33\x30\x30\x30','\x73\x65\x74\x41\x75\x74\x68','\x74\x68\x65\x6d\x65\x2d\x69\x64','\x37\x35\x34\x36\x36\x38\x48\x57\x4b\x67\x4a\x76','\x63\x6c\x65\x61\x72\x54\x68\x65\x6d\x65\x49\x64','\u2139\ufe0f\x20\x20\x54\x68\x65\x6d\x65\x20\x6b\x65\x79\x3a\x20','\x65\x6e\x64\x73\x57\x69\x74\x68','\x4e\x6f\x20\x74\x68\x65\x6d\x65\x20\x66\x6f\x75\x6e\x64\x20\x66\x6f\x72\x20\x6b\x65\x79\x20\x27','\x53\x74\x6f\x72\x65\x20\x6f\x72\x20\x66\x65\x74\x63\x68\x20\x61\x20\x74\x68\x65\x6d\x65\x20\x49\x44\x20\x66\x6f\x72\x20\x6c\x6f\x63\x61\x6c\x20\x74\x68\x65\x6d\x65\x20\x73\x65\x74\x74\x69\x6e\x67\x73\x2e','\x50\x61\x74\x68\x20\x74\x6f\x20\x74\x68\x65\x20\x74\x68\x65\x6d\x65\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79','\x67\x65\x74\x54\x68\x65\x6d\x65\x49\x64','\x66\x75\x6e\x63\x74\x69\x6f\x6e','\x54\x68\x65\x6d\x65\x20\x70\x61\x74\x68\x20\x64\x6f\x65\x73\x20\x6e\x6f\x74\x20\x65\x78\x69\x73\x74\x3a\x20','\x2e\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x64\x65\x66\x61\x75\x6c\x74\x73\x2e\x6a\x73\x6f\x6e','\x63\x77\x64','\x74\x69\x6d\x65\x73\x74\x61\x6d\x70','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x63\x61\x74\x65\x20\x74\x68\x65\x6d\x65\x2e','\x53\x65\x73\x73\x69\x6f\x6e\x20\x65\x78\x70\x69\x72\x65\x64\x2e\x20\x52\x75\x6e\x20\x27\x62\x61\x73\x6b\x65\x72\x20\x74\x68\x65\x6d\x65\x20\x64\x65\x76\x27\x20\x61\x6e\x64\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x61\x67\x61\x69\x6e\x2e','\x73\x6f\x6d\x65','\x73\x74\x72\x69\x6e\x67\x69\x66\x79','\x31\x33\x37\x37\x35\x31\x59\x66\x42\x46\x42\x48','\x74\x68\x65\x6d\x65\x73','\x6a\x73\x6f\x6e','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x6c\x6f\x67','\x4e\x6f\x20\x74\x68\x65\x6d\x65\x20\x66\x69\x6c\x65\x73\x20\x64\x65\x74\x65\x63\x74\x65\x64\x20\x69\x6e\x20\x63\x75\x72\x72\x65\x6e\x74\x20\x64\x69\x72\x65\x63\x74\x6f\x72\x79\x2e\x20\x45\x78\x70\x65\x63\x74\x65\x64\x20\x74\x6f\x20\x66\x69\x6e\x64\x3a\x20\x6c\x61\x79\x6f\x75\x74\x73\x2f\x20\x6f\x72\x20\x74\x65\x6d\x70\x6c\x61\x74\x65\x73\x2f\x2e','\x53\x65\x73\x73\x69\x6f\x6e\x20\x65\x78\x70\x69\x72\x65\x64\x2e\x20\x50\x6c\x65\x61\x73\x65\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x61\x67\x61\x69\x6e\x2e','\x78\x2d\x62\x61\x73\x6b\x65\x72\x2d\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64','\x74\x68\x65\x6d\x65\x2d\x6b\x65\x79','\x67\x65\x74\x54\x6f\x6b\x65\x6e','\x70\x61\x79\x6c\x6f\x61\x64\x2d\x75\x72\x6c','\x54\x68\x65\x6d\x65\x20\x6b\x65\x79\x20\x74\x6f\x20\x6c\x6f\x6f\x6b\x20\x75\x70\x20\x28\x64\x65\x66\x61\x75\x6c\x74\x73\x20\x74\x6f\x20\x66\x6f\x6c\x64\x65\x72\x20\x6e\x61\x6d\x65\x29','\x73\x74\x61\x74\x75\x73','\x2e\x6c\x6f\x63\x61\x6c\x73\x74\x61\x67\x65\x2d\x73\x65\x73\x73\x69\x6f\x6e\x2e\x6a\x73\x6f\x6e','\x74\x65\x6e\x61\x6e\x74','\x72\x75\x6e','\x6e\x75\x6d\x62\x65\x72','\x6c\x61\x79\x6f\x75\x74\x73','\x31\x35\x36\x37\x37\x35\x30\x71\x76\x5a\x52\x4b\x61','\u2705\x20\x54\x68\x65\x6d\x65\x20\x49\x44\x20\x73\x74\x6f\x72\x65\x64\x3a\x20','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x63\x61\x63\x68\x65\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a','\x6d\x65\x73\x73\x61\x67\x65','\x35\x38\x35\x33\x32\x36\x37\x67\x57\x71\x58\x44\x68','\x74\x68\x65\x6d\x65\x50\x61\x74\x68','\x74\x68\x65\x6d\x65','\x4d\x69\x73\x73\x69\x6e\x67\x20\x61\x75\x74\x68\x20\x73\x65\x73\x73\x69\x6f\x6e\x2e\x20\x52\x75\x6e\x20\x27\x62\x61\x73\x6b\x65\x72\x20\x74\x68\x65\x6d\x65\x20\x64\x65\x76\x27\x20\x61\x6e\x64\x20\x73\x69\x67\x6e\x20\x69\x6e\x20\x66\x69\x72\x73\x74\x2e','\x54\x65\x6e\x61\x6e\x74\x20\x49\x44\x20\x74\x6f\x20\x75\x73\x65\x20\x77\x68\x65\x6e\x20\x6c\x6f\x6f\x6b\x69\x6e\x67\x20\x75\x70\x20\x74\x68\x65\x20\x74\x68\x65\x6d\x65','\x74\x65\x6e\x61\x6e\x74\x49\x64','\x66\x6c\x61\x67\x73','\x39\x30\x34\x38\x30\x41\x4b\x59\x67\x58\x63','\x6f\x62\x6a\x65\x63\x74','\x50\x61\x79\x6c\x6f\x61\x64\x20\x43\x4d\x53\x20\x62\x61\x73\x65\x20\x55\x52\x4c','\x61\x72\x67\x73','\x63\x6d\x73\x55\x72\x6c','\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e','\x2f\x61\x70\x69','\x69\x73\x41\x72\x72\x61\x79','\x70\x61\x72\x73\x65','\x73\x65\x73\x73\x69\x6f\x6e\x46\x69\x6c\x65','\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x6c\x6f\x61\x64\x20\x63\x61\x63\x68\x65\x64\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a','\x42\x65\x61\x72\x65\x72\x20','\x38\x35\x38\x39\x39\x72\x65\x63\x41\x58\x67','\x65\x6e\x76','\x54\x68\x65\x6d\x65\x20\x49\x44\x20\x74\x6f\x20\x73\x74\x6f\x72\x65','\x77\x61\x72\x6e','\x74\x68\x65\x6d\x65\x49\x64','\x67\x65\x74\x54\x65\x6e\x61\x6e\x74\x49\x64','\x63\x6c\x65\x61\x72','\x75\x74\x66\x2d\x38','\x73\x6c\x69\x63\x65','\x6e\x6f\x77','\x67\x65\x74\x54\x65\x6e\x61\x6e\x74','\x2e\x2e\x2f\x2e\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2f\x64\x65\x66\x61\x75\x6c\x74\x73\x2e\x6a\x73\x6f\x6e','\x64\x6f\x63\x73','\x39\x35\x35\x30\x38\x65\x45\x41\x51\x5a\x41','\x73\x65\x74\x54\x68\x65\x6d\x65\x49\x64','\x6c\x6f\x61\x64\x46\x72\x6f\x6d\x46\x69\x6c\x65','\x70\x65\x72\x73\x69\x73\x74\x54\x6f\x46\x69\x6c\x65','\x72\x65\x73\x70\x6f\x6e\x73\x65','\x63\x6c\x6f\x6e\x65'];_0x4d7a=function(){return _0x232877;};return _0x4d7a();}import{existsSync,unlinkSync,writeFileSync,readFileSync}from'\x66\x73';import{fileURLToPath}from'\x75\x72\x6c';import{PayloadSDK}from'\x40\x70\x61\x79\x6c\x6f\x61\x64\x63\x6d\x73\x2f\x73\x64\x6b';var i=_0x32371f=>typeof _0x32371f==_0x274ccf(0x206)&&_0x32371f!==null,a=(_0xabf354,_0xf22436)=>{const _0x30b6bd=_0x274ccf;if(!i(_0xabf354))return null;let _0x27e61e=_0xabf354[_0xf22436];return typeof _0x27e61e==_0x30b6bd(0x1d0)?_0x27e61e:null;},h=(_0x35d7c1,_0x3d3989)=>{const _0x53fa70=_0x274ccf;if(!i(_0x35d7c1))return null;let _0x1192da=_0x35d7c1[_0x3d3989];return typeof _0x1192da==_0x53fa70(0x1f8)&&Number['\x69\x73\x46\x69\x6e\x69\x74\x65'](_0x1192da)?_0x1192da:null;},K=fileURLToPath(import.meta.url),P=dirname(K),$=[resolve(P,_0x274ccf(0x1e1)),resolve(P,_0x274ccf(0x1c8))],g,x=()=>{const _0x1f4b69=_0x274ccf;if(g!==void 0x0)return g;for(let _0x1a4b9a of $)if(existsSync(_0x1a4b9a))try{let _0x594b68=readFileSync(_0x1a4b9a,_0x1f4b69(0x1c4)),_0x4248a7=JSON[_0x1f4b69(0x1b9)](_0x594b68);if(!i(_0x4248a7))continue;let _0x7d991b=a(_0x4248a7,_0x1f4b69(0x209));if(_0x7d991b)return g=_0x7d991b,_0x7d991b;}catch{}return g=null,null;},T=_0x3906f5=>{const _0x5603dc=_0x274ccf;if(_0x3906f5)return _0x3906f5;let _0x5628fd=process[_0x5603dc(0x1be)]['\x42\x41\x53\x4b\x45\x52\x5f\x43\x4d\x53\x5f\x55\x52\x4c']||process[_0x5603dc(0x1be)]['\x50\x41\x59\x4c\x4f\x41\x44\x5f\x55\x52\x4c'];return _0x5628fd||x()||_0x5603dc(0x1d4);},F=_0x438fee=>{const _0x3ccf5d=_0x274ccf;let _0x494c9e=process['\x65\x6e\x76']['\x4c\x4f\x43\x41\x4c\x53\x54\x41\x47\x45\x5f\x54\x48\x45\x4d\x45\x5f\x50\x41\x54\x48'];if(_0x494c9e&&!_0x438fee){let _0x5eb96e=resolve(_0x494c9e);if(!existsSync(_0x5eb96e))throw new Error(_0x3ccf5d(0x1d3)+_0x5eb96e);return _0x5eb96e;}if(_0x438fee){let _0x3b9010=resolve(_0x438fee);if(!existsSync(_0x3b9010))throw new Error(_0x3ccf5d(0x1e0)+_0x3b9010);return _0x3b9010;}let _0x5f58fb=process['\x63\x77\x64']();if([_0x3ccf5d(0x1f9),'\x74\x65\x6d\x70\x6c\x61\x74\x65\x73'][_0x3ccf5d(0x1e6)](_0x42ca40=>existsSync(resolve(_0x5f58fb,_0x42ca40))))return _0x5f58fb;throw new Error(_0x3ccf5d(0x1ed));};function b(_0xbb55e8){const _0x582197=_0x274ccf;let _0xc0861c=_0xbb55e8[_0x582197(0x1da)]('\x2f')?_0xbb55e8[_0x582197(0x1c5)](0x0,-0x1):_0xbb55e8;return new PayloadSDK({'\x62\x61\x73\x65\x55\x52\x4c':_0xc0861c+_0x582197(0x20b)});}function A({token:_0x3ab81d,tenantId:_0x216ad3}){const _0x208fb6=_0x274ccf;let _0xfc1027={};return _0x3ab81d&&(_0xfc1027['\x41\x75\x74\x68\x6f\x72\x69\x7a\x61\x74\x69\x6f\x6e']=_0x208fb6(0x1bc)+_0x3ab81d),_0x216ad3&&(_0xfc1027[_0x208fb6(0x1ef)]=String(_0x216ad3)),_0xfc1027;}var v=async({payloadUrl:_0x157310,tenantId:_0x2dabda,authToken:_0x45aaaa,themeKey:_0x3f3501})=>{const _0x451877=_0x274ccf;let _0x1acdaa=await b(_0x157310)['\x66\x69\x6e\x64']({'\x63\x6f\x6c\x6c\x65\x63\x74\x69\x6f\x6e':_0x451877(0x1e9),'\x6c\x69\x6d\x69\x74':0x1,'\x77\x68\x65\x72\x65':{'\x6b\x65\x79':{'\x65\x71\x75\x61\x6c\x73':_0x3f3501},'\x74\x65\x6e\x61\x6e\x74':{'\x65\x71\x75\x61\x6c\x73':_0x2dabda}}},{'\x68\x65\x61\x64\x65\x72\x73':A({'\x74\x6f\x6b\x65\x6e':_0x45aaaa,'\x74\x65\x6e\x61\x6e\x74\x49\x64':_0x2dabda})});if(!i(_0x1acdaa)||!Array[_0x451877(0x20c)](_0x1acdaa[_0x451877(0x1c9)]))return null;for(let _0x4d2fa2 of _0x1acdaa['\x64\x6f\x63\x73']){let _0x5b2cdc=a(_0x4d2fa2,'\x69\x64');if(_0x5b2cdc)return _0x5b2cdc;}return null;},B=join(process[_0x274ccf(0x1e2)](),_0x274ccf(0x1f5)),V=0x18*0x3c*0x3c*0x3e8,k=class{['\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e']=null;[_0x274ccf(0x203)]=null;['\x74\x65\x6e\x61\x6e\x74']=null;['\x74\x68\x65\x6d\x65\x49\x64']=null;[_0x274ccf(0x1ba)];constructor(_0x36beae=B){this['\x73\x65\x73\x73\x69\x6f\x6e\x46\x69\x6c\x65']=_0x36beae;}['\x67\x65\x74\x54\x6f\x6b\x65\x6e'](){const _0x547a20=_0x274ccf;return this[_0x547a20(0x20a)];}[_0x274ccf(0x1c2)](){return this['\x74\x65\x6e\x61\x6e\x74\x49\x64'];}[_0x274ccf(0x1c7)](){return this['\x74\x65\x6e\x61\x6e\x74'];}[_0x274ccf(0x1de)](){const _0x43a05e=_0x274ccf;return this[_0x43a05e(0x1c1)];}[_0x274ccf(0x1d5)](_0x2748f8,_0x12f421,_0x2fe3d4){const _0x1608f1=_0x274ccf;this[_0x1608f1(0x20a)]=_0x2748f8,this[_0x1608f1(0x203)]=_0x12f421,this[_0x1608f1(0x1f6)]=_0x2fe3d4??null;}[_0x274ccf(0x1cb)](_0x5800d6){const _0x1d906d=_0x274ccf;this[_0x1d906d(0x1c1)]=_0x5800d6;}[_0x274ccf(0x1d8)](){this['\x74\x68\x65\x6d\x65\x49\x64']=null;}[_0x274ccf(0x1c3)](){const _0x84084b=_0x274ccf;if(this[_0x84084b(0x20a)]=null,this['\x74\x65\x6e\x61\x6e\x74\x49\x64']=null,this[_0x84084b(0x1f6)]=null,!this[_0x84084b(0x1c1)]){if(existsSync(this[_0x84084b(0x1ba)]))try{unlinkSync(this['\x73\x65\x73\x73\x69\x6f\x6e\x46\x69\x6c\x65']);}catch(_0x47fafb){console[_0x84084b(0x1c0)]('\x46\x61\x69\x6c\x65\x64\x20\x74\x6f\x20\x72\x65\x6d\x6f\x76\x65\x20\x63\x61\x63\x68\x65\x64\x20\x73\x65\x73\x73\x69\x6f\x6e\x3a',_0x47fafb);}return;}this[_0x84084b(0x1cd)]();}[_0x274ccf(0x1cd)](){const _0x570737=_0x274ccf;let _0x5cc387=!!(this[_0x570737(0x20a)]&&this['\x74\x65\x6e\x61\x6e\x74\x49\x64']),_0x544db2=!!this[_0x570737(0x1c1)];if(!_0x5cc387&&!_0x544db2)return;let _0x593c26={'\x74\x69\x6d\x65\x73\x74\x61\x6d\x70':Date['\x6e\x6f\x77']()};this[_0x570737(0x20a)]&&this[_0x570737(0x203)]&&(_0x593c26[_0x570737(0x20a)]=this['\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e'],_0x593c26[_0x570737(0x203)]=this[_0x570737(0x203)],_0x593c26['\x74\x65\x6e\x61\x6e\x74']=this['\x74\x65\x6e\x61\x6e\x74']??void 0x0),this[_0x570737(0x1c1)]&&(_0x593c26[_0x570737(0x1c1)]=this[_0x570737(0x1c1)]);try{writeFileSync(this[_0x570737(0x1ba)],JSON[_0x570737(0x1e7)](_0x593c26,null,0x2));}catch(_0x26e2a7){console[_0x570737(0x1c0)](_0x570737(0x1fc),_0x26e2a7);}}[_0x274ccf(0x1cc)](){const _0xbfb497=_0x274ccf;try{if(!existsSync(this[_0xbfb497(0x1ba)]))return;let _0x3cfed8=readFileSync(this[_0xbfb497(0x1ba)],'\x75\x74\x66\x2d\x38'),_0x1a556f=JSON[_0xbfb497(0x1b9)](_0x3cfed8);if(!i(_0x1a556f))return;let _0x3b4e57=h(_0x1a556f,_0xbfb497(0x1e3));if(typeof _0x3b4e57!=_0xbfb497(0x1f8))return;if(Date[_0xbfb497(0x1c6)]()-_0x3b4e57>V){let _0x56ed0e=a(_0x1a556f,_0xbfb497(0x1c1));_0x56ed0e&&(this['\x74\x68\x65\x6d\x65\x49\x64']=_0x56ed0e);return;}let _0x269fbb=a(_0x1a556f,_0xbfb497(0x20a)),_0x5b7c91=a(_0x1a556f,_0xbfb497(0x203)),_0x4196df=_0xbfb497(0x1f6)in _0x1a556f?_0x1a556f[_0xbfb497(0x1f6)]:null,_0x238616=a(_0x1a556f,_0xbfb497(0x1c1));this['\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e']=_0x269fbb??null,this['\x74\x65\x6e\x61\x6e\x74\x49\x64']=_0x5b7c91??null,this['\x74\x65\x6e\x61\x6e\x74']=_0x4196df??null,this[_0xbfb497(0x1c1)]=_0x238616??null;}catch(_0xb0649f){console[_0xbfb497(0x1c0)](_0xbfb497(0x1bb),_0xb0649f);}}},d=new k();d[_0x274ccf(0x1cc)]();function _0x5708(_0x284efc,_0x56f588){_0x284efc=_0x284efc-0x1b9;const _0x4d7a68=_0x4d7a();let _0x57080f=_0x4d7a68[_0x284efc];return _0x57080f;}function R(){const _0x816b88=_0x274ccf;return d[_0x816b88(0x1f1)]();}function E(){const _0x1bc83f=_0x274ccf;return d[_0x1bc83f(0x1c2)]();}function I(_0x4465aa){const _0x2d483d=_0x274ccf;d[_0x2d483d(0x1cb)](_0x4465aa),d['\x70\x65\x72\x73\x69\x73\x74\x54\x6f\x46\x69\x6c\x65']();}var W=_0x55b4fb=>i(_0x55b4fb)&&typeof _0x55b4fb[_0x274ccf(0x1f4)]==_0x274ccf(0x1f8),L=_0x5401a4=>{const _0x59e373=_0x274ccf;if(!i(_0x5401a4))return null;let _0xd2f7bb=_0x5401a4[_0x59e373(0x1ce)];return W(_0xd2f7bb)?_0xd2f7bb:null;},X=_0x1bcf01=>{const _0xd33ea8=_0x274ccf;let _0x59fcf5=L(_0x1bcf01);return _0x59fcf5?_0x59fcf5[_0xd33ea8(0x1f4)]:h(_0x1bcf01,'\x73\x74\x61\x74\x75\x73')??h(_0x1bcf01,_0xd33ea8(0x1eb));},U=_0x3c2cf7=>{let _0x198267=X(_0x3c2cf7);return _0x198267===0x191||_0x198267===0x193;},D=async(_0x4424a8,_0x52b2f1)=>{const _0x267d27=_0x274ccf;let _0x298a7c=L(_0x4424a8);if(!_0x298a7c)return a(_0x4424a8,'\x6d\x65\x73\x73\x61\x67\x65')??_0x52b2f1;if(_0x298a7c[_0x267d27(0x1f4)]===0x191||_0x298a7c[_0x267d27(0x1f4)]===0x193)return _0x267d27(0x1ee);let _0x35d0bb=typeof _0x298a7c[_0x267d27(0x1cf)]=='\x66\x75\x6e\x63\x74\x69\x6f\x6e'?_0x298a7c[_0x267d27(0x1cf)]():_0x298a7c;if(i(_0x35d0bb)&&typeof _0x35d0bb[_0x267d27(0x1ea)]==_0x267d27(0x1df))try{let _0x357ae7=await _0x35d0bb[_0x267d27(0x1ea)](),_0x43a976=a(_0x357ae7,_0x267d27(0x1fd));if(_0x43a976)return _0x43a976;}catch{}return _0x52b2f1;},w=class e extends Command{static ['\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e']=_0x274ccf(0x1dc);static [_0x274ccf(0x208)]={'\x74\x68\x65\x6d\x65\x50\x61\x74\x68':Args[_0x274ccf(0x1d0)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x1dd),'\x72\x65\x71\x75\x69\x72\x65\x64':![]})};static [_0x274ccf(0x204)]={'\x74\x68\x65\x6d\x65':Flags[_0x274ccf(0x1d0)]({'\x63\x68\x61\x72':'\x74','\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x1dd)}),'\x70\x61\x79\x6c\x6f\x61\x64\x2d\x75\x72\x6c':Flags[_0x274ccf(0x1d0)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x207),'\x64\x65\x66\x61\x75\x6c\x74':T()}),'\x74\x68\x65\x6d\x65\x2d\x69\x64':Flags[_0x274ccf(0x1d0)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x1bf)}),'\x74\x68\x65\x6d\x65\x2d\x6b\x65\x79':Flags[_0x274ccf(0x1d0)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x1f3)}),'\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64':Flags[_0x274ccf(0x1d0)]({'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x274ccf(0x202)})};async[_0x274ccf(0x1f7)](){const _0x4c31e9=_0x274ccf;let {args:_0xf46a20,flags:_0x10fad8}=await this[_0x4c31e9(0x1b9)](e),_0x3629f1=_0x10fad8[_0x4c31e9(0x200)]??_0xf46a20[_0x4c31e9(0x1ff)]??null,_0x1bec88;try{_0x1bec88=F(_0x3629f1);}catch(_0x56aa6a){this[_0x4c31e9(0x1d2)](_0x56aa6a instanceof Error?_0x56aa6a['\x6d\x65\x73\x73\x61\x67\x65']:_0x4c31e9(0x1e4));return;}let _0x2c496e=T(_0x10fad8[_0x4c31e9(0x1f2)]);if(_0x10fad8[_0x4c31e9(0x1d6)]){I(_0x10fad8['\x74\x68\x65\x6d\x65\x2d\x69\x64']),this[_0x4c31e9(0x1ec)](_0x4c31e9(0x1fb)+_0x10fad8[_0x4c31e9(0x1d6)]);return;}let _0x33b4fb=_0x10fad8[_0x4c31e9(0x1f0)]??basename(_0x1bec88),_0x4c5f9a=R(),_0x42ba01=_0x10fad8['\x74\x65\x6e\x61\x6e\x74\x2d\x69\x64']??E();if(!_0x4c5f9a||!_0x42ba01){this[_0x4c31e9(0x1d2)](_0x4c31e9(0x201));return;}try{let _0x22913f=await v({'\x70\x61\x79\x6c\x6f\x61\x64\x55\x72\x6c':_0x2c496e,'\x74\x65\x6e\x61\x6e\x74\x49\x64':_0x42ba01,'\x61\x75\x74\x68\x54\x6f\x6b\x65\x6e':_0x4c5f9a,'\x74\x68\x65\x6d\x65\x4b\x65\x79':_0x33b4fb});if(!_0x22913f){this[_0x4c31e9(0x1d2)](_0x4c31e9(0x1db)+_0x33b4fb+'\x27\x2e');return;}I(_0x22913f),this[_0x4c31e9(0x1ec)]('\u2705\x20\x54\x68\x65\x6d\x65\x20\x49\x44\x20\x73\x74\x6f\x72\x65\x64\x3a\x20'+_0x22913f),this[_0x4c31e9(0x1ec)](_0x4c31e9(0x1d9)+_0x33b4fb);}catch(_0x2b08ec){if(U(_0x2b08ec)){this[_0x4c31e9(0x1d2)](_0x4c31e9(0x1e5));return;}let _0x1e4bd3=await D(_0x2b08ec,_0x4c31e9(0x1d1));this['\x65\x72\x72\x6f\x72'](_0x1e4bd3);}}};export{w as default};
@@ -0,0 +1,3 @@
1
+ {
2
+ "cmsUrl": "https://beta.basker.net"
3
+ }
@@ -0,0 +1,126 @@
1
+ import { Hono } from 'hono';
2
+ import { CustomAttributeRelationResolverContract } from '@baskerhq/liquidjs';
3
+ import { User, Tenant, Theme } from '@baskerhq/ui/payload-types';
4
+ import { PayloadSDK } from '@payloadcms/sdk';
5
+ import { PayloadTypesShape, GeneratedTypes } from 'payload';
6
+
7
+ type SDKGeneratedTypes = PayloadTypesShape & {
8
+ auth: {
9
+ [slug: string]: {
10
+ forgotPassword: {
11
+ email: string;
12
+ };
13
+ login: {
14
+ email: string;
15
+ password: string;
16
+ };
17
+ registerFirstUser: {
18
+ email: string;
19
+ password: string;
20
+ };
21
+ unlock: {
22
+ email: string;
23
+ };
24
+ };
25
+ };
26
+ collections: GeneratedTypes["collections"];
27
+ collectionsJoins: GeneratedTypes["collectionsJoins"];
28
+ collectionsSelect: GeneratedTypes["collectionsSelect"];
29
+ db: GeneratedTypes["db"];
30
+ globals: GeneratedTypes["globals"];
31
+ globalsSelect: GeneratedTypes["globalsSelect"];
32
+ locale: GeneratedTypes["locale"];
33
+ };
34
+ type PayloadSDKTypes = SDKGeneratedTypes;
35
+
36
+ type PayloadClient = PayloadSDK<PayloadSDKTypes>;
37
+ type Variables = {
38
+ payload: PayloadClient;
39
+ user: User | null;
40
+ tenant: Tenant | null;
41
+ payload_url: string;
42
+ auth_token: string | null;
43
+ is_authenticated: boolean;
44
+ theme_path: string;
45
+ theme: Theme | null;
46
+ resource: unknown;
47
+ context: unknown;
48
+ template: string;
49
+ custom_attribute_relation_resolver: CustomAttributeRelationResolverContract | null;
50
+ };
51
+ type Env = {
52
+ Variables: Variables;
53
+ };
54
+
55
+ declare function getCachedAuthToken(): string | null;
56
+ declare function getCachedTenantId(): string | null;
57
+ declare function getCachedThemeId(): string | null;
58
+ declare function setCachedAuth(token: string, tenantId: string): void;
59
+ declare function setCachedThemeId(themeId: string): void;
60
+ declare function clearCachedThemeId(): void;
61
+ declare function clearCachedAuth(): void;
62
+
63
+ /**
64
+ * LocalStage v2 - Simplified local development server
65
+ *
66
+ * This version uses the frontstage factory with local adapters,
67
+ * significantly reducing code duplication.
68
+ *
69
+ * Usage:
70
+ * 1. Import this instead of the old app.ts
71
+ * 2. Call createLocalstageApp() with your options
72
+ * 3. The app uses frontstage for theme rendering with local adapters
73
+ */
74
+
75
+ type CreateLocalstageAppOptions = {
76
+ /**
77
+ * Base URL of the Payload CMS server
78
+ * @default "http://localhost:3000"
79
+ */
80
+ payloadUrl?: string;
81
+ /**
82
+ * Path to the local theme directory
83
+ */
84
+ themePath: string;
85
+ /**
86
+ * Enable livereload functionality
87
+ * @default true
88
+ */
89
+ enableLivereload?: boolean;
90
+ };
91
+ /**
92
+ * Create a LocalStage application that uses frontstage with local adapters
93
+ *
94
+ * This provides the same theme rendering as production frontstage,
95
+ * but with local filesystem access for themes and SDK access for Payload.
96
+ */
97
+ declare function createLocalstageApp(options: CreateLocalstageAppOptions): Hono<Env>;
98
+
99
+ type AuthSession = {
100
+ authToken?: string;
101
+ tenantId?: string;
102
+ tenant?: unknown;
103
+ themeId?: string;
104
+ timestamp: number;
105
+ };
106
+ declare class AuthManager {
107
+ private authToken;
108
+ private tenantId;
109
+ private tenant;
110
+ private themeId;
111
+ private readonly sessionFile;
112
+ constructor(sessionFile?: string);
113
+ getToken(): string | null;
114
+ getTenantId(): string | null;
115
+ getTenant(): unknown | null;
116
+ getThemeId(): string | null;
117
+ setAuth(token: string, tenantId: string, tenant?: unknown): void;
118
+ setThemeId(themeId: string): void;
119
+ clearThemeId(): void;
120
+ clear(): void;
121
+ persistToFile(): void;
122
+ loadFromFile(): void;
123
+ }
124
+ declare const authManager: AuthManager;
125
+
126
+ export { AuthManager, type AuthSession, type CreateLocalstageAppOptions, authManager, clearCachedAuth, clearCachedThemeId, createLocalstageApp, getCachedAuthToken, getCachedTenantId, getCachedThemeId, setCachedAuth, setCachedThemeId };