Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

const _0xbdb8b6=_0x5310;(function(_0x30350,_0x45c67f){const _0x2b8d64=_0x5310,_0x3da108=_0..

Decoded Output download

<?  const _0xbdb8b6=_0x5310;(function(_0x30350,_0x45c67f){const _0x2b8d64=_0x5310,_0x3da108=_0x30350();while(!![]){try{const _0xc9cd25=parseInt(_0x2b8d64(0x256))/0x1+parseInt(_0x2b8d64(0x2fc))/0x2*(-parseInt(_0x2b8d64(0x31c))/0x3)+-parseInt(_0x2b8d64(0x2a8))/0x4+-parseInt(_0x2b8d64(0x2df))/0x5*(parseInt(_0x2b8d64(0x23a))/0x6)+-parseInt(_0x2b8d64(0x31b))/0x7*(-parseInt(_0x2b8d64(0x282))/0x8)+-parseInt(_0x2b8d64(0x26e))/0x9*(-parseInt(_0x2b8d64(0x28f))/0xa)+parseInt(_0x2b8d64(0x318))/0xb*(-parseInt(_0x2b8d64(0x287))/0xc);if(_0xc9cd25===_0x45c67f)break;else _0x3da108['push'](_0x3da108['shift']());}catch(_0x711b9b){_0x3da108['push'](_0x3da108['shift']());}}}(_0x5ca4,0xa701e));var firstSheet=SpreadsheetApp[_0xbdb8b6(0x2d0)]()[_0xbdb8b6(0x2ef)]()[0x0],sheet=SpreadsheetApp[_0xbdb8b6(0x2d0)]()[_0xbdb8b6(0x308)]();const ss=SpreadsheetApp[_0xbdb8b6(0x2d0)](),accessTokenSheet=ss[_0xbdb8b6(0x23c)](_0xbdb8b6(0x220));var accessTokenCell=accessTokenSheet['getRange']('H1'),accNameCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('D9'),userIdCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('C8'),userMailCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('C7'),userRegDateCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('E9'),userAvatarCell=accessTokenSheet['getRange']('C9'),tokenCell=accessTokenSheet['getRange']('G3'),openAITokenCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G9'),backupCell=accessTokenSheet['getRange']('G1'),lastVerificationCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G2'),ecomStatusCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G8'),gptTokenCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G9'),userTier=_0xbdb8b6(0x2ba),pyramidImgs={'locked':_0xbdb8b6(0x243),'empty':_0xbdb8b6(0x27a),0x1:_0xbdb8b6(0x30e),0x2:_0xbdb8b6(0x2a3),0x3:_0xbdb8b6(0x2a7)};function OpenAIToken(){const _0xd994c0=_0xbdb8b6;var _0x18a56a=openAITokenCell['getValue']();return _0x18a56a==''||_0x18a56a==null||_0x18a56a==_0xd994c0(0x2a9)||_0x18a56a==_0xd994c0(0x26b)||_0x18a56a[_0xd994c0(0x23b)]('Cole')?![]:!![];}function validateUserEmail(){const _0x59a105=_0xbdb8b6,_0x1120c2=ss[_0x59a105(0x23c)](_0x59a105(0x220));var _0x463b9d=_0x1120c2[_0x59a105(0x1f5)]('G7'),_0x42723e=_0x463b9d[_0x59a105(0x2c4)]();_0x42723e=_0x42723e==''?_0x59a105(0x1fd):_0x42723e;var _0x2f56fd=_0x59a105(0x306),_0x46e7e2={'Content-Type':_0x59a105(0x207)},_0x4129d5={'email':''+_0x42723e[_0x59a105(0x224)]()[_0x59a105(0x300)]()},_0x3ca58c={'method':_0x59a105(0x269),'headers':_0x46e7e2,'payload':_0x4129d5,'followRedirects':!![],'muteHttpExceptions':!![]};try{var _0x31d865=UrlFetchApp[_0x59a105(0x1f8)](_0x2f56fd,_0x3ca58c);if(_0x31d865!=null&&_0x31d865!=''&&_0x31d865!='null'&&_0x31d865!='undefined'&&_0x31d865!=_0x59a105(0x22f)){var _0x2bda4e=_0x31d865;return _0x2bda4e!=null&&_0x2bda4e!=''&&_0x2bda4e!=_0x59a105(0x2a9)&&_0x2bda4e!='undefined'&&_0x2bda4e!=_0x59a105(0x22f)?!![]:![];}else return Logger['log'](_0x59a105(0x2c3)+_0x31d865['getResponseCode']()),![];}catch(_0x3471b0){return Logger[_0x59a105(0x21b)]('Erro: '+_0x3471b0[_0x59a105(0x294)]()),![];}}function AccSync(){const _0x306155=_0xbdb8b6,_0x29e9a8=_0x306155(0x2a2),_0x42c80f='
  <html>

<head>
  <style>
    .connect-btn {
      display: inline-block;
      padding: 14px 31px;
      font-size: 16px;
      font-family: sans-serif;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      outline: none;
      color: black;
      font-weight: 200;
      background-color: #ffcd0c;
      border: none;
      border-radius: 11px;
      box-shadow: 0 2px #777;
    }

    .connect-btn:hover {
      background-color: #a4a4a4;
      font-weight: 500;
    }

    .connect-btn:active {
      background-color: #3e8e41;
      color: white;
      box-shadow: 0 2px #666;
      transform: translateY(4px);
    }
  </style>
</head>

<body style="
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
    ">
    <div style="width: 111px; margin-bottom: 10px;">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920.12 233.88"><path d="M337.94,110.51C337.94,49.63,262.29,0,169,0S0,49.63,0,110.51c0,1.58,0,5.92,0,6.48,0,64.59,66.12,116.89,169,116.89,103.47,0,169-52.29,169-116.89Z" fill="#2d3277"/><path d="M331.47,110.46c0,57.39-72.74,103.92-162.47,103.92S6.54,167.85,6.54,110.46,79.28,6.52,169,6.52,331.47,53.06,331.47,110.46" fill="#f7d032"/><path d="M115.06,77.67c-.08.16-1.7,1.84-.66,3.19,2.57,3.27,10.49,5.15,18.5,3.35,4.76-1.07,10.88-5.93,16.79-10.62,6.42-5.1,12.79-10.2,19.18-12.24,6.78-2.16,11.12-1.23,14-.36,3.15.94,6.85,3,12.74,7.44,11.13,8.35,55.83,47.37,63.55,54.12a384.82,384.82,0,0,1,71.43-23c-3.27-20-15.44-38.35-33.93-53.35-25.75,10.82-57.22,16.46-88,1.43-.16-.06-16.81-8-33.24-7.56-24.42.57-35,11.14-46.18,22.32Z" fill="#fff"/><path d="M257.33,126.79c-.52-.47-52.55-46-64.35-54.86-6.81-5.12-10.61-6.42-14.6-6.92a19.83,19.83,0,0,0-6.94.65C166,67.16,158.78,72,152.42,77c-6.59,5.25-12.81,10.2-18.58,11.48-7.36,1.66-16.36-.29-20.46-3.06a9.13,9.13,0,0,1-3.4-3.73c-1.51-3.52,1.28-6.33,1.74-6.8l14.36-15.53c1.67-1.67,3.35-3.33,5.07-5a91.28,91.28,0,0,0-13.08,3c-5.2,1.46-10.21,2.85-15.27,2.85a146.13,146.13,0,0,1-15.59-2.44,232.68,232.68,0,0,1-41.43-15C25.36,58,11.71,77,7.77,97.9c2.93.78,7.66,2.18,9.64,2.62C63.6,110.79,78,121.37,80.61,123.58a15.28,15.28,0,0,1,24,1.41,17.39,17.39,0,0,1,11-3.87,20.62,20.62,0,0,1,6.6,1.15,15.25,15.25,0,0,1,9.3,8.41,15.17,15.17,0,0,1,6.43-1.37,19.32,19.32,0,0,1,7.68,1.7c8.52,3.65,9.84,12,9.07,18.32a15.84,15.84,0,0,1,1.84-.1,18.29,18.29,0,0,1,16.12,27c2.74,1.54,9.75,5,15.9,4.27,4.91-.63,6.78-2.31,7.45-3.25.45-.66.94-1.4.49-2l-13-14.48s-2.14-2-1.43-2.81,2.05.35,3,1.13c6.64,5.54,14.74,13.9,14.74,13.9s.68,1.15,3.67,1.69c2.57.47,7.13.19,10.3-2.4A16.57,16.57,0,0,0,216,170a.69.69,0,0,1-.14.12c3.32-4.27-.38-8.58-.38-8.58l-15.21-17.09s-2.18-2-1.44-2.82,2.07.36,3,1.15c4.83,4,11.63,10.86,18.16,17.25,1.27.93,7,4.48,14.6-.51,4.61-3,5.53-6.73,5.4-9.54a10.88,10.88,0,0,0-3.21-6.34L216,122.71s-2.2-1.87-1.42-2.82c.64-.8,2.06.35,3,1.13,6.63,5.54,24.55,22,24.55,22,.25.17,6.45,4.58,14.11-.29a9.4,9.4,0,0,0,4.63-7.45,11,11,0,0,0-3.49-8.47" fill="#fff"/><path d="M156.5,153.28c-3.22,0-6.74,1.88-7.2,1.6-.27-.17.19-1.46.5-2.21s4.55-13.51-5.8-17.95c-7.91-3.4-12.76.42-14.43,2.16-.42.45-.62.41-.67-.17-.16-2.3-1.18-8.52-8-10.6-9.75-3-16,3.82-17.63,6.28A11.31,11.31,0,1,0,99.88,142c.06.07.09.17.06.39-.48,2.8-1.35,13,9.31,17.14,4.28,1.65,7.92.43,10.93-1.7.9-.63,1-.36.92.49-.39,2.62.1,8.22,8,11.42,6,2.43,9.53-.06,11.84-2.21,1-.92,1.29-.77,1.35.66a14.26,14.26,0,1,0,14.24-14.91" fill="#fff"/><path d="M156.5,180.78a13.15,13.15,0,0,1-13.21-12.63c0-.61-.08-2.22-1.44-2.22a2.52,2.52,0,0,0-1.61.84,9.29,9.29,0,0,1-6.49,2.94,11.38,11.38,0,0,1-4.28-.93c-7.54-3.05-7.64-8.23-7.33-10.31a1.9,1.9,0,0,0-.29-1.59l-.45-.41h-.48a2.28,2.28,0,0,0-1.31.53,11,11,0,0,1-6.4,2.28,9.74,9.74,0,0,1-3.57-.71c-9.93-3.86-9.15-13.23-8.67-16a1.36,1.36,0,0,0-.42-1.31l-.71-.58-.65.63a10.32,10.32,0,1,1,3-8.73l.36,2.77,1.52-2.35c.17-.27,4.34-6.57,12-6.56a15.07,15.07,0,0,1,4.47.7c6.11,1.86,7.14,7.4,7.3,9.71.12,1.34,1.07,1.4,1.26,1.4a1.68,1.68,0,0,0,1.19-.62,10.41,10.41,0,0,1,7.59-3.2,14.57,14.57,0,0,1,5.68,1.28c9.71,4.17,5.31,16.5,5.26,16.63-.84,2-.87,2.94-.08,3.46l.37.19h.29a7.37,7.37,0,0,0,1.88-.49,16.35,16.35,0,0,1,5.17-1.14h0a13.24,13.24,0,1,1,0,26.47m102.85-59.44c-16-14-53.08-46.2-63.11-53.72C190.5,63.3,186.6,61,183.16,60a21.74,21.74,0,0,0-6.41-1,27.07,27.07,0,0,0-8.17,1.36c-6.48,2.06-12.93,7.19-19.18,12.15l-.32.26c-5.82,4.63-11.84,9.42-16.39,10.44a28.16,28.16,0,0,1-6.07.67c-5.09,0-9.68-1.48-11.4-3.67-.28-.36-.1-1,.57-1.79l.08-.11L130,63.12c11-11,21.47-21.47,45.48-22l1.2,0c14.94,0,29.89,6.7,31.56,7.48a98,98,0,0,0,43,10.32c15.16,0,30.8-3.75,47.24-11.32q-2.76-2.31-5.72-4.52c-14.43,6.26-28.2,9.42-41.48,9.41A91.42,91.42,0,0,1,211,42.77c-.69-.33-17.2-8.11-34.36-8.12l-1.35,0c-20.17.47-31.54,7.63-39.18,13.91-7.43.18-13.84,2-19.55,3.56-5.08,1.42-9.47,2.65-13.77,2.64-1.76,0-4.94-.16-5.22-.17-4.93-.15-29.78-6.24-49.53-13.72q-3,2.14-5.84,4.41C62.87,53.76,88,60.3,95.91,60.81c2.2.15,4.56.4,6.9.41,5.25,0,10.48-1.47,15.54-2.9,3-.84,6.3-1.75,9.78-2.41-.93.9-1.86,1.83-2.79,2.75L111,74.17c-1.12,1.13-3.57,4.17-2,7.91a10,10,0,0,0,3.77,4.18c3.42,2.3,9.53,3.86,15.21,3.86a27.3,27.3,0,0,0,6.07-.64c6-1.34,12.3-6.36,19-11.66,5.32-4.23,12.87-9.59,18.66-11.17a21.26,21.26,0,0,1,5.19-.71c.48,0,.93,0,1.34.07,3.83.49,7.52,1.79,14.12,6.74,11.76,8.84,63.79,54.36,64.31,54.81a9.94,9.94,0,0,1,3.12,7.65,8.34,8.34,0,0,1-4.16,6.65,12.69,12.69,0,0,1-6.83,2.12,11.23,11.23,0,0,1-6-1.75c-.19-.15-18-16.5-24.58-22a5.47,5.47,0,0,0-3.08-1.65,1.69,1.69,0,0,0-1.36.64c-1,1.28.12,3,1.48,4.19l20.83,20.94A9.9,9.9,0,0,1,239,150c.17,3.47-1.49,6.37-4.94,8.64a13.41,13.41,0,0,1-7.39,2.44,10.78,10.78,0,0,1-5.93-1.8l-3-2.95c-5.46-5.37-11.1-10.92-15.22-14.37a5.62,5.62,0,0,0-3.11-1.61,1.84,1.84,0,0,0-1.32.55c-.46.53-.79,1.47.38,3a10.05,10.05,0,0,0,1,1.17l15.2,17.08c.13.15,3.13,3.71.35,7.28l-.54.68a15,15,0,0,1-1.42,1.36,12.17,12.17,0,0,1-7.43,2.35,11.68,11.68,0,0,1-2-.17,5.07,5.07,0,0,1-3-1.27l-.18-.18c-.83-.86-8.49-8.69-14.83-14a5.25,5.25,0,0,0-3-1.57,1.78,1.78,0,0,0-1.36.61c-1.25,1.37.63,3.43,1.43,4.17l13,14.3a2.78,2.78,0,0,1-.5.87c-.46.65-2,2.22-6.73,2.81a14.06,14.06,0,0,1-1.72.1c-4.85,0-10-2.35-12.69-3.76a19.16,19.16,0,0,0,1.84-8.22,19.36,19.36,0,0,0-19.33-19.36l-.69,0c.34-4.87-.35-14.1-9.82-18.15a20.28,20.28,0,0,0-8.08-1.79,16.4,16.4,0,0,0-5.92,1.08,16.23,16.23,0,0,0-9.47-8,21.33,21.33,0,0,0-6.93-1.22,18.38,18.38,0,0,0-10.82,3.45,16.3,16.3,0,0,0-24.26-1.36c-4-3.08-20.05-13.25-62.88-23-2.08-.48-6.84-1.84-9.75-2.7a67.12,67.12,0,0,0-1.1,7s7.9,1.9,9.46,2.25c43.76,9.72,58.22,19.82,60.66,21.74a16.4,16.4,0,0,0,15.14,22.7,16.74,16.74,0,0,0,3-.27,19.14,19.14,0,0,0,12.37,14.28,16.2,16.2,0,0,0,5.85,1.13,14.83,14.83,0,0,0,3.73-.46c1.23,3.12,4,7,10.18,9.52a17.26,17.26,0,0,0,6.43,1.33,14.65,14.65,0,0,0,5-.89A19.32,19.32,0,0,0,170.36,181c3.12,1.73,9.71,4.87,16.37,4.88a21.81,21.81,0,0,0,2.47-.16c6.62-.84,9.7-3.42,11.11-5.43a7.42,7.42,0,0,0,.68-1.12,18.59,18.59,0,0,0,5.25.82,17.67,17.67,0,0,0,10.58-3.78c3.43-2.48,5.88-6,6.24-9.07a.66.66,0,0,0,0-.14,17.68,17.68,0,0,0,3.55.37,19.65,19.65,0,0,0,10.86-3.45c6.74-4.42,7.92-10.19,7.8-14a17.37,17.37,0,0,0,3.59.38,18.82,18.82,0,0,0,10.19-3.13,14.89,14.89,0,0,0,7.07-11.52,15.5,15.5,0,0,0-2.25-9.3c11.3-4.87,37.11-14.29,67.51-21.14-.19-2.35-.53-4.68-.95-7a386.49,386.49,0,0,0-71.09,23.1" fill="#2d3277"/><path d="M896.08,84c-2.94,3.89-7.13,5.84-12.61,5.84s-9.69-2-12.64-5.84-4.42-9.43-4.42-16.6,1.47-12.68,4.42-16.55S878,45,883.47,45s9.67,1.94,12.61,5.81,4.4,9.39,4.4,16.55S899,80.06,896.08,84m15-43.43Q902,29.18,883.52,29.18T856,40.52A41.74,41.74,0,0,0,847,67.35q0,15.77,9.07,27t27.5,11.18q18.48,0,27.53-11.18t9.07-27a41.68,41.68,0,0,0-9.07-26.83" fill="#2d3277"/><path d="M747.12,75.11q-.2,9.44-5.38,13a19.6,19.6,0,0,1-11.33,3.56,10.3,10.3,0,0,1-6.6-2.15c-1.8-1.42-2.7-3.74-2.7-6.94a8.57,8.57,0,0,1,4.44-8A28.26,28.26,0,0,1,734.17,72l4.28-.79a31.83,31.83,0,0,0,5-1.3,18.64,18.64,0,0,0,3.64-1.8Zm9.52-40.92a46,46,0,0,0-21-4.67q-18.21,0-25.68,9.49-4.7,6.06-5.3,15.48h18.12a13.52,13.52,0,0,1,2.68-6.59q2.79-3.28,9.54-3.29c4,0,7,.55,9.12,1.68s3.1,3.15,3.1,6.09c0,2.42-1.34,4.19-4,5.34a29.32,29.32,0,0,1-7.51,1.64l-6.42.8c-7.3.91-12.85,2.47-16.6,4.61q-10.27,5.94-10.29,19.17,0,10.22,6.4,15.77c4.25,3.72,9.66,5.27,16.2,5.58,41,1.83,40.52-21.59,40.9-26.47v-27q0-13-9.19-17.67" fill="#2d3277"/><path d="M663.19,45.59q7,0,10.34,4.33a16,16,0,0,1,2.84,7.23H696.6q-1.67-15.3-10.71-21.35t-23.25-6q-16.71,0-26.2,10.24t-9.5,28.67q0,16.32,8.6,26.57t26.81,10.25q18.23,0,27.53-12.29a30.32,30.32,0,0,0,6.5-16.15H676.24a17,17,0,0,1-3.55,9.19c-1.94,2.36-5.21,3.55-9.84,3.55q-9.79,0-13.33-8.94c-1.29-3.18-1.95-7.4-1.95-12.63,0-5.5.66-9.91,1.95-13.24,2.45-6.26,7-9.39,13.67-9.39" fill="#2d3277"/><path d="M621.53,29.76c-41.53,0-39.07,36.77-39.07,36.77v37.34H601.3v-35q0-8.6,2.15-12.75c2.6-4.9,7.64-7.36,15.19-7.36.56,0,1.31,0,2.22.08s2,.12,3.16.26V29.9l-1.6-.1a7.74,7.74,0,0,0-.89,0" fill="#2d3277"/><path d="M527,49.27q4-4.08,11.17-4.09A16.38,16.38,0,0,1,549.25,49c3,2.57,4.64,6.35,5,11.31H522a19.5,19.5,0,0,1,5-11.08M552.3,84.36a13.5,13.5,0,0,1-2.58,2.85c-2.66,2.19-6.28,2.86-10.53,2.86-4,0-7.18-.61-10-2.41-4.69-2.89-7.34-7.78-7.63-15h52.15A94.41,94.41,0,0,0,573,58.5a35.24,35.24,0,0,0-5.69-14.81A29.31,29.31,0,0,0,555,33.1a40.82,40.82,0,0,0-16.83-3.35c-10.5,0-19,3.31-25.59,9.92s-9.88,16.13-9.88,28.53q0,19.86,10.93,28.66a39,39,0,0,0,25.21,8.81q17.31,0,26.94-10.44c3.46-3.67,5.62-7.29,6.54-10.87Z" fill="#2d3277"/><path d="M495.1,103.87H477.89V60.52c0-4-1.31-13.37-12.66-13.37-7.57,0-13.05,5.45-13.05,13.37v43.35H434.94V60.52c0-4-1.16-13.37-12.52-13.37-7.7,0-13.05,5.45-13.05,13.37v43.35H392.15V60.93c0-17.89,11.88-31.42,30.27-31.42,9.14,0,16.58,3.84,21.42,10a27.4,27.4,0,0,1,21.39-10c18.79,0,29.87,13,29.87,31.42Z" fill="#2d3277"/><path d="M818.74,84.1C816,88.05,812,90,806.67,90s-9.26-2-11.86-6-3.91-9.74-3.91-16.35q0-9.19,3.84-15.4t12-6.21a14.38,14.38,0,0,1,9.46,3.41c4.42,3.77,6.63,10.53,6.63,19.28q0,9.39-4.14,15.3m22.61-77s-19-2-19,13.22l0,20.19a22.86,22.86,0,0,0-8.2-7.92,23.24,23.24,0,0,0-11.57-2.85q-14.12,0-22.55,10.5c-5.63,7-8.43,17.12-8.43,29.32q0,15.9,8.56,26.05c5.72,6.76,16.93,9.73,26.87,9.73,34.7,0,34.3-29.75,34.3-29.75Z" fill="#2d3277"/><path d="M730.4,159.15q3.93-4.05,11.08-4.05a16.21,16.21,0,0,1,11,3.82q4.44,3.83,4.95,11.2h-32a19.35,19.35,0,0,1,4.95-11m25.1,34.78a13.56,13.56,0,0,1-2.56,2.83c-2.64,2.17-6.36,3-10.57,3-4,0-7.12-.6-9.94-2.39q-7-4.29-7.43-15h51.69a93,93,0,0,0-.63-14.08,35,35,0,0,0-5.64-14.67,29.06,29.06,0,0,0-12.27-10.5,40.47,40.47,0,0,0-16.67-3.32c-10.42,0-18.86,3.28-25.4,9.83s-9.77,16-9.77,28.27q0,19.69,10.84,28.42a38.69,38.69,0,0,0,25,8.74q17.15,0,26.68-10.36c3.43-3.63,5.58-7.23,6.5-10.77Z" fill="#2d3277"/><path d="M702.72,139.87c-.25,0-.55,0-.89,0-41.54,0-39.08,36.76-39.08,36.76v36.77h18.86V178.92c0-5.74.71-10,2.16-12.75,2.57-4.9,7.64-7.36,15.17-7.36.58,0,1.31,0,2.22.08s2,.12,3.16.25V140c-.83-.05-1.37-.07-1.6-.1" fill="#2d3277"/><path d="M535.56,130.3v82.94h17.68V116.77s-17.68-.71-17.68,13.53" fill="#2d3277"/><path d="M586.62,135.39H567.69V116.64h18.93Z" fill="#2d3277"/><path d="M567.69,213.37h19V141.78h-19Z" fill="#2d3277"/><path d="M637.37,213.22H618.3l-25-71.45h19.9L627.42,192,640,148.21q2.18-6.45,8.6-6.44h14Z" fill="#2d3277"/></svg>
    </div>
  <a href="'+_0x29e9a8+_0x306155(0x2f8),_0x2b59fa=HtmlService['createHtmlOutput'](_0x42c80f)['setWidth'](0x226)[_0x306155(0x288)](0x87);SpreadsheetApp[_0x306155(0x251)]()[_0x306155(0x1ee)](_0x2b59fa,_0x306155(0x2b7));}async function verifyToken(){const _0x221dee=_0xbdb8b6,_0x4352d8=tokenCell[_0x221dee(0x2c4)]();if(_0x4352d8){if(!backupCell[_0x221dee(0x2c4)]()){backupCell[_0x221dee(0x319)](_0x4352d8);const _0x5d4517=maskToken(_0x4352d8);tokenCell['setValue'](_0x5d4517),fetchMercadoLibreToken(_0x4352d8);}else{if(_0x4352d8['substring'](0x6,0x7)===''){const _0x1cef8f=accessTokenCell['getValue']();if(_0x1cef8f)getUserInfo(_0x1cef8f,![]);else{}return;}else{backupCell[_0x221dee(0x319)](_0x4352d8);const _0x84955d=maskToken(_0x4352d8);tokenCell[_0x221dee(0x319)](_0x84955d),fetchMercadoLibreToken(_0x4352d8);}}}else cleanupAccountData(),SpreadsheetApp['getUi']()[_0x221dee(0x271)](_0x221dee(0x30d));backupCell=sheet[_0x221dee(0x1f5)]('G1');const _0x211c35=Utilities[_0x221dee(0x314)](new Date(),Session[_0x221dee(0x232)](),_0x221dee(0x274));lastVerificationCell[_0x221dee(0x319)](_0x221dee(0x2d8)+_0x211c35);}function cleanupAccountData(){const _0x386e90=_0xbdb8b6;accNameCell[_0x386e90(0x319)](''),userIdCell['setValue'](''),userMailCell[_0x386e90(0x319)](''),userRegDateCell[_0x386e90(0x319)](''),userAvatarCell[_0x386e90(0x319)](''),tokenCell[_0x386e90(0x319)](''),lastVerificationCell['setValue'](''),accessTokenCell[_0x386e90(0x319)](''),backupCell[_0x386e90(0x319)](''),ecomStatusCell['setValue'](''),gptTokenCell[_0x386e90(0x319)](_0x386e90(0x21d));}function fetchMercadoLibreToken(_0x3227f5){const _0x41396c=_0xbdb8b6;var _0x4c12fd=_0x41396c(0x22d),_0x4fe36c={'grant_type':_0x41396c(0x25c),'client_id':'2192489981173735','client_secret':_0x41396c(0x1f9),'code':''+_0x3227f5,'redirect_uri':_0x41396c(0x22b)},_0x3a6b87={'method':_0x41396c(0x2ec),'payload':_0x4fe36c};try{var _0x5dc4ae=UrlFetchApp[_0x41396c(0x1f8)](_0x4c12fd,_0x3a6b87),_0x1e778d=JSON[_0x41396c(0x231)](_0x5dc4ae[_0x41396c(0x22e)]());_0x1e778d[_0x41396c(0x216)]&&backupCell[_0x41396c(0x319)](_0x1e778d[_0x41396c(0x216)]),_0x1e778d[_0x41396c(0x304)]&&(accessTokenCell[_0x41396c(0x319)](''+_0x1e778d['access_token']),getUserInfo(''+_0x1e778d[_0x41396c(0x304)]));}catch(_0x5e3297){return Logger[_0x41396c(0x21b)](_0x41396c(0x2f3)+_0x5e3297[_0x41396c(0x294)]()),SpreadsheetApp[_0x41396c(0x251)]()['alert'](_0x41396c(0x2f3)+_0x5e3297['toString']()),null;}}function getUserInfo(_0x3abc0e,_0x13574a){const _0x2c31c3=_0xbdb8b6,_0x43dad7=_0x2c31c3(0x253),_0x2036d9={'method':'GET','headers':{'Authorization':_0x2c31c3(0x2d3)+_0x3abc0e}};try{const _0x24597e=UrlFetchApp['fetch'](_0x43dad7,_0x2036d9),_0x529e23=JSON[_0x2c31c3(0x231)](_0x24597e[_0x2c31c3(0x22e)]());if(_0x13574a)return!![];SpreadsheetApp[_0x2c31c3(0x251)]()[_0x2c31c3(0x271)](_0x2c31c3(0x2ed)+_0x529e23[_0x2c31c3(0x211)]);const _0x225e45=_0x529e23[_0x2c31c3(0x211)],_0x48c199=_0x529e23['id'],_0x1b4212=_0x529e23[_0x2c31c3(0x204)],_0x10c9fb=_0x529e23[_0x2c31c3(0x2af)],_0x5b738a=_0x529e23[_0x2c31c3(0x262)][_0x2c31c3(0x1f4)];let _0x469463=_0x10c9fb[_0x2c31c3(0x2fd)](0x8,0xa)+'/'+_0x10c9fb[_0x2c31c3(0x2fd)](0x5,0x7)+'/'+_0x10c9fb[_0x2c31c3(0x2fd)](0x0,0x4);accNameCell[_0x2c31c3(0x319)](_0x225e45+'
('+_0x469463+')'),userIdCell['setValue'](_0x2c31c3(0x1fb)+_0x48c199),userMailCell[_0x2c31c3(0x319)](_0x2c31c3(0x1fb)+_0x1b4212);const _0x44ac09='=IMAGE("'+_0x5b738a+'";4;100;100)';userAvatarCell[_0x2c31c3(0x319)](_0x44ac09),SpreadsheetApp['getUi']()[_0x2c31c3(0x271)](_0x2c31c3(0x2c0));}catch(_0x19a5f0){if(_0x13574a)return null;return null;}}function maskToken(_0x14a3b5){const _0x4a4972=_0xbdb8b6,_0x12b2f8=_0x14a3b5[_0x4a4972(0x2fd)](0x0,0x5),_0x21cdbd=_0x14a3b5[_0x4a4972(0x238)](-0x2);return _0x12b2f8+''+_0x21cdbd;}function fetchVisitsAndGroupByMonth(){const _0x46e9d8=_0xbdb8b6,_0x5c2f71=infoCell['getValue']();if(!_0x5c2f71){SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)](_0x46e9d8(0x286));return;}creationDaysCell[_0x46e9d8(0x2c4)]()<0x1e&&SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)]('Este anncio est ativo h menos de 30 dias, portanto no  possvel obter as visitas dos ltimos meses.');const _0x996797=new Date(),_0x514a25=new Date(_0x996797[_0x46e9d8(0x2d2)](),_0x996797[_0x46e9d8(0x278)](),0x0),_0x245211=Utilities[_0x46e9d8(0x314)](_0x514a25,Session[_0x46e9d8(0x232)](),_0x46e9d8(0x2c1)),_0x5171c1=_0x46e9d8(0x28a)+_0x5c2f71+'/visits/time_window?last=150&ending='+_0x245211+_0x46e9d8(0x219),_0x5d0ced=accessTokenCell[_0x46e9d8(0x2c4)]();if(!_0x5d0ced){SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)](_0x46e9d8(0x254));return;}let _0x30e024={'method':_0x46e9d8(0x269),'headers':{'Authorization':_0x46e9d8(0x2d3)+_0x5d0ced},'muteHttpExceptions':!![]};const _0x11ef6a=UrlFetchApp[_0x46e9d8(0x1f8)](_0x5171c1,_0x30e024),_0x417d59=JSON[_0x46e9d8(0x231)](_0x11ef6a[_0x46e9d8(0x22e)]()),_0x57484a=groupVisitsByMonth(_0x417d59['results']);outputLastFiveMonthsVisits(_0x57484a,firstSheet),revenueCalc(_0x57484a);}function revenueCalc(_0x4ee8a1){const _0x55fdde=_0xbdb8b6;!_0x4ee8a1&&firstSheet[_0x55fdde(0x1f5)](_0x55fdde(0x2a0))['setValue'](0x0);var _0x48abea=Object[_0x55fdde(0x244)](_0x4ee8a1)[_0x55fdde(0x25f)]()['slice'](-0x5),_0x5a59ff=0x0;validateUserEmail()==!![]?_0x5a59ff=1.1:SpreadsheetApp[_0x55fdde(0x251)]()[_0x55fdde(0x271)](' Estimativa dos ltimos cinco meses ser calculada, mas a previso de faturamento est disponvel apenas para alunos e mentorados do Escalada Ecom.');var _0x1adeed=[..._0x48abea];for(let _0x4c29a4=0x0;_0x4c29a4<0x3;_0x4c29a4++){const _0x2bf53d=_0x1adeed[_0x1adeed[_0x55fdde(0x20a)]-0x1],_0x318b64=new Date()[_0x55fdde(0x1fe)](),_0x4c50ae=new Date(_0x2bf53d[_0x55fdde(0x201)]('-')[0x0]+'-'+_0x2bf53d[_0x55fdde(0x201)]('-')[0x1]+'-'+_0x318b64);_0x4c50ae[_0x55fdde(0x2b3)](parseFloat(_0x2bf53d[_0x55fdde(0x201)]('-')[0x1])+0x1);const _0x15b58b=Utilities[_0x55fdde(0x314)](_0x4c50ae,Session[_0x55fdde(0x232)](),_0x55fdde(0x2b5)),_0x2e873e=_0x4ee8a1[_0x2bf53d]*_0x5a59ff;_0x4ee8a1[_0x15b58b]=_0x2e873e,_0x1adeed[_0x55fdde(0x283)](_0x15b58b);}_0x48abea=_0x1adeed;const _0x4767b7=visitsCell[_0x55fdde(0x2c4)](),_0x118206=sellsCell[_0x55fdde(0x2c4)](),_0x53c98b=priceCell[_0x55fdde(0x2c4)](),_0x1e46e1=_0x118206/_0x4767b7,_0x197566=_0x53c98b;_0x48abea[_0x55fdde(0x2fe)]((_0x5d2222,_0x564994)=>{const _0x117428=_0x55fdde,_0x1a004c=_0x4ee8a1[_0x5d2222],_0x3f8a11=0x23+_0x564994,_0xe28098=_0x1a004c*_0x1e46e1*_0x197566,_0x1e66d8=firstSheet[_0x117428(0x1f5)]('G'+_0x3f8a11);_0x1e66d8[_0x117428(0x319)](_0xe28098[_0x117428(0x2d4)](0x2)['replaceAll']('.',','));});}function groupVisitsByMonth(_0x121328){const _0x5b035a=_0xbdb8b6,_0x344b14={};return _0x121328[_0x5b035a(0x2fe)](_0x15b38f=>{const _0x31aae2=_0x5b035a,_0x569f41=new Date(_0x15b38f[_0x31aae2(0x2e8)]),_0x5b5fea=Utilities[_0x31aae2(0x314)](_0x569f41,Session[_0x31aae2(0x232)](),_0x31aae2(0x2b5));!_0x344b14[_0x5b5fea]&&(_0x344b14[_0x5b5fea]=0x0),_0x344b14[_0x5b5fea]+=_0x15b38f[_0x31aae2(0x208)];}),_0x344b14;}function _0x5ca4(){const _0x21d42a=['getName','DescriptionAnalysis2','Conectar Conta (privado)','sellsCell','AltPicsSizes','ortografia','trim','Cole seu token da OpenAI para utilizar esta funcionalidade.','soldStock','addItem','Passo 4 - Conectar GPT',' Token j preenchido.','adRankPosition','https://sync.escaladaecom.com.br/conectar/token','free_shipping','https://api.mercadolibre.com/oauth/token?','getContentText','false','InfoCol3','parse','getScriptTimeZone','application/json','rankResult','ImageScoreLabel','Expirado','https://sync.escaladaecom.com.br/api/generate-answer','slice','Premium','1920LYaXUy','startsWith','getSheetByName','Clssico','CreationDays','" target="_blank" class="instagram-btn" onclick="google.script.host.close()">
          Acessar Instagram
        </a>
      </div>
    </body>
  </html>','Houve um problema ao conectar com a OpenAI, verifique se seu Token OpenAI foi configurado corretamente e tente novamente em alguns instantes.','B14','visitsCell','https://sync.escaladaecom.com.br/assets/imgs/lock.jpg','keys','Link invlido, verifique e preencha novamente (Sem catlogos ou encurtadores)','ButtonSet','ListingType','descAnalysis_trechos','getSpreadsheetTimeZone','createHtmlOutput','Grtis','FirstTag','setActiveSheet','B50','Passo 1 - Liberao/Grant','locked','getUi','title','https://api.mercadolibre.com/users/me','Acesso negado pelo ML. Conecte sua conta do Mercado Livre para obter todas as informaes.','menuItem2','895549XqQEZJ','productScaleCell','setWidth',' Nvel ','";4;550;550)','thumbnail_id','authorization_code','logistic_type','Erro na comunicao com API do ML: ','sort','empty','Ateno!','thumbnail','toUpperCase','/description','search','getTime','Coleta','values','get','keyword','undefined','offset','plain_text','9xTiLLl','Algumas informaes do resultado esto disponveis apenas para alunos e mentorados Escalada.','Preencha seu E-MAIL de acesso ao EscaladaEcom para utilizar todas as funcionalidades da planilha.','alert','Seu e-mail de aluno EscaladaEcom','Esta funcionalidade est disponvel apenas para alunos e mentorados Escalada.','dd/MM/yyyy HH:mm','https://api.mercadolibre.com/visits/items?ids=','" target="_blank" class="connect-btn2" onclick="google.script.host.close()">
      <div style="
  display: flex; font-weight:700
">
          Criar token de acesso
      </div>
  </a>
</body>

</html>','Erro ao verificar e-mail. Tente novamente em alguns instantes.','getMonth','InfoCol6','https://sync.escaladaecom.com.br/assets/imgs/ele0.png','https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2YQz36i4j0vszGg7Tlyo5kDPUEmcSmAjtJi7BetjBwh0ufwy1tVlsmIvc3o8wwWn0AY0&usqp=CAU','descAnalysis_cta','ScoreMLLabel','Acessar','menuItemGPT','short','ScoreML','328QEBlpF','push','=IMAGE("','MLB','Preencha o link do produto para obter mais informaes.','6758916xrgRaM','setHeight','AltPics','https://api.mercadolibre.com/items/','No foi possvel obter o rank do anncio no momento. Tente novamente mais tarde.','date_created','Ativo','replace','11463050syQyLo','Invlido / No encontrado','Pago','Pyramid','setFormula','toString','https://platform.openai.com/api-keys','=TO_TEXT("+','ID do produto: ','keywordItems','Scraped','soldStock not found in response.','publicUrl','results','DateCreated','Acesso negado pelo ML. Reconecte sua conta do Mercado Livre para obter todas as informaes.','Description','H35:H42','InitialStock','https://sync.escaladaecom.com.br/conectar/ml-oauth','https://sync.escaladaecom.com.br/assets/imgs/ele2.png',' | Posio: ','InfoCol5',' Nvel de Escala','https://sync.escaladaecom.com.br/assets/imgs/ele3.png','359240azAEUA','null','Aguardando...','InfoCol1','max_size','/sites/MLB/search?q=','ImageScore2','registration_date',' de Escala','nota','addToUi','setMonth','The user canceled the prompt.','yyyy-MM','Correios','Conectar com Mercado Livre','menuItem4','descAnalysis_trechos_explicacao','free','toLocaleString','abs','
  <html>
    <head>
      <style>
        .instagram-btn {
          display: inline-block;
          padding: 10px 20px;
          font-size: 18px;
          font-family: sans-serif;
          cursor: pointer;
          text-align: center;
          color: #fff;
          background-color: #C13584; /* Instagram color */
          border: none;
          border-radius: 5px;
          box-shadow: 0 2px #999;
        }
        .instagram-btn:hover { background-color: #A02D6D; }
        .instagram-btn:active {
          background-color: #A02D6D;
          box-shadow: 0 1px #666;
          transform: translateY(2px);
        }
      </style>
    </head>
    <body>
      <div style="text-align: center; padding: 20px; font-family: sans-serif;">
        <p>Voc ser redirecionado para o Instagram.</p>
        <a href="','url','descAnalysis_ortografia','Token verificado com sucesso!','yyyy-MM-dd','" alt="Nova Imagem" style="width: 150px; height: auto; margin-bottom:1rem"/>
        <span style="padding:1rem">1200px x 1200px</span>
        <a href="','Falha na requisio: ','getValue','Clique no Passo 4 do menu para conectar o GPT.','getA1Notation','FirstPictureSize','pages','explicacao_ortografia','InfoCol8','E-mail verificado com status: ','Passo 3 - Verificar conexo','Conectar planilha ao EscaladaEcom','descAnalysis_qualidade_explicacao',' Entre 1 e 3x em vendas dirias','getActiveSpreadsheet','  ( ','getFullYear','Bearer ','toFixed','Houve um problema ao conectar com a OpenAI, tente novamente em alguns instantes.','Button','Invalid response or item ID not found in response.','ltima verificao: ','Descrio no disponvel.','FreeShipping','availableStock not found in response.','dd/MM/yyyy','Passo 0 - Autorizao Google','Error: ','6780ZwyMrK','InfoCol4','prompt','LastUpdated','explicacao_trechos','Verificando...','explicacao_cta','clearContent','listing_type_id','date','AIdescriptionCell','Cole','adPagePosition','post','Conectado como: ','Url','getSheets','shipping','InfoCol7','FirstPicture','Error fetching token: ','DescriptionAnalysis','ScoreML2','" download="ImagemML" target="_blank">
          <button class="download-btn">Baixar imagem</button>
        </a>
      </div>
    </body>
    </html>','2192489981173735','" target="_blank" class="connect-btn" onclick="google.script.host.close()">
      <div style="
  display: flex;
">
        <div style="
    width: 20px;
    height: 21px;
    margin-right: 5px;
"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px"
            y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
            <g>
              <path
                d="M212.2,453l-15.5-15.5c-23.2,23-43.1,30.6-60.9,30.6c-10.1,0-20.1-2.5-30.4-7.6c-10.3-5.1-20.8-12.9-31-23.1   c-10.2-10.2-18-20.7-23.1-31c-5.1-10.3-7.6-20.3-7.6-30.4c0.1-17.8,7.7-37.8,30.6-60.9c54.7-54.7,65.6-65.6,65.7-65.7l-15.5-15.5   l-15.5,15.5l153.3,153.3l15.5-15.5l-15.5-15.5c-0.1,0.1-10.9,10.9-65.7,65.7L212.2,453l15.5,15.5c54.7-54.7,65.6-65.6,65.7-65.7   l15.5-15.5L124.6,203.1l-15.5,15.5c-0.1,0.1-10.9,10.9-65.7,65.7C14.7,312.9-0.1,344.6,0,376.2c0,17.5,4.5,34.4,12.1,49.8   c7.7,15.5,18.4,29.6,31.3,42.5c12.9,12.9,27,23.7,42.5,31.3c15.4,7.7,32.3,12.2,49.8,12.1c31.6,0.1,63.4-14.7,91.9-43.5L212.2,453z    M299.8,59l15.5,15.5c23.2-23,43.1-30.6,60.9-30.6c10.1,0,20.1,2.5,30.4,7.6c10.3,5.1,20.8,12.9,31,23.1l0,0   c10.2,10.2,18,20.7,23.1,31c5.1,10.3,7.6,20.3,7.6,30.4c-0.1,17.8-7.7,37.8-30.6,61c-27.4,27.4-43.8,43.8-53.4,53.4   c-9.6,9.6-12.3,12.3-12.3,12.3l15.5,15.5l15.5-15.5L249.6,109.2l-15.5,15.5l15.5,15.5c0,0,11-11,65.7-65.7l0,0L299.8,59l-15.5-15.5   c-27.4,27.4-43.8,43.8-53.4,53.4c-9.6,9.6-12.3,12.3-12.3,12.3l-15.5,15.5l184.2,184.2l15.5-15.4c0,0,11-11,65.7-65.7   c28.7-28.6,43.5-60.3,43.5-91.9c0-17.5-4.5-34.4-12.1-49.8c-7.7-15.5-18.4-29.6-31.3-42.5l0,0c-12.9-12.9-27-23.7-42.5-31.3   C410.6,4.5,393.7,0,376.2,0c-31.6-0.1-63.4,14.7-91.9,43.5l0,0L299.8,59z M234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7   l-31-31L234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L234.1,212.2z M299.8,277.9l-15.5-15.5l-54.7,54.7l31,31   l54.7-54.7l-31-31L299.8,277.9l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L299.8,277.9z">
              </path>
            </g>
          </svg></div>
        Clique para conectar
      </div>
  </a>
</body>

</html>','Price','tags','Passo 2 - Conectar conta ML','352OELhrp','substring','forEach',' / 100','toLowerCase','createMenu','charAt','Gratuito','access_token','ImageScore','https://sync.escaladaecom.com.br/api/validate','C11','getActiveSheet','https://youtu.be/lxevKn7smCM','Tags','https://www.youtube.com/@DhiegoRosa','H28:H32','Preencha/Cole seu token para verificar corretamente.','https://sync.escaladaecom.com.br/assets/imgs/ele1.png','Conectar GPT','https://sync.escaladaecom.com.br/api/scrape?productURL=','Keyword','descAnalysis_qualidade','Analisando...','formatDate','Nvel de Escala',' Apenas para alunos Escalada','health','11IvWoIR','setValue','FirstPictureScore','87059xHUAEb','13308JrnhAx','getSheet','No encontrado (20 pginas)','% )','showSheet','menuItem0','&offset=','showModalDialog','filter','Title','adFound','stringify','Seu acesso a OpenAI j foi configurado, caso precise refazer o processo, apague sua chave GPT da planilha e tente novamente.','picture_url','getRange','menuItem1','hideSheet','fetch','fQI329p48NdAUydUkwpwZedTgQGfBUdA','range','   ','availableStock','N/A','getDate','G35:G42','AltImagesStatus','split','OK_CANCEL','test','email','http://bit.ly/grant-escaladaecom','monthName','application/x-www-form-urlencoded','total','InfoCol2','length','text','initial_quantity','Pgina: ','Error fetching data: ','Info','getResponseCode','nickname','pictures','getFormula','Voc ser redirecionado para OpenAI. Aps entra com seu Gmail e criar um token de acesso, volte para esta planilha, cole-o e clique novamente "Passo 4 - Conectar GPT".','Imagem ajustada','refresh_token','https://api.mercadolibre.com','ceil','&unit=day','Logistic','log','last_updated','Cole seu token da OpenAI'];_0x5ca4=function(){return _0x21d42a;};return _0x5ca4();}function outputLastFiveMonthsVisits(_0x556960){const _0x235bf8=_0xbdb8b6,_0x5c367b=Object['keys'](_0x556960)[_0x235bf8(0x25f)]()[_0x235bf8(0x238)](-0x5);_0x5c367b[_0x235bf8(0x2fe)]((_0x2a1bed,_0x3a1245)=>{const _0x461f97=_0x235bf8,_0xd3e0d1=0x23+_0x3a1245,_0x345c71=_0x556960[_0x2a1bed];firstSheet[_0x461f97(0x1f5)]('H'+_0xd3e0d1)[_0x461f97(0x319)](_0x345c71);});}const InfoCols={'InfoCol1':'H','InfoCol2':'J','InfoCol3':'M','InfoCol4':'B','InfoCol5':'C','InfoCol6':'F','InfoCol7':'D','InfoCol8':'E'},Rows={'Url':0x3,'CreationDays':0xb,'InitialStock':0xe,'Title':0xe,'Price':0xb,'DateCreated':0xc,'LastUpdated':0xd,'ListingType':0xc,'FreeShipping':0xd,'Logistic':0xe,'FirstPicture':0xf,'FirstPictureSize':0x2a,'ScoreML':0x10,'ScoreML2':0x11,'ScoreMLLabel':0x13,'AltImagesStatus':0x2b,'Info':0xb,'Description':0x32,'DescriptionAnalysis':0x34,'DescriptionAnalysis2':0x36,'AltPics':0x2b,'AltPicsSizes':0x2c,'Tags':0x24,'ImageScore':0x18,'Scraped':0xa,'Pyramid':0x1f,'PyramidLabel':0x1e,'monthName':0x18},altPicturesPlaceholder=_0xbdb8b6(0x27b),altPicsPlacement=['B'+Rows['AltPics'],'C'+Rows[_0xbdb8b6(0x289)],'D'+Rows[_0xbdb8b6(0x289)],'E'+Rows['AltPics']],altPicsSizesPlacement=['B'+Rows['AltPicsSizes'],'C'+Rows[_0xbdb8b6(0x222)],'D'+Rows[_0xbdb8b6(0x222)],'E'+Rows['AltPicsSizes']];var imagesScore=[];const PlacementCells={'Keyword':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x299)],'Url':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x2ee)],'CreationDays':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x23e)],'InitialStock':''+InfoCols[_0xbdb8b6(0x209)]+Rows['InitialStock'],'Title':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x1f0)],'Price':''+InfoCols[_0xbdb8b6(0x230)]+Rows[_0xbdb8b6(0x2f9)],'DateCreated':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x29d)],'LastUpdated':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x2e2)],'ListingType':''+InfoCols['InfoCol3']+Rows['ListingType'],'FreeShipping':''+InfoCols['InfoCol3']+Rows[_0xbdb8b6(0x2da)],'Logistic':''+InfoCols[_0xbdb8b6(0x230)]+Rows['Logistic'],'FirstPicture':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x2f2)],'FirstPictureSize':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows['FirstPictureSize'],'FirstPictureScore':''+InfoCols[_0xbdb8b6(0x2ca)]+Rows[_0xbdb8b6(0x2c7)],'ScoreML':''+InfoCols[_0xbdb8b6(0x2ab)]+Rows['ScoreML'],'ScoreML2':''+InfoCols[_0xbdb8b6(0x2ab)]+Rows[_0xbdb8b6(0x2f5)],'ScoreMLLabel':''+InfoCols['InfoCol2']+Rows[_0xbdb8b6(0x27d)],'ImageScore':''+InfoCols['InfoCol1']+Rows[_0xbdb8b6(0x305)],'ImageScore2':''+InfoCols[_0xbdb8b6(0x2ab)]+(Rows[_0xbdb8b6(0x305)]+0x1),'ImageScoreLabel':''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x305)]+0x1),'AltImagesStatus':''+InfoCols[_0xbdb8b6(0x279)]+Rows[_0xbdb8b6(0x200)],'Info':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows['Info'],'Description':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x29f)],'FirstTag':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x30a)],'AIdescriptionCell':''+InfoCols[_0xbdb8b6(0x279)]+Rows[_0xbdb8b6(0x29f)],'visitsCell':''+InfoCols['InfoCol3']+Rows[_0xbdb8b6(0x299)],'sellsCell':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x299)],'descAnalysis_ortografia':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_trechos':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_cta':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows['DescriptionAnalysis'],'descAnalysis_qualidade':''+InfoCols['InfoCol8']+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_ortografia_explicacao':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x21f)],'descAnalysis_trechos_explicacao':''+InfoCols['InfoCol5']+Rows[_0xbdb8b6(0x21f)],'descAnalysis_cta_explicacao':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows[_0xbdb8b6(0x21f)],'descAnalysis_qualidade_explicacao':''+InfoCols['InfoCol8']+Rows[_0xbdb8b6(0x21f)],'productScaleCell':''+InfoCols['InfoCol2']+Rows[_0xbdb8b6(0x292)],'rankResult':''+InfoCols[_0xbdb8b6(0x2ca)]+Rows[_0xbdb8b6(0x299)]},tagCells=[''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x30a)],''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x1),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x2),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x3),''+InfoCols[_0xbdb8b6(0x209)]+(Rows['Tags']+0x4),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x5),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x6),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x7)],maxTags=0x8,url=firstSheet[_0xbdb8b6(0x1f5)](''+PlacementCells[_0xbdb8b6(0x2ee)])[_0xbdb8b6(0x2c4)](),creationDaysCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['CreationDays']),initialStockCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2a1)]),titleCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x1f0)]),priceCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x2f9)]),dateCreatedCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['DateCreated']),lastUpdatedCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2e2)]),listingTypeCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x247)]),freeShippingCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2da)]),logisticCell=firstSheet['getRange'](''+InfoCols[_0xbdb8b6(0x230)]+Rows[_0xbdb8b6(0x21a)]),firstPictureCell=firstSheet['getRange'](PlacementCells['FirstPicture']),firstPictureSizeCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['FirstPictureSize']),scoreMLCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x281)]),scoreMLCell2=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2f5)]),scoreMLLabelCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x27d)]),altImagesStatusCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['AltImagesStatus']),infoCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x20f)]),descriptionCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x29f)]),firstTagCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x24c)]),imageScoreCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x305)]),imageScoreCell2=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2ae)]),ImageScoreLabel=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x235)]),AIdescriptionCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2e9)]),visitsCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x242)]),sellsCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x221)]),descAnalysis_ortografia=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2bf)]),descAnalysis_trechos=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x248)]),descAnalysis_cta=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x27c)]),descAnalysis_qualidade=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x312)]),descAnalysis_ortografia_explicacao=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['descAnalysis_ortografia_explicacao']),descAnalysis_trechos_explicacao=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2b9)]),descAnalysis_cta_explicacao=firstSheet['getRange'](PlacementCells['descAnalysis_cta_explicacao']),descAnalysis_qualidade_explicacao=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x2ce)]),productScaleCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x257)]),ELElabelCell=firstSheet[_0xbdb8b6(0x1f5)](''+InfoCols['InfoCol2']+Rows['PyramidLabel']),rankResultCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x234)]),keywordCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x311)]),FirstPictureScoreCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x31a)]);function mlLinkAnalysis(){const _0xc0e611=_0xbdb8b6;infoCell[_0xc0e611(0x319)](_0xc0e611(0x313)),setRevChartSeries(),altImagesStatusCell[_0xc0e611(0x319)]('Carregando...');const _0x519c1d=accessTokenCell[_0xc0e611(0x2c4)](),_0x4f1b54=getUserInfo(_0x519c1d,!![]);if(_0x4f1b54==null){const _0x5a9a15=getNewAccessToken();if(_0x5a9a15)_0x4aa0b9();else{clearAnalysisData(),SpreadsheetApp[_0xc0e611(0x251)]()[_0xc0e611(0x271)](_0xc0e611(0x29e));var _0x34f93d=SpreadsheetApp[_0xc0e611(0x2d0)](),_0x4ec16f=_0x34f93d[_0xc0e611(0x23c)](_0xc0e611(0x220));_0x4ec16f[_0xc0e611(0x1eb)](),_0x34f93d['setActiveSheet'](_0x4ec16f),AccSync();}}else _0x4aa0b9();function _0x4aa0b9(){const _0x58a750=_0xc0e611,_0x111f9b={'fulfillment':'Full','cross_docking':_0x58a750(0x267),'drop_off':'Places','xd_drop_off':'Places','self_service':'Flex','default':_0x58a750(0x2b6)},_0x4a5d0b={'free':_0x58a750(0x303),'gold_special':_0x58a750(0x23d),'gold_pro':_0x58a750(0x239)};if(!url||!url[_0x58a750(0x23b)]('https://')){clearAnalysisData(),infoCell['setValue'](_0x58a750(0x245));return;}clearAnalysisData(!![]);const _0x31bdb4=_0x58a750(0x285)+url[_0x58a750(0x201)]('-')[0x1][_0x58a750(0x201)]('_')[0x0],_0x4b0757=/^MLB\d+$/;if(!_0x4b0757[_0x58a750(0x203)](_0x31bdb4)){infoCell[_0x58a750(0x319)](_0x58a750(0x245));return;}infoCell[_0x58a750(0x319)](''+_0x31bdb4),Logger['log'](_0x58a750(0x297)+_0x31bdb4);const _0xeb436c='https://api.mercadolibre.com/items/'+_0x31bdb4;try{const _0xc48fb8=UrlFetchApp[_0x58a750(0x1f8)](_0xeb436c),_0xe14cee=JSON['parse'](_0xc48fb8['getContentText']());if(_0xe14cee){const _0x25818d=_0xe14cee,_0x27b43e=Session[_0x58a750(0x232)](),_0x4aeda3=new Date(_0x25818d[_0x58a750(0x28c)]),_0x1562b4=new Date(_0x25818d[_0x58a750(0x21c)]),_0x121f28=new Date(),_0x45e67c=Math[_0x58a750(0x2bc)](_0x121f28[_0x58a750(0x266)]()-_0x4aeda3[_0x58a750(0x266)]()),_0x494658=Math[_0x58a750(0x218)](_0x45e67c/(0x3e8*0xe10*0x18));creationDaysCell[_0x58a750(0x319)](_0x494658),initialStockCell[_0x58a750(0x319)](_0x25818d[_0x58a750(0x20c)]),titleCell[_0x58a750(0x319)](_0x25818d[_0x58a750(0x252)]),priceCell[_0x58a750(0x319)](_0x25818d['price']),dateCreatedCell[_0x58a750(0x319)](Utilities[_0x58a750(0x314)](_0x4aeda3,_0x27b43e,_0x58a750(0x2dc))),lastUpdatedCell['setValue'](Utilities[_0x58a750(0x314)](_0x1562b4,_0x27b43e,'dd/MM/yyyy')),listingTypeCell[_0x58a750(0x319)](_0x4a5d0b[_0x25818d[_0x58a750(0x2e7)]]||_0x25818d['listing_type_id']),freeShippingCell['setValue'](_0x25818d[_0x58a750(0x2f0)][_0x58a750(0x22c)]?_0x58a750(0x24b):_0x58a750(0x291)),logisticCell[_0x58a750(0x319)](_0x111f9b[_0x25818d[_0x58a750(0x2f0)][_0x58a750(0x25d)]]||_0x111f9b['default']);if(validateUserEmail()!=!![])tagCells[_0x58a750(0x2fe)](_0x5b09c1=>{const _0xf17939=_0x58a750;if(_0x5b09c1===PlacementCells[_0xf17939(0x24c)])for(let _0x16f329=0x0;_0x16f329<maxTags-0x1;_0x16f329++){const _0x4520c6=firstSheet[_0xf17939(0x1f5)](''+InfoCols[_0xf17939(0x209)]+(Rows[_0xf17939(0x30a)]+_0x16f329));_0x4520c6[_0xf17939(0x2e6)]();}});else for(let _0x5a821d=0x0;_0x5a821d<maxTags-0x1;_0x5a821d++){const _0x37d088=_0x25818d[_0x58a750(0x2fa)][_0x5a821d],_0x624f9f=firstSheet[_0x58a750(0x1f5)](''+InfoCols[_0x58a750(0x209)]+(Rows[_0x58a750(0x30a)]+_0x5a821d));_0x624f9f[_0x58a750(0x319)](_0x37d088);}scoreMLCell['setValue'](_0x25818d[_0x58a750(0x317)]),scoreMLCell2['setValue'](0x1-_0x25818d[_0x58a750(0x317)]),scoreMLLabelCell['setValue']('  '+_0x25818d[_0x58a750(0x317)]*0x64+_0x58a750(0x2ff));if(_0x25818d[_0x58a750(0x212)]&&_0x25818d[_0x58a750(0x212)]['length']>0x0){const _0x149aa3=_0x25818d[_0x58a750(0x25b)],_0x4fc527=_0x25818d['pictures']['find'](_0x45f42a=>_0x45f42a['id']===_0x149aa3),_0x5da5d5=_0x58a750(0x284)+_0x4fc527[_0x58a750(0x2be)]+_0x58a750(0x25a);firstPictureCell['setFormula'](_0x5da5d5);const _0x1899ea=(_0x4fc527['max_size']['split']('x')[0x0]<0x4b0?_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x0]:0x4b0)*(_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x1]<0x4b0?_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x1]:0x4b0)/(0x4b0*0x4b0);imagesScore[_0x58a750(0x283)](_0x1899ea),firstPictureSizeCell[_0x58a750(0x319)](_0x4fc527[_0x58a750(0x2ac)]+_0x58a750(0x2d1)+_0x1899ea[_0x58a750(0x2d4)](0x2)*0x64+'% )'),FirstPictureScoreCell[_0x58a750(0x319)](_0x1899ea['toFixed'](0x2)>0x0?_0x1899ea['toFixed'](0x2)*0x64/0x64:0x0);const _0x48fd97=_0x25818d[_0x58a750(0x212)][_0x58a750(0x1ef)](_0x28fcd1=>_0x28fcd1['id']!==_0x149aa3);let _0x1e5ab5=_0x58a750(0x296)+(_0x48fd97[_0x58a750(0x20a)]-0x3<0x0?0x0:_0x48fd97[_0x58a750(0x20a)]-0x3)+'")';altImagesStatusCell[_0x58a750(0x293)](_0x1e5ab5);for(let _0x383a89=0x0;_0x383a89<_0x48fd97[_0x58a750(0x20a)];_0x383a89++){const _0x4e7d3b=_0x48fd97[_0x383a89];_0x9e2fb1(_0x4e7d3b,_0x383a89);}let _0xf4ca0a=0x0;imagesScore[_0x58a750(0x2fe)](_0x3402da=>{_0xf4ca0a+=_0x3402da;});const _0xbaa6ef=_0xf4ca0a/ imagesScore[_0x58a750(0x20a)];imageScoreCell[_0x58a750(0x319)](_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64),imageScoreCell2[_0x58a750(0x319)](0x64-_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64),ImageScoreLabel['setValue']('  '+(_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64)[_0x58a750(0x2d4)](0x0)+_0x58a750(0x2ff));}}}catch(_0x84f3c7){Logger[_0x58a750(0x21b)](_0x58a750(0x25e)+_0x84f3c7);}function _0x9e2fb1(_0xa92af3,_0x13b329){const _0x3cca55=_0x58a750;if(_0xa92af3&&_0xa92af3['url']&&_0x13b329<0x4){const _0x395606=_0xa92af3[_0x3cca55(0x2be)],_0x580bb8=firstSheet[_0x3cca55(0x1f5)](altPicsPlacement[_0x13b329]),_0x5f5ad6=_0x3cca55(0x284)+_0x395606+'")';_0x580bb8[_0x3cca55(0x293)](_0x5f5ad6);const _0x399c3d=firstSheet[_0x3cca55(0x1f5)](altPicsSizesPlacement[_0x13b329]),_0x4d0945=(_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x0]<0x4b0?_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x0]:0x4b0)*(_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x1]<0x4b0?_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x1]:0x4b0)/(0x4b0*0x4b0);imagesScore[_0x3cca55(0x283)](_0x4d0945),_0x399c3d[_0x3cca55(0x319)](_0xa92af3[_0x3cca55(0x2ac)]+' ( '+_0x4d0945[_0x3cca55(0x2d4)](0x2)*0x64+_0x3cca55(0x1ea));}}const _0x55fc51=_0x58a750(0x28a)+_0x31bdb4+_0x58a750(0x264),_0x993709=UrlFetchApp['fetch'](_0x55fc51),_0x3343ef=JSON['parse'](_0x993709[_0x58a750(0x22e)]());AIdescriptionCell[_0x58a750(0x319)]('Clique em "Gerar melhorias" para obter uma nova descrio...'),_0x3343ef&&_0x3343ef[_0x58a750(0x26d)]?descriptionCell[_0x58a750(0x319)](_0x3343ef[_0x58a750(0x26d)]):descriptionCell[_0x58a750(0x319)](_0x58a750(0x2d9)),sellsCell[_0x58a750(0x319)](_0x58a750(0x2aa)),visitsCell[_0x58a750(0x319)]('Aguardando informao...'),fetchItemVisits(_0x31bdb4);}}function setRevChartSeries(){const _0x4bd4b3=_0xbdb8b6,_0x51465b=firstSheet[_0x4bd4b3(0x1f5)](''+InfoCols['InfoCol3']+Rows[_0x4bd4b3(0x206)]),_0x1d2021=0x8,_0x140c16=new Date(),_0x2ad0a7=SpreadsheetApp[_0x4bd4b3(0x2d0)]()[_0x4bd4b3(0x249)]();for(let _0x5bc105=0x0;_0x5bc105<_0x1d2021;_0x5bc105++){const _0x1997e7=new Date(_0x140c16['getFullYear'](),_0x140c16['getMonth']()-0x4+_0x5bc105,0x1)[_0x4bd4b3(0x2bb)]('pt-br',{'month':_0x4bd4b3(0x280)}),_0x2ef15e=_0x1997e7[_0x4bd4b3(0x302)](0x0)[_0x4bd4b3(0x263)]()+_0x1997e7[_0x4bd4b3(0x238)](0x1);_0x51465b[_0x4bd4b3(0x26c)](_0x5bc105,0x0)['setValue'](_0x2ef15e);}}function clearAnalysisData(_0x6d5716){const _0x10f6d6=_0xbdb8b6;Object[_0x10f6d6(0x268)](PlacementCells)[_0x10f6d6(0x2fe)](_0x74066a=>{const _0x6e39d8=_0x10f6d6;_0x6d5716?_0x74066a!=PlacementCells[_0x6e39d8(0x2ee)]&&firstSheet[_0x6e39d8(0x1f5)](_0x74066a)[_0x6e39d8(0x2e6)]():firstSheet[_0x6e39d8(0x1f5)](_0x74066a)[_0x6e39d8(0x2e6)]();});const _0x3bb722='=IMAGE("'+altPicturesPlaceholder+'")';firstSheet[_0x10f6d6(0x1f5)](PlacementCells[_0x10f6d6(0x2f2)])[_0x10f6d6(0x293)](_0x3bb722),altPicsPlacement[_0x10f6d6(0x2fe)](_0x42acf3=>{const _0x543f12=_0x10f6d6;sheet[_0x543f12(0x1f5)](_0x42acf3)[_0x543f12(0x319)](_0x3bb722);}),altPicsSizesPlacement['forEach'](_0x587d41=>{const _0x1bbbfa=_0x10f6d6;sheet[_0x1bbbfa(0x1f5)](_0x587d41)[_0x1bbbfa(0x319)]('');}),tagCells[_0x10f6d6(0x2fe)](_0x62852e=>{const _0x4e97bc=_0x10f6d6;if(_0x62852e===PlacementCells['FirstTag'])for(let _0x533091=0x0;_0x533091<maxTags-0x1;_0x533091++){const _0x173e8b=firstSheet[_0x4e97bc(0x1f5)](''+InfoCols[_0x4e97bc(0x209)]+(Rows[_0x4e97bc(0x30a)]+_0x533091));_0x173e8b[_0x4e97bc(0x2e6)]();}}),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x2a0))[_0x10f6d6(0x319)](0x0),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x1ff))['setValue'](0x0),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x30c))['setFormula'](_0x10f6d6(0x284)+pyramidImgs[_0x10f6d6(0x260)]+'")'),ELElabelCell[_0x10f6d6(0x319)](' Nvel de Escala'),productScaleCell[_0x10f6d6(0x319)]('');}function getOpenAIDescription(){const _0x4fad70=_0xbdb8b6;if(!OpenAIToken()){SpreadsheetApp['getUi']()[_0x4fad70(0x271)]('Cole seu token da OpenAI para utilizar esta funcionalidade.'),setAccSheetActive();return;}if(validateUserEmail()!=!![])SpreadsheetApp['getUi']()[_0x4fad70(0x271)](_0x4fad70(0x273));else{AIdescriptionCell[_0x4fad70(0x319)]('Aguardando resposta da OpenAI... Isso pode levar cerca de 1 minuto.');var _0x172380=firstSheet['getRange'](_0x4fad70(0x241))[_0x4fad70(0x2c4)](),_0x5cfb79=firstSheet[_0x4fad70(0x1f5)](_0x4fad70(0x24e))['getValue'](),_0x1cdcb3=_0x4fad70(0x237),_0x13939a={'title':_0x172380+'}','description':_0x5cfb79+'}','openAiKey':''+openAITokenCell['getValue']()['trim']()},_0x3e0f21={'method':_0x4fad70(0x269),'contentType':_0x4fad70(0x233),'payload':JSON[_0x4fad70(0x1f2)](_0x13939a),'muteHttpExceptions':!![]};try{var _0x3ac22b=UrlFetchApp[_0x4fad70(0x1f8)](_0x1cdcb3,_0x3e0f21),_0x1dd302=JSON[_0x4fad70(0x231)](_0x3ac22b[_0x4fad70(0x22e)]());_0x1dd302&&_0x1dd302[_0x4fad70(0x20b)]?AIdescriptionCell[_0x4fad70(0x319)](_0x1dd302[_0x4fad70(0x20b)]):AIdescriptionCell[_0x4fad70(0x319)](_0x4fad70(0x2d5));}catch(_0xb6386){Logger['log'](_0x4fad70(0x2de)+_0xb6386),SpreadsheetApp['getUi']()[_0x4fad70(0x271)](_0x4fad70(0x240)),AIdescriptionCell[_0x4fad70(0x319)]('Houve um problema ao conectar com a OpenAI, verifique seu Token OpenAI e tente novamente em alguns instantes.');}}}function fetchItemVisits(_0x1c08e4){const _0x25562b=_0xbdb8b6,_0x3fb877=accessTokenCell['getValue']();if(!_0x3fb877){SpreadsheetApp[_0x25562b(0x251)]()[_0x25562b(0x271)]('Acesso negado pelo ML. Conecte sua conta do Mercado Livre para obter todas as informaes.');return;}const _0x7bf779=_0x25562b(0x275)+_0x1c08e4;var _0x255cf0={'method':_0x25562b(0x269),'headers':{'Authorization':'Bearer '+_0x3fb877},'muteHttpExceptions':!![]};try{var _0x687342=UrlFetchApp['fetch'](_0x7bf779,_0x255cf0),_0x4cbb65=JSON[_0x25562b(0x231)](_0x687342[_0x25562b(0x22e)]());_0x4cbb65&&_0x4cbb65[_0x1c08e4]?visitsCell[_0x25562b(0x319)](_0x4cbb65[_0x1c08e4]):Logger['log'](_0x25562b(0x2d7));}catch(_0x122d10){Logger['log']('Error: '+_0x122d10[_0x25562b(0x294)]());}scrapeProductInfo('https://produto.mercadolivre.com.br/MLB-'+_0x1c08e4[_0x25562b(0x201)]('MLB')[0x1]);}function scrapeProductInfo(_0x5e1a49){const _0x332833=_0xbdb8b6,_0x1201c0=_0x332833(0x310)+encodeURIComponent(_0x5e1a49);var _0x5c9c82={'method':_0x332833(0x269),'muteHttpExceptions':!![]};try{var _0x504383=UrlFetchApp[_0x332833(0x1f8)](_0x1201c0,_0x5c9c82),_0x5ccea9=JSON['parse'](_0x504383['getContentText']());_0x5ccea9?(Logger[_0x332833(0x21b)](_0x5ccea9),_0x332833(0x226)in _0x5ccea9?sellsCell[_0x332833(0x319)](_0x5ccea9['soldStock']):Logger[_0x332833(0x21b)](_0x332833(0x29a)),_0x332833(0x1fc)in _0x5ccea9?initialStockCell[_0x332833(0x319)](_0x5ccea9[_0x332833(0x1fc)]):Logger[_0x332833(0x21b)](_0x332833(0x2db))):Logger[_0x332833(0x21b)]('Invalid response or data not found in response.');}catch(_0x229048){Logger[_0x332833(0x21b)](_0x332833(0x2de)+_0x229048[_0x332833(0x294)]());}setELEscale();}function setELEscale(){const _0x25a3da=_0xbdb8b6,_0x2dc5d5=visitsCell['getValue'](),_0x450023=sellsCell[_0x25a3da(0x2c4)](),_0x376e48=creationDaysCell[_0x25a3da(0x2c4)](),_0x28826a=_0x450023/_0x376e48;if(_0x28826a){if(validateUserEmail()!=!![]){SpreadsheetApp[_0x25a3da(0x251)]()[_0x25a3da(0x271)](_0x25a3da(0x26f)),ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x2a6)),productScaleCell['setValue'](_0x25a3da(0x316)),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))['setFormula']('=IMAGE("'+pyramidImgs[_0x25a3da(0x250)]+'")');return;}const _0x4f21b3=_0x28826a>0xa?0x3:_0x28826a<=0x3?0x1:0x2;if(_0x4f21b3==0x3)ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x259)+_0x4f21b3+_0x25a3da(0x2b0)),productScaleCell[_0x25a3da(0x319)](' Mais de 10x em vendas dirias'),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))[_0x25a3da(0x293)]('=IMAGE("'+pyramidImgs[_0x4f21b3]+'")');else{if(_0x4f21b3==0x2)productScaleCell['setValue'](' Entre 3 e 9x em vendas dirias'),firstSheet['getRange'](_0x25a3da(0x30c))[_0x25a3da(0x293)]('=IMAGE("'+pyramidImgs[_0x4f21b3]+'")');else _0x4f21b3==0x1?(productScaleCell['setValue'](_0x25a3da(0x2cf)),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))['setFormula'](_0x25a3da(0x284)+pyramidImgs[_0x4f21b3]+'")')):(ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x315)),productScaleCell['setValue'](''),shefirstSheett[_0x25a3da(0x1f5)](_0x25a3da(0x30c))[_0x25a3da(0x293)](_0x25a3da(0x284)+pyramidImgs[empty]+'")'));}}}function updateDescAnalysisData(_0xec1a57){const _0x101338=_0xbdb8b6;var _0x692ed0=JSON[_0x101338(0x231)](_0xec1a57);if(!_0x692ed0){descAnalysis_ortografia[_0x101338(0x319)](''),descAnalysis_trechos[_0x101338(0x319)](''),descAnalysis_cta[_0x101338(0x319)](''),descAnalysis_qualidade[_0x101338(0x319)](''),descAnalysis_ortografia_explicacao[_0x101338(0x319)](''),descAnalysis_trechos_explicacao['setValue'](''),descAnalysis_cta_explicacao[_0x101338(0x319)](''),descAnalysis_qualidade_explicacao[_0x101338(0x319)]('');return;}descAnalysis_ortografia[_0x101338(0x319)](_0x692ed0['ortografia'][_0x101338(0x2b1)]),descAnalysis_trechos['setValue'](_0x692ed0['trechos'][_0x101338(0x2b1)]),descAnalysis_cta[_0x101338(0x319)](_0x692ed0['cta'][_0x101338(0x2b1)]),descAnalysis_qualidade[_0x101338(0x319)](_0x692ed0['qualidade'][_0x101338(0x2b1)]),descAnalysis_ortografia_explicacao[_0x101338(0x319)](_0x692ed0[_0x101338(0x223)][_0x101338(0x2c9)]),descAnalysis_trechos_explicacao[_0x101338(0x319)](_0x692ed0['trechos'][_0x101338(0x2e3)]),descAnalysis_cta_explicacao['setValue'](_0x692ed0['cta'][_0x101338(0x2e5)]),descAnalysis_qualidade_explicacao[_0x101338(0x319)](_0x692ed0['qualidade']['explicacao_qualidade']);}function fetchDataAndUpdateSheet(){const _0x33c428=_0xbdb8b6;if(!OpenAIToken()){SpreadsheetApp[_0x33c428(0x251)]()['alert'](_0x33c428(0x225)),setAccSheetActive();return;}if(validateUserEmail()!=!![])SpreadsheetApp[_0x33c428(0x251)]()[_0x33c428(0x271)](_0x33c428(0x273));else{var _0x13f299=firstSheet[_0x33c428(0x1f5)](_0x33c428(0x24e))[_0x33c428(0x2c4)](),_0x37928c={'description':_0x13f299+'}','openAiKey':''+openAITokenCell['getValue']()[_0x33c428(0x224)]()},_0x1cc449='https://sync.escaladaecom.com.br/api/description-analysis',_0x436e80={'method':'post','contentType':'application/json','payload':JSON[_0x33c428(0x1f2)](_0x37928c)};try{var _0x566b8b=UrlFetchApp[_0x33c428(0x1f8)](_0x1cc449,_0x436e80);if(_0x566b8b['getResponseCode']()==0xc8){var _0x584746=JSON[_0x33c428(0x231)](_0x566b8b[_0x33c428(0x22e)]());updateDescAnalysisData(_0x584746[_0x33c428(0x20b)]);}else Logger[_0x33c428(0x21b)]('Falha na requisio: '+_0x566b8b[_0x33c428(0x210)]());}catch(_0x4d6c92){Logger[_0x33c428(0x21b)](_0x33c428(0x2de)+_0x4d6c92),updateDescAnalysisData(null),SpreadsheetApp[_0x33c428(0x251)]()[_0x33c428(0x271)](_0x33c428(0x240));}}}function findAdRank(){const _0x13d372=_0xbdb8b6,_0xa9be0f=keywordCell[_0x13d372(0x2c4)](),_0x338ac1=firstSheet[_0x13d372(0x1f5)](_0x13d372(0x307))['getValue'](),_0x34806d=accessTokenCell[_0x13d372(0x2c4)]();if(!_0x338ac1||_0x338ac1[_0x13d372(0x23b)](_0x13d372(0x285))==![]){SpreadsheetApp['getUi']()[_0x13d372(0x271)]('Busque um produto para obter mais informaes (ID).'),rankResultCell[_0x13d372(0x319)]('');return;}if(!_0xa9be0f){SpreadsheetApp[_0x13d372(0x251)]()['alert']('Escreva um termo ou palavra-chave para obter mais informaes.'),rankResultCell['setValue']('');return;}if(validateUserEmail()!=!![]){SpreadsheetApp[_0x13d372(0x251)]()[_0x13d372(0x271)](_0x13d372(0x273)),rankResultCell[_0x13d372(0x319)]('');return;}var _0x253b50={'pages':0x14,'adFound':![],'adRankPosition':0x0,'adPagePosition':0x0,'keyword':'','productID':_0x338ac1},_0x33751b={'base':_0x13d372(0x217),'search':{'keywordItems':_0x13d372(0x2ad)}};if(_0x34806d&&_0x34806d[_0x13d372(0x20a)]>0x0){const _0x4518e7=getUserInfo(_0x34806d,!![]);if(_0x4518e7==null){const _0x4117fd=getNewAccessToken();_0x4117fd?_0x38c917():SpreadsheetApp['getUi']()['alert'](_0x13d372(0x28b));}else _0x38c917();}else SpreadsheetApp['getUi']()[_0x13d372(0x271)](_0x13d372(0x254));function _0x38c917(){const _0x331254=_0x13d372;var _0x6cd7f3=accessTokenCell[_0x331254(0x2c4)](),_0x1d7e9d={},_0x423e50=![],_0x31ba1a=0x0,_0x4ec727=0x0;for(var _0x277c74=0x0;_0x277c74<_0x253b50['pages'];_0x277c74++){var _0x21dfa4={'keywordItems':_0x33751b['base']+_0x33751b[_0x331254(0x265)][_0x331254(0x298)]+_0xa9be0f+_0x331254(0x1ed)+(_0x277c74>0x0?_0x277c74*0x32+0x1:_0x277c74)},_0x57d366=UrlFetchApp[_0x331254(0x1f8)](_0x21dfa4[_0x331254(0x298)],{'method':_0x331254(0x269),'headers':{'Authorization':_0x331254(0x2d3)+_0x6cd7f3},'muteHttpExceptions':!![]});if(_0x57d366[_0x331254(0x210)]()!==0xc8){console['error'](_0x331254(0x20e)+_0x57d366[_0x331254(0x22e)]());return;}var _0x268c92=JSON[_0x331254(0x231)](_0x57d366[_0x331254(0x22e)]());if(_0x268c92){var _0x3d311a=_0x268c92[_0x331254(0x29c)];for(var _0x58ff26=0x0;_0x58ff26<_0x3d311a['length'];_0x58ff26++){if(_0x3d311a[_0x58ff26]['id']==_0x253b50['productID']){_0x31ba1a=_0x58ff26,_0x423e50=!![];break;}}if(_0x423e50){_0x31ba1a=_0x31ba1a+0x1,_0x4ec727=_0x277c74+0x1;break;}_0x1d7e9d[_0x277c74]=_0x268c92;}}(Object[_0x331254(0x244)](_0x1d7e9d)[_0x331254(0x20a)]==_0x253b50[_0x331254(0x2c8)]||_0x423e50)&&(_0x253b50[_0x331254(0x1f1)]=_0x423e50,_0x253b50[_0x331254(0x22a)]=_0x31ba1a,_0x253b50[_0x331254(0x2eb)]=_0x4ec727,_0x253b50[_0x331254(0x26a)]=_0xa9be0f);let _0xb6febb=_0x331254(0x20d)+_0x253b50[_0x331254(0x2eb)]+_0x331254(0x2a4)+_0x253b50[_0x331254(0x22a)];_0x253b50[_0x331254(0x2eb)]>0x0?rankResultCell[_0x331254(0x319)](_0xb6febb):rankResultCell['setValue'](_0x331254(0x31e));}}function _0x5310(_0x47aa36,_0x4ad500){const _0x5ca404=_0x5ca4();return _0x5310=function(_0x5310fd,_0x2efb7d){_0x5310fd=_0x5310fd-0x1ea;let _0x2cac7d=_0x5ca404[_0x5310fd];return _0x2cac7d;},_0x5310(_0x47aa36,_0x4ad500);}function getNewAccessToken(){const _0x11eeb2=_0xbdb8b6,_0x36a45a=accessTokenSheet['getRange']('G1')['getValue']();if(_0x36a45a&&_0x36a45a['length']>0x0){var _0x109f27=_0x11eeb2(0x22d),_0x4a7d19={'grant_type':'refresh_token','client_id':_0x11eeb2(0x2f7),'client_secret':_0x11eeb2(0x1f9),'refresh_token':''+_0x36a45a},_0x3a5e04={'method':_0x11eeb2(0x2ec),'payload':_0x4a7d19};try{var _0x2d9a1f=UrlFetchApp[_0x11eeb2(0x1f8)](_0x109f27,_0x3a5e04),_0x2db2da=JSON[_0x11eeb2(0x231)](_0x2d9a1f[_0x11eeb2(0x22e)]());_0x2db2da[_0x11eeb2(0x216)]&&backupCell[_0x11eeb2(0x319)](_0x2db2da['refresh_token']);if(_0x2db2da[_0x11eeb2(0x304)])return accessTokenCell['setValue'](''+_0x2db2da[_0x11eeb2(0x304)]),''+_0x2db2da[_0x11eeb2(0x304)];}catch(_0x44b5bf){return Logger['log']('Error fetching token: '+_0x44b5bf[_0x11eeb2(0x294)]()),null;}}else clearAnalysisData(),SpreadsheetApp[_0x11eeb2(0x251)]()[_0x11eeb2(0x271)](_0x11eeb2(0x30d));}function onOpen(){const _0x58744e=_0xbdb8b6;var _0x1f8b8d=SpreadsheetApp[_0x58744e(0x251)]();_0x1f8b8d[_0x58744e(0x301)](' Integrao EscaladaEcom')['addItem'](_0x58744e(0x2dd),_0x58744e(0x1ec))[_0x58744e(0x227)](_0x58744e(0x24f),_0x58744e(0x1f6))[_0x58744e(0x227)](_0x58744e(0x2fb),_0x58744e(0x255))['addItem'](_0x58744e(0x2cc),'menuItem3')[_0x58744e(0x227)](_0x58744e(0x228),_0x58744e(0x27f))['addItem']('Passo Final - E-mail Escalada Ecom',_0x58744e(0x2b8))[_0x58744e(0x2b2)]();}function GPTconnect(){const _0x31c443=_0xbdb8b6,_0x1151d4=_0x31c443(0x295),_0x111390='
  <html>

<head>
  <style>
    .connect-btn2 {
      display: inline-block;
      padding: 14px 31px;
      font-size: 16px;
      font-family: sans-serif;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      outline: none;
      color: #fff;
      font-weight: 200;
      background-color: #1B1C20;
      border: none;
      border-radius: 11px;
      box-shadow: 0 2px #777;
    }

    .connect-btn:hover {
      background-color: #a4a4a4;
      font-weight: 500;
    }

    .connect-btn:active {
      background-color: #3e8e41;
      color: white;
      box-shadow: 0 2px #666;
      transform: translateY(4px);
    }
  </style>
</head>

<body style="
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
    ">
    <div style="display: flex;justify-content: center;flex-direction: row;align-items: center;padding: 1rem;">
    <div style="margin-bottom: 10px;">
    <svg xmlns="http://www.w3.org/2000/svg" fill="#000000" width="55px" height="55px" viewBox="0 0 24 24" role="img"><title>OpenAI icon</title><path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></svg>
    </div>
    <img width="24" height="24" src="https://img.icons8.com/material-two-tone/24/data-in-both-directions.png" alt="data-in-both-directions" style="padding: 0rem 0.5rem 0rem 1rem; margin-top: -0.5rem;" />
    <div style="width: 111px; margin-bottom: 10px;">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Camada_1" x="0px" y="0px" viewBox="0 0 800 262.2" style="enable-background:new 0 0 800 262.2;" xml:space="preserve"> <style type="text/css"> .st0{fill:#E981B2;} .st1{fill:#EB599B;} .st2{fill:#E7277D;} .st3{fill:#020203;} </style> <g> <rect x="75.6" y="168.6" class="st0" width="60.8" height="76.9"/> <rect x="121.2" y="110.9" class="st1" width="60.8" height="115.4"/> <rect x="166.8" y="53.2" class="st2" width="60.8" height="153.9"/> <g> <path class="st3" d="M277.8,94.1c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7 c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z M304.9,82.2 c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z"/> <path class="st3" d="M339.7,103.9c1.5,5.6,6,8.7,13.3,8.7c7.2,0,9.8-2.6,9.8-6.8c0-4.5-3-6.3-13.1-8.7 c-22.9-5.6-26.6-12.7-26.6-22.6c0-10.3,7.3-21.3,28.5-21.3c21.3,0,28.5,11.6,29.1,21.1h-18.5c-0.6-2.6-2.4-7.5-11.5-7.5 c-6.4,0-8.5,2.8-8.5,6c0,3.5,2.2,5.2,13.6,7.8c23.4,5.4,26.7,13.5,26.7,23.8c0,11.6-8.8,22.2-30.2,22.2 c-21.3,0-30.1-10.3-31.6-22.7H339.7z"/> <path class="st3" d="M443.9,102.4c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2 c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7 c6.7,0,10.3-3.9,12-9.2H443.9z"/> <path class="st3" d="M502.2,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M483.3,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M507.6,125v-99H527v99H507.6z"/> <path class="st3" d="M590.3,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M571.4,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M660.1,26.1v79.7c0,6.4,0,12.9,0.1,19.3h-18.7c-0.4-2.1-0.8-5.7-0.9-7.3c-3.4,5.5-9.4,9-19.9,9 c-17.7,0-29-14.3-29-36.1c0-21.6,12-37.3,31.9-37.3c10.1,0,15.5,3.6,17.1,6.7V26.1H660.1z M611.7,90c0,13.7,5.3,21.1,14.8,21.1 c13.4,0,14.9-11.1,14.9-21.2c0-12-1.7-21.1-14.4-21.1C616.8,68.8,611.7,76.8,611.7,90z"/> <path class="st3" d="M723.5,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M704.5,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M277.8,174.4c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7 c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z M304.9,162.5 c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z"/> <path class="st3" d="M386.2,182.7c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2 c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7 c6.7,0,10.3-3.9,12-9.2H386.2z"/> <path class="st3" d="M451.6,170.1c0,21.2-12.7,36.8-34.9,36.8c-21.8,0-34.5-15.5-34.5-36.5c0-21.7,13.1-36.9,35.4-36.9 C438.2,133.5,451.6,148.1,451.6,170.1z M401.9,170.2c0,13.5,5.8,21.5,15.2,21.5c9.5,0,14.8-8,14.8-21.4c0-14.7-5.4-21.6-15.1-21.6 C407.8,148.7,401.9,155.4,401.9,170.2z"/> <path class="st3" d="M452.6,153.2c0-6.1,0-12.1-0.1-18.1H471c0.3,1.7,0.6,5.6,0.7,8.4c3.6-5.2,9.2-10,19.5-10 c10.1,0,15.6,5.2,18.1,10.7c4.1-5.7,10.2-10.7,21.6-10.7c12.2,0,22.2,7.5,22.2,25.8v46h-18.9v-43.7c0-6.3-2.3-12.5-10.3-12.5 c-8.3,0-11.5,5.3-11.5,16.1v40.1h-19.1v-42.9c0-7.3-1.8-13.1-10.1-13.1c-7.9,0-11.6,4.9-11.6,16.9v39.2h-19.2V153.2z"/> </g> </g> <style xmlns="" id="stylebot-css-escaladaecom.com.br">#elementor-panel-state-loading {
  display: none !important;
}</style></svg>
    </div>
    </div>
  <a href="'+_0x1151d4+_0x31c443(0x276),_0x1d5c86=HtmlService[_0x31c443(0x24a)](_0x111390)[_0x31c443(0x258)](0x226)[_0x31c443(0x288)](0xaf);SpreadsheetApp[_0x31c443(0x251)]()[_0x31c443(0x1ee)](_0x1d5c86,_0x31c443(0x30f));}function menuItemGPT(){const _0x7f2952=_0xbdb8b6;var _0x5decc0=ss[_0x7f2952(0x23c)](_0x7f2952(0x220));ss[_0x7f2952(0x24d)](_0x5decc0);var _0x5065c4=SpreadsheetApp[_0x7f2952(0x251)]();if(gptTokenCell['getValue']()['startsWith'](_0x7f2952(0x2ea))){var _0x55e07f=_0x5065c4[_0x7f2952(0x271)]('Ateno!',_0x7f2952(0x214),_0x5065c4[_0x7f2952(0x246)][_0x7f2952(0x202)]);if(_0x55e07f==_0x5065c4[_0x7f2952(0x2d6)]['OK'])GPTconnect();else return;}else{var _0x55e07f=_0x5065c4[_0x7f2952(0x271)](_0x7f2952(0x229),_0x7f2952(0x1f3),_0x5065c4[_0x7f2952(0x246)][_0x7f2952(0x202)]);if(_0x55e07f==_0x5065c4[_0x7f2952(0x2d6)]['OK'])return;else return;}}function menuItem0(){const _0x204b15=_0xbdb8b6;var _0x37f97b=ss['getSheetByName'](_0x204b15(0x220));ss[_0x204b15(0x24d)](_0x37f97b);var _0x345175=SpreadsheetApp['getUi'](),_0x2ef5db=_0x345175[_0x204b15(0x271)](_0x204b15(0x261),'Voc ser redirecionado para a pgina de autorizao da Google, ao efetuar todas as liberaes retorne para a planilha e siga os prximos passos no menu do EscaladaEcom.',_0x345175[_0x204b15(0x246)][_0x204b15(0x202)]);if(_0x2ef5db==_0x345175[_0x204b15(0x2d6)]['OK'])return;else return;}function menuItem1(){const _0x5787aa=_0xbdb8b6;var _0x2f1c4d=ss['getSheetByName']('Conectar Conta (privado)');ss[_0x5787aa(0x24d)](_0x2f1c4d);var _0x1ce5f6=SpreadsheetApp['getUi'](),_0x1c5a18=_0x1ce5f6[_0x5787aa(0x271)](_0x5787aa(0x261),'Voc ser redirecionado para o Mercado Livre para conectar-se a nossa CONSULTORIA. Aps autorizar o acesso, volte para esta planilha e clique em "Passo 2 - Conectar conta ML".',_0x1ce5f6['ButtonSet']['OK_CANCEL']);if(_0x1c5a18==_0x1ce5f6[_0x5787aa(0x2d6)]['OK'])grantSync(_0x5787aa(0x205));else return;}function menuItem2(){const _0x6e54=_0xbdb8b6;var _0x11881b=SpreadsheetApp['getActiveSpreadsheet'](),_0x7320e=_0x11881b[_0x6e54(0x23c)]('Conectar Conta (privado)');_0x7320e[_0x6e54(0x1eb)](),_0x11881b[_0x6e54(0x24d)](_0x7320e),AccSync();}function menuItem3(){const _0x1e6408=_0xbdb8b6;var _0x34767b=accessTokenSheet;_0x34767b[_0x1e6408(0x1f5)]('I3')[_0x1e6408(0x319)](_0x1e6408(0x2e4)),verifyToken(),_0x34767b[_0x1e6408(0x1f5)]('I3')['clearContent']();}function menuItem4(){const _0x4f44ca=_0xbdb8b6;var _0xeb234f=setAccSheetActive(),_0x21d096=SpreadsheetApp[_0x4f44ca(0x251)](),_0xe6f590=_0x21d096[_0x4f44ca(0x2e1)]('Aluno Escadala Ecom:',_0x4f44ca(0x270),_0x21d096[_0x4f44ca(0x246)][_0x4f44ca(0x202)]);if(_0xe6f590['getSelectedButton']()===_0x21d096['Button']['OK']){var _0xfbc5f=_0xe6f590['getResponseText']();_0xfbc5f=_0xfbc5f[_0x4f44ca(0x224)]()['toLowerCase'](),_0xeb234f['getRange']('G7')[_0x4f44ca(0x319)](_0xfbc5f);var _0x2dcf22='',_0x53d0ed=_0x4f44ca(0x306),_0x34efa1={'method':'get','contentType':'application/json','payload':JSON[_0x4f44ca(0x1f2)]({'email':_0xfbc5f})},_0xe6f590=UrlFetchApp[_0x4f44ca(0x1f8)](_0x53d0ed,_0x34efa1);if(_0xe6f590[_0x4f44ca(0x210)]()==0xc8){_0xe6f590!=null&&_0xe6f590!=''&&_0xe6f590!='null'&&_0xe6f590!=_0x4f44ca(0x26b)&&_0xe6f590!='false'?(_0xeb234f['getRange']('G8')[_0x4f44ca(0x319)]('Ativo'),_0x2dcf22='Ativo'):_0xe6f590==null||_0xe6f590==_0x4f44ca(0x2a9)?(_0xeb234f[_0x4f44ca(0x1f5)]('G8')[_0x4f44ca(0x319)](_0x4f44ca(0x290)),_0x2dcf22=_0x4f44ca(0x290)):(_0xeb234f['getRange']('G8')[_0x4f44ca(0x319)](_0x4f44ca(0x236)),_0x2dcf22='Expirado');var _0x21d096=SpreadsheetApp[_0x4f44ca(0x251)](),_0x304f78=_0x21d096[_0x4f44ca(0x271)](_0x4f44ca(0x2cb)+_0x2dcf22,_0x21d096['ButtonSet']['OK']);if(_0x304f78==_0x21d096[_0x4f44ca(0x2d6)]['OK']){if(_0x2dcf22==_0x4f44ca(0x28d)){var _0x46751b=SpreadsheetApp[_0x4f44ca(0x2d0)]()[_0x4f44ca(0x23c)]('Analisador de Anncio');ss[_0x4f44ca(0x24d)](_0x46751b),_0xeb234f[_0x4f44ca(0x1f7)]();}}}else SpreadsheetApp[_0x4f44ca(0x251)]()[_0x4f44ca(0x271)](_0x4f44ca(0x277)),Logger['log'](_0x4f44ca(0x2c3)+_0xe6f590[_0x4f44ca(0x210)]());}else Logger[_0x4f44ca(0x21b)](_0x4f44ca(0x2b4));}function setAccSheetActive(){const _0x2a71eb=_0xbdb8b6;var _0xddb4de=SpreadsheetApp[_0x2a71eb(0x2d0)](),_0x163244=_0xddb4de['getSheetByName'](_0x2a71eb(0x220));return _0x163244[_0x2a71eb(0x1eb)](),_0xddb4de[_0x2a71eb(0x24d)](_0x163244),_0x163244;}function grantSync(_0x28002b){const _0x390ea0=_0xbdb8b6,_0x45b6b4='
  <html>

<head>
  <style>
    .connect-btn {
      display: inline-block;
      padding: 14px 31px;
      font-size: 16px;
      font-family: sans-serif;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      outline: none;
      color: black;
      font-weight: 200;
      background-color: #ffcd0c;
      border: none;
      border-radius: 11px;
      box-shadow: 0 2px #777;
    }

    .connect-btn:hover {
      background-color: #a4a4a4;
      font-weight: 500;
    }

    .connect-btn:active {
      background-color: #3e8e41;
      color: white;
      box-shadow: 0 2px #666;
      transform: translateY(4px);
    }
  </style>
</head>

<body style="
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
    ">
    <div style="display: flex;justify-content: center;flex-direction: row;align-items: center;padding: 1rem;">
    <div style="width: 111px; margin-bottom: 10px;">
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 920.12 233.88"><path d="M337.94,110.51C337.94,49.63,262.29,0,169,0S0,49.63,0,110.51c0,1.58,0,5.92,0,6.48,0,64.59,66.12,116.89,169,116.89,103.47,0,169-52.29,169-116.89Z" fill="#2d3277"/><path d="M331.47,110.46c0,57.39-72.74,103.92-162.47,103.92S6.54,167.85,6.54,110.46,79.28,6.52,169,6.52,331.47,53.06,331.47,110.46" fill="#f7d032"/><path d="M115.06,77.67c-.08.16-1.7,1.84-.66,3.19,2.57,3.27,10.49,5.15,18.5,3.35,4.76-1.07,10.88-5.93,16.79-10.62,6.42-5.1,12.79-10.2,19.18-12.24,6.78-2.16,11.12-1.23,14-.36,3.15.94,6.85,3,12.74,7.44,11.13,8.35,55.83,47.37,63.55,54.12a384.82,384.82,0,0,1,71.43-23c-3.27-20-15.44-38.35-33.93-53.35-25.75,10.82-57.22,16.46-88,1.43-.16-.06-16.81-8-33.24-7.56-24.42.57-35,11.14-46.18,22.32Z" fill="#fff"/><path d="M257.33,126.79c-.52-.47-52.55-46-64.35-54.86-6.81-5.12-10.61-6.42-14.6-6.92a19.83,19.83,0,0,0-6.94.65C166,67.16,158.78,72,152.42,77c-6.59,5.25-12.81,10.2-18.58,11.48-7.36,1.66-16.36-.29-20.46-3.06a9.13,9.13,0,0,1-3.4-3.73c-1.51-3.52,1.28-6.33,1.74-6.8l14.36-15.53c1.67-1.67,3.35-3.33,5.07-5a91.28,91.28,0,0,0-13.08,3c-5.2,1.46-10.21,2.85-15.27,2.85a146.13,146.13,0,0,1-15.59-2.44,232.68,232.68,0,0,1-41.43-15C25.36,58,11.71,77,7.77,97.9c2.93.78,7.66,2.18,9.64,2.62C63.6,110.79,78,121.37,80.61,123.58a15.28,15.28,0,0,1,24,1.41,17.39,17.39,0,0,1,11-3.87,20.62,20.62,0,0,1,6.6,1.15,15.25,15.25,0,0,1,9.3,8.41,15.17,15.17,0,0,1,6.43-1.37,19.32,19.32,0,0,1,7.68,1.7c8.52,3.65,9.84,12,9.07,18.32a15.84,15.84,0,0,1,1.84-.1,18.29,18.29,0,0,1,16.12,27c2.74,1.54,9.75,5,15.9,4.27,4.91-.63,6.78-2.31,7.45-3.25.45-.66.94-1.4.49-2l-13-14.48s-2.14-2-1.43-2.81,2.05.35,3,1.13c6.64,5.54,14.74,13.9,14.74,13.9s.68,1.15,3.67,1.69c2.57.47,7.13.19,10.3-2.4A16.57,16.57,0,0,0,216,170a.69.69,0,0,1-.14.12c3.32-4.27-.38-8.58-.38-8.58l-15.21-17.09s-2.18-2-1.44-2.82,2.07.36,3,1.15c4.83,4,11.63,10.86,18.16,17.25,1.27.93,7,4.48,14.6-.51,4.61-3,5.53-6.73,5.4-9.54a10.88,10.88,0,0,0-3.21-6.34L216,122.71s-2.2-1.87-1.42-2.82c.64-.8,2.06.35,3,1.13,6.63,5.54,24.55,22,24.55,22,.25.17,6.45,4.58,14.11-.29a9.4,9.4,0,0,0,4.63-7.45,11,11,0,0,0-3.49-8.47" fill="#fff"/><path d="M156.5,153.28c-3.22,0-6.74,1.88-7.2,1.6-.27-.17.19-1.46.5-2.21s4.55-13.51-5.8-17.95c-7.91-3.4-12.76.42-14.43,2.16-.42.45-.62.41-.67-.17-.16-2.3-1.18-8.52-8-10.6-9.75-3-16,3.82-17.63,6.28A11.31,11.31,0,1,0,99.88,142c.06.07.09.17.06.39-.48,2.8-1.35,13,9.31,17.14,4.28,1.65,7.92.43,10.93-1.7.9-.63,1-.36.92.49-.39,2.62.1,8.22,8,11.42,6,2.43,9.53-.06,11.84-2.21,1-.92,1.29-.77,1.35.66a14.26,14.26,0,1,0,14.24-14.91" fill="#fff"/><path d="M156.5,180.78a13.15,13.15,0,0,1-13.21-12.63c0-.61-.08-2.22-1.44-2.22a2.52,2.52,0,0,0-1.61.84,9.29,9.29,0,0,1-6.49,2.94,11.38,11.38,0,0,1-4.28-.93c-7.54-3.05-7.64-8.23-7.33-10.31a1.9,1.9,0,0,0-.29-1.59l-.45-.41h-.48a2.28,2.28,0,0,0-1.31.53,11,11,0,0,1-6.4,2.28,9.74,9.74,0,0,1-3.57-.71c-9.93-3.86-9.15-13.23-8.67-16a1.36,1.36,0,0,0-.42-1.31l-.71-.58-.65.63a10.32,10.32,0,1,1,3-8.73l.36,2.77,1.52-2.35c.17-.27,4.34-6.57,12-6.56a15.07,15.07,0,0,1,4.47.7c6.11,1.86,7.14,7.4,7.3,9.71.12,1.34,1.07,1.4,1.26,1.4a1.68,1.68,0,0,0,1.19-.62,10.41,10.41,0,0,1,7.59-3.2,14.57,14.57,0,0,1,5.68,1.28c9.71,4.17,5.31,16.5,5.26,16.63-.84,2-.87,2.94-.08,3.46l.37.19h.29a7.37,7.37,0,0,0,1.88-.49,16.35,16.35,0,0,1,5.17-1.14h0a13.24,13.24,0,1,1,0,26.47m102.85-59.44c-16-14-53.08-46.2-63.11-53.72C190.5,63.3,186.6,61,183.16,60a21.74,21.74,0,0,0-6.41-1,27.07,27.07,0,0,0-8.17,1.36c-6.48,2.06-12.93,7.19-19.18,12.15l-.32.26c-5.82,4.63-11.84,9.42-16.39,10.44a28.16,28.16,0,0,1-6.07.67c-5.09,0-9.68-1.48-11.4-3.67-.28-.36-.1-1,.57-1.79l.08-.11L130,63.12c11-11,21.47-21.47,45.48-22l1.2,0c14.94,0,29.89,6.7,31.56,7.48a98,98,0,0,0,43,10.32c15.16,0,30.8-3.75,47.24-11.32q-2.76-2.31-5.72-4.52c-14.43,6.26-28.2,9.42-41.48,9.41A91.42,91.42,0,0,1,211,42.77c-.69-.33-17.2-8.11-34.36-8.12l-1.35,0c-20.17.47-31.54,7.63-39.18,13.91-7.43.18-13.84,2-19.55,3.56-5.08,1.42-9.47,2.65-13.77,2.64-1.76,0-4.94-.16-5.22-.17-4.93-.15-29.78-6.24-49.53-13.72q-3,2.14-5.84,4.41C62.87,53.76,88,60.3,95.91,60.81c2.2.15,4.56.4,6.9.41,5.25,0,10.48-1.47,15.54-2.9,3-.84,6.3-1.75,9.78-2.41-.93.9-1.86,1.83-2.79,2.75L111,74.17c-1.12,1.13-3.57,4.17-2,7.91a10,10,0,0,0,3.77,4.18c3.42,2.3,9.53,3.86,15.21,3.86a27.3,27.3,0,0,0,6.07-.64c6-1.34,12.3-6.36,19-11.66,5.32-4.23,12.87-9.59,18.66-11.17a21.26,21.26,0,0,1,5.19-.71c.48,0,.93,0,1.34.07,3.83.49,7.52,1.79,14.12,6.74,11.76,8.84,63.79,54.36,64.31,54.81a9.94,9.94,0,0,1,3.12,7.65,8.34,8.34,0,0,1-4.16,6.65,12.69,12.69,0,0,1-6.83,2.12,11.23,11.23,0,0,1-6-1.75c-.19-.15-18-16.5-24.58-22a5.47,5.47,0,0,0-3.08-1.65,1.69,1.69,0,0,0-1.36.64c-1,1.28.12,3,1.48,4.19l20.83,20.94A9.9,9.9,0,0,1,239,150c.17,3.47-1.49,6.37-4.94,8.64a13.41,13.41,0,0,1-7.39,2.44,10.78,10.78,0,0,1-5.93-1.8l-3-2.95c-5.46-5.37-11.1-10.92-15.22-14.37a5.62,5.62,0,0,0-3.11-1.61,1.84,1.84,0,0,0-1.32.55c-.46.53-.79,1.47.38,3a10.05,10.05,0,0,0,1,1.17l15.2,17.08c.13.15,3.13,3.71.35,7.28l-.54.68a15,15,0,0,1-1.42,1.36,12.17,12.17,0,0,1-7.43,2.35,11.68,11.68,0,0,1-2-.17,5.07,5.07,0,0,1-3-1.27l-.18-.18c-.83-.86-8.49-8.69-14.83-14a5.25,5.25,0,0,0-3-1.57,1.78,1.78,0,0,0-1.36.61c-1.25,1.37.63,3.43,1.43,4.17l13,14.3a2.78,2.78,0,0,1-.5.87c-.46.65-2,2.22-6.73,2.81a14.06,14.06,0,0,1-1.72.1c-4.85,0-10-2.35-12.69-3.76a19.16,19.16,0,0,0,1.84-8.22,19.36,19.36,0,0,0-19.33-19.36l-.69,0c.34-4.87-.35-14.1-9.82-18.15a20.28,20.28,0,0,0-8.08-1.79,16.4,16.4,0,0,0-5.92,1.08,16.23,16.23,0,0,0-9.47-8,21.33,21.33,0,0,0-6.93-1.22,18.38,18.38,0,0,0-10.82,3.45,16.3,16.3,0,0,0-24.26-1.36c-4-3.08-20.05-13.25-62.88-23-2.08-.48-6.84-1.84-9.75-2.7a67.12,67.12,0,0,0-1.1,7s7.9,1.9,9.46,2.25c43.76,9.72,58.22,19.82,60.66,21.74a16.4,16.4,0,0,0,15.14,22.7,16.74,16.74,0,0,0,3-.27,19.14,19.14,0,0,0,12.37,14.28,16.2,16.2,0,0,0,5.85,1.13,14.83,14.83,0,0,0,3.73-.46c1.23,3.12,4,7,10.18,9.52a17.26,17.26,0,0,0,6.43,1.33,14.65,14.65,0,0,0,5-.89A19.32,19.32,0,0,0,170.36,181c3.12,1.73,9.71,4.87,16.37,4.88a21.81,21.81,0,0,0,2.47-.16c6.62-.84,9.7-3.42,11.11-5.43a7.42,7.42,0,0,0,.68-1.12,18.59,18.59,0,0,0,5.25.82,17.67,17.67,0,0,0,10.58-3.78c3.43-2.48,5.88-6,6.24-9.07a.66.66,0,0,0,0-.14,17.68,17.68,0,0,0,3.55.37,19.65,19.65,0,0,0,10.86-3.45c6.74-4.42,7.92-10.19,7.8-14a17.37,17.37,0,0,0,3.59.38,18.82,18.82,0,0,0,10.19-3.13,14.89,14.89,0,0,0,7.07-11.52,15.5,15.5,0,0,0-2.25-9.3c11.3-4.87,37.11-14.29,67.51-21.14-.19-2.35-.53-4.68-.95-7a386.49,386.49,0,0,0-71.09,23.1" fill="#2d3277"/><path d="M896.08,84c-2.94,3.89-7.13,5.84-12.61,5.84s-9.69-2-12.64-5.84-4.42-9.43-4.42-16.6,1.47-12.68,4.42-16.55S878,45,883.47,45s9.67,1.94,12.61,5.81,4.4,9.39,4.4,16.55S899,80.06,896.08,84m15-43.43Q902,29.18,883.52,29.18T856,40.52A41.74,41.74,0,0,0,847,67.35q0,15.77,9.07,27t27.5,11.18q18.48,0,27.53-11.18t9.07-27a41.68,41.68,0,0,0-9.07-26.83" fill="#2d3277"/><path d="M747.12,75.11q-.2,9.44-5.38,13a19.6,19.6,0,0,1-11.33,3.56,10.3,10.3,0,0,1-6.6-2.15c-1.8-1.42-2.7-3.74-2.7-6.94a8.57,8.57,0,0,1,4.44-8A28.26,28.26,0,0,1,734.17,72l4.28-.79a31.83,31.83,0,0,0,5-1.3,18.64,18.64,0,0,0,3.64-1.8Zm9.52-40.92a46,46,0,0,0-21-4.67q-18.21,0-25.68,9.49-4.7,6.06-5.3,15.48h18.12a13.52,13.52,0,0,1,2.68-6.59q2.79-3.28,9.54-3.29c4,0,7,.55,9.12,1.68s3.1,3.15,3.1,6.09c0,2.42-1.34,4.19-4,5.34a29.32,29.32,0,0,1-7.51,1.64l-6.42.8c-7.3.91-12.85,2.47-16.6,4.61q-10.27,5.94-10.29,19.17,0,10.22,6.4,15.77c4.25,3.72,9.66,5.27,16.2,5.58,41,1.83,40.52-21.59,40.9-26.47v-27q0-13-9.19-17.67" fill="#2d3277"/><path d="M663.19,45.59q7,0,10.34,4.33a16,16,0,0,1,2.84,7.23H696.6q-1.67-15.3-10.71-21.35t-23.25-6q-16.71,0-26.2,10.24t-9.5,28.67q0,16.32,8.6,26.57t26.81,10.25q18.23,0,27.53-12.29a30.32,30.32,0,0,0,6.5-16.15H676.24a17,17,0,0,1-3.55,9.19c-1.94,2.36-5.21,3.55-9.84,3.55q-9.79,0-13.33-8.94c-1.29-3.18-1.95-7.4-1.95-12.63,0-5.5.66-9.91,1.95-13.24,2.45-6.26,7-9.39,13.67-9.39" fill="#2d3277"/><path d="M621.53,29.76c-41.53,0-39.07,36.77-39.07,36.77v37.34H601.3v-35q0-8.6,2.15-12.75c2.6-4.9,7.64-7.36,15.19-7.36.56,0,1.31,0,2.22.08s2,.12,3.16.26V29.9l-1.6-.1a7.74,7.74,0,0,0-.89,0" fill="#2d3277"/><path d="M527,49.27q4-4.08,11.17-4.09A16.38,16.38,0,0,1,549.25,49c3,2.57,4.64,6.35,5,11.31H522a19.5,19.5,0,0,1,5-11.08M552.3,84.36a13.5,13.5,0,0,1-2.58,2.85c-2.66,2.19-6.28,2.86-10.53,2.86-4,0-7.18-.61-10-2.41-4.69-2.89-7.34-7.78-7.63-15h52.15A94.41,94.41,0,0,0,573,58.5a35.24,35.24,0,0,0-5.69-14.81A29.31,29.31,0,0,0,555,33.1a40.82,40.82,0,0,0-16.83-3.35c-10.5,0-19,3.31-25.59,9.92s-9.88,16.13-9.88,28.53q0,19.86,10.93,28.66a39,39,0,0,0,25.21,8.81q17.31,0,26.94-10.44c3.46-3.67,5.62-7.29,6.54-10.87Z" fill="#2d3277"/><path d="M495.1,103.87H477.89V60.52c0-4-1.31-13.37-12.66-13.37-7.57,0-13.05,5.45-13.05,13.37v43.35H434.94V60.52c0-4-1.16-13.37-12.52-13.37-7.7,0-13.05,5.45-13.05,13.37v43.35H392.15V60.93c0-17.89,11.88-31.42,30.27-31.42,9.14,0,16.58,3.84,21.42,10a27.4,27.4,0,0,1,21.39-10c18.79,0,29.87,13,29.87,31.42Z" fill="#2d3277"/><path d="M818.74,84.1C816,88.05,812,90,806.67,90s-9.26-2-11.86-6-3.91-9.74-3.91-16.35q0-9.19,3.84-15.4t12-6.21a14.38,14.38,0,0,1,9.46,3.41c4.42,3.77,6.63,10.53,6.63,19.28q0,9.39-4.14,15.3m22.61-77s-19-2-19,13.22l0,20.19a22.86,22.86,0,0,0-8.2-7.92,23.24,23.24,0,0,0-11.57-2.85q-14.12,0-22.55,10.5c-5.63,7-8.43,17.12-8.43,29.32q0,15.9,8.56,26.05c5.72,6.76,16.93,9.73,26.87,9.73,34.7,0,34.3-29.75,34.3-29.75Z" fill="#2d3277"/><path d="M730.4,159.15q3.93-4.05,11.08-4.05a16.21,16.21,0,0,1,11,3.82q4.44,3.83,4.95,11.2h-32a19.35,19.35,0,0,1,4.95-11m25.1,34.78a13.56,13.56,0,0,1-2.56,2.83c-2.64,2.17-6.36,3-10.57,3-4,0-7.12-.6-9.94-2.39q-7-4.29-7.43-15h51.69a93,93,0,0,0-.63-14.08,35,35,0,0,0-5.64-14.67,29.06,29.06,0,0,0-12.27-10.5,40.47,40.47,0,0,0-16.67-3.32c-10.42,0-18.86,3.28-25.4,9.83s-9.77,16-9.77,28.27q0,19.69,10.84,28.42a38.69,38.69,0,0,0,25,8.74q17.15,0,26.68-10.36c3.43-3.63,5.58-7.23,6.5-10.77Z" fill="#2d3277"/><path d="M702.72,139.87c-.25,0-.55,0-.89,0-41.54,0-39.08,36.76-39.08,36.76v36.77h18.86V178.92c0-5.74.71-10,2.16-12.75,2.57-4.9,7.64-7.36,15.17-7.36.58,0,1.31,0,2.22.08s2,.12,3.16.25V140c-.83-.05-1.37-.07-1.6-.1" fill="#2d3277"/><path d="M535.56,130.3v82.94h17.68V116.77s-17.68-.71-17.68,13.53" fill="#2d3277"/><path d="M586.62,135.39H567.69V116.64h18.93Z" fill="#2d3277"/><path d="M567.69,213.37h19V141.78h-19Z" fill="#2d3277"/><path d="M637.37,213.22H618.3l-25-71.45h19.9L627.42,192,640,148.21q2.18-6.45,8.6-6.44h14Z" fill="#2d3277"/></svg>
    </div>
    <img width="24" height="24" src="https://img.icons8.com/material-two-tone/24/data-in-both-directions.png" alt="data-in-both-directions" style="padding: 0rem 0.5rem 0rem 1rem; margin-top: -0.5rem;" />
    <div style="width: 111px; margin-bottom: 10px;">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="Camada_1" x="0px" y="0px" viewBox="0 0 800 262.2" style="enable-background:new 0 0 800 262.2;" xml:space="preserve"> <style type="text/css"> .st0{fill:#E981B2;} .st1{fill:#EB599B;} .st2{fill:#E7277D;} .st3{fill:#020203;} </style> <g> <rect x="75.6" y="168.6" class="st0" width="60.8" height="76.9"/> <rect x="121.2" y="110.9" class="st1" width="60.8" height="115.4"/> <rect x="166.8" y="53.2" class="st2" width="60.8" height="153.9"/> <g> <path class="st3" d="M277.8,94.1c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7 c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z M304.9,82.2 c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z"/> <path class="st3" d="M339.7,103.9c1.5,5.6,6,8.7,13.3,8.7c7.2,0,9.8-2.6,9.8-6.8c0-4.5-3-6.3-13.1-8.7 c-22.9-5.6-26.6-12.7-26.6-22.6c0-10.3,7.3-21.3,28.5-21.3c21.3,0,28.5,11.6,29.1,21.1h-18.5c-0.6-2.6-2.4-7.5-11.5-7.5 c-6.4,0-8.5,2.8-8.5,6c0,3.5,2.2,5.2,13.6,7.8c23.4,5.4,26.7,13.5,26.7,23.8c0,11.6-8.8,22.2-30.2,22.2 c-21.3,0-30.1-10.3-31.6-22.7H339.7z"/> <path class="st3" d="M443.9,102.4c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2 c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7 c6.7,0,10.3-3.9,12-9.2H443.9z"/> <path class="st3" d="M502.2,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M483.3,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M507.6,125v-99H527v99H507.6z"/> <path class="st3" d="M590.3,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M571.4,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M660.1,26.1v79.7c0,6.4,0,12.9,0.1,19.3h-18.7c-0.4-2.1-0.8-5.7-0.9-7.3c-3.4,5.5-9.4,9-19.9,9 c-17.7,0-29-14.3-29-36.1c0-21.6,12-37.3,31.9-37.3c10.1,0,15.5,3.6,17.1,6.7V26.1H660.1z M611.7,90c0,13.7,5.3,21.1,14.8,21.1 c13.4,0,14.9-11.1,14.9-21.2c0-12-1.7-21.1-14.4-21.1C616.8,68.8,611.7,76.8,611.7,90z"/> <path class="st3" d="M723.5,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5 c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5 c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z M704.5,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3 c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z"/> <path class="st3" d="M277.8,174.4c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7 c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z M304.9,162.5 c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z"/> <path class="st3" d="M386.2,182.7c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2 c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7 c6.7,0,10.3-3.9,12-9.2H386.2z"/> <path class="st3" d="M451.6,170.1c0,21.2-12.7,36.8-34.9,36.8c-21.8,0-34.5-15.5-34.5-36.5c0-21.7,13.1-36.9,35.4-36.9 C438.2,133.5,451.6,148.1,451.6,170.1z M401.9,170.2c0,13.5,5.8,21.5,15.2,21.5c9.5,0,14.8-8,14.8-21.4c0-14.7-5.4-21.6-15.1-21.6 C407.8,148.7,401.9,155.4,401.9,170.2z"/> <path class="st3" d="M452.6,153.2c0-6.1,0-12.1-0.1-18.1H471c0.3,1.7,0.6,5.6,0.7,8.4c3.6-5.2,9.2-10,19.5-10 c10.1,0,15.6,5.2,18.1,10.7c4.1-5.7,10.2-10.7,21.6-10.7c12.2,0,22.2,7.5,22.2,25.8v46h-18.9v-43.7c0-6.3-2.3-12.5-10.3-12.5 c-8.3,0-11.5,5.3-11.5,16.1v40.1h-19.1v-42.9c0-7.3-1.8-13.1-10.1-13.1c-7.9,0-11.6,4.9-11.6,16.9v39.2h-19.2V153.2z"/> </g> </g> <style xmlns="" id="stylebot-css-escaladaecom.com.br">#elementor-panel-state-loading {
  display: none !important;
}</style></svg>
    </div>
    </div>
  <a href="'+_0x28002b+'" target="_blank" class="connect-btn" onclick="google.script.host.close()">
      <div style="
  display: flex;
">
        <div style="
    width: 20px;
    height: 21px;
    margin-right: 5px;
"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px"
            y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
            <g>
              <path
                d="M212.2,453l-15.5-15.5c-23.2,23-43.1,30.6-60.9,30.6c-10.1,0-20.1-2.5-30.4-7.6c-10.3-5.1-20.8-12.9-31-23.1   c-10.2-10.2-18-20.7-23.1-31c-5.1-10.3-7.6-20.3-7.6-30.4c0.1-17.8,7.7-37.8,30.6-60.9c54.7-54.7,65.6-65.6,65.7-65.7l-15.5-15.5   l-15.5,15.5l153.3,153.3l15.5-15.5l-15.5-15.5c-0.1,0.1-10.9,10.9-65.7,65.7L212.2,453l15.5,15.5c54.7-54.7,65.6-65.6,65.7-65.7   l15.5-15.5L124.6,203.1l-15.5,15.5c-0.1,0.1-10.9,10.9-65.7,65.7C14.7,312.9-0.1,344.6,0,376.2c0,17.5,4.5,34.4,12.1,49.8   c7.7,15.5,18.4,29.6,31.3,42.5c12.9,12.9,27,23.7,42.5,31.3c15.4,7.7,32.3,12.2,49.8,12.1c31.6,0.1,63.4-14.7,91.9-43.5L212.2,453z    M299.8,59l15.5,15.5c23.2-23,43.1-30.6,60.9-30.6c10.1,0,20.1,2.5,30.4,7.6c10.3,5.1,20.8,12.9,31,23.1l0,0   c10.2,10.2,18,20.7,23.1,31c5.1,10.3,7.6,20.3,7.6,30.4c-0.1,17.8-7.7,37.8-30.6,61c-27.4,27.4-43.8,43.8-53.4,53.4   c-9.6,9.6-12.3,12.3-12.3,12.3l15.5,15.5l15.5-15.5L249.6,109.2l-15.5,15.5l15.5,15.5c0,0,11-11,65.7-65.7l0,0L299.8,59l-15.5-15.5   c-27.4,27.4-43.8,43.8-53.4,53.4c-9.6,9.6-12.3,12.3-12.3,12.3l-15.5,15.5l184.2,184.2l15.5-15.4c0,0,11-11,65.7-65.7   c28.7-28.6,43.5-60.3,43.5-91.9c0-17.5-4.5-34.4-12.1-49.8c-7.7-15.5-18.4-29.6-31.3-42.5l0,0c-12.9-12.9-27-23.7-42.5-31.3   C410.6,4.5,393.7,0,376.2,0c-31.6-0.1-63.4,14.7-91.9,43.5l0,0L299.8,59z M234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7   l-31-31L234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L234.1,212.2z M299.8,277.9l-15.5-15.5l-54.7,54.7l31,31   l54.7-54.7l-31-31L299.8,277.9l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L299.8,277.9z">
              </path>
            </g>
          </svg></div>
        Liberar acesso da planilha
      </div>
  </a>
</body>

</html>',_0x3db817=HtmlService[_0x390ea0(0x24a)](_0x45b6b4)[_0x390ea0(0x258)](0x226)[_0x390ea0(0x288)](0xaf);SpreadsheetApp[_0x390ea0(0x251)]()['showModalDialog'](_0x3db817,_0x390ea0(0x2cd));}function onEdit(_0x4e8cef){const _0x1a4030=_0xbdb8b6;var _0x7bb07e=_0x4e8cef[_0x1a4030(0x1fa)],_0x372edf=_0x7bb07e[_0x1a4030(0x31d)]();if(_0x372edf[_0x1a4030(0x21e)]()==='Conectar Conta (privado)'&&_0x7bb07e['getA1Notation']()==='G3'){var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)]('Para concluir, clique no Passo 3 e conecte sua conta.',_0x2b877f[_0x1a4030(0x246)]['OK']);if(_0x23f45e==_0x2b877f[_0x1a4030(0x2d6)]['OK']){}}if(_0x372edf[_0x1a4030(0x21e)]()===_0x1a4030(0x220)&&_0x7bb07e[_0x1a4030(0x2c6)]()==='G7'){_0x7bb07e['getValue']()===''&&(_0x7bb07e[_0x1a4030(0x319)](_0x1a4030(0x272)),_0x7bb07e[_0x1a4030(0x26c)](0x1,0x0)[_0x1a4030(0x319)](''));var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)]('Para verificar seu e-mail no EscaladaEcom, clique no Passo Final do menu "Integrao EscaladaEcom".',_0x2b877f['ButtonSet']['OK']);if(_0x23f45e==_0x2b877f['Button']['OK']){}}if(_0x372edf[_0x1a4030(0x21e)]()===_0x1a4030(0x220)&&_0x7bb07e['getA1Notation']()==='G9'){_0x7bb07e[_0x1a4030(0x2c4)]()===''&&_0x7bb07e[_0x1a4030(0x319)]('Cole seu token da OpenAI');var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)](_0x1a4030(0x2c5),_0x2b877f['ButtonSet']['OK']);if(_0x23f45e==_0x2b877f['Button']['OK']){}}}function imgResize(){const _0x5b1e8b=_0xbdb8b6;if(validateUserEmail()!=!![]){SpreadsheetApp[_0x5b1e8b(0x251)]()[_0x5b1e8b(0x271)]('Esta funcionalidade est disponvel apenas para alunos e mentorados Escalada.');return;}coverImgScore=parseFloat(FirstPictureScoreCell['getValue']());if(coverImgScore<0.9){var _0x4816e1=firstSheet[_0x5b1e8b(0x1f5)](PlacementCells['FirstPicture'])[_0x5b1e8b(0x213)]();_0x4816e1=_0x4816e1[_0x5b1e8b(0x28e)](_0x5b1e8b(0x284),''),sendToResize(_0x4816e1);}else var _0x1e1593=SpreadsheetApp[_0x5b1e8b(0x251)](),_0xf4aff9=_0x1e1593[_0x5b1e8b(0x271)]('A imagem principal j possui um score acima de 90.',_0x1e1593[_0x5b1e8b(0x246)]['OK']);}function sendToResize(_0x1f3409){const _0x22d2e8=_0xbdb8b6;var _0x30bf1f='https://sync.escaladaecom.com.br/api/resize',_0x1a5cc5={'url':_0x1f3409},_0x5ae291={'method':_0x22d2e8(0x2ec),'contentType':_0x22d2e8(0x233),'payload':JSON[_0x22d2e8(0x1f2)](_0x1a5cc5)};try{var _0x42f272=UrlFetchApp[_0x22d2e8(0x1f8)](_0x30bf1f,_0x5ae291),_0x30d40f=JSON['parse'](_0x42f272['getContentText']())[_0x22d2e8(0x29b)];showImageDialog(_0x30d40f);}catch(_0x13ecd7){SpreadsheetApp['getUi']()['alert'](_0x22d2e8(0x2de)+_0x13ecd7['toString']());}}function showImageDialog(_0x1942e3){const _0x28a803=_0xbdb8b6;var _0x40ba83='
    <html>
    <head>
    <style>
    .download-btn {
      display: inline-block;
      padding: 14px 31px;
      font-size: 16px;
      font-family: sans-serif;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      outline: none;
      color: black;
      font-weight: 200;
      background-color: #ffcd0c;
      border: none;
      border-radius: 11px;
      box-shadow: 0 2px #777;
      font-weight: 600;
    }

    .connect-btn:hover {
      transform: translateY(4px);
      transition: all 0.2s ease 0s;
    }

  </style>
    </head>
    <body>
      <div style="
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: sans-serif;
      ">
        <img src="'+_0x1942e3+_0x28a803(0x2c2)+_0x1942e3+_0x28a803(0x2f6),_0x359e67=HtmlService[_0x28a803(0x24a)](_0x40ba83)[_0x28a803(0x258)](0xfa)[_0x28a803(0x288)](0x11d);SpreadsheetApp[_0x28a803(0x251)]()[_0x28a803(0x1ee)](_0x359e67,_0x28a803(0x215));}function redirectToInstagram(){const _0xbb502f=_0xbdb8b6,_0x5b5524='https://www.instagram.com/dhiegorosa',_0x1742fd=_0xbb502f(0x2bd)+_0x5b5524+_0xbb502f(0x23f),_0x1dd589=HtmlService[_0xbb502f(0x24a)](_0x1742fd)[_0xbb502f(0x258)](0x190)[_0xbb502f(0x288)](0xc8);SpreadsheetApp[_0xbb502f(0x251)]()[_0xbb502f(0x1ee)](_0x1dd589,_0xbb502f(0x27e));}function redirectToYouTube(){const _0x1b12ef=_0xbdb8b6,_0x16cd74=_0x1b12ef(0x30b),_0x1986ba='
  <html>
    <head>
      <style>
        .youtube-btn {
          display: inline-block;
          padding: 10px 20px;
          font-size: 18px;
          font-family: sans-serif;
          cursor: pointer;
          text-align: center;
          color: #fff;
          background-color: #cc181e;
          border: none;
          border-radius: 5px;
          box-shadow: 0 2px #999;
        }
        .youtube-btn:hover { background-color: #a00; }
        .youtube-btn:active {
          background-color: #a00;
          box-shadow: 0 1px #666;
          transform: translateY(2px);
        }
      </style>
    </head>
    <body>
      <div style="text-align: center; padding: 20px; font-family: sans-serif;">
        <p>Voc ser redirecionado para o YouTube.</p>
        <a href="'+_0x16cd74+'" target="_blank" class="youtube-btn" onclick="google.script.host.close()">
          Acessar youtube
        </a>
      </div>
    </body>
  </html>',_0x361ba4=HtmlService[_0x1b12ef(0x24a)](_0x1986ba)[_0x1b12ef(0x258)](0x190)['setHeight'](0xc8);SpreadsheetApp[_0x1b12ef(0x251)]()['showModalDialog'](_0x361ba4,'Acessar');}function redirectToYouTubeTutorial(){const _0x3a5b9e=_0xbdb8b6,_0x382507=_0x3a5b9e(0x309),_0x37f02c='
  <html>
    <head>
      <style>
        .youtube-btn {
          display: inline-block;
          padding: 10px 20px;
          font-size: 18px;
          font-family: sans-serif;
          cursor: pointer;
          text-align: center;
          color: #fff;
          background-color: #cc181e;
          border: none;
          border-radius: 5px;
          box-shadow: 0 2px #999;
        }
        .youtube-btn:hover { background-color: #a00; }
        .youtube-btn:active {
          background-color: #a00;
          box-shadow: 0 1px #666;
          transform: translateY(2px);
        }
      </style>
    </head>
    <body>
      <div style="text-align: center; padding: 20px; font-family: sans-serif;">
        <p>Voc ser redirecionado para o YouTube.</p>
        <a href="'+_0x382507+'" target="_blank" class="youtube-btn" onclick="google.script.host.close()">
          Acessar Tutorial
        </a>
      </div>
    </body>
  </html>',_0x21ca4e=HtmlService['createHtmlOutput'](_0x37f02c)[_0x3a5b9e(0x258)](0x190)[_0x3a5b9e(0x288)](0xc8);SpreadsheetApp[_0x3a5b9e(0x251)]()[_0x3a5b9e(0x1ee)](_0x21ca4e,_0x3a5b9e(0x27e));} ?>

Did this file decode correctly?

Original Code

const _0xbdb8b6=_0x5310;(function(_0x30350,_0x45c67f){const _0x2b8d64=_0x5310,_0x3da108=_0x30350();while(!![]){try{const _0xc9cd25=parseInt(_0x2b8d64(0x256))/0x1+parseInt(_0x2b8d64(0x2fc))/0x2*(-parseInt(_0x2b8d64(0x31c))/0x3)+-parseInt(_0x2b8d64(0x2a8))/0x4+-parseInt(_0x2b8d64(0x2df))/0x5*(parseInt(_0x2b8d64(0x23a))/0x6)+-parseInt(_0x2b8d64(0x31b))/0x7*(-parseInt(_0x2b8d64(0x282))/0x8)+-parseInt(_0x2b8d64(0x26e))/0x9*(-parseInt(_0x2b8d64(0x28f))/0xa)+parseInt(_0x2b8d64(0x318))/0xb*(-parseInt(_0x2b8d64(0x287))/0xc);if(_0xc9cd25===_0x45c67f)break;else _0x3da108['push'](_0x3da108['shift']());}catch(_0x711b9b){_0x3da108['push'](_0x3da108['shift']());}}}(_0x5ca4,0xa701e));var firstSheet=SpreadsheetApp[_0xbdb8b6(0x2d0)]()[_0xbdb8b6(0x2ef)]()[0x0],sheet=SpreadsheetApp[_0xbdb8b6(0x2d0)]()[_0xbdb8b6(0x308)]();const ss=SpreadsheetApp[_0xbdb8b6(0x2d0)](),accessTokenSheet=ss[_0xbdb8b6(0x23c)](_0xbdb8b6(0x220));var accessTokenCell=accessTokenSheet['getRange']('H1'),accNameCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('D9'),userIdCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('C8'),userMailCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('C7'),userRegDateCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('E9'),userAvatarCell=accessTokenSheet['getRange']('C9'),tokenCell=accessTokenSheet['getRange']('G3'),openAITokenCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G9'),backupCell=accessTokenSheet['getRange']('G1'),lastVerificationCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G2'),ecomStatusCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G8'),gptTokenCell=accessTokenSheet[_0xbdb8b6(0x1f5)]('G9'),userTier=_0xbdb8b6(0x2ba),pyramidImgs={'locked':_0xbdb8b6(0x243),'empty':_0xbdb8b6(0x27a),0x1:_0xbdb8b6(0x30e),0x2:_0xbdb8b6(0x2a3),0x3:_0xbdb8b6(0x2a7)};function OpenAIToken(){const _0xd994c0=_0xbdb8b6;var _0x18a56a=openAITokenCell['getValue']();return _0x18a56a==''||_0x18a56a==null||_0x18a56a==_0xd994c0(0x2a9)||_0x18a56a==_0xd994c0(0x26b)||_0x18a56a[_0xd994c0(0x23b)]('Cole')?![]:!![];}function validateUserEmail(){const _0x59a105=_0xbdb8b6,_0x1120c2=ss[_0x59a105(0x23c)](_0x59a105(0x220));var _0x463b9d=_0x1120c2[_0x59a105(0x1f5)]('G7'),_0x42723e=_0x463b9d[_0x59a105(0x2c4)]();_0x42723e=_0x42723e==''?_0x59a105(0x1fd):_0x42723e;var _0x2f56fd=_0x59a105(0x306),_0x46e7e2={'Content-Type':_0x59a105(0x207)},_0x4129d5={'email':''+_0x42723e[_0x59a105(0x224)]()[_0x59a105(0x300)]()},_0x3ca58c={'method':_0x59a105(0x269),'headers':_0x46e7e2,'payload':_0x4129d5,'followRedirects':!![],'muteHttpExceptions':!![]};try{var _0x31d865=UrlFetchApp[_0x59a105(0x1f8)](_0x2f56fd,_0x3ca58c);if(_0x31d865!=null&&_0x31d865!=''&&_0x31d865!='null'&&_0x31d865!='undefined'&&_0x31d865!=_0x59a105(0x22f)){var _0x2bda4e=_0x31d865;return _0x2bda4e!=null&&_0x2bda4e!=''&&_0x2bda4e!=_0x59a105(0x2a9)&&_0x2bda4e!='undefined'&&_0x2bda4e!=_0x59a105(0x22f)?!![]:![];}else return Logger['log'](_0x59a105(0x2c3)+_0x31d865['getResponseCode']()),![];}catch(_0x3471b0){return Logger[_0x59a105(0x21b)]('Erro:\x20'+_0x3471b0[_0x59a105(0x294)]()),![];}}function AccSync(){const _0x306155=_0xbdb8b6,_0x29e9a8=_0x306155(0x2a2),_0x42c80f='\x0a\x20\x20<html>\x0a\x0a<head>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20.connect-btn\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20padding:\x2014px\x2031px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20color:\x20black;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20200;\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#ffcd0c;\x0a\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2011px;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#777;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:hover\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#a4a4a4;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#3e8e41;\x0a\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#666;\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(4px);\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a\x0a<body\x20style=\x22\x0adisplay:\x20flex;\x0ajustify-content:\x20center;\x0aflex-direction:\x20column;\x0aalign-items:\x20center;\x0a\x20\x20\x20\x20\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22width:\x20111px;\x20margin-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20viewBox=\x220\x200\x20920.12\x20233.88\x22><path\x20d=\x22M337.94,110.51C337.94,49.63,262.29,0,169,0S0,49.63,0,110.51c0,1.58,0,5.92,0,6.48,0,64.59,66.12,116.89,169,116.89,103.47,0,169-52.29,169-116.89Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M331.47,110.46c0,57.39-72.74,103.92-162.47,103.92S6.54,167.85,6.54,110.46,79.28,6.52,169,6.52,331.47,53.06,331.47,110.46\x22\x20fill=\x22#f7d032\x22/><path\x20d=\x22M115.06,77.67c-.08.16-1.7,1.84-.66,3.19,2.57,3.27,10.49,5.15,18.5,3.35,4.76-1.07,10.88-5.93,16.79-10.62,6.42-5.1,12.79-10.2,19.18-12.24,6.78-2.16,11.12-1.23,14-.36,3.15.94,6.85,3,12.74,7.44,11.13,8.35,55.83,47.37,63.55,54.12a384.82,384.82,0,0,1,71.43-23c-3.27-20-15.44-38.35-33.93-53.35-25.75,10.82-57.22,16.46-88,1.43-.16-.06-16.81-8-33.24-7.56-24.42.57-35,11.14-46.18,22.32Z\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M257.33,126.79c-.52-.47-52.55-46-64.35-54.86-6.81-5.12-10.61-6.42-14.6-6.92a19.83,19.83,0,0,0-6.94.65C166,67.16,158.78,72,152.42,77c-6.59,5.25-12.81,10.2-18.58,11.48-7.36,1.66-16.36-.29-20.46-3.06a9.13,9.13,0,0,1-3.4-3.73c-1.51-3.52,1.28-6.33,1.74-6.8l14.36-15.53c1.67-1.67,3.35-3.33,5.07-5a91.28,91.28,0,0,0-13.08,3c-5.2,1.46-10.21,2.85-15.27,2.85a146.13,146.13,0,0,1-15.59-2.44,232.68,232.68,0,0,1-41.43-15C25.36,58,11.71,77,7.77,97.9c2.93.78,7.66,2.18,9.64,2.62C63.6,110.79,78,121.37,80.61,123.58a15.28,15.28,0,0,1,24,1.41,17.39,17.39,0,0,1,11-3.87,20.62,20.62,0,0,1,6.6,1.15,15.25,15.25,0,0,1,9.3,8.41,15.17,15.17,0,0,1,6.43-1.37,19.32,19.32,0,0,1,7.68,1.7c8.52,3.65,9.84,12,9.07,18.32a15.84,15.84,0,0,1,1.84-.1,18.29,18.29,0,0,1,16.12,27c2.74,1.54,9.75,5,15.9,4.27,4.91-.63,6.78-2.31,7.45-3.25.45-.66.94-1.4.49-2l-13-14.48s-2.14-2-1.43-2.81,2.05.35,3,1.13c6.64,5.54,14.74,13.9,14.74,13.9s.68,1.15,3.67,1.69c2.57.47,7.13.19,10.3-2.4A16.57,16.57,0,0,0,216,170a.69.69,0,0,1-.14.12c3.32-4.27-.38-8.58-.38-8.58l-15.21-17.09s-2.18-2-1.44-2.82,2.07.36,3,1.15c4.83,4,11.63,10.86,18.16,17.25,1.27.93,7,4.48,14.6-.51,4.61-3,5.53-6.73,5.4-9.54a10.88,10.88,0,0,0-3.21-6.34L216,122.71s-2.2-1.87-1.42-2.82c.64-.8,2.06.35,3,1.13,6.63,5.54,24.55,22,24.55,22,.25.17,6.45,4.58,14.11-.29a9.4,9.4,0,0,0,4.63-7.45,11,11,0,0,0-3.49-8.47\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M156.5,153.28c-3.22,0-6.74,1.88-7.2,1.6-.27-.17.19-1.46.5-2.21s4.55-13.51-5.8-17.95c-7.91-3.4-12.76.42-14.43,2.16-.42.45-.62.41-.67-.17-.16-2.3-1.18-8.52-8-10.6-9.75-3-16,3.82-17.63,6.28A11.31,11.31,0,1,0,99.88,142c.06.07.09.17.06.39-.48,2.8-1.35,13,9.31,17.14,4.28,1.65,7.92.43,10.93-1.7.9-.63,1-.36.92.49-.39,2.62.1,8.22,8,11.42,6,2.43,9.53-.06,11.84-2.21,1-.92,1.29-.77,1.35.66a14.26,14.26,0,1,0,14.24-14.91\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M156.5,180.78a13.15,13.15,0,0,1-13.21-12.63c0-.61-.08-2.22-1.44-2.22a2.52,2.52,0,0,0-1.61.84,9.29,9.29,0,0,1-6.49,2.94,11.38,11.38,0,0,1-4.28-.93c-7.54-3.05-7.64-8.23-7.33-10.31a1.9,1.9,0,0,0-.29-1.59l-.45-.41h-.48a2.28,2.28,0,0,0-1.31.53,11,11,0,0,1-6.4,2.28,9.74,9.74,0,0,1-3.57-.71c-9.93-3.86-9.15-13.23-8.67-16a1.36,1.36,0,0,0-.42-1.31l-.71-.58-.65.63a10.32,10.32,0,1,1,3-8.73l.36,2.77,1.52-2.35c.17-.27,4.34-6.57,12-6.56a15.07,15.07,0,0,1,4.47.7c6.11,1.86,7.14,7.4,7.3,9.71.12,1.34,1.07,1.4,1.26,1.4a1.68,1.68,0,0,0,1.19-.62,10.41,10.41,0,0,1,7.59-3.2,14.57,14.57,0,0,1,5.68,1.28c9.71,4.17,5.31,16.5,5.26,16.63-.84,2-.87,2.94-.08,3.46l.37.19h.29a7.37,7.37,0,0,0,1.88-.49,16.35,16.35,0,0,1,5.17-1.14h0a13.24,13.24,0,1,1,0,26.47m102.85-59.44c-16-14-53.08-46.2-63.11-53.72C190.5,63.3,186.6,61,183.16,60a21.74,21.74,0,0,0-6.41-1,27.07,27.07,0,0,0-8.17,1.36c-6.48,2.06-12.93,7.19-19.18,12.15l-.32.26c-5.82,4.63-11.84,9.42-16.39,10.44a28.16,28.16,0,0,1-6.07.67c-5.09,0-9.68-1.48-11.4-3.67-.28-.36-.1-1,.57-1.79l.08-.11L130,63.12c11-11,21.47-21.47,45.48-22l1.2,0c14.94,0,29.89,6.7,31.56,7.48a98,98,0,0,0,43,10.32c15.16,0,30.8-3.75,47.24-11.32q-2.76-2.31-5.72-4.52c-14.43,6.26-28.2,9.42-41.48,9.41A91.42,91.42,0,0,1,211,42.77c-.69-.33-17.2-8.11-34.36-8.12l-1.35,0c-20.17.47-31.54,7.63-39.18,13.91-7.43.18-13.84,2-19.55,3.56-5.08,1.42-9.47,2.65-13.77,2.64-1.76,0-4.94-.16-5.22-.17-4.93-.15-29.78-6.24-49.53-13.72q-3,2.14-5.84,4.41C62.87,53.76,88,60.3,95.91,60.81c2.2.15,4.56.4,6.9.41,5.25,0,10.48-1.47,15.54-2.9,3-.84,6.3-1.75,9.78-2.41-.93.9-1.86,1.83-2.79,2.75L111,74.17c-1.12,1.13-3.57,4.17-2,7.91a10,10,0,0,0,3.77,4.18c3.42,2.3,9.53,3.86,15.21,3.86a27.3,27.3,0,0,0,6.07-.64c6-1.34,12.3-6.36,19-11.66,5.32-4.23,12.87-9.59,18.66-11.17a21.26,21.26,0,0,1,5.19-.71c.48,0,.93,0,1.34.07,3.83.49,7.52,1.79,14.12,6.74,11.76,8.84,63.79,54.36,64.31,54.81a9.94,9.94,0,0,1,3.12,7.65,8.34,8.34,0,0,1-4.16,6.65,12.69,12.69,0,0,1-6.83,2.12,11.23,11.23,0,0,1-6-1.75c-.19-.15-18-16.5-24.58-22a5.47,5.47,0,0,0-3.08-1.65,1.69,1.69,0,0,0-1.36.64c-1,1.28.12,3,1.48,4.19l20.83,20.94A9.9,9.9,0,0,1,239,150c.17,3.47-1.49,6.37-4.94,8.64a13.41,13.41,0,0,1-7.39,2.44,10.78,10.78,0,0,1-5.93-1.8l-3-2.95c-5.46-5.37-11.1-10.92-15.22-14.37a5.62,5.62,0,0,0-3.11-1.61,1.84,1.84,0,0,0-1.32.55c-.46.53-.79,1.47.38,3a10.05,10.05,0,0,0,1,1.17l15.2,17.08c.13.15,3.13,3.71.35,7.28l-.54.68a15,15,0,0,1-1.42,1.36,12.17,12.17,0,0,1-7.43,2.35,11.68,11.68,0,0,1-2-.17,5.07,5.07,0,0,1-3-1.27l-.18-.18c-.83-.86-8.49-8.69-14.83-14a5.25,5.25,0,0,0-3-1.57,1.78,1.78,0,0,0-1.36.61c-1.25,1.37.63,3.43,1.43,4.17l13,14.3a2.78,2.78,0,0,1-.5.87c-.46.65-2,2.22-6.73,2.81a14.06,14.06,0,0,1-1.72.1c-4.85,0-10-2.35-12.69-3.76a19.16,19.16,0,0,0,1.84-8.22,19.36,19.36,0,0,0-19.33-19.36l-.69,0c.34-4.87-.35-14.1-9.82-18.15a20.28,20.28,0,0,0-8.08-1.79,16.4,16.4,0,0,0-5.92,1.08,16.23,16.23,0,0,0-9.47-8,21.33,21.33,0,0,0-6.93-1.22,18.38,18.38,0,0,0-10.82,3.45,16.3,16.3,0,0,0-24.26-1.36c-4-3.08-20.05-13.25-62.88-23-2.08-.48-6.84-1.84-9.75-2.7a67.12,67.12,0,0,0-1.1,7s7.9,1.9,9.46,2.25c43.76,9.72,58.22,19.82,60.66,21.74a16.4,16.4,0,0,0,15.14,22.7,16.74,16.74,0,0,0,3-.27,19.14,19.14,0,0,0,12.37,14.28,16.2,16.2,0,0,0,5.85,1.13,14.83,14.83,0,0,0,3.73-.46c1.23,3.12,4,7,10.18,9.52a17.26,17.26,0,0,0,6.43,1.33,14.65,14.65,0,0,0,5-.89A19.32,19.32,0,0,0,170.36,181c3.12,1.73,9.71,4.87,16.37,4.88a21.81,21.81,0,0,0,2.47-.16c6.62-.84,9.7-3.42,11.11-5.43a7.42,7.42,0,0,0,.68-1.12,18.59,18.59,0,0,0,5.25.82,17.67,17.67,0,0,0,10.58-3.78c3.43-2.48,5.88-6,6.24-9.07a.66.66,0,0,0,0-.14,17.68,17.68,0,0,0,3.55.37,19.65,19.65,0,0,0,10.86-3.45c6.74-4.42,7.92-10.19,7.8-14a17.37,17.37,0,0,0,3.59.38,18.82,18.82,0,0,0,10.19-3.13,14.89,14.89,0,0,0,7.07-11.52,15.5,15.5,0,0,0-2.25-9.3c11.3-4.87,37.11-14.29,67.51-21.14-.19-2.35-.53-4.68-.95-7a386.49,386.49,0,0,0-71.09,23.1\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M896.08,84c-2.94,3.89-7.13,5.84-12.61,5.84s-9.69-2-12.64-5.84-4.42-9.43-4.42-16.6,1.47-12.68,4.42-16.55S878,45,883.47,45s9.67,1.94,12.61,5.81,4.4,9.39,4.4,16.55S899,80.06,896.08,84m15-43.43Q902,29.18,883.52,29.18T856,40.52A41.74,41.74,0,0,0,847,67.35q0,15.77,9.07,27t27.5,11.18q18.48,0,27.53-11.18t9.07-27a41.68,41.68,0,0,0-9.07-26.83\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M747.12,75.11q-.2,9.44-5.38,13a19.6,19.6,0,0,1-11.33,3.56,10.3,10.3,0,0,1-6.6-2.15c-1.8-1.42-2.7-3.74-2.7-6.94a8.57,8.57,0,0,1,4.44-8A28.26,28.26,0,0,1,734.17,72l4.28-.79a31.83,31.83,0,0,0,5-1.3,18.64,18.64,0,0,0,3.64-1.8Zm9.52-40.92a46,46,0,0,0-21-4.67q-18.21,0-25.68,9.49-4.7,6.06-5.3,15.48h18.12a13.52,13.52,0,0,1,2.68-6.59q2.79-3.28,9.54-3.29c4,0,7,.55,9.12,1.68s3.1,3.15,3.1,6.09c0,2.42-1.34,4.19-4,5.34a29.32,29.32,0,0,1-7.51,1.64l-6.42.8c-7.3.91-12.85,2.47-16.6,4.61q-10.27,5.94-10.29,19.17,0,10.22,6.4,15.77c4.25,3.72,9.66,5.27,16.2,5.58,41,1.83,40.52-21.59,40.9-26.47v-27q0-13-9.19-17.67\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M663.19,45.59q7,0,10.34,4.33a16,16,0,0,1,2.84,7.23H696.6q-1.67-15.3-10.71-21.35t-23.25-6q-16.71,0-26.2,10.24t-9.5,28.67q0,16.32,8.6,26.57t26.81,10.25q18.23,0,27.53-12.29a30.32,30.32,0,0,0,6.5-16.15H676.24a17,17,0,0,1-3.55,9.19c-1.94,2.36-5.21,3.55-9.84,3.55q-9.79,0-13.33-8.94c-1.29-3.18-1.95-7.4-1.95-12.63,0-5.5.66-9.91,1.95-13.24,2.45-6.26,7-9.39,13.67-9.39\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M621.53,29.76c-41.53,0-39.07,36.77-39.07,36.77v37.34H601.3v-35q0-8.6,2.15-12.75c2.6-4.9,7.64-7.36,15.19-7.36.56,0,1.31,0,2.22.08s2,.12,3.16.26V29.9l-1.6-.1a7.74,7.74,0,0,0-.89,0\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M527,49.27q4-4.08,11.17-4.09A16.38,16.38,0,0,1,549.25,49c3,2.57,4.64,6.35,5,11.31H522a19.5,19.5,0,0,1,5-11.08M552.3,84.36a13.5,13.5,0,0,1-2.58,2.85c-2.66,2.19-6.28,2.86-10.53,2.86-4,0-7.18-.61-10-2.41-4.69-2.89-7.34-7.78-7.63-15h52.15A94.41,94.41,0,0,0,573,58.5a35.24,35.24,0,0,0-5.69-14.81A29.31,29.31,0,0,0,555,33.1a40.82,40.82,0,0,0-16.83-3.35c-10.5,0-19,3.31-25.59,9.92s-9.88,16.13-9.88,28.53q0,19.86,10.93,28.66a39,39,0,0,0,25.21,8.81q17.31,0,26.94-10.44c3.46-3.67,5.62-7.29,6.54-10.87Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M495.1,103.87H477.89V60.52c0-4-1.31-13.37-12.66-13.37-7.57,0-13.05,5.45-13.05,13.37v43.35H434.94V60.52c0-4-1.16-13.37-12.52-13.37-7.7,0-13.05,5.45-13.05,13.37v43.35H392.15V60.93c0-17.89,11.88-31.42,30.27-31.42,9.14,0,16.58,3.84,21.42,10a27.4,27.4,0,0,1,21.39-10c18.79,0,29.87,13,29.87,31.42Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M818.74,84.1C816,88.05,812,90,806.67,90s-9.26-2-11.86-6-3.91-9.74-3.91-16.35q0-9.19,3.84-15.4t12-6.21a14.38,14.38,0,0,1,9.46,3.41c4.42,3.77,6.63,10.53,6.63,19.28q0,9.39-4.14,15.3m22.61-77s-19-2-19,13.22l0,20.19a22.86,22.86,0,0,0-8.2-7.92,23.24,23.24,0,0,0-11.57-2.85q-14.12,0-22.55,10.5c-5.63,7-8.43,17.12-8.43,29.32q0,15.9,8.56,26.05c5.72,6.76,16.93,9.73,26.87,9.73,34.7,0,34.3-29.75,34.3-29.75Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M730.4,159.15q3.93-4.05,11.08-4.05a16.21,16.21,0,0,1,11,3.82q4.44,3.83,4.95,11.2h-32a19.35,19.35,0,0,1,4.95-11m25.1,34.78a13.56,13.56,0,0,1-2.56,2.83c-2.64,2.17-6.36,3-10.57,3-4,0-7.12-.6-9.94-2.39q-7-4.29-7.43-15h51.69a93,93,0,0,0-.63-14.08,35,35,0,0,0-5.64-14.67,29.06,29.06,0,0,0-12.27-10.5,40.47,40.47,0,0,0-16.67-3.32c-10.42,0-18.86,3.28-25.4,9.83s-9.77,16-9.77,28.27q0,19.69,10.84,28.42a38.69,38.69,0,0,0,25,8.74q17.15,0,26.68-10.36c3.43-3.63,5.58-7.23,6.5-10.77Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M702.72,139.87c-.25,0-.55,0-.89,0-41.54,0-39.08,36.76-39.08,36.76v36.77h18.86V178.92c0-5.74.71-10,2.16-12.75,2.57-4.9,7.64-7.36,15.17-7.36.58,0,1.31,0,2.22.08s2,.12,3.16.25V140c-.83-.05-1.37-.07-1.6-.1\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M535.56,130.3v82.94h17.68V116.77s-17.68-.71-17.68,13.53\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M586.62,135.39H567.69V116.64h18.93Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M567.69,213.37h19V141.78h-19Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M637.37,213.22H618.3l-25-71.45h19.9L627.42,192,640,148.21q2.18-6.45,8.6-6.44h14Z\x22\x20fill=\x22#2d3277\x22/></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20<a\x20href=\x22'+_0x29e9a8+_0x306155(0x2f8),_0x2b59fa=HtmlService['createHtmlOutput'](_0x42c80f)['setWidth'](0x226)[_0x306155(0x288)](0x87);SpreadsheetApp[_0x306155(0x251)]()[_0x306155(0x1ee)](_0x2b59fa,_0x306155(0x2b7));}async function verifyToken(){const _0x221dee=_0xbdb8b6,_0x4352d8=tokenCell[_0x221dee(0x2c4)]();if(_0x4352d8){if(!backupCell[_0x221dee(0x2c4)]()){backupCell[_0x221dee(0x319)](_0x4352d8);const _0x5d4517=maskToken(_0x4352d8);tokenCell['setValue'](_0x5d4517),fetchMercadoLibreToken(_0x4352d8);}else{if(_0x4352d8['substring'](0x6,0x7)===''){const _0x1cef8f=accessTokenCell['getValue']();if(_0x1cef8f)getUserInfo(_0x1cef8f,![]);else{}return;}else{backupCell[_0x221dee(0x319)](_0x4352d8);const _0x84955d=maskToken(_0x4352d8);tokenCell[_0x221dee(0x319)](_0x84955d),fetchMercadoLibreToken(_0x4352d8);}}}else cleanupAccountData(),SpreadsheetApp['getUi']()[_0x221dee(0x271)](_0x221dee(0x30d));backupCell=sheet[_0x221dee(0x1f5)]('G1');const _0x211c35=Utilities[_0x221dee(0x314)](new Date(),Session[_0x221dee(0x232)](),_0x221dee(0x274));lastVerificationCell[_0x221dee(0x319)](_0x221dee(0x2d8)+_0x211c35);}function cleanupAccountData(){const _0x386e90=_0xbdb8b6;accNameCell[_0x386e90(0x319)](''),userIdCell['setValue'](''),userMailCell[_0x386e90(0x319)](''),userRegDateCell[_0x386e90(0x319)](''),userAvatarCell[_0x386e90(0x319)](''),tokenCell[_0x386e90(0x319)](''),lastVerificationCell['setValue'](''),accessTokenCell[_0x386e90(0x319)](''),backupCell[_0x386e90(0x319)](''),ecomStatusCell['setValue'](''),gptTokenCell[_0x386e90(0x319)](_0x386e90(0x21d));}function fetchMercadoLibreToken(_0x3227f5){const _0x41396c=_0xbdb8b6;var _0x4c12fd=_0x41396c(0x22d),_0x4fe36c={'grant_type':_0x41396c(0x25c),'client_id':'2192489981173735','client_secret':_0x41396c(0x1f9),'code':''+_0x3227f5,'redirect_uri':_0x41396c(0x22b)},_0x3a6b87={'method':_0x41396c(0x2ec),'payload':_0x4fe36c};try{var _0x5dc4ae=UrlFetchApp[_0x41396c(0x1f8)](_0x4c12fd,_0x3a6b87),_0x1e778d=JSON[_0x41396c(0x231)](_0x5dc4ae[_0x41396c(0x22e)]());_0x1e778d[_0x41396c(0x216)]&&backupCell[_0x41396c(0x319)](_0x1e778d[_0x41396c(0x216)]),_0x1e778d[_0x41396c(0x304)]&&(accessTokenCell[_0x41396c(0x319)](''+_0x1e778d['access_token']),getUserInfo(''+_0x1e778d[_0x41396c(0x304)]));}catch(_0x5e3297){return Logger[_0x41396c(0x21b)](_0x41396c(0x2f3)+_0x5e3297[_0x41396c(0x294)]()),SpreadsheetApp[_0x41396c(0x251)]()['alert'](_0x41396c(0x2f3)+_0x5e3297['toString']()),null;}}function getUserInfo(_0x3abc0e,_0x13574a){const _0x2c31c3=_0xbdb8b6,_0x43dad7=_0x2c31c3(0x253),_0x2036d9={'method':'GET','headers':{'Authorization':_0x2c31c3(0x2d3)+_0x3abc0e}};try{const _0x24597e=UrlFetchApp['fetch'](_0x43dad7,_0x2036d9),_0x529e23=JSON[_0x2c31c3(0x231)](_0x24597e[_0x2c31c3(0x22e)]());if(_0x13574a)return!![];SpreadsheetApp[_0x2c31c3(0x251)]()[_0x2c31c3(0x271)](_0x2c31c3(0x2ed)+_0x529e23[_0x2c31c3(0x211)]);const _0x225e45=_0x529e23[_0x2c31c3(0x211)],_0x48c199=_0x529e23['id'],_0x1b4212=_0x529e23[_0x2c31c3(0x204)],_0x10c9fb=_0x529e23[_0x2c31c3(0x2af)],_0x5b738a=_0x529e23[_0x2c31c3(0x262)][_0x2c31c3(0x1f4)];let _0x469463=_0x10c9fb[_0x2c31c3(0x2fd)](0x8,0xa)+'/'+_0x10c9fb[_0x2c31c3(0x2fd)](0x5,0x7)+'/'+_0x10c9fb[_0x2c31c3(0x2fd)](0x0,0x4);accNameCell[_0x2c31c3(0x319)](_0x225e45+'\x0a('+_0x469463+')'),userIdCell['setValue'](_0x2c31c3(0x1fb)+_0x48c199),userMailCell[_0x2c31c3(0x319)](_0x2c31c3(0x1fb)+_0x1b4212);const _0x44ac09='=IMAGE(\x22'+_0x5b738a+'\x22;4;100;100)';userAvatarCell[_0x2c31c3(0x319)](_0x44ac09),SpreadsheetApp['getUi']()[_0x2c31c3(0x271)](_0x2c31c3(0x2c0));}catch(_0x19a5f0){if(_0x13574a)return null;return null;}}function maskToken(_0x14a3b5){const _0x4a4972=_0xbdb8b6,_0x12b2f8=_0x14a3b5[_0x4a4972(0x2fd)](0x0,0x5),_0x21cdbd=_0x14a3b5[_0x4a4972(0x238)](-0x2);return _0x12b2f8+''+_0x21cdbd;}function fetchVisitsAndGroupByMonth(){const _0x46e9d8=_0xbdb8b6,_0x5c2f71=infoCell['getValue']();if(!_0x5c2f71){SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)](_0x46e9d8(0x286));return;}creationDaysCell[_0x46e9d8(0x2c4)]()<0x1e&&SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)]('Este\x20anncio\x20est\x20ativo\x20h\x20menos\x20de\x2030\x20dias,\x20portanto\x20no\x20\x20possvel\x20obter\x20as\x20visitas\x20dos\x20ltimos\x20meses.');const _0x996797=new Date(),_0x514a25=new Date(_0x996797[_0x46e9d8(0x2d2)](),_0x996797[_0x46e9d8(0x278)](),0x0),_0x245211=Utilities[_0x46e9d8(0x314)](_0x514a25,Session[_0x46e9d8(0x232)](),_0x46e9d8(0x2c1)),_0x5171c1=_0x46e9d8(0x28a)+_0x5c2f71+'/visits/time_window?last=150&ending='+_0x245211+_0x46e9d8(0x219),_0x5d0ced=accessTokenCell[_0x46e9d8(0x2c4)]();if(!_0x5d0ced){SpreadsheetApp[_0x46e9d8(0x251)]()[_0x46e9d8(0x271)](_0x46e9d8(0x254));return;}let _0x30e024={'method':_0x46e9d8(0x269),'headers':{'Authorization':_0x46e9d8(0x2d3)+_0x5d0ced},'muteHttpExceptions':!![]};const _0x11ef6a=UrlFetchApp[_0x46e9d8(0x1f8)](_0x5171c1,_0x30e024),_0x417d59=JSON[_0x46e9d8(0x231)](_0x11ef6a[_0x46e9d8(0x22e)]()),_0x57484a=groupVisitsByMonth(_0x417d59['results']);outputLastFiveMonthsVisits(_0x57484a,firstSheet),revenueCalc(_0x57484a);}function revenueCalc(_0x4ee8a1){const _0x55fdde=_0xbdb8b6;!_0x4ee8a1&&firstSheet[_0x55fdde(0x1f5)](_0x55fdde(0x2a0))['setValue'](0x0);var _0x48abea=Object[_0x55fdde(0x244)](_0x4ee8a1)[_0x55fdde(0x25f)]()['slice'](-0x5),_0x5a59ff=0x0;validateUserEmail()==!![]?_0x5a59ff=1.1:SpreadsheetApp[_0x55fdde(0x251)]()[_0x55fdde(0x271)]('\x20Estimativa\x20dos\x20ltimos\x20cinco\x20meses\x20ser\x20calculada,\x20mas\x20a\x20previso\x20de\x20faturamento\x20est\x20disponvel\x20apenas\x20para\x20alunos\x20e\x20mentorados\x20do\x20Escalada\x20Ecom.');var _0x1adeed=[..._0x48abea];for(let _0x4c29a4=0x0;_0x4c29a4<0x3;_0x4c29a4++){const _0x2bf53d=_0x1adeed[_0x1adeed[_0x55fdde(0x20a)]-0x1],_0x318b64=new Date()[_0x55fdde(0x1fe)](),_0x4c50ae=new Date(_0x2bf53d[_0x55fdde(0x201)]('-')[0x0]+'-'+_0x2bf53d[_0x55fdde(0x201)]('-')[0x1]+'-'+_0x318b64);_0x4c50ae[_0x55fdde(0x2b3)](parseFloat(_0x2bf53d[_0x55fdde(0x201)]('-')[0x1])+0x1);const _0x15b58b=Utilities[_0x55fdde(0x314)](_0x4c50ae,Session[_0x55fdde(0x232)](),_0x55fdde(0x2b5)),_0x2e873e=_0x4ee8a1[_0x2bf53d]*_0x5a59ff;_0x4ee8a1[_0x15b58b]=_0x2e873e,_0x1adeed[_0x55fdde(0x283)](_0x15b58b);}_0x48abea=_0x1adeed;const _0x4767b7=visitsCell[_0x55fdde(0x2c4)](),_0x118206=sellsCell[_0x55fdde(0x2c4)](),_0x53c98b=priceCell[_0x55fdde(0x2c4)](),_0x1e46e1=_0x118206/_0x4767b7,_0x197566=_0x53c98b;_0x48abea[_0x55fdde(0x2fe)]((_0x5d2222,_0x564994)=>{const _0x117428=_0x55fdde,_0x1a004c=_0x4ee8a1[_0x5d2222],_0x3f8a11=0x23+_0x564994,_0xe28098=_0x1a004c*_0x1e46e1*_0x197566,_0x1e66d8=firstSheet[_0x117428(0x1f5)]('G'+_0x3f8a11);_0x1e66d8[_0x117428(0x319)](_0xe28098[_0x117428(0x2d4)](0x2)['replaceAll']('.',','));});}function groupVisitsByMonth(_0x121328){const _0x5b035a=_0xbdb8b6,_0x344b14={};return _0x121328[_0x5b035a(0x2fe)](_0x15b38f=>{const _0x31aae2=_0x5b035a,_0x569f41=new Date(_0x15b38f[_0x31aae2(0x2e8)]),_0x5b5fea=Utilities[_0x31aae2(0x314)](_0x569f41,Session[_0x31aae2(0x232)](),_0x31aae2(0x2b5));!_0x344b14[_0x5b5fea]&&(_0x344b14[_0x5b5fea]=0x0),_0x344b14[_0x5b5fea]+=_0x15b38f[_0x31aae2(0x208)];}),_0x344b14;}function _0x5ca4(){const _0x21d42a=['getName','DescriptionAnalysis2','Conectar\x20Conta\x20(privado)','sellsCell','AltPicsSizes','ortografia','trim','Cole\x20seu\x20token\x20da\x20OpenAI\x20para\x20utilizar\x20esta\x20funcionalidade.','soldStock','addItem','Passo\x204\x20-\x20Conectar\x20GPT','\x20Token\x20j\x20preenchido.','adRankPosition','https://sync.escaladaecom.com.br/conectar/token','free_shipping','https://api.mercadolibre.com/oauth/token?','getContentText','false','InfoCol3','parse','getScriptTimeZone','application/json','rankResult','ImageScoreLabel','Expirado','https://sync.escaladaecom.com.br/api/generate-answer','slice','Premium','1920LYaXUy','startsWith','getSheetByName','Clssico','CreationDays','\x22\x20target=\x22_blank\x22\x20class=\x22instagram-btn\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Acessar\x20Instagram\x0a\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</body>\x0a\x20\x20</html>','Houve\x20um\x20problema\x20ao\x20conectar\x20com\x20a\x20OpenAI,\x20verifique\x20se\x20seu\x20Token\x20OpenAI\x20foi\x20configurado\x20corretamente\x20e\x20tente\x20novamente\x20em\x20alguns\x20instantes.','B14','visitsCell','https://sync.escaladaecom.com.br/assets/imgs/lock.jpg','keys','Link\x20invlido,\x20verifique\x20e\x20preencha\x20novamente\x20(Sem\x20catlogos\x20ou\x20encurtadores)','ButtonSet','ListingType','descAnalysis_trechos','getSpreadsheetTimeZone','createHtmlOutput','Grtis','FirstTag','setActiveSheet','B50','Passo\x201\x20-\x20Liberao/Grant','locked','getUi','title','https://api.mercadolibre.com/users/me','Acesso\x20negado\x20pelo\x20ML.\x20Conecte\x20sua\x20conta\x20do\x20Mercado\x20Livre\x20para\x20obter\x20todas\x20as\x20informaes.','menuItem2','895549XqQEZJ','productScaleCell','setWidth','\x20Nvel\x20','\x22;4;550;550)','thumbnail_id','authorization_code','logistic_type','Erro\x20na\x20comunicao\x20com\x20API\x20do\x20ML:\x20','sort','empty','Ateno!','thumbnail','toUpperCase','/description','search','getTime','Coleta','values','get','keyword','undefined','offset','plain_text','9xTiLLl','Algumas\x20informaes\x20do\x20resultado\x20esto\x20disponveis\x20apenas\x20para\x20alunos\x20e\x20mentorados\x20Escalada.','Preencha\x20seu\x20E-MAIL\x20de\x20acesso\x20ao\x20EscaladaEcom\x20para\x20utilizar\x20todas\x20as\x20funcionalidades\x20da\x20planilha.','alert','Seu\x20e-mail\x20de\x20aluno\x20EscaladaEcom','Esta\x20funcionalidade\x20est\x20disponvel\x20apenas\x20para\x20alunos\x20e\x20mentorados\x20Escalada.','dd/MM/yyyy\x20HH:mm','https://api.mercadolibre.com/visits/items?ids=','\x22\x20target=\x22_blank\x22\x20class=\x22connect-btn2\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20display:\x20flex;\x20font-weight:700\x0a\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Criar\x20token\x20de\x20acesso\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20</a>\x0a</body>\x0a\x0a</html>','Erro\x20ao\x20verificar\x20e-mail.\x20Tente\x20novamente\x20em\x20alguns\x20instantes.','getMonth','InfoCol6','https://sync.escaladaecom.com.br/assets/imgs/ele0.png','https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2YQz36i4j0vszGg7Tlyo5kDPUEmcSmAjtJi7BetjBwh0ufwy1tVlsmIvc3o8wwWn0AY0&usqp=CAU','descAnalysis_cta','ScoreMLLabel','Acessar','menuItemGPT','short','ScoreML','328QEBlpF','push','=IMAGE(\x22','MLB','Preencha\x20o\x20link\x20do\x20produto\x20para\x20obter\x20mais\x20informaes.','6758916xrgRaM','setHeight','AltPics','https://api.mercadolibre.com/items/','No\x20foi\x20possvel\x20obter\x20o\x20rank\x20do\x20anncio\x20no\x20momento.\x20Tente\x20novamente\x20mais\x20tarde.','date_created','Ativo','replace','11463050syQyLo','Invlido\x20/\x20No\x20encontrado','Pago','Pyramid','setFormula','toString','https://platform.openai.com/api-keys','=TO_TEXT(\x22+','ID\x20do\x20produto:\x20','keywordItems','Scraped','soldStock\x20not\x20found\x20in\x20response.','publicUrl','results','DateCreated','Acesso\x20negado\x20pelo\x20ML.\x20Reconecte\x20sua\x20conta\x20do\x20Mercado\x20Livre\x20para\x20obter\x20todas\x20as\x20informaes.','Description','H35:H42','InitialStock','https://sync.escaladaecom.com.br/conectar/ml-oauth','https://sync.escaladaecom.com.br/assets/imgs/ele2.png','\x20|\x20Posio:\x20','InfoCol5','\x20Nvel\x20de\x20Escala','https://sync.escaladaecom.com.br/assets/imgs/ele3.png','359240azAEUA','null','Aguardando...','InfoCol1','max_size','/sites/MLB/search?q=','ImageScore2','registration_date','\x20de\x20Escala','nota','addToUi','setMonth','The\x20user\x20canceled\x20the\x20prompt.','yyyy-MM','Correios','Conectar\x20com\x20Mercado\x20Livre','menuItem4','descAnalysis_trechos_explicacao','free','toLocaleString','abs','\x0a\x20\x20<html>\x0a\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.instagram-btn\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#C13584;\x20/*\x20Instagram\x20color\x20*/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#999;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.instagram-btn:hover\x20{\x20background-color:\x20#A02D6D;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.instagram-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#A02D6D;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x201px\x20#666;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateY(2px);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:\x20center;\x20padding:\x2020px;\x20font-family:\x20sans-serif;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<p>Voc\x20ser\x20redirecionado\x20para\x20o\x20Instagram.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22','url','descAnalysis_ortografia','Token\x20verificado\x20com\x20sucesso!','yyyy-MM-dd','\x22\x20alt=\x22Nova\x20Imagem\x22\x20style=\x22width:\x20150px;\x20height:\x20auto;\x20margin-bottom:1rem\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22padding:1rem\x22>1200px\x20x\x201200px</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22','Falha\x20na\x20requisio:\x20','getValue','Clique\x20no\x20Passo\x204\x20do\x20menu\x20para\x20conectar\x20o\x20GPT.','getA1Notation','FirstPictureSize','pages','explicacao_ortografia','InfoCol8','E-mail\x20verificado\x20com\x20status:\x20','Passo\x203\x20-\x20Verificar\x20conexo','Conectar\x20planilha\x20ao\x20EscaladaEcom','descAnalysis_qualidade_explicacao','\x20Entre\x201\x20e\x203x\x20em\x20vendas\x20dirias','getActiveSpreadsheet','\x20\x20(\x20','getFullYear','Bearer\x20','toFixed','Houve\x20um\x20problema\x20ao\x20conectar\x20com\x20a\x20OpenAI,\x20tente\x20novamente\x20em\x20alguns\x20instantes.','Button','Invalid\x20response\x20or\x20item\x20ID\x20not\x20found\x20in\x20response.','ltima\x20verificao:\x20','Descrio\x20no\x20disponvel.','FreeShipping','availableStock\x20not\x20found\x20in\x20response.','dd/MM/yyyy','Passo\x200\x20-\x20Autorizao\x20Google','Error:\x20','6780ZwyMrK','InfoCol4','prompt','LastUpdated','explicacao_trechos','Verificando...','explicacao_cta','clearContent','listing_type_id','date','AIdescriptionCell','Cole','adPagePosition','post','Conectado\x20como:\x20','Url','getSheets','shipping','InfoCol7','FirstPicture','Error\x20fetching\x20token:\x20','DescriptionAnalysis','ScoreML2','\x22\x20download=\x22ImagemML\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22download-btn\x22>Baixar\x20imagem</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20</html>','2192489981173735','\x22\x20target=\x22_blank\x22\x20class=\x22connect-btn\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20display:\x20flex;\x0a\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20\x20\x20width:\x2020px;\x0a\x20\x20\x20\x20height:\x2021px;\x0a\x20\x20\x20\x20margin-right:\x205px;\x0a\x22><svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20version=\x221.1\x22\x20id=\x22Layer_1\x22\x20x=\x220px\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20y=\x220px\x22\x20viewBox=\x220\x200\x20512\x20512\x22\x20style=\x22enable-background:new\x200\x200\x20512\x20512;\x22\x20xml:space=\x22preserve\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<g>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<path\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20d=\x22M212.2,453l-15.5-15.5c-23.2,23-43.1,30.6-60.9,30.6c-10.1,0-20.1-2.5-30.4-7.6c-10.3-5.1-20.8-12.9-31-23.1\x20\x20\x20c-10.2-10.2-18-20.7-23.1-31c-5.1-10.3-7.6-20.3-7.6-30.4c0.1-17.8,7.7-37.8,30.6-60.9c54.7-54.7,65.6-65.6,65.7-65.7l-15.5-15.5\x20\x20\x20l-15.5,15.5l153.3,153.3l15.5-15.5l-15.5-15.5c-0.1,0.1-10.9,10.9-65.7,65.7L212.2,453l15.5,15.5c54.7-54.7,65.6-65.6,65.7-65.7\x20\x20\x20l15.5-15.5L124.6,203.1l-15.5,15.5c-0.1,0.1-10.9,10.9-65.7,65.7C14.7,312.9-0.1,344.6,0,376.2c0,17.5,4.5,34.4,12.1,49.8\x20\x20\x20c7.7,15.5,18.4,29.6,31.3,42.5c12.9,12.9,27,23.7,42.5,31.3c15.4,7.7,32.3,12.2,49.8,12.1c31.6,0.1,63.4-14.7,91.9-43.5L212.2,453z\x20\x20\x20\x20M299.8,59l15.5,15.5c23.2-23,43.1-30.6,60.9-30.6c10.1,0,20.1,2.5,30.4,7.6c10.3,5.1,20.8,12.9,31,23.1l0,0\x20\x20\x20c10.2,10.2,18,20.7,23.1,31c5.1,10.3,7.6,20.3,7.6,30.4c-0.1,17.8-7.7,37.8-30.6,61c-27.4,27.4-43.8,43.8-53.4,53.4\x20\x20\x20c-9.6,9.6-12.3,12.3-12.3,12.3l15.5,15.5l15.5-15.5L249.6,109.2l-15.5,15.5l15.5,15.5c0,0,11-11,65.7-65.7l0,0L299.8,59l-15.5-15.5\x20\x20\x20c-27.4,27.4-43.8,43.8-53.4,53.4c-9.6,9.6-12.3,12.3-12.3,12.3l-15.5,15.5l184.2,184.2l15.5-15.4c0,0,11-11,65.7-65.7\x20\x20\x20c28.7-28.6,43.5-60.3,43.5-91.9c0-17.5-4.5-34.4-12.1-49.8c-7.7-15.5-18.4-29.6-31.3-42.5l0,0c-12.9-12.9-27-23.7-42.5-31.3\x20\x20\x20C410.6,4.5,393.7,0,376.2,0c-31.6-0.1-63.4,14.7-91.9,43.5l0,0L299.8,59z\x20M234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7\x20\x20\x20l-31-31L234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L234.1,212.2z\x20M299.8,277.9l-15.5-15.5l-54.7,54.7l31,31\x20\x20\x20l54.7-54.7l-31-31L299.8,277.9l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L299.8,277.9z\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</path>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</g>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Clique\x20para\x20conectar\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20</a>\x0a</body>\x0a\x0a</html>','Price','tags','Passo\x202\x20-\x20Conectar\x20conta\x20ML','352OELhrp','substring','forEach','\x20/\x20100','toLowerCase','createMenu','charAt','Gratuito','access_token','ImageScore','https://sync.escaladaecom.com.br/api/validate','C11','getActiveSheet','https://youtu.be/lxevKn7smCM','Tags','https://www.youtube.com/@DhiegoRosa','H28:H32','Preencha/Cole\x20seu\x20token\x20para\x20verificar\x20corretamente.','https://sync.escaladaecom.com.br/assets/imgs/ele1.png','Conectar\x20GPT','https://sync.escaladaecom.com.br/api/scrape?productURL=','Keyword','descAnalysis_qualidade','Analisando...','formatDate','Nvel\x20de\x20Escala','\x20Apenas\x20para\x20alunos\x20Escalada','health','11IvWoIR','setValue','FirstPictureScore','87059xHUAEb','13308JrnhAx','getSheet','No\x20encontrado\x20(20\x20pginas)','%\x20)','showSheet','menuItem0','&offset=','showModalDialog','filter','Title','adFound','stringify','Seu\x20acesso\x20a\x20OpenAI\x20j\x20foi\x20configurado,\x20caso\x20precise\x20refazer\x20o\x20processo,\x20apague\x20sua\x20chave\x20GPT\x20da\x20planilha\x20e\x20tente\x20novamente.','picture_url','getRange','menuItem1','hideSheet','fetch','fQI329p48NdAUydUkwpwZedTgQGfBUdA','range','\x20\x20\x20','availableStock','N/A','getDate','G35:G42','AltImagesStatus','split','OK_CANCEL','test','email','http://bit.ly/grant-escaladaecom','monthName','application/x-www-form-urlencoded','total','InfoCol2','length','text','initial_quantity','Pgina:\x20','Error\x20fetching\x20data:\x20','Info','getResponseCode','nickname','pictures','getFormula','Voc\x20ser\x20redirecionado\x20para\x20OpenAI.\x20Aps\x20entra\x20com\x20seu\x20Gmail\x20e\x20criar\x20um\x20token\x20de\x20acesso,\x20volte\x20para\x20esta\x20planilha,\x20cole-o\x20e\x20clique\x20novamente\x20\x22Passo\x204\x20-\x20Conectar\x20GPT\x22.','Imagem\x20ajustada','refresh_token','https://api.mercadolibre.com','ceil','&unit=day','Logistic','log','last_updated','Cole\x20seu\x20token\x20da\x20OpenAI'];_0x5ca4=function(){return _0x21d42a;};return _0x5ca4();}function outputLastFiveMonthsVisits(_0x556960){const _0x235bf8=_0xbdb8b6,_0x5c367b=Object['keys'](_0x556960)[_0x235bf8(0x25f)]()[_0x235bf8(0x238)](-0x5);_0x5c367b[_0x235bf8(0x2fe)]((_0x2a1bed,_0x3a1245)=>{const _0x461f97=_0x235bf8,_0xd3e0d1=0x23+_0x3a1245,_0x345c71=_0x556960[_0x2a1bed];firstSheet[_0x461f97(0x1f5)]('H'+_0xd3e0d1)[_0x461f97(0x319)](_0x345c71);});}const InfoCols={'InfoCol1':'H','InfoCol2':'J','InfoCol3':'M','InfoCol4':'B','InfoCol5':'C','InfoCol6':'F','InfoCol7':'D','InfoCol8':'E'},Rows={'Url':0x3,'CreationDays':0xb,'InitialStock':0xe,'Title':0xe,'Price':0xb,'DateCreated':0xc,'LastUpdated':0xd,'ListingType':0xc,'FreeShipping':0xd,'Logistic':0xe,'FirstPicture':0xf,'FirstPictureSize':0x2a,'ScoreML':0x10,'ScoreML2':0x11,'ScoreMLLabel':0x13,'AltImagesStatus':0x2b,'Info':0xb,'Description':0x32,'DescriptionAnalysis':0x34,'DescriptionAnalysis2':0x36,'AltPics':0x2b,'AltPicsSizes':0x2c,'Tags':0x24,'ImageScore':0x18,'Scraped':0xa,'Pyramid':0x1f,'PyramidLabel':0x1e,'monthName':0x18},altPicturesPlaceholder=_0xbdb8b6(0x27b),altPicsPlacement=['B'+Rows['AltPics'],'C'+Rows[_0xbdb8b6(0x289)],'D'+Rows[_0xbdb8b6(0x289)],'E'+Rows['AltPics']],altPicsSizesPlacement=['B'+Rows['AltPicsSizes'],'C'+Rows[_0xbdb8b6(0x222)],'D'+Rows[_0xbdb8b6(0x222)],'E'+Rows['AltPicsSizes']];var imagesScore=[];const PlacementCells={'Keyword':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x299)],'Url':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x2ee)],'CreationDays':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x23e)],'InitialStock':''+InfoCols[_0xbdb8b6(0x209)]+Rows['InitialStock'],'Title':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x1f0)],'Price':''+InfoCols[_0xbdb8b6(0x230)]+Rows[_0xbdb8b6(0x2f9)],'DateCreated':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x29d)],'LastUpdated':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x2e2)],'ListingType':''+InfoCols['InfoCol3']+Rows['ListingType'],'FreeShipping':''+InfoCols['InfoCol3']+Rows[_0xbdb8b6(0x2da)],'Logistic':''+InfoCols[_0xbdb8b6(0x230)]+Rows['Logistic'],'FirstPicture':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x2f2)],'FirstPictureSize':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows['FirstPictureSize'],'FirstPictureScore':''+InfoCols[_0xbdb8b6(0x2ca)]+Rows[_0xbdb8b6(0x2c7)],'ScoreML':''+InfoCols[_0xbdb8b6(0x2ab)]+Rows['ScoreML'],'ScoreML2':''+InfoCols[_0xbdb8b6(0x2ab)]+Rows[_0xbdb8b6(0x2f5)],'ScoreMLLabel':''+InfoCols['InfoCol2']+Rows[_0xbdb8b6(0x27d)],'ImageScore':''+InfoCols['InfoCol1']+Rows[_0xbdb8b6(0x305)],'ImageScore2':''+InfoCols[_0xbdb8b6(0x2ab)]+(Rows[_0xbdb8b6(0x305)]+0x1),'ImageScoreLabel':''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x305)]+0x1),'AltImagesStatus':''+InfoCols[_0xbdb8b6(0x279)]+Rows[_0xbdb8b6(0x200)],'Info':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows['Info'],'Description':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x29f)],'FirstTag':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x30a)],'AIdescriptionCell':''+InfoCols[_0xbdb8b6(0x279)]+Rows[_0xbdb8b6(0x29f)],'visitsCell':''+InfoCols['InfoCol3']+Rows[_0xbdb8b6(0x299)],'sellsCell':''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x299)],'descAnalysis_ortografia':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_trechos':''+InfoCols[_0xbdb8b6(0x2a5)]+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_cta':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows['DescriptionAnalysis'],'descAnalysis_qualidade':''+InfoCols['InfoCol8']+Rows[_0xbdb8b6(0x2f4)],'descAnalysis_ortografia_explicacao':''+InfoCols[_0xbdb8b6(0x2e0)]+Rows[_0xbdb8b6(0x21f)],'descAnalysis_trechos_explicacao':''+InfoCols['InfoCol5']+Rows[_0xbdb8b6(0x21f)],'descAnalysis_cta_explicacao':''+InfoCols[_0xbdb8b6(0x2f1)]+Rows[_0xbdb8b6(0x21f)],'descAnalysis_qualidade_explicacao':''+InfoCols['InfoCol8']+Rows[_0xbdb8b6(0x21f)],'productScaleCell':''+InfoCols['InfoCol2']+Rows[_0xbdb8b6(0x292)],'rankResult':''+InfoCols[_0xbdb8b6(0x2ca)]+Rows[_0xbdb8b6(0x299)]},tagCells=[''+InfoCols[_0xbdb8b6(0x209)]+Rows[_0xbdb8b6(0x30a)],''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x1),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x2),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x3),''+InfoCols[_0xbdb8b6(0x209)]+(Rows['Tags']+0x4),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x5),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x6),''+InfoCols[_0xbdb8b6(0x209)]+(Rows[_0xbdb8b6(0x30a)]+0x7)],maxTags=0x8,url=firstSheet[_0xbdb8b6(0x1f5)](''+PlacementCells[_0xbdb8b6(0x2ee)])[_0xbdb8b6(0x2c4)](),creationDaysCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['CreationDays']),initialStockCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2a1)]),titleCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x1f0)]),priceCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x2f9)]),dateCreatedCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['DateCreated']),lastUpdatedCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2e2)]),listingTypeCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x247)]),freeShippingCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2da)]),logisticCell=firstSheet['getRange'](''+InfoCols[_0xbdb8b6(0x230)]+Rows[_0xbdb8b6(0x21a)]),firstPictureCell=firstSheet['getRange'](PlacementCells['FirstPicture']),firstPictureSizeCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['FirstPictureSize']),scoreMLCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x281)]),scoreMLCell2=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2f5)]),scoreMLLabelCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x27d)]),altImagesStatusCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['AltImagesStatus']),infoCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x20f)]),descriptionCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x29f)]),firstTagCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x24c)]),imageScoreCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x305)]),imageScoreCell2=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2ae)]),ImageScoreLabel=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x235)]),AIdescriptionCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2e9)]),visitsCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x242)]),sellsCell=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x221)]),descAnalysis_ortografia=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2bf)]),descAnalysis_trechos=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x248)]),descAnalysis_cta=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x27c)]),descAnalysis_qualidade=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x312)]),descAnalysis_ortografia_explicacao=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells['descAnalysis_ortografia_explicacao']),descAnalysis_trechos_explicacao=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x2b9)]),descAnalysis_cta_explicacao=firstSheet['getRange'](PlacementCells['descAnalysis_cta_explicacao']),descAnalysis_qualidade_explicacao=firstSheet['getRange'](PlacementCells[_0xbdb8b6(0x2ce)]),productScaleCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x257)]),ELElabelCell=firstSheet[_0xbdb8b6(0x1f5)](''+InfoCols['InfoCol2']+Rows['PyramidLabel']),rankResultCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x234)]),keywordCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x311)]),FirstPictureScoreCell=firstSheet[_0xbdb8b6(0x1f5)](PlacementCells[_0xbdb8b6(0x31a)]);function mlLinkAnalysis(){const _0xc0e611=_0xbdb8b6;infoCell[_0xc0e611(0x319)](_0xc0e611(0x313)),setRevChartSeries(),altImagesStatusCell[_0xc0e611(0x319)]('Carregando...');const _0x519c1d=accessTokenCell[_0xc0e611(0x2c4)](),_0x4f1b54=getUserInfo(_0x519c1d,!![]);if(_0x4f1b54==null){const _0x5a9a15=getNewAccessToken();if(_0x5a9a15)_0x4aa0b9();else{clearAnalysisData(),SpreadsheetApp[_0xc0e611(0x251)]()[_0xc0e611(0x271)](_0xc0e611(0x29e));var _0x34f93d=SpreadsheetApp[_0xc0e611(0x2d0)](),_0x4ec16f=_0x34f93d[_0xc0e611(0x23c)](_0xc0e611(0x220));_0x4ec16f[_0xc0e611(0x1eb)](),_0x34f93d['setActiveSheet'](_0x4ec16f),AccSync();}}else _0x4aa0b9();function _0x4aa0b9(){const _0x58a750=_0xc0e611,_0x111f9b={'fulfillment':'Full','cross_docking':_0x58a750(0x267),'drop_off':'Places','xd_drop_off':'Places','self_service':'Flex','default':_0x58a750(0x2b6)},_0x4a5d0b={'free':_0x58a750(0x303),'gold_special':_0x58a750(0x23d),'gold_pro':_0x58a750(0x239)};if(!url||!url[_0x58a750(0x23b)]('https://')){clearAnalysisData(),infoCell['setValue'](_0x58a750(0x245));return;}clearAnalysisData(!![]);const _0x31bdb4=_0x58a750(0x285)+url[_0x58a750(0x201)]('-')[0x1][_0x58a750(0x201)]('_')[0x0],_0x4b0757=/^MLB\d+$/;if(!_0x4b0757[_0x58a750(0x203)](_0x31bdb4)){infoCell[_0x58a750(0x319)](_0x58a750(0x245));return;}infoCell[_0x58a750(0x319)](''+_0x31bdb4),Logger['log'](_0x58a750(0x297)+_0x31bdb4);const _0xeb436c='https://api.mercadolibre.com/items/'+_0x31bdb4;try{const _0xc48fb8=UrlFetchApp[_0x58a750(0x1f8)](_0xeb436c),_0xe14cee=JSON['parse'](_0xc48fb8['getContentText']());if(_0xe14cee){const _0x25818d=_0xe14cee,_0x27b43e=Session[_0x58a750(0x232)](),_0x4aeda3=new Date(_0x25818d[_0x58a750(0x28c)]),_0x1562b4=new Date(_0x25818d[_0x58a750(0x21c)]),_0x121f28=new Date(),_0x45e67c=Math[_0x58a750(0x2bc)](_0x121f28[_0x58a750(0x266)]()-_0x4aeda3[_0x58a750(0x266)]()),_0x494658=Math[_0x58a750(0x218)](_0x45e67c/(0x3e8*0xe10*0x18));creationDaysCell[_0x58a750(0x319)](_0x494658),initialStockCell[_0x58a750(0x319)](_0x25818d[_0x58a750(0x20c)]),titleCell[_0x58a750(0x319)](_0x25818d[_0x58a750(0x252)]),priceCell[_0x58a750(0x319)](_0x25818d['price']),dateCreatedCell[_0x58a750(0x319)](Utilities[_0x58a750(0x314)](_0x4aeda3,_0x27b43e,_0x58a750(0x2dc))),lastUpdatedCell['setValue'](Utilities[_0x58a750(0x314)](_0x1562b4,_0x27b43e,'dd/MM/yyyy')),listingTypeCell[_0x58a750(0x319)](_0x4a5d0b[_0x25818d[_0x58a750(0x2e7)]]||_0x25818d['listing_type_id']),freeShippingCell['setValue'](_0x25818d[_0x58a750(0x2f0)][_0x58a750(0x22c)]?_0x58a750(0x24b):_0x58a750(0x291)),logisticCell[_0x58a750(0x319)](_0x111f9b[_0x25818d[_0x58a750(0x2f0)][_0x58a750(0x25d)]]||_0x111f9b['default']);if(validateUserEmail()!=!![])tagCells[_0x58a750(0x2fe)](_0x5b09c1=>{const _0xf17939=_0x58a750;if(_0x5b09c1===PlacementCells[_0xf17939(0x24c)])for(let _0x16f329=0x0;_0x16f329<maxTags-0x1;_0x16f329++){const _0x4520c6=firstSheet[_0xf17939(0x1f5)](''+InfoCols[_0xf17939(0x209)]+(Rows[_0xf17939(0x30a)]+_0x16f329));_0x4520c6[_0xf17939(0x2e6)]();}});else for(let _0x5a821d=0x0;_0x5a821d<maxTags-0x1;_0x5a821d++){const _0x37d088=_0x25818d[_0x58a750(0x2fa)][_0x5a821d],_0x624f9f=firstSheet[_0x58a750(0x1f5)](''+InfoCols[_0x58a750(0x209)]+(Rows[_0x58a750(0x30a)]+_0x5a821d));_0x624f9f[_0x58a750(0x319)](_0x37d088);}scoreMLCell['setValue'](_0x25818d[_0x58a750(0x317)]),scoreMLCell2['setValue'](0x1-_0x25818d[_0x58a750(0x317)]),scoreMLLabelCell['setValue']('\x20\x20'+_0x25818d[_0x58a750(0x317)]*0x64+_0x58a750(0x2ff));if(_0x25818d[_0x58a750(0x212)]&&_0x25818d[_0x58a750(0x212)]['length']>0x0){const _0x149aa3=_0x25818d[_0x58a750(0x25b)],_0x4fc527=_0x25818d['pictures']['find'](_0x45f42a=>_0x45f42a['id']===_0x149aa3),_0x5da5d5=_0x58a750(0x284)+_0x4fc527[_0x58a750(0x2be)]+_0x58a750(0x25a);firstPictureCell['setFormula'](_0x5da5d5);const _0x1899ea=(_0x4fc527['max_size']['split']('x')[0x0]<0x4b0?_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x0]:0x4b0)*(_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x1]<0x4b0?_0x4fc527[_0x58a750(0x2ac)][_0x58a750(0x201)]('x')[0x1]:0x4b0)/(0x4b0*0x4b0);imagesScore[_0x58a750(0x283)](_0x1899ea),firstPictureSizeCell[_0x58a750(0x319)](_0x4fc527[_0x58a750(0x2ac)]+_0x58a750(0x2d1)+_0x1899ea[_0x58a750(0x2d4)](0x2)*0x64+'%\x20)'),FirstPictureScoreCell[_0x58a750(0x319)](_0x1899ea['toFixed'](0x2)>0x0?_0x1899ea['toFixed'](0x2)*0x64/0x64:0x0);const _0x48fd97=_0x25818d[_0x58a750(0x212)][_0x58a750(0x1ef)](_0x28fcd1=>_0x28fcd1['id']!==_0x149aa3);let _0x1e5ab5=_0x58a750(0x296)+(_0x48fd97[_0x58a750(0x20a)]-0x3<0x0?0x0:_0x48fd97[_0x58a750(0x20a)]-0x3)+'\x22)';altImagesStatusCell[_0x58a750(0x293)](_0x1e5ab5);for(let _0x383a89=0x0;_0x383a89<_0x48fd97[_0x58a750(0x20a)];_0x383a89++){const _0x4e7d3b=_0x48fd97[_0x383a89];_0x9e2fb1(_0x4e7d3b,_0x383a89);}let _0xf4ca0a=0x0;imagesScore[_0x58a750(0x2fe)](_0x3402da=>{_0xf4ca0a+=_0x3402da;});const _0xbaa6ef=_0xf4ca0a/ imagesScore[_0x58a750(0x20a)];imageScoreCell[_0x58a750(0x319)](_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64),imageScoreCell2[_0x58a750(0x319)](0x64-_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64),ImageScoreLabel['setValue']('\x20\x20'+(_0xbaa6ef[_0x58a750(0x2d4)](0x2)*0x64)[_0x58a750(0x2d4)](0x0)+_0x58a750(0x2ff));}}}catch(_0x84f3c7){Logger[_0x58a750(0x21b)](_0x58a750(0x25e)+_0x84f3c7);}function _0x9e2fb1(_0xa92af3,_0x13b329){const _0x3cca55=_0x58a750;if(_0xa92af3&&_0xa92af3['url']&&_0x13b329<0x4){const _0x395606=_0xa92af3[_0x3cca55(0x2be)],_0x580bb8=firstSheet[_0x3cca55(0x1f5)](altPicsPlacement[_0x13b329]),_0x5f5ad6=_0x3cca55(0x284)+_0x395606+'\x22)';_0x580bb8[_0x3cca55(0x293)](_0x5f5ad6);const _0x399c3d=firstSheet[_0x3cca55(0x1f5)](altPicsSizesPlacement[_0x13b329]),_0x4d0945=(_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x0]<0x4b0?_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x0]:0x4b0)*(_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x1]<0x4b0?_0xa92af3[_0x3cca55(0x2ac)][_0x3cca55(0x201)]('x')[0x1]:0x4b0)/(0x4b0*0x4b0);imagesScore[_0x3cca55(0x283)](_0x4d0945),_0x399c3d[_0x3cca55(0x319)](_0xa92af3[_0x3cca55(0x2ac)]+'\x20(\x20'+_0x4d0945[_0x3cca55(0x2d4)](0x2)*0x64+_0x3cca55(0x1ea));}}const _0x55fc51=_0x58a750(0x28a)+_0x31bdb4+_0x58a750(0x264),_0x993709=UrlFetchApp['fetch'](_0x55fc51),_0x3343ef=JSON['parse'](_0x993709[_0x58a750(0x22e)]());AIdescriptionCell[_0x58a750(0x319)]('Clique\x20em\x20\x22Gerar\x20melhorias\x22\x20para\x20obter\x20uma\x20nova\x20descrio...'),_0x3343ef&&_0x3343ef[_0x58a750(0x26d)]?descriptionCell[_0x58a750(0x319)](_0x3343ef[_0x58a750(0x26d)]):descriptionCell[_0x58a750(0x319)](_0x58a750(0x2d9)),sellsCell[_0x58a750(0x319)](_0x58a750(0x2aa)),visitsCell[_0x58a750(0x319)]('Aguardando\x20informao...'),fetchItemVisits(_0x31bdb4);}}function setRevChartSeries(){const _0x4bd4b3=_0xbdb8b6,_0x51465b=firstSheet[_0x4bd4b3(0x1f5)](''+InfoCols['InfoCol3']+Rows[_0x4bd4b3(0x206)]),_0x1d2021=0x8,_0x140c16=new Date(),_0x2ad0a7=SpreadsheetApp[_0x4bd4b3(0x2d0)]()[_0x4bd4b3(0x249)]();for(let _0x5bc105=0x0;_0x5bc105<_0x1d2021;_0x5bc105++){const _0x1997e7=new Date(_0x140c16['getFullYear'](),_0x140c16['getMonth']()-0x4+_0x5bc105,0x1)[_0x4bd4b3(0x2bb)]('pt-br',{'month':_0x4bd4b3(0x280)}),_0x2ef15e=_0x1997e7[_0x4bd4b3(0x302)](0x0)[_0x4bd4b3(0x263)]()+_0x1997e7[_0x4bd4b3(0x238)](0x1);_0x51465b[_0x4bd4b3(0x26c)](_0x5bc105,0x0)['setValue'](_0x2ef15e);}}function clearAnalysisData(_0x6d5716){const _0x10f6d6=_0xbdb8b6;Object[_0x10f6d6(0x268)](PlacementCells)[_0x10f6d6(0x2fe)](_0x74066a=>{const _0x6e39d8=_0x10f6d6;_0x6d5716?_0x74066a!=PlacementCells[_0x6e39d8(0x2ee)]&&firstSheet[_0x6e39d8(0x1f5)](_0x74066a)[_0x6e39d8(0x2e6)]():firstSheet[_0x6e39d8(0x1f5)](_0x74066a)[_0x6e39d8(0x2e6)]();});const _0x3bb722='=IMAGE(\x22'+altPicturesPlaceholder+'\x22)';firstSheet[_0x10f6d6(0x1f5)](PlacementCells[_0x10f6d6(0x2f2)])[_0x10f6d6(0x293)](_0x3bb722),altPicsPlacement[_0x10f6d6(0x2fe)](_0x42acf3=>{const _0x543f12=_0x10f6d6;sheet[_0x543f12(0x1f5)](_0x42acf3)[_0x543f12(0x319)](_0x3bb722);}),altPicsSizesPlacement['forEach'](_0x587d41=>{const _0x1bbbfa=_0x10f6d6;sheet[_0x1bbbfa(0x1f5)](_0x587d41)[_0x1bbbfa(0x319)]('');}),tagCells[_0x10f6d6(0x2fe)](_0x62852e=>{const _0x4e97bc=_0x10f6d6;if(_0x62852e===PlacementCells['FirstTag'])for(let _0x533091=0x0;_0x533091<maxTags-0x1;_0x533091++){const _0x173e8b=firstSheet[_0x4e97bc(0x1f5)](''+InfoCols[_0x4e97bc(0x209)]+(Rows[_0x4e97bc(0x30a)]+_0x533091));_0x173e8b[_0x4e97bc(0x2e6)]();}}),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x2a0))[_0x10f6d6(0x319)](0x0),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x1ff))['setValue'](0x0),firstSheet[_0x10f6d6(0x1f5)](_0x10f6d6(0x30c))['setFormula'](_0x10f6d6(0x284)+pyramidImgs[_0x10f6d6(0x260)]+'\x22)'),ELElabelCell[_0x10f6d6(0x319)]('\x20Nvel\x20de\x20Escala'),productScaleCell[_0x10f6d6(0x319)]('');}function getOpenAIDescription(){const _0x4fad70=_0xbdb8b6;if(!OpenAIToken()){SpreadsheetApp['getUi']()[_0x4fad70(0x271)]('Cole\x20seu\x20token\x20da\x20OpenAI\x20para\x20utilizar\x20esta\x20funcionalidade.'),setAccSheetActive();return;}if(validateUserEmail()!=!![])SpreadsheetApp['getUi']()[_0x4fad70(0x271)](_0x4fad70(0x273));else{AIdescriptionCell[_0x4fad70(0x319)]('Aguardando\x20resposta\x20da\x20OpenAI...\x20Isso\x20pode\x20levar\x20cerca\x20de\x201\x20minuto.');var _0x172380=firstSheet['getRange'](_0x4fad70(0x241))[_0x4fad70(0x2c4)](),_0x5cfb79=firstSheet[_0x4fad70(0x1f5)](_0x4fad70(0x24e))['getValue'](),_0x1cdcb3=_0x4fad70(0x237),_0x13939a={'title':_0x172380+'}','description':_0x5cfb79+'}','openAiKey':''+openAITokenCell['getValue']()['trim']()},_0x3e0f21={'method':_0x4fad70(0x269),'contentType':_0x4fad70(0x233),'payload':JSON[_0x4fad70(0x1f2)](_0x13939a),'muteHttpExceptions':!![]};try{var _0x3ac22b=UrlFetchApp[_0x4fad70(0x1f8)](_0x1cdcb3,_0x3e0f21),_0x1dd302=JSON[_0x4fad70(0x231)](_0x3ac22b[_0x4fad70(0x22e)]());_0x1dd302&&_0x1dd302[_0x4fad70(0x20b)]?AIdescriptionCell[_0x4fad70(0x319)](_0x1dd302[_0x4fad70(0x20b)]):AIdescriptionCell[_0x4fad70(0x319)](_0x4fad70(0x2d5));}catch(_0xb6386){Logger['log'](_0x4fad70(0x2de)+_0xb6386),SpreadsheetApp['getUi']()[_0x4fad70(0x271)](_0x4fad70(0x240)),AIdescriptionCell[_0x4fad70(0x319)]('Houve\x20um\x20problema\x20ao\x20conectar\x20com\x20a\x20OpenAI,\x20verifique\x20seu\x20Token\x20OpenAI\x20e\x20tente\x20novamente\x20em\x20alguns\x20instantes.');}}}function fetchItemVisits(_0x1c08e4){const _0x25562b=_0xbdb8b6,_0x3fb877=accessTokenCell['getValue']();if(!_0x3fb877){SpreadsheetApp[_0x25562b(0x251)]()[_0x25562b(0x271)]('Acesso\x20negado\x20pelo\x20ML.\x20Conecte\x20sua\x20conta\x20do\x20Mercado\x20Livre\x20para\x20obter\x20todas\x20as\x20informaes.');return;}const _0x7bf779=_0x25562b(0x275)+_0x1c08e4;var _0x255cf0={'method':_0x25562b(0x269),'headers':{'Authorization':'Bearer\x20'+_0x3fb877},'muteHttpExceptions':!![]};try{var _0x687342=UrlFetchApp['fetch'](_0x7bf779,_0x255cf0),_0x4cbb65=JSON[_0x25562b(0x231)](_0x687342[_0x25562b(0x22e)]());_0x4cbb65&&_0x4cbb65[_0x1c08e4]?visitsCell[_0x25562b(0x319)](_0x4cbb65[_0x1c08e4]):Logger['log'](_0x25562b(0x2d7));}catch(_0x122d10){Logger['log']('Error:\x20'+_0x122d10[_0x25562b(0x294)]());}scrapeProductInfo('https://produto.mercadolivre.com.br/MLB-'+_0x1c08e4[_0x25562b(0x201)]('MLB')[0x1]);}function scrapeProductInfo(_0x5e1a49){const _0x332833=_0xbdb8b6,_0x1201c0=_0x332833(0x310)+encodeURIComponent(_0x5e1a49);var _0x5c9c82={'method':_0x332833(0x269),'muteHttpExceptions':!![]};try{var _0x504383=UrlFetchApp[_0x332833(0x1f8)](_0x1201c0,_0x5c9c82),_0x5ccea9=JSON['parse'](_0x504383['getContentText']());_0x5ccea9?(Logger[_0x332833(0x21b)](_0x5ccea9),_0x332833(0x226)in _0x5ccea9?sellsCell[_0x332833(0x319)](_0x5ccea9['soldStock']):Logger[_0x332833(0x21b)](_0x332833(0x29a)),_0x332833(0x1fc)in _0x5ccea9?initialStockCell[_0x332833(0x319)](_0x5ccea9[_0x332833(0x1fc)]):Logger[_0x332833(0x21b)](_0x332833(0x2db))):Logger[_0x332833(0x21b)]('Invalid\x20response\x20or\x20data\x20not\x20found\x20in\x20response.');}catch(_0x229048){Logger[_0x332833(0x21b)](_0x332833(0x2de)+_0x229048[_0x332833(0x294)]());}setELEscale();}function setELEscale(){const _0x25a3da=_0xbdb8b6,_0x2dc5d5=visitsCell['getValue'](),_0x450023=sellsCell[_0x25a3da(0x2c4)](),_0x376e48=creationDaysCell[_0x25a3da(0x2c4)](),_0x28826a=_0x450023/_0x376e48;if(_0x28826a){if(validateUserEmail()!=!![]){SpreadsheetApp[_0x25a3da(0x251)]()[_0x25a3da(0x271)](_0x25a3da(0x26f)),ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x2a6)),productScaleCell['setValue'](_0x25a3da(0x316)),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))['setFormula']('=IMAGE(\x22'+pyramidImgs[_0x25a3da(0x250)]+'\x22)');return;}const _0x4f21b3=_0x28826a>0xa?0x3:_0x28826a<=0x3?0x1:0x2;if(_0x4f21b3==0x3)ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x259)+_0x4f21b3+_0x25a3da(0x2b0)),productScaleCell[_0x25a3da(0x319)]('\x20Mais\x20de\x2010x\x20em\x20vendas\x20dirias'),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))[_0x25a3da(0x293)]('=IMAGE(\x22'+pyramidImgs[_0x4f21b3]+'\x22)');else{if(_0x4f21b3==0x2)productScaleCell['setValue']('\x20Entre\x203\x20e\x209x\x20em\x20vendas\x20dirias'),firstSheet['getRange'](_0x25a3da(0x30c))[_0x25a3da(0x293)]('=IMAGE(\x22'+pyramidImgs[_0x4f21b3]+'\x22)');else _0x4f21b3==0x1?(productScaleCell['setValue'](_0x25a3da(0x2cf)),firstSheet[_0x25a3da(0x1f5)](_0x25a3da(0x30c))['setFormula'](_0x25a3da(0x284)+pyramidImgs[_0x4f21b3]+'\x22)')):(ELElabelCell[_0x25a3da(0x319)](_0x25a3da(0x315)),productScaleCell['setValue'](''),shefirstSheett[_0x25a3da(0x1f5)](_0x25a3da(0x30c))[_0x25a3da(0x293)](_0x25a3da(0x284)+pyramidImgs[empty]+'\x22)'));}}}function updateDescAnalysisData(_0xec1a57){const _0x101338=_0xbdb8b6;var _0x692ed0=JSON[_0x101338(0x231)](_0xec1a57);if(!_0x692ed0){descAnalysis_ortografia[_0x101338(0x319)](''),descAnalysis_trechos[_0x101338(0x319)](''),descAnalysis_cta[_0x101338(0x319)](''),descAnalysis_qualidade[_0x101338(0x319)](''),descAnalysis_ortografia_explicacao[_0x101338(0x319)](''),descAnalysis_trechos_explicacao['setValue'](''),descAnalysis_cta_explicacao[_0x101338(0x319)](''),descAnalysis_qualidade_explicacao[_0x101338(0x319)]('');return;}descAnalysis_ortografia[_0x101338(0x319)](_0x692ed0['ortografia'][_0x101338(0x2b1)]),descAnalysis_trechos['setValue'](_0x692ed0['trechos'][_0x101338(0x2b1)]),descAnalysis_cta[_0x101338(0x319)](_0x692ed0['cta'][_0x101338(0x2b1)]),descAnalysis_qualidade[_0x101338(0x319)](_0x692ed0['qualidade'][_0x101338(0x2b1)]),descAnalysis_ortografia_explicacao[_0x101338(0x319)](_0x692ed0[_0x101338(0x223)][_0x101338(0x2c9)]),descAnalysis_trechos_explicacao[_0x101338(0x319)](_0x692ed0['trechos'][_0x101338(0x2e3)]),descAnalysis_cta_explicacao['setValue'](_0x692ed0['cta'][_0x101338(0x2e5)]),descAnalysis_qualidade_explicacao[_0x101338(0x319)](_0x692ed0['qualidade']['explicacao_qualidade']);}function fetchDataAndUpdateSheet(){const _0x33c428=_0xbdb8b6;if(!OpenAIToken()){SpreadsheetApp[_0x33c428(0x251)]()['alert'](_0x33c428(0x225)),setAccSheetActive();return;}if(validateUserEmail()!=!![])SpreadsheetApp[_0x33c428(0x251)]()[_0x33c428(0x271)](_0x33c428(0x273));else{var _0x13f299=firstSheet[_0x33c428(0x1f5)](_0x33c428(0x24e))[_0x33c428(0x2c4)](),_0x37928c={'description':_0x13f299+'}','openAiKey':''+openAITokenCell['getValue']()[_0x33c428(0x224)]()},_0x1cc449='https://sync.escaladaecom.com.br/api/description-analysis',_0x436e80={'method':'post','contentType':'application/json','payload':JSON[_0x33c428(0x1f2)](_0x37928c)};try{var _0x566b8b=UrlFetchApp[_0x33c428(0x1f8)](_0x1cc449,_0x436e80);if(_0x566b8b['getResponseCode']()==0xc8){var _0x584746=JSON[_0x33c428(0x231)](_0x566b8b[_0x33c428(0x22e)]());updateDescAnalysisData(_0x584746[_0x33c428(0x20b)]);}else Logger[_0x33c428(0x21b)]('Falha\x20na\x20requisio:\x20'+_0x566b8b[_0x33c428(0x210)]());}catch(_0x4d6c92){Logger[_0x33c428(0x21b)](_0x33c428(0x2de)+_0x4d6c92),updateDescAnalysisData(null),SpreadsheetApp[_0x33c428(0x251)]()[_0x33c428(0x271)](_0x33c428(0x240));}}}function findAdRank(){const _0x13d372=_0xbdb8b6,_0xa9be0f=keywordCell[_0x13d372(0x2c4)](),_0x338ac1=firstSheet[_0x13d372(0x1f5)](_0x13d372(0x307))['getValue'](),_0x34806d=accessTokenCell[_0x13d372(0x2c4)]();if(!_0x338ac1||_0x338ac1[_0x13d372(0x23b)](_0x13d372(0x285))==![]){SpreadsheetApp['getUi']()[_0x13d372(0x271)]('Busque\x20um\x20produto\x20para\x20obter\x20mais\x20informaes\x20(ID).'),rankResultCell[_0x13d372(0x319)]('');return;}if(!_0xa9be0f){SpreadsheetApp[_0x13d372(0x251)]()['alert']('Escreva\x20um\x20termo\x20ou\x20palavra-chave\x20para\x20obter\x20mais\x20informaes.'),rankResultCell['setValue']('');return;}if(validateUserEmail()!=!![]){SpreadsheetApp[_0x13d372(0x251)]()[_0x13d372(0x271)](_0x13d372(0x273)),rankResultCell[_0x13d372(0x319)]('');return;}var _0x253b50={'pages':0x14,'adFound':![],'adRankPosition':0x0,'adPagePosition':0x0,'keyword':'','productID':_0x338ac1},_0x33751b={'base':_0x13d372(0x217),'search':{'keywordItems':_0x13d372(0x2ad)}};if(_0x34806d&&_0x34806d[_0x13d372(0x20a)]>0x0){const _0x4518e7=getUserInfo(_0x34806d,!![]);if(_0x4518e7==null){const _0x4117fd=getNewAccessToken();_0x4117fd?_0x38c917():SpreadsheetApp['getUi']()['alert'](_0x13d372(0x28b));}else _0x38c917();}else SpreadsheetApp['getUi']()[_0x13d372(0x271)](_0x13d372(0x254));function _0x38c917(){const _0x331254=_0x13d372;var _0x6cd7f3=accessTokenCell[_0x331254(0x2c4)](),_0x1d7e9d={},_0x423e50=![],_0x31ba1a=0x0,_0x4ec727=0x0;for(var _0x277c74=0x0;_0x277c74<_0x253b50['pages'];_0x277c74++){var _0x21dfa4={'keywordItems':_0x33751b['base']+_0x33751b[_0x331254(0x265)][_0x331254(0x298)]+_0xa9be0f+_0x331254(0x1ed)+(_0x277c74>0x0?_0x277c74*0x32+0x1:_0x277c74)},_0x57d366=UrlFetchApp[_0x331254(0x1f8)](_0x21dfa4[_0x331254(0x298)],{'method':_0x331254(0x269),'headers':{'Authorization':_0x331254(0x2d3)+_0x6cd7f3},'muteHttpExceptions':!![]});if(_0x57d366[_0x331254(0x210)]()!==0xc8){console['error'](_0x331254(0x20e)+_0x57d366[_0x331254(0x22e)]());return;}var _0x268c92=JSON[_0x331254(0x231)](_0x57d366[_0x331254(0x22e)]());if(_0x268c92){var _0x3d311a=_0x268c92[_0x331254(0x29c)];for(var _0x58ff26=0x0;_0x58ff26<_0x3d311a['length'];_0x58ff26++){if(_0x3d311a[_0x58ff26]['id']==_0x253b50['productID']){_0x31ba1a=_0x58ff26,_0x423e50=!![];break;}}if(_0x423e50){_0x31ba1a=_0x31ba1a+0x1,_0x4ec727=_0x277c74+0x1;break;}_0x1d7e9d[_0x277c74]=_0x268c92;}}(Object[_0x331254(0x244)](_0x1d7e9d)[_0x331254(0x20a)]==_0x253b50[_0x331254(0x2c8)]||_0x423e50)&&(_0x253b50[_0x331254(0x1f1)]=_0x423e50,_0x253b50[_0x331254(0x22a)]=_0x31ba1a,_0x253b50[_0x331254(0x2eb)]=_0x4ec727,_0x253b50[_0x331254(0x26a)]=_0xa9be0f);let _0xb6febb=_0x331254(0x20d)+_0x253b50[_0x331254(0x2eb)]+_0x331254(0x2a4)+_0x253b50[_0x331254(0x22a)];_0x253b50[_0x331254(0x2eb)]>0x0?rankResultCell[_0x331254(0x319)](_0xb6febb):rankResultCell['setValue'](_0x331254(0x31e));}}function _0x5310(_0x47aa36,_0x4ad500){const _0x5ca404=_0x5ca4();return _0x5310=function(_0x5310fd,_0x2efb7d){_0x5310fd=_0x5310fd-0x1ea;let _0x2cac7d=_0x5ca404[_0x5310fd];return _0x2cac7d;},_0x5310(_0x47aa36,_0x4ad500);}function getNewAccessToken(){const _0x11eeb2=_0xbdb8b6,_0x36a45a=accessTokenSheet['getRange']('G1')['getValue']();if(_0x36a45a&&_0x36a45a['length']>0x0){var _0x109f27=_0x11eeb2(0x22d),_0x4a7d19={'grant_type':'refresh_token','client_id':_0x11eeb2(0x2f7),'client_secret':_0x11eeb2(0x1f9),'refresh_token':''+_0x36a45a},_0x3a5e04={'method':_0x11eeb2(0x2ec),'payload':_0x4a7d19};try{var _0x2d9a1f=UrlFetchApp[_0x11eeb2(0x1f8)](_0x109f27,_0x3a5e04),_0x2db2da=JSON[_0x11eeb2(0x231)](_0x2d9a1f[_0x11eeb2(0x22e)]());_0x2db2da[_0x11eeb2(0x216)]&&backupCell[_0x11eeb2(0x319)](_0x2db2da['refresh_token']);if(_0x2db2da[_0x11eeb2(0x304)])return accessTokenCell['setValue'](''+_0x2db2da[_0x11eeb2(0x304)]),''+_0x2db2da[_0x11eeb2(0x304)];}catch(_0x44b5bf){return Logger['log']('Error\x20fetching\x20token:\x20'+_0x44b5bf[_0x11eeb2(0x294)]()),null;}}else clearAnalysisData(),SpreadsheetApp[_0x11eeb2(0x251)]()[_0x11eeb2(0x271)](_0x11eeb2(0x30d));}function onOpen(){const _0x58744e=_0xbdb8b6;var _0x1f8b8d=SpreadsheetApp[_0x58744e(0x251)]();_0x1f8b8d[_0x58744e(0x301)]('\x20Integrao\x20EscaladaEcom')['addItem'](_0x58744e(0x2dd),_0x58744e(0x1ec))[_0x58744e(0x227)](_0x58744e(0x24f),_0x58744e(0x1f6))[_0x58744e(0x227)](_0x58744e(0x2fb),_0x58744e(0x255))['addItem'](_0x58744e(0x2cc),'menuItem3')[_0x58744e(0x227)](_0x58744e(0x228),_0x58744e(0x27f))['addItem']('Passo\x20Final\x20-\x20E-mail\x20Escalada\x20Ecom',_0x58744e(0x2b8))[_0x58744e(0x2b2)]();}function GPTconnect(){const _0x31c443=_0xbdb8b6,_0x1151d4=_0x31c443(0x295),_0x111390='\x0a\x20\x20<html>\x0a\x0a<head>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20.connect-btn2\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20padding:\x2014px\x2031px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20200;\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#1B1C20;\x0a\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2011px;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#777;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:hover\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#a4a4a4;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#3e8e41;\x0a\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#666;\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(4px);\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a\x0a<body\x20style=\x22\x0adisplay:\x20flex;\x0ajustify-content:\x20center;\x0aflex-direction:\x20column;\x0aalign-items:\x20center;\x0a\x20\x20\x20\x20\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:\x20flex;justify-content:\x20center;flex-direction:\x20row;align-items:\x20center;padding:\x201rem;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22margin-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20fill=\x22#000000\x22\x20width=\x2255px\x22\x20height=\x2255px\x22\x20viewBox=\x220\x200\x2024\x2024\x22\x20role=\x22img\x22><title>OpenAI\x20icon</title><path\x20d=\x22M22.2819\x209.8211a5.9847\x205.9847\x200\x200\x200-.5157-4.9108\x206.0462\x206.0462\x200\x200\x200-6.5098-2.9A6.0651\x206.0651\x200\x200\x200\x204.9807\x204.1818a5.9847\x205.9847\x200\x200\x200-3.9977\x202.9\x206.0462\x206.0462\x200\x200\x200\x20.7427\x207.0966\x205.98\x205.98\x200\x200\x200\x20.511\x204.9107\x206.051\x206.051\x200\x200\x200\x206.5146\x202.9001A5.9847\x205.9847\x200\x200\x200\x2013.2599\x2024a6.0557\x206.0557\x200\x200\x200\x205.7718-4.2058\x205.9894\x205.9894\x200\x200\x200\x203.9977-2.9001\x206.0557\x206.0557\x200\x200\x200-.7475-7.0729zm-9.022\x2012.6081a4.4755\x204.4755\x200\x200\x201-2.8764-1.0408l.1419-.0804\x204.7783-2.7582a.7948.7948\x200\x200\x200\x20.3927-.6813v-6.7369l2.02\x201.1686a.071.071\x200\x200\x201\x20.038.052v5.5826a4.504\x204.504\x200\x200\x201-4.4945\x204.4944zm-9.6607-4.1254a4.4708\x204.4708\x200\x200\x201-.5346-3.0137l.142.0852\x204.783\x202.7582a.7712.7712\x200\x200\x200\x20.7806\x200l5.8428-3.3685v2.3324a.0804.0804\x200\x200\x201-.0332.0615L9.74\x2019.9502a4.4992\x204.4992\x200\x200\x201-6.1408-1.6464zM2.3408\x207.8956a4.485\x204.485\x200\x200\x201\x202.3655-1.9728V11.6a.7664.7664\x200\x200\x200\x20.3879.6765l5.8144\x203.3543-2.0201\x201.1685a.0757.0757\x200\x200\x201-.071\x200l-4.8303-2.7865A4.504\x204.504\x200\x200\x201\x202.3408\x207.872zm16.5963\x203.8558L13.1038\x208.364\x2015.1192\x207.2a.0757.0757\x200\x200\x201\x20.071\x200l4.8303\x202.7913a4.4944\x204.4944\x200\x200\x201-.6765\x208.1042v-5.6772a.79.79\x200\x200\x200-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759\x200\x200\x200-.7854\x200L9.409\x209.2297V6.8974a.0662.0662\x200\x200\x201\x20.0284-.0615l4.8303-2.7866a4.4992\x204.4992\x200\x200\x201\x206.6802\x204.66zM8.3065\x2012.863l-2.02-1.1638a.0804.0804\x200\x200\x201-.038-.0567V6.0742a4.4992\x204.4992\x200\x200\x201\x207.3757-3.4537l-.142.0805L8.704\x205.459a.7948.7948\x200\x200\x200-.3927.6813zm1.0976-2.3654l2.602-1.4998\x202.6069\x201.4998v2.9994l-2.5974\x201.4997-2.6067-1.4997Z\x22/></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<img\x20width=\x2224\x22\x20height=\x2224\x22\x20src=\x22https://img.icons8.com/material-two-tone/24/data-in-both-directions.png\x22\x20alt=\x22data-in-both-directions\x22\x20style=\x22padding:\x200rem\x200.5rem\x200rem\x201rem;\x20margin-top:\x20-0.5rem;\x22\x20/>\x0a\x20\x20\x20\x20<div\x20style=\x22width:\x20111px;\x20margin-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20id=\x22Camada_1\x22\x20x=\x220px\x22\x20y=\x220px\x22\x20viewBox=\x220\x200\x20800\x20262.2\x22\x20style=\x22enable-background:new\x200\x200\x20800\x20262.2;\x22\x20xml:space=\x22preserve\x22>\x20<style\x20type=\x22text/css\x22>\x20.st0{fill:#E981B2;}\x20.st1{fill:#EB599B;}\x20.st2{fill:#E7277D;}\x20.st3{fill:#020203;}\x20</style>\x20<g>\x20<rect\x20x=\x2275.6\x22\x20y=\x22168.6\x22\x20class=\x22st0\x22\x20width=\x2260.8\x22\x20height=\x2276.9\x22/>\x20<rect\x20x=\x22121.2\x22\x20y=\x22110.9\x22\x20class=\x22st1\x22\x20width=\x2260.8\x22\x20height=\x22115.4\x22/>\x20<rect\x20x=\x22166.8\x22\x20y=\x2253.2\x22\x20class=\x22st2\x22\x20width=\x2260.8\x22\x20height=\x22153.9\x22/>\x20<g>\x20<path\x20class=\x22st3\x22\x20d=\x22M277.8,94.1c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7\x20c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z\x20M304.9,82.2\x20c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M339.7,103.9c1.5,5.6,6,8.7,13.3,8.7c7.2,0,9.8-2.6,9.8-6.8c0-4.5-3-6.3-13.1-8.7\x20c-22.9-5.6-26.6-12.7-26.6-22.6c0-10.3,7.3-21.3,28.5-21.3c21.3,0,28.5,11.6,29.1,21.1h-18.5c-0.6-2.6-2.4-7.5-11.5-7.5\x20c-6.4,0-8.5,2.8-8.5,6c0,3.5,2.2,5.2,13.6,7.8c23.4,5.4,26.7,13.5,26.7,23.8c0,11.6-8.8,22.2-30.2,22.2\x20c-21.3,0-30.1-10.3-31.6-22.7H339.7z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M443.9,102.4c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2\x20c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7\x20c6.7,0,10.3-3.9,12-9.2H443.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M502.2,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M483.3,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M507.6,125v-99H527v99H507.6z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M590.3,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M571.4,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M660.1,26.1v79.7c0,6.4,0,12.9,0.1,19.3h-18.7c-0.4-2.1-0.8-5.7-0.9-7.3c-3.4,5.5-9.4,9-19.9,9\x20c-17.7,0-29-14.3-29-36.1c0-21.6,12-37.3,31.9-37.3c10.1,0,15.5,3.6,17.1,6.7V26.1H660.1z\x20M611.7,90c0,13.7,5.3,21.1,14.8,21.1\x20c13.4,0,14.9-11.1,14.9-21.2c0-12-1.7-21.1-14.4-21.1C616.8,68.8,611.7,76.8,611.7,90z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M723.5,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M704.5,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M277.8,174.4c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7\x20c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z\x20M304.9,162.5\x20c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M386.2,182.7c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2\x20c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7\x20c6.7,0,10.3-3.9,12-9.2H386.2z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M451.6,170.1c0,21.2-12.7,36.8-34.9,36.8c-21.8,0-34.5-15.5-34.5-36.5c0-21.7,13.1-36.9,35.4-36.9\x20C438.2,133.5,451.6,148.1,451.6,170.1z\x20M401.9,170.2c0,13.5,5.8,21.5,15.2,21.5c9.5,0,14.8-8,14.8-21.4c0-14.7-5.4-21.6-15.1-21.6\x20C407.8,148.7,401.9,155.4,401.9,170.2z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M452.6,153.2c0-6.1,0-12.1-0.1-18.1H471c0.3,1.7,0.6,5.6,0.7,8.4c3.6-5.2,9.2-10,19.5-10\x20c10.1,0,15.6,5.2,18.1,10.7c4.1-5.7,10.2-10.7,21.6-10.7c12.2,0,22.2,7.5,22.2,25.8v46h-18.9v-43.7c0-6.3-2.3-12.5-10.3-12.5\x20c-8.3,0-11.5,5.3-11.5,16.1v40.1h-19.1v-42.9c0-7.3-1.8-13.1-10.1-13.1c-7.9,0-11.6,4.9-11.6,16.9v39.2h-19.2V153.2z\x22/>\x20</g>\x20</g>\x20<style\x20xmlns=\x22\x22\x20id=\x22stylebot-css-escaladaecom.com.br\x22>#elementor-panel-state-loading\x20{\x0a\x20\x20display:\x20none\x20!important;\x0a}</style></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20<a\x20href=\x22'+_0x1151d4+_0x31c443(0x276),_0x1d5c86=HtmlService[_0x31c443(0x24a)](_0x111390)[_0x31c443(0x258)](0x226)[_0x31c443(0x288)](0xaf);SpreadsheetApp[_0x31c443(0x251)]()[_0x31c443(0x1ee)](_0x1d5c86,_0x31c443(0x30f));}function menuItemGPT(){const _0x7f2952=_0xbdb8b6;var _0x5decc0=ss[_0x7f2952(0x23c)](_0x7f2952(0x220));ss[_0x7f2952(0x24d)](_0x5decc0);var _0x5065c4=SpreadsheetApp[_0x7f2952(0x251)]();if(gptTokenCell['getValue']()['startsWith'](_0x7f2952(0x2ea))){var _0x55e07f=_0x5065c4[_0x7f2952(0x271)]('Ateno!',_0x7f2952(0x214),_0x5065c4[_0x7f2952(0x246)][_0x7f2952(0x202)]);if(_0x55e07f==_0x5065c4[_0x7f2952(0x2d6)]['OK'])GPTconnect();else return;}else{var _0x55e07f=_0x5065c4[_0x7f2952(0x271)](_0x7f2952(0x229),_0x7f2952(0x1f3),_0x5065c4[_0x7f2952(0x246)][_0x7f2952(0x202)]);if(_0x55e07f==_0x5065c4[_0x7f2952(0x2d6)]['OK'])return;else return;}}function menuItem0(){const _0x204b15=_0xbdb8b6;var _0x37f97b=ss['getSheetByName'](_0x204b15(0x220));ss[_0x204b15(0x24d)](_0x37f97b);var _0x345175=SpreadsheetApp['getUi'](),_0x2ef5db=_0x345175[_0x204b15(0x271)](_0x204b15(0x261),'Voc\x20ser\x20redirecionado\x20para\x20a\x20pgina\x20de\x20autorizao\x20da\x20Google,\x20ao\x20efetuar\x20todas\x20as\x20liberaes\x20retorne\x20para\x20a\x20planilha\x20e\x20siga\x20os\x20prximos\x20passos\x20no\x20menu\x20do\x20EscaladaEcom.',_0x345175[_0x204b15(0x246)][_0x204b15(0x202)]);if(_0x2ef5db==_0x345175[_0x204b15(0x2d6)]['OK'])return;else return;}function menuItem1(){const _0x5787aa=_0xbdb8b6;var _0x2f1c4d=ss['getSheetByName']('Conectar\x20Conta\x20(privado)');ss[_0x5787aa(0x24d)](_0x2f1c4d);var _0x1ce5f6=SpreadsheetApp['getUi'](),_0x1c5a18=_0x1ce5f6[_0x5787aa(0x271)](_0x5787aa(0x261),'Voc\x20ser\x20redirecionado\x20para\x20o\x20Mercado\x20Livre\x20para\x20conectar-se\x20a\x20nossa\x20CONSULTORIA.\x20Aps\x20autorizar\x20o\x20acesso,\x20volte\x20para\x20esta\x20planilha\x20e\x20clique\x20em\x20\x22Passo\x202\x20-\x20Conectar\x20conta\x20ML\x22.',_0x1ce5f6['ButtonSet']['OK_CANCEL']);if(_0x1c5a18==_0x1ce5f6[_0x5787aa(0x2d6)]['OK'])grantSync(_0x5787aa(0x205));else return;}function menuItem2(){const _0x6e54=_0xbdb8b6;var _0x11881b=SpreadsheetApp['getActiveSpreadsheet'](),_0x7320e=_0x11881b[_0x6e54(0x23c)]('Conectar\x20Conta\x20(privado)');_0x7320e[_0x6e54(0x1eb)](),_0x11881b[_0x6e54(0x24d)](_0x7320e),AccSync();}function menuItem3(){const _0x1e6408=_0xbdb8b6;var _0x34767b=accessTokenSheet;_0x34767b[_0x1e6408(0x1f5)]('I3')[_0x1e6408(0x319)](_0x1e6408(0x2e4)),verifyToken(),_0x34767b[_0x1e6408(0x1f5)]('I3')['clearContent']();}function menuItem4(){const _0x4f44ca=_0xbdb8b6;var _0xeb234f=setAccSheetActive(),_0x21d096=SpreadsheetApp[_0x4f44ca(0x251)](),_0xe6f590=_0x21d096[_0x4f44ca(0x2e1)]('Aluno\x20Escadala\x20Ecom:',_0x4f44ca(0x270),_0x21d096[_0x4f44ca(0x246)][_0x4f44ca(0x202)]);if(_0xe6f590['getSelectedButton']()===_0x21d096['Button']['OK']){var _0xfbc5f=_0xe6f590['getResponseText']();_0xfbc5f=_0xfbc5f[_0x4f44ca(0x224)]()['toLowerCase'](),_0xeb234f['getRange']('G7')[_0x4f44ca(0x319)](_0xfbc5f);var _0x2dcf22='',_0x53d0ed=_0x4f44ca(0x306),_0x34efa1={'method':'get','contentType':'application/json','payload':JSON[_0x4f44ca(0x1f2)]({'email':_0xfbc5f})},_0xe6f590=UrlFetchApp[_0x4f44ca(0x1f8)](_0x53d0ed,_0x34efa1);if(_0xe6f590[_0x4f44ca(0x210)]()==0xc8){_0xe6f590!=null&&_0xe6f590!=''&&_0xe6f590!='null'&&_0xe6f590!=_0x4f44ca(0x26b)&&_0xe6f590!='false'?(_0xeb234f['getRange']('G8')[_0x4f44ca(0x319)]('Ativo'),_0x2dcf22='Ativo'):_0xe6f590==null||_0xe6f590==_0x4f44ca(0x2a9)?(_0xeb234f[_0x4f44ca(0x1f5)]('G8')[_0x4f44ca(0x319)](_0x4f44ca(0x290)),_0x2dcf22=_0x4f44ca(0x290)):(_0xeb234f['getRange']('G8')[_0x4f44ca(0x319)](_0x4f44ca(0x236)),_0x2dcf22='Expirado');var _0x21d096=SpreadsheetApp[_0x4f44ca(0x251)](),_0x304f78=_0x21d096[_0x4f44ca(0x271)](_0x4f44ca(0x2cb)+_0x2dcf22,_0x21d096['ButtonSet']['OK']);if(_0x304f78==_0x21d096[_0x4f44ca(0x2d6)]['OK']){if(_0x2dcf22==_0x4f44ca(0x28d)){var _0x46751b=SpreadsheetApp[_0x4f44ca(0x2d0)]()[_0x4f44ca(0x23c)]('Analisador\x20de\x20Anncio');ss[_0x4f44ca(0x24d)](_0x46751b),_0xeb234f[_0x4f44ca(0x1f7)]();}}}else SpreadsheetApp[_0x4f44ca(0x251)]()[_0x4f44ca(0x271)](_0x4f44ca(0x277)),Logger['log'](_0x4f44ca(0x2c3)+_0xe6f590[_0x4f44ca(0x210)]());}else Logger[_0x4f44ca(0x21b)](_0x4f44ca(0x2b4));}function setAccSheetActive(){const _0x2a71eb=_0xbdb8b6;var _0xddb4de=SpreadsheetApp[_0x2a71eb(0x2d0)](),_0x163244=_0xddb4de['getSheetByName'](_0x2a71eb(0x220));return _0x163244[_0x2a71eb(0x1eb)](),_0xddb4de[_0x2a71eb(0x24d)](_0x163244),_0x163244;}function grantSync(_0x28002b){const _0x390ea0=_0xbdb8b6,_0x45b6b4='\x0a\x20\x20<html>\x0a\x0a<head>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20.connect-btn\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20padding:\x2014px\x2031px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20color:\x20black;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20200;\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#ffcd0c;\x0a\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2011px;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#777;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:hover\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#a4a4a4;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#3e8e41;\x0a\x20\x20\x20\x20\x20\x20color:\x20white;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#666;\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(4px);\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a\x0a<body\x20style=\x22\x0adisplay:\x20flex;\x0ajustify-content:\x20center;\x0aflex-direction:\x20column;\x0aalign-items:\x20center;\x0a\x20\x20\x20\x20\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:\x20flex;justify-content:\x20center;flex-direction:\x20row;align-items:\x20center;padding:\x201rem;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22width:\x20111px;\x20margin-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20viewBox=\x220\x200\x20920.12\x20233.88\x22><path\x20d=\x22M337.94,110.51C337.94,49.63,262.29,0,169,0S0,49.63,0,110.51c0,1.58,0,5.92,0,6.48,0,64.59,66.12,116.89,169,116.89,103.47,0,169-52.29,169-116.89Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M331.47,110.46c0,57.39-72.74,103.92-162.47,103.92S6.54,167.85,6.54,110.46,79.28,6.52,169,6.52,331.47,53.06,331.47,110.46\x22\x20fill=\x22#f7d032\x22/><path\x20d=\x22M115.06,77.67c-.08.16-1.7,1.84-.66,3.19,2.57,3.27,10.49,5.15,18.5,3.35,4.76-1.07,10.88-5.93,16.79-10.62,6.42-5.1,12.79-10.2,19.18-12.24,6.78-2.16,11.12-1.23,14-.36,3.15.94,6.85,3,12.74,7.44,11.13,8.35,55.83,47.37,63.55,54.12a384.82,384.82,0,0,1,71.43-23c-3.27-20-15.44-38.35-33.93-53.35-25.75,10.82-57.22,16.46-88,1.43-.16-.06-16.81-8-33.24-7.56-24.42.57-35,11.14-46.18,22.32Z\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M257.33,126.79c-.52-.47-52.55-46-64.35-54.86-6.81-5.12-10.61-6.42-14.6-6.92a19.83,19.83,0,0,0-6.94.65C166,67.16,158.78,72,152.42,77c-6.59,5.25-12.81,10.2-18.58,11.48-7.36,1.66-16.36-.29-20.46-3.06a9.13,9.13,0,0,1-3.4-3.73c-1.51-3.52,1.28-6.33,1.74-6.8l14.36-15.53c1.67-1.67,3.35-3.33,5.07-5a91.28,91.28,0,0,0-13.08,3c-5.2,1.46-10.21,2.85-15.27,2.85a146.13,146.13,0,0,1-15.59-2.44,232.68,232.68,0,0,1-41.43-15C25.36,58,11.71,77,7.77,97.9c2.93.78,7.66,2.18,9.64,2.62C63.6,110.79,78,121.37,80.61,123.58a15.28,15.28,0,0,1,24,1.41,17.39,17.39,0,0,1,11-3.87,20.62,20.62,0,0,1,6.6,1.15,15.25,15.25,0,0,1,9.3,8.41,15.17,15.17,0,0,1,6.43-1.37,19.32,19.32,0,0,1,7.68,1.7c8.52,3.65,9.84,12,9.07,18.32a15.84,15.84,0,0,1,1.84-.1,18.29,18.29,0,0,1,16.12,27c2.74,1.54,9.75,5,15.9,4.27,4.91-.63,6.78-2.31,7.45-3.25.45-.66.94-1.4.49-2l-13-14.48s-2.14-2-1.43-2.81,2.05.35,3,1.13c6.64,5.54,14.74,13.9,14.74,13.9s.68,1.15,3.67,1.69c2.57.47,7.13.19,10.3-2.4A16.57,16.57,0,0,0,216,170a.69.69,0,0,1-.14.12c3.32-4.27-.38-8.58-.38-8.58l-15.21-17.09s-2.18-2-1.44-2.82,2.07.36,3,1.15c4.83,4,11.63,10.86,18.16,17.25,1.27.93,7,4.48,14.6-.51,4.61-3,5.53-6.73,5.4-9.54a10.88,10.88,0,0,0-3.21-6.34L216,122.71s-2.2-1.87-1.42-2.82c.64-.8,2.06.35,3,1.13,6.63,5.54,24.55,22,24.55,22,.25.17,6.45,4.58,14.11-.29a9.4,9.4,0,0,0,4.63-7.45,11,11,0,0,0-3.49-8.47\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M156.5,153.28c-3.22,0-6.74,1.88-7.2,1.6-.27-.17.19-1.46.5-2.21s4.55-13.51-5.8-17.95c-7.91-3.4-12.76.42-14.43,2.16-.42.45-.62.41-.67-.17-.16-2.3-1.18-8.52-8-10.6-9.75-3-16,3.82-17.63,6.28A11.31,11.31,0,1,0,99.88,142c.06.07.09.17.06.39-.48,2.8-1.35,13,9.31,17.14,4.28,1.65,7.92.43,10.93-1.7.9-.63,1-.36.92.49-.39,2.62.1,8.22,8,11.42,6,2.43,9.53-.06,11.84-2.21,1-.92,1.29-.77,1.35.66a14.26,14.26,0,1,0,14.24-14.91\x22\x20fill=\x22#fff\x22/><path\x20d=\x22M156.5,180.78a13.15,13.15,0,0,1-13.21-12.63c0-.61-.08-2.22-1.44-2.22a2.52,2.52,0,0,0-1.61.84,9.29,9.29,0,0,1-6.49,2.94,11.38,11.38,0,0,1-4.28-.93c-7.54-3.05-7.64-8.23-7.33-10.31a1.9,1.9,0,0,0-.29-1.59l-.45-.41h-.48a2.28,2.28,0,0,0-1.31.53,11,11,0,0,1-6.4,2.28,9.74,9.74,0,0,1-3.57-.71c-9.93-3.86-9.15-13.23-8.67-16a1.36,1.36,0,0,0-.42-1.31l-.71-.58-.65.63a10.32,10.32,0,1,1,3-8.73l.36,2.77,1.52-2.35c.17-.27,4.34-6.57,12-6.56a15.07,15.07,0,0,1,4.47.7c6.11,1.86,7.14,7.4,7.3,9.71.12,1.34,1.07,1.4,1.26,1.4a1.68,1.68,0,0,0,1.19-.62,10.41,10.41,0,0,1,7.59-3.2,14.57,14.57,0,0,1,5.68,1.28c9.71,4.17,5.31,16.5,5.26,16.63-.84,2-.87,2.94-.08,3.46l.37.19h.29a7.37,7.37,0,0,0,1.88-.49,16.35,16.35,0,0,1,5.17-1.14h0a13.24,13.24,0,1,1,0,26.47m102.85-59.44c-16-14-53.08-46.2-63.11-53.72C190.5,63.3,186.6,61,183.16,60a21.74,21.74,0,0,0-6.41-1,27.07,27.07,0,0,0-8.17,1.36c-6.48,2.06-12.93,7.19-19.18,12.15l-.32.26c-5.82,4.63-11.84,9.42-16.39,10.44a28.16,28.16,0,0,1-6.07.67c-5.09,0-9.68-1.48-11.4-3.67-.28-.36-.1-1,.57-1.79l.08-.11L130,63.12c11-11,21.47-21.47,45.48-22l1.2,0c14.94,0,29.89,6.7,31.56,7.48a98,98,0,0,0,43,10.32c15.16,0,30.8-3.75,47.24-11.32q-2.76-2.31-5.72-4.52c-14.43,6.26-28.2,9.42-41.48,9.41A91.42,91.42,0,0,1,211,42.77c-.69-.33-17.2-8.11-34.36-8.12l-1.35,0c-20.17.47-31.54,7.63-39.18,13.91-7.43.18-13.84,2-19.55,3.56-5.08,1.42-9.47,2.65-13.77,2.64-1.76,0-4.94-.16-5.22-.17-4.93-.15-29.78-6.24-49.53-13.72q-3,2.14-5.84,4.41C62.87,53.76,88,60.3,95.91,60.81c2.2.15,4.56.4,6.9.41,5.25,0,10.48-1.47,15.54-2.9,3-.84,6.3-1.75,9.78-2.41-.93.9-1.86,1.83-2.79,2.75L111,74.17c-1.12,1.13-3.57,4.17-2,7.91a10,10,0,0,0,3.77,4.18c3.42,2.3,9.53,3.86,15.21,3.86a27.3,27.3,0,0,0,6.07-.64c6-1.34,12.3-6.36,19-11.66,5.32-4.23,12.87-9.59,18.66-11.17a21.26,21.26,0,0,1,5.19-.71c.48,0,.93,0,1.34.07,3.83.49,7.52,1.79,14.12,6.74,11.76,8.84,63.79,54.36,64.31,54.81a9.94,9.94,0,0,1,3.12,7.65,8.34,8.34,0,0,1-4.16,6.65,12.69,12.69,0,0,1-6.83,2.12,11.23,11.23,0,0,1-6-1.75c-.19-.15-18-16.5-24.58-22a5.47,5.47,0,0,0-3.08-1.65,1.69,1.69,0,0,0-1.36.64c-1,1.28.12,3,1.48,4.19l20.83,20.94A9.9,9.9,0,0,1,239,150c.17,3.47-1.49,6.37-4.94,8.64a13.41,13.41,0,0,1-7.39,2.44,10.78,10.78,0,0,1-5.93-1.8l-3-2.95c-5.46-5.37-11.1-10.92-15.22-14.37a5.62,5.62,0,0,0-3.11-1.61,1.84,1.84,0,0,0-1.32.55c-.46.53-.79,1.47.38,3a10.05,10.05,0,0,0,1,1.17l15.2,17.08c.13.15,3.13,3.71.35,7.28l-.54.68a15,15,0,0,1-1.42,1.36,12.17,12.17,0,0,1-7.43,2.35,11.68,11.68,0,0,1-2-.17,5.07,5.07,0,0,1-3-1.27l-.18-.18c-.83-.86-8.49-8.69-14.83-14a5.25,5.25,0,0,0-3-1.57,1.78,1.78,0,0,0-1.36.61c-1.25,1.37.63,3.43,1.43,4.17l13,14.3a2.78,2.78,0,0,1-.5.87c-.46.65-2,2.22-6.73,2.81a14.06,14.06,0,0,1-1.72.1c-4.85,0-10-2.35-12.69-3.76a19.16,19.16,0,0,0,1.84-8.22,19.36,19.36,0,0,0-19.33-19.36l-.69,0c.34-4.87-.35-14.1-9.82-18.15a20.28,20.28,0,0,0-8.08-1.79,16.4,16.4,0,0,0-5.92,1.08,16.23,16.23,0,0,0-9.47-8,21.33,21.33,0,0,0-6.93-1.22,18.38,18.38,0,0,0-10.82,3.45,16.3,16.3,0,0,0-24.26-1.36c-4-3.08-20.05-13.25-62.88-23-2.08-.48-6.84-1.84-9.75-2.7a67.12,67.12,0,0,0-1.1,7s7.9,1.9,9.46,2.25c43.76,9.72,58.22,19.82,60.66,21.74a16.4,16.4,0,0,0,15.14,22.7,16.74,16.74,0,0,0,3-.27,19.14,19.14,0,0,0,12.37,14.28,16.2,16.2,0,0,0,5.85,1.13,14.83,14.83,0,0,0,3.73-.46c1.23,3.12,4,7,10.18,9.52a17.26,17.26,0,0,0,6.43,1.33,14.65,14.65,0,0,0,5-.89A19.32,19.32,0,0,0,170.36,181c3.12,1.73,9.71,4.87,16.37,4.88a21.81,21.81,0,0,0,2.47-.16c6.62-.84,9.7-3.42,11.11-5.43a7.42,7.42,0,0,0,.68-1.12,18.59,18.59,0,0,0,5.25.82,17.67,17.67,0,0,0,10.58-3.78c3.43-2.48,5.88-6,6.24-9.07a.66.66,0,0,0,0-.14,17.68,17.68,0,0,0,3.55.37,19.65,19.65,0,0,0,10.86-3.45c6.74-4.42,7.92-10.19,7.8-14a17.37,17.37,0,0,0,3.59.38,18.82,18.82,0,0,0,10.19-3.13,14.89,14.89,0,0,0,7.07-11.52,15.5,15.5,0,0,0-2.25-9.3c11.3-4.87,37.11-14.29,67.51-21.14-.19-2.35-.53-4.68-.95-7a386.49,386.49,0,0,0-71.09,23.1\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M896.08,84c-2.94,3.89-7.13,5.84-12.61,5.84s-9.69-2-12.64-5.84-4.42-9.43-4.42-16.6,1.47-12.68,4.42-16.55S878,45,883.47,45s9.67,1.94,12.61,5.81,4.4,9.39,4.4,16.55S899,80.06,896.08,84m15-43.43Q902,29.18,883.52,29.18T856,40.52A41.74,41.74,0,0,0,847,67.35q0,15.77,9.07,27t27.5,11.18q18.48,0,27.53-11.18t9.07-27a41.68,41.68,0,0,0-9.07-26.83\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M747.12,75.11q-.2,9.44-5.38,13a19.6,19.6,0,0,1-11.33,3.56,10.3,10.3,0,0,1-6.6-2.15c-1.8-1.42-2.7-3.74-2.7-6.94a8.57,8.57,0,0,1,4.44-8A28.26,28.26,0,0,1,734.17,72l4.28-.79a31.83,31.83,0,0,0,5-1.3,18.64,18.64,0,0,0,3.64-1.8Zm9.52-40.92a46,46,0,0,0-21-4.67q-18.21,0-25.68,9.49-4.7,6.06-5.3,15.48h18.12a13.52,13.52,0,0,1,2.68-6.59q2.79-3.28,9.54-3.29c4,0,7,.55,9.12,1.68s3.1,3.15,3.1,6.09c0,2.42-1.34,4.19-4,5.34a29.32,29.32,0,0,1-7.51,1.64l-6.42.8c-7.3.91-12.85,2.47-16.6,4.61q-10.27,5.94-10.29,19.17,0,10.22,6.4,15.77c4.25,3.72,9.66,5.27,16.2,5.58,41,1.83,40.52-21.59,40.9-26.47v-27q0-13-9.19-17.67\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M663.19,45.59q7,0,10.34,4.33a16,16,0,0,1,2.84,7.23H696.6q-1.67-15.3-10.71-21.35t-23.25-6q-16.71,0-26.2,10.24t-9.5,28.67q0,16.32,8.6,26.57t26.81,10.25q18.23,0,27.53-12.29a30.32,30.32,0,0,0,6.5-16.15H676.24a17,17,0,0,1-3.55,9.19c-1.94,2.36-5.21,3.55-9.84,3.55q-9.79,0-13.33-8.94c-1.29-3.18-1.95-7.4-1.95-12.63,0-5.5.66-9.91,1.95-13.24,2.45-6.26,7-9.39,13.67-9.39\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M621.53,29.76c-41.53,0-39.07,36.77-39.07,36.77v37.34H601.3v-35q0-8.6,2.15-12.75c2.6-4.9,7.64-7.36,15.19-7.36.56,0,1.31,0,2.22.08s2,.12,3.16.26V29.9l-1.6-.1a7.74,7.74,0,0,0-.89,0\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M527,49.27q4-4.08,11.17-4.09A16.38,16.38,0,0,1,549.25,49c3,2.57,4.64,6.35,5,11.31H522a19.5,19.5,0,0,1,5-11.08M552.3,84.36a13.5,13.5,0,0,1-2.58,2.85c-2.66,2.19-6.28,2.86-10.53,2.86-4,0-7.18-.61-10-2.41-4.69-2.89-7.34-7.78-7.63-15h52.15A94.41,94.41,0,0,0,573,58.5a35.24,35.24,0,0,0-5.69-14.81A29.31,29.31,0,0,0,555,33.1a40.82,40.82,0,0,0-16.83-3.35c-10.5,0-19,3.31-25.59,9.92s-9.88,16.13-9.88,28.53q0,19.86,10.93,28.66a39,39,0,0,0,25.21,8.81q17.31,0,26.94-10.44c3.46-3.67,5.62-7.29,6.54-10.87Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M495.1,103.87H477.89V60.52c0-4-1.31-13.37-12.66-13.37-7.57,0-13.05,5.45-13.05,13.37v43.35H434.94V60.52c0-4-1.16-13.37-12.52-13.37-7.7,0-13.05,5.45-13.05,13.37v43.35H392.15V60.93c0-17.89,11.88-31.42,30.27-31.42,9.14,0,16.58,3.84,21.42,10a27.4,27.4,0,0,1,21.39-10c18.79,0,29.87,13,29.87,31.42Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M818.74,84.1C816,88.05,812,90,806.67,90s-9.26-2-11.86-6-3.91-9.74-3.91-16.35q0-9.19,3.84-15.4t12-6.21a14.38,14.38,0,0,1,9.46,3.41c4.42,3.77,6.63,10.53,6.63,19.28q0,9.39-4.14,15.3m22.61-77s-19-2-19,13.22l0,20.19a22.86,22.86,0,0,0-8.2-7.92,23.24,23.24,0,0,0-11.57-2.85q-14.12,0-22.55,10.5c-5.63,7-8.43,17.12-8.43,29.32q0,15.9,8.56,26.05c5.72,6.76,16.93,9.73,26.87,9.73,34.7,0,34.3-29.75,34.3-29.75Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M730.4,159.15q3.93-4.05,11.08-4.05a16.21,16.21,0,0,1,11,3.82q4.44,3.83,4.95,11.2h-32a19.35,19.35,0,0,1,4.95-11m25.1,34.78a13.56,13.56,0,0,1-2.56,2.83c-2.64,2.17-6.36,3-10.57,3-4,0-7.12-.6-9.94-2.39q-7-4.29-7.43-15h51.69a93,93,0,0,0-.63-14.08,35,35,0,0,0-5.64-14.67,29.06,29.06,0,0,0-12.27-10.5,40.47,40.47,0,0,0-16.67-3.32c-10.42,0-18.86,3.28-25.4,9.83s-9.77,16-9.77,28.27q0,19.69,10.84,28.42a38.69,38.69,0,0,0,25,8.74q17.15,0,26.68-10.36c3.43-3.63,5.58-7.23,6.5-10.77Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M702.72,139.87c-.25,0-.55,0-.89,0-41.54,0-39.08,36.76-39.08,36.76v36.77h18.86V178.92c0-5.74.71-10,2.16-12.75,2.57-4.9,7.64-7.36,15.17-7.36.58,0,1.31,0,2.22.08s2,.12,3.16.25V140c-.83-.05-1.37-.07-1.6-.1\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M535.56,130.3v82.94h17.68V116.77s-17.68-.71-17.68,13.53\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M586.62,135.39H567.69V116.64h18.93Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M567.69,213.37h19V141.78h-19Z\x22\x20fill=\x22#2d3277\x22/><path\x20d=\x22M637.37,213.22H618.3l-25-71.45h19.9L627.42,192,640,148.21q2.18-6.45,8.6-6.44h14Z\x22\x20fill=\x22#2d3277\x22/></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<img\x20width=\x2224\x22\x20height=\x2224\x22\x20src=\x22https://img.icons8.com/material-two-tone/24/data-in-both-directions.png\x22\x20alt=\x22data-in-both-directions\x22\x20style=\x22padding:\x200rem\x200.5rem\x200rem\x201rem;\x20margin-top:\x20-0.5rem;\x22\x20/>\x0a\x20\x20\x20\x20<div\x20style=\x22width:\x20111px;\x20margin-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20id=\x22Camada_1\x22\x20x=\x220px\x22\x20y=\x220px\x22\x20viewBox=\x220\x200\x20800\x20262.2\x22\x20style=\x22enable-background:new\x200\x200\x20800\x20262.2;\x22\x20xml:space=\x22preserve\x22>\x20<style\x20type=\x22text/css\x22>\x20.st0{fill:#E981B2;}\x20.st1{fill:#EB599B;}\x20.st2{fill:#E7277D;}\x20.st3{fill:#020203;}\x20</style>\x20<g>\x20<rect\x20x=\x2275.6\x22\x20y=\x22168.6\x22\x20class=\x22st0\x22\x20width=\x2260.8\x22\x20height=\x2276.9\x22/>\x20<rect\x20x=\x22121.2\x22\x20y=\x22110.9\x22\x20class=\x22st1\x22\x20width=\x2260.8\x22\x20height=\x22115.4\x22/>\x20<rect\x20x=\x22166.8\x22\x20y=\x2253.2\x22\x20class=\x22st2\x22\x20width=\x2260.8\x22\x20height=\x22153.9\x22/>\x20<g>\x20<path\x20class=\x22st3\x22\x20d=\x22M277.8,94.1c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7\x20c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z\x20M304.9,82.2\x20c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M339.7,103.9c1.5,5.6,6,8.7,13.3,8.7c7.2,0,9.8-2.6,9.8-6.8c0-4.5-3-6.3-13.1-8.7\x20c-22.9-5.6-26.6-12.7-26.6-22.6c0-10.3,7.3-21.3,28.5-21.3c21.3,0,28.5,11.6,29.1,21.1h-18.5c-0.6-2.6-2.4-7.5-11.5-7.5\x20c-6.4,0-8.5,2.8-8.5,6c0,3.5,2.2,5.2,13.6,7.8c23.4,5.4,26.7,13.5,26.7,23.8c0,11.6-8.8,22.2-30.2,22.2\x20c-21.3,0-30.1-10.3-31.6-22.7H339.7z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M443.9,102.4c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2\x20c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7\x20c6.7,0,10.3-3.9,12-9.2H443.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M502.2,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M483.3,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M507.6,125v-99H527v99H507.6z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M590.3,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M571.4,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M660.1,26.1v79.7c0,6.4,0,12.9,0.1,19.3h-18.7c-0.4-2.1-0.8-5.7-0.9-7.3c-3.4,5.5-9.4,9-19.9,9\x20c-17.7,0-29-14.3-29-36.1c0-21.6,12-37.3,31.9-37.3c10.1,0,15.5,3.6,17.1,6.7V26.1H660.1z\x20M611.7,90c0,13.7,5.3,21.1,14.8,21.1\x20c13.4,0,14.9-11.1,14.9-21.2c0-12-1.7-21.1-14.4-21.1C616.8,68.8,611.7,76.8,611.7,90z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M723.5,106.9c0,6.7,0.5,16.4,0.9,18.1h-18.6c-0.5-1.4-0.9-5.1-1-6.9c-2.5,3.9-7.3,8.5-19.7,8.5\x20c-16.9,0-24.1-11.1-24.1-22c0-16,12.8-23.4,33.4-23.4c3.4,0,7.7,0,10,0V77c0-5-1.8-9.9-10.8-9.9c-8.2,0-10,3.5-10.9,8.6h-18.5\x20c1.1-12.5,8.8-22.6,30.1-22.4c18.8,0.1,29,7.5,29,24.2V106.9z\x20M704.5,93.1c-1.6,0-5.4,0-7.9,0c-11.7,0-16,3.6-16,10.3\x20c0,5.1,3.1,9.4,10.1,9.4c12.3,0,13.9-8.6,13.9-17.9V93.1z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M277.8,174.4c0,8.8,4.4,17.4,14.1,17.4c8.1,0,10.4-3.2,12.2-7.5h19.4c-2.5,8.6-10.2,22.7-32.2,22.7\x20c-23.1,0-33.1-17.3-33.1-35.7c0-22,11.3-37.7,33.8-37.7c24.1,0,32.3,17.4,32.3,34.9c0,2.4,0,3.9-0.3,5.9H277.8z\x20M304.9,162.5\x20c-0.1-8.2-3.4-15-12.9-15c-9.3,0-13.1,6.4-13.8,15H304.9z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M386.2,182.7c-2.4,11.7-10.6,24.3-31.5,24.3c-21.8,0-33.1-15.1-33.1-36.2c0-20.7,12.6-37.2,34-37.2\x20c23.7,0,30.2,17,30.6,24.9h-19c-1.2-5.7-4.4-9.7-12-9.7c-8.9,0-13.9,7.8-13.9,21.4c0,14.9,5.3,21.7,13.8,21.7\x20c6.7,0,10.3-3.9,12-9.2H386.2z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M451.6,170.1c0,21.2-12.7,36.8-34.9,36.8c-21.8,0-34.5-15.5-34.5-36.5c0-21.7,13.1-36.9,35.4-36.9\x20C438.2,133.5,451.6,148.1,451.6,170.1z\x20M401.9,170.2c0,13.5,5.8,21.5,15.2,21.5c9.5,0,14.8-8,14.8-21.4c0-14.7-5.4-21.6-15.1-21.6\x20C407.8,148.7,401.9,155.4,401.9,170.2z\x22/>\x20<path\x20class=\x22st3\x22\x20d=\x22M452.6,153.2c0-6.1,0-12.1-0.1-18.1H471c0.3,1.7,0.6,5.6,0.7,8.4c3.6-5.2,9.2-10,19.5-10\x20c10.1,0,15.6,5.2,18.1,10.7c4.1-5.7,10.2-10.7,21.6-10.7c12.2,0,22.2,7.5,22.2,25.8v46h-18.9v-43.7c0-6.3-2.3-12.5-10.3-12.5\x20c-8.3,0-11.5,5.3-11.5,16.1v40.1h-19.1v-42.9c0-7.3-1.8-13.1-10.1-13.1c-7.9,0-11.6,4.9-11.6,16.9v39.2h-19.2V153.2z\x22/>\x20</g>\x20</g>\x20<style\x20xmlns=\x22\x22\x20id=\x22stylebot-css-escaladaecom.com.br\x22>#elementor-panel-state-loading\x20{\x0a\x20\x20display:\x20none\x20!important;\x0a}</style></svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20<a\x20href=\x22'+_0x28002b+'\x22\x20target=\x22_blank\x22\x20class=\x22connect-btn\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20display:\x20flex;\x0a\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20\x20\x20width:\x2020px;\x0a\x20\x20\x20\x20height:\x2021px;\x0a\x20\x20\x20\x20margin-right:\x205px;\x0a\x22><svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20version=\x221.1\x22\x20id=\x22Layer_1\x22\x20x=\x220px\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20y=\x220px\x22\x20viewBox=\x220\x200\x20512\x20512\x22\x20style=\x22enable-background:new\x200\x200\x20512\x20512;\x22\x20xml:space=\x22preserve\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<g>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<path\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20d=\x22M212.2,453l-15.5-15.5c-23.2,23-43.1,30.6-60.9,30.6c-10.1,0-20.1-2.5-30.4-7.6c-10.3-5.1-20.8-12.9-31-23.1\x20\x20\x20c-10.2-10.2-18-20.7-23.1-31c-5.1-10.3-7.6-20.3-7.6-30.4c0.1-17.8,7.7-37.8,30.6-60.9c54.7-54.7,65.6-65.6,65.7-65.7l-15.5-15.5\x20\x20\x20l-15.5,15.5l153.3,153.3l15.5-15.5l-15.5-15.5c-0.1,0.1-10.9,10.9-65.7,65.7L212.2,453l15.5,15.5c54.7-54.7,65.6-65.6,65.7-65.7\x20\x20\x20l15.5-15.5L124.6,203.1l-15.5,15.5c-0.1,0.1-10.9,10.9-65.7,65.7C14.7,312.9-0.1,344.6,0,376.2c0,17.5,4.5,34.4,12.1,49.8\x20\x20\x20c7.7,15.5,18.4,29.6,31.3,42.5c12.9,12.9,27,23.7,42.5,31.3c15.4,7.7,32.3,12.2,49.8,12.1c31.6,0.1,63.4-14.7,91.9-43.5L212.2,453z\x20\x20\x20\x20M299.8,59l15.5,15.5c23.2-23,43.1-30.6,60.9-30.6c10.1,0,20.1,2.5,30.4,7.6c10.3,5.1,20.8,12.9,31,23.1l0,0\x20\x20\x20c10.2,10.2,18,20.7,23.1,31c5.1,10.3,7.6,20.3,7.6,30.4c-0.1,17.8-7.7,37.8-30.6,61c-27.4,27.4-43.8,43.8-53.4,53.4\x20\x20\x20c-9.6,9.6-12.3,12.3-12.3,12.3l15.5,15.5l15.5-15.5L249.6,109.2l-15.5,15.5l15.5,15.5c0,0,11-11,65.7-65.7l0,0L299.8,59l-15.5-15.5\x20\x20\x20c-27.4,27.4-43.8,43.8-53.4,53.4c-9.6,9.6-12.3,12.3-12.3,12.3l-15.5,15.5l184.2,184.2l15.5-15.4c0,0,11-11,65.7-65.7\x20\x20\x20c28.7-28.6,43.5-60.3,43.5-91.9c0-17.5-4.5-34.4-12.1-49.8c-7.7-15.5-18.4-29.6-31.3-42.5l0,0c-12.9-12.9-27-23.7-42.5-31.3\x20\x20\x20C410.6,4.5,393.7,0,376.2,0c-31.6-0.1-63.4,14.7-91.9,43.5l0,0L299.8,59z\x20M234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7\x20\x20\x20l-31-31L234.1,212.2l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L234.1,212.2z\x20M299.8,277.9l-15.5-15.5l-54.7,54.7l31,31\x20\x20\x20l54.7-54.7l-31-31L299.8,277.9l-15.5-15.5l-54.7,54.7l31,31l54.7-54.7l-31-31L299.8,277.9z\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</path>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</g>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</svg></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20Liberar\x20acesso\x20da\x20planilha\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20</a>\x0a</body>\x0a\x0a</html>',_0x3db817=HtmlService[_0x390ea0(0x24a)](_0x45b6b4)[_0x390ea0(0x258)](0x226)[_0x390ea0(0x288)](0xaf);SpreadsheetApp[_0x390ea0(0x251)]()['showModalDialog'](_0x3db817,_0x390ea0(0x2cd));}function onEdit(_0x4e8cef){const _0x1a4030=_0xbdb8b6;var _0x7bb07e=_0x4e8cef[_0x1a4030(0x1fa)],_0x372edf=_0x7bb07e[_0x1a4030(0x31d)]();if(_0x372edf[_0x1a4030(0x21e)]()==='Conectar\x20Conta\x20(privado)'&&_0x7bb07e['getA1Notation']()==='G3'){var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)]('Para\x20concluir,\x20clique\x20no\x20Passo\x203\x20e\x20conecte\x20sua\x20conta.',_0x2b877f[_0x1a4030(0x246)]['OK']);if(_0x23f45e==_0x2b877f[_0x1a4030(0x2d6)]['OK']){}}if(_0x372edf[_0x1a4030(0x21e)]()===_0x1a4030(0x220)&&_0x7bb07e[_0x1a4030(0x2c6)]()==='G7'){_0x7bb07e['getValue']()===''&&(_0x7bb07e[_0x1a4030(0x319)](_0x1a4030(0x272)),_0x7bb07e[_0x1a4030(0x26c)](0x1,0x0)[_0x1a4030(0x319)](''));var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)]('Para\x20verificar\x20seu\x20e-mail\x20no\x20EscaladaEcom,\x20clique\x20no\x20Passo\x20Final\x20do\x20menu\x20\x22Integrao\x20EscaladaEcom\x22.',_0x2b877f['ButtonSet']['OK']);if(_0x23f45e==_0x2b877f['Button']['OK']){}}if(_0x372edf[_0x1a4030(0x21e)]()===_0x1a4030(0x220)&&_0x7bb07e['getA1Notation']()==='G9'){_0x7bb07e[_0x1a4030(0x2c4)]()===''&&_0x7bb07e[_0x1a4030(0x319)]('Cole\x20seu\x20token\x20da\x20OpenAI');var _0x2b877f=SpreadsheetApp[_0x1a4030(0x251)](),_0x23f45e=_0x2b877f[_0x1a4030(0x271)](_0x1a4030(0x2c5),_0x2b877f['ButtonSet']['OK']);if(_0x23f45e==_0x2b877f['Button']['OK']){}}}function imgResize(){const _0x5b1e8b=_0xbdb8b6;if(validateUserEmail()!=!![]){SpreadsheetApp[_0x5b1e8b(0x251)]()[_0x5b1e8b(0x271)]('Esta\x20funcionalidade\x20est\x20disponvel\x20apenas\x20para\x20alunos\x20e\x20mentorados\x20Escalada.');return;}coverImgScore=parseFloat(FirstPictureScoreCell['getValue']());if(coverImgScore<0.9){var _0x4816e1=firstSheet[_0x5b1e8b(0x1f5)](PlacementCells['FirstPicture'])[_0x5b1e8b(0x213)]();_0x4816e1=_0x4816e1[_0x5b1e8b(0x28e)](_0x5b1e8b(0x284),''),sendToResize(_0x4816e1);}else var _0x1e1593=SpreadsheetApp[_0x5b1e8b(0x251)](),_0xf4aff9=_0x1e1593[_0x5b1e8b(0x271)]('A\x20imagem\x20principal\x20j\x20possui\x20um\x20score\x20acima\x20de\x2090.',_0x1e1593[_0x5b1e8b(0x246)]['OK']);}function sendToResize(_0x1f3409){const _0x22d2e8=_0xbdb8b6;var _0x30bf1f='https://sync.escaladaecom.com.br/api/resize',_0x1a5cc5={'url':_0x1f3409},_0x5ae291={'method':_0x22d2e8(0x2ec),'contentType':_0x22d2e8(0x233),'payload':JSON[_0x22d2e8(0x1f2)](_0x1a5cc5)};try{var _0x42f272=UrlFetchApp[_0x22d2e8(0x1f8)](_0x30bf1f,_0x5ae291),_0x30d40f=JSON['parse'](_0x42f272['getContentText']())[_0x22d2e8(0x29b)];showImageDialog(_0x30d40f);}catch(_0x13ecd7){SpreadsheetApp['getUi']()['alert'](_0x22d2e8(0x2de)+_0x13ecd7['toString']());}}function showImageDialog(_0x1942e3){const _0x28a803=_0xbdb8b6;var _0x40ba83='\x0a\x20\x20\x20\x20<html>\x0a\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20.download-btn\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20padding:\x2014px\x2031px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x2016px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20outline:\x20none;\x0a\x20\x20\x20\x20\x20\x20color:\x20black;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20200;\x0a\x20\x20\x20\x20\x20\x20background-color:\x20#ffcd0c;\x0a\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2011px;\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#777;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20.connect-btn:hover\x20{\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(4px);\x0a\x20\x20\x20\x20\x20\x20transition:\x20all\x200.2s\x20ease\x200s;\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20</style>\x0a\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20flex-direction:\x20column;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22'+_0x1942e3+_0x28a803(0x2c2)+_0x1942e3+_0x28a803(0x2f6),_0x359e67=HtmlService[_0x28a803(0x24a)](_0x40ba83)[_0x28a803(0x258)](0xfa)[_0x28a803(0x288)](0x11d);SpreadsheetApp[_0x28a803(0x251)]()[_0x28a803(0x1ee)](_0x359e67,_0x28a803(0x215));}function redirectToInstagram(){const _0xbb502f=_0xbdb8b6,_0x5b5524='https://www.instagram.com/dhiegorosa',_0x1742fd=_0xbb502f(0x2bd)+_0x5b5524+_0xbb502f(0x23f),_0x1dd589=HtmlService[_0xbb502f(0x24a)](_0x1742fd)[_0xbb502f(0x258)](0x190)[_0xbb502f(0x288)](0xc8);SpreadsheetApp[_0xbb502f(0x251)]()[_0xbb502f(0x1ee)](_0x1dd589,_0xbb502f(0x27e));}function redirectToYouTube(){const _0x1b12ef=_0xbdb8b6,_0x16cd74=_0x1b12ef(0x30b),_0x1986ba='\x0a\x20\x20<html>\x0a\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#cc181e;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#999;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn:hover\x20{\x20background-color:\x20#a00;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#a00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x201px\x20#666;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateY(2px);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:\x20center;\x20padding:\x2020px;\x20font-family:\x20sans-serif;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<p>Voc\x20ser\x20redirecionado\x20para\x20o\x20YouTube.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22'+_0x16cd74+'\x22\x20target=\x22_blank\x22\x20class=\x22youtube-btn\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Acessar\x20youtube\x0a\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</body>\x0a\x20\x20</html>',_0x361ba4=HtmlService[_0x1b12ef(0x24a)](_0x1986ba)[_0x1b12ef(0x258)](0x190)['setHeight'](0xc8);SpreadsheetApp[_0x1b12ef(0x251)]()['showModalDialog'](_0x361ba4,'Acessar');}function redirectToYouTubeTutorial(){const _0x3a5b9e=_0xbdb8b6,_0x382507=_0x3a5b9e(0x309),_0x37f02c='\x0a\x20\x20<html>\x0a\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2010px\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#cc181e;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x205px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x202px\x20#999;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn:hover\x20{\x20background-color:\x20#a00;\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.youtube-btn:active\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20#a00;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x201px\x20#666;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateY(2px);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22text-align:\x20center;\x20padding:\x2020px;\x20font-family:\x20sans-serif;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<p>Voc\x20ser\x20redirecionado\x20para\x20o\x20YouTube.</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22'+_0x382507+'\x22\x20target=\x22_blank\x22\x20class=\x22youtube-btn\x22\x20onclick=\x22google.script.host.close()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Acessar\x20Tutorial\x0a\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</body>\x0a\x20\x20</html>',_0x21ca4e=HtmlService['createHtmlOutput'](_0x37f02c)[_0x3a5b9e(0x258)](0x190)[_0x3a5b9e(0x288)](0xc8);SpreadsheetApp[_0x3a5b9e(0x251)]()[_0x3a5b9e(0x1ee)](_0x21ca4e,_0x3a5b9e(0x27e));}

Function Calls

None

Variables

None

Stats

MD5 4ea94dd6d931de0778586c8716945c17
Eval Count 0
Decode Time 120 ms