티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“profile”],{6923:(e,t,n)=>{n.d(t,{KJ:()=>o,X3:()=>i,g5:()=>a});var r=n(56038);let i=void 0===r.XC,o=!i;function a(){return!!i||!r.XC||!!(r.XC.querySelector(‘react-app[data-ssr=”true”]’)||r.XC.querySelector(‘react-partial[data-ssr=”true”][partial-name=”repos-overview”]’))}},21067:(e,t,n)=>{let r;function i(){if(!r)throw Error(“Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.”);return r}function o(){return r?.locale??”en-US”}function a(){return!!i().login}function s(){return i().login}n.d(t,{JK:()=>o,M3:()=>a,_$:()=>i,cj:()=>s}),!function(){if(“undefined”!=typeof document){let e=document.getElementById(“client-env”);if(e)try{r=JSON.parse(e.textContent||””)}catch(e){console.error(“Error parsing client-env”,e)}}}()},23497:(e,t,n)=>{var r=n(50467),i=n(31635),o=n(39595),a=n(97797),s=n(53627);(0,a.on)(“toggle”,”.js-achievement-card-details”,function(e){let t=e.currentTarget,n=t.getAttribute(“data-achievement-slug”),r=new URL(window.location.href,window.location.origin),i=new URLSearchParams(r.search);t.hasAttribute(“open”)&&n?i.set(“achievement”,n):i.delete(“achievement”),r.search=i.toString(),(0,s.kd)(r.toString())},{capture:!0});let l=class AchievementBadgeFlipElement extends HTMLElement{connectedCallback(){if(this.tierCount<=1||!this.animate)return;let e=this.animate([{transform:"rotateY(0deg)"},{transform:`rotateY(${this.maxRotation}deg)`}],{duration:this.duration,easing:"cubic-bezier(0, 0, 0.25, 1)"});this.animations.set(this,e),this.createTierAnimations()||new MutationObserver((e,t)=>{this.createTierAnimations()&&t.disconnect()}).observe(this,{childList:!0})}get duration(){return 500*this.tierCount}get maxRotation(){return 180*this.tierCount}createTierAnimations(){for(let e of this.tiers)this.ensureTierAnimation(e);return this.tiers.length>=this.tierCount}ensureTierAnimation(e){if(this.animations.has(e))return;let t=this.tiers.indexOf(e);if(t<0)return;let n=this.BADGE_SIDE_KEYFRAMES[this.tierCount];if(!n)return;let r=this.tierCount%2==1,i=n.map((e,i)=>{let o={offset:e,opacity:+(i===t||i===t+1||0===t&&i===this.tierCount),easing:”step-start”};if(r&&0===t){let e=180*(i===n.length-1);o.transform=`rotateY(${e}deg)`}return o}),o=e.animate(i,{duration:this.duration});this.animations.set(e,o)}flip(){for(let e of this.animations.values())if(“running”===e.playState)return;for(let e of this.animations.values())e.play()}constructor(…e){super(…e),(0,r._)(this,”tierCount”,0),(0,r._)(this,”animations”,new Map),(0,r._)(this,”BADGE_SIDE_KEYFRAMES”,[[],[0,1],[0,.22,1],[0,.13,.34,1],[0,.09,.22,.42,1],[0,.07,.16,.29,.47,1]])}};(0,r._)(l,”attrPrefix”,””),(0,i.Cg)([o.CF],l.prototype,”tierCount”,void 0),(0,i.Cg)([o.zV],l.prototype,”tiers”,void 0),l=(0,i.Cg)([o.p_],l);var c=n(51987);(0,a.on)(“click”,”.js-new-user-contrib-example”,async function(e){let t=document.querySelector(“.js-calendar-graph”);if(t.classList.contains(“sample-graph”))return;t.classList.add(“sample-graph”);let n=e.currentTarget.getAttribute(“data-url”),r=await fetch(n,{headers:{…(0,c.kt)()}});if(!r.ok)return void t.classList.remove(“sample-graph”);let i=await r.text(),o=document.createElement(“div”);o.innerHTML=i;let a=t.querySelector(“.js-calendar-graph-table”);a?.replaceWith(o.children[0])});var u=n(30923),d=n(21403),f=n(58371),m=n(11683);let p=null,h=document.createElement(“div”);function g(){return new URL(document.querySelector(“.js-calendar-graph”).getAttribute(“data-url”),window.location.origin)}function y(e){if(“key”in e&&”Enter”!==e.key)return;let t=e.currentTarget;if(!((t instanceof HTMLElement||t instanceof SVGElement)&&t.matches(“[data-level]”)))return;let n=t.closest(“.js-calendar-graph”).getAttribute(“data-org”),r=t.getAttribute(“data-date”),i=t.classList.contains(“active”),o=”shiftKey”in e&&!0===e.shiftKey;i?T(k()):function(e,t,n){let r,i;if(p&&t){let t=p.getTime();[r,i]=e>p?[p,e]:[e,p],r=new Date(Math.max(r.getTime(),t-26784e5)),i=new Date(Math.min(i.getTime(),t+26784e5)),p=null}else p=i=r=e;j(r,i);let o=g(),a=w(o.search.slice(1),{from:r,to:i,org:n});a.append(“tab”,”overview”),o.search=a.toString(),v(o.toString())}(C(r),o,n)}function b(e,t,{key:n,ctrlKey:r}){let i=”[data-level]”,o=e=>e instanceof HTMLTableCellElement&&e.matches(i)?e:void 0,a=(e,t)=>Array.from(e?.querySelectorAll(t)??[]).at(-1);if(t instanceof HTMLTableCellElement){let e=`[data-ix=”${t.getAttribute(“data-ix”)}”]`,s=t.parentElement,l=s?.parentElement;switch(n){case”ArrowLeft”:return o(t.previousElementSibling)??t;case”ArrowRight”:return o(t.nextElementSibling)??t;case”ArrowDown”:return o(s?.nextElementSibling?.querySelector(e))??t;case”ArrowUp”:return o(s?.previousElementSibling?.querySelector(e))??t;case”Home”:return o(r?l?.querySelector(i):s?.querySelector(i));case”End”:return o(a(r?l:s,i));case”PageUp”:return o(l?.querySelector(e));case”PageDown”:return o(a(l,e))}}}async function v(e){let t=document.getElementById(“js-contribution-activity”);if(!t)return;t.classList.add(“loading”);let n=await (0,u.Ts)(document,e);t.classList.remove(“loading”),t.textContent=””,t.append(n)}function w(e,t){let n=new URLSearchParams(e);n.delete(“from”),n.delete(“to”),n.delete(“org”);let r=t.fromStr;t.from&&(r=A(t.from,!!t.forceLocalTime)),r&&n.append(“from”,r);let i=t.toStr;t.to&&(i=A(t.to,!!t.forceLocalTime)),i&&n.append(“to”,i);let o=t.org;return o&&n.append(“org”,o),n}async function S(e,t,n){let r=new URL(document.querySelector(“.js-calendar-graph”).getAttribute(“data-graph-url”),window.location.origin),i=w(r.search.slice(1),{from:e,to:t,org:n,forceLocalTime:!0});r.search=i.toString();let o=await (0,u.Ts)(document,r.toString());document.querySelector(“.js-yearly-contributions”).replaceWith(o)}function j(e,t){let n=document.querySelector(“.js-calendar-graph”),r=n.querySelectorAll(“[data-level]”);for(let e of r)e.classList.remove(“active”),e.hasAttribute(“aria-selected”)&&e.setAttribute(“aria-selected”,”false”);if(n.classList.remove(“days-selected”),e||t)for(let i of(n.classList.add(“days-selected”),r))(function(n){let r=C(n.getAttribute(“data-date”)||””).getTime();return e&&t?e.getTime()<=r&&r<=t.getTime():e?r===e.getTime():void 0})(i)&&(i.classList.add("active"),i.hasAttribute("aria-selected")&&i.setAttribute("aria-selected","true"))}function _(){let e=document.querySelector(".js-calendar-graph").querySelectorAll(".active"),t=e[0],n=e[e.length-1],r=t&&t.getAttribute("data-date"),i=n&&n.getAttribute("data-date");return r&&i?{first:r,last:i}:null}function L(e){return`0${e}`.slice(-2)}function A(e,t){return t?`${e.getFullYear()}-${L(e.getMonth()+1)}-${L(e.getDate())}`:`${e.getUTCFullYear()}-${L(e.getUTCMonth()+1)}-${L(e.getUTCDate())}`}function C(e){let[t,n,r]=e.split("-").map(e=>parseInt(e,10));return new Date(Date.UTC(t,n-1,r))}async function E(e,t){let n=document.getElementById(“year-list-container”);if(!n)return;t.append(“year_list”,”1″),e.search=t.toString();let r=await (0,u.Ts)(document,e.toString());n.textContent=””,n.append(r)}async function q(e){let t=_(),n=function(){let e=document.querySelector(“.js-calendar-graph”);return{first:e.getAttribute(“data-from”),last:e.getAttribute(“data-to”)}}(),r=new Date(n.first),i=new Date(n.last);await S(r,i,e),t&&j(new Date(t.first),new Date(t.last))}function k(){return document.querySelector(“.js-profile-timeline-year-list .js-year-link.selected”).href||””}async function T(e){let t=new URLSearchParams(new URL(e,window.location.origin).search.slice(1)),n=t.get(“org”),r=t.get(“from”),i=t.get(“to”),o=new Date(r),a=new Date(i);await S(o,a,n);let s=g(),l=w(s.search.slice(1),{from:o,to:a,org:n});l.append(“tab”,”overview”),s.search=l.toString(),await v(s.toString())}function x(e){let t=e.closest(“.js-details-container”);t&&t.classList.add(“open”);let n=e.getBoundingClientRect(),r=window.scrollY+n.top-62-10;window.scrollTo(0,r)}async function R(e){let{initializeOverviewGraphContainer:t}=await n.e(“app_assets_modules_github_profile_contributions-spider-graph_ts”).then(n.bind(n,92118));t(e)}function D(e){if(document.querySelector(“.js-profile-editable-area”).hidden=e,document.querySelector(“.js-profile-editable-names”).hidden=e,document.querySelector(“.js-profile-editable-form”).hidden=!e,document.querySelector(“.js-profile-editable-error”).textContent=””,e)document.querySelector(‘.js-profile-editable-form input:not([type=”hidden”])’).focus();else{let e=document.querySelector(“.js-profile-editable-pronouns-select”),t=document.querySelector(“.js-profile-editable-pronouns-custom”);for(let n of(e&&t&&””===t.value&&(e.selectedIndex=0,t.hidden=!0),document.querySelectorAll(“social-account-editor”)))n.resetToDefault();document.querySelector(“.js-profile-editable-edit-button”).focus()}}h.classList.add(“svg-tip”,”svg-tip-one-line”),h.style.pointerEvents=”none”,h.hidden=!0,document.body.appendChild(h),(0,d.lB)(“.js-contribution-settings-menu”,function(e){let t=new URL(window.location.href,window.location.origin);if(t.searchParams.has(“focus_contribution_menu”)){t.searchParams.delete(“focus_contribution_menu”),(0,s.bj)(t.toString());let n=e.querySelector(“button”);n&&n.focus()}}),(0,d.lB)(“.js-calendar-graph-table”,function(e){let t=e.closest(“.js-calendar-graph”);for(let t of e.querySelectorAll(“[data-level]”))t.addEventListener(“click”,y),t.hasAttribute(“tabindex”)&&t.addEventListener(“keypress”,y);let n=t.getAttribute(“data-from”);n&&(p=C(n)),e instanceof HTMLElement&&(0,m.zB)(e,{focusInStrategy:”previous”,getNextFocusable:b,bindKeys:m.z0.ArrowAll|m.z0.HomeAndEnd|m.z0.PageUpDown,focusOutBehavior:”stop”})}),(0,a.on)(“click”,”.js-org-filter-link”,function(e){e.stopPropagation(),e.preventDefault();let t=e.currentTarget,n=t.closest(“.js-org-filter-links-container”).querySelector(“.js-org-filter-link.selected”),r=new URLSearchParams(new URL(t.href,window.location.origin).search.slice(1)),i=r.get(“org”),o=_()||function(){let e=new URLSearchParams(window.location.search.slice(1)),t=e.get(“from”),n=e.get(“to”);return t&&n?{first:t,last:n}:null}()||function(){let e=new URLSearchParams(new URL(k(),window.location.origin).search.slice(1)),t=e.get(“from”),n=e.get(“to”);return t&&n?{first:t,last:n}:null}(),a=new Date(o.first),l=new Date(o.last);n&&n.classList.remove(“selected”),t!==n&&t.classList.add(“selected”),q(i);let c=g(),u={org:i,from:null,to:null};r.has(“from”)&&(u.from=a),r.has(“to”)&&(u.to=l);let d=w(c.search.slice(1),u);c.search=d.toString(),v(c.toString()),E(c,d),(0,s.kd)(c.toString())}),(0,a.on)(“click”,”.js-year-link”,async function(e){e.stopPropagation(),e.preventDefault();let t=e.currentTarget,n=t.closest(“ul”).querySelector(“.js-year-link.selected”);n.classList.remove(“selected”),t.classList.add(“selected”),n.removeAttribute(“aria-current”),t.setAttribute(“aria-current”,”true”),await T(t.href);let r=document.getElementById(“js-contribution-activity-description”);r&&r.focus(),(0,s.kd)(t.href)}),!function(){let e=window.location.hash;if(!e||0>e.indexOf(“#event-“))return;let t=e.slice(1,e.length),n=document.getElementById(t);n&&x(n)}(),window.addEventListener(“hashchange”,function(e){let t=e.newURL||window.location.href,n=t.slice(t.indexOf(“#”)+1,t.length),r=document.getElementById(n);r&&(e.stopPropagation(),x(r))}),(0,f.JW)(“.js-show-more-timeline-form”,async function(e,t){await t.text();let n=document.querySelector(“.js-show-more-timeline-form”);if(n){let t=n.getAttribute(“data-year”),r=document.querySelector(“.js-year-link.selected”),i=document.querySelector(`#year-link-${t}`);if(r.classList.remove(“selected”),i.classList.add(“selected”),t!==e.getAttribute(“data-year”)){let e=new Date(n.getAttribute(“data-from”));S(e,new Date(n.getAttribute(“data-to”)),n.getAttribute(“data-org”))}}let r=[…document.querySelectorAll(“#js-contribution-activity [data-sr-feedback]”)].pop();r.focus(),x(r),document.title=e.getAttribute(“data-title”)||””,(0,s.kd)(e.getAttribute(“data-url”)||””)}),(0,d.lB)(“.js-activity-overview-graph-container”,e=>{R(e)}),n(35269),(0,a.on)(“click”,”.js-profile-editable-edit-button”,function(){!function(){let e=document.querySelector(“.js-user-profile-bio”).getAttribute(“data-bio-text”);”string”==typeof e&&(document.querySelector(“.js-user-profile-bio-edit”).value=e)}(),D(!0)}),(0,a.on)(“click”,”.js-profile-editable-cancel”,function(){D(!1)}),(0,f.JW)(“.js-profile-editable-form”,async(e,t)=>{var n;let r;try{r=await t.html()}catch(e){422===e.response.status&&(document.querySelector(“.js-profile-editable-error”).textContent=e.response.json.message);return}n=r.html,document.querySelector(“.js-profile-editable-replace”).replaceWith(n),D(!1)}),n(79172),n(39376),(0,d.lB)(“.js-user-profile-sticky-fields.is-stuck”,function(){let e=document.querySelector(“.js-user-profile-sticky-bar”);return{add(){e?.classList.add(“is-stuck”)},remove(){e?.classList.remove(“is-stuck”)}}}),(0,d.lB)(“.js-user-profile-follow-button.is-stuck”,function(){let e=document.querySelector(“.js-user-profile-sticky-bar”);return{add(){e?.classList.add(“is-follow-stuck”)},remove(){e?.classList.remove(“is-follow-stuck”)}}});var B=n(4559),U=n(69599);(0,d.lB)(“.js-starred-repos-search-results”,function(e){(0,U.G7)(“arianotify_partial_migration”)&&”ariaNotify”in Element.prototype?e.ariaNotify(e.textContent||””,{priority:”high”}):(0,B.C)(e)});var P=n(25296);function M(e,t){if(t>0)e.textContent=t>999?`${(t/1e3).toFixed(1)}k`:t.toLocaleString(),e.hidden=!1;else e.remove()}async function $(e){let t=new URL(e.getAttribute(“data-url”),window.location.origin),n=new URLSearchParams(t.search.slice(1)),r=e.querySelector(“.js-profile-repository-count”),i=e.querySelector(“.js-profile-project-count”),o=e.querySelector(“.js-profile-team-count”),a=e.querySelector(“.js-profile-member-count”);r&&n.append(“repo”,”1″),i&&n.append(“project”,”1″),o&&n.append(“team”,”1″),a&&n.append(“member”,”1″),t.search=n.toString();let s=await fetch(t.toString(),{headers:{…(0,c.kt)()}});if(!s.ok)return;let l=(await s.json()).data;r&&l.repositories&&M(r,l.repositories.totalCount),i&&l.projects&&M(i,l.projects.totalCount),o&&l.teams&&M(o,l.teams.totalCount),a&&l.members&&M(a,l.members.totalCount),e.classList.contains(“js-responsive-underlinenav”)&&(0,P.n)(e)}(0,d.lB)(“.js-profile-tab-count-container”,function(e){$(e).then(()=>{e.dispatchEvent(new Event(“tabs-loaded”))})}),n(57364)},25296:(e,t,n)=>{n.d(t,{n:()=>o});var r=n(96123),i=n(34095);async function o(e){await i.K,a(e)}function a(e){let t=e.querySelectorAll(“.js-responsive-underlinenav-item”),n=e.querySelector(“.js-responsive-underlinenav-overflow”),r=s(n,e);if(!r)return;let i=!1;for(let n of t){let t=s(n,e);if(t){let e=t.left+n.offsetWidth>=r.left;n.style.visibility=e?”hidden”:””;let o=n.getAttribute(“data-tab-item”);if(o){let t=document.querySelector(`[data-menu-item=${o}]`);t instanceof HTMLElement&&(t.hidden=!e)}i=i||e}}n.style.visibility=i?””:”hidden”}function s(e,t){let n=e,r=n.ownerDocument;if(!r||!r.documentElement)return;let i=r.defaultView.HTMLElement,o=0,a=0;for(;n!==r.body&&n!==t;){if(o+=n.offsetTop||0,a+=n.offsetLeft||0,!(n.offsetParent instanceof i))return;n=n.offsetParent}return{top:o,left:a}}(0,n(21403).lB)(“.js-responsive-underlinenav”,{constructor:HTMLElement,subscribe:e=>(o(e),(0,r.Rt)(window,”resize”,()=>a(e)))})},34095:(e,t,n)=>{n.d(t,{G:()=>i,K:()=>o});var r=n(71315);let i=r.XC?.readyState===”interactive”||r.XC?.readyState===”complete”?Promise.resolve():new Promise(e=>{r.XC?.addEventListener(“DOMContentLoaded”,()=>{e()})}),o=r.XC?.readyState===”complete”?Promise.resolve():new Promise(e=>{r.cg?.addEventListener(“load”,e)})},39376:(e,t,n)=>{var r=n(21403),i=n(97797),o=n(4559),a=n(51987);let s=null,l=null;function c(e){let{item:t,oldIndex:n}=e,{parentNode:r}=t;l=r.children[n+1]}async function u(e){let{oldIndex:t,newIndex:n,item:r}=e;if(t===n)return;let i=r.closest(“.js-pinned-items-reorder-form”),c=i.closest(“.js-pinned-items-reorder-container”),u=c.querySelector(“.js-pinned-items-spinner”),d=c.querySelector(“.js-pinned-items-reorder-message”),f=u&&d;if(f&&(d.textContent=””,u.style.display=”inline-block”),s.option(“disabled”,!0),!(await fetch(i.action,{method:i.method,body:new FormData(i),headers:{…(0,a.kt)()}})).ok){f&&(d.textContent=d.getAttribute(“data-error-text”)||””,u.style.display=”none”);let e=r.parentNode;l?e.insertBefore(r,l):e.appendChild(r);return}f&&(d.textContent=d.getAttribute(“data-success-text”)||””,(0,o.i)(d.textContent),u.style.display=”none”),s.option(“disabled”,!1)}(0,r.lB)(“.js-pinned-items-reorder-list”,{async add(e){let{Sortable:t}=await n.e(“app_assets_modules_github_sortable-behavior_ts”).then(n.bind(n,35011));s=t.create(e,{animation:150,item:”.js-pinned-item-list-item”,handle:”.js-pinned-item-reorder”,onUpdate:u,onStart:c,chosenClass:”is-dragging”})}}),(0,i.on)(“submit”,”.js-pinned-items-reorder-form”,function(e){e.preventDefault()}),(0,i.on)(“click”,”.js-pinned-item-list-item .js-sortable-button”,async function({currentTarget:e}){let{moveWithButton:t}=await n.e(“app_assets_modules_github_sortable-behavior_ts”).then(n.bind(n,35011));t(e,e.closest(“.js-pinned-item-list-item”),u)})},56038:(e,t,n)=>{n.d(t,{Kn:()=>a,XC:()=>i,cg:()=>o,fV:()=>s});let r=”undefined”!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,i=”undefined”==typeof document||r?void 0:document,o=”undefined”==typeof window||r?void 0:window,a=”undefined”==typeof history||r?void 0:history,s=”undefined”==typeof location||r?{pathname:””,origin:””,search:””,hash:””,href:””}:location},57364:(e,t,n)=>{var r=n(21403),i=n(34095),o=n(96123);async function a(e){await i.K,s(e)}function s(e){let t=document.querySelector(“.js-navigation-popover-target”);if(!t||”hidden”===t.style.visibility||t.classList.contains(“v-hidden”)||document.getElementsByClassName(“js-selected-navigation-item selected”)[0]?.getAttribute(“data-selected-links”)?.includes(“security”))l(e,!1);else{let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.top+n.height+3,o=n.left+n.width/2-r.width/2+10;e.style.top=`${i}px`,e.style.left=`${o}px`,l(e,!0)}}function l(e,t){t?e.classList.remove(“v-hidden”):e.classList.add(“v-hidden”)}(0,r.lB)(“.js-navigation-popover”,{constructor:HTMLElement,subscribe:e=>(a(e),(0,o.Rt)(window,”resize”,()=>s(e)))}),(0,r.lB)(“.js-profile-tab-count-container”,e=>{let t=document.querySelector(“.js-navigation-popover”);t&&e.addEventListener(“tabs-loaded”,()=>{a(t)})})},69599:(e,t,n)=>{n.d(t,{G7:()=>l,XY:()=>c,fQ:()=>s});var r=n(5225),i=n(21067);function o(){return new Set((0,i._$)().featureFlags)}let a=n(71315).X3||function(){try{return process?.env?.STORYBOOK===”true”}catch{return!1}}()?o:(0,r.A)(o);function s(){return Array.from(a())}function l(e){return a().has(e)}let c={isFeatureEnabled:l}},71315:(e,t,n)=>{n.d(t,{KJ:()=>r.KJ,Kn:()=>i.Kn,X3:()=>r.X3,XC:()=>i.XC,cg:()=>i.cg,fV:()=>i.fV,g5:()=>r.g5});var r=n(6923),i=n(56038)},96123:(e,t,n)=>{n.d(t,{Rt:()=>i,Zz:()=>o,yU:()=>Subscription});var r=n(50467);let Subscription=class Subscription{constructor(e){(0,r._)(this,”closed”,void 0),(0,r._)(this,”unsubscribe”,void 0),this.closed=!1,this.unsubscribe=()=>{e(),this.closed=!0}}};function i(e,t,n,r={capture:!1}){return e.addEventListener(t,n,r),new Subscription(()=>{e.removeEventListener(t,n,r)})}function o(…e){return new Subscription(()=>{for(let t of e)t.unsubscribe()})}}},e=>{e.O(0,[“vendors-node_modules_primer_behaviors_dist_esm_index_mjs”,”vendors-node_modules_github_selector-observer_dist_index_esm_js”,”vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-08b0f5″,”app_assets_modules_github_profile_edit-social-account_ts-app_assets_modules_github_settings_p-b03314″],()=>e(e.s=23497)),e.O()}]); //# sourceMappingURL=profile-17e74d651d51.js.map