PK
{const s=e.dataset.url||a.dataset.url||window.location.href;navigator.clipboard.writeText(s),e.classList.add("done"),setTimeout(()=>{e.classList.remove("done")},1e3)}),i==="print"&&e.addEventListener("click",()=>{window.print()}),i==="web-share"){const s={title:e.dataset.title||a.dataset.title||document.title,text:e.dataset.text||a.dataset.text||"",url:e.dataset.url||a.dataset.url||window.location.href};navigator.canShare&&navigator.canShare(s)?e.addEventListener("click",()=>{navigator.share(s)}):e.style.display="none"}if(Object.prototype.hasOwnProperty.call(o,i)){const s={url:encodeURIComponent(e.dataset.url||a.dataset.url||window.location.href),title:encodeURIComponent(e.dataset.title||a.dataset.title||document.title),media:encodeURIComponent(e.dataset.media||a.dataset.media||""),text:encodeURIComponent(e.dataset.text||a.dataset.text||""),via:encodeURIComponent(e.dataset.via||a.dataset.via||""),hashtags:encodeURIComponent(e.dataset.hashtags||a.dataset.hashtags||""),fbAppId:encodeURIComponent(e.dataset.fbAppId||a.dataset.fbAppId||""),s2fInstance:encodeURIComponent(e.dataset.s2fInstance||a.dataset.s2fInstance||"s2f.kytta.dev")},h=o[i](s);e.tagName.toLowerCase()==="a"?(e.setAttribute("href",h),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank")):e.addEventListener("click",$(h));break}}}},c=document.currentScript;return c&&c.hasAttribute("init")&&l(),r.init=l,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),r}({}); var Shareon = (function (r) { "use strict"; const networks = { facebook: t => `https://www.facebook.com/sharer/sharer.php?u=${t.url}`, linkedin: t => `https://www.linkedin.com/sharing/share-offsite/?url=${t.url}`, instagram: t => `https://www.instagram.com/?url=${t.url}`, telegram: t => `https://telegram.me/share/url?url=${t.url}${t.text ? `&text=${t.text}` : ""}`, whatsapp: t => `https://wa.me/?text=${t.title}%0D%0A${t.url}${t.text ? `%0D%0A%0D%0A${t.text}` : ""}` }; const openWin = url => () => { window.open(url, "_blank", "noopener,noreferrer"); }; const init = () => { const blocks = document.querySelectorAll(".shareon"); for (const block of blocks) { for (const el of block.children) { if (!el) continue; for (let n = 0; n < el.classList.length; n++) { const cls = el.classList.item(n); if (Object.prototype.hasOwnProperty.call(networks, cls)) { const s = { url: encodeURIComponent(el.dataset.url || block.dataset.url || window.location.href), title: encodeURIComponent(el.dataset.title || block.dataset.title || document.title), media: encodeURIComponent(el.dataset.media || block.dataset.media || ""), text: encodeURIComponent(el.dataset.text || block.dataset.text || "") }; const url = networks[cls](s); if (el.tagName.toLowerCase() === "a") { el.setAttribute("href", url); el.setAttribute("rel", "noopener noreferrer"); el.setAttribute("target", "_blank"); } else { el.addEventListener("click", openWin(url)); } break; } } } } }; const script = document.currentScript; if (script && script.hasAttribute("init")) init(); r.init = init; Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }); return r; })({});