(()=>{"use strict";var e={56:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},72:e=>{var n=[];function t(e){for(var t=-1,o=0;o{e.exports=window.wp.element},102:(e,n,t)=>{t.d(n,{A:()=>o});const o=()=>{var e;return Boolean(null===(e=window.ai)||void 0===e?void 0:e.languageDetector)||Boolean(window.self.LanguageDetector)}},113:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},134:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(601),a=t.n(o),r=t(314),i=t.n(r)()(a());i.push([e.id,'.IWDAkbxLQrSlW3KBKp9M {\n background-color: rgba(0, 0, 0, 0.79) !important;\n position: fixed;\n width: 100%;\n height: 100%;\n z-index: 9999999999;\n top: 0px;\n left: 0px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn {\n color: black;\n background: white;\n padding: 1.5rem;\n border-radius: 8px;\n position: relative;\n max-height: 70%;\n margin: auto;\n display: flex;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .zHC4mV43LF5hgGqNTLiu {\n position: absolute;\n top: -4px;\n right: -5px;\n cursor: pointer;\n font-size: 2.5rem;\n z-index: 99;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .CmfS9bfq8snS2tqCJfHy {\n text-align: center;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .ndEoP5k5g1FI2zkDQn3s {\n display: inline-block;\n line-height: 1.4;\n min-height: 30px;\n margin: 0;\n padding: 0 10px;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n white-space: wrap;\n box-sizing: border-box;\n background: #ff2d2d;\n border-radius: 5px;\n font-family: inherit;\n font-size: 13px;\n border-color: red;\n color: #fff;\n -webkit-text-decoration: none;\n text-decoration: none;\n text-shadow: none;\n margin-top: 8px;\n transition: background .3s ease;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .ndEoP5k5g1FI2zkDQn3s:hover {\n background: red;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .gKqTmE85XJ6un8iOyeQu {\n padding: .5rem;\n border: 1px solid #ff4646;\n border-radius: 0.5em;\n max-width: 400px;\n font-size: 1rem;\n line-height: 1.4;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC {\n width: 400px;\n height: 100%;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .uHgddcKqY5DLqbp2nQmv {\n height: 100%;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .MTqjvzYHwmyVqEp22w4C {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: 0.5em;\n gap: 0.5em;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .xf7SiSUMfHfVTRj0VQC7 {\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n grid-gap: 1rem;\n gap: 1rem;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .xytPtZI_x4VxbhrATvMg {\n height: calc(100% - 118px);\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .xytPtZI_x4VxbhrATvMg p {\n border: 1px solid #d1d5db;\n padding: .5rem;\n border-radius: 5px;\n margin-top: .5rem;\n height: calc(100% - 26px);\n margin-bottom: 1rem;\n overflow: auto;\n box-sizing: border-box;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .xytPtZI_x4VxbhrATvMg label {\n font-size: 13px;\n font-weight: 500;\n line-height: 1.4;\n text-transform: uppercase;\n box-sizing: border-box;\n display: block;\n padding-top: 0px;\n padding-bottom: 0px;\n max-width: 100%;\n z-index: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #1e1e1e;\n margin: 0px;\n text-wrap: pretty;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .k_jc1kdHoglhjhEMEmCi {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: .5rem;\n border-radius: 5px;\n margin-top: .5rem;\n font-weight: 600;\n transition: all 0.3s ease;\n color: white;\n opacity: 0.8;\n cursor: pointer;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .k_jc1kdHoglhjhEMEmCi:hover {\n opacity: 1;\n color: white !important;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .u45y94WIGHuILjXPIwrQ {\n background: transparent;\n border: 1px solid #007cba;\n background: #007cba;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .gXN9VBAfOdIML9ckUKVE {\n background: transparent;\n border: 1px solid black;\n background: black;\n}\n\n.IWDAkbxLQrSlW3KBKp9M .UiGC4LrY8UtEgLurAkSn .QsKrTZdFgnxEH89m3xsC .hQSunPcPndfvHKClWBx5 {\n background: transparent;\n border: 1px solid #da1c4b;\n background: #da1c4b;\n}\n\n.iIgZppkUeUl3CyVNsRhR {\n display: flex;\n justify-content: flex-end;\n gap: 0.5em;\n margin-top: 1rem;\n}\n\n.iIgZppkUeUl3CyVNsRhR .ZwqgISZzhZoyk8bLU3aG {\n border: 1px solid #ff4646;\n background: #ff4646;\n color: white;\n transition: all 0.3s ease;\n opacity: 0.8;\n padding: .2rem .3rem;\n font-size: .9rem;\n border-radius: .2rem;\n cursor: pointer;\n}\n\n.iIgZppkUeUl3CyVNsRhR .ZwqgISZzhZoyk8bLU3aG:hover {\n opacity: 1;\n}\n\n.iIgZppkUeUl3CyVNsRhR .x61Mmn5jh0t6FWj0dKos {\n background: transparent;\n border: 1px solid #007cba;\n background: #007cba;\n color: white;\n transition: all 0.3s ease;\n opacity: 0.8;\n padding: .2rem .3rem;\n font-size: .9rem;\n border-radius: .2rem;\n cursor: pointer;\n}\n\n.iIgZppkUeUl3CyVNsRhR .x61Mmn5jh0t6FWj0dKos:hover {\n opacity: 1;\n}\n\n/* Setting Modal CSS Start */\n.mx_ERpDsYO_JH5X51_Sc {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.75);\n display: flex;\n justify-content: center;\n align-items: center;\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n z-index: 99999;\n max-width: 100% !important;\n}\n\n.mx_ERpDsYO_JH5X51_Sc ._3CCaBQoqljIiM3MkKJAc {\n background: #0073aa;\n color: #fff;\n border: none;\n border-radius: 4px;\n padding: 8px 20px;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .rJ6S0EqJRdLAqWhSMI0O {\n position: relative;\n overflow: visible;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .rJ6S0EqJRdLAqWhSMI0O .OGBd517mX5ycNMZOMnIi {\n display: block;\n font-size: 12.8px;\n position: absolute;\n background: #5cb85c;\n color: #fff !important;\n padding: 3.2px 8px;\n border-radius: 4px;\n top: 0;\n left: 20px;\n right: 20px;\n margin: auto;\n opacity: 0;\n width: 121px;\n white-space: nowrap;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .rJ6S0EqJRdLAqWhSMI0O .OGBd517mX5ycNMZOMnIi:after {\n content: "";\n position: absolute;\n top: 98%;\n left: 50%;\n margin-left: -8px;\n width: 0;\n height: 0;\n border-top: 8px solid #5cb85c;\n border-right: 8px solid transparent;\n border-left: 8px solid transparent;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .rJ6S0EqJRdLAqWhSMI0O .OGBd517mX5ycNMZOMnIi.s7G4CXcJyTKc57tglTJV {\n animation: BcBmXhYMKDzFGa5zNE3V 0.15s cubic-bezier(0.51, 0.92, 0.265, 1.55) both;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .wg1a2w4tq6UNIUHt5Qri {\n background-color: #fefefe;\n width: max(200px, min(500px, 80%));\n height: auto;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n border-radius: 0 !important;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l {\n min-height: 0px;\n max-height: 100%;\n height: auto;\n padding: 22px;\n overflow: auto;\n padding-top: 11px;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l h4 {\n margin: 0;\n margin-top: 0;\n margin-bottom: 24px;\n display: block;\n font-weight: 600;\n padding: 0;\n box-sizing: border-box;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l ol {\n margin-top: 16px;\n margin-bottom: 0px;\n list-style-type: decimal;\n margin-left: 32px;\n box-sizing: border-box;\n padding: 0;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l ol li {\n margin-bottom: 6px;\n list-style: decimal;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l p {\n margin: 0;\n padding: 0;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l p * {\n color: red !important;\n font-size: 16px;\n box-shadow: none;\n box-shadow: initial;\n outline: medium none currentcolor;\n outline: initial;\n border: medium none currentcolor;\n border: initial;\n line-height: 1.5;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l p a {\n color: #2271b1 !important;\n -webkit-text-decoration: underline;\n text-decoration: underline;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l button._3CCaBQoqljIiM3MkKJAc {\n background: #0073aa;\n color: #fff !important;\n border: none;\n border-radius: 4px;\n padding: 4px 9px;\n cursor: pointer;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .OvkBfLrgUB7aBUmvyI0l button._3CCaBQoqljIiM3MkKJAc:hover {\n background: #005682;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .Di_eBDO5aUdw2VgfkqxU {\n background: 0 0;\n border: none;\n border-top: 1px solid #dcdcde;\n margin-top: 0;\n padding-left: 16px;\n padding-right: 16px;\n padding-top: 10px;\n padding-bottom: 10px;\n text-align: right;\n margin-right: 6.4px;\n}\n\n.mx_ERpDsYO_JH5X51_Sc .Di_eBDO5aUdw2VgfkqxU .BfZlw4_d6gYbiMqTE_9H {\n display: inline-block;\n -webkit-text-decoration: none;\n text-decoration: none;\n font-size: 13px;\n line-height: 2;\n height: 28px;\n margin: 12px 0;\n padding: 0 10px 1px;\n cursor: pointer;\n border-width: 1px;\n border-style: solid;\n border-radius: 3px;\n white-space: nowrap;\n box-sizing: border-box;\n color: #50575e;\n border-color: #c3c4c7;\n background: #f6f7f7;\n box-shadow: 0 1px 0 #c3c4c7;\n vertical-align: top;\n}\n\n@keyframes BcBmXhYMKDzFGa5zNE3V {\n 0% {\n transform: translateY(0) scale(0.8);\n opacity: 0;\n }\n 100% {\n transform: translateY(-35px) scale(1);\n opacity: 1;\n }\n}',""]),i.locals={modalOverlay:"IWDAkbxLQrSlW3KBKp9M",modalContainer:"UiGC4LrY8UtEgLurAkSn",modalCloseButton:"zHC4mV43LF5hgGqNTLiu",languageErrorButtonWrapper:"CmfS9bfq8snS2tqCJfHy",languageErrorButton:"ndEoP5k5g1FI2zkDQn3s",error:"gKqTmE85XJ6un8iOyeQu",modal:"QsKrTZdFgnxEH89m3xsC",controls:"uHgddcKqY5DLqbp2nQmv",langWrapper:"MTqjvzYHwmyVqEp22w4C",translatedButtonWrp:"xf7SiSUMfHfVTRj0VQC7",translatedContent:"xytPtZI_x4VxbhrATvMg",btnStyle:"k_jc1kdHoglhjhEMEmCi",replaceBtn:"u45y94WIGHuILjXPIwrQ",copyBtn:"gXN9VBAfOdIML9ckUKVE",closeBtn:"hQSunPcPndfvHKClWBx5",errorBtnGroup:"iIgZppkUeUl3CyVNsRhR",btnCloseStyle:"ZwqgISZzhZoyk8bLU3aG",btnContinueStyle:"x61Mmn5jh0t6FWj0dKos",ErrorModalContainer:"mx_ERpDsYO_JH5X51_Sc",errorReloadBtn:"_3CCaBQoqljIiM3MkKJAc",tooltipElement:"rJ6S0EqJRdLAqWhSMI0O",tooltip:"OGBd517mX5ycNMZOMnIi",tooltipActive:"s7G4CXcJyTKc57tglTJV","slide-up":"BcBmXhYMKDzFGa5zNE3V",errorModalBox:"wg1a2w4tq6UNIUHt5Qri",errorModalBoxBody:"OvkBfLrgUB7aBUmvyI0l",errorModalBoxFooter:"Di_eBDO5aUdw2VgfkqxU",errorModalBoxClose:"BfZlw4_d6gYbiMqTE_9H"};const l=i},147:(e,n,t)=>{t.d(n,{A:()=>b});var o=t(72),a=t.n(o),r=t(825),i=t.n(r),l=t(659),s=t.n(l),c=t(56),d=t.n(c),p=t(540),u=t.n(p),m=t(113),g=t.n(m),h=t(134),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=s().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u(),a()(h.A,f);const b=h.A&&h.A.locals?h.A.locals:void 0},177:(e,n,t)=>{t.d(n,{A:()=>a});var o=t(251);const a=class{constructor(e,n,t,o){this.languagePairAvality=async(e,n)=>{var t,o,a,r,i,l,s,c,d,p,u,m,g,h,f,b;let w="unavailable";if((null===(t=null===window||void 0===window?void 0:window.self)||void 0===t?void 0:t.translation)&&(w=await(null===(a=null===(o=null===window||void 0===window?void 0:window.self)||void 0===o?void 0:o.translation)||void 0===a?void 0:a.canTranslate({sourceLanguage:e,targetLanguage:n}))),null===(i=null===(r=null===window||void 0===window?void 0:window.self)||void 0===r?void 0:r.ai)||void 0===i?void 0:i.translator){const t=await(null===(c=null===(s=null===(l=null===window||void 0===window?void 0:window.self)||void 0===l?void 0:l.ai)||void 0===s?void 0:s.translator)||void 0===c?void 0:c.capabilities());w=await t.languagePairAvailable(e,n)}if((null===(d=null===window||void 0===window?void 0:window.self)||void 0===d?void 0:d.Translator)&&(w=await(null===(u=null===(p=null===window||void 0===window?void 0:window.self)||void 0===p?void 0:p.Translator)||void 0===u?void 0:u.availability({sourceLanguage:e,targetLanguage:n}))),["unavailable","downloading","after-download","downloadable"].includes(w)&&(null===(m=null===window||void 0===window?void 0:window.self)||void 0===m?void 0:m.Translator))try{await(null===(h=null===(g=null===window||void 0===window?void 0:window.self)||void 0===g?void 0:g.Translator)||void 0===h?void 0:h.create({sourceLanguage:e,targetLanguage:n,monitor(e){e.addEventListener("downloadprogress",e=>{console.log(`Downloaded ${100*e.loaded}%`)})}})),w=await(null===(b=null===(f=null===window||void 0===window?void 0:window.self)||void 0===f?void 0:f.Translator)||void 0===b?void 0:b.availability({sourceLanguage:e,targetLanguage:n}))}catch(e){console.log("err",e)}return w},this.AITranslator=async()=>{var e,n,t,o;return(null===(e=null===window||void 0===window?void 0:window.self)||void 0===e?void 0:e.translation)?(this.translator=await window.self.translation.createTranslator({sourceLanguage:this.sourceLang,targetLanguage:this.targetLang}),this.translator):(null===(t=null===(n=null===window||void 0===window?void 0:window.self)||void 0===n?void 0:n.ai)||void 0===t?void 0:t.translator)?(this.translator=await window.self.ai.translator.create({sourceLanguage:this.sourceLang,targetLanguage:this.targetLang}),this.translator):"Translator"in(null===window||void 0===window?void 0:window.self)&&"create"in(null===(o=null===window||void 0===window?void 0:window.self)||void 0===o?void 0:o.Translator)&&await window.self.Translator.create({sourceLanguage:this.sourceLang,targetLanguage:this.targetLang})},this.createTranslator=async()=>{if(!this.translator)return this.translator=await this.AITranslator(),{error:!1}},this.startTranslation=async e=>await this.translator.translate(e),this.sourceLang=e,this.targetLang=n,this.targetLangLabel=t,this.sourceLangLabel=o}async LanguagePairStatus(){var e,n,t,a;if(!(null===(e=null===window||void 0===window?void 0:window.self)||void 0===e?void 0:e.translation)&&!(null===(t=null===(n=null===window||void 0===window?void 0:window.self)||void 0===n?void 0:n.ai)||void 0===t?void 0:t.translator)&&!(null===(a=null===window||void 0===window?void 0:window.self)||void 0===a?void 0:a.Translator))return{error:'The Translator AI modal is currently not supported or disabled in your browser. Please enable it. For detailed instructions on how to enable the Translator AI modal in your Chrome browser, click here.'};const r=await this.languagePairAvality(this.sourceLang,this.targetLang);return"after-download"===r||"downloadable"===r||"unavailable"===r?{error:`\n

Installation Instructions for Language Packs:

\n
    \n
  1. \n To proceed, please install the language pack for ${this.targetLangLabel} (${this.targetLang}) or ${this.sourceLangLabel} (${this.sourceLang}).\n
  2. \n
  3. \n After installing the language pack, add this language to your browser's system languages in Chrome settings.
    \n Go to Settings > Languages > Add languages and add ${this.targetLangLabel} or ${this.sourceLangLabel} to your preferred languages list & reload the page.\n
  4. \n
  5. \n You can install it by visiting the following link: \n \n \n chrome://on-device-translation-internals ${(0,o.$)({iconName:"copy"})}\n \n . Click on the URL to copy it, then open a new window and paste this URL to access the settings.\n
  6. \n
  7. \n Please check if both your source (${this.sourceLang}) and target (${this.targetLang}) languages are available in the language packs list.\n
  8. \n
  9. \n You need to install both language packs for translation to work. You can search for each language by its language code: ${this.sourceLang} and ${this.targetLang}.\n
  10. \n
  11. For more help, refer to the documentation to check supported languages.
  12. \n
\n
`}:"downloading"===r?{error:`\n

Language Pack Download In Progress:

\n
    \n
  1. \n The language pack for ${this.targetLangLabel} (${this.targetLang}) or ${this.sourceLangLabel} (${this.sourceLang}) is already being downloaded.\n
  2. \n
  3. \n You do not need to start the download again. Please wait for the download to complete. Once finished, the translation feature will become available automatically.\n
  4. \n
  5. \n You can check the download progress by opening:\n \n \n chrome://on-device-translation-internals ${(0,o.$)({iconName:"copy"})}\n \n \n . Click on the URL to copy it, then open a new window and paste this URL in Chrome to view the status.\n
  6. \n
  7. \n What to do next:\n
      \n
    • Wait for the download to finish. The status will change to Ready or Installed in the Language Packs section.
    • \n
    • After the language pack is installed, you may need to reload or restart your browser for the changes to take effect.
    • \n
    \n
  8. \n
  9. \n For more help, refer to the documentation to check supported languages.\n
  10. \n
\n
\n \n
\n
`}:"readily"!==r&&"available"!==r?{error:`\n

Language Pack Installation Required

\n
    \n
  1. Please ensure that the language pack for ${this.targetLangLabel} (${this.targetLang}) or ${this.sourceLangLabel} (${this.sourceLang}) is installed and set as a preferred language in your browser.
  2. \n
  3. To install the language pack, visit chrome://on-device-translation-internals ${(0,o.$)({iconName:"copy"})}. Click on the URL to copy it, then open a new window and paste this URL to access the settings.
  4. \n
  5. If you encounter any issues, please refer to the documentation to check supported languages for further assistance.
  6. \n
\n
`}:(await this.createTranslator(),!0)}}},244:(e,n,t)=>{t.d(n,{A:()=>o});const o={en:"English",es:"Spanish",ja:"Japanese",ar:"Arabic",de:"German",bn:"Bengali",fr:"French",hi:"Hindi",it:"Italian",ko:"Korean",nl:"Dutch",pl:"Polish",pt:"Portuguese",ru:"Russian",th:"Thai",tr:"Turkish",vi:"Vietnamese",zh:"Chinese","zh-hant":"Chinese (Traditional)",bg:"Bulgarian",cs:"Czech",da:"Danish",el:"Greek",fi:"Finnish",hr:"Croatian",hu:"Hungarian",id:"Indonesian",iw:"Hebrew",lt:"Lithuanian",no:"Norwegian",ro:"Romanian",sk:"Slovak",sl:"Slovenian",sv:"Swedish",uk:"Ukrainian","en-zh":"English (Chinese)",kn:"Kannada",ta:"Tamil",te:"Telugu",mr:"Marathi"}},251:(e,n,t)=>{t.d(n,{$:()=>o});const o=({iconName:e})=>({copy:''}[e]||wp.element.createElement(wp.element.Fragment,null))},255:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(609);const a=o.createContext({}),r=!0;function i({baseColor:e,highlightColor:n,width:t,height:o,borderRadius:a,circle:i,direction:l,duration:s,enableAnimation:c=r,customHighlightBackground:d}){const p={};return"rtl"===l&&(p["--animation-direction"]="reverse"),"number"==typeof s&&(p["--animation-duration"]=`${s}s`),c||(p["--pseudo-element-display"]="none"),"string"!=typeof t&&"number"!=typeof t||(p.width=t),"string"!=typeof o&&"number"!=typeof o||(p.height=o),"string"!=typeof a&&"number"!=typeof a||(p.borderRadius=a),i&&(p.borderRadius="50%"),void 0!==e&&(p["--base-color"]=e),void 0!==n&&(p["--highlight-color"]=n),"string"==typeof d&&(p["--custom-highlight-background"]=d),p}function l({count:e=1,wrapper:n,className:t,containerClassName:l,containerTestId:s,circle:c=!1,style:d,...p}){var u,m,g;const h=o.useContext(a),f={...p};for(const[e,n]of Object.entries(p))void 0===n&&delete f[e];const b={...h,...f,circle:c},w={...d,...i(b)};let y="react-loading-skeleton";t&&(y+=` ${t}`);const v=null!==(u=b.inline)&&void 0!==u&&u,x=[],A=Math.ceil(e);for(let n=0;ne&&n===A-1){const n=null!==(m=t.width)&&void 0!==m?m:"100%",o=e%1,a="number"==typeof n?n*o:`calc(${n} * ${o})`;t={...t,width:a}}const a=o.createElement("span",{className:y,style:t,key:n},"‌");v?x.push(a):x.push(o.createElement(o.Fragment,{key:n},a,o.createElement("br",null)))}return o.createElement("span",{className:l,"data-testid":s,"aria-live":"polite","aria-busy":null!==(g=b.enableAnimation)&&void 0!==g?g:r},n?x.map((e,t)=>o.createElement(n,{key:t},e)):x)}},264:(e,n,t)=>{t.d(n,{A:()=>o});const o=class{constructor(e){this.supportedLanguage=[],this.languageDetectorApi=async()=>{var e;return(null===(e=window.self.ai)||void 0===e?void 0:e.languageDetector)?window.self.ai.languageDetector:!!window.self.LanguageDetector&&window.self.LanguageDetector},this.supportedLanguage=e}async Status(){var e,n;const t=await this.languageDetectorApi();if(t){const o=(null===(n=null===(e=null===window||void 0===window?void 0:window.self)||void 0===e?void 0:e.ai)||void 0===n?void 0:n.languageDetector)?await t.capabilities():await t.availability();if("readily"===(null==o?void 0:o.available)||"available"===o)return!0}return!1}async Detect(e){const n=await this.languageDetectorApi();if(n){const t=await n.create(),o=e.trim(),a=(await t.detect(o)).slice(0,5).map(e=>this.supportedLanguage.includes(e.detectedLanguage)?e.detectedLanguage:null).filter(Boolean);if(a.length>0)return a[0]}return null}}},314:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t="",o=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),o&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),o&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t}).join("")},n.i=function(e,t,o,a,r){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),t&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=t):d[2]=t),a&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=a):d[4]="".concat(a)),n.push(d))}},n}},321:(e,n,t)=>{t.d(n,{A:()=>o});const o=()=>{var e,n,t,o,a;return Boolean((null===(e=null===window||void 0===window?void 0:window.self)||void 0===e?void 0:e.translation)||(null===(n=null===window||void 0===window?void 0:window.self)||void 0===n?void 0:n.ai)&&(null===(o=null===(t=null===window||void 0===window?void 0:window.self)||void 0===t?void 0:t.ai)||void 0===o?void 0:o.translator)||(null===(a=null===window||void 0===window?void 0:window.self)||void 0===a?void 0:a.Translator))}},329:(e,n,t)=>{t.d(n,{A:()=>o});const o=e=>{const n=e.modalContainer;return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("style",null,`\n .${n} .components-modal__header{\n height: auto !important;\n padding: 0px !important;\n position: relative; \n border-bottom: 1px solid #dcdcde;\n padding-right: 1rem !important;\n display: block;\n }\n .${n} .components-modal__header button.components-button{\n right: 15px;\n top: 13px;\n border-radius: 0 !important;\n position: absolute;\n color: #646970;\n cursor: pointer;\n height: 27px;\n }\n .${n} .components-modal__header h1{\n height: unset;\n padding: 8px 36px 8px 25px;\n border: none;\n background: 0 0;\n font-size: 18px;\n font-weight: 600;\n line-height: 2;\n margin: 0;\n color: black;\n }\n .${n} .components-modal__content>div:nth-child(2){\n padding: 0px !important;\n height: 100% !important;\n max-height: calc(100% - 126px) !important;\n }\n .${n} .components-modal__content{\n flex: 1;\n overflow: unset;\n padding: 0px;\n margin-top: 0px;\n }\n `))}},374:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(601),a=t.n(o),r=t(314),i=t.n(r)()(a());i.push([e.id,"@keyframes xp1qtUKwYXneK3LclXyo {\n 100% {\n transform: translateX(100%);\n }\n}\n\n.xp1qtUKwYXneK3LclXyo {\n --base-color: #ebebeb;\n --highlight-color: #f5f5f5;\n --animation-duration: 1.5s;\n --animation-direction: normal;\n --pseudo-element-display: block; /* Enable animation */\n\n background-color: #ebebeb;\n\n background-color: var(--base-color);\n\n width: 100%;\n border-radius: 0.25rem;\n display: inline-flex;\n line-height: 1;\n\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n overflow: hidden;\n}\n\n.xp1qtUKwYXneK3LclXyo::after {\n content: ' ';\n display: var(--pseudo-element-display);\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background-repeat: no-repeat;\n background-image: var(\n --custom-highlight-background,\n linear-gradient(\n 90deg,\n var(--base-color) 0%,\n var(--highlight-color) 50%,\n var(--base-color) 100%\n )\n );\n transform: translateX(-100%);\n\n animation-name: xp1qtUKwYXneK3LclXyo;\n animation-direction: var(--animation-direction);\n animation-duration: var(--animation-duration);\n animation-timing-function: ease-in-out;\n animation-iteration-count: infinite;\n}\n\n@media (prefers-reduced-motion) {\n .xp1qtUKwYXneK3LclXyo {\n --pseudo-element-display: none; /* Disable animation */\n }\n}\n",""]),i.locals={"react-loading-skeleton":"xp1qtUKwYXneK3LclXyo"};const l=i},418:(e,n,t)=>{t.d(n,{A:()=>te});const{entries:o,setPrototypeOf:a,isFrozen:r,getPrototypeOf:i,getOwnPropertyDescriptor:l}=Object;let{freeze:s,seal:c,create:d}=Object,{apply:p,construct:u}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),c||(c=function(e){return e}),p||(p=function(e,n){for(var t=arguments.length,o=new Array(t>2?t-2:0),a=2;a1?n-1:0),o=1;o1?t-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:w;a&&a(e,null);let o=n.length;for(;o--;){let a=n[o];if("string"==typeof a){const e=t(a);e!==a&&(r(n)||(n[o]=e),a=e)}e[a]=!0}return e}function N(e){for(let n=0;n/gm),j=c(/\$\{[\w\W]*/gm),q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=c(/^aria-[\-\w]+$/),$=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=c(/^(?:\w+script|data):/i),J=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:Z,DATA_ATTR:q,DOCTYPE_NAME:V,ERB_EXPR:G,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:Y,TMPLIT_EXPR:j});const ne=function(){return"undefined"==typeof window?null:window};var te=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const t=n=>e(n);if(t.version="3.2.7",t.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return t.isSupported=!1,t;let{document:a}=n;const r=a,i=r.currentScript,{DocumentFragment:l,HTMLTemplateElement:c,Node:p,Element:u,NodeFilter:S,NamedNodeMap:_=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:N,DOMParser:Y,trustedTypes:G}=n,j=u.prototype,q=M(j,"cloneNode"),X=M(j,"remove"),Q=M(j,"nextSibling"),J=M(j,"childNodes"),Z=M(j,"parentNode");if("function"==typeof c){const e=a.createElement("template");e.content&&e.content.ownerDocument&&(a=e.content.ownerDocument)}let te,oe="";const{implementation:ae,createNodeIterator:re,createDocumentFragment:ie,getElementsByTagName:le}=a,{importNode:se}=r;let ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};t.isSupported="function"==typeof o&&"function"==typeof Z&&ae&&void 0!==ae.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:pe,TMPLIT_EXPR:ue,DATA_ATTR:me,ARIA_ATTR:ge,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:be}=ee;let{IS_ALLOWED_URI:we}=ee,ye=null;const ve=C({},[...D,...O,...R,...B,...P]);let xe=null;const Ae=C({},[...z,...K,...W,...F]);let Ee=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Te=null,Le=!0,Se=!0,_e=!1,Ce=!0,Ne=!1,Ie=!0,Me=!1,De=!1,Oe=!1,Re=!1,Ue=!1,Be=!1,He=!0,Pe=!1,ze=!0,Ke=!1,We={},Fe=null;const Ye=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const je=C({},["audio","video","img","source","image","track"]);let qe=null;const Xe=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$e="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Ve=Je,Ze=!1,en=null;const nn=C({},[$e,Qe,Je],y);let tn=C({},["mi","mo","mn","ms","mtext"]),on=C({},["annotation-xml"]);const an=C({},["title","style","font","a","script"]);let rn=null;const ln=["application/xhtml+xml","text/html"];let sn=null,cn=null;const dn=a.createElement("form"),pn=function(e){return e instanceof RegExp||e instanceof Function},un=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!cn||cn!==e){if(e&&"object"==typeof e||(e={}),e=I(e),rn=-1===ln.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,sn="application/xhtml+xml"===rn?y:w,ye=k(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,sn):ve,xe=k(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,sn):Ae,en=k(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,y):nn,qe=k(e,"ADD_URI_SAFE_ATTR")?C(I(Xe),e.ADD_URI_SAFE_ATTR,sn):Xe,Ge=k(e,"ADD_DATA_URI_TAGS")?C(I(je),e.ADD_DATA_URI_TAGS,sn):je,Fe=k(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,sn):Ye,ke=k(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,sn):I({}),Te=k(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,sn):I({}),We=!!k(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,Se=!1!==e.ALLOW_DATA_ATTR,_e=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Ie=!1!==e.SAFE_FOR_XML,Me=e.WHOLE_DOCUMENT||!1,Re=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,Be=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Pe=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,Ke=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||$,Ve=e.NAMESPACE||Je,tn=e.MATHML_TEXT_INTEGRATION_POINTS||tn,on=e.HTML_INTEGRATION_POINTS||on,Ee=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ee.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ee.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ee.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Se=!1),Ue&&(Re=!0),We&&(ye=C({},P),xe=[],!0===We.html&&(C(ye,D),C(xe,z)),!0===We.svg&&(C(ye,O),C(xe,K),C(xe,F)),!0===We.svgFilters&&(C(ye,R),C(xe,K),C(xe,F)),!0===We.mathMl&&(C(ye,B),C(xe,W),C(xe,F))),e.ADD_TAGS&&(ye===ve&&(ye=I(ye)),C(ye,e.ADD_TAGS,sn)),e.ADD_ATTR&&(xe===Ae&&(xe=I(xe)),C(xe,e.ADD_ATTR,sn)),e.ADD_URI_SAFE_ATTR&&C(qe,e.ADD_URI_SAFE_ATTR,sn),e.FORBID_CONTENTS&&(Fe===Ye&&(Fe=I(Fe)),C(Fe,e.FORBID_CONTENTS,sn)),ze&&(ye["#text"]=!0),Me&&C(ye,["html","head","body"]),ye.table&&(C(ye,["tbody"]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=e.TRUSTED_TYPES_POLICY,oe=te.createHTML("")}else void 0===te&&(te=function(e,n){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let t=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(t=n.getAttribute(o));const a="dompurify"+(t?"#"+t:"");try{return e.createPolicy(a,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(G,i)),null!==te&&"string"==typeof oe&&(oe=te.createHTML(""));s&&s(e),cn=e}},mn=C({},[...O,...R,...U]),gn=C({},[...B,...H]),hn=function(e){f(t.removed,{element:e});try{Z(e).removeChild(e)}catch(n){X(e)}},fn=function(e,n){try{f(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(e){f(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(Re||Ue)try{hn(n)}catch(e){}else try{n.setAttribute(e,"")}catch(e){}},bn=function(e){let n=null,t=null;if(Oe)e=""+e;else{const n=v(e,/^[\r\n\t ]+/);t=n&&n[0]}"application/xhtml+xml"===rn&&Ve===Je&&(e=''+e+"");const o=te?te.createHTML(e):e;if(Ve===Je)try{n=(new Y).parseFromString(o,rn)}catch(e){}if(!n||!n.documentElement){n=ae.createDocument(Ve,"template",null);try{n.documentElement.innerHTML=Ze?oe:o}catch(e){}}const r=n.body||n.documentElement;return e&&t&&r.insertBefore(a.createTextNode(t),r.childNodes[0]||null),Ve===Je?le.call(n,Me?"html":"body")[0]:Me?n.documentElement:r},wn=function(e){return re.call(e.ownerDocument||e,e,S.SHOW_ELEMENT|S.SHOW_COMMENT|S.SHOW_TEXT|S.SHOW_PROCESSING_INSTRUCTION|S.SHOW_CDATA_SECTION,null)},yn=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof _)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},vn=function(e){return"function"==typeof p&&e instanceof p};function xn(e,n,o){m(e,e=>{e.call(t,n,o,cn)})}const An=function(e){let n=null;if(xn(ce.beforeSanitizeElements,e,null),yn(e))return hn(e),!0;const o=sn(e.nodeName);if(xn(ce.uponSanitizeElement,e,{tagName:o,allowedTags:ye}),Ie&&e.hasChildNodes()&&!vn(e.firstElementChild)&&T(/<[/\w!]/g,e.innerHTML)&&T(/<[/\w!]/g,e.textContent))return hn(e),!0;if(7===e.nodeType)return hn(e),!0;if(Ie&&8===e.nodeType&&T(/<[/\w]/g,e.data))return hn(e),!0;if(!ye[o]||ke[o]){if(!ke[o]&&kn(o)){if(Ee.tagNameCheck instanceof RegExp&&T(Ee.tagNameCheck,o))return!1;if(Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(o))return!1}if(ze&&!Fe[o]){const n=Z(e)||e.parentNode,t=J(e)||e.childNodes;if(t&&n)for(let o=t.length-1;o>=0;--o){const a=q(t[o],!0);a.__removalCount=(e.__removalCount||0)+1,n.insertBefore(a,Q(e))}}return hn(e),!0}return e instanceof u&&!function(e){let n=Z(e);n&&n.tagName||(n={namespaceURI:Ve,tagName:"template"});const t=w(e.tagName),o=w(n.tagName);return!!en[e.namespaceURI]&&(e.namespaceURI===Qe?n.namespaceURI===Je?"svg"===t:n.namespaceURI===$e?"svg"===t&&("annotation-xml"===o||tn[o]):Boolean(mn[t]):e.namespaceURI===$e?n.namespaceURI===Je?"math"===t:n.namespaceURI===Qe?"math"===t&&on[o]:Boolean(gn[t]):e.namespaceURI===Je?!(n.namespaceURI===Qe&&!on[o])&&!(n.namespaceURI===$e&&!tn[o])&&!gn[t]&&(an[t]||!mn[t]):!("application/xhtml+xml"!==rn||!en[e.namespaceURI]))}(e)?(hn(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(n=e.textContent,m([de,pe,ue],e=>{n=x(n,e," ")}),e.textContent!==n&&(f(t.removed,{element:e.cloneNode()}),e.textContent=n)),xn(ce.afterSanitizeElements,e,null),!1):(hn(e),!0)},En=function(e,n,t){if(He&&("id"===n||"name"===n)&&(t in a||t in dn))return!1;if(Se&&!Te[n]&&T(me,n));else if(Le&&T(ge,n));else if(!xe[n]||Te[n]){if(!(kn(e)&&(Ee.tagNameCheck instanceof RegExp&&T(Ee.tagNameCheck,e)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(e))&&(Ee.attributeNameCheck instanceof RegExp&&T(Ee.attributeNameCheck,n)||Ee.attributeNameCheck instanceof Function&&Ee.attributeNameCheck(n,e))||"is"===n&&Ee.allowCustomizedBuiltInElements&&(Ee.tagNameCheck instanceof RegExp&&T(Ee.tagNameCheck,t)||Ee.tagNameCheck instanceof Function&&Ee.tagNameCheck(t))))return!1}else if(qe[n]);else if(T(we,x(t,fe,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===e||0!==A(t,"data:")||!Ge[e])if(_e&&!T(he,x(t,fe,"")));else if(t)return!1;return!0},kn=function(e){return"annotation-xml"!==e&&v(e,be)},Tn=function(e){xn(ce.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||yn(e))return;const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0};let a=n.length;for(;a--;){const r=n[a],{name:i,namespaceURI:l,value:s}=r,c=sn(i),d=s;let p="value"===i?d:E(d);if(o.attrName=c,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,xn(ce.uponSanitizeAttribute,e,o),p=o.attrValue,!Pe||"id"!==c&&"name"!==c||(fn(i,e),p="user-content-"+p),Ie&&T(/((--!?|])>)|<\/(style|title|textarea)/i,p)){fn(i,e);continue}if("attributename"===c&&v(p,"href")){fn(i,e);continue}if(o.forceKeepAttr)continue;if(!o.keepAttr){fn(i,e);continue}if(!Ce&&T(/\/>/i,p)){fn(i,e);continue}Ne&&m([de,pe,ue],e=>{p=x(p,e," ")});const u=sn(e.nodeName);if(En(u,c,p)){if(te&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(u,c)){case"TrustedHTML":p=te.createHTML(p);break;case"TrustedScriptURL":p=te.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,i,p):e.setAttribute(i,p),yn(e)?hn(e):h(t.removed)}catch(n){fn(i,e)}}else fn(i,e)}xn(ce.afterSanitizeAttributes,e,null)},Ln=function e(n){let t=null;const o=wn(n);for(xn(ce.beforeSanitizeShadowDOM,n,null);t=o.nextNode();)xn(ce.uponSanitizeShadowNode,t,null),An(t),Tn(t),t.content instanceof l&&e(t.content);xn(ce.afterSanitizeShadowDOM,n,null)};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,i=null,s=null;if(Ze=!e,Ze&&(e="\x3c!--\x3e"),"string"!=typeof e&&!vn(e)){if("function"!=typeof e.toString)throw L("toString is not a function");if("string"!=typeof(e=e.toString()))throw L("dirty is not a string, aborting")}if(!t.isSupported)return e;if(De||un(n),t.removed=[],"string"==typeof e&&(Ke=!1),Ke){if(e.nodeName){const n=sn(e.nodeName);if(!ye[n]||ke[n])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)o=bn("\x3c!----\x3e"),a=o.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a);else{if(!Re&&!Ne&&!Me&&-1===e.indexOf("<"))return te&&Be?te.createHTML(e):e;if(o=bn(e),!o)return Re?null:Be?oe:""}o&&Oe&&hn(o.firstChild);const c=wn(Ke?e:o);for(;i=c.nextNode();)An(i),Tn(i),i.content instanceof l&&Ln(i.content);if(Ke)return e;if(Re){if(Ue)for(s=ie.call(o.ownerDocument);o.firstChild;)s.appendChild(o.firstChild);else s=o;return(xe.shadowroot||xe.shadowrootmode)&&(s=se.call(r,s,!0)),s}let d=Me?o.outerHTML:o.innerHTML;return Me&&ye["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&T(V,o.ownerDocument.doctype.name)&&(d="\n"+d),Ne&&m([de,pe,ue],e=>{d=x(d,e," ")}),te&&Be?te.createHTML(d):d},t.setConfig=function(){un(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},t.clearConfig=function(){cn=null,De=!1},t.isValidAttribute=function(e,n,t){cn||un({});const o=sn(e),a=sn(n);return En(o,a,t)},t.addHook=function(e,n){"function"==typeof n&&f(ce[e],n)},t.removeHook=function(e,n){if(void 0!==n){const t=g(ce[e],n);return-1===t?void 0:b(ce[e],t,1)[0]}return h(ce[e])},t.removeHooks=function(e){ce[e]=[]},t.removeAllHooks=function(){ce={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},t}()},427:e=>{e.exports=window.wp.components},529:(e,n,t)=>{t.d(n,{A:()=>b});var o=t(72),a=t.n(o),r=t(825),i=t.n(r),l=t(659),s=t.n(l),c=t(56),d=t.n(c),p=t(540),u=t.n(p),m=t(113),g=t.n(m),h=t(374),f={};f.styleTagTransform=g(),f.setAttributes=d(),f.insert=s().bind(null,"head"),f.domAPI=i(),f.insertStyleElement=u(),a()(h.A,f);const b=h.A&&h.A.locals?h.A.locals:void 0},540:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},601:e=>{e.exports=function(e){return e[1]}},609:e=>{e.exports=window.React},614:(e,n,t)=>{t.d(n,{A:()=>p});var o=t(634),a=t(609),r=t(147),i=t(427),l=t(329),s=t(418),c=t(87);const d=e=>(0,c.createElement)(i.Modal,e),p=({message:e,onClose:n,Title:t,children:i})=>{let c=jQuery("
").append(e);const p=c.html();return c.remove(),c=null,(0,a.useEffect)(()=>{const e=document.querySelectorAll(".chrome-ai-translator-flags");if(e.length>0)return e.forEach(e=>{e.classList.add(r.A.tooltipElement);const n=n=>{if(n.preventDefault(),e.querySelector(`.${r.A.tooltip}`))return;let t=document.createElement("span");t.textContent="Text to be copied.",t.className=r.A.tooltip,e.appendChild(t),(0,o.A)({text:e.getAttribute("data-clipboard-text")||"",startCopyStatus:()=>{t.classList.add(r.A.tooltipActive)},endCopyStatus:()=>{setTimeout(()=>{t.remove()},800)}})};e.addEventListener("click",n),e.__atfpClickHandler=n}),()=>{e.forEach(e=>{const n=e.__atfpClickHandler;n&&(e.removeEventListener("click",n),delete e.__atfpClickHandler)})}},[]),wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(d,{title:t,onRequestClose:n,className:r.A.errorModalBox,overlayClassName:r.A.ErrorModalContainer,isDismissible:!0,bodyOpenClassName:"body-class"},wp.element.createElement(l.A,{modalContainer:r.A.ErrorModalContainer}),wp.element.createElement("div",{className:r.A.errorModalBoxBody},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:s.A.sanitize(p)}}),i),wp.element.createElement("div",{className:r.A.errorModalBoxFooter},wp.element.createElement("button",{className:r.A.errorModalBoxClose,onClick:n},"Close"))))}},634:(e,n,t)=>{t.d(n,{A:()=>o});const o=async({text:e="",startCopyStatus:n=()=>{},endCopyStatus:t=()=>{}})=>{var o;if(e&&""!==e)try{if(null===(o=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===o?void 0:o.writeText)await navigator.clipboard.writeText(e);else{const n=document.createElement("textarea");n.value=e,document.body.appendChild(n),n.select(),document.execCommand&&document.execCommand("copy"),document.body.removeChild(n)}n(),setTimeout(()=>t(),800)}catch(e){console.error("Error copying text to clipboard:",e)}}},659:e=>{var n={};e.exports=function(e,t){var o=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},723:e=>{e.exports=window.wp.i18n},737:(e,n,t)=>{t.d(n,{A:()=>i});var o=t(975),a=t(87);const r=e=>(0,a.createElement)(o.A,e),i=({buttons:e,className:n})=>wp.element.createElement("div",{className:n},e.map(e=>wp.element.createElement(r,{key:e.label,...e})))},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var a=void 0!==t.layer;a&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,a&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var r=t.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),n.styleTagTransform(o,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},928:(e,n,t)=>{t.d(n,{A:()=>o});const o=e=>{const n=e.modalContainer;return wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("style",null,`\n .${n} .components-modal__header{\n height: auto !important;\n padding: 0px !important;\n position: relative; \n }\n .${n} .components-modal__header .components-modal__header-heading{\n font-size: 1.2rem;\n font-weight: 600;\n line-height: 1;\n margin: 0;\n }\n .${n} .components-modal__content>div:nth-child(2){\n height: calc(100% - 2.5rem) !important;\n margin-top: 1.5rem;\n overflow-y: auto;\n overflow-x: hidden;\n }\n .${n} .components-modal__content{\n flex: 1;\n overflow: unset;\n padding: 0px;\n margin-top: 0px;\n position: relative;\n }\n `))}},975:(e,n,t)=>{t.d(n,{A:()=>o});const o=({label:e,className:n="",onClick:t})=>wp.element.createElement("button",{className:n,onClick:t},e)}},n={};function t(o){var a=n[o];if(void 0!==a)return a.exports;var r=n[o]={id:o,exports:{}};return e[o](r,r.exports,t),r.exports}t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.nc=void 0;var o,a=t(609),r=t(723),i=t(147),l=t(177),s=t(321),c=t(244),d=t(102),p=t(264),u=t(255),m=t(529),g=t(928),h=t(737),f=t(251),b=t(614),w=t(418),y=t(427),v=t(87);const x=e=>(0,v.createElement)(y.Modal,e),A=e=>(0,v.createElement)(y.Button,e),E=e=>(0,v.createElement)(u.A,e),k=e=>(0,v.createElement)(h.A,e),T=e=>(0,v.createElement)(b.A,e);null===(o=null===window||void 0===window?void 0:window.atfpInlineTranslation)||void 0===o||(o.TranslatorModal=({value:e,onUpdate:n,pageLanguage:t,onModalClose:o,modalOpen:u})=>{let b="hi",v="es",L={};if(t){const e=t;e&&""!==e&&(v=e,"en"===e&&(b="es"),Object.keys(c.A).includes(e)||(L[e]=t+" (Not Supported)"))}const[S,_]=(0,a.useState)(u),[C,N]=(0,a.useState)(""),[I,M]=(0,a.useState)(""),[D,O]=(0,a.useState)(b),[R,U]=(0,a.useState)(v),[B,H]=(0,a.useState)(Object.keys({...c.A,...L}).filter(e=>e!==b)),[P,z]=(0,a.useState)(""),[K,W]=(0,a.useState)(""),[F,Y]=(0,a.useState)(""),[G,j]=(0,a.useState)("Copy"),[q,X]=(0,a.useState)(!1),[$,Q]=(0,a.useState)([]),[J,V]=(0,a.useState)(!1),Z="https:"===window.location.protocol,ee=null===window||void 0===window?void 0:window.isSecureContext;(0,a.useEffect)(()=>{if(W(""),z(""),""!==e)if(window.hasOwnProperty("chrome")&&navigator.userAgent.includes("Chrome")&&!navigator.userAgent.includes("Edg"))if((0,s.A)()||Z||ee)if((0,s.A)()){if(!((0,d.A)()||Z||ee))return W(`\n

Important Notice:

\n
    \n
  1. \n The Language Detection API is not functioning due to an insecure connection.\n
  2. \n
  3. \n Please switch to a secure connection (HTTPS) or add this URL to the list of insecure origins treated as secure by visiting \n chrome://flags/#unsafely-treat-insecure-origin-as-secure ${(0,f.$)({iconName:"copy"})}.\n Copy the URL and open a new window and paste this URL to access the settings.\n
  4. \n
\n
`),void Q([{label:"Continue Without Detection",className:i.A.btnContinueStyle,onClick:()=>{O("not-selected"),W(""),Q([]),V(!1),_(!0)}}]);if(!(0,d.A)())return W(`\n

Language Detection API is not available:

\n
    \n
  1. \n Open a new Chrome tab and go to \n \n \n chrome://flags/#language-detection-api ${(0,f.$)({iconName:"copy"})}\n \n . Click to copy, then paste it in the address bar.\n
  2. \n
  3. Enable the Experimental language detection API flag.
  4. \n
  5. \n For more details, see the \n \n official documentation\n .\n
  6. \n
  7. \n You can also continue without detection by clicking the "Continue Without Detection" button and select the language manually.\n
  8. \n
\n
`),void Q([{label:"Continue Without Detection",className:i.A.btnContinueStyle,onClick:()=>{O("not-selected"),W(""),Q([]),V(!1),_(!0)}}]);N(e),(0,d.A)()&&te(e)}else W(`\n

Steps to Enable the Translator AI Modal:

\n
    \n
  1. Open this URL in a new Chrome tab: chrome://flags/#translation-api ${(0,f.$)({iconName:"copy"})}. Click on the URL to copy it, then open a new window and paste this URL to access the settings.
  2. \n
  3. Ensure that the Experimental translation API option is set to Enabled.
  4. \n
  5. Click on the Save button to apply the changes.
  6. \n
  7. The Translator AI modal should now be enabled and ready for use.
  8. \n
\n

For more information, please refer to the documentation.

\n

If the issue persists, please ensure that your browser is up to date and restart your browser.

\n

If you continue to experience issues after following the above steps, please open a support ticket with our team. We are here to help you resolve any problems and ensure a smooth translation experience.

\n
`);else W(`\n Important Notice:\n
    \n
  1. \n The Translator API is not functioning due to an insecure connection.\n
  2. \n
  3. \n Please switch to a secure connection (HTTPS) or add this URL to the list of insecure origins treated as secure by visiting \n \n chrome://flags/#unsafely-treat-insecure-origin-as-secure ${(0,f.$)({iconName:"copy"})}\n .\n Click on the URL to copy it, then open a new window and paste this URL to access the settings.\n
  4. \n
\n
`);else W('\n Important Notice:\n
    \n
  1. The Translator API, which leverages Chrome local AI models, is designed specifically for use with the Chrome browser.
  2. \n
  3. For comprehensive information about the Translator API, click here.
  4. \n
\n

Please ensure you are using the Chrome browser for optimal performance and compatibility.

\n
');else z('Please enter text in your selected setting to translate.')},[]);const ne=()=>{_(!1),V(!1),W(""),Y(""),z(""),M(""),Q([]),o&&o()},te=async e=>{const n=new p.A(Object.keys(c.A));if(await n.Status()){const t=await n.Detect(e);t?oe(t):ae(R,D)}else z('The Language Detector AI modal is currently not supported or disabled in your browser. Please enable it. For detailed instructions on how to enable the Language Detector AI modal in your Chrome browser, click here.')},oe=async e=>{if(O(e),e===R||Object.values(B).includes(e)){const n=e!==R?{...c.A,...L}:c.A;H(Object.keys(n).filter(n=>n!==e)),e===R&&U(Object.keys(n).filter(n=>n!==e)[0])}let n=R;R===e&&(n=Object.keys(c.A).filter(n=>n!==e)[0],U(n)),ae(n,e)},ae=async(n,t)=>{if(M(""),!Object.keys(c.A).includes(n))return void Y(`Translation to ${L[n].replace(" (Not Supported)","")} (${n}) is not available. Please select a supported target language from the dropdown menu.`);const o=C&&""!==C?C:e,a=new l.A(t,n,c.A[n],c.A[t]),r=await a.LanguagePairStatus();if(!0!==r&&r.hasOwnProperty("error")&&""!==r.error)return W(r.error),void Y("");if(""!==K&&(W(""),Y("")),!a||!a.hasOwnProperty("startTranslation"))return;X(!0);let i=document.createElement("div");i.innerHTML=o;const s=i.childNodes,d=async(e,n)=>{if(!(n>=e.length)){if(3===e[n].nodeType){const t=await a.startTranslation(e[n].textContent);e[n].textContent=t}else{const t=e[n].childNodes;await d(t,0)}await d(e,n+1)}};s.length>0&&await d(s,0);const p=i.innerHTML;i=null,M(p),X(!1)};return J?wp.element.createElement(T,{message:K,onClose:()=>{V(!1),_(!0)},Title:(0,r.__)("Chrome built-in translator AI","autopoly-ai-translation-for-polylang-pro")},$.length>0&&wp.element.createElement(k,{className:i.A.errorBtnGroup,buttons:$})):S&&S?wp.element.createElement(wp.element.Fragment,null,wp.element.createElement(x,{title:"Chrome built-in translator AI",onRequestClose:ne,className:i.A.modalContainer,overlayClassName:i.A.modalOverlay,isDismissible:!1,bodyOpenClassName:"body-class"},wp.element.createElement(g.A,{modalContainer:i.A.modalContainer}),wp.element.createElement("div",{className:i.A.modalCloseButton,onClick:ne},"×"),P&&""!==P?wp.element.createElement("div",{className:i.A.error},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:w.A.sanitize(P)}}),$.length>0&&wp.element.createElement(h.A,{className:i.A.errorBtnGroup,buttons:$})):wp.element.createElement("div",{className:i.A.modal},wp.element.createElement("div",{className:i.A.controls},wp.element.createElement("div",{className:i.A.langWrapper},wp.element.createElement(y.SelectControl,{label:"Source Language",value:D,options:[..."not-selected"!==D?[]:[{label:"Select Language",value:"not-selected"}],...Object.keys(c.A).filter(e=>e!==L).map(e=>({label:c.A[e],value:e}))],onChange:e=>oe(e),className:i.A.translatedContent}),wp.element.createElement(y.SelectControl,{label:"Target Language",value:R,options:B.map(e=>({label:c.A[e]||L[e],value:e})),onChange:e=>(async e=>{U(e),Object.keys(L).length>0&&Object.values(B).includes(Object.keys(L)[0])&&H(Object.keys(c.A).filter(e=>e!==D)),"not-selected"!==D&&ae(e,D)})(e),className:i.A.translatedContent})),K&&""!==K&&wp.element.createElement("div",{className:i.A.languageErrorButtonWrapper},wp.element.createElement("button",{className:i.A.languageErrorButton,onClick:()=>{V(!0),_(!1)}},(0,r.__)("Language Error Details","autopoly-ai-translation-for-polylang-pro"))),F&&""!==F&&wp.element.createElement("div",{className:i.A.error},wp.element.createElement("p",{dangerouslySetInnerHTML:{__html:w.A.sanitize(F)}})),q&&!K&&wp.element.createElement(E,{count:1,height:"70px",width:"100%",className:m.A["react-loading-skeleton"]}),I&&(!K||""===K)&&!q&&""!==I&&wp.element.createElement(wp.element.Fragment,null,wp.element.createElement("div",{className:i.A.translatedContent},wp.element.createElement("label",null,"Translated Text"),wp.element.createElement("p",null,I)),wp.element.createElement("div",{className:i.A.translatedButtonWrp},wp.element.createElement(A,{className:i.A.replaceBtn+" "+i.A.btnStyle,onClick:()=>{n(I),ne()}},"Replace"),wp.element.createElement(A,{className:i.A.copyBtn+" "+i.A.btnStyle,onClick:async e=>{var n;if(e.preventDefault(),I&&""!==I)try{if(null===(n=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===n?void 0:n.writeText)await navigator.clipboard.writeText(I);else{const e=document.createElement("textarea");e.value=I,document.body.appendChild(e),e.select(),document.execCommand&&document.execCommand("copy"),document.body.removeChild(e)}j("Copied"),setTimeout(()=>j("Copy"),1e3)}catch(e){console.error("Error copying text to clipboard:",e)}}},G),wp.element.createElement(A,{className:i.A.closeBtn+" "+i.A.btnStyle,onClick:ne},"Close"))))))):null})})();