UNPKG

@typecad/typecad

Version:

🤖programmatically 💥create 🛰️hardware

1 lines 7.03 kB
function a8_0x3b7a(){const _0x1e3e65=['mti0nwXUzLjVDW','v3Diy0K','suDLEwK','Ee5ps1i','BMv0','nZmWEKDbr3DM','n094qvnYuW','C3vIC3rYAw5N','mZiYmJuZnLHkyLDZwq','DhjPBq','Dg9gAxHLza','mtyXmZDmtvrhtgu','nZq3mZqZtwvxweD2','mte0mZqZneH0EwLouG','mtK1nZq2ng5vEvPXra','C21YDvG','mtm5mJzbAw11B1u','BNvTyMvY','q29TCg9Uzw50CW','tgrwBe4','BgvUz3rO','x2DLDenVBxbVBG','mtiZnJe5mK95vLLdEG','zw50CW'];a8_0x3b7a=function(){return _0x1e3e65;};return a8_0x3b7a();}(function(_0x21521f,_0x443f39){const a8_0x4a4036={_0x3c871c:0x28a,_0x198322:0x28a,_0x330759:0x28d,_0x10d92b:0x28b,_0x268454:0x280,_0x35d501:0x28c,_0x2fdb80:0x294,_0x1c303e:0x292,_0xe39edf:0x28e,_0x4be843:0x29c,_0x356d83:0x2a8,_0xeb4407:0x29e,_0x2494c5:0x27e,_0x349d29:0x289},a8_0x5c3259={_0x3787dd:0xa1},_0xd691b1=_0x21521f();function _0x38ea73(_0x821a81,_0x4f9a34){return a8_0x5b1a(_0x4f9a34-a8_0x5c3259._0x3787dd,_0x821a81);}while(!![]){try{const _0x1aa2d0=parseInt(_0x38ea73(a8_0x4a4036._0x3c871c,a8_0x4a4036._0x198322))/(0xa5b*0x1+-0xb91+0x137)+-parseInt(_0x38ea73(a8_0x4a4036._0x330759,a8_0x4a4036._0x10d92b))/(-0x5ff*0x4+0x1c9f+-0x4a1)+parseInt(_0x38ea73(a8_0x4a4036._0x268454,a8_0x4a4036._0x35d501))/(-0x3*0x58f+0x3*-0x45f+-0x9ef*-0x3)+-parseInt(_0x38ea73(a8_0x4a4036._0x3c871c,a8_0x4a4036._0x2fdb80))/(-0x298*0xf+-0x6d*0x2f+-0x6b*-0x8d)+parseInt(_0x38ea73(0x29a,0x296))/(0x12d5+-0x1e7c+0xf9*0xc)*(-parseInt(_0x38ea73(a8_0x4a4036._0x1c303e,a8_0x4a4036._0xe39edf))/(-0x18c8+-0x479*-0x5+0x271))+-parseInt(_0x38ea73(0x298,a8_0x4a4036._0x4be843))/(0x58*0x4e+0x1*0x1b47+0x14*-0x2b4)*(-parseInt(_0x38ea73(a8_0x4a4036._0x356d83,a8_0x4a4036._0xeb4407))/(0xe92+-0xa7*-0xd+0x1*-0x1705))+-parseInt(_0x38ea73(a8_0x4a4036._0x2494c5,a8_0x4a4036._0x349d29))/(0x1040+-0x41*-0x73+-0x1*0x2d6a)*(-parseInt(_0x38ea73(0x29c,0x29b))/(-0x1c80+0x1*-0x5b6+-0x89*-0x40));if(_0x1aa2d0===_0x443f39)break;else _0xd691b1['push'](_0xd691b1['shift']());}catch(_0x29c63a){_0xd691b1['push'](_0xd691b1['shift']());}}}(a8_0x3b7a,0x2d7*0x4bd+-0xbca4d+0x5946d));function a8_0x5b1a(_0x14804f,_0x44750b){const _0x6e83d4=a8_0x3b7a();return a8_0x5b1a=function(_0x564a0b,_0x15a8fe){_0x564a0b=_0x564a0b-(0x1c8f*0x1+0x103e+-0x2ae7);let _0x482adf=_0x6e83d4[_0x564a0b];if(a8_0x5b1a['waZnpa']===undefined){var _0x29ad50=function(_0x4930fd){const _0x214ee0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16b40c='',_0x1f43b1='';for(let _0x268187=0xe*0xb1+-0x41b+0x1*-0x593,_0x5b1786,_0x3cb6b6,_0xd40964=0xe78+-0x1369*-0x2+0x2*-0x1aa5;_0x3cb6b6=_0x4930fd['charAt'](_0xd40964++);~_0x3cb6b6&&(_0x5b1786=_0x268187%(-0x279+0x3a*0x1c+0x8d*-0x7)?_0x5b1786*(0xef1+-0x1c7b+0xdca)+_0x3cb6b6:_0x3cb6b6,_0x268187++%(-0x3*0x49c+-0x31d*0x5+0x1d69))?_0x16b40c+=String['fromCharCode'](0x737+-0x15ad+0xf75*0x1&_0x5b1786>>(-(-0x2505+-0x73+0x257a)*_0x268187&-0x19d5+0x1*-0x1c58+0x3633)):0xc1d*-0x3+0x2a*0xd3+-0x9*-0x31){_0x3cb6b6=_0x214ee0['indexOf'](_0x3cb6b6);}for(let _0xf487b1=0x493*0x1+0xfa7*-0x1+-0x2c5*-0x4,_0x26b097=_0x16b40c['length'];_0xf487b1<_0x26b097;_0xf487b1++){_0x1f43b1+='%'+('00'+_0x16b40c['charCodeAt'](_0xf487b1)['toString'](0x56a+0x977+-0xed1))['slice'](-(0x10c+0x116d+-0x1*0x1277));}return decodeURIComponent(_0x1f43b1);};a8_0x5b1a['JiTPnw']=_0x29ad50,_0x14804f=arguments,a8_0x5b1a['waZnpa']=!![];}const _0x5c26c6=_0x6e83d4[-0x10*-0xb3+-0x23ac+0x187c],_0x76b564=_0x564a0b+_0x5c26c6,_0x58c2b=_0x14804f[_0x76b564];return!_0x58c2b?(_0x482adf=a8_0x5b1a['JiTPnw'](_0x482adf),_0x14804f[_0x76b564]=_0x482adf):_0x482adf=_0x58c2b,_0x482adf;},a8_0x5b1a(_0x14804f,_0x44750b);}const normalizeNetName=_0x287420=>{const a8_0x12ab9c={_0x270404:0x53b,_0x87472f:0x541,_0x55d8df:0x536,_0x44e06f:0x53f,_0x50122c:0x54b},a8_0x297da9={_0x1a7374:0x343},_0x3cec33={};_0x3cec33[_0x484d0c(a8_0x12ab9c._0x270404,a8_0x12ab9c._0x87472f)]=function(_0x343841,_0x45e367){return _0x343841!==_0x45e367;};function _0x484d0c(_0x114634,_0x2daf15){return a8_0x5b1a(_0x114634-a8_0x297da9._0x1a7374,_0x2daf15);}const _0x5af48c=_0x3cec33;if(_0x5af48c[_0x484d0c(0x53b,a8_0x12ab9c._0x55d8df)](typeof _0x287420,'string'))return undefined;let _0x2e213a=_0x287420[_0x484d0c(0x529,0x52e)]()['toLowerCas'+'e']();if(!_0x2e213a)return undefined;return _0x2e213a['startsWith']('/')&&(_0x2e213a=_0x2e213a[_0x484d0c(a8_0x12ab9c._0x44e06f,a8_0x12ab9c._0x50122c)](0x10f7+-0x18f3+0x7fd)),_0x2e213a;},pushComponents=(_0x2e8cce,_0x80c91d)=>{Array['isArray'](_0x2e8cce)&&_0x80c91d['push'](..._0x2e8cce);};export function collectManualViaFreeLocations(_0x2cfcf5,_0x3891b8){const a8_0x34bc86={_0x45e687:0x449,_0x5e4bf8:0x44d,_0x2e0ea1:0x44f,_0x56ae64:0x44b,_0x25890d:0x44a,_0x52f0ec:0x44e,_0xf103e0:0x451,_0x73e762:0x455,_0xdc94d5:0x44c,_0x19a455:0x449,_0x390165:0x454,_0x4d301b:0x44f,_0x37e3a2:0x442,_0x10e4d3:0x442},a8_0x476c22={_0x2e1733:0x25b},_0x3f8cb6={'pSOFX':function(_0x832e19,_0x5d4dcb,_0x28054f){return _0x832e19(_0x5d4dcb,_0x28054f);},'GqzcA':function(_0x2afbbc,_0x40f3bf,_0x56a959){return _0x2afbbc(_0x40f3bf,_0x56a959);},'WwHcI':function(_0x16fe65,_0x573257){return _0x16fe65===_0x573257;},'LdVlN':function(_0xe416e5,_0x518ab6){return _0xe416e5!==_0x518ab6;},'smruX':function(_0x2eec39,_0x5c84b8){return _0x2eec39!==_0x5c84b8;},'IGeyi':_0x2e748e(a8_0x34bc86._0x45e687,0x442)},_0x32f512=normalizeNetName(_0x3891b8);if(!_0x32f512)return[];const _0x2848d9=[];pushComponents(_0x2cfcf5?.[_0x2e748e(a8_0x34bc86._0x5e4bf8,0x448)+_0x2e748e(a8_0x34bc86._0x2e0ea1,a8_0x34bc86._0x56ae64)]?.(),_0x2848d9);const _0x246edb=_0x2cfcf5;pushComponents(_0x246edb?_0x246edb['#component'+'s']:undefined,_0x2848d9),_0x3f8cb6['pSOFX'](pushComponents,_0x2cfcf5?.['_getStaged'+_0x2e748e(a8_0x34bc86._0x25890d,a8_0x34bc86._0x52f0ec)]?.(),_0x2848d9),_0x3f8cb6['GqzcA'](pushComponents,_0x246edb?_0x246edb['#stagedCom'+'ponents']:undefined,_0x2848d9);if(_0x3f8cb6[_0x2e748e(a8_0x34bc86._0xf103e0,a8_0x34bc86._0x73e762)](_0x2848d9[_0x2e748e(a8_0x34bc86._0xdc94d5,a8_0x34bc86._0x56ae64)],0x14*0xc5+-0x70d+-0x857))return[];function _0x2e748e(_0x33a5e2,_0x2cbace){return a8_0x5b1a(_0x33a5e2-a8_0x476c22._0x2e1733,_0x2cbace);}const _0xc73bd2=new Set(),_0x1e4c56=[];for(const _0x1543db of _0x2848d9){if(!_0x1543db||_0x3f8cb6[_0x2e748e(a8_0x34bc86._0x56ae64,0x449)](_0x1543db['via'],!![]))continue;const _0x5e8b48=_0x1543db['viaData'],_0x344284=_0x5e8b48?.['at'];if(!_0x344284||_0x3f8cb6[_0x2e748e(0x447,0x44f)](typeof _0x344284['x'],_0x2e748e(a8_0x34bc86._0x45e687,a8_0x34bc86._0x25890d))||_0x3f8cb6[_0x2e748e(0x44b,0x446)](typeof _0x344284['y'],_0x3f8cb6[_0x2e748e(0x452,a8_0x34bc86._0x19a455)]))continue;const _0x15d544=normalizeNetName(_0x5e8b48?.[_0x2e748e(a8_0x34bc86._0x390165,a8_0x34bc86._0x4d301b)]);if(_0x3f8cb6[_0x2e748e(a8_0x34bc86._0x56ae64,0x43f)](_0x15d544,_0x32f512))continue;const _0x333b86=_0x344284['x'][_0x2e748e(a8_0x34bc86._0x37e3a2,0x43b)](-0x761+0x33*-0xb3+0x16*0x1f5)+':'+_0x344284['y'][_0x2e748e(a8_0x34bc86._0x10e4d3,0x44c)](-0x2*-0x607+-0x17*0x3d+-0x68f);if(_0xc73bd2['has'](_0x333b86))continue;_0xc73bd2['add'](_0x333b86);const _0x2332b6={};_0x2332b6['x']=_0x344284['x'],_0x2332b6['y']=_0x344284['y'],_0x1e4c56['push'](_0x2332b6);}return _0x1e4c56;}