!function(){const n=()=>window.innerWidth<=786;let e=!1,t=!1;const i=()=>{const n=document.querySelector(".widget-trigger_btn"),e=document.querySelector(".widget-trigger_btn .content");n.classList.contains("active")?(e.innerHTML=a,n.classList.add("no-animation")):(n.classList.remove("no-animation"),e.innerHTML=s)},o=()=>{const n=document.querySelector("#container-0fd75e822b90"),e=document.querySelector("#content-0fd75e822b90");window.innerWidth<=786?(n&&!n.classList.contains("mobile")&&n.classList.add("mobile"),e&&!e.classList.contains("mobile")&&e.classList.add("mobile")):(n&&n.classList.contains("mobile")&&n.classList.remove("mobile"),e&&e.classList.contains("mobile")&&e.classList.remove("mobile"))};function d(){const n=window.innerWidth,e=document.getElementById("content-0fd75e822b90"),t=document.querySelector("#content-0fd75e822b90");n>768&&(e.style.width="400px",e.style.height="550px",t.contentWindow.postMessage("widget-minimized","*"))}const s='\n \n \n \n ',a='\n \n \n \n \n ',r="https://wanclouds.ai",c=document.currentScript.dataset.id,l=`\n \n
\n ${s}\n
\n \n `,g=`\n \n `,b=document.createElement("div");b.id="0fd75e822b90",b.innerHTML=`\n \n
\n \n
\n ${n()?l:g}\n
\n
\n `,document.body.appendChild(b),document.body.addEventListener("click",(o=>{const s=document.querySelector(".widget-trigger_btn"),a=document.querySelector("#action-0fd75e822b90"),r="button"===o.target.type,c=o.target;if(r&&o.target.matches(".widget-trigger_btn")||a.contains(c)){const o=document.querySelector("#content-0fd75e822b90");n()?e=!1:(e=!0,s.classList.toggle("active"),i(),o.classList.toggle("active"),t&&d()),e?o.contentWindow.postMessage("show-max_min_buttons","*"):o.contentWindow.postMessage("hide-max_min_buttons","*")}})),window.addEventListener("message",(n=>{"maximize-widget"===n.data?(t=!0,function(){const n=window.innerWidth,e=window.innerHeight,t=document.getElementById("content-0fd75e822b90"),i=document.querySelector("#content-0fd75e822b90");n>768&&(t.style.width=n-100+"px",t.style.height=e-250+"px",t.style.maxHeight=e-250+"px",i.contentWindow.postMessage("widget-maximized","*"))}()):"minimize-widget"===n.data&&(t=!1,d())})),o(),window.addEventListener("resize",d),window.addEventListener("resize",o),window.addEventListener("resize",(()=>{const n=window.innerWidth,e=document.querySelector("#content-0fd75e822b90");if(n<768)t=!1,e.classList.contains("active")&&e.classList.remove("active"),document.getElementById("action-0fd75e822b90").innerHTML=l;else if(!t&&(document.getElementById("action-0fd75e822b90").innerHTML=g,e.classList.contains("active"))){const n=document.querySelector(".widget-trigger_btn");"button"===n.type&&(n.classList.add("active"),i())}}))}();