diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..84cf58e --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry = https://registry.npmjs.org/ \ No newline at end of file diff --git a/README.md b/README.md index c3c460b..d4a83eb 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict - #### For offline viewing ``` -git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" | sed -e 's/\\/\\\\/g' | sed -e 's/`/"/g' | sed -e 's/^/r.push(f\`/g' | sed 's/$/\`\);/g' | sed 's/\$/_/g' > log.txt +git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" | sed -e 's/\\/\\\\/g' | sed -e 's/`/"/g' | sed -e 's/^/r(f\`/g' | sed 's/$/\`\);/g' | sed 's/\$/_/g' > log.txt ``` Git will create a file `log.txt`. This file contains data for show a report. The difference between the online and offline format is the presence of a wrapper for strings. The offline format will be pulled up like a `js` file if you just opened `/build/index.html ` diff --git a/build/index.html b/build/index.html index 80862b8..b7d86b6 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -
>>=3){case 16:for(o=3+O(e,t),t+=2,h=g[g.length-1];o-- >0;)g.push(h);break;case 17:for(o=3+P(e,t),t+=3;o-- >0;)g.push(0);break;case 18:for(o=11+I(e,t),t+=7;o-- >0;)g.push(0);break;default:g.push(h),l 0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function Rp(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Ip(e,t){var n=e.l,a=e.read_shift(1),s=Op(e),o=[],r={t:s,h:s};if(0!==(1&a)){for(var i=e.read_shift(4),l=0;l!=i;++l)o.push(Rp(e));r.r=o}else r.r=[{ich:0,ifnt:0}];return e.l=n+t,r}var Lp=Ip;function Fp(e,t){var n=!1;return null==t&&(n=!0,t=mp(23+4*e.t.length)),t.write_shift(1,1),Pp(e.t,t),t.write_shift(4,1),function(e,t){t||(t=mp(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function Mp(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function Wp(e,t){return null==t&&(t=mp(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Bp(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function zp(e,t){return null==t&&(t=mp(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Up=Op,Hp=Pp;function Gp(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Vp(e,t){var n=!1;return null==t&&(n=!0,t=mp(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var Kp=Op,qp=Gp,$p=Vp;function Yp(e){var t=e.slice(e.l,e.l+4),n=1&t[0],a=2&t[0];e.l+=4;var s=0===a?Yh([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):np(t,0)>>2;return n?s/100:s}function Zp(e,t){null==t&&(t=mp(4));var n=0,a=0,s=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?a=1:s==(0|s)&&s>=-(1<<29)&&s<1<<29&&(a=1,n=1),!a)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?s:e)<<2)+(n+2))}function Xp(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Jp=Xp,Qp=function(e,t){return t||(t=mp(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function ef(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function tf(e,t){return(t||mp(8)).write_shift(8,e,"f")}function nf(e,t){if(t||(t=mp(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),e.rgb&&null==e.theme){var a=e.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),t.write_shift(1,parseInt(a.slice(0,2),16)),t.write_shift(1,parseInt(a.slice(2,4),16)),t.write_shift(1,parseInt(a.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}var af=80,sf={1:{n:"CodePage",t:2},2:{n:"Category",t:af},3:{n:"PresentationFormat",t:af},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:af},15:{n:"Company",t:af},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:af},27:{n:"ContentStatus",t:af},28:{n:"Language",t:af},29:{n:"Version",t:af},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},of={1:{n:"CodePage",t:2},2:{n:"Title",t:af},3:{n:"Subject",t:af},4:{n:"Author",t:af},5:{n:"Keywords",t:af},6:{n:"Comments",t:af},7:{n:"Template",t:af},8:{n:"LastAuthor",t:af},9:{n:"RevNumber",t:af},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:af},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function rf(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var lf=Ru(rf([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),cf={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},mf={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},df={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function uf(e,t){var n,a=function(e){for(var t=[],n=bu(e),a=0;a!==n.length;++a)null==t[e[n[a]]]&&(t[e[n[a]]]=[]),t[e[n[a]]].push(n[a]);return t}(mf),s=[];s[s.length]=zu,s[s.length]=ih("Types",null,{xmlns:uh,"xmlns:xsd":kh,"xmlns:xsi":wh}),s=s.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return ih("Default",null,{Extension:e[0],ContentType:e[1]})})));var o=function(a){e[a]&&e[a].length>0&&(n=e[a][0],s[s.length]=ih("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:df[a][t.bookType]||df[a].xlsx}))},r=function(n){(e[n]||[]).forEach((function(e){s[s.length]=ih("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:df[n][t.bookType]||df[n].xlsx})}))},i=function(t){(e[t]||[]).forEach((function(e){s[s.length]=ih("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:a[t][0]})}))};return o("workbooks"),r("sheets"),r("charts"),i("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(i),i("vba"),i("comments"),i("threadedcomments"),i("drawings"),r("metadata"),i("people"),s.length>2&&(s[s.length]="",s[1]=s[1].replace("/>",">")),s.join("")}var hf={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function pf(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function ff(e){var t=[zu,ih("Relationships",null,{xmlns:hh})];return bu(e["!id"]).forEach((function(n){t[t.length]=ih("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function gf(e,t,n,a,s,o){if(s||(s={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,s.Id="rId"+t,s.Type=a,s.Target=n,o?s.TargetMode=o:[hf.HLINK,hf.XPATH,hf.XMISS].indexOf(s.Type)>-1&&(s.TargetMode="External"),e["!id"][s.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][s.Id]=s,e[("/"+s.Target).replace("//","/")]=s,t}function yf(e,t,n){return['
").replace($u,(function(e){return""+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Zu(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Xu(e){for(var t="",n=0,a=0,s=0,o=0,r=0,i=0;n22)throw new Error("Bad Code Name: Worksheet"+r)}}));for(var o=0;o"+r+"
"),a.push(function(e,t,n,a){if(!e)return"";var s=[];if(e["!margins"]&&(s.push(""+o.join("")+" "}var Lv='"}function Wv(e,t){var n=t||{},a=null!=n.header?n.header:Lv,s=null!=n.footer?n.footer:Fv,o=[a],r=xp(e["!ref"]);n.dense=Array.isArray(e),o.push(Mv(0,0,n));for(var i=r.s.r;i<=r.e.r;++i)o.push(Iv(e,r,i,n));return o.push("
"+s),o.join("")}function Bv(e,t,n){var a=n||{};var s=0,o=0;if(null!=a.origin)if("number"==typeof a.origin)s=a.origin;else{var r="string"==typeof a.origin?kp(a.origin):a.origin;s=r.r,o=r.c}var i=t.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,i.length),c={s:{r:0,c:0},e:{r:s,c:o}};if(e["!ref"]){var m=xp(e["!ref"]);c.s.r=Math.min(c.s.r,m.s.r),c.s.c=Math.min(c.s.c,m.s.c),c.e.r=Math.max(c.e.r,m.e.r),c.e.c=Math.max(c.e.c,m.e.c),-1==s&&(c.e.r=s=m.e.r+1)}var d=[],u=0,h=e["!rows"]||(e["!rows"]=[]),p=0,f=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);po?.3:1}},a)}));return(0,zo.jsx)("div",{className:Ex,children:c})}Ix.defaultProps={rows:[]};const Lx=Ix,Fx="line_year_chart_month_info__Cv+xl";function Mx(e){let{max:t,month:n,showEvents:a,hideMoney:s}=e,o="";n.tasks&&(o="\u2611 ".concat(n.tasks||0)),!s&&n.money&&(o="\u2611 ".concat(n.tasks||0," \u2014 ").concat($n(n.money||0,0)));const r=s?"tasks":"tasks and money";return(0,zo.jsxs)("div",{className:Tx,children:[(0,zo.jsx)(Dx,{month:n}),(0,zo.jsx)(Lx,{month:n,maxCommits:t.commits,showEvents:a}),(0,zo.jsx)("div",{title:r,className:Fx,children:o})]})}Mx.defaultProps={hideMoney:!1};const Wx=Mx;function Bx(e){let{maxCommits:n=100,showEvents:a=!0,wordDays:s=[],authors:o=[]}=e;const r=(0,t.useRef)(null),[i,l]=(0,t.useState)(16);if((0,t.useEffect)((()=>{var e;if(!r.current)return;const t=(null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect())||{},n=Math.floor(t.width/135),a=function(e,t){for(let n=16;n<=24;n+=.3)if((7+8*n)*t>e)return n-.3;return 24}(t.width,n);l(a)}),[]),!s||!s.length)return null;const c=function(e){const t={},n={};return e.forEach((e=>{if(e.isStaff)return;const a="".concat(e.firstCommit.month,"-").concat(e.firstCommit.year);t[a]||(t[a]={}),t[a][e.firstCommit.dayInMonth]=e;const s="".concat(e.lastCommit.month,"-").concat(e.lastCommit.year);n[s]||(n[s]={}),n[s][e.lastCommit.dayInMonth]=e})),{firstDay:t,lastDay:n}}(o),m=_x(s,c),d=1===(null===o||void 0===o?void 0:o.length),u={tasks:new Ua,money:new Ua};m.forEach((e=>{u.tasks.update(e.tasks),u.money.update(e.money)}));const h=m.map((e=>(0,zo.jsx)(Wx,{max:{tasks:u.tasks.max,money:u.money.max,commits:n},month:e,showEvents:a,hideMoney:d},e.id))),p={"--day-size":"".concat(i.toFixed(1),"px")};return(0,zo.jsx)("div",{ref:r,style:p,className:xx,children:h})}Bx.defaultProps={showEvents:!0};const zx=Bx,Ux=dn((e=>{var t;let{mode:n}=e;const a=Fo.dataGrip.author.statistic,s=Fo.dataGrip.timestamp.statistic,o=s.commitsByTimestampCounter.max,r=null===(t=Fo.dataGrip.recommendations.team)||void 0===t?void 0:t.byTimestamp;return(0,zo.jsxs)(zo.Fragment,{children:["fullscreen"!==n&&(0,zo.jsx)(_w,{mode:n,recommendations:r}),(0,zo.jsx)(em,{title:"page.team.month.title"}),(0,zo.jsx)(hc,{template:"table",children:(0,zo.jsx)(zx,{maxCommits:o,authors:a,wordDays:s.allCommitsByTimestamp})})]})})),Hx=Ux;function Gx(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=nw({max:xw(t,"commits"),suffix:"page.team.type.tasksSmall"});return(0,zo.jsxs)(Hb,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,zo.jsx)(Vb,{isFixed:!0,isSortable:!0,template:e=>(0,zo.jsx)(Mw,{task:e}),title:"page.team.tasks.task",properties:"task",width:120}),(0,zo.jsx)(Vb,{properties:"types",template:e=>(0,zo.jsx)(xc,{value:e}),width:100}),(0,zo.jsx)(Vb,{properties:"scope",template:e=>(0,zo.jsx)(xc,{value:e}),width:100}),(0,zo.jsx)(Vb,{isSortable:!0,template:(e,t)=>(0,zo.jsx)(Bw,{prId:null===t||void 0===t?void 0:t.prId}),properties:"task",width:40}),(0,zo.jsx)(Vb,{template:vm.STRING,properties:"comments"}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.tasks.author",properties:"author",width:170}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.tasks.from",properties:"from",width:150,formatter:Vn}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.tasks.to",properties:"to",width:150,formatter:Vn}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.tasks.pr",properties:"to",width:150,formatter:Vn}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.tasks.prAuthor",properties:"prAuthor",width:170}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"commits"}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.tasks.commits",properties:"commits",minWidth:170,template:e=>(0,zo.jsx)(ew,{options:o,value:e})})]})}Gx.defaultProps={response:void 0};const Vx=dn((e=>{let{mode:t}=e;const n=Fo.dataGrip.tasks.statistic;return null!==n&&void 0!==n&&n.length?(0,zo.jsxs)(Hc,{to:"response",loader:(e,a)=>Xc({content:n,pagination:e,sort:a,mode:t}),watch:"".concat(t).concat(Fo.hash),children:[(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{}),(0,zo.jsx)(Gx,{mode:t,rowsForExcel:n}),(0,zo.jsx)(Zc,{})]}):"print"!==t?(0,zo.jsx)(Pc,{}):null})),Kx="GameBanner_game_banner__b5+Fg",qx="GameBanner_game_banner_description__MbaLC";const $x=function(e){let{src:t,children:n}=e;return t?(0,zo.jsx)("div",{className:Kx,style:{backgroundImage:"url(".concat(t,")")},children:n?(0,zo.jsx)("div",{className:qx,children:n}):null}):null};function Yx(e){return Math.floor(Math.random()*(e+1))}function Zx(e){for(let t,n,a=e.length;a;t=parseInt(Math.random()*a),n=e[--a],e[a]=e[t],e[t]=n);return e}const Xx="info_races_track_info__83WxU";const Jx=function(e){let{title:t,duration:n}=e;return console.log(t),(0,zo.jsx)("div",{className:Xx,style:{animationDelay:"".concat(n+1,"s")},children:"4"})},Qx="car_races_track_car__4-hbF",eT="car_races_track_car_title__xLQOO",tT="car_races_track_car_cover__MLOUy",nT="car_races_track_car_animation__kzPcN",aT=["ease","ease-in","ease-out","ease-in-out","linear","cubic-bezier(0.1, 0.7, 1, 0.1)"];function sT(e){let{title:n,duration:a,type:s,canStart:o}=e;const r=Yx(aT.length-1),[i]=(0,t.useState)(aT[r]);(0,t.useEffect)((()=>{Zx(aT)}),[]);const l=o?nT:"";return(0,zo.jsxs)("div",{className:"".concat(Qx," ").concat(s||""," ").concat(l||""),style:{animationTimingFunction:i,animationDuration:"".concat(a,"s")},children:[(0,zo.jsx)("div",{className:"".concat(eT," ").concat(s||""),children:n}),(0,zo.jsx)("img",{className:tT,src:"./assets/games/races/car.png"})]})}sT.defaultProps={type:"",canStart:!1};const oT=sT,rT="styles_races__VtaYM",iT="styles_races_green__vJq+q",lT="styles_races_track__OTXZ8",cT="styles_races_button__bvtiA",mT=10,dT=20;function uT(e){let{title:t,speed:n,type:a,canStart:s}=e;if(!t)return null;const o=mT+dT*(1-n)*3;return(0,zo.jsxs)("div",{className:"".concat(lT," ").concat(a||""),style:{backgroundImage:"url(./assets/games/races/road.png)"},children:[s&&(0,zo.jsx)(Jx,{title:t,duration:o}),(0,zo.jsx)(oT,{title:t,duration:o,type:a,canStart:s})]})}uT.defaultProps={type:"",canStart:!1};const hT=uT;const pT=function(e){let{tracks:n}=e;const{t:a}=Bt(),[s,o]=(0,t.useState)(!1),[r]=(0,t.useState)([...Zx(n)]);if(!n.length)return null;const i=r.map((e=>(0,zo.jsx)(hT,{title:e.title,speed:e.speed,canStart:s},e.title)));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)($x,{src:"./assets/games/races/bg.png",children:!s&&(0,zo.jsx)(Ko,{className:cT,onClick:()=>{o(!0)},children:a("uiKit.races.go")})}),(0,zo.jsx)("div",{className:iT,style:{backgroundImage:"url(./assets/games/races/greenTop.png)"}}),(0,zo.jsx)("div",{className:rT,children:i}),(0,zo.jsx)("div",{className:iT,style:{backgroundImage:"url(./assets/games/races/greenBottom.png)"}})]})},fT="styles_show_symbol_wrapper__CF9a1",gT="styles_show_symbol__ABylg",yT="styles_show_symbol_s__ukgag",vT="styles_show_symbol_hide__SAUag",bT="styles_show_symbol_bg__UXOUQ",wT="styles_show_symbol_bg_hide__qEC99";const kT=function(e){let{show:n,children:a,mode:s}=e;const[o,r]=(0,t.useState)(!1);(0,t.useEffect)((()=>{r(n)}),[n]);const i=o?vT:"",l=o?wT:"",c={"table-row":yT}[s||""]||"";return(0,zo.jsxs)("div",{className:"".concat(gT," ").concat(i," ").concat(c),children:[a,(0,zo.jsx)("div",{className:"".concat(bT," ").concat(l),onClick:()=>r(!0)})]})};const _T=function(e){let{children:t,onClick:n,mode:a}=e;const s={"table-row":yT}[a||""]||"";return(0,zo.jsx)("div",{className:"".concat(gT," ").concat(vT," ").concat(s),onClick:()=>n(),children:t})};const xT=function(e){let{text:n,length:a,mode:s}=e;const[o,r]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{r(!1)}),[n]),!n&&!a)return null;const i=function(e,t){const n=(e||"").split(""),a=t?t-1:n.length-1;return n.length-1>a&&(n[a]="\u2026"),n}(n,a),l=((a?new Array(a).fill(1):null)||i).map(((e,t)=>(0,zo.jsx)(kT,{mode:s,show:o,children:i[t]||""},"".concat(n,"|").concat(e,"|").concat(t))));return(0,zo.jsxs)("div",{className:"".concat(fT),style:{paddingTop:"table-row"===s?"8px":0},children:[l,(0,zo.jsx)(_T,{mode:s,onClick:()=>r(!0),children:"\xbb"})]})},TT="track_swimming_pool_track__Pi+9u",ST="track_swimming_pool_track_value__crbBH",CT="track_swimming_pool_track_line__93r0Q",ET="track_swimming_pool_track_chart__Caa5Q",AT="track_swimming_pool_track_man__GPkAm";function NT(e,t){return t?{className:e,style:{backgroundImage:"url(".concat(t,")")}}:{className:e}}const jT=function(e){let{title:t,value:n,maxValue:a}=e;if(!t)return null;const s=1.1*a/100,o=Math.ceil(n/s);return(0,zo.jsxs)("div",{...NT(TT,"./assets/games/swimmingPool/track_title.png"),children:[(0,zo.jsx)(xT,{text:t,length:10}),(0,zo.jsx)("div",{...NT(ST,"./assets/games/swimmingPool/block.png"),children:n}),(0,zo.jsx)("div",{...NT(CT,"./assets/games/swimmingPool/water.png"),children:(0,zo.jsx)("div",{className:ET,style:{width:"".concat(o,"%")},children:(0,zo.jsx)("img",{className:AT,src:"./assets/games/swimmingPool/man.png"})})})]})},DT="styles_swimming_pool_top_border__ul57s",OT="styles_swimming_pool_bottom_border__MVEyy";const PT=function(e){let{tracks:n}=e;const[a]=(0,t.useState)([...Zx(n)]);if(!n.length)return null;const s=a.map((e=>(0,zo.jsx)(jT,{title:e.title,value:e.value,maxValue:300},e.title)));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)($x,{src:"./assets/games/swimmingPool/bg.png"}),(0,zo.jsx)("div",{className:DT,style:{backgroundImage:"url(./assets/games/swimmingPool/block2.png)"}}),s,(0,zo.jsx)("div",{className:OT,style:{backgroundImage:"url(./assets/games/swimmingPool/block2.png)"}})]})},RT={quiz_result_title:"result_quiz_result_title__nXjLv",quiz_result_description:"result_quiz_result_description__qbj7p"},IT={quiz_container:"styles_quiz_container__M2XFf",quiz_cloud:"styles_quiz_cloud__+7wpo",quiz_cloud_bg:"styles_quiz_cloud_bg__nWu9Q",quiz_slider:"styles_quiz_slider__Ot+b-",quiz_slider_animation:"styles_quiz_slider_animation__E90I-",quiz_footer:"styles_quiz_footer__fVgz6",quiz_title:"styles_quiz_title__qnA9f",quiz_description:"styles_quiz_description__BIeom",quiz_icon:"styles_quiz_icon__3SHFo"};const LT=function(e){let{result:t,onClick:n}=e;return(0,zo.jsxs)("section",{className:RT.quiz_result,children:[(0,zo.jsx)("h4",{className:IT.quiz_title,children:t.title}),(0,zo.jsx)("p",{className:IT.quiz_description,children:t.description}),(0,zo.jsx)("div",{className:IT.quiz_footer,children:(0,zo.jsx)(Ko,{onClick:()=>{n()},children:"Replay"})})]})},FT="answer_quiz_answer__EwZhy",MT="answer_quiz_answer_wrapper__K9cQA",WT="answer_quiz_answer_wrapper_small__6cbHL",BT="answer_quiz_answer_icon__82bgB",zT="answer_quiz_answer_text__fvCwR",UT="answer_quiz_answer_text_selected__heF++",HT="answer_quiz_answer_text_correct__IaL2y",GT="answer_quiz_answer_text_error__hwu1C";const VT=function(e){let{answer:n,mode:a,onClick:s}=e;const[o]=(0,t.useState)(Yx(5)),r=[MT],i=[zT];return"small"!==a&&"error"!==a||r.push(WT),"selected"===a&&i.push(UT),"correct"===a&&i.push(HT),"error"===a&&i.push(GT),(0,zo.jsx)("div",{className:r.join(" "),children:(0,zo.jsxs)("figure",{className:FT,onClick:()=>{s()},children:[(0,zo.jsx)("img",{className:BT,src:"./assets/games/quiz/balloon_".concat(o,".png")}),(0,zo.jsx)("figcaption",{className:i.join(" "),children:n.title})]})})},KT={quiz_question_title:"question_quiz_question_title__1bocM",quiz_question_answer:"question_quiz_question_answer__E3gmJ"};function qT(e,t){return(e||[]).map((e=>null!==e&&void 0!==e&&e.score?"correct":null!==e&&void 0!==e&&e.score||e!==t?"small":"error"))}const $T=function(e){let{question:n,onClick:a}=e;const[s,o]=(0,t.useState)(null),[r,i]=(0,t.useState)(!1),[l,c]=(0,t.useState)([]),m=n.answers||[];if((0,t.useEffect)((()=>{c([]),o(null),i(!1)}),[n]),!n)return null;const d=m.map(((e,t)=>(0,zo.jsx)(VT,{mode:l[t],answer:e,onClick:()=>{if(!r){if(s!==e){const n=[];return n[t]="selected",c(n),void o(e)}i(!0),setTimeout((()=>{c(qT(m,s))}),1e3),setTimeout((()=>{a(s)}),3e3)}}},"".concat(e.id||"","|").concat(e.title))));return(0,zo.jsx)("div",{className:KT.quiz_question,children:(0,zo.jsxs)("div",{className:KT.quiz_question_body,children:[(0,zo.jsx)("div",{className:IT.quiz_title,style:{backgroundImage:"url(./assets/games/quiz/cloud_big.png)"},children:n.title}),(0,zo.jsx)("div",{className:IT.quiz_question_answer,children:d}),(0,zo.jsx)("div",{className:IT.quiz_footer,children:(0,zo.jsx)(Ko,{disabled:r,onClick:()=>{i(!0),setTimeout((()=>{c(qT(m,s))}),1e3),setTimeout((()=>{a(s)}),3e3)},children:n.button||"Next question"})})]})})},YT={};const ZT=function(e){let{quiz:t,onClick:n}=e;return(0,zo.jsxs)("section",{className:YT.quiz_start,children:[(0,zo.jsx)("h4",{className:IT.quiz_title,children:t.title}),(0,zo.jsx)("p",{className:IT.quiz_description,children:t.description}),(0,zo.jsx)("div",{className:IT.quiz_footer,children:(0,zo.jsx)(Ko,{onClick:()=>{n()},children:t.button||"GO"})})]})};const XT=function(e){let{quiz:n,onEnd:a}=e;const[s,o]=(0,t.useState)(n.questions[0]),[r,i]=(0,t.useState)(n.results[0]),[l,c]=(0,t.useState)([]),[m,d]=(0,t.useState)("start"),[u,h]=(0,t.useState)(!1),p=function(e,t){return n=>{e(!0),setTimeout((()=>{n()}),t/2),setTimeout((()=>{e(!1)}),t)}}(h,1500),f=function(e){const t={},n={};return e.forEach(((e,a)=>{null!==e&&void 0!==e&&e.id&&(t[null===e||void 0===e?void 0:e.id]=e),n[a]=e,e.index=a})),{byId:t,byIndex:n}}(n.questions);let g=null;"start"===m&&(g=(0,zo.jsx)(ZT,{quiz:n,onClick:()=>{p((()=>{d("question")}))}})),"question"===m&&(g=(0,zo.jsx)($T,{question:s,onClick:e=>{const t=f.byId[e.nextQuestionId||""],a=f.byIndex[s.index+1],r=function(e,t){const n=e.reduce(((e,t)=>e+(t.score||0)),0);let a=t[0];return t.forEach((e=>{(e.min&&e.max&&n>=e.min&&n<=e.max||e.min&&!e.max&&n>=e.min||!e.min&&e.max&&n<=e.max)&&(a=e)})),a}(l,n.results);c([...l,e]),e.isEnd&&p((()=>{i(r),d("result")})),e.nextQuestionId&&t?p((()=>{o(t)})):p(a?()=>{o(a)}:()=>{i(r),d("result")})}})),"result"===m&&(g=(0,zo.jsx)(LT,{result:r,onClick:()=>{p((()=>{a(),o(n.questions[0]),c([]),d("start")}))}}));const y=u?"".concat(IT.quiz_slider," ").concat(IT.quiz_slider_animation):IT.quiz_slider;return(0,zo.jsxs)("div",{className:IT.quiz_container,style:{backgroundImage:"url(./assets/games/quiz/cloud_bg.png)"},children:[(0,zo.jsx)("div",{className:IT.quiz_cloud_bg,style:{backgroundImage:"url(./assets/games/quiz/cloud_bg.png)"}}),(0,zo.jsx)("div",{className:IT.quiz_cloud,style:{backgroundImage:"url(./assets/games/quiz/cloud.png)"}}),(0,zo.jsx)("div",{className:y,children:g})]})},JT={title:"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u0430",icon:"./assets/games/wheel.jpg",description:"\u0422\u0435\u043a\u0441\u0442 \u0441 \u043a\u0430\u043a\u0438\u043c \u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043d\u0430 \u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0442\u0440\u0438\u0433\u0443\u044e\u0442 \u0438 \u043c\u0430\u043d\u044f\u0442 \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0443\u043d\u044b\u043b\u044b\u0439 \u043a\u0432\u0438\u0437 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438.",questions:[{title:"\u0421\u043a\u043e\u043b\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0441\u043e\u0437\u0434\u0430\u043b Anatoliy?",answers:[{title:"17",icon:"./assets/games/wheel.jpg",score:0},{title:"23",icon:"./assets/games/wheel.jpg",score:1},{title:"29",icon:"./assets/games/wheel.jpg",score:0}]},{title:"Albert \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442 \u0447\u0430\u0449\u0435 Marrie?",answers:[{title:"\u0414\u0430",icon:"./assets/games/wheel.jpg",score:0},{title:"\u041d\u0435\u0442",icon:"./assets/games/wheel.jpg",score:1}]},{title:"\u0421\u0430\u043c\u043e\u0435 \u0434\u043b\u0438\u043d\u043d\u043e\u0435 commit message \u043e\u0441\u0442\u0430\u0432\u0438\u043b:",answers:[{title:"Kolya Elow",icon:"./assets/games/wheel.jpg",score:0},{title:"Subrine Titan",icon:"./assets/games/wheel.jpg",score:0},{title:"Grebenshikov Muz TV",icon:"./assets/games/wheel.jpg",score:1}]}],results:[{title:"\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u0435\u043c, \u043f\u044b\u0442\u043a\u0430 \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u0430",icon:"./assets/games/wheel.jpg",description:"\u0412\u044b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u043e\u0442 \u043a\u0432\u0438\u0437 \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u043e\u0442\u0437\u044b\u0432 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0434\u0432\u0430 \u0438\u043b\u0438 \u0442\u0440\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f.",min:0,max:60}]};const QT=function(e){let{}=e;return(0,zo.jsx)(XT,{quiz:JT,onEnd:()=>{}})},eS=dn((()=>{const e=Fo.dataGrip.author.statistic.filter((e=>!e.isStaff)),t=e.map((e=>e.taskInDay)),n=Math.max(...t),a=e.map((e=>({title:e.author,speed:e.taskInDay/n}))),s=[...e].sort(((e,t)=>t.maxMessageLength-e.maxMessageLength)).map((e=>({title:e.author,value:e.maxMessageLength})));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(QT,{}),(0,zo.jsx)(pT,{tracks:a}),(0,zo.jsx)(em,{title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0430"}),(0,zo.jsx)(PT,{tracks:s})]})})),tS=eS;const nS=function(){return(0,zo.jsx)("div",{style:{pageBreakAfter:"always",breakAfter:"always"},children:" "})};function aS(e,t,n,a,s,o){const r=Math.abs(s-o)>180?1:0,i=(n,a)=>function(e,t,n,a){const s=a*Math.PI/180;return[e+n*Math.cos(s),t+n*Math.sin(s)]}(e,t,n,a).map((e=>e.toPrecision(5))).join(",");return["M".concat(i(n,s)),"A".concat(n,",").concat(n,",0,").concat(r,",1,").concat(i(n,o)),"L".concat(i(a,o)),"A".concat(a,",").concat(a,",0,").concat(r,",0,").concat(i(a,s)),"Z"].join("")}const sS="PieSVG_pie_svg__mDKRu",oS="PieSVG_pie_svg_sector__NIcy9";function rS(e){let{options:t,parts:n,center:a}=e;const s=(a||72)/100*49;let o=0;const r=n.map((e=>{const n=t.color.get(e.title).first,a=360*e.width/100,r=Math.min(o+a,360),i=aS(50,50,s,50,o+-90,r+-90);return o+=a,(0,zo.jsx)("path",{style:{fill:n},d:i,className:oS,children:(0,zo.jsx)("title",{children:"".concat(e.title," ").concat(e.description||"")})},e.title)}));return(0,zo.jsx)("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",className:sS,children:r})}rS.defaultProps={className:""};const iS=rS,lS="PieChart_pie_chart__9AHjv",cS="PieChart_pie_chart_data__iKrW1",mS="PieChart_pie_chart_icon__4VF68",dS="PieChart_pie_chart_legend__SzWES",uS="PieChart_pie_chart_line__NFQ2x",hS="PieChart_pie_chart_color__oRdh3",pS="PieChart_pie_chart_percent__HMOyT",fS="PieChart_pie_chart_text__u9VHo";const gS=function(e){let{parts:t,options:n}=e;const{t:a}=Bt(),s=t.map((e=>(0,zo.jsxs)("p",{className:uS,children:[(0,zo.jsx)("span",{className:hS,style:{backgroundColor:n.color.get(e.title).first}}),(0,zo.jsx)("span",{className:pS,children:"".concat(e.width,"%")}),(0,zo.jsx)("span",{className:fS,children:a(e.title)})]},e.title)));return(0,zo.jsx)("div",{className:dS,children:s})};function yS(e){let{title:t,options:n,value:a,details:s,center:o,className:r}=e;if(0===a)return null;const i=s||function(e,t){return{a:e,b:t-e}}(a||100,n.max||100),l=qb(i,n);return(0,zo.jsxs)("div",{className:"".concat(lS," ").concat(r||""),children:[(0,zo.jsx)(em,{title:t||""}),(0,zo.jsxs)("div",{className:cS,children:[(0,zo.jsx)("div",{className:mS,children:(0,zo.jsx)(iS,{parts:l,options:n,center:o})}),(0,zo.jsx)(gS,{parts:l,options:n})]})]})}yS.defaultProps={value:void 0,details:void 0,className:"",title:""};const vS=yS;const bS=function(){const{t:e}=Bt(),t=Fo.dataGrip.pr.statistic,n=fs.getPRByGroups(t,"workDays"),a=nw({order:n.order,limit:3,suffix:"page.team.pr.tasks"}),s=fs.getPRByGroups(t,"delayDays"),o=nw({order:s.order,limit:3,suffix:"PR"}),r=Math.round(n.weightedAverage),i=Math.round(s.weightedAverage),l=r+i,c=nw({order:["page.team.pr.word","page.team.pr.delay"],suffix:"page.team.pr.days"});return console.log(l.toFixed(1)),(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(vS,{title:"page.team.pr.workDays",options:a,details:n.details}),(0,zo.jsx)(vS,{title:"page.team.pr.middleTimeRelease",options:c,details:{"page.team.pr.work":r,"page.team.pr.delay":i}})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(vS,{title:"page.team.pr.delayDays",options:o,details:s.details}),(0,zo.jsx)(Ur,{text:e("page.team.pr.description1")}),(0,zo.jsx)(Ur,{text:e("page.team.pr.description2")}),(0,zo.jsx)(Ur,{text:e("page.team.pr.description3")})]})]})};function wS(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=nw({order:["page.team.pr.chart.1day","page.team.pr.chart.3day","page.team.pr.chart.7day","page.team.pr.chart.14day","page.team.pr.chart.30day","page.team.pr.chart.more"],limit:3}),r=nw({max:xw(t,"weightedAverage"),order:["page.team.pr.work","page.team.pr.delay"],suffix:"page.team.pr.days"});return(0,zo.jsxs)(Hb,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,fullScreenMode:"author",children:[(0,zo.jsx)(Vb,{isSortable:!0,template:vm.STRING,title:"page.team.pr.author",properties:"author",width:250}),(0,zo.jsx)(Vb,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,zo.jsx)(ew,{options:o,details:e})}),(0,zo.jsx)(Vb,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,zo.jsx)(ew,{options:o,details:e})}),(0,zo.jsx)(Vb,{properties:"weightedAverage",template:vm.SHORT_NUMBER}),(0,zo.jsx)(Vb,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:(e,t)=>(0,zo.jsx)(ew,{options:r,value:t.weightedAverage,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})}wS.defaultProps={response:void 0};const kS=wS;function _S(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=nw({max:xw(t,"workDays")}),r=nw({max:xw(t,"delayDays")}),i=nw({order:Fo.dataGrip.author.list});return(0,zo.jsxs)(Hb,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?2:void 0,fullScreenMode:"all",children:["print"===s?(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,zo.jsx)(Vb,{isSortable:!0,template:(e,t)=>(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(Mw,{task:e}),(0,zo.jsx)(Bw,{prId:null===t||void 0===t?void 0:t.prId})]}),title:"page.team.pr.task",properties:"task",width:120}),(0,zo.jsx)(Vb,{isSortable:!0,template:vm.STRING,title:"page.team.pr.firstCommitTime",properties:"beginTaskTime",formatter:Vn,width:130}),(0,zo.jsx)(Vb,{isSortable:!0,template:vm.STRING,title:"page.team.pr.lastCommitTime",properties:"endTaskTime",formatter:Vn,width:130}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"workDays",width:40}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.pr.all.workDays",properties:"workDays",minWidth:100,template:e=>(0,zo.jsx)(ew,{options:o,value:e})}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"commits",width:40}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.pr.commits",properties:"commitsByAuthors",minWidth:100,template:e=>(0,zo.jsx)(ew,{options:i,details:e})}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"delayDays",width:40}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.pr.all.delayDays",properties:"delayDays",minWidth:200,template:e=>(0,zo.jsx)(ew,{options:r,value:e})}),(0,zo.jsx)(Vb,{isSortable:!0,template:vm.STRING,title:"page.team.pr.date",properties:"milliseconds",formatter:Vn,width:130}),(0,zo.jsx)(Vb,{isSortable:!0,template:vm.STRING,title:"page.team.pr.mergeAuthor",properties:"author",width:250})]})}_S.defaultProps={mode:void 0,response:void 0};const xS=_S,TS=dn((e=>{let{mode:t}=e;const n=Fo.dataGrip.pr.statistic.filter((e=>e.delayDays>3));if((null===n||void 0===n?void 0:n.length)<2)return"print"!==t?(0,zo.jsx)(Pc,{}):null;const a=Fo.dataGrip.pr.statisticByName,s=Object.values(a);return(0,zo.jsxs)(zo.Fragment,{children:[!Ti.isOpen&&(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.team.pr.oneTaskDays"}),(0,zo.jsx)(bS,{})]}),Ti.isOpen&&"author"!==Ti.mode?null:(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.team.pr.statByAuthors"}),(0,zo.jsxs)(Hc,{to:"response",loader:(e,n)=>Xc({content:s,pagination:e,sort:n,mode:t}),children:[(0,zo.jsx)(kS,{mode:t,rowsForExcel:s}),(0,zo.jsx)(Zc,{})]})]}),(0,zo.jsx)(nS,{}),Ti.isOpen&&"all"!==Ti.mode?null:(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.team.pr.longDelay"}),(0,zo.jsxs)(Hc,{to:"response",loader:(e,a)=>Xc({content:n,pagination:"print"===t?{size:20}:e,sort:a}),children:[(0,zo.jsx)(xS,{mode:t,rowsForExcel:n}),"print"!==t&&(0,zo.jsx)(Zc,{})]})]})]})})),SS="table-of-contents_table_of_contents__Becki",CS="table-of-contents_table_of_contents_title__3qPIE",ES="table-of-contents_table_of_contents_item__6hX4X";const AS=function(e){let{titles:t}=e;const{t:n}=Bt(),a=(t||[]).map((e=>(0,zo.jsx)("a",{className:ES,href:"#".concat(e),children:n(e||"")},e)));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{className:CS,title:"page.print.tableOfContents"}),(0,zo.jsx)("nav",{className:SS,children:a})]})},NS="cover_cover__VAtbV",jS="cover_cover_title__l1TfU",DS="cover_cover_sub_title__u8Khz",OS=dn((()=>{const{t:e}=Bt();return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsxs)("div",{className:NS,children:[(0,zo.jsx)("h1",{className:jS,children:e("page.print.title")}),(0,zo.jsx)("h2",{className:DS,children:document.title}),(0,zo.jsx)(AS,{titles:["page.team.total.titleA","page.team.total.titleB","page.team.scope.title","page.team.author.title","page.team.type.title","page.team.pr.oneTaskDays","page.team.pr.statByAuthors","page.team.pr.longDelay","page.team.hours.title","page.common.words.title"]}),(0,zo.jsx)(Ur,{text:e("page.print.description")})]}),(0,zo.jsx)($_,{}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(xk,{mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(Ew,{mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(gx,{mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(TS,{mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(bx,{mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(Hx,{mode:"print"}),(0,zo.jsx)(mk,{mode:"print"}),(0,zo.jsx)(wk,{mode:"print"})]})})),PS=OS;function RS(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=xw(t,"delayInDays"),r=xw(t,"waitingInDays"),i=nw({max:Math.max(o,r),suffix:"page.team.release.chart"});return(0,zo.jsxs)(Hb,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,zo.jsx)(Vb,{isFixed:!0,template:vm.DETAILS,width:40,formatter:e=>{const t=e.pr.map((e=>{var t,n,a;return null===Fo||void 0===Fo||null===(t=Fo.dataGrip)||void 0===t||null===(n=t.pr)||void 0===n||null===(a=n.pr)||void 0===a?void 0:a[e.prId]})).filter((e=>null===e||void 0===e?void 0:e.firstCommit));return(0,zo.jsx)(xS,{response:{content:t}})}}),(0,zo.jsx)(Vb,{isFixed:!0,template:vm.STRING,title:"page.team.release.title",properties:"title",width:200}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.release.from",width:150,properties:"from",formatter:Vn}),(0,zo.jsx)(Vb,{template:vm.STRING,title:"page.team.release.to",width:150,properties:"to",formatter:Vn}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,title:"page.team.release.prLength",properties:"prLength"}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"delayInDays"}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.release.delay",properties:"delayInDays",width:170,minWidth:170,template:e=>(0,zo.jsx)(ew,{options:i,value:e})}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"waitingInDays"}),(0,zo.jsx)(Vb,{isSortable:!0,title:"page.team.release.waiting",properties:"waitingInDays",width:170,minWidth:170,template:e=>(0,zo.jsx)(ew,{options:i,value:e})})]})}RS.defaultProps={response:void 0};const IS=dn((e=>{let{mode:t}=e;const n=Fo.dataGrip.release.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,zo.jsx)(Pc,{}):null:(0,zo.jsxs)(zo.Fragment,{children:["print"===t?(0,zo.jsx)(em,{title:"sidebar.team.extension"}):(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{})]}),(0,zo.jsxs)(Hc,{to:"response",loader:e=>Xc({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(Fo.hash),children:[(0,zo.jsx)(RS,{mode:t,rowsForExcel:n}),(0,zo.jsx)(Zc,{})]})]})})),LS=dn((e=>{let t,{page:n}=e;return Ti.isOpen&&(t="fullscreen"),Sl.processing&&(t="print"),"total"===n?(0,zo.jsx)($_,{}):"scope"===n?(0,zo.jsx)(xk,{mode:t}):"author"===n?(0,zo.jsx)(Ew,{mode:t}):"type"===n?(0,zo.jsx)(gx,{mode:t}):"pr"===n?(0,zo.jsx)(TS,{mode:t}):"day"===n?(0,zo.jsx)(O_,{}):"week"===n?(0,zo.jsx)(bx,{mode:t}):"month"===n?(0,zo.jsx)(Hx,{mode:t}):"hours"===n?(0,zo.jsx)(mk,{mode:t}):"files"===n?(0,zo.jsx)(lx,{}):"removedFiles"===n?(0,zo.jsx)(lx,{type:"removed"}):"extension"===n?(0,zo.jsx)(hx,{mode:t}):"release"===n?(0,zo.jsx)(IS,{mode:t}):"commits"===n?(0,zo.jsx)(Yw,{}):"changes"===n?(0,zo.jsx)(Xw,{}):"words"===n?(0,zo.jsx)(wk,{mode:t}):"building"===n?(0,zo.jsx)(tS,{}):"print"===n?(0,zo.jsx)(PS,{}):"tasks"===n?(0,zo.jsx)(Vx,{}):(0,zo.jsx)($_,{})}));function FS(){const{type:e}=Q();return e&&"team"!==e?null:(0,zo.jsx)(lc,{getViewById:e=>(0,zo.jsx)(LS,{page:e})})}const MS=dn((e=>{let{filters:n,onChange:a}=e;const{type:s,page:o,userId:r}=Q(),i=J(),l=parseInt(r||"0",10)||0,c=Fo.dataGrip.author.list.map(((e,t)=>({id:t,title:e}))),m=Fo.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],d=(0,t.useMemo)((()=>A_(m)),[m]);return(0,zo.jsxs)("div",{className:C_,children:[(0,zo.jsx)(S_,{title:"page.team.tree.filters.author",value:l,className:E_,options:c,onChange:e=>{i("/".concat(s,"/").concat(o,"/").concat(e))}}),"day"===o?(0,zo.jsx)(S_,{reverse:!0,title:"page.team.tree.filters.author",value:(null===n||void 0===n?void 0:n.week)||m[m.length-1].week,className:E_,options:d.reverse(),onChange:e=>{a({...n,week:e})}}):null]})})),WS=MS,BS=dn((e=>{let{user:t}=e;const n=Fo.dataGrip.timestamp.statisticByAuthor[t.author];return(0,zo.jsx)(Zw,{statistic:n})})),zS=dn((e=>{let{user:t}=e;const n=Fo.dataGrip.timestamp.statisticByAuthor[t.author];return(0,zo.jsx)($w,{statistic:n})})),US=dn((e=>{let{user:t}=e;return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.person.hours.title"}),(0,zo.jsx)(hc,{template:"table",children:(0,zo.jsx)(lk,{statistic:t})})]})}));const HS=function(){return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)("p",{className:Ec,children:(0,xe.t)("uiKit.nothingFound.staff.title")}),(0,zo.jsx)("p",{className:Ac,children:(0,xe.t)("uiKit.nothingFound.staff.description1")}),(0,zo.jsx)("p",{className:Ac,children:(0,xe.t)("uiKit.nothingFound.staff.description2")})]})},GS=dn((e=>{let{user:t}=e;const n=t,a=Fo.dataGrip.scoring.total,s=Fo.dataGrip.scoring.statisticByName[t.author],o=Fo.dataGrip.timestamp.statisticByAuthor[n.author],r=n.tasks.length;return n.isStaff?(0,zo.jsx)(Pc,{children:(0,zo.jsx)(HS,{})}):(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.money.title.total"}),(0,zo.jsxs)("div",{children:[(0,zo.jsx)(K_,{value:$n(n.moneyAll),icon:"./assets/cards/money_total.png",title:"page.person.money.moneyAll.title",description:"page.person.money.moneyAll.description",scoring:{value:s.moneyAll,total:a.moneyAll}}),(0,zo.jsx)(K_,{value:$n(n.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.person.money.moneyWorked.title",description:"page.person.money.moneyWorked.description",scoring:{value:s.moneyWorked,total:a.moneyWorked}}),(0,zo.jsx)(K_,{value:$n(n.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.person.money.moneyLosses.title",description:"page.person.money.moneyLosses.description",scoring:{value:s.moneyLosses,total:a.moneyLosses}}),(0,zo.jsx)(K_,{value:$n(o.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description",scoring:{value:s.weekendPayment,total:a.weekendPayment}})]})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.money.title.middle"}),0===r?(0,zo.jsx)(Pc,{}):(0,zo.jsxs)("div",{children:[(0,zo.jsx)(K_,{size:"l",value:r?$n(n.moneyWorked/r,0):null,icon:"./assets/cards/money_task.png",title:"page.person.money.tasks.title",description:"page.person.money.tasks.description",scoring:{value:s.moneyForTask,total:a.moneyForTask}}),(0,zo.jsx)(K_,{size:"l",value:r?$n(n.moneyWorked/n.commits,0):null,icon:"./assets/cards/money_work.png",title:"page.person.money.commits.title",description:"page.person.money.commits.description",scoring:{value:s.moneyForCommit,total:a.moneyForCommit}})]})]})]})})),VS=dn((e=>{let{user:t,mode:n}=e;const a=t.wordStatistics;return(0,zo.jsx)(bk,{mode:n,statistic:a})}));function KS(e){let{size:t}=e;const n=[P_,U_];return"s"===t&&n.push(B_),"l"===t&&n.push(z_),(0,zo.jsx)(ow,{className:n.join(" ")})}KS.defaultProps={size:"m"};const qS=KS,$S=dn((e=>{let{user:t}=e;const n=t,a=Fo.dataGrip.timestamp.statisticByAuthor[n.author],s=Fo.dataGrip.scoring.statisticByName[t.author],o=Fo.dataGrip.scoring.total,r=n.tasks.length;return n.isStaff?(0,zo.jsx)(Pc,{children:(0,zo.jsx)(HS,{})}):(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.speed.task"}),0===r?(0,zo.jsx)(Pc,{}):(0,zo.jsxs)("div",{children:[(0,zo.jsx)(K_,{value:n.daysForTask&&r?Yn(n.daysForTask):null,icon:"./assets/cards/month.png",title:"page.person.speed.days.title",description:"page.person.speed.days.description",scoring:{value:s.daysForTask,total:o.daysForTask}}),(0,zo.jsx)(K_,{value:r?(n.commits/r).toFixed(1):null,icon:"./assets/cards/commits.png",title:"page.person.speed.commits.title",description:"page.person.speed.commits.description",scoring:{value:s.commitsForTask,total:o.commitsForTask}}),(0,zo.jsx)(K_,{value:r?n.changesForTask:null,icon:"./assets/cards/lines.png",title:"page.person.speed.line.title",description:"page.person.speed.line.description",scoring:{value:s.changesForTask,total:o.changesForTask}}),(0,zo.jsx)(qS,{})]})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.speed.max"}),(0,zo.jsxs)("div",{children:[(0,zo.jsx)(K_,{size:"l",value:a.tasksByTimestampCounter.max,icon:"./assets/cards/tasks.png",title:"page.person.speed.tasks.title",description:"page.person.speed.tasks.description",scoring:{value:s.speedMaxTasks,total:o.speedMaxTasks}}),(0,zo.jsx)(K_,{size:"l",value:a.commitsByTimestampCounter.max,icon:"./assets/cards/commits.png",title:"page.person.speed.maxCommits.title",description:"page.person.speed.maxCommits.description",scoring:{value:s.speedMaxCommits,total:o.speedMaxCommits}})]})]})]})})),YS={achievement_container:"styles_achievement_container__+OdlC",achievement:"styles_achievement__KB0AO",achievement_icon_container:"styles_achievement_icon_container__0xQ3d",achievement_icon:"styles_achievement_icon__YbtA0",achievement_icon_svg:"styles_achievement_icon_svg__1pahq",achievement_title:"styles_achievement_title__AUtfn",achievement_description:"styles_achievement_description__FkUIC",achievement_good:"styles_achievement_good__12XCY",achievement_bad:"styles_achievement_bad__BmbF0"};const ZS=function(e){let{code:t}=e;const{t:n}=Bt();if(!bn[t])return null;const a=n("achievements.".concat(t,".title")),s=n("achievements.".concat(t,".description")),o=[YS.achievement_good,YS.achievement_middle,YS.achievement_bad][bn[t]-1];return(0,zo.jsxs)("div",{className:YS.achievement,children:[(0,zo.jsx)("div",{className:YS.achievement_icon_container,children:(0,zo.jsx)("div",{className:"".concat(YS.achievement_icon," ").concat(o||""),children:(0,zo.jsx)("img",{className:YS.achievement_icon_svg,src:"./assets/achievements/".concat(t,".svg")})})}),(0,zo.jsx)("div",{className:YS.achievement_title,children:a}),(0,zo.jsx)("div",{className:YS.achievement_description,children:s})]})};const XS=function(e){let{list:t}=e;const n=null===t||void 0===t?void 0:t.map((e=>(0,zo.jsx)(ZS,{code:e},e)));return(0,zo.jsx)("div",{className:YS.achievement_container,children:n})};const JS="styles_get_list__xuTNI",QS="styles_get_list_container__YnNGO",eC="styles_get_list_title__J-b47",tC="styles_get_list_icon__I4DqV",nC="styles_get_list_big_number__RbCn9",aC="styles_get_list_task__ZHFFW",sC="styles_get_list_pr__sE+Qx",oC="styles_get_list_date__rcfNx";const rC=function(e){var t;let{commit:n,mode:a}=e;const s=((null===(t=n.taskNumber)||void 0===t?void 0:t.length)||1)>5?nC:"",o=Os.pr.prByTask[n.task];return(0,zo.jsxs)("div",{className:JS,children:[(0,zo.jsxs)("div",{className:eC,children:[(0,zo.jsx)(Mw,{task:n.task,className:aC}),"print"!==a&&(0,zo.jsx)(Bw,{text:"pull request",prId:o,className:sC})]}),(0,zo.jsx)("div",{className:"".concat(tC," ").concat(s),children:n.taskNumber}),(0,zo.jsx)("div",{className:oC,children:Vn(n.date)})]})};const iC=function(e){let{list:t,mode:n}=e;const a=null===t||void 0===t?void 0:t.map((e=>(0,zo.jsx)(rC,{commit:e,mode:n},e.taskNumber)));return(0,zo.jsx)("div",{className:QS,children:a})};function lC(e){let{title:t,achievements:n}=e;const{t:a}=Bt();return null!==n&&void 0!==n&&n.length?(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(Ur,{text:"# ".concat(a(t))}),(0,zo.jsx)(XS,{list:n})]}):null}const cC=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=Fo.dataGrip.get.getsByAuthor[t.author],o=Fo.dataGrip.scoring.statisticByName[t.author],r=Fo.dataGrip.scoring.total,i=a.tasks.length,l=Dn.authors[a.author];return(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.total.title"}),(0,zo.jsxs)("div",{children:[!1,(0,zo.jsx)(K_,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description",scoring:{value:o.daysWorked,total:r.daysWorked}}),(0,zo.jsx)(K_,{value:i||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description",scoring:{value:o.tasks,total:r.tasks}}),(0,zo.jsx)(K_,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description",scoring:{value:o.daysLosses,total:r.daysLosses}}),(0,zo.jsx)(K_,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description",scoring:{value:o.commits,total:r.commits}}),(0,zo.jsx)(qS,{size:"l"})]}),!1,!1]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.achievement.title"}),(0,zo.jsx)(lC,{title:"page.person.achievement.positive",achievements:l[gn-1]}),(0,zo.jsx)(lC,{title:"page.person.achievement.normal",achievements:l[yn-1]}),(0,zo.jsx)(lC,{title:"page.person.achievement.negative",achievements:l[vn-1]}),(0,zo.jsx)(Ur,{text:n("page.person.achievement.description")}),(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.person.gets.title"}),(0,zo.jsx)(iC,{list:s}),(0,zo.jsx)(Ur,{text:n("page.person.gets.description")})]}):null]})]})})),mC=cC;function dC(e){let{response:t,updateSort:n,name:a,mode:s}=e;if(!t)return null;const o=nw({max:xw(t,"authors",a),order:Fo.dataGrip.type.list}),r=nw({max:7,order:["page.person.week.workDay","page.person.week.weekends"],suffix:"page.person.week.days"}),i=nw({max:xw(t,"taskInDay",a)});return(0,zo.jsxs)(Hb,{rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,zo.jsx)(Vb,{isFixed:!0,template:vm.STRING,title:"page.person.week.date",properties:"timestamp",formatter:Zn,width:200}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"authors",formatter:e=>e[a]||0}),(0,zo.jsx)(Vb,{title:"page.person.week.tasks",template:e=>(0,zo.jsx)(ew,{options:o,value:e.authors[a],details:e.typeByAuthor[a]}),width:200}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"workDays",formatter:e=>e[a]||0}),(0,zo.jsx)(Vb,{title:"page.person.week.workDays",template:e=>{let[t,n]=e;return(0,zo.jsx)(ew,{options:r,value:t+n,details:{"page.person.week.workDay":t,"page.person.week.weekends":n}})},formatter:e=>(null===e||void 0===e?void 0:e.workDays[a])>5?[5,(null===e||void 0===e?void 0:e.workDays[a])-5]:[null===e||void 0===e?void 0:e.workDays[a],0],width:200}),(0,zo.jsx)(Vb,{template:vm.SHORT_NUMBER,properties:"taskInDay",formatter:e=>Yn(e[a]||0)}),(0,zo.jsx)(Vb,{title:"page.person.week.taskInDay",properties:"taskInDay",template:e=>(0,zo.jsx)(ew,{options:i,value:e[a]}),width:200})]})}dC.defaultProps={response:void 0};const uC=dn((e=>{var t;let{user:n,mode:a}=e;const s=n,o=Fo.dataGrip.week.statistic.filter((e=>e.authors[s.author]));if(null===o||void 0===o||!o.length)return(0,zo.jsx)(Pc,{});const r=null===(t=Fo.dataGrip.recommendations.person)||void 0===t?void 0:t.byWeek[s.author];return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(_w,{mode:a,recommendations:r}),(0,zo.jsxs)(Hc,{to:"response",loader:(e,t)=>Xc({content:o,pagination:e,sort:t}),children:[(0,zo.jsx)(dC,{name:s.author,mode:a}),"print"!==a&&(0,zo.jsx)(Zc,{})]})]})})),hC=uC,pC=dn((e=>{let{user:t}=e;const n=t,a=Fo.dataGrip.timestamp.statisticByAuthor[n.author],s=a.commitsByTimestampCounter.max;return(0,zo.jsx)(hc,{template:"table",children:(0,zo.jsx)(zx,{showEvents:!1,maxCommits:s,authors:[n],wordDays:a.allCommitsByTimestamp})})})),fC=dn((e=>{let{user:t,mode:n}=e;const a=Fo.dataGrip.tasks.statistic.filter((e=>e.author===t.author||(e.authors||[]).includes(t.author)));return null!==a&&void 0!==a&&a.length?(0,zo.jsxs)(Hc,{to:"response",loader:(e,t)=>Xc({content:a,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(Fo.hash).concat(t.author),children:[(0,zo.jsx)(Gx,{mode:n,rowsForExcel:a}),(0,zo.jsx)(Zc,{})]}):"print"!==n?(0,zo.jsx)(Pc,{}):null}));function gC(e){let{response:t,user:n}=e;return t?(0,zo.jsx)(a_,{days:t.content,author:n}):null}gC.defaultProps={response:void 0};const yC=dn((e=>{let{user:t,filters:n}=e;const a=Fo.dataGrip.timestamp.statistic.allCommitsByTimestamp||[];if(null===a||void 0===a||!a.length)return(0,zo.jsx)(Pc,{});const s=function(e,t){return t.filter((t=>t.week===e.week)).slice(0,7)}({week:n.week,user:t.author},a);return null!==s&&void 0!==s&&s.length?(0,zo.jsx)(zo.Fragment,{children:(0,zo.jsx)(hc,{template:"table",children:(0,zo.jsxs)(Hc,{to:"response",loader:()=>Xc({content:s}),watch:JSON.stringify(n),children:[(0,zo.jsx)(gC,{user:t.author}),(0,zo.jsx)(Zc,{})]})})}):(0,zo.jsx)(Pc,{})})),vC="print_place_for_photo__WPPt6",bC=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=a.tasks.length;return(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(K_,{value:"",icon:"./assets/cards/work_days.png",title:"page.person.print.photo.title"}),(0,zo.jsx)("div",{className:vC,children:n("page.person.print.photo.description")})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:a.author}),(0,zo.jsxs)("div",{children:[(0,zo.jsx)(K_,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,zo.jsx)(K_,{value:s||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,zo.jsx)(K_,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,zo.jsx)(K_,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"})]})]})]})})),wC=bC;function kC(e){let{title:t,achievements:n}=e;return null!==n&&void 0!==n&&n.length?(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(Ur,{text:"# ".concat(t)}),(0,zo.jsx)(XS,{list:n})]}):null}const _C=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=Fo.dataGrip.get.getsByAuthor[a.author],o=Dn.authors[a.author];return(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:"page.person.achievement.title"}),(0,zo.jsx)(kC,{title:"page.person.achievement.positive",achievements:o[gn-1]})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(em,{title:n("_")}),(0,zo.jsx)(kC,{title:"page.person.achievement.normal",achievements:o[yn-1]}),(0,zo.jsx)(kC,{title:"page.person.achievement.negative",achievements:o[vn-1]}),(0,zo.jsx)("br",{}),(0,zo.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.person.gets.title"}),(0,zo.jsx)(iC,{mode:"print",list:s}),(0,zo.jsx)(Ur,{text:n("page.person.gets.description")})]}):null]})]})})),xC=_C,TC=dn((e=>{let{user:t}=e;const{t:n}=Bt();return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsxs)("div",{className:NS,children:[(0,zo.jsx)("h1",{className:jS,children:n("page.print.title")}),(0,zo.jsx)("h2",{className:DS,children:t.author}),(0,zo.jsx)(AS,{titles:["page.team.total.titleA","page.person.speed.task","page.person.speed.max","page.team.total.titleB","page.person.achievement.title","page.person.hours.title","page.common.words.title"]}),(0,zo.jsx)(Ur,{text:n("page.print.description")})]}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(wC,{user:t}),(0,zo.jsx)($S,{user:t}),(0,zo.jsx)(GS,{user:t}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(xC,{user:t}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(US,{user:t}),(0,zo.jsx)(hC,{user:t,mode:"print"}),(0,zo.jsx)(nS,{}),(0,zo.jsx)(pC,{user:t}),(0,zo.jsx)(VS,{user:t,mode:"print"})]})})),SC=TC;const CC=dn((e=>{let{userId:n}=e;const{t:a}=Bt(),{type:s,page:o,userId:r}=Q(),i=Fo.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],l=i.length?i[i.length-1].week:0,[c,m]=(0,t.useState)({week:l}),d=Fo.dataGrip.author.statistic[n||r||0];if("person"!==s||!d)return null;const u=function(e,t){return function(n){let a;return Ti.isOpen&&(a="fullscreen"),Sl.processing&&(a="print"),"total"===n?(0,zo.jsx)(mC,{user:e}):"money"===n?(0,zo.jsx)(GS,{user:e}):"week"===n?(0,zo.jsx)(hC,{user:e,mode:a}):"month"===n?(0,zo.jsx)(pC,{user:e}):"hours"===n?(0,zo.jsx)(US,{user:e}):"commits"===n?(0,zo.jsx)(zS,{user:e}):"changes"===n?(0,zo.jsx)(BS,{user:e}):"words"===n?(0,zo.jsx)(VS,{user:e,mode:a}):"speed"===n?(0,zo.jsx)($S,{user:e}):"day"===n?(0,zo.jsx)(yC,{user:e,filters:t}):"print"===n?(0,zo.jsx)(SC,{user:e}):"tasks"===n?(0,zo.jsx)(fC,{user:e}):(0,zo.jsx)(mC,{user:e})}}(d,c);return(0,zo.jsxs)(zo.Fragment,{children:["print"!==o&&(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:a("common.filters")}),(0,zo.jsx)(WS,{filters:c,onChange:m})]}),(0,zo.jsx)(lc,{getViewById:u})]})})),EC=CC,AC=dn((()=>{const e=Fo.dataGrip.author.statistic,t=Object.entries(e).filter((e=>{let[,t]=e;return!t.isStaff})).map((e=>{let[t,n]=e;return(0,zo.jsx)(SC,{user:n},t)}));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(PS,{}),t]})})),NC="Console_console__5nFvk",jC="Console_console_header__XP1IR",DC="Console_console_body__5PXuM",OC="Console_console_header_icon__oXixF",PC="Console_console_copy__LHjsv";function RC(e){let{className:t,textForCopy:n,children:a}=e;return(0,zo.jsxs)("div",{className:"".concat(NC," ").concat(t||""),children:[(0,zo.jsxs)("div",{className:"".concat(jC),children:[(0,zo.jsx)("span",{className:"".concat(OC)}),(0,zo.jsx)("span",{className:"".concat(OC)}),(0,zo.jsx)("span",{className:"".concat(OC)})]}),(0,zo.jsx)("div",{className:"".concat(DC),children:a||n}),n?(0,zo.jsx)(Ko,{mode:"second",className:"".concat(PC),onClick:()=>{Gr(n),Hr.Z.show((0,xe.t)("uiKit.console.notification"))},children:(0,xe.t)("uiKit.console.button")}):null]})}RC.defaultProps={textForCopy:void 0,children:void 0,className:""};const IC=RC,LC="styles_welcome__owZYZ",FC="styles_welcome_console__dmg4D",MC="styles_welcome_row__rormW",WC="styles_welcome_warning__sf+kx",BC="styles_welcome_warning_text__vMmIf",zC="styles_welcome_description__lB3jg",UC="styles_welcome_first_title__zay7R",HC="styles_welcome_last_title__Ef7FS",GC="styles_welcome_title_link__csDka";function VC(){return(0,zo.jsxs)("h4",{className:WC,children:[(0,zo.jsx)(Ur,{text:(0,xe.t)("page.welcome.warning1"),className:BC}),(0,zo.jsx)(Ur,{text:(0,xe.t)("page.welcome.warning2"),className:BC})]})}const KC=function(){const e=window.ym;return(0,zo.jsxs)(zo.Fragment,{children:[e&&(0,zo.jsx)(VC,{}),(0,zo.jsx)("section",{className:LC,children:(0,zo.jsxs)("div",{className:MC,children:[(0,zo.jsx)("h2",{className:UC,children:(0,xe.t)("page.welcome.step1")}),(0,zo.jsx)(IC,{className:FC,textForCopy:'git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" > log.txt\n'}),(0,zo.jsx)(Ur,{text:(0,xe.t)("page.welcome.description"),className:"".concat(zC)}),(0,zo.jsxs)("h2",{className:HC,children:["page.welcome.step2"===(0,xe.t)("page.welcome.step2")?"":(0,xe.t)("page.welcome.step2"),(0,zo.jsxs)("label",{className:GC,children:[(0,xe.t)("page.welcome.step3"),(0,zo.jsx)("input",{multiple:!0,type:"file",style:{display:"none"},onChange:async e=>{const t=Array.from(e.target.files),n=await(0,Mo.BE)(t),a=(0,Mo.IM)(n);xo.show(),Fo.asyncSetCommits(a)}})]}),(0,xe.t)("page.welcome.step4")]})]})})]})};const qC=function(e){let{title:n,mode:a,disabled:s,className:o,options:r,onClick:i,children:l}=e;if(null===r||void 0===r||!r.length)return null;const[c,m]=(0,t.useState)(!1),d=Vo(a,s),u=null===r||void 0===r?void 0:r.map((e=>{var t,a,s;const o=null!==(t=null!==(a=null!==(s=null===e||void 0===e?void 0:e.title)&&void 0!==s?s:null===e||void 0===e?void 0:e.id)&&void 0!==a?a:e)&&void 0!==t?t:"";return(0,zo.jsx)("button",{className:Ho.ui_kit_button_menu,onClick:()=>{i&&i(e),m(!1)},children:o},n)}));return(0,zo.jsx)(zo.Fragment,{children:(0,zo.jsxs)("button",{title:n,className:"".concat(Ho.ui_kit_button," ").concat(d||""," ").concat(o||""),style:{position:"relative"},onClick:()=>{m(!c)},children:[l,c&&(0,zo.jsx)("div",{className:Ho.ui_kit_dialog,children:u})]})})};const $C=function(e){let{columns:t,className:n,children:a}=e;return(0,zo.jsx)("div",{className:"".concat(tl," ").concat(n||""),style:{columnCount:t||2},children:a})},YC="switch_ui_kit_switch__ITpXv",ZC="switch_ui_kit_switch_item__oGEAZ",XC="switch_ui_kit_switch_item_selected__poF9E",JC="switch_ui_kit_switch_item_disabled__7Inlc";const QC=function(e){let{title:t,description:n,help:a,error:s,className:o,disabled:r,multiple:i,value:l,options:c,onChange:m}=e;const d=l||0===l||!1===l;let u=l;d&&!Array.isArray(l)&&(u=[l]);const h=(c||[]).map(((e,t)=>{var n,a;const s="object"!==typeof e?{id:e,title:e}:e,o=d&&u.includes(null===s||void 0===s?void 0:s.id),l=[ZC];return o&&l.push(XC),r&&l.push(JC),(0,zo.jsx)("button",{className:l.join(" "),onClick:()=>{if(!m)return;let e=[null===s||void 0===s?void 0:s.id];i&&(e=o?u.filter((e=>e!==(null===s||void 0===s?void 0:s.id))):[...u,null===s||void 0===s?void 0:s.id].sort()),m(e)},children:null!==(n=null!==(a=null===s||void 0===s?void 0:s.title)&&void 0!==a?a:null===s||void 0===s?void 0:s.id)&&void 0!==n?n:""},"".concat(null===s||void 0===s?void 0:s.id,"_").concat(t))}));return(0,zo.jsx)(rl,{title:t,description:n,help:a,error:s,className:o,children:(0,zo.jsx)("div",{className:YC,children:h})})};function eE(e){let{title:t,description:n,help:a,error:s,className:o,value:r,placeholder:i,onChange:l}=e;const c=(null===r||void 0===r?void 0:r.length)>10?r.substring(0,10):r;return(0,zo.jsx)(rl,{title:t,description:n,help:a,error:s,className:o,children:(0,zo.jsx)("input",{type:"date",value:c,placeholder:i,className:il,onChange:e=>{l&&l("".concat(e.target.value,"T00:00:00.000Z"))}})})}eE.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const tE=eE;const nE=function(e){let{salary:n,index:a,onChange:s,onRemove:o}=e;const[r,i]=(0,t.useState)(!1);return(0,zo.jsxs)("div",{className:hl.salary,children:[(0,zo.jsx)(em,{title:xe.Z.get("page.settings.user.subTitle",a),className:r?"":hl.salary_title}),(0,zo.jsx)("div",{className:hl.salary_icons,children:(0,zo.jsx)("img",{className:hl.salary_icons_item,src:"./assets/list/arrow.svg",onClick:()=>i(!r)})}),r&&(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsxs)($C,{children:[(0,zo.jsx)(tE,{title:"page.settings.user.from",value:null===n||void 0===n?void 0:n.from,onChange:e=>{s({...n,from:e})}}),(0,zo.jsx)(QC,{disabled:!0,title:"page.settings.common.workDaysInWeek",value:n.workDaysInWeek,options:[1,2,3,4,5,6,7],onChange:e=>{s({...n,workDaysInWeek:e})}})]}),(0,zo.jsxs)($C,{children:[(0,zo.jsx)(Z_,{title:"page.settings.common.salary",value:null===n||void 0===n?void 0:n.value,onChange:e=>{s({...n,value:e})}}),(0,zo.jsx)(QC,{disabled:!0,title:"page.settings.common.currency",value:null===n||void 0===n?void 0:n.currency,options:["RUB","USD","EUR"],onChange:e=>{s({...n,currency:e})}})]}),(0,zo.jsxs)($C,{children:[(0,zo.jsx)(Z_,{title:"page.settings.common.workDaysInYear",value:null===n||void 0===n?void 0:n.workDaysInYear,onChange:e=>{s({...n,workDaysInYear:e})}}),(0,zo.jsx)(Z_,{title:"page.settings.common.vacationDaysInYear",value:null===n||void 0===n?void 0:n.vacationDaysInYear,onChange:e=>{s({...n,vacationDaysInYear:e})}})]}),(0,zo.jsx)("div",{className:hl.salary_footer,children:(0,zo.jsx)(Ko,{mode:"second",onClick:()=>ri.open().then((()=>o())),children:xe.Z.get("page.settings.form.remove")})})]})]})};const aE=function(e){let{user:t,onChange:n,onRemove:a}=e;const s=t.salary.map(((e,a)=>(0,zo.jsx)(nE,{index:a+1,salary:e,onChange:a=>{n({...t,salary:t.salary.map((t=>t.id===e.id?a:t))})},onRemove:()=>{n({...t,salary:t.salary.filter((t=>t.id!==e.id))})}},t.id)));return(0,zo.jsxs)(fc,{className:hl.user,onRemove:()=>ri.open().then((()=>a())),children:[(0,zo.jsx)(em,{title:(null===t||void 0===t?void 0:t.name)||"",className:hl.user_title}),s,(0,zo.jsx)("div",{className:hl.user_footer,children:(0,zo.jsx)(Ko,{mode:"slim",onClick:()=>{n({...t,salary:[...t.salary,Pn(Ii.state)]})},children:xe.Z.get("page.settings.form.addContract")})})]})},sE=dn((()=>{const e=Ii.state.defaultSalary;return e?(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.settings.common.title"}),(0,zo.jsxs)(fc,{children:[(0,zo.jsx)(QC,{disabled:!0,title:"page.settings.common.type.title",value:e.type,options:[{id:"full",title:xe.Z.get("page.settings.common.type.full")},{id:"part",title:xe.Z.get("page.settings.common.type.part")}],onChange:e=>{Ii.updateState("defaultSalary.type",null===e||void 0===e?void 0:e.id)}}),(0,zo.jsx)(QC,{disabled:!0,multiple:!0,title:"page.settings.common.workDaysInWeek",value:e.workDaysInWeek.map(((e,t)=>e?t+1:null)),options:[{id:1,title:Un(0,"short")},{id:2,title:Un(1,"short")},{id:3,title:Un(2,"short")},{id:4,title:Un(3,"short")},{id:5,title:Un(4,"short")},{id:6,title:Un(5,"short")},{id:7,title:Un(6,"short")}],onChange:e=>{const t=new Array(7).fill(0).map(((t,n)=>e.includes(n+1)));console.log(t),Ii.updateState("defaultSalary.workDaysInWeek",t)}}),(0,zo.jsxs)($C,{children:[(0,zo.jsx)(Z_,{title:"page.settings.common.salary",value:e.value,onChange:e=>{Ii.updateState("defaultSalary.value",e)}}),(0,zo.jsx)(Z_,{disabled:!0,title:"page.settings.common.tax",value:e.tax,onChange:e=>{Ii.updateState("defaultSalary.tax",e)}})]}),(0,zo.jsxs)($C,{children:[(0,zo.jsx)(Z_,{title:"page.settings.common.workDaysInYear",value:e.workDaysInYear,onChange:e=>{Ii.updateState("defaultSalary.workDaysInYear",e)}}),(0,zo.jsx)(Z_,{title:"page.settings.common.vacationDaysInYear",value:e.vacationDaysInYear,onChange:e=>{Ii.updateState("defaultSalary.vacationDaysInYear",e)}})]}),(0,zo.jsx)(QC,{title:"page.settings.common.currency",value:e.currency,options:["USD","EUR","RUB","CNY","JPY","KRW","CAD"],onChange:e=>{Ii.updateState("defaultSalary.currency",e)}})]})]}):null})),oE=sE,rE="checkbox_ui_kit_checkbox__4Wbr7",iE="checkbox_ui_kit_checkbox_box__OE3mx",lE="checkbox_ui_kit_checkbox_title__8wt7A";const cE=function(e){let{title:t,description:n,help:a,error:s,className:o,value:r,onChange:i}=e;const{t:l}=Bt(),c="checkbox-".concat(Math.ceil(1e4*Math.random()));return(0,zo.jsx)(rl,{description:n,help:a,error:s,className:o,children:(0,zo.jsxs)("div",{className:rE,children:[(0,zo.jsx)("input",{type:"checkbox",id:c,checked:!!r,className:iE,onChange:()=>{i(!r)}}),(0,zo.jsx)("label",{htmlFor:c,className:lE,children:l(t||"")})]})})},mE=dn((()=>{const{i18n:e}=Bt(),[n,a]=(0,t.useState)(document.title),[s,o]=(0,t.useState)(xe.Z.language);return(0,t.useEffect)((()=>{e.changeLanguage(s)}),[s]),(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.settings.document.title"}),(0,zo.jsxs)(fc,{children:[(0,zo.jsx)(Vc,{title:"page.settings.document.name",value:n,placeholder:xe.Z.get("common.title"),onChange:e=>{a(e),document.title=e||xe.Z.get("common.title"),To.C.title=!0}}),(0,zo.jsx)(ul,{title:"page.settings.document.language",value:s,options:[{id:"ru",title:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{id:"en",title:"English"},{id:"zh",title:"\u4e2d\u6587"},{id:"es",title:"Espa\xf1ol"},{id:"fr",title:"Fran\xe7ais"},{id:"pt",title:"Portugu\xeas"},{id:"de",title:"Deutsch"},{id:"ja",title:"\u65e5\u672c\u8a9e"}],onChange:(e,t)=>{xe.Z.language=t,o(t)}}),(0,zo.jsx)(cE,{value:Fo.isDepersonalized,title:"page.settings.document.depersonalize",onChange:()=>{Fo.depersonalized(!Fo.isDepersonalized)}})]})]})})),dE=dn((()=>{var e,t;return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.settings.links.title"}),(0,zo.jsxs)(fc,{children:[(0,zo.jsx)(Vc,{title:"page.settings.links.task",value:null===(e=Ii.state)||void 0===e||null===(t=e.linksPrefix)||void 0===t?void 0:t.task,placeholder:"https://jira.com/secure/RapidBoard.jspa?task=",onChange:e=>{Ii.updateState("linksPrefix.task",e)}}),(0,zo.jsx)(Vc,{title:"page.settings.links.pr",value:Ii.state.linksPrefix.pr,placeholder:"https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/",onChange:e=>{Ii.updateState("linksPrefix.pr",e)}})]})]})}));const uE=function(){const e=Fo.dataGrip.author.statistic.map((e=>"".concat(e.author," <").concat(e.firstCommit.email,"> <").concat(e.firstCommit.email,">"))).sort(),t=e.map((e=>(0,zo.jsx)("p",{children:e},e))),n=e.join("\r\n");return(0,zo.jsx)("div",{className:hl.races_track,children:(0,zo.jsx)(IC,{textForCopy:n,children:t})})},hE=dn((e=>{const t=Ii.state.employees;if(!e||!t)return null;const n=t.map((e=>e.name)),a=Fo.dataGrip.author.list.filter((e=>!n.includes(e))).map(((e,t)=>({id:t,title:e}))),s=Ii.state.employees.map((e=>(0,zo.jsx)(aE,{user:e,onChange:n=>{const a=t.map((t=>t.id===e.id?n:t));Ii.updateState("employees",a)},onRemove:()=>{const n=t.filter((t=>t.id!==e.id));Ii.updateState("employees",n)}},e.id)));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsxs)(hc,{children:[(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(mE,{}),(0,zo.jsx)(oE,{})]}),(0,zo.jsxs)(yc,{children:[(0,zo.jsx)(dE,{}),(0,zo.jsx)(em,{title:"page.settings.mailmap"}),(0,zo.jsx)(uE,{})]})]}),(0,zo.jsxs)(hc,{children:[(0,zo.jsx)(em,{title:"page.settings.user.title"}),t.length>0?s:(0,zo.jsx)(Pc,{message:"page.settings.user.notFound"}),a.length&&(0,zo.jsx)("div",{className:hl.buttons_footer,children:(0,zo.jsx)(qC,{options:a,onClick:e=>{Ii.updateState("employees",[...t,Rn(null===e||void 0===e?void 0:e.title,Ii.state,null===n||void 0===n?void 0:n.length)])},children:xe.Z.get("page.settings.form.addEmployee")})})]})]})})),pE=dn((()=>(0,zo.jsx)(Hc,{to:"response",loader:()=>Ln.loadSettings().then((e=>(Ii.setInitState(e),Promise.resolve(e)))),children:(0,zo.jsx)(hE,{})})));function fE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return t;for(let n in e){const a=e[n];null!==a&&void 0!==a&&a.title?t.push(a):"string"===typeof a?t.push({title:a}):fE(a,t)}return t}const gE=function(){const e=fE(xe.Z.translations[xe.Z.language].recommendations).map((e=>(0,zo.jsx)(vw,{recommendation:e},e[1]))),t=Object.entries(bn).sort(((e,t)=>e[1]-t[1])).map((e=>{let[t]=e;return(0,zo.jsx)(ZS,{code:t},t)}));return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)(em,{title:"page.person.achievement.title"}),(0,zo.jsx)("div",{style:{columnCount:3,marginBottom:"24px"},children:t}),(0,zo.jsx)("section",{children:e})]})};function yE(){return(0,zo.jsxs)(zo.Fragment,{children:[(0,zo.jsx)($r,{}),(0,zo.jsx)(ii,{}),(0,zo.jsxs)(de,{children:[(0,zo.jsx)(ce,{path:"/settings",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(pE,{})})}),(0,zo.jsx)(ce,{path:"/debug",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(gE,{})})}),(0,zo.jsx)(ce,{path:"/print",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(AC,{})})}),(0,zo.jsx)(ce,{path:"/:type/:page",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(FS,{})})}),(0,zo.jsx)(ce,{path:"/:type/:page/:userId",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(EC,{})})}),(0,zo.jsx)(ce,{path:"*",element:(0,zo.jsx)(tc,{children:(0,zo.jsx)(FS,{})})})]})]})}function vE(){return(0,zo.jsx)(de,{children:(0,zo.jsx)(ce,{path:"*",element:(0,zo.jsx)(KC,{})})})}const bE=dn((()=>{const e=Po.view;return(0,t.useEffect)((()=>{var e;const t=(null===(e=window)||void 0===e?void 0:e.report)||[];null!==t&&void 0!==t&&t.length?Fo.asyncSetCommits(t):Po.toggle(Oo.WELCOME)}),[]),(0,t.useEffect)((()=>{e!==Oo.INFO||window.location.hash||(window.location.hash="#/team/total")}),[e]),e===Oo.EMPTY?null:(0,zo.jsxs)(zo.Fragment,{children:[e===Oo.WELCOME&&(0,zo.jsx)(vE,{}),e===Oo.INFO&&(0,zo.jsx)(yE,{}),(0,zo.jsx)(oi,{}),(0,zo.jsx)(Uo,{onChange:(e,t)=>{"dump"===e&&Fo.asyncSetCommits(t)}})]})})),wE=bE,kE="styles_notifications__87i8g",_E="styles_notifications_item__5QkTA",xE="styles_notifications_item_icon__DfYX+",TE="styles_notifications_item_error__scoxJ",SE="styles_notifications_item_warning__L7TAD",CE="styles_notifications_item_success__Kkmlt",EE="styles_notifications_item_info__i59W4",AE="styles_notifications_item_title__nX-MS",NE="styles_notifications_item_description__ehatL";const jE=function(e){let{message:t}=e;const n={error:TE,warning:SE,success:CE,info:EE}[t.type||"success"]||EE,a={error:"./assets/notifications/alert.svg",warning:"./assets/notifications/warning.svg",success:"./assets/notifications/info.svg",info:"./assets/notifications/info.svg"}[t.type||"info"]||"./assets/notifications/info.svg";return(0,zo.jsxs)("div",{className:"".concat(_E," ").concat(n),children:[(0,zo.jsx)("img",{className:xE,src:a}),t.title&&(0,zo.jsx)("h6",{className:AE,children:t.title}),t.description&&(0,zo.jsx)("p",{className:NE,children:t.description})]})},DE=dn((()=>{const e=Hr.Z.messages.map((e=>(0,zo.jsx)(jE,{message:e},e.id)));return a.createPortal((0,zo.jsx)("div",{className:kE,children:e}),document.body)}));xe.Z.parse("de",Te),xe.Z.parse("en",Se),xe.Z.parse("es",Ce),xe.Z.parse("fr",Ee),xe.Z.parse("ja",Ae),xe.Z.parse("pt",Ne),xe.Z.parse("ru",je),xe.Z.parse("zh",De),(0,To.Z)((e=>{!function(e){const t=e||localStorage.getItem("language")||Ht||"en";xe.Z.language=t,vt.use(Rt).init({lng:t,debug:!1,resources:Ut})}(e.lang||e.language),br.setUrlParameters(e),Mn.loadUserSettings().then((()=>{window.onafterprint=()=>{Sl.endPrint()},(0,a.render)((0,zo.jsx)(t.StrictMode,{children:(0,zo.jsxs)(ve,{children:[(0,zo.jsx)(wE,{}),(0,zo.jsx)(DE,{})]})}),document.getElementById("root"))}))}))})()})();
-//# sourceMappingURL=main.c8bccb1f.js.map
\ No newline at end of file
+/*! For license information please see main.cb02c985.js.LICENSE.txt */
+(()=>{var __webpack_modules__={806:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getGlobalValue(){return window.report}function setGlobalValue(e){window.report=e||[]}function getStringsForParser(text){let temp=getGlobalValue();setGlobalValue([]);const firstText=text.slice(0,12);if("report.push("===firstText)try{eval(text)}catch(e){return void setGlobalValue(temp)}else setGlobalValue(text.split("\n"));return getGlobalValue()}async function getStringFromFileList(e){return(await Promise.all(e.map((e=>e.text())))).filter((e=>e)).map((e=>({key:e.substring(13,32),text:e}))).sort(((e,t)=>(e.key||"").localeCompare(t.key||""))).map((e=>e.text)).join("\n")}function getOnDrop(e,t){return async function(n){var a;n.preventDefault(),n.stopPropagation();const s=[...(null===n||void 0===n||null===(a=n.dataTransfer)||void 0===a?void 0:a.items)||[]].map((e=>"file"===e.kind?null===e||void 0===e?void 0:e.getAsFile():null)).filter((e=>e));if(console.log(s),e(!1),!s.length)return;const o=getStringsForParser(await getStringFromFileList(s));t("dump",o)}}function getShowDropZone(e){return function(t){t.preventDefault(),t.stopPropagation(),e(!0)}}__webpack_require__.d(__webpack_exports__,{BE:()=>getStringFromFileList,C4:()=>getShowDropZone,IM:()=>getStringsForParser,ae:()=>getOnDrop})},122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(98),s=n(289);class o{constructor(){this.timer=null,this.limit=6,this.messages=[],(0,a.rC)(this,{messages:a.LO,show:a.aD,startClearTimer:a.aD})}static getTime(){return(new Date).getTime()}show(e){this.messages.push({id:o.getTime(),title:s.Z.get((null===e||void 0===e?void 0:e.title)||e||"common.notifications.save"),description:(null===e||void 0===e?void 0:e.description)||"",type:(null===e||void 0===e?void 0:e.type)||"success"}),this.messages.length>this.limit&&this.messages.shift(),this.startClearTimer()}startClearTimer(){this.timer||(this.timer=setInterval((()=>{const e=o.getTime()-3500;this.messages=this.messages.filter((t=>(null===t||void 0===t?void 0:t.id)>e)),this.messages.length||(clearInterval(this.timer),this.timer=null)}),500))}}const r=new o},289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u,t:()=>h});var a=n(274),s=n(359),o=(0,s.Z)("addInTranslate"),r=(0,s.Z)("createPathByKey"),i=(0,s.Z)("addInObject");function l(e,t){const n=e.split(".");let a=this.translations;for(let s=0,o=n.length;sa&&(a=i.dependenciesState_)}n.length=s,e.newObserving_=null,o=t.length;for(;o--;){var l=t[o];0===l.diffValue_&&mt(l,e),l.diffValue_=0}for(;s--;){var c=n[s];1===c.diffValue_&&(c.diffValue_=0,ct(c,e))}a!==He.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}(e),at(a),s}function Je(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)mt(t[n],e);e.dependenciesState_=He.NOT_TRACKING_}function Qe(e){var t=et();try{return e()}finally{tt(t)}}function et(){var e=lt.trackingDerivation;return lt.trackingDerivation=null,e}function tt(e){lt.trackingDerivation=e}function nt(e){var t=lt.allowStateReads;return lt.allowStateReads=e,t}function at(e){lt.allowStateReads=e}function st(e){if(e.dependenciesState_!==He.UP_TO_DATE_){e.dependenciesState_=He.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=He.UP_TO_DATE_}}var ot=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},rt=!0,it=!1,lt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(rt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ot).version&&(rt=!1),rt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ot):(setTimeout((function(){it||a(35)}),1),new ot)}();function ct(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function mt(e,t){e.observers_.delete(t),0===e.observers_.size&&dt(e)}function dt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,lt.pendingUnobservations.push(e))}function ut(){lt.inBatch++}function ht(){if(0===--lt.inBatch){vt();for(var e=lt.pendingUnobservations,t=0;t",Tt=X(kt),St=X("action.bound",{bound:!0}),Ct=X(_t,{autoAction:!0}),Et=X("autoAction.bound",{autoAction:!0,bound:!0});function At(e){return function(t,n){return y(t)?Le(t.name||xt,t,e):y(n)?Le(t,n,e):v(n)?U(t,n,e?Ct:Tt):v(t)?z(X(e?_t:kt,{name:t,autoAction:e})):void 0}}var Nt=At(!1);Object.assign(Nt,Tt);var jt=At(!0);function Dt(e){return y(e)&&!0===e.isMobxAction}function Ot(e,t){var n,a;void 0===t&&(t=d);var s,o=null!=(n=null==(a=t)?void 0:a.name)?n:"Autorun";if(!t.scheduler&&!t.delay)s=new gt(o,(function(){this.track(l)}),t.onError,t.requiresObservable);else{var r=Rt(t),i=!1;s=new gt(o,(function(){i||(i=!0,r((function(){i=!1,s.isDisposed_||s.track(l)})))}),t.onError,t.requiresObservable)}function l(){e(s)}return s.schedule_(),s.getDisposer_()}Object.assign(jt,Ct),Nt.bound=z(St),jt.bound=z(Et);var Pt=function(e){return e()};function Rt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pt}var It="onBO";function Lt(e,t,n){return Ft("onBUO",e,t,n)}function Ft(e,t,n,a){var s="function"===typeof a?Qn(t,n):Qn(t),o=y(a)?a:n,r=e+"L";return s[r]?s[r].add(o):s[r]=new Set([o]),function(){var e=s[r];e&&(e.delete(o),0===e.size&&delete s[r])}}var Mt="always";function Wt(e){!0===e.isolateGlobalState&&function(){if((lt.pendingReactions.length||lt.inBatch||lt.isRunningReactions)&&a(36),it=!0,rt){var e=o();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),lt=new ot}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(lt.useProxies=t===Mt||"never"!==t&&"undefined"!==typeof Proxy),"ifavailable"===t&&(lt.verifyProxies=!0),void 0!==n){var s=n===Mt?Mt:"observed"===n;lt.enforceActions=s,lt.allowStateChanges=!0!==s&&s!==Mt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(lt[t]=!!e[t])})),lt.allowStateReads=!lt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=yt;yt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Bt(e,t,n,a){var s=D(t),o=Fn(e,a)[H];ut();try{A(s).forEach((function(e){o.extend_(e,s[e],!n||(!(e in n)||n[e]))}))}finally{ht()}return e}function zt(e,t){return Ut(Qn(e,t))}function Ut(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Ut)),n}var Ht=0;function Gt(){this.message="FLOW_CANCELLED"}Gt.prototype=Object.create(Error.prototype);var Vt=te("flow"),Kt=te("flow.bound",{bound:!0}),qt=Object.assign((function(e,t){if(v(t))return U(e,t,Vt);var n=e,a=n.name||"f?(g=d,d=null):g=d.sibling;var y=h(s,d,i[f],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(s,d),o=r(y,o,f),null===m?c=y:m.sibling=y,m=y,d=g}if(f===i.length)return n(s,d),so&&Js(s,f),c;if(null===d){for(;fo(m,l)?(e[a]=m,e[c]=n,a=c):(e[a]=l,e[i]=n,a=i);else{if(!(c