var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,n,o,r,a){var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof l[r]&&l[r],u=i.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(e,n){if(!u[e]){if(!t[e]){var o="function"==typeof l[r]&&l[r];if(!n&&o)return o(e,!0);if(i)return i(e,!0);if(f&&"string"==typeof e)return f(e);var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}c.resolve=function(n){var o=t[e][1][n];return null!=o?o:n},c.cache={};var s=u[e]=new d.Module(e);t[e][0].call(s.exports,c,s,s.exports,this)}return u[e].exports;function c(e){var t=c.resolve(e);return!1===t?{}:d(t)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=t,d.cache=u,d.parent=i,d.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]},Object.defineProperty(d,"root",{get:function(){return l[r]}}),l[r]=d;for(var s=0;s<n.length;s++)d(n[s]);if(o){var c=d(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof e&&e.amd?e(function(){return c}):a&&(this[a]=c)}}({"8uP5n":[function(e,t,n){var o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(n),o.export(n,"config",()=>r);let r={matches:["https://papago.naver.com/*"],all_frames:!0},a=0;window.addEventListener("message",e=>{if(null!=e.data&&void 0!=e.data&&"startTranslate"===e.data.name&&!a){console.log(e.data),a=e.data.id;let t=encodeURIComponent(e.data.text),n=`https://papago.naver.com/?sk=auto&tk=${e.data.targetLanguage}&st=${t}`;console.log("targetUrl",n),console.log("currentUrl",window.location.href),n===window.location.href?function(e){let t=setInterval(()=>{let n=document.querySelector("#txtTarget > span");n&&n.textContent&&(console.log("\u7ffb\u8bd1\u7ed3\u679c",n.textContent),window.parent.postMessage({name:"translateResult",body:{id:e,vendor:"papago",text:n.textContent}},"*"),clearInterval(t),a=0),console.log("interval no result")},1e3)}(a):window.location.href=n}},!1)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cHUbl:[function(e,t,n){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}]},["8uP5n"],"8uP5n","parcelRequireefb9"),globalThis.define=t;