diff --git a/assets/index-y2q1tLeP.js b/assets/index-6hrYAMUA.js similarity index 99% rename from assets/index-y2q1tLeP.js rename to assets/index-6hrYAMUA.js index dd551fe..f282b82 100644 --- a/assets/index-y2q1tLeP.js +++ b/assets/index-6hrYAMUA.js @@ -132,4 +132,4 @@ Error generating stack: `+i.message+` Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s0)return EA(e);if(n==="number"&&isNaN(e)===!1)return t.long?TA(e):kA(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function EA(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*PA;case"days":case"day":case"d":return n*ds;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cs;case"minutes":case"minute":case"mins":case"min":case"m":return n*us;case"seconds":case"second":case"secs":case"sec":case"s":return n*ls;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function kA(e){return e>=ds?Math.round(e/ds)+"d":e>=cs?Math.round(e/cs)+"h":e>=us?Math.round(e/us)+"m":e>=ls?Math.round(e/ls)+"s":e+"ms"}function TA(e){return da(e,ds,"day")||da(e,cs,"hour")||da(e,us,"minute")||da(e,ls,"second")||e+" ms"}function da(e,t,n){if(!(e=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function o(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var f=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(v){v!=="%%"&&(f++,v==="%c"&&(p=f))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}t.enable(a());function l(){try{return window.localStorage}catch{}}})(of,of.exports);var AA=of.exports,Mv=AA("jsonp"),LA=NA,DA=0;function IA(){}function NA(e,t,n){typeof t=="function"&&(n=t,t={}),t||(t={});var r=t.prefix||"__jp",o=t.name||r+DA++,i=t.param||"callback",s=t.timeout!=null?t.timeout:6e4,a=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head,u,c;s&&(c=setTimeout(function(){d(),n&&n(new Error("Timeout"))},s));function d(){u.parentNode&&u.parentNode.removeChild(u),window[o]=IA,c&&clearTimeout(c)}function f(){window[o]&&d()}return window[o]=function(p){Mv("jsonp got",p),d(),n&&n(null,p)},e+=(~e.indexOf("?")?"&":"?")+i+"="+a(o),e=e.replace("?&","?"),Mv('jsonp req "%s"',e),u=document.createElement("script"),u.src=e,l.parentNode.insertBefore(u,l),f}const Zr=fs(LA);var RA=Object.defineProperty,OA=Object.defineProperties,FA=Object.getOwnPropertyDescriptors,Al=Object.getOwnPropertySymbols,H3=Object.prototype.hasOwnProperty,G3=Object.prototype.propertyIsEnumerable,Av=(e,t,n)=>t in e?RA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))H3.call(t,n)&&Av(e,n,t[n]);if(Al)for(var n of Al(t))G3.call(t,n)&&Av(e,n,t[n]);return e},fu=(e,t)=>OA(e,FA(t)),pu=(e,t)=>{var n={};for(var r in e)H3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Al)for(var r of Al(e))t.indexOf(r)<0&&G3.call(e,r)&&(n[r]=e[r]);return n};function As(e){return n=>{var r=n,{bgStyle:o={},borderRadius:i=0,iconFillColor:s="white",round:a=!1,size:l=64}=r,u=pu(r,["bgStyle","borderRadius","iconFillColor","round","size"]);return $.jsxs("svg",fu(wt({viewBox:"0 0 64 64",width:l,height:l},u),{children:[a?$.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:o}):$.jsx("rect",{width:"64",height:"64",rx:i,ry:i,fill:e.color,style:o}),$.jsx("path",{d:e.path,fill:s})]}))}}const _A=As({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"}),jA=_A;function xe(e){const t=Object.entries(e).filter(([,n])=>n!=null).map(([n,r])=>`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`);return t.length>0?`?${t.join("&")}`:""}const BA=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",VA=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),zA=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});function KA(e,t,n){var r=t,{height:o,width:i}=r,s=pu(r,["height","width"]);const a=wt({height:o,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},s),l=window.open(e,"",Object.keys(a).map(u=>`${u}=${a[u]}`).join(", "));if(n){const u=window.setInterval(()=>{try{(l===null||l.closed)&&(window.clearInterval(u),n(l))}catch(c){console.error(c)}},1e3)}return l}function WA(e){var t=e,{beforeOnClick:n,children:r,className:o,disabled:i,disabledStyle:s={opacity:.6},forwardedRef:a,networkLink:l,networkName:u,onClick:c,onShareWindowClose:d,openShareDialogOnClick:f=!0,opts:p,resetButtonStyle:v=!0,style:b,url:w,windowHeight:x=400,windowPosition:g="windowCenter",windowWidth:y=550}=t,S=pu(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const k=async m=>{const L=l(w,p);if(!i){if(m.preventDefault(),n){const A=n();BA(A)&&await A}if(f){const A=wt({height:x,width:y},g==="windowCenter"?VA(y,x):zA(y,x));KA(L,A,d)}c&&c(m,L)}},M=U3("react-share__ShareButton",{"react-share__ShareButton--disabled":!!i,disabled:!!i},o),D=wt(wt(v?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},b),i&&s);return $.jsx("button",fu(wt({},S),{className:M,onClick:k,ref:a,style:D,children:r}))}function Re(e,t,n,r){function o(i,s){const a=n(i),l=wt({},i);return Object.keys(a).forEach(c=>{delete l[c]}),$.jsx(WA,fu(wt(wt({},r),l),{forwardedRef:s,networkName:e,networkLink:t,opts:n(i)}))}return o.displayName=`ShareButton-${e}`,h.forwardRef(o)}function UA(e,{subject:t,body:n,separator:r}){return"mailto:"+xe({subject:t,body:n?n+r+e:e})}const HA=Re("email",UA,e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}}),GA=HA,YA=As({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"}),XA=YA;function QA(e,{appId:t,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+xe({link:e,redirect_uri:n||e,app_id:t,to:r})}Re("facebookmessenger",QA,e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});class ZA extends Error{constructor(t){super(t),this.name="AssertionError"}}function Ae(e,t){if(!e)throw new ZA(t)}function qA(e,{hashtag:t}){return Ae(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+xe({u:e,hashtag:t})}const JA=Re("facebook",qA,e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),eL=JA;function tL(){const e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),h.useCallback(()=>e.current,[])}function nL(e){var t=e,{children:n=f=>f,className:r,getCount:o,url:i}=t,s=pu(t,["children","className","getCount","url"]);const a=tL(),[l,u]=h.useState(void 0),[c,d]=h.useState(!1);return h.useEffect(()=>{d(!0),o(i,f=>{a()&&(u(f),d(!1))})},[i]),$.jsx("span",fu(wt({className:U3("react-share__ShareCount",r)},s),{children:!c&&l!==void 0&&n(l)}))}function qr(e){const t=n=>$.jsx(nL,wt({getCount:e},n));return t.displayName=`ShareCount(${e.name})`,t}function rL(e,t){const n=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;Zr(n,(r,o)=>{t(!r&&o&&o.og_object&&o.og_object.engagement?o.og_object.engagement.count:void 0)})}qr(rL);function oL(e,{title:t}){return Ae(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}Re("hatena",oL,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function iL(e,t){Zr("https://bookmark.hatenaapis.com/count/entry"+xe({url:e}),(r,o)=>{t(o??void 0)})}qr(iL);function sL(e,{title:t,description:n}){return Ae(e,"instapaper.url"),"http://www.instapaper.com/hello2"+xe({url:e,title:t,description:n})}Re("instapaper",sL,e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function aL(e,{title:t}){return Ae(e,"line.url"),"https://social-plugins.line.me/lineit/share"+xe({url:e,text:t})}Re("line",aL,e=>({title:e.title}),{windowWidth:500,windowHeight:500});function lL(e,{title:t,summary:n,source:r}){return Ae(e,"linkedin.url"),"https://linkedin.com/shareArticle"+xe({url:e,mini:"true",title:t,summary:n,source:r})}Re("linkedin",lL,({title:e,summary:t,source:n})=>({title:e,summary:t,source:n}),{windowWidth:750,windowHeight:600});function uL(e,{title:t,description:n}){return Ae(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+xe({subject:t,event:n})}Re("livejournal",uL,e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function cL(e,{title:t,description:n,imageUrl:r}){return Ae(e,"mailru.url"),"https://connect.mail.ru/share"+xe({url:e,title:t,description:n,image_url:r})}Re("mailru",cL,e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function dL(e,{title:t,description:n,image:r}){return Ae(e,"ok.url"),"https://connect.ok.ru/offer"+xe({url:e,title:t,description:n,imageUrl:r})}Re("ok",dL,e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function fL(e,t){window.OK||(window.OK={Share:{count:function(i,s){var a,l;(l=(a=window.OK.callbacks)[i])==null||l.call(a,s)}},callbacks:[]});const n="https://connect.ok.ru/dk",r=window.OK.callbacks.length;return window.ODKL={updateCount(o,i){var s,a;const l=o===""?0:parseInt(o.replace("react-share-",""),10);(a=(s=window.OK.callbacks)[l])==null||a.call(s,i===""?void 0:parseInt(i,10))}},window.OK.callbacks.push(t),Zr(n+xe({"st.cmd":"extLike",uid:`react-share-${r}`,ref:e}))}qr(fL);function pL(e,{media:t,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(Ae(e,"pinterest.url"),Ae(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+xe({url:e,media:t,description:n}))}Re("pinterest",pL,e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function hL(e,t){Zr("https://api.pinterest.com/v1/urls/count.json"+xe({url:e}),(r,o)=>{t(o?o.count:void 0)})}qr(hL);function mL(e,{title:t}){return Ae(e,"pocket.url"),"https://getpocket.com/save"+xe({url:e,title:t})}Re("pocket",mL,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const gL=As({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),vL=gL;function yL(e,{title:t}){return Ae(e,"reddit.url"),"https://www.reddit.com/submit"+xe({url:e,title:t})}const bL=Re("reddit",yL,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),xL=bL;function wL(e,{title:t}){return Ae(e,"gab.url"),"https://gab.com/compose"+xe({url:e,text:t})}Re("gab",wL,e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function CL(e,t){const n=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;Zr(n,{param:"jsonp"},(r,o)=>{t(!r&&o&&o.data&&o.data.children.length>0&&o.data.children[0].data.score?o.data.children[0].data.score:void 0)})}qr(CL);function SL(e,{title:t}){return Ae(e,"telegram.url"),"https://telegram.me/share/url"+xe({url:e,text:t})}Re("telegram",SL,e=>({title:e.title}),{windowWidth:550,windowHeight:400});function PL(e,{title:t,caption:n,tags:r,posttype:o}){return Ae(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+xe({canonicalUrl:e,title:t,caption:n,tags:r,posttype:o})}Re("tumblr",PL,e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function $L(e,t){return Zr("https://api.tumblr.com/v2/share/stats"+xe({url:e}),(r,o)=>{t(!r&&o&&o.response?o.response.note_count:void 0)})}qr($L);function EL(e,{title:t,via:n,hashtags:r=[],related:o=[]}){return Ae(e,"twitter.url"),Ae(Array.isArray(r),"twitter.hashtags is not an array"),Ae(Array.isArray(o),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+xe({url:e,text:t,via:n,hashtags:r.length>0?r.join(","):void 0,related:o.length>0?o.join(","):void 0})}const kL=Re("twitter",EL,e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),TL=kL;function ML(e,{title:t,separator:n}){return Ae(e,"viber.url"),"viber://forward"+xe({text:t?t+n+e:e})}Re("viber",ML,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function AL(e,{title:t,image:n,noParse:r,noVkLinks:o}){return Ae(e,"vk.url"),"https://vk.com/share.php"+xe({url:e,title:t,image:n,noparse:r?1:0,no_vk_links:o?1:0})}Re("vk",AL,e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function LL(e,t){window.VK||(window.VK={}),window.VK.Share={count:(o,i)=>{var s,a;return(a=(s=window.VK.callbacks)==null?void 0:s[o])==null?void 0:a.call(s,i)}},window.VK.callbacks=[];const n="https://vk.com/share.php",r=window.VK.callbacks.length;return window.VK.callbacks.push(t),Zr(n+xe({act:"count",index:r,url:e}))}qr(LL);function DL(e,{title:t,image:n}){return Ae(e,"weibo.url"),"http://service.weibo.com/share/share.php"+xe({url:e,title:t,pic:n})}Re("weibo",DL,e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});const IL=As({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"}),NL=IL;function RL(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function OL(e,{title:t,separator:n}){return Ae(e,"whatsapp.url"),"https://"+(RL()?"api":"web")+".whatsapp.com/send"+xe({text:t?t+n+e:e})}const FL=Re("whatsapp",OL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400}),_L=FL;function jL(e,{quote:t,hashtag:n}){return Ae(e,"workplace.url"),"https://work.facebook.com/sharer.php"+xe({u:e,quote:t,hashtag:n})}Re("workplace",jL,e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});const BL=As({color:"#000000",networkName:"X",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"}),VL=BL;function zL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6a2 2 0 01-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3a2 2 0 012 2z"}}]})(e)}function KL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function WL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}}]})(e)}function UL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"}},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"}}]})(e)}function HL(){const e="250px",t="text-sm text-default-500 pointer-events-none flex-shrink-0",n="http://github.com",r="GitHub",[o,i]=ee.useState({}),s=l=>{i(u=>({...u,[l]:!u[l]}))},a=(l,u)=>{const c=document.createElement("a");c.href=l,c.download=u||"download",c.click()};return $.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"More Arts"}),$.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:Object.values(JM).map((l,u)=>$.jsx("div",{className:"flex gap-4 flex-wrap",children:l.map((c,d)=>$.jsxs(_8,{shadow:"sm",isPressable:!0,onPress:()=>console.log("item pressed"),className:"relative overflow-hidden inline-block group",style:{margin:"0 0 1.5em",width:e,height:"100%"},children:[$.jsx(O8,{className:"absolute z-10 top-1 flex-col !items-start opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:$.jsxs("div",{className:"flex justify-between items-center w-full",children:[$.jsx("span",{className:"text-sm font-medium",children:"Header Tumblr"}),$.jsx(Ro,{className:o[d]?"bg-black text-white border-default-200":"",color:"danger",radius:"full",size:"sm",variant:o[d]?"bordered":"solid",onPress:()=>s(d),children:o[d]?"Saved":"Save"})]})}),$.jsx(N8,{className:"p-0",children:$.jsx("div",{className:"relative aspect-w-1 aspect-h-1 overflow-hidden",children:$.jsx(Kp,{removeWrapper:!0,shadow:"sm",radius:"lg",alt:c.name,className:"object-cover w-full h-full",src:c.img})})}),$.jsx(R8,{className:"justify-between before:bg-white/10 overflow-hidden py-1 absolute before:rounded-sm rounded-small bottom-1 w-[calc(100%_-_5px)] shadow-small ml-1 z-10 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:$.jsxs("div",{className:"flex gap-4 items-center",children:[$.jsxs(qd,{backdrop:"blur",children:[$.jsx(Zd,{children:$.jsx(Ro,{size:"sm",className:"p-1",children:$.jsx(zL,{className:`${t} text-sm`})})}),$.jsxs(Qd,{variant:"faded","aria-label":"Static Actions",children:[$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(eL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(XA,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Facebook"})]})},"facebook"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(_L,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(NL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Whatsapp"})]})},"whatsapp"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(TL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(VL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Twitter"})]})},"x"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(xL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(vL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Reddit"})]})},"reddit"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(GA,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(jA,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Email "})]})},"email")]})]}),$.jsxs(qd,{children:[$.jsx(Zd,{children:$.jsx(Ro,{size:"sm",className:"p-1",children:$.jsx(WL,{className:`${t} text-sm`})})}),$.jsxs(Qd,{variant:"faded","aria-label":"Dropdown menu with icons",children:[$.jsx(ft,{onClick:()=>a(c.img,c.name),startContent:$.jsx(UL,{className:t}),children:"Download image"}),$.jsx(ft,{className:"text-danger",startContent:$.jsx(KL,{className:g$(t,"text-danger")}),children:"Report"},"copy")]})]})]})})]},d))},u))})]})}const GL=({category:e})=>$.jsx(Sw,{content:e.tooltip,placement:"top",showArrow:!0,children:$.jsxs("div",{className:"flex flex-col items-center",children:[$.jsx(Kp,{src:e.imageUrl,alt:e.name,isZoomed:!0,className:"w-24 h-24"}),$.jsx("span",{className:"mt-1 text-sm",children:e.name})]})}),YL=e=>{const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t},XL=()=>{const[e,t]=h.useState([]);h.useEffect(()=>{const r=YL([...Xp,...Zp,...Qp,...uu]);t(r)},[]);const n=e.slice(0,7);return $.jsxs("div",{className:"p-6",children:[$.jsx("header",{className:"text-2xl font-bold",children:"ArtistryHub."}),$.jsx("p",{className:"text-gray-700",children:"Explore our world of creative designs."}),$.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"Categories"}),$.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:CA.map(r=>$.jsx(GL,{category:r},r.name))})]}),$.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"Top Picks"}),$.jsx("br",{}),$.jsx("div",{className:"top-picks-container flex overflow-x-auto",children:n.map(r=>$.jsx(Sw,{content:"View "+r.name,placement:"bottom",showArrow:!0,children:$.jsx("div",{className:"flex flex-col items-center mr-3",children:$.jsx("div",{className:"w-48 h-48 rounded-lg overflow-hidden bg-white shadow-md border border-gray-300",children:$.jsx("img",{src:r.img,alt:r.name,className:"object-cover w-full h-full"})})})},r.name))})]}),$.jsx("div",{className:"mt-5",children:$.jsx(HL,{})})]})},QL=()=>$.jsx("div",{className:"p-6",children:$.jsx("header",{className:"text-2xl font-bold",children:"Test"})}),ZL=()=>$.jsx("div",{className:"",children:$.jsx("footer",{className:""})});function qL(){return $.jsxs("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100 overflow-hidden",children:[$.jsxs(AM,{children:[$.jsx(vA,{}),$.jsxs(PM,{children:[$.jsx(tf,{exact:!0,path:"/artistry-hub/",element:$.jsx(XL,{})}),$.jsx(tf,{exact:!0,path:"/test",element:$.jsx(QL,{})})]})]}),$.jsx(ZL,{})]})}wc.createRoot(document.getElementById("root")).render($.jsx(ee.StrictMode,{children:$.jsx(m$,{children:$.jsx(qL,{})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s0)return EA(e);if(n==="number"&&isNaN(e)===!1)return t.long?TA(e):kA(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function EA(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*PA;case"days":case"day":case"d":return n*ds;case"hours":case"hour":case"hrs":case"hr":case"h":return n*cs;case"minutes":case"minute":case"mins":case"min":case"m":return n*us;case"seconds":case"second":case"secs":case"sec":case"s":return n*ls;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function kA(e){return e>=ds?Math.round(e/ds)+"d":e>=cs?Math.round(e/cs)+"h":e>=us?Math.round(e/us)+"m":e>=ls?Math.round(e/ls)+"s":e+"ms"}function TA(e){return da(e,ds,"day")||da(e,cs,"hour")||da(e,us,"minute")||da(e,ls,"second")||e+" ms"}function da(e,t,n){if(!(e=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function o(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var f=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(v){v!=="%%"&&(f++,v==="%c"&&(p=f))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=n.DEBUG),u}t.enable(a());function l(){try{return window.localStorage}catch{}}})(of,of.exports);var AA=of.exports,Mv=AA("jsonp"),LA=NA,DA=0;function IA(){}function NA(e,t,n){typeof t=="function"&&(n=t,t={}),t||(t={});var r=t.prefix||"__jp",o=t.name||r+DA++,i=t.param||"callback",s=t.timeout!=null?t.timeout:6e4,a=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head,u,c;s&&(c=setTimeout(function(){d(),n&&n(new Error("Timeout"))},s));function d(){u.parentNode&&u.parentNode.removeChild(u),window[o]=IA,c&&clearTimeout(c)}function f(){window[o]&&d()}return window[o]=function(p){Mv("jsonp got",p),d(),n&&n(null,p)},e+=(~e.indexOf("?")?"&":"?")+i+"="+a(o),e=e.replace("?&","?"),Mv('jsonp req "%s"',e),u=document.createElement("script"),u.src=e,l.parentNode.insertBefore(u,l),f}const Zr=fs(LA);var RA=Object.defineProperty,OA=Object.defineProperties,FA=Object.getOwnPropertyDescriptors,Al=Object.getOwnPropertySymbols,H3=Object.prototype.hasOwnProperty,G3=Object.prototype.propertyIsEnumerable,Av=(e,t,n)=>t in e?RA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))H3.call(t,n)&&Av(e,n,t[n]);if(Al)for(var n of Al(t))G3.call(t,n)&&Av(e,n,t[n]);return e},fu=(e,t)=>OA(e,FA(t)),pu=(e,t)=>{var n={};for(var r in e)H3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Al)for(var r of Al(e))t.indexOf(r)<0&&G3.call(e,r)&&(n[r]=e[r]);return n};function As(e){return n=>{var r=n,{bgStyle:o={},borderRadius:i=0,iconFillColor:s="white",round:a=!1,size:l=64}=r,u=pu(r,["bgStyle","borderRadius","iconFillColor","round","size"]);return $.jsxs("svg",fu(wt({viewBox:"0 0 64 64",width:l,height:l},u),{children:[a?$.jsx("circle",{cx:"32",cy:"32",r:"32",fill:e.color,style:o}):$.jsx("rect",{width:"64",height:"64",rx:i,ry:i,fill:e.color,style:o}),$.jsx("path",{d:e.path,fill:s})]}))}}const _A=As({color:"#7f7f7f",networkName:"email",path:"M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z"}),jA=_A;function xe(e){const t=Object.entries(e).filter(([,n])=>n!=null).map(([n,r])=>`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`);return t.length>0?`?${t.join("&")}`:""}const BA=e=>!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function",VA=(e,t)=>({left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}),zA=(e,t)=>({top:(window.screen.height-t)/2,left:(window.screen.width-e)/2});function KA(e,t,n){var r=t,{height:o,width:i}=r,s=pu(r,["height","width"]);const a=wt({height:o,width:i,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},s),l=window.open(e,"",Object.keys(a).map(u=>`${u}=${a[u]}`).join(", "));if(n){const u=window.setInterval(()=>{try{(l===null||l.closed)&&(window.clearInterval(u),n(l))}catch(c){console.error(c)}},1e3)}return l}function WA(e){var t=e,{beforeOnClick:n,children:r,className:o,disabled:i,disabledStyle:s={opacity:.6},forwardedRef:a,networkLink:l,networkName:u,onClick:c,onShareWindowClose:d,openShareDialogOnClick:f=!0,opts:p,resetButtonStyle:v=!0,style:b,url:w,windowHeight:x=400,windowPosition:g="windowCenter",windowWidth:y=550}=t,S=pu(t,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onClick","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"]);const k=async m=>{const L=l(w,p);if(!i){if(m.preventDefault(),n){const A=n();BA(A)&&await A}if(f){const A=wt({height:x,width:y},g==="windowCenter"?VA(y,x):zA(y,x));KA(L,A,d)}c&&c(m,L)}},M=U3("react-share__ShareButton",{"react-share__ShareButton--disabled":!!i,disabled:!!i},o),D=wt(wt(v?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",cursor:"pointer"}:{},b),i&&s);return $.jsx("button",fu(wt({},S),{className:M,onClick:k,ref:a,style:D,children:r}))}function Re(e,t,n,r){function o(i,s){const a=n(i),l=wt({},i);return Object.keys(a).forEach(c=>{delete l[c]}),$.jsx(WA,fu(wt(wt({},r),l),{forwardedRef:s,networkName:e,networkLink:t,opts:n(i)}))}return o.displayName=`ShareButton-${e}`,h.forwardRef(o)}function UA(e,{subject:t,body:n,separator:r}){return"mailto:"+xe({subject:t,body:n?n+r+e:e})}const HA=Re("email",UA,e=>({subject:e.subject,body:e.body,separator:e.separator||" "}),{openShareDialogOnClick:!1,onClick:(e,t)=>{window.location.href=t}}),GA=HA,YA=As({color:"#0965FE",networkName:"facebook",path:"M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z"}),XA=YA;function QA(e,{appId:t,redirectUri:n,to:r}){return"https://www.facebook.com/dialog/send"+xe({link:e,redirect_uri:n||e,app_id:t,to:r})}Re("facebookmessenger",QA,e=>({appId:e.appId,redirectUri:e.redirectUri,to:e.to}),{windowWidth:1e3,windowHeight:820});class ZA extends Error{constructor(t){super(t),this.name="AssertionError"}}function Ae(e,t){if(!e)throw new ZA(t)}function qA(e,{hashtag:t}){return Ae(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+xe({u:e,hashtag:t})}const JA=Re("facebook",qA,e=>({hashtag:e.hashtag}),{windowWidth:550,windowHeight:400}),eL=JA;function tL(){const e=h.useRef(!1);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),h.useCallback(()=>e.current,[])}function nL(e){var t=e,{children:n=f=>f,className:r,getCount:o,url:i}=t,s=pu(t,["children","className","getCount","url"]);const a=tL(),[l,u]=h.useState(void 0),[c,d]=h.useState(!1);return h.useEffect(()=>{d(!0),o(i,f=>{a()&&(u(f),d(!1))})},[i]),$.jsx("span",fu(wt({className:U3("react-share__ShareCount",r)},s),{children:!c&&l!==void 0&&n(l)}))}function qr(e){const t=n=>$.jsx(nL,wt({getCount:e},n));return t.displayName=`ShareCount(${e.name})`,t}function rL(e,t){const n=`https://graph.facebook.com/?id=${e}&fields=og_object{engagement}`;Zr(n,(r,o)=>{t(!r&&o&&o.og_object&&o.og_object.engagement?o.og_object.engagement.count:void 0)})}qr(rL);function oL(e,{title:t}){return Ae(e,"hatena.url"),`http://b.hatena.ne.jp/add?mode=confirm&url=${e}&title=${t}`}Re("hatena",oL,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"});function iL(e,t){Zr("https://bookmark.hatenaapis.com/count/entry"+xe({url:e}),(r,o)=>{t(o??void 0)})}qr(iL);function sL(e,{title:t,description:n}){return Ae(e,"instapaper.url"),"http://www.instapaper.com/hello2"+xe({url:e,title:t,description:n})}Re("instapaper",sL,e=>({title:e.title,description:e.description}),{windowWidth:500,windowHeight:500,windowPosition:"windowCenter"});function aL(e,{title:t}){return Ae(e,"line.url"),"https://social-plugins.line.me/lineit/share"+xe({url:e,text:t})}Re("line",aL,e=>({title:e.title}),{windowWidth:500,windowHeight:500});function lL(e,{title:t,summary:n,source:r}){return Ae(e,"linkedin.url"),"https://linkedin.com/shareArticle"+xe({url:e,mini:"true",title:t,summary:n,source:r})}Re("linkedin",lL,({title:e,summary:t,source:n})=>({title:e,summary:t,source:n}),{windowWidth:750,windowHeight:600});function uL(e,{title:t,description:n}){return Ae(e,"livejournal.url"),"https://www.livejournal.com/update.bml"+xe({subject:t,event:n})}Re("livejournal",uL,e=>({title:e.title,description:e.description}),{windowWidth:660,windowHeight:460});function cL(e,{title:t,description:n,imageUrl:r}){return Ae(e,"mailru.url"),"https://connect.mail.ru/share"+xe({url:e,title:t,description:n,image_url:r})}Re("mailru",cL,e=>({title:e.title,description:e.description,imageUrl:e.imageUrl}),{windowWidth:660,windowHeight:460});function dL(e,{title:t,description:n,image:r}){return Ae(e,"ok.url"),"https://connect.ok.ru/offer"+xe({url:e,title:t,description:n,imageUrl:r})}Re("ok",dL,e=>({title:e.title,description:e.description,image:e.image}),{windowWidth:588,windowHeight:480,windowPosition:"screenCenter"});function fL(e,t){window.OK||(window.OK={Share:{count:function(i,s){var a,l;(l=(a=window.OK.callbacks)[i])==null||l.call(a,s)}},callbacks:[]});const n="https://connect.ok.ru/dk",r=window.OK.callbacks.length;return window.ODKL={updateCount(o,i){var s,a;const l=o===""?0:parseInt(o.replace("react-share-",""),10);(a=(s=window.OK.callbacks)[l])==null||a.call(s,i===""?void 0:parseInt(i,10))}},window.OK.callbacks.push(t),Zr(n+xe({"st.cmd":"extLike",uid:`react-share-${r}`,ref:e}))}qr(fL);function pL(e,{media:t,description:n,pinId:r}){return r?`https://pinterest.com/pin/${r}/repin/x/`:(Ae(e,"pinterest.url"),Ae(t,"pinterest.media"),"https://pinterest.com/pin/create/button/"+xe({url:e,media:t,description:n}))}Re("pinterest",pL,e=>({media:e.media,description:e.description,pinId:e.pinId}),{windowWidth:1e3,windowHeight:730});function hL(e,t){Zr("https://api.pinterest.com/v1/urls/count.json"+xe({url:e}),(r,o)=>{t(o?o.count:void 0)})}qr(hL);function mL(e,{title:t}){return Ae(e,"pocket.url"),"https://getpocket.com/save"+xe({url:e,title:t})}Re("pocket",mL,e=>({title:e.title}),{windowWidth:500,windowHeight:500});const gL=As({color:"#FF5700",networkName:"reddit",path:"M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344"}),vL=gL;function yL(e,{title:t}){return Ae(e,"reddit.url"),"https://www.reddit.com/submit"+xe({url:e,title:t})}const bL=Re("reddit",yL,e=>({title:e.title}),{windowWidth:660,windowHeight:460,windowPosition:"windowCenter"}),xL=bL;function wL(e,{title:t}){return Ae(e,"gab.url"),"https://gab.com/compose"+xe({url:e,text:t})}Re("gab",wL,e=>({title:e.title}),{windowWidth:660,windowHeight:640,windowPosition:"windowCenter"});function CL(e,t){const n=`https://www.reddit.com/api/info.json?limit=1&url=${e}`;Zr(n,{param:"jsonp"},(r,o)=>{t(!r&&o&&o.data&&o.data.children.length>0&&o.data.children[0].data.score?o.data.children[0].data.score:void 0)})}qr(CL);function SL(e,{title:t}){return Ae(e,"telegram.url"),"https://telegram.me/share/url"+xe({url:e,text:t})}Re("telegram",SL,e=>({title:e.title}),{windowWidth:550,windowHeight:400});function PL(e,{title:t,caption:n,tags:r,posttype:o}){return Ae(e,"tumblr.url"),"https://www.tumblr.com/widgets/share/tool"+xe({canonicalUrl:e,title:t,caption:n,tags:r,posttype:o})}Re("tumblr",PL,e=>({title:e.title,tags:(e.tags||[]).join(","),caption:e.caption,posttype:e.posttype||"link"}),{windowWidth:660,windowHeight:460});function $L(e,t){return Zr("https://api.tumblr.com/v2/share/stats"+xe({url:e}),(r,o)=>{t(!r&&o&&o.response?o.response.note_count:void 0)})}qr($L);function EL(e,{title:t,via:n,hashtags:r=[],related:o=[]}){return Ae(e,"twitter.url"),Ae(Array.isArray(r),"twitter.hashtags is not an array"),Ae(Array.isArray(o),"twitter.related is not an array"),"https://twitter.com/intent/tweet"+xe({url:e,text:t,via:n,hashtags:r.length>0?r.join(","):void 0,related:o.length>0?o.join(","):void 0})}const kL=Re("twitter",EL,e=>({hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}),{windowWidth:550,windowHeight:400}),TL=kL;function ML(e,{title:t,separator:n}){return Ae(e,"viber.url"),"viber://forward"+xe({text:t?t+n+e:e})}Re("viber",ML,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:660,windowHeight:460});function AL(e,{title:t,image:n,noParse:r,noVkLinks:o}){return Ae(e,"vk.url"),"https://vk.com/share.php"+xe({url:e,title:t,image:n,noparse:r?1:0,no_vk_links:o?1:0})}Re("vk",AL,e=>({title:e.title,image:e.image,noParse:e.noParse,noVkLinks:e.noVkLinks}),{windowWidth:660,windowHeight:460});function LL(e,t){window.VK||(window.VK={}),window.VK.Share={count:(o,i)=>{var s,a;return(a=(s=window.VK.callbacks)==null?void 0:s[o])==null?void 0:a.call(s,i)}},window.VK.callbacks=[];const n="https://vk.com/share.php",r=window.VK.callbacks.length;return window.VK.callbacks.push(t),Zr(n+xe({act:"count",index:r,url:e}))}qr(LL);function DL(e,{title:t,image:n}){return Ae(e,"weibo.url"),"http://service.weibo.com/share/share.php"+xe({url:e,title:t,pic:n})}Re("weibo",DL,e=>({title:e.title,image:e.image}),{windowWidth:660,windowHeight:550,windowPosition:"screenCenter"});const IL=As({color:"#25D366",networkName:"whatsapp",path:"m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915"}),NL=IL;function RL(){return/(android|iphone|ipad|mobile)/i.test(navigator.userAgent)}function OL(e,{title:t,separator:n}){return Ae(e,"whatsapp.url"),"https://"+(RL()?"api":"web")+".whatsapp.com/send"+xe({text:t?t+n+e:e})}const FL=Re("whatsapp",OL,e=>({title:e.title,separator:e.separator||" "}),{windowWidth:550,windowHeight:400}),_L=FL;function jL(e,{quote:t,hashtag:n}){return Ae(e,"workplace.url"),"https://work.facebook.com/sharer.php"+xe({u:e,quote:t,hashtag:n})}Re("workplace",jL,e=>({quote:e.quote,hashtag:e.hashtag}),{windowWidth:550,windowHeight:400});const BL=As({color:"#000000",networkName:"X",path:"M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z"}),VL=BL;function zL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-.9 2-2 2H6a2 2 0 01-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3a2 2 0 012 2z"}}]})(e)}function KL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z"}},{tag:"circle",attr:{cx:"12",cy:"16",r:"1"}},{tag:"path",attr:{d:"M11 7h2v7h-2z"}}]})(e)}function WL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}},{tag:"path",attr:{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}}]})(e)}function UL(e){return Ms({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4.75 17.25a.75.75 0 0 1 .75.75v2.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V18a.75.75 0 0 1 1.5 0v2.25A1.75 1.75 0 0 1 18.25 22H5.75A1.75 1.75 0 0 1 4 20.25V18a.75.75 0 0 1 .75-.75Z"}},{tag:"path",attr:{d:"M5.22 9.97a.749.749 0 0 1 1.06 0l4.97 4.969V2.75a.75.75 0 0 1 1.5 0v12.189l4.97-4.969a.749.749 0 1 1 1.06 1.06l-6.25 6.25a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06Z"}}]})(e)}function HL(){const e="250px",t="text-sm text-default-500 pointer-events-none flex-shrink-0",n="http://github.com",r="GitHub",[o,i]=ee.useState({}),s=l=>{i(u=>({...u,[l]:!u[l]}))},a=(l,u)=>{const c=document.createElement("a");c.href=l,c.download=u||"download",c.click()};return $.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"More Arts"}),$.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:Object.values(JM).map((l,u)=>$.jsx("div",{className:"flex gap-4 flex-wrap",children:l.map((c,d)=>$.jsxs(_8,{shadow:"sm",isPressable:!0,onPress:()=>console.log("item pressed"),className:"relative overflow-hidden inline-block group",style:{margin:"0 0 1.5em",width:e,height:"100%"},children:[$.jsx(O8,{className:"absolute z-10 top-1 flex-col !items-start opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:$.jsxs("div",{className:"flex justify-between items-center w-full",children:[$.jsx("span",{className:"text-sm font-medium",children:"Header Tumblr"}),$.jsx(Ro,{className:o[d]?"bg-black text-white border-default-200":"",color:"danger",radius:"full",size:"sm",variant:o[d]?"bordered":"solid",onPress:()=>s(d),children:o[d]?"Saved":"Save"})]})}),$.jsx(N8,{className:"p-0",children:$.jsx("div",{className:"relative aspect-w-1 aspect-h-1 overflow-hidden",children:$.jsx(Kp,{removeWrapper:!0,shadow:"sm",radius:"lg",alt:c.name,className:"object-cover w-full h-full",src:c.img})})}),$.jsx(R8,{className:"justify-between before:bg-white/10 overflow-hidden py-1 absolute before:rounded-sm rounded-small bottom-1 w-[calc(100%_-_5px)] shadow-small ml-1 z-10 opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:$.jsxs("div",{className:"flex gap-4 items-center",children:[$.jsxs(qd,{backdrop:"blur",children:[$.jsx(Zd,{children:$.jsx(Ro,{size:"sm",className:"p-1",children:$.jsx(zL,{className:`${t} text-sm`})})}),$.jsxs(Qd,{variant:"faded","aria-label":"Static Actions",children:[$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(eL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(XA,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Facebook"})]})},"facebook"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(_L,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(NL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Whatsapp"})]})},"whatsapp"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(TL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(VL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Twitter"})]})},"x"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(xL,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(vL,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Reddit"})]})},"reddit"),$.jsx(ft,{className:"cursor-pointer",children:$.jsxs(GA,{url:n,title:r,className:"Demo__some-network__share-button flex items-center",children:[$.jsx(jA,{size:32,round:!0}),$.jsx("span",{className:"ml-2",children:"Email "})]})},"email")]})]}),$.jsxs(qd,{children:[$.jsx(Zd,{children:$.jsx(Ro,{size:"sm",className:"p-1",children:$.jsx(WL,{className:`${t} text-sm`})})}),$.jsxs(Qd,{variant:"faded","aria-label":"Dropdown menu with icons",children:[$.jsx(ft,{onClick:()=>a(c.img,c.name),startContent:$.jsx(UL,{className:t}),children:"Download image"}),$.jsx(ft,{className:"text-danger",startContent:$.jsx(KL,{className:g$(t,"text-danger")}),children:"Report"},"copy")]})]})]})})]},d))},u))})]})}const GL=({category:e})=>$.jsx(Sw,{content:e.tooltip,placement:"top",showArrow:!0,children:$.jsxs("div",{className:"flex flex-col items-center",children:[$.jsx(Kp,{src:e.imageUrl,alt:e.name,isZoomed:!0,className:"w-24 h-24"}),$.jsx("span",{className:"mt-1 text-sm",children:e.name})]})}),YL=e=>{const t=[...e];for(let n=t.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[t[n],t[r]]=[t[r],t[n]]}return t},XL=()=>{const[e,t]=h.useState([]);h.useEffect(()=>{const r=YL([...Xp,...Zp,...Qp,...uu]);t(r)},[]);const n=e.slice(0,7);return $.jsxs("div",{className:"p-6",children:[$.jsx("header",{className:"text-2xl font-bold",children:"ArtistryHub."}),$.jsx("p",{className:"text-gray-700",children:"Explore our world of creative designs."}),$.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"Categories"}),$.jsx("div",{className:"flex flex-wrap justify-start items-center gap-4 mt-4",children:CA.map(r=>$.jsx(GL,{category:r},r.name))})]}),$.jsxs("div",{className:"mt-5",children:[$.jsx("h2",{className:"text-2xl font-bold",children:"Top Picks"}),$.jsx("br",{}),$.jsx("div",{className:"top-picks-container flex overflow-x-auto",children:n.map(r=>$.jsx(Sw,{content:"View "+r.name,placement:"bottom",showArrow:!0,children:$.jsx("div",{className:"flex flex-col items-center mr-3",children:$.jsx("div",{className:"w-48 h-48 rounded-lg overflow-hidden bg-white shadow-md border border-gray-300",children:$.jsx("img",{src:r.img,alt:r.name,className:"object-cover w-full h-full"})})})},r.name))})]}),$.jsx("div",{className:"mt-5",children:$.jsx(HL,{})})]})},QL=()=>$.jsx("div",{className:"p-6",children:$.jsx("header",{className:"text-2xl font-bold",children:"Test"})}),ZL=()=>$.jsx("div",{className:"",children:$.jsx("footer",{className:""})});function qL(){return $.jsxs("div",{className:"flex flex-col justify-start items-start min-h-screen bg-gray-100",children:[$.jsxs(AM,{children:[$.jsx(vA,{}),$.jsxs(PM,{children:[$.jsx(tf,{exact:!0,path:"/artistry-hub/",element:$.jsx(XL,{})}),$.jsx(tf,{exact:!0,path:"/test",element:$.jsx(QL,{})})]})]}),$.jsx(ZL,{})]})}wc.createRoot(document.getElementById("root")).render($.jsx(ee.StrictMode,{children:$.jsx(m$,{children:$.jsx(qL,{})})})); diff --git a/index.html b/index.html index 72e40f0..2bbd1af 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ ArtistryHub - +