Files
onin-web-translate/src/App.svelte
2025-12-05 14:57:09 +08:00

157 lines
20 KiB
Svelte
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script lang="ts">
import { onMount } from "svelte";
import { lifecycle, clipboard } from "baize-sdk";
let text = $state("");
let urlMaps = $state({
sougou: `https://fanyi.sogou.com`,
baidu: `https://fanyi.baidu.com`,
bing: `https://cn.bing.com/translator`,
youdao: `https://fanyi.youdao.com`,
});
onMount(() => {
console.log("onMount");
lifecycle.onWindowShow(async () => {
console.log("onWindowShow");
const metadata = await clipboard.getMetadata();
console.log("meatadata", metadata);
if ((metadata.age ?? 999) <= 5) {
text = metadata.text ?? "";
}
});
lifecycle.onWindowHide(() => {
console.log("onWindowHide");
});
});
$effect(() => {
urlMaps.sougou = `https://fanyi.sogou.com/text?keyword=${encodeURIComponent(text)}&transfrom=auto&transto=zh-CHS&model=general`;
urlMaps.baidu = `https://fanyi.baidu.com/mtpe-individual/transText?query=${encodeURIComponent(text)}&lang=auto2zh`;
// Bing 翻译支持 URL 参数传递文本
urlMaps.bing = `https://cn.bing.com/translator?text=${encodeURIComponent(text)}&mkt=zh-CN`;
// 有道翻译不支持通过URL参数自动填入文本因此只能打开翻译页面
urlMaps.youdao = `https://fanyi.youdao.com/#/TextTranslate`;
});
</script>
<main class="h-full">
<!-- name of each tab group should be unique -->
<div class="h-full tabs tabs-lift">
<label class="tab">
<input type="radio" name="my_tabs_4" checked />
<svg
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
><path
d="M569.997946 656.383345a307.685712 307.685712 0 0 1-66.509938 10.977989 524.647508 524.647508 0 0 1-174.665836-21.30898 723.851321 723.851321 0 0 1-120.749887-45.199957c2.259998 36.805965 4.196996 73.611931 6.456994 110.417896 21.954979 9.684991 44.231959 17.756983 66.831937 25.182977a950.176109 950.176109 0 0 0 197.267815 45.522957 718.039327 718.039327 0 0 0 134.309874 0 412.291613 412.291613 0 0 0 121.394887-27.765974 174.343837 174.343837 0 0 0 81.682923-64.57194 121.717886 121.717886 0 0 0 2.259998-121.394886 156.909853 156.909853 0 0 0-34.867967-41.003961 295.093723 295.093723 0 0 0-71.351934-42.293961 994.408068 994.408068 0 0 0-165.949844-50.689952 343.845678 343.845678 0 0 1-82.006923-26.796975 74.90393 74.90393 0 0 1-30.348972-25.505976 28.411973 28.411973 0 0 1-2.259998-25.504976 49.397954 49.397954 0 0 1 26.474976-22.599979 167.240843 167.240843 0 0 1 64.571939-9.685991 760.657287 760.657287 0 0 1 164.334846 22.922979 955.665104 955.665104 0 0 1 129.143879 41.002961l-5.810995-107.512899c-22.276979-8.070992-44.877958-14.850986-67.799936-20.98498a1424.456665 1424.456665 0 0 0-166.919844-33.254969 777.769271 777.769271 0 0 0-164.334845-6.779994 362.57166 362.57166 0 0 0-101.377905 21.95398 210.181803 210.181803 0 0 0-75.871929 49.397953 141.412867 141.412867 0 0 0-39.065964 77.485928 109.449897 109.449897 0 0 0 5.810995 59.406944 129.143879 129.143879 0 0 0 48.105955 53.916949A434.246593 434.246593 0 0 0 371.440132 534.020459c40.679962 11.622989 81.683923 20.016981 123.009884 28.733973a478.478551 478.478551 0 0 1 56.822947 16.465985 177.572834 177.572834 0 0 1 44.231959 23.891978 37.774965 37.774965 0 0 1 13.559987 19.693981 20.339981 20.339981 0 0 1-7.102993 18.402983 83.297922 83.297922 0 0 1-31.96297 15.173986z m37.774964 273.785743A438.120589 438.120589 0 0 1 204.198289 812.970198a407.449618 407.449618 0 0 1-53.27195-64.57194 435.214592 435.214592 0 0 1 0-487.195543 463.949565 463.949565 0 0 1 53.27195-64.571939 438.443589 438.443589 0 0 1 138.50687-93.306913 425.206601 425.206601 0 0 1 168.209842-34.222968 433.600593 433.600593 0 0 1 308.330711 129.143879 436.183591 436.183591 0 0 1 99.117907 463.949565 423.591603 423.591603 0 0 1-55.854948 102.023905 32.28597 32.28597 0 0 0 6.457994 45.845957 32.28597 32.28597 0 0 0 48.750955-5.165996A505.921526 505.921526 0 0 0 717.221808 43.272919a413.906612 413.906612 0 0 0-64.57194-23.567977A505.921526 505.921526 0 0 0 6.930474 503.994488a504.306527 504.306527 0 0 0 663.154378 479.76955 34.868967 34.868967 0 0 0 20.016981-49.074954 32.28597 32.28597 0 0 0-40.679962-16.465985c-13.882987 4.519996-28.411973 8.716992-41.649961 11.945989z m264.421752-64.571939a507.212524 507.212524 0 0 1-129.143879 93.951911 33.899968 33.899968 0 0 0-13.882987 46.169957 34.222968 34.222968 0 0 0 45.199958 14.849986A573.076463 573.076463 0 0 0 928.04961 904.340112a32.28597 32.28597 0 0 0-2.259998-48.428954l-27.442974-22.599979c-8.071992 10.65399-17.757983 20.98598-27.442974 30.993971z"
fill="#E94924"
></path></svg
>
<span class="ml-2"> 搜狗翻译 </span>
</label>
<div class="tab-content bg-base-100 border-base-300">
<iframe title="搜狗翻译" class="w-full h-full" src={urlMaps["sougou"]}
></iframe>
</div>
<label class="tab">
<input type="radio" name="my_tabs_4" />
<svg
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
><path
d="M215.94 283.22c4.06 0.04 8.04 1.08 11.4 3.44 11.6 7.52 22.14 16.56 33.4 24.56 31.58 23.76 66.4 42.78 101.82 60.12 34.2 16.78 68.74 33.68 99.02 57.04 20.1 16.32 37.9 39 39.42 65.78 0.14 137.06-0.16 274.12 0.16 411.18-4.9 2.6-11.02 3.8-14.72-1.4 0.4-126.64-0.02-253.3 0.22-379.94-0.02-12.24 1.16-25.06-3.68-36.64-5.96-14.9-17.42-26.66-29.12-37.26-19.9-17.68-44.78-27.98-68.24-39.9-36.68-16.9-74.98-29.94-111.9-46.22-19.5-8.94-38.24-19.44-57.78-28.26-2.68-3.92-1.04-9.22-1.5-13.72 0.62-12.92-1.34-26.04 1.5-38.78z"
fill="#AC0000"
></path><path
d="M722.74 486.54c23.6-12.86 45.4-28.86 69-41.74-0.14 11.58 2.26 23.28 0.78 34.76-38.14 24.32-76.8 47.84-115.12 71.9-19.02 11.58-37.62 23.88-56.9 35.02 0.12-11.42-1.72-22.8-1.22-34.22 21.92-15.5 45.72-28.38 68.06-43.3 3.86-7.04-3.96-18.46 5.2-22.5 9.78-5.86 19.24-12.26 29.28-17.68 0.34 5.92 0.6 11.84 0.92 17.76zM299.52 460.06c13.38 6.42 28.12 13.42 35.4 27.14 5.74 10.76 8.24 22.86 10.8 34.68 16.5 83.46 33.16 166.88 49.66 250.36-8.62-4.64-17.42-9.08-25.4-14.74-5.82-22.7-9.64-45.96-14.62-68.9-29.64-17.24-59.34-34.4-89.26-51.16-5.84 16.78-11.74 33.54-17.34 50.4-8.88-4.18-17.06-9.64-25.7-14.24 25.1-71.3 51.38-142.22 76.46-213.54m-21.92 145.52c23.16 13 45.9 26.76 69.24 39.4-7.82-41.32-16.34-82.48-24.32-123.76-1.16-6.24-2.82-12.9-8.1-16.98-12.44 33.72-24.74 67.5-36.82 101.34zM753.78 509.76c10.54-6.44 20.76-13.48 31.74-19.16-15.84 41.48-33.68 82.18-50.26 123.38 13.96 11.74 28.82 22.34 42.76 34.08 9.64-4.52 17.88-11.38 27.2-16.5 0.08 10.68 1.14 21.34 1.2 32.04-12.96 7.9-25.76 16.08-38.68 24.04-3.84 1.92-8.86 5.14-12.96 2.18-13.64-9.7-26.36-20.62-40.16-30.06-9.8 21.86-19.7 43.68-29.14 65.7-4.62 9.9-9.44 20.86-19.28 26.6-11.24 6.56-22.02 13.84-33.32 20.28 0.34-10.66-1.3-21.28-1-31.94 8.06-8.84 22.84-10.88 27.74-22.92 11.14-24.46 21.84-49.12 33.12-73.52-19.18-16.7-39.16-32.54-58.96-48.54 10.32-7 21.12-13.26 31.58-20.02 2.7-1.42 5.2-3.74 8.36-3.94 13.58 8.2 25.42 19.22 39.38 26.76 9.7-24.92 20.92-49.22 31.08-73.94 2.36-5.3 3.96-11.7 9.6-14.52z"
fill="#F5F5F6"
></path><path
d="M441.88 129.86c16.06-9.4 33.64-16.96 52.32-18.84 24.18-2.58 48.32 4.2 69.7 15.14 37.46 19.48 75.06 38.72 112.4 58.4 10.34-7.08 19.2-16.2 29.84-22.84 4.38 0 5 4.82 4.84 8.2-0.12 21.36 0.16 42.74-0.18 64.1 0.44 4.88-4.6 7.76-8.92 7.3-29.26 0.1-58.52-0.1-87.78-0.02-3.98 0.58-7.24-1.84-9.28-5.04 9.4-7.36 19.34-14.02 29.22-20.72-31.14-16.88-62.74-32.96-94.06-49.52-14.82-7.12-32.3-12.64-48.48-6.82-17.4 6.08-32.44 17.22-49.18 24.78-7.14 2.5-14.86 2.38-22.34 2.52-13.34-0.08-26.66-0.04-40 0.06-5.86 0.2-11.66-0.8-17.26-2.5 0.34-6.8 6.72-10.24 11.6-13.8 21.84-14.56 44.76-27.4 67.56-40.4zM151.1 305.16c4.04-1.58 8.38 0.12 12.12 1.74 18.12 8.58 34.38 20.68 52.72 28.82 19.54 8.82 38.28 19.32 57.78 28.26 36.92 16.28 75.22 29.32 111.9 46.22 23.46 11.92 48.34 22.22 68.24 39.9 11.7 10.6 23.16 22.36 29.12 37.26 4.84 11.58 3.66 24.4 3.68 36.64-0.24 126.64 0.18 253.3-0.22 379.94-0.6 3.94 1.56 9.82-3.3 11.64-6.26 3.14-12.12-2.34-16.6-6.1-40.84-34.8-89.58-58.5-138.64-79.3-37.6-16.12-75.76-31.58-110.36-53.66-25.86-16.22-49.5-38.14-61.6-66.68-4-9.5-6.86-19.6-7.4-29.92 0.04-121.3 0-242.62 0-363.94 0.24-3.66-0.16-7.92 2.56-10.82m148.42 154.9c-25.08 71.32-51.36 142.24-76.46 213.54 8.64 4.6 16.82 10.06 25.7 14.24 5.6-16.86 11.5-33.62 17.34-50.4 29.92 16.76 59.62 33.92 89.26 51.16 4.98 22.94 8.8 46.2 14.62 68.9 7.98 5.66 16.78 10.1 25.4 14.74-16.5-83.48-33.16-166.9-49.66-250.36-2.56-11.82-5.06-23.92-10.8-34.68-7.28-13.72-22.02-20.72-35.4-27.14z"
fill="#E21308"
></path><path
d="M277.6 605.58c12.08-33.84 24.38-67.62 36.82-101.34 5.28 4.08 6.94 10.74 8.1 16.98 7.98 41.28 16.5 82.44 24.32 123.76-23.34-12.64-46.08-26.4-69.24-39.4z"
fill="#E21308"
></path><path
d="M331.92 220c-0.38-5.4 5.48-7.9 10.06-7.4 29.3 0.14 58.6-0.12 87.88 0.18 3.56-0.38 5.82 2.64 8.3 4.62-9.02 8.12-20.12 13.54-29.06 21.76 32.06 16.4 63.8 33.42 95.78 49.94 13.76 6.1 29.54 11.28 44.48 6.36 16.14-5.28 30.28-15.04 45.32-22.7 12.5-7.22 27.54-4.62 41.32-4.92 14.66 0.84 29.94-2.64 44.1 2.46-0.74 6.72-7.24 10.12-12.12 13.72-23.94 15.82-48.92 30-73.98 43.98-19.9 11.04-42.8 17.6-65.68 15.2-17.56-1.6-34.42-7.66-50.04-15.6-37.42-19.34-74.74-38.82-112.18-58.1-8.08 6.12-15.8 12.7-23.74 19-2.72 1.82-5.88 5.38-9.22 2.62-2.04-4.02-1.24-8.72-1.46-13.06 0.34-19.36-0.26-38.72 0.24-58.06zM866.26 306.24c3.82-1.58 9.72-3.4 12.02 1.42 1.74 5.22 0.9 10.9 1.1 16.32-0.1 118.02 0.12 236.04 0.1 354.06-2.38 33.3-23.36 62.32-48.58 82.84-29.34 23.28-63.58 39.3-97.64 54.38-51.46 22.2-104.24 43.04-149.94 76.14-10.18 7.02-19.5 15.18-29.2 22.8-3.18 3-7.6 2-11.4 1.2-0.7-3.78-0.92-7.62-1.08-11.44-0.8-35.98-0.12-71.98-0.34-107.96-0.04-91.34 0.04-182.66-0.06-274 0.12-12.76-1.68-26.38 4.26-38.22 4.92-9.94 11.78-18.86 19.58-26.72 16.14-16.24 36.92-26.54 56.72-37.54 30.68-14.98 62.38-27.72 94.32-39.72 32.94-12.68 64.42-28.64 96.06-44.18 18.48-8.94 35.32-21 54.08-29.38m-143.52 180.3c-0.32-5.92-0.58-11.84-0.92-17.76-10.04 5.42-19.5 11.82-29.28 17.68-9.16 4.04-1.34 15.46-5.2 22.5-22.34 14.92-46.14 27.8-68.06 43.3-0.5 11.42 1.34 22.8 1.22 34.22 19.28-11.14 37.88-23.44 56.9-35.02 38.32-24.06 76.98-47.58 115.12-71.9 1.48-11.48-0.92-23.18-0.78-34.76-23.6 12.88-45.4 28.88-69 41.74m31.04 23.22c-5.64 2.82-7.24 9.22-9.6 14.52-10.16 24.72-21.38 49.02-31.08 73.94-13.96-7.54-25.8-18.56-39.38-26.76-3.16 0.2-5.66 2.52-8.36 3.94-10.46 6.76-21.26 13.02-31.58 20.02 19.8 16 39.78 31.84 58.96 48.54-11.28 24.4-21.98 49.06-33.12 73.52-4.9 12.04-19.68 14.08-27.74 22.92-0.3 10.66 1.34 21.28 1 31.94 11.3-6.44 22.08-13.72 33.32-20.28 9.84-5.74 14.66-16.7 19.28-26.6 9.44-22.02 19.34-43.84 29.14-65.7 13.8 9.44 26.52 20.36 40.16 30.06 4.1 2.96 9.12-0.26 12.96-2.18 12.92-7.96 25.72-16.14 38.68-24.04-0.06-10.7-1.12-21.36-1.2-32.04-9.32 5.12-17.56 11.98-27.2 16.5-13.94-11.74-28.8-22.34-42.76-34.08 16.58-41.2 34.42-81.9 50.26-123.38-10.98 5.68-21.2 12.72-31.74 19.16z"
fill="#1F71CD"
></path><path
d="M791.1 293.12c6.24-4.28 12.48-10.32 20.62-9.64 2.48 9.32 1.28 19 1.5 28.52-0.2 7.88 0.82 15.88-1.04 23.62-31.64 15.54-63.12 31.5-96.06 44.18-31.94 12-63.64 24.74-94.32 39.72-19.8 11-40.58 21.3-56.72 37.54-7.8 7.86-14.66 16.78-19.58 26.72-5.94 11.84-4.14 25.46-4.26 38.22 0.1 91.34 0.02 182.66 0.06 274 0.22 35.98-0.46 71.98 0.34 107.96-3.94 4.9-10 4.22-15.02 1.48 0.1-133.16 0.2-266.32 0.06-399.46-0.64-24.12 10.34-47.34 26.34-64.92 12.48-13.98 28.48-24.04 44.28-33.82 37.9-23.2 79.36-39.74 117.72-62.1 26.9-15 51.74-33.26 76.08-52.02z"
fill="#0054B8"
></path></svg
>
<span class="ml-2"> 百度翻译 </span>
</label>
<div class="tab-content bg-base-100 border-base-300">
<iframe title="百度翻译" class="w-full h-full" src={urlMaps["baidu"]}
></iframe>
</div>
<label class="tab">
<input type="radio" name="my_tabs_4" />
<svg
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
><path
d="M340.5824 70.109867L102.536533 0.682667v851.217066L340.650667 643.345067V70.109867zM102.536533 851.7632l238.045867 171.6224 580.881067-340.923733V411.784533L102.536533 851.831467z"
fill="#409EFF"
></path><path
d="M409.463467 255.3856l113.732266 238.933333 138.8544 56.866134 259.413334-139.400534-506.0608-156.330666z"
fill="#409EFF"
></path></svg
>
<span class="ml-2"> Bing 翻译 </span>
</label>
<div class="tab-content bg-base-100 border-base-300">
<iframe title="Bing翻译" class="w-full h-full" src={urlMaps["bing"]}
></iframe>
</div>
<label class="tab">
<input type="radio" name="my_tabs_4" />
<svg
class="icon"
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
><path
d="M157.615686 0h708.768628c86.337255 0 157.615686 70.27451 157.615686 156.611765v710.77647c0 86.337255-71.278431 156.611765-157.615686 156.611765h-708.768628c-86.337255 0-157.615686-70.27451-157.615686-156.611765v-710.77647c0-86.337255 71.278431-156.611765 157.615686-156.611765z"
fill="#D20B0A"
></path><path
d="M543.121569 620.423529c30.117647-37.145098 39.152941-67.262745 28.109804-91.356862-14.054902-26.101961-33.129412-46.180392-65.254902-51.2-2.007843 21.082353-5.019608 39.152941-7.027451 51.2 16.062745 14.054902 30.117647 23.090196 37.145098 35.137255 9.035294 14.054902-2.007843 35.137255-19.07451 35.137254-33.129412 0-58.227451-28.109804-53.207843-60.235294 0-7.027451 0-12.047059 2.007843-19.074509 16.062745-74.290196-33.129412-100.392157-88.345098-100.392157-39.152941 0-79.309804 7.027451-118.462745 9.035294 5.019608-33.129412 33.129412-35.137255 60.235294-35.137255 46.180392-2.007843 91.356863-5.019608 137.537255-9.035294 16.062745-2.007843 35.137255-5.019608 33.129411-28.109804h-181.709803c5.019608-12.047059 9.035294-21.082353 16.062745-35.137255-19.07451-9.035294-35.137255-16.062745-56.219608-28.109804-12.047059 65.254902-51.2 86.337255-111.435294 65.254902-5.019608 53.207843 37.145098 33.129412 65.254902 44.172549-37.145098 46.180392-70.27451 88.345098-107.419608 135.529412 35.137255 7.027451 56.219608-19.07451 88.345098-35.137255-14.054902 72.282353-26.101961 137.537255-39.152941 202.792157 28.109804 7.027451 51.2-5.019608 63.247059-33.129412 7.027451-19.07451 9.035294-37.145098 16.062745-53.207843 21.082353-65.254902 91.356863-111.435294 163.639215-95.372549-2.007843 9.035294-2.007843 16.062745-5.019608 26.101961-19.07451 0-37.145098 0-53.207843 2.007843-30.117647 5.019608-56.219608 19.07451-63.247059 51.2-7.027451 30.117647 2.007843 56.219608 28.109804 74.290196 37.145098 26.101961 81.317647 35.137255 130.509804 35.137255 5.019608-26.101961 7.027451-51.2 12.047059-79.309804 12.047059 7.027451 19.07451 12.047059 28.109804 14.054902 67.262745 37.145098 137.537255 70.27451 216.847059 79.309804 77.301961 9.035294 144.564706-14.054902 197.772549-70.27451 5.019608-5.019608 9.035294-14.054902 12.047059-21.082353-131.513725 71.278431-250.980392 50.196078-367.435294-15.058824z m-146.572549-153.6c-49.192157 19.07451-98.384314 37.145098-144.564706 53.207844-5.019608-33.129412 0-49.192157 35.137255-56.219608 26.101961-7.027451 53.207843-7.027451 79.309804-7.027451h12.047058c27.105882 1.003922 18.070588 10.039216 18.070589 10.039215z m-7.027451 135.529412c-5.019608 23.090196-7.027451 46.180392-12.047059 70.27451H366.431373c-2.007843 0-2.007843 0-5.019608-2.007843-2.007843 0-5.019608-2.007843-5.019608-2.007843s-2.007843 0-2.007843-2.007843c0 0-2.007843 0-2.007843-2.007844 0 0-2.007843 0-2.007844-2.007843h-2.007843l-2.007843-2.007843c-2.007843 0-2.007843-2.007843-2.007843-2.007843-2.007843-2.007843-5.019608-5.019608-5.019608-7.027451l-2.007843-2.007843s0-2.007843-2.007843-2.007843c-2.007843-5.019608-2.007843-12.047059-2.007843-16.062745v-6.02353c0-26.101961 21.082353-33.129412 56.219608-23.090196z"
fill="#FFFFFF"
></path><path
d="M881.443137 355.388235c-26.101961 2.007843-49.192157 2.007843-79.309804 5.019608 12.047059-16.062745 19.07451-26.101961 26.101961-37.145098-19.07451-9.035294-35.137255-16.062745-51.2-23.090196-28.109804 19.07451-30.117647 58.227451-67.262745 65.254902-5.019608-21.082353-7.027451-42.164706-9.035294-60.235294-49.192157 7.027451-51.2 12.047059-42.164706 63.247059h-74.290196c0 30.117647 7.027451 37.145098 39.152941 37.145098h67.262745c0 2.007843 2.007843 7.027451 2.007843 9.035294-14.054902 5.019608-30.117647 9.035294-44.172549 16.062745-14.054902 7.027451-37.145098 16.062745-39.152941 28.109804-12.047059 51.2-16.062745 105.411765-23.090196 160.627451 70.27451 44.172549 146.572549 37.145098 228.894118 26.101961 5.019608-30.117647 7.027451-56.219608 12.047059-81.317647 2.007843-26.101961 9.035294-51.2 9.035294-77.301961 2.007843-37.145098-12.047059-53.207843-46.180392-60.235294-14.054902-2.007843-30.117647-5.019608-44.17255-7.027451 0-2.007843-2.007843-5.019608-2.007843-7.027451 14.054902-5.019608 28.109804-9.035294 44.172549-12.047059 26.101961-5.019608 51.2-5.019608 74.290196-9.035294 10.039216-9.035294 26.101961-13.05098 19.07451-36.141177z m-123.482353 248.972549c-39.152941 16.062745-77.301961 12.047059-114.447059 0 0-2.007843 2.007843-5.019608 5.019608-7.027451s2.007843-5.019608 5.019608-7.027451l2.007843-2.007843 2.007843-2.007843 2.007844-2.007843c2.007843-2.007843 5.019608-2.007843 7.027451-5.019608 0 0 2.007843 0 2.007843-2.007843 5.019608-2.007843 7.027451-2.007843 12.047059-5.019608h49.192156c9.035294 0 19.07451 2.007843 30.117647 5.019608-2.007843-1.003922 28.109804 6.023529-2.007843 27.105882z m-5.019608-72.282353s-2.007843 0 0 0H746.917647c-5.019608 0-7.027451 2.007843-12.047059 2.007844-7.027451 2.007843-16.062745 2.007843-23.090196 5.019607l-49.192157 7.027451c-5.019608 0-7.027451 2.007843-12.047059 2.007843V537.098039c0-2.007843 0-5.019608 2.007844-7.027451 5.019608-9.035294 12.047059-14.054902 23.090196-19.07451 2.007843 0 2.007843 0 5.019608-2.007843h16.062745c23.090196-2.007843 46.180392 0 70.274509 0 35.137255 0-2.007843 18.070588-14.054902 23.090196z m17.066667-67.262745c-37.145098 7.027451-74.290196 14.054902-109.427451 21.082353-5.019608-21.082353 5.019608-33.129412 28.109804-37.145098 41.160784-12.047059 67.262745-7.027451 81.317647 16.062745z m-259.011765-30.117647l7.027451-56.219608c42.164706 9.035294 67.262745 53.207843 56.219608 98.384314-12.047059-7.027451-21.082353-14.054902-30.117647-21.082353-10.039216-7.027451-22.086275-12.047059-33.129412-21.082353z m-179.70196 211.827451c2.007843 2.007843 2.007843 5.019608 5.019607 7.027451 0-2.007843-3.011765-5.019608-5.019607-7.027451z m46.180392 25.098039c-19.07451-5.019608-33.129412-9.035294-42.164706-19.074509 10.039216 10.039216 24.094118 17.066667 42.164706 19.074509z"
fill="#FFFFFF"
></path><path
d="M653.552941 588.298039c-2.007843 2.007843-5.019608 5.019608-5.019608 7.027451 0-3.011765 2.007843-5.019608 5.019608-7.027451z m9.035294-40.156863c-5.019608 0-7.027451 2.007843-12.047059 2.007844 5.019608-2.007843 7.027451-2.007843 12.047059-2.007844z m86.337255-16.062745c0 2.007843 0 2.007843 0 0-5.019608 2.007843-9.035294 2.007843-14.054902 5.019608 4.015686-3.011765 9.035294-3.011765 14.054902-5.019608 0 2.007843 0 2.007843 0 0z m2.007843 0s-2.007843 0 0 0z m14.054902-25.098039c-23.090196 0-46.180392-2.007843-70.27451 0h-7.02745 7.02745c24.094118-3.011765 49.192157 0 70.27451 0z"
fill="#FFFFFF"
></path></svg
>
<span class="ml-2"> 有道翻译 </span>
</label>
<div class="tab-content bg-base-100 border-base-300">
<iframe title="有道翻译" class="w-full h-full" src={urlMaps["youdao"]}
></iframe>
</div>
</div>
</main>
<style>
</style>