build/static/js/56.1cd825e5.chunk.js

1 line
55 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(this.webpackJsonp=this.webpackJsonp||[]).push([[56,12],{"0Cz8":function(e,t,n){var a=n("Xi7e"),r=n("ebwN"),o=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var c=n.__data__;if(!r||c.length<199)return c.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(c)}return n.set(e,t),this.size=n.size,this}},"0X2M":function(e,t,n){"use strict";var a=n("Q3sF"),r=n("xcSo"),o=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===o||a(o,e)&&t===o.lastIndexOf?r:t}},"25vf":function(e,t,n){"use strict";var a=n("pevS"),r=n("zhhU"),o=n("RQhY"),c=RangeError,i=String.fromCharCode,l=String.fromCodePoint,s=r([].join);a({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],a=arguments.length,r=0;a>r;){if(t=+arguments[r++],o(t,1114111)!==t)throw new c(t+" is not a valid code point");n[r]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return s(n,"")}})},"4sNH":function(e,t,n){"use strict";n("cYy4")},"54hm":function(e,t){},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var a=n("Xi7e");e.exports=function(){this.__data__=new a,this.size=0}},AySf:function(e,t,n){"use strict";var a=n("yQr1"),r=n.n(a),o=(n("Pwec"),n("CtXQ")),c=n("EcSs"),i=n.n(c),l=(n("+L6B"),n("2/Rp")),s=n("06Pm"),u=n.n(s),f=n("kA7L"),p=n.n(f),m=n("3SUL"),d=n.n(m),h=n("eYnF"),v=n.n(h),g=n("X5/F"),b=n.n(g),y=n("04Ix"),_=n.n(y),w=(n("DZo9"),n("8z0m")),E=n("FLGM"),x=n.n(E),j=n("ZbhI"),O=n.n(j),S=n("UtpJ"),N=n.n(S),C=n("M5Mt"),k=n.n(C),L=n("cDcd"),R=n.n(L),P=n("sYIF"),I=n("vDqi"),D=n.n(I);var U=w.a.Dragger,B=function(e){function t(e){var n;return u()(this,t),n=function(e,t,n){return t=v()(t),d()(e,function(){try{var e=!Boolean.prototype.valueOf.call(r()(Boolean,[],(function(){})))}catch(e){}return!!e}()?r()(t,n||[],v()(e).constructor):t.apply(e,n))}(this,t,[e]),_()(n,"componentDidMount",(function(){var e=n.props.defaultFileList;if(e){var t=[];x()(e).call(e,(function(e){t.push({uid:e.id,name:e.title,status:"done",url:e.url})})),n.setState({fileList:t})}n.checkInitFile()})),_()(n,"componentDidUpdate",(function(e){e&&e.fileList!==n.props.fileList&&n.checkInitFile()})),_()(n,"checkInitFile",(function(){var e=n.props.fileList;e&&e.length>0&&n.setState({fileList:Object(P.c)(e)})})),_()(n,"onAttachmentRemove",(function(e){if(!e.percent||100===e.percent)return n.deleteAttachment(e),!1})),_()(n,"deleteAttachment",(function(e){var t="/attachments/".concat(e.response?e.response.id:e.uid,".json");D.a.delete(t,{}).then((function(t){t.data&&(0===t.data.status?n.setState((function(t){var n,a,r=O()(n=t.fileList).call(n,e),o=N()(a=t.fileList).call(a);return k()(o).call(o,r,1),{fileList:o}}),(function(){n.fileIdList(n.state.fileList)})):n.props.showNotification(t.data.message))})).catch((function(e){}))})),_()(n,"handleChange",(function(e){var t=n.props.changeIsComplete;if(t&&t(!0),"uploading"===e.file.status||"done"===e.file.status||"removed"===e.file.status){var a=e.fileList;n.setState({fileList:Object(P.c)(a)}),n.fileIdList(a)}})),_()(n,"fileIdList",(function(e){var t=[];e&&e.length>0?(x()(e).call(e,(function(e){return e.response&&"done"===e.status&&t.push(e.response.id||e.response.data&&e.response.data.id)})),t&&t.length>0&&n.props.load(t)):n.props.load([])})),_()(n,"checkFile",(function(e){for(var t=[".rar",".iso",".flv",".rmvb",".mmf",".ape",".vsdx",".msi",".md"],n=!1,a=0;a<t.length;a++)if(n=new RegExp("(.+(?=["+t[a]+"]$))").test(e))return n;return!1})),_()(n,"beforeUpload",(function(e){var t=n.props.size,a=e.size/1024/1024<t;return a||n.props.showNotification("文件大小必须小于".concat(t,"MB!")),a})),n.state={fileList:void 0},n}return b()(t,e),p()(t,[{key:"render",value:function(){var e=this.props,t=e.isComplete,n=e.icon,a=e.btn,r=e.className,c=e.size,s=e.actionUrl,u=this.state.fileList,f={name:"file",fileList:!0===t?u:void 0,action:s||"".concat(Object(P.j)()),onChange:this.handleChange,onRemove:this.onAttachmentRemove,beforeUpload:this.beforeUpload,multiple:!0};return a?R.a.createElement(w.a,i()({},f,{className:r}),R.a.createElement(l.a,{type:"default"},"上传文件"),R.a.createElement("span",{className:"ml10 color-grey-9"},"(你可以上传小于",R.a.createElement("span",{className:"color-red"},c,"MB"),"的文件)")):R.a.createElement(U,i()({},f,{className:r}),n||R.a.createElement(o.a,{type:"inbox"}),R.a.createElement("p",{className:"ant-upload-text font-16 color-grey-3"},"拖动文件或点击此处上传"))}}])}(L.Component);t.a=B},B8du:function(e,t){e.exports=function(){return!1}},BfIq:function(e,t,n){e.exports=n("k2Gq")},DSRE:function(e,t,n){(function(e){var a=n("Kz5y"),r=n("B8du"),o=t&&!t.nodeType&&t,c=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=c&&c.exports===o?a.Buffer:void 0,l=(i?i.isBuffer:void 0)||r;e.exports=l}).call(this,n("YuTi")(e))},HU8g:function(e,t,n){e.exports=n("XDk8")},IwPY:function(e,t){},JHRd:function(e,t,n){var a=n("Kz5y").Uint8Array;e.exports=a},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},LZ3y:function(e,t,n){"use strict";var a=n("yQr1"),r=n.n(a),o=(n("2qtc"),n("kLXV")),c=(n("T2oS"),n("W9HT")),i=(n("P2fV"),n("NJEC")),l=n("06Pm"),s=n.n(l),u=n("kA7L"),f=n.n(u),p=n("3SUL"),m=n.n(p),d=n("eYnF"),h=n.n(d),v=n("X5/F"),g=n.n(v),b=n("04Ix"),y=n.n(b),_=n("ZbhI"),w=n.n(_),E=n("o+MX"),x=n.n(E),j=n("FLGM"),O=n.n(j),S=n("cDcd"),N=n.n(S),C=n("2iEm"),k=n("vDqi"),L=n.n(k),R=n("zLi2"),P=n.n(R),I=n("6tYh"),D=n.n(I),U=function(e){var t=Object(S.useState)(null),n=P()(t,2),a=n[0],r=n[1];return Object(S.useEffect)((function(){r(e.video_url)}),[]),N.a.createElement(D.a,{url:a,controls:!0,playing:!1})};var B=function(e){function t(e){var n;return s()(this,t),n=function(e,t,n){return t=h()(t),m()(e,function(){try{var e=!Boolean.prototype.valueOf.call(r()(Boolean,[],(function(){})))}catch(e){}return!!e}()?r()(t,n||[],h()(e).constructor):t.apply(e,n))}(this,t,[e]),y()(n,"componentDidMount",(function(){n.getDetail()})),y()(n,"getDetail",(function(){n.setState({canDelete:n.props.canDelete})})),y()(n,"show_video_modal",(function(e){n.setState({video_title:e.title,move_spin:!0,video_id:e.id}),n.move_attachment(e.id,"preview")})),y()(n,"hide_video_modal",(function(){var e=n.state.video_id;n.setState({video_title:void 0}),n.move_attachment(e,"close")})),y()(n,"move_attachment",(function(e,t){L.a.post("/attachments/".concat(e,"/preview_attachment"),{status:t}).then((function(e){e?n.setState({show_video:"preview"===t,video_url:"preview"===t?"https://www.gitlink.org.cn"+e.data.url:void 0,move_spin:!1}):n.setState({move_spin:!1})})).catch((function(e){n.setState({move_spin:!1})}))})),y()(n,"is_video",(function(e){var t=["mp4","flv","mkv","3gp"];return w()(t).call(t,e.split(".").pop())>-1})),y()(n,"deleteAttachment",(function(e){var t=n.props.deleteLoad,a="/attachments/".concat(e,".json");L.a.delete(a,{}).then((function(a){var r;a.data&&(0===a.data.status?(n.setState({Deleted:x()(r=n.state.Deleted).call(r,e)}),n.props.showNotification("附件删除成功"),t&&t(e)):n.props.showNotification(a.data.message))})).catch((function(e){}))})),n.state={canDelete:!1,show_video:!1,video_url:void 0,video_title:void 0,video_id:void 0,move_spin:!1,Deleted:[]},n}return g()(t,e),f()(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.Deleted,a=t.canDelete,r=t.show_video,l=t.video_url,s=t.video_title,u=t.move_spin,f=this.props.attachments;return N.a.createElement("div",null,f?N.a.createElement("div",{className:"attachmentsList mt5"},O()(f).call(f,(function(t,r){return N.a.createElement("div",{key:r,style:{display:n.length>0&&-1!==w()(n).call(n,t.id)?"none":"block",padding:"4px"},className:"attachment-list-div"},N.a.createElement(c.a,{spinning:u},e.is_video(t.title)?N.a.createElement("a",{onClick:function(){return e.show_video_modal(t)},className:"attachment-list-a"},N.a.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),N.a.createElement("span",null,t.title),N.a.createElement("span",{className:"ml20"},t.filesize)):N.a.createElement(C.a,{to:"".concat(t.url),target:"_blank",className:"attachment-list-a",download:!0},N.a.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),N.a.createElement("span",null,t.title),N.a.createElement("span",{className:"ml20"},t.filesize)),a?N.a.createElement(i.a,{placement:"bottom",title:"您确定要删除附件吗",okText:"是",cancelText:"否",onConfirm:function(){return e.deleteAttachment(t.id)}},N.a.createElement("span",{className:"attachment-list-delete fr"},N.a.createElement("i",{className:"iconfont icon-lajitong mr10 color-grey-9 font-14"}))):""))}))):"",r?N.a.createElement(o.a,{title:s,visible:!0,width:690,footer:null,onCancel:this.hide_video_modal},N.a.createElement(U,{video_url:l})):"")}}])}(S.Component);t.a=B},MMmD:function(e,t,n){var a=n("lSCD"),r=n("shjB");e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},NJEC:function(e,t,n){"use strict";var a=n("cDcd"),r=n("VCL8"),o=n("3S7+"),c=n("CtXQ"),i=n("2/Rp"),l=n("YMnH"),s=n("ZvpZ"),u=n("H84U");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(f,e);var t,n,r,c=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return h(this,n)}}(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=c.call(this,e)).onConfirm=function(e){t.setVisible(!1,e);var n=t.props.onConfirm;n&&n.call(v(t),e)},t.onCancel=function(e){t.setVisible(!1,e);var n=t.props.onCancel;n&&n.call(v(t),e)},t.onVisibleChange=function(e){t.props.disabled||t.setVisible(e)},t.saveTooltip=function(e){t.tooltip=e},t.renderOverlay=function(e,n){var r=t.props,o=r.okButtonProps,c=r.cancelButtonProps,l=r.title,s=r.cancelText,u=r.okText,f=r.okType,m=r.icon;return a.createElement("div",null,a.createElement("div",{className:"".concat(e,"-inner-content")},a.createElement("div",{className:"".concat(e,"-message")},m,a.createElement("div",{className:"".concat(e,"-message-title")},l)),a.createElement("div",{className:"".concat(e,"-buttons")},a.createElement(i.a,p({onClick:t.onCancel,size:"small"},c),s||n.cancelText),a.createElement(i.a,p({onClick:t.onConfirm,type:f,size:"small"},o),u||n.okText))))},t.renderConfirm=function(e){var n=e.getPrefixCls,r=t.props,c=r.prefixCls,i=r.placement,u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(r,["prefixCls","placement"]),f=n("popover",c),m=a.createElement(l.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},(function(e){return t.renderOverlay(f,e)}));return a.createElement(o.a,p({},u,{prefixCls:f,placement:i,onVisibleChange:t.onVisibleChange,visible:t.state.visible,overlay:m,ref:t.saveTooltip}))},t.state={visible:e.visible},t}return t=f,r=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,t){var n=this.props;"visible"in n||this.setState({visible:e});var a=n.onVisibleChange;a&&a(e,t)}},{key:"render",value:function(){return a.createElement(u.a,null,this.renderConfirm)}}])&&m(t.prototype,n),r&&m(t,r),f}(a.Component);b.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:a.createElement(c.a,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(r.polyfill)(b),t.a=b},NrgU:function(e,t,n){"use strict";var a=n("Bvq2"),r=n("A2Ma"),o=n("wbIY"),c=n("cEKj"),i=r("iterator");e.exports=!a((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),a="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),a+=n+e})),n.delete("a",2),n.delete("b",void 0),c&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(c||!o)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==a||"x"!==new URL("https://x",void 0).host}))},"O/iA":function(e,t,n){var a=n("SE3x");"string"==typeof a&&(a=[[e.i,a,""]]);n("aET+")(a,{hmr:!0,transform:void 0}),a.locals&&(e.exports=a.locals)},O3gP:function(e,t,n){"use strict";n("cIOH"),n("O/iA"),n("OaEy"),n("5NDa")},OG05:function(e,t,n){"use strict";var a=n("pevS"),r=n("hVCs");a({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},P2fV:function(e,t,n){"use strict";n("cIOH"),n("Q9mQ"),n("+L6B")},SE3x:function(e,t,n){(t=n("JPst")(!1)).push([e.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-select-auto-complete {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n}\n.ant-select-auto-complete.ant-select .ant-select-selection {\n border: 0;\n box-shadow: none;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection__rendered {\n height: 100%;\n margin-right: 0;\n margin-left: 0;\n line-height: 32px;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection__placeholder {\n margin-right: 12px;\n margin-left: 12px;\n}\n.ant-select-auto-complete.ant-select .ant-select-selection--single {\n height: auto;\n}\n.ant-select-auto-complete.ant-select .ant-select-search--inline {\n position: static;\n float: left;\n}\n.ant-select-auto-complete.ant-select-allow-clear .ant-select-selection:hover .ant-select-selection__rendered {\n margin-right: 0 !important;\n}\n.ant-select-auto-complete.ant-select .ant-input {\n height: 32px;\n line-height: 1.5;\n background: transparent;\n border-width: 1px;\n}\n.ant-select-auto-complete.ant-select .ant-input:focus,\n.ant-select-auto-complete.ant-select .ant-input:hover {\n border-color: #6e90ff;\n border-right-width: 1px !important;\n}\n.ant-select-auto-complete.ant-select .ant-input[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n cursor: not-allowed;\n opacity: 1;\n background-color: transparent;\n}\n.ant-select-auto-complete.ant-select .ant-input[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px !important;\n}\n.ant-select-auto-complete.ant-select-lg .ant-select-selection__rendered {\n line-height: 40px;\n}\n.ant-select-auto-complete.ant-select-lg .ant-input {\n height: 40px;\n padding-top: 6px;\n padding-bottom: 6px;\n}\n.ant-select-auto-complete.ant-select-sm .ant-select-selection__rendered {\n line-height: 24px;\n}\n.ant-select-auto-complete.ant-select-sm .ant-input {\n height: 24px;\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.ant-input-group > .ant-select-auto-complete .ant-select-search__field.ant-input-affix-wrapper {\n display: inline;\n float: none;\n}\n",""]),e.exports=t},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},XDk8:function(e,t,n){"use strict";var a=n("a1FM");n("UUWy"),e.exports=a},a1FM:function(e,t,n){"use strict";n("4sNH"),n("IwPY"),n("54hm"),n("tKpz");var a=n("dktu");e.exports=a.URLSearchParams},b80T:function(e,t,n){var a=n("UNi/"),r=n("03A+"),o=n("Z0cm"),c=n("DSRE"),i=n("wJg7"),l=n("c6wG"),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&r(e),f=!n&&!u&&c(e),p=!n&&!u&&!f&&l(e),m=n||u||f||p,d=m?a(e.length,String):[],h=d.length;for(var v in e)!t&&!s.call(e,v)||m&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||i(v,h))||d.push(v);return d}},c6wG:function(e,t,n){var a=n("dD9F"),r=n("sEf8"),o=n("mdPL"),c=o&&o.isTypedArray,i=c?r(c):a;e.exports=i},cYy4:function(e,t,n){"use strict";n("kQON"),n("25vf");var a=n("pevS"),r=n("PrqM"),o=n("+zDa"),c=n("mIMY"),i=n("cQZY"),l=n("zhhU"),s=n("wbIY"),u=n("NrgU"),f=n("/b46"),p=n("IpbS"),m=n("vEpQ"),d=n("KHTo"),h=n("mdol"),v=n("L1rz"),g=n("X32N"),b=n("+y2l"),y=n("Dm96"),_=n("ZBQp"),w=n("j5XY"),E=n("b42z"),x=n("39uu"),j=n("jBKu"),O=n("SJYm"),S=n("LGyv"),N=n("2fOL"),C=n("C3ug"),k=n("3bWX"),L=n("+GjA"),R=n("A2Ma"),P=n("reVg"),I=R("iterator"),D=v.set,U=v.getterFor("URLSearchParams"),B=v.getterFor("URLSearchParamsIterator"),z=o("fetch"),M=o("Request"),A=o("Headers"),T=M&&M.prototype,q=A&&A.prototype,F=r.TypeError,V=r.encodeURIComponent,H=String.fromCharCode,Y=c("String","fromCodePoint"),X=parseInt,K=l("".charAt),G=l([].join),Q=l([].push),Z=l("".replace),J=l([].shift),W=l([].splice),$=l("".split),ee=l("".slice),te=l(/./.exec),ne=/\+/g,ae=/^[0-9a-f]+$/i,re=function(e,t){var n=ee(e,t,t+2);return te(ae,n)?X(n,16):NaN},oe=function(e){for(var t=0,n=128;n>0&&0!=(e&n);n>>=1)t++;return t},ce=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ie=function(e){for(var t=(e=Z(e,ne," ")).length,n="",a=0;a<t;){var r=K(e,a);if("%"===r){if("%"===K(e,a+1)||a+3>t){n+="%",a++;continue}var o=re(e,a+1);if(o!=o){n+=r,a++;continue}a+=2;var c=oe(o);if(0===c)r=H(o);else{if(1===c||c>4){n+="<22>",a++;continue}for(var i=[o],l=1;l<c&&!(3+ ++a>t||"%"!==K(e,a));){var s=re(e,a+1);if(s!=s){a+=3;break}if(s>191||s<128)break;Q(i,s),a+=2,l++}if(i.length!==c){n+="<22>";continue}var u=ce(i);null===u?n+="<22>":r=Y(u)}}n+=r,a++}return n},le=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return se[e]},fe=function(e){return Z(V(e),le,ue)},pe=h((function(e,t){D(this,{type:"URLSearchParamsIterator",target:U(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=B(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,k(void 0,!0);var a=t[n];switch(e.kind){case"keys":return k(a.key,!1);case"values":return k(a.value,!1)}return k([a.key,a.value],!1)}),!0),me=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ee(e,1):e:j(e)))};me.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,a,r,o,c,l,s=this.entries,u=C(e);if(u)for(n=(t=N(e,u)).next;!(a=i(n,t)).done;){if(o=(r=N(E(a.value))).next,(c=i(o,r)).done||(l=i(o,r)).done||!i(o,r).done)throw new F("Expected sequence with length 2");Q(s,{key:j(c.value),value:j(l.value)})}else for(var f in e)y(e,f)&&Q(s,{key:f,value:j(e[f])})},parseQuery:function(e){if(e)for(var t,n,a=this.entries,r=$(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=$(t,"="),Q(a,{key:ie(J(n)),value:ie(G(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],a=0;a<t.length;)e=t[a++],Q(n,fe(e.key)+"="+fe(e.value));return G(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){g(this,he);var e=arguments.length>0?arguments[0]:void 0,t=D(this,new me(e));s||(this.size=t.entries.length)},he=de.prototype;if(m(he,{append:function(e,t){var n=U(this);L(arguments.length,2),Q(n.entries,{key:j(e),value:j(t)}),s||this.length++,n.updateURL()},delete:function(e){for(var t=U(this),n=L(arguments.length,1),a=t.entries,r=j(e),o=n<2?void 0:arguments[1],c=void 0===o?o:j(o),i=0;i<a.length;){var l=a[i];if(l.key!==r||void 0!==c&&l.value!==c)i++;else if(W(a,i,1),void 0!==c)break}s||(this.size=a.length),t.updateURL()},get:function(e){var t=U(this).entries;L(arguments.length,1);for(var n=j(e),a=0;a<t.length;a++)if(t[a].key===n)return t[a].value;return null},getAll:function(e){var t=U(this).entries;L(arguments.length,1);for(var n=j(e),a=[],r=0;r<t.length;r++)t[r].key===n&&Q(a,t[r].value);return a},has:function(e){for(var t=U(this).entries,n=L(arguments.length,1),a=j(e),r=n<2?void 0:arguments[1],o=void 0===r?r:j(r),c=0;c<t.length;){var i=t[c++];if(i.key===a&&(void 0===o||i.value===o))return!0}return!1},set:function(e,t){var n=U(this);L(arguments.length,1);for(var a,r=n.entries,o=!1,c=j(e),i=j(t),l=0;l<r.length;l++)(a=r[l]).key===c&&(o?W(r,l--,1):(o=!0,a.value=i));o||Q(r,{key:c,value:i}),s||(this.size=r.length),n.updateURL()},sort:function(){var e=U(this);P(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=U(this).entries,a=_(e,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)a((t=n[r++]).value,t.key,this)},keys:function(){return new pe(this,"keys")},values:function(){return new pe(this,"values")},entries:function(){return new pe(this,"entries")}},{enumerable:!0}),f(he,I,he.entries,{name:"entries"}),f(he,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),s&&p(he,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),d(de,"URLSearchParams"),a({global:!0,constructor:!0,forced:!u},{URLSearchParams:de}),!u&&b(A)){var ve=l(q.has),ge=l(q.set),be=function(e){if(x(e)){var t,n=e.body;if("URLSearchParams"===w(n))return t=e.headers?new A(e.headers):new A,ve(t,"content-type")||ge(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O(e,{body:S(0,j(n)),headers:S(0,t)})}return e};if(b(z)&&a({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return z(e,arguments.length>1?be(arguments[1]):{})}}),b(M)){var ye=function(e){return g(this,T),new M(e,arguments.length>1?be(arguments[1]):{})};T.constructor=ye,ye.prototype=T,a({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:de,getState:U}},dD9F:function(e,t,n){var a=n("NykK"),r=n("shjB"),o=n("ExA7"),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!c[a(e)]}},eXKH:function(e,t,n){},ex8r:function(e,t,n){},fmRc:function(e,t,n){var a=n("Xi7e"),r=n("77Zs"),o=n("L8xA"),c=n("gCq4"),i=n("VaNO"),l=n("0Cz8");function s(e){var t=this.__data__=new a(e);this.size=t.size}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=c,s.prototype.has=i,s.prototype.set=l,e.exports=s},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},hVCs:function(e,t,n){"use strict";var a=n("oLk2"),r=n("pCEo"),o=n("x9K+"),c=n("x08Q"),i=n("n2Hk"),l=Math.min,s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0,f=i("lastIndexOf"),p=u||!f;e.exports=p?function(e){if(u)return a(s,this,arguments)||0;var t=r(this),n=c(t);if(0===n)return-1;var i=n-1;for(arguments.length>1&&(i=l(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:s},k2Gq:function(e,t,n){"use strict";var a=n("0X2M");e.exports=a},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},lLsn:function(e,t,n){"use strict";n.r(t);var a,r=n("+oHS"),o=n.n(r),c=n("OWCx"),i=n.n(c),l=n("fHi0"),s=n.n(l),u=n("RXMP"),f=n.n(u),p=n("qjzJ"),m=n.n(p),d=n("HnXd"),h=n.n(d),v=n("LYCE"),g=n.n(v),b=(n("+L6B"),n("2/Rp")),y=(n("sRBo"),n("kaz8")),_=(n("5NDa"),n("5rEg")),w=n("04Ix"),E=n.n(w),x=n("zLi2"),j=n.n(x),O=(n("y8nQ"),n("Vl3Y")),S=n("YdDX"),N=n.n(S),C=(n("O3gP"),n("lrIw")),k=n("HU8g"),L=n.n(k),R=n("o+MX"),P=n.n(R),I=n("FLGM"),D=n.n(I),U=n("5PDf"),B=n.n(U),z=n("ZbhI"),M=n.n(z),A=n("cDcd"),T=n.n(A),q=n("vOnD"),F=n("3Diz"),V=n("p7gc"),H=n("AySf"),Y=n("LZ3y"),X=n("vDqi"),K=n.n(X),G=(n("e4dm"),n("LvDl"));function Q(e,t){var n=o()(e);if(i.a){var a=i()(e);t&&(a=B()(a).call(a,(function(t){return s()(e,t).enumerable}))),n.push.apply(n,a)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n,a,r=null!=arguments[t]?arguments[t]:{};t%2?f()(n=Q(Object(r),!0)).call(n,(function(t){E()(e,t,r[t])})):m.a?h()(e,m()(r)):f()(a=Q(Object(r))).call(a,(function(t){g()(e,t,s()(r,t))}))}return e}var J=C.a.Option,W=q.a.span(a||(a=N()(["\n margin: 0px 15px;\n color: #bbb;\n line-height: 35px;\n font-size:16px;\n font-weight:400;\n color:#666;\n"])));t.default=O.a.create()(Object(A.forwardRef)((function(e,t){var n=e.form,a=e.projectDetail,r=e.match,o=e.showNotification,c=e.history,i=e.getDetail,l=n.getFieldDecorator,s=n.validateFields,u=n.setFieldsValue,f=Object(A.useState)(void 0),p=j()(f,2),m=p[0],d=p[1],h=Object(A.useState)(null),v=j()(h,2),g=v[0],w=v[1],E=Object(A.useState)(null),x=j()(E,2),S=x[0],N=x[1],k=Object(A.useState)(null),R=j()(k,2),I=R[0],U=R[1],z=Object(A.useState)(void 0),q=j()(z,2),X=q[0],Q=q[1],$=Object(A.useState)(void 0),ee=j()($,2),te=ee[0],ne=ee[1],ae=Object(A.useState)(void 0),re=j()(ae,2),oe=re[0],ce=re[1],ie=c&&c.location&&c.location.state&&c.location.state.stable,le=r.params,se=le.projectsId,ue=le.versionId,fe=le.owner,pe=new L.a(c.location.search);function me(e){if(e)return D()(e).call(e,(function(e,t){return T.a.createElement(J,{key:t,value:e.name},e.name)}))||void 0}return Object(A.useEffect)((function(){a&&a.default_branch&&N(a.default_branch)}),[a]),Object(A.useEffect)((function(){if(a){var e,t,n=a.author,r=a.name;document.title=P()(e=P()(t="".concat(ue?"编辑":"创建","发行版-")).call(t,n.name,"/")).call(e,r)}}),[a,ue]),Object(A.useEffect)((function(){if(ue){var e,t,n=P()(e=P()(t="/".concat(fe,"/")).call(t,se,"/releases/")).call(e,ue,"/edit.json");K.a.get(n).then((function(e){e&&(u(e.data),w(e.data.body),ne(e.data.attachments))}))}}),[ue]),Object(A.useEffect)((function(){if(se){var e,t=P()(e="/".concat(fe,"/")).call(e,se,"/tags.json");K.a.get(t,{params:{page:1,limit:1e3}}).then((function(e){e.data&&(d(e.data.tags),ce(me(e.data.tags)))})).catch((function(e){}))}}),[se]),T.a.createElement("div",{className:"df pt15"},T.a.createElement(O.a,{className:"versionForm"},T.a.createElement("div",{className:"itemInline"},T.a.createElement(O.a.Item,null,l("tag_name",{rules:[{required:!0,message:"请输入获取或选择一个标签"},{validator:function(e,t,n){t.length>30||M()(t).call(t," ")>0||t.match(/^\s+$/)||Object(G.trim)(t).length!=t.length?n("无效的标签名称请参考右侧建议命名标签并确认长度在1~30个字符之间"):n()}}],validateFirst:!0,initialValue:pe.get("tag")})(T.a.createElement(C.a,{placeholder:"标记一个版本",onChange:function(e){var t=B()(m).call(m,(function(t){var n;return M()(n=t.name).call(n,e)>-1}));ce(me(t))},style:{width:"200px"}},oe))),T.a.createElement(W,null,"@"),T.a.createElement(F.a,{repo_id:a&&a.repo_id,projectsId:se,branch:S,changeBranch:function(e){U(e)},owner:fe,history:c,tagflag:!1,commitflag:!0,branchList:a&&a.branches&&a.branches.list}),T.a.createElement("p",{className:"font-12 color-grey-6 weight400"},"选择一个已经存在的标签,或者在发布时新建一个标签")),T.a.createElement(O.a.Item,{className:"pt20"},l("name",{rules:[{required:!0,message:"请输入发行版的标题"},{validator:function(e,t,n){t.length>50?n("标题长度在1~50个字符之间"):n()}}],validateFirst:!0})(T.a.createElement(_.a,{placeholder:"发行版的标题"}))),T.a.createElement(V.a,{placeholder:"描述此发行版",height:200,mdID:"version-comments-description",initValue:g,onChange:w,noStorage:!0}),T.a.createElement("div",{className:"mt5 dragBox"},T.a.createElement(H.a,{className:"versionStyle",isComplete:!0,load:Q,icon:T.a.createElement("i",{className:"iconfont icon-shangchuanicon dragIcon"}),size:300,showNotification:o}),ue&&te&&te.length>0?T.a.createElement(Y.a,{attachments:te,showNotification:o,canDelete:!0}):""),T.a.createElement(O.a.Item,{className:"prerelease"},l("prerelease",{rules:[],validateFirst:!0})(T.a.createElement(y.a,{defaultChecked:!ie},"这是一个预览版本"))),T.a.createElement("p",{className:"pt20 pb20",style:{borderTop:"1px solid #eee"}},T.a.createElement(b.a,{onClick:function(){s((function(e,t){if(!e)if(ue){var n,a,r=P()(n=P()(a="/".concat(fe,"/")).call(a,se,"/releases/")).call(n,ue,".json");K.a.put(r,Z(Z({},t),{},{body:g,attachment_ids:X,target_commitish:I})).then((function(e){var t;e&&(o("版本修改成功!"),c.push(P()(t="/".concat(fe,"/")).call(t,se,"/releases")))}))}else{var l,s=P()(l="/".concat(fe,"/")).call(l,se,"/releases.json");K.a.post(s,Z(Z({},t),{},{body:g,attachment_ids:X,target_commitish:I})).then((function(e){var t;e&&(i(),o("版本发布成功!"),c.push(P()(t="/".concat(fe,"/")).call(t,se,"/releases")))}))}}))},type:"primary",className:"mr30 btnblue"},ue?"保存":"创建","发行版"),T.a.createElement(b.a,{onClick:function(){var e;return c.push(P()(e="/".concat(fe,"/")).call(e,se,"/releases"))},className:"btngrey"},"取消"))),T.a.createElement("div",{className:"versionTips"},T.a.createElement("div",{className:"infosTip"},T.a.createElement("p",{className:"font-16 mb14 weight"},"标签命名建议"),T.a.createElement("p",{className:"mb15"},"通常的做法是在版本名称前加上字母 v 前缀, v1.0 或者 v2.3.4。"),T.a.createElement("p",null,"如果标签不适合在生产环境下使用请在版本名称后添加预发行版本。例如v0.2-alpha 或者 v5.9-beta.3。")),T.a.createElement("div",{className:"infosTip"},T.a.createElement("p",{className:"font-16 mb14 weight"},"语义化版本"),T.a.createElement("p",null,"如果你是第一次发布版本,我们强烈建议你阅读",T.a.createElement("a",{href:"https://semver.org/lang/zh-CN",target:"_blank",className:"color-blue"},"语义化版本"),"。")),T.a.createElement("div",{className:"infosTip"},T.a.createElement("p",{className:"font-16 mb14 weight"},"附件大小说明"),T.a.createElement("p",null,"单个附件不能超过 300M每个仓库总附件不可超过 1G。附件总容量统计包括仓库附件和发行版附件。"))))})))},lrIw:function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var a=n("cDcd"),r=n("i+PK"),o=n("eHJ2"),c=n.n(o);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p(this,n)}}(o);function o(){var e;return s(this,o),(e=r.apply(this,arguments)).saveRef=function(t){var n=e.props.children.ref;"function"==typeof n&&n(t)},e}return t=o,(n=[{key:"render",value:function(){return a.cloneElement(this.props.children,l(l({},this.props),{ref:this.saveRef}),null)}}])&&u(t.prototype,n),o}(a.Component),h=n("5rEg"),v=n("2fM7"),g=n("H84U");function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(i,e);var t,n,o=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return j(this,n)}}(i);function i(){var e;return w(this,i),(e=o.apply(this,arguments)).saveSelect=function(t){e.select=t},e.getInputElement=function(){var t=e.props.children,n=t&&a.isValidElement(t)&&t.type!==r.b?a.Children.only(e.props.children):a.createElement(h.a,null),o=_({},n.props);return delete o.children,a.createElement(d,o,n)},e.renderAutoComplete=function(t){var n,o,i=t.getPrefixCls,l=e.props,s=l.prefixCls,u=l.size,f=l.className,p=void 0===f?"":f,m=l.notFoundContent,d=l.optionLabelProp,h=l.dataSource,g=l.children,w=i("select",s),E=c()((y(n={},"".concat(w,"-lg"),"large"===u),y(n,"".concat(w,"-sm"),"small"===u),y(n,p,!!p),y(n,"".concat(w,"-show-search"),!0),y(n,"".concat(w,"-auto-complete"),!0),n)),x=a.Children.toArray(g);return o=x.length&&S(x[0])?g:h?h.map((function(e){if(a.isValidElement(e))return e;switch(b(e)){case"string":return a.createElement(r.b,{key:e},e);case"object":return a.createElement(r.b,{key:e.value},e.text);default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[],a.createElement(v.a,_({},e.props,{className:E,mode:v.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,optionLabelProp:d,getInputElement:e.getInputElement,notFoundContent:m,ref:e.saveSelect}),o)},e}return t=i,(n=[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){return a.createElement(g.a,null,this.renderAutoComplete)}}])&&E(t.prototype,n),i}(a.Component);N.Option=r.b,N.OptGroup=r.a,N.defaultProps={transitionName:"slide-up",optionLabelProp:"children",choiceTransitionName:"zoom",showSearch:!1,filterOption:!1}},mdPL:function(e,t,n){(function(e){var a=n("WFqU"),r=t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,c=o&&o.exports===r&&a.process,i=function(){try{return o&&o.require&&o.require("util").types||c&&c.binding&&c.binding("util")}catch(e){}}();e.exports=i}).call(this,n("YuTi")(e))},p7gc:function(e,t,n){"use strict";var a=n("UtpJ"),r=n.n(a),o=n("O0yt"),c=n.n(o),i=n("Dcj1"),l=n.n(i),s=n("6UaR"),u=n.n(s),f=n("zLi2"),p=n.n(f),m=n("IeeE"),d=n.n(m),h=n("RKTd"),v=n.n(h),g=n("pPxq"),b=n.n(g),y=n("o+MX"),_=n.n(y),w=n("FLGM"),E=n.n(w),x=n("BfIq"),j=n.n(x),O=n("BF1V"),S=n.n(O),N=n("0lTi"),C=n.n(N),k=n("lHQ6"),L=n.n(k),R=n("ZbhI"),P=n.n(R),I=n("UF4K"),D=n.n(I),U=n("xlHU"),B=n.n(U),z=n("5tqG"),M=n.n(z),A=n("cDcd"),T=n.n(A),q=n("sYIF"),F=n("bdgK"),V=n("vDqi"),H=n.n(V);function Y(e,t){var n=void 0!==c.a&&l()(e)||e["@@iterator"];if(!n){if(u()(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return X(e,t);var a=r()(n={}.toString.call(e)).call(n,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?C()(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?X(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,f=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){f=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(f)throw i}}}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}n("pb8e"),n("ex8r"),n("p77/"),n("eXKH");var K=window.$,G=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","image","table","|","line-break","watch","clear","emoji","fullscreen"],Q=["bold","italic","del","|","list-ul","list-ol","|","code","code-block","link","|","inline-latex","latex","|","image","table","|","line-break","watch","clear","emoji","fullscreen"];function Z(e,t,n){window.sessionStorage.removeItem(e+t);var a="#e_tip_"+n;"content"==e?K("#e_tips_"+n).html(" "):K(a).html(" ")}function J(e,t,n){var a=window.sessionStorage.getItem("content"+t);if(null!==a&&a!==e.getValue()){K("#e_tips_"+n).data("editor",e);var r='您上次有已保存的数据,是否<a style="cursor: pointer;" class="link-color-blue" onclick="md_rec_data(\'content\',\''+t+"','"+n+'\')">恢复</a> ? / <a style="cursor: pointer;" class="link-color-blue" onclick="md_clear_data(\'content\',\''+t+"','"+n+"')\">不恢复</a>";K("#e_tips_"+n).html(r)}return d()((function(){var a,r=new Date,o=r.getHours(),c=r.getMinutes(),i=r.getSeconds();if(o=o<10?"0"+o:o,c=c<10?"0"+c:c,i=i<10?"0"+i:i,""!==v()(a=e.getValue()).call(a)){!function(e,t,n){window.sessionStorage.setItem("content"+t,n)}(0,t,e.getValue());var l="#e_tips_"+n,s=" 数据已于 "+o+":"+c+":"+i+" 保存 ",u=K(l).html();u&&" "!==u&&!1===b()(u).call(u," 数据已于 ")?K(l).html(u.split(" (")[0]+" (".concat(s,")")):K(l).html(s)}}),1e4)}window.md_clear_data=Z,window.md_rec_data=function(e,t,n){null!==window.sessionStorage.getItem(e+t)&&(K("#e_tips_"+n).data("editor").setValue(window.sessionStorage.getItem(e+t)),Z(e,t,n))},t.a=function(e){var t,n,a=e.mdID,r=e.onChange,o=e.onCMBeforeChange,c=e.onCMBlur,i=e.error,l=void 0!==i&&i,s=e.className,u=void 0===s?"":s,f=e.noStorage,m=void 0!==f&&f,d=e.imageExpand,h=void 0===d||d,v=e.placeholder,g=void 0===v?"":v,b=e.width,y=void 0===b?"100%":b,w=e.height,x=void 0===w?400:w,O=e.initValue,N=void 0===O?"":O,k=(e.emoji,e.watch),R=void 0===k||k,I=(e.showNullButton,e.showResizeBar),U=void 0!==I&&I,z=e.startInit,V=void 0===z||z,X=(e.forMember,e.isCanAtme),K=void 0!==X&&X,Z=e.isQuoteIssue,W=void 0!==Z&&Z,$=e.changeAtWhoLoginList,ee=e.owner,te=e.projectsId,ne=e.isFocus,ae=void 0===ne||ne,re=e.showLatexButton,oe=void 0===re||re,ce=Object(A.useRef)(),ie=Object(A.useRef)(),le=Object(A.useState)(),se=p()(le,2),ue=se[0],fe=se[1],pe=Object(A.useState)(!1),me=p()(pe,2),de=me[0],he=me[1],ve=Object(A.useState)([]),ge=p()(ve,2),be=ge[0],ye=ge[1],_e=Object(A.useState)([]),we=p()(_e,2),Ee=we[0],xe=we[1],je=Object(A.useState)([]),Oe=p()(je,2),Se=Oe[0],Ne=Oe[1],Ce=Object(A.useRef)([]),ke=Object(A.useRef)(!1),Le="mdEditor_".concat(a),Re="mdEditors_".concat(a),Pe="e_tips_mdEditor_".concat(a),Ie=Object(A.useState)([]),De=p()(Ie,2),Ue=De[0],Be=De[1],ze=Object(A.useState)(!1),Me=p()(ze,2),Ae=Me[0],Te=Me[1],qe=Object(A.useState)([]),Fe=p()(qe,2),Ve=Fe[0],He=Fe[1],Ye=Object(A.useRef)(!1),Xe=Object(A.useRef)([]);function Ke(e){var t;H.a.get(_()(t="/v1/".concat(ee,"/")).call(t,te,"/issues"),{params:{only_name:!0,keyword:e,sort_direction:"desc",sort_by:"issues.created_on",limit:500,page:1}}).then((function(t){if(t){!e&&Be(t.data.issues);var n=t.data.issues;He(n&&n.length>0?n:void 0)}}))}Object(A.useEffect)((function(){var e;K&&H.a.get(_()(e="/".concat(ee,"/")).call(e,te,"/members.json")).then((function(e){0!==e.data.total_count&&(Ne(e.data.users),xe(e.data.users))})),document.addEventListener("click",(function(){ke.current=!1,he(!1),Ye.current=!1,Te(!1)})),W&&Ke()}),[]);var Ge=T.a.createElement("div",{id:"quoteDiv",className:"quoteDiv"},Ve&&E()(Ve).call(Ve,(function(e,t){return T.a.createElement("li",{className:"quote ".concat(0===t&&"active"),onClick:function(){return function(e){var t,n,a,r;Ye.current=!1,Te(!1);var o=ue.cm,c=o.doc.getCursor(),i=c.line,l=c.ch,s=j()(t=o.getRange({line:i,ch:0},{line:i,ch:l})).call(t,"#");o.replaceRange(_()(n=_()(a=_()(r="[#".concat(e.subject,"](/")).call(r,ee,"/")).call(a,te,"/issues/")).call(n,e.project_issues_index,") "),{line:i,ch:s},{line:i,ch:l}),o.focus();var u=new S.a(Xe.current);u.add(e.project_issues_index),Xe.current=C()(u)}(e)},onMouseOver:function(){return e=t,document.getElementsByClassName("quote active")[0]&&(document.getElementsByClassName("quote active")[0].className="quote"),void(document.getElementsByClassName("quote")[e]&&(document.getElementsByClassName("quote")[e].className="quote active"));var e}},T.a.createElement("span",{style:{minWidth:"40px"}},T.a.createElement("span",{className:"issueIndex",title:e.project_issues_index},"#",e.project_issues_index)),T.a.createElement("span",{className:"issueName task-hide"},e.subject))})));function Qe(e){var t=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,n=ue.cm.getValue();if(e.shiftKey&&"Digit2"===e.code&&(ke.current=!0,he(!0),document.getElementById("at_who_list").style.top=L()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("at_who_list").style.left=L()(t.getPropertyValue("left").replace("px",""))+20+"px"),e.ctrlKey&&"KeyZ"===e.code&&0!==Se.length){if(N){var a=[];E()(Se).call(Se,(function(e){var t;-1!=P()(N).call(N,e.username)&&"@"===N.charAt(P()(N).call(N,e.username)-1)&&P()(N).call(N,"@".concat(e.username))===P()(n).call(n,"@".concat(e.username))&&(a[a.length]=_()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=a.length&&E()(a).call(a,(function(e){n=n.replace(e,"")}))}-1!=P()(n).call(n,"@")&&E()(Se).call(Se,(function(e){if(-1!=P()(n).call(n,e.username)&&"@"===n.charAt(P()(n).call(n,e.username)-1)){var t=new S.a(Ce.current);t.add(e.login),Ce.current=C()(t),ye(C()(t))}}))}e.shiftKey&&"Digit3"===e.code&&W&&(Ye.current=!0,Te(!0),document.getElementById("quoteDiv").style.top=L()(t.getPropertyValue("top").replace("px",""))+62+"px",document.getElementById("quoteDiv").style.left=L()(t.getPropertyValue("left").replace("px",""))+20+"px")}Object(A.useEffect)((function(){if(Je)if(Ye.current){var e=document.getElementById("quoteDiv"),t=document.getElementsByClassName("quote");Je.addKeyMap({Up:function(){for(var n,a=0;a<t.length;a++)"quote active"===t[a].className&&(n=a);n>0&&(n<=t.length-4&&(e.scrollTop-=40),t[n].className="quote",t[n-1].className="quote active")},Down:function(){for(var n,a=0;a<t.length;a++)"quote active"===t[a].className&&(n=a);n<t.length-1&&(n>=3&&(e.scrollTop+=40),t[n].className="quote",t[n+1].className="quote active")},Enter:function(){document.getElementsByClassName("quote active")[0]&&document.getElementsByClassName("quote active")[0].click()}})}else Je.removeKeyMap()}),[Ae]),Object(A.useEffect)((function(){$&&$(be)}),[be]);var Ze=T.a.createElement("div",{className:"at_who_list",id:"at_who_list"},Ee&&E()(Ee).call(Ee,(function(e,t){return T.a.createElement("div",{key:t,className:"at_who ".concat(0===t&&"active"),onClick:function(){!function(e){var t;ke.current=!1,he(!1);var n=ue.cm,a=n.doc.getCursor(),r=a.line,o=a.ch,c=j()(t=n.getRange({line:r,ch:0},{line:r,ch:o})).call(t,"@"),i=void 0;E()(Ee).call(Ee,(function(t){t.username===e&&(i=t.login)})),n.replaceRange("[@"+e+"]"+"(/".concat(i,") "),{line:r,ch:c},{line:r,ch:o}),n.focus();var l=new S.a(Ce.current);l.add(i),Ce.current=C()(l),ye(C()(l))}(e.username)},onMouseOver:function(){!function(e){document.getElementsByClassName("at_who active")[0]&&(document.getElementsByClassName("at_who active")[0].className="at_who"),document.getElementsByClassName("at_who")[e]&&(document.getElementsByClassName("at_who")[e].className="at_who active")}(t)}},e.image_url&&T.a.createElement("img",{src:Object(q.g)("/".concat(e.image_url)),alt:""}),T.a.createElement("span",null,e.username))})));Object(A.useEffect)((function(){!ue&&V&&window.editormd(Le,{width:y,height:x,path:Object(q.k)("/editormd/lib/"),markdown:N,syncScrolling:"single",tex:!0,tocm:!0,emoji:!0,taskList:!0,codeFold:!0,searchReplace:!0,htmlDecode:"style,script,iframe",sequenceDiagram:!0,autoFocus:!1,watch:R,saveHTMLToTextarea:!0,dialogMaskOpacity:.6,placeholder:g,imageUpload:!0,imageFormats:["jpg","jpeg","gif","png","bmp","webp","JPG","JPEG","GIF","PNG","BMP","WEBP"],imageUploadURL:Object(q.j)(),toolbarIcons:function(){return oe?Q:G},toolbarIconsClass:{"line-break":"fa-minus",fullScreen:"iconfont icon-fangdaicon font-14"},toolbarCustomIcons:{"inline-latex":"<a title='行内公式' class='latex' ><i name='inline-latex' class='fa iconfont icon-hangneigongshi font-14'></i></a>",latex:"<a title='多行公式' class='latex' ><i name='latex' class='fa iconfont icon-duohanggongshi font-16'></i></a>","null-button":"<a class='pr' title='增加填空'><i class='border-left'><span></span></i><span name='null-button' class='fa fillTip'>点击插入填空项</span><i class='iconfont fa icon-edit font-16' name='null-button'></i></a>"},toolbarHandlers:{"line-break":function(e,t,n,a){e.replaceSelection("<br/>")},"null-button":function(e,t,n,a){""===a&&e.setCursor(n.line,n.ch+1),e.replaceSelection("▁")},fullScreen:function(e,t,n,a){t.addClass("none")},"inline-latex":function(e,t,n,a){e.replaceSelection("$$"+a+"$$"),e.setCursor(n.line,n.ch+2),e.focus()},latex:function(e,t,n,a){e.replaceSelection("```latex\n\n"+a+"```"),e.setCursor(n.line+1,0),e.focus()}},lang:{toolbar:{latex:"多行公式","line-break":"换行",fullScreen:"开启全屏"}},onload:function(){fe(this)}})}),[Le,ue,V]);var Je=ue&&ue.cm;return Object(A.useEffect)((function(){ke.current?Je.addKeyMap({Up:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),a=0;a<n.length;a++)"at_who active"===n[a].className&&(e=a);e>0&&(e<=n.length-4&&(t.scrollTop-=40),n[e].className="at_who",n[e-1].className="at_who active")},Down:function(){for(var e,t=document.getElementById("at_who_list"),n=document.getElementsByClassName("at_who"),a=0;a<n.length;a++)"at_who active"===n[a].className&&(e=a);e<n.length-1&&(e>=3&&(t.scrollTop+=40),n[e].className="at_who",n[e+1].className="at_who active")},Enter:function(){if(document.getElementsByClassName("at_who active")[0])document.getElementsByClassName("at_who active")[0].click();else{var e=ue.cm,t=e.doc.getCursor(),n=t.line,a=t.ch;e.replaceRange("\n",{line:n,ch:a},{line:n,ch:a}),he(!1),ke.current=!1}}}):Je&&Je.removeKeyMap()}),[de]),Object(A.useEffect)((function(){if(ke.current&&Ee){var e=document.getElementsByClassName("CodeMirror cm-s-default CodeMirror-wrap")[0].firstChild.style,t="添加评论..."===g?80:10;document.getElementById("at_who_list").style.left=L()(e.getPropertyValue("left").replace("px",""))+t+"px"}}),[Ee]),Object(A.useEffect)((function(){if(Je){var e,t=null;return c&&ue.cm.on("blur",(function(){c(ue.getValue())})),o&&ue.cm.on("beforeChange",(function(e,t){o(e,t)})),m||(t=J(ue,"MDEditor__".concat(Le),Le)),(K||W)&&ue.cm.on("focus",(function(){document.addEventListener("keydown",Qe)})),(K||W)&&ue.cm.on("blur",(function(){document.removeEventListener("keydown",Qe)})),ue.cm.on("change",(function(e){var t=e.getValue();if(t){var n=t.match(/alert\((.*?)\)/g);if(n&&n.length>0)for(var a=0;a<n.length;a++)t=t.replace(n[a],"")}if(r&&r(t),Ye.current){var o=e.doc.getCursor(),c=o.line,i=o.ch,l=Je.getRange({line:c,ch:0},{line:c,ch:i});-1===P()(l).call(l,"#")||" "===(l=l.substring(j()(l).call(l,"#")+1))?(Te(!1),Ye.current=!1):Ke(l)}if(ke.current){var s,u=e.doc.getCursor(),f=u.line,p=u.ch,m=Je.getRange({line:f,ch:0},{line:f,ch:p});-1===P()(m).call(m,"@")?(he(!1),ke.current=!1):(m=m.substring(j()(m).call(m,"@")+1))?H.a.get(_()(s="/".concat(ee,"/")).call(s,te,"/members.json"),{params:{search:m}}).then((function(e){e&&e.data&&0!==e.data.total_count?xe(e.data.users):xe(void 0)})):xe(Se)}if(function(e,t,n){if(0!=n.length){var a,r=ue.cm,o=r.getValue();if(N){var c=[];E()(t).call(t,(function(t){var n,a,r,i,l,s,u,f,p=t.username;p=t.project_issues_index,-1!=P()(N).call(N,p)&&N.charAt(P()(N).call(N,p)-1)===e&&P()(N).call(N,_()(n="".concat(e)).call(n,p))===P()(o).call(o,_()(a="".concat(e)).call(a,p))&&(c[c.length]=_()(r=_()(i="[".concat(e)).call(i,p,"](/")).call(r,p,")"),c[c.length]=_()(l=_()(s=_()(u=_()(f="[".concat(e)).call(f,p,"](")).call(u,ee,"/")).call(s,te,"/issues/")).call(l,p,")"))})),0!=c.length&&E()(c).call(c,(function(e){o=o.replace(e,"")}))}var i=new D.a;E()(a=C()(n)).call(a,(function(e){E()(t).call(t,(function(t){t.project_issues_index===e&&i.set(t.project_issues_index,t.project_issues_index)}))}));var l=r.doc.getCursor(),s=l.line,u=l.ch;-1===P()(o).call(o,e)&&(Xe.current=[]);var f,p,m=r.getRange({line:s,ch:0},{line:s,ch:u}),d=r.getLine(s);d&&-1!==P()(d).call(d,e)?E()(f=C()(B()(i).call(i))).call(f,(function(t){var n,a,c,l,f=_()(n=_()(a=_()(c=_()(l="[".concat(e)).call(l,t,"](/")).call(c,ee,"/")).call(a,te,"/issues/")).call(n,i.get(t),")");if(M()(m).call(m,f)&&r.setSelection({line:s,ch:j()(m).call(m,e)-1},{line:s,ch:u}),-1===P()(o).call(o,f)){var p=new S.a(Xe.current);p.delete(i.get(t)),Xe.current=C()(p)}})):E()(p=C()(B()(i).call(i))).call(p,(function(t){var n,a,r,c,l=_()(n=_()(a=_()(r=_()(c="[".concat(e)).call(c,t,"](/")).call(r,ee,"/")).call(a,te,"/issues/")).call(n,i.get(t),")");if(-1===P()(o).call(o,l)){var s=new S.a(Xe.current);s.delete(i.get(t)),Xe.current=C()(s)}}))}}("#",Ue,Xe.current),0!=Ce.current.length){var d,h=ue.cm,v=h.getValue();if(N){var g=[];E()(Se).call(Se,(function(e){var t;-1!=P()(N).call(N,e.username)&&"@"===N.charAt(P()(N).call(N,e.username)-1)&&P()(N).call(N,"@".concat(e.username))===P()(v).call(v,"@".concat(e.username))&&(g[g.length]=_()(t="[@".concat(e.username,"](/")).call(t,e.login,")"))})),0!=g.length&&E()(g).call(g,(function(e){v=v.replace(e,"")}))}var b=new D.a;E()(d=C()(Ce.current)).call(d,(function(e){E()(Se).call(Se,(function(t){t.login===e&&b.set(t.username,t.login)}))}));var y=h.doc.getCursor(),w=y.line,x=y.ch;-1===P()(v).call(v,"@")&&(Ce.current=[],ye([]));var O,k,L=h.getRange({line:w,ch:0},{line:w,ch:x}),R=h.getLine(w);R&&-1!==P()(R).call(R,"@")?E()(O=C()(B()(b).call(b))).call(O,(function(e){var t,n=_()(t="[@".concat(e,"](/")).call(t,b.get(e),")");if(M()(L).call(L,n)&&h.setSelection({line:w,ch:j()(L).call(L,"@")-1},{line:w,ch:x}),-1===P()(v).call(v,n)){var a=new S.a(Ce.current);a.delete(b.get(e)),Ce.current=C()(a),ye(C()(a))}})):E()(k=C()(B()(b).call(b))).call(k,(function(e){var t,n=_()(t="[@".concat(e,"](/")).call(t,b.get(e),")");if(-1===P()(v).call(v,n)){var a=new S.a(Ce.current);a.delete(b.get(e)),Ce.current=C()(a),ye(C()(a))}}))}})),e=function(){var e;return ce.current&&(e=new F.default((function(e){var t,n=Y(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&(ue.resize(),ue.cm.refresh(),ae&&ue.cm.focus())}}catch(e){n.e(e)}finally{n.f()}}))).observe(ce.current),e}(),function(){m||clearInterval(t),e&&e.unobserve(ce.current)}}}),[Je]),Object(A.useEffect)((function(){ue&&null!=N&&N!==ue.getValue()&&ue.setValue(N.toString())}),[ue,N,Le]),Object(A.useEffect)((function(){if(ie.current){var e=function(e){r=!0,o=e.pageY},t=function(){r=!1},n=function(e){if(r){var t=e.pageY-o;t<0&&(t=0),t>300&&(t=300);var n=x+t+"px";ue.resize("",n)}},a=ie.current,r=!1,o=0;return a.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[ue,ie]),T.a.createElement(A.Fragment,null,T.a.createElement("div",{ref:ce,className:_()(t=_()(n="df editormd-editing ".concat(u," ")).call(n,h&&"editormd-image-click-expand"," ")).call(t,Ae||de?"quoteBox":""," ")},T.a.createElement("div",{className:"edu-back-greyf5 radius4 editormd ".concat(l?"error":""),id:Le},Ae&&Ge,de&&Ze,T.a.createElement("textarea",{style:{display:"none"},id:Re,name:"content"}),T.a.createElement("div",{className:"CodeMirror cm-s-defualt",style:{display:"none"}}))),U?T.a.createElement("a",{ref:ie,className:"editor-resize"}):null,T.a.createElement("div",{className:"fr rememberTip"},!0===m?null:T.a.createElement("div",{id:Pe,className:"edu-txt-right color-grey-cd font-12"})))}},reVg:function(e,t,n){"use strict";var a=n("61Qb"),r=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var c,i,l=1;l<n;){for(i=l,c=e[l];i&&t(e[i-1],c)>0;)e[i]=e[--i];i!==l++&&(e[i]=c)}else for(var s=r(n/2),u=o(a(e,0,s),t),f=o(a(e,s),t),p=u.length,m=f.length,d=0,h=0;d<p||h<m;)e[d+h]=d<p&&h<m?t(u[d],f[h])<=0?u[d++]:f[h++]:d<p?u[d++]:f[h++];return e};e.exports=o},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},tKpz:function(e,t){},xcSo:function(e,t,n){"use strict";n("OG05");var a=n("wY6U");e.exports=a("Array","lastIndexOf")},zZ0H:function(e,t){e.exports=function(e){return e}}}]);