var e=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 32 32" fill="currentColor" aria-hidden="true"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"/><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"/></svg>`,t=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 32 32" fill="currentColor" aria-hidden="true"><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"/></svg>`;function n(n){let r=document.createElement(`button`);r.type=`button`,r.className=`code-copy-btn`,r.title=`Copy code`,r.setAttribute(`aria-label`,`Copy code`),r.innerHTML=e;let i=null;return r.addEventListener(`mousedown`,e=>{e.preventDefault(),e.stopPropagation()}),r.addEventListener(`click`,async a=>{a.preventDefault(),a.stopPropagation();try{await navigator.clipboard.writeText(n())}catch{return}r.innerHTML=t,r.classList.add(`is-copied`),r.title=`Copied`,i&&clearTimeout(i),i=setTimeout(()=>{r.innerHTML=e,r.classList.remove(`is-copied`),r.title=`Copy code`},2e3)}),r}function r(e=`image-unavailable`){let t=document.createElement(`span`);t.className=e;let n=`http://www.w3.org/2000/svg`,r=document.createElementNS(n,`svg`);r.setAttribute(`viewBox`,`0 0 32 32`),r.setAttribute(`width`,`18`),r.setAttribute(`height`,`18`),r.setAttribute(`fill`,`currentColor`),r.setAttribute(`aria-hidden`,`true`);let i=document.createElementNS(n,`path`);i.setAttribute(`d`,`M16,30H8a2,2,0,0,1-2-2V4A2,2,0,0,1,8,2h10a1,1,0,0,1,.71.29l5,5A1,1,0,0,1,24,8v6H22V9H17a1,1,0,0,1-1-1V4H8V28h8Z`);let a=document.createElementNS(n,`path`);a.setAttribute(`d`,`M24.5,29A2.5,2.5,0,1,1,27,26.5,2.5,2.5,0,0,1,24.5,29Zm0-3.5a1,1,0,1,0,1,1A1,1,0,0,0,24.5,25.5Z`);let o=document.createElementNS(n,`path`);o.setAttribute(`d`,`M24.5,23a1,1,0,0,1-1-1V21a2.5,2.5,0,1,0-2.5-2.5,1,1,0,0,1-2,0A4.5,4.5,0,1,1,25,22.79V22A1,1,0,0,1,24.5,23Z`),r.append(i,a,o);let s=document.createElement(`span`);return s.className=`${e}-text`,s.textContent=`Original asset is no longer available`,t.append(r,s),t}export{n,r as t};