| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-381877e5"],{"041b":function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("2c3e"),r("25f0");function n(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var r={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var n in r)if(new RegExp("(".concat(n,")")).test(t)){var o=r[n]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?o:a(o))}return t}function a(e){return("00"+e).substr(e.length)}function o(e,t,r){if(r){var a=new Date(r);return n(a,"yyyy-MM-dd hh:mm:ss")}return""}},"14c3":function(e,t,r){var n=r("c6b6"),a=r("9263");e.exports=function(e,t){var r=e.exec;if("function"===typeof r){var o=r.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"25f0":function(e,t,r){"use strict";var n=r("6eeb"),a=r("825a"),o=r("d039"),i=r("ad6d"),l="toString",s=RegExp.prototype,u=s[l],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=l;(c||f)&&n(RegExp.prototype,l,(function(){var e=a(this),t=String(e.source),r=e.flags,n=String(void 0===r&&e instanceof RegExp&&!("flags"in s)?i.call(e):r);return"/"+t+"/"+n}),{unsafe:!0})},"2c3e":function(e,t,r){var n=r("83ab"),a=r("9f7f").UNSUPPORTED_Y,o=r("9bf2").f,i=r("69f3").get,l=RegExp.prototype;n&&a&&o(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==l){if(this instanceof RegExp)return!!i(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},"4d63":function(e,t,r){var n=r("83ab"),a=r("da84"),o=r("94ca"),i=r("7156"),l=r("9bf2").f,s=r("241c").f,u=r("44e7"),c=r("ad6d"),f=r("9f7f"),d=r("6eeb"),p=r("d039"),m=r("69f3").set,h=r("2626"),b=r("b622"),v=b("match"),g=a.RegExp,y=g.prototype,x=/a/g,w=/a/g,E=new g(x)!==x,_=f.UNSUPPORTED_Y,k=n&&o("RegExp",!E||_||p((function(){return w[v]=!1,g(x)!=x||g(w)==w||"/a/i"!=g(x,"i")})));if(k){var O=function(e,t){var r,n=this instanceof O,a=u(e),o=void 0===t;if(!n&&a&&e.constructor===O&&o)return e;E?a&&!o&&(e=e.source):e instanceof O&&(o&&(t=c.call(e)),e=e.source),_&&(r=!!t&&t.indexOf("y")>-1,r&&(t=t.replace(/y/g,"")));var l=i(E?new g(e,t):g(e,t),n?this:y,O);return _&&r&&m(l,{sticky:r}),l},R=function(e){e in O||l(O,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},I=s(g),N=0;while(I.length>N)R(I[N++]);y.constructor=O,O.prototype=y,d(a,"RegExp",O)}h("RegExp")},5319:function(e,t,r){"use strict";var n=r("d784"),a=r("825a"),o=r("7b0b"),i=r("50c4"),l=r("a691"),s=r("1d80"),u=r("8aa5"),c=r("14c3"),f=Math.max,d=Math.min,p=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,b=function(e){return void 0===e?e:String(e)};n("replace",2,(function(e,t,r,n){var v=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=n.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(r,n){var a=s(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,a,n):t.call(String(a),r,n)},function(e,n){if(!v&&g||"string"===typeof n&&-1===n.indexOf(y)){var o=r(t,e,this,n);if(o.done)return o.value}var s=a(e),p=String(this),m="function"===typeof n;m||(n=String(n));var h=s.global;if(h){var w=s.unicode;s.lastIndex=0}var E=[];while(1){var _=c(s,p);if(null===_)break;if(E.push(_),!h)break;var k=String(_[0]);""===k&&(s.lastIndex=u(p,i(s.lastIndex),w))}for(var O="",R=0,I=0;I<E.length;I++){_=E[I];for(var N=String(_[0]),S=f(d(l(_.index),p.length),0),$=[],j=1;j<_.length;j++)$.push(b(_[j]));var F=_.groups;if(m){var T=[N].concat($,S,p);void 0!==F&&T.push(F);var A=String(n.apply(void 0,T))}else A=x(N,p,S,$,F,n);S>=R&&(O+=p.slice(R,S)+A,R=S+N.length)}return O+p.slice(R)}];function x(e,r,n,a,i,l){var s=n+e.length,u=a.length,c=h;return void 0!==i&&(i=o(i),c=m),t.call(l,c,(function(t,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return r.slice(0,n);case"'":return r.slice(s);case"<":l=i[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>u){var f=p(c/10);return 0===f?t:f<=u?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):t}l=a[c-1]}return void 0===l?"":l}))}}))},"65df":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-select",{attrs:{multiple:e.multiple,filterable:"",remote:"","reserve-keyword":"",clearable:"",placeholder:"昵称/ID/手机号/邮箱搜索","remote-method":e.remoteMethod,loading:e.loading},on:{change:e.onChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return r("el-option",{key:e.id,attrs:{label:e.nickName+"["+e.id+"]",value:e.id}})})),1)},a=[],o=(r("a9e3"),r("802d")),i={name:"SelectRemoteUser",props:{multiple:{type:[Boolean,Object],default:!1},value:{type:[String,Number,Array],default:""}},data:function(){return{options:[],loading:!1}},methods:{onChange:function(e){this.$emit("input",e)},remoteMethod:function(e){var t=this;Object(o["f"])(e).then((function(e){t.options=e}))}}},l=i,s=r("2877"),u=Object(s["a"])(l,n,a,!1,null,null,null);t["a"]=u.exports},7156:function(e,t,r){var n=r("861d"),a=r("d2bb");e.exports=function(e,t,r){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==r&&n(i=o.prototype)&&i!==r.prototype&&a(e,i),e}},"723e":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-form",{attrs:{model:e.queryForm,inline:"",size:"small"}},[r("el-form-item",{attrs:{label:"账号"}},[r("select-remote-user",{model:{value:e.queryForm.id,callback:function(t){e.$set(e.queryForm,"id",t)},expression:"queryForm.id"}})],1),r("el-form-item",{attrs:{label:"昵称"}},[r("el-input",{attrs:{placeholder:"用户昵称"},model:{value:e.queryForm.nickName,callback:function(t){e.$set(e.queryForm,"nickName",t)},expression:"queryForm.nickName"}})],1),r("el-form-item",{attrs:{label:"注册时间"}},[r("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:e.queryForm.registerTime,callback:function(t){e.$set(e.queryForm,"registerTime",t)},expression:"queryForm.registerTime"}})],1),r("el-form-item",{attrs:{label:"状态"}},[r("el-select",{attrs:{clearable:"",placeholder:"用户状态"},model:{value:e.queryForm.state,callback:function(t){e.$set(e.queryForm,"state",t)},expression:"queryForm.state"}},[r("el-option",{attrs:{label:"正常",value:"normal"}}),r("el-option",{attrs:{label:"禁用",value:"disable"}})],1)],1),r("el-form-item",{attrs:{label:"性别"}},[r("el-select",{attrs:{clearable:"",placeholder:"用户性别"},model:{value:e.queryForm.gender,callback:function(t){e.$set(e.queryForm,"gender",t)},expression:"queryForm.gender"}},[r("el-option",{attrs:{label:"女",value:"female"}}),r("el-option",{attrs:{label:"男",value:"male"}}),r("el-option",{attrs:{label:"保密",value:"secret"}})],1)],1)],1),r("el-row",{staticClass:"action-bar-container",attrs:{type:"flex",justify:"end"}},[r("el-button",{attrs:{type:"primary",size:"small"},nativeOn:{click:function(t){return e.fetchData(t)}}},[e._v("查询")]),r("el-button-group",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.add"],expression:"['oauth.user.add']"}],attrs:{size:"small"},nativeOn:{click:function(t){return e.$refs.dialogForm.open({})}}},[e._v(" 新建 ")]),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.enable"],expression:"['oauth.user.enable']"}],attrs:{size:"small"},nativeOn:{click:function(t){return e.enabledByIds(e.multipleSelection)}}},[e._v(" 启用 ")]),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.disable"],expression:"['oauth.user.disable']"}],attrs:{size:"small"},nativeOn:{click:function(t){return e.disableByIds(e.multipleSelection)}}},[e._v(" 禁用 ")]),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.reset.login.password"],expression:"['oauth.user.reset.login.password']"}],attrs:{size:"small"},nativeOn:{click:function(t){return e.resetLoginPasswordByIds(e.multipleSelection)}}},[e._v(" 重置登录密码 ")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],attrs:{data:e.pageData.records,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.selectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),r("el-table-column",{attrs:{label:"ID",prop:"id",width:"120"}}),r("el-table-column",{attrs:{label:"昵称",prop:"nickName",width:"150"}}),r("el-table-column",{attrs:{label:"手机号",prop:"mp",width:"120"}}),r("el-table-column",{attrs:{label:"邮箱",prop:"email",width:"200"}}),r("el-table-column",{attrs:{label:"性别",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.gender.text)+" ")]}}])}),r("el-table-column",{attrs:{label:"状态",width:"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.state.value?r("el-tag",[e._v(e._s(t.row.state.text))]):r("el-tag",{attrs:{type:"danger"}},[e._v(e._s(t.row.state.text))])]}}])}),r("el-table-column",{attrs:{label:"注册时间",prop:"registerTime",formatter:e.dateTimeFormatter,width:"160"}}),r("el-table-column",{attrs:{label:"角色","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.listRoles,(function(t){return r("el-tag",{key:t.id},[e._v(e._s(t.name))])}))}}])}),r("el-table-column",{attrs:{label:"操作",width:"70",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-dropdown",[r("el-button",{attrs:{type:"text"}},[e._v(" 操作"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.edit"],expression:"['oauth.user.edit']"}],nativeOn:{click:function(r){return e.$refs.dialogForm.open(t.row)}}},[e._v("编辑")]),0===t.row.state.value?r("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.enable"],expression:"['oauth.user.enable']"}],nativeOn:{click:function(r){return e.enabledByIds([t.row.id])}}},[e._v("启用")]):e._e(),1===t.row.state.value?r("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.disable"],expression:"['oauth.user.disable']"}],nativeOn:{click:function(r){return e.disableByIds([t.row.id])}}},[e._v("禁用")]):e._e(),r("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:["oauth.user.reset.login.password"],expression:"['oauth.user.reset.login.password']"}],nativeOn:{click:function(r){return e.resetLoginPasswordByIds([t.row.id])}}},[e._v(" 重置登录密码 ")])],1)],1)]}}])})],1),r("el-pagination",{staticClass:"pagination-container",attrs:{background:"",layout:"prev, pager, next",total:e.pageData.total,"page-size":e.pageData.pageSize},on:{"current-change":e.paginationChange}}),r("dialog-form",{ref:"dialogForm",on:{ok:e.fetchData}})],1)},a=[],o=r("5530"),i=(r("d3b7"),r("159b"),r("802d")),l=function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.visible?r("el-dialog",{attrs:{width:"900px",title:"收货地址",visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}],attrs:{model:e.form,"label-width":"80px"}},[r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"用户昵称"}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"性别"}},[r("el-radio-group",{model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}},[r("el-radio-button",{attrs:{label:"male"}},[e._v("男")]),r("el-radio-button",{attrs:{label:"female"}},[e._v("女")]),r("el-radio-button",{attrs:{label:"secret"}},[e._v("保密")])],1)],1)],1)],1),r("el-row",[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.mp,callback:function(t){e.$set(e.form,"mp",t)},expression:"form.mp"}})],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"邮箱"}},[r("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}})],1)],1)],1),r("el-form-item",{attrs:{label:"角色"}},[r("el-checkbox-group",{model:{value:e.form.listRoles,callback:function(t){e.$set(e.form,"listRoles",t)},expression:"form.listRoles"}},e._l(e.listAllRoles,(function(t){return r("el-checkbox",{key:t.id,attrs:{label:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)],1):e._e()},s=[],u=(r("b0c0"),r("cc5e")),c={data:function(){return{visible:!1,isLoading:!1,listAllRoles:[],form:{}}},created:function(){},methods:{open:function(e){var t,r=this;this.visible=!0;var n=[];e.listRoles&&e.listRoles.forEach((function(e){return n.push(e.id)})),this.form=Object.assign({},e,{gender:(null===(t=e.gender)||void 0===t?void 0:t.name)||"secret",listRoles:n}),this.isLoading=!0,Object(u["b"])().then((function(e){r.listAllRoles=e})).finally((function(){r.isLoading=!1}))},handleSubmit:function(){var e=this;console.log(this.form),this.isLoading=!0,this.form.id?Object(i["i"])(this.form.id,this.form).then((function(){e.visible=!1,e.$emit("ok")})).finally((function(){e.isLoading=!1})):Object(i["h"])(this.form).then((function(t){e.visible=!1,e.$emit("ok"),e.$alert("新建立用户成功,登录密码为:"+t+",请妥善保管","新建立用户成功",{confirmButtonText:"确定"})})).finally((function(){e.isLoading=!1}))}}},f=c,d=r("2877"),p=Object(d["a"])(f,l,s,!1,null,null,null),m=p.exports,h=r("041b"),b=r("65df"),v={components:{DialogForm:m,SelectRemoteUser:b["a"]},data:function(){return{queryForm:{},isLoading:!0,pageData:{},currentPage:1,multipleSelection:[]}},created:function(){this.fetchData()},methods:{dateTimeFormatter:h["a"],selectionChange:function(e){var t=[];e.forEach((function(e){t.push(e.id)})),this.multipleSelection=t},paginationChange:function(e){this.currentPage=e,this.fetchData()},enabledByIds:function(e){var t=this;console.log("当前页: ".concat(e)),this.$confirm("确认要启用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["b"])(e).then((function(){t.fetchData()}))}))},disableByIds:function(e){var t=this;console.log("当前页: ".concat(e)),this.$confirm("确认要禁用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["a"])(e).then((function(){t.fetchData()}))}))},resetLoginPasswordByIds:function(e){var t=this;this.$confirm("确认要重置吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["g"])(e).then((function(e){t.$alert("新的登录密码为:"+e+",请妥善保管","登录密码重置成功",{confirmButtonText:"确定"})}))}))},fetchData:function(){var e=this;this.isLoading=!0,Object(i["e"])(Object(o["a"])(Object(o["a"])({},this.queryForm),{},{current:this.currentPage})).then((function(t){e.pageData=t})).finally((function(){return e.isLoading=!1}))}}},g=v,y=Object(d["a"])(g,n,a,!1,null,null,null);t["default"]=y.exports},"802d":function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return i})),r.d(t,"h",(function(){return l})),r.d(t,"i",(function(){return s})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return c})),r.d(t,"g",(function(){return f})),r.d(t,"f",(function(){return d}));var n=r("b775");function a(e){return Object(n["a"])({url:"/user/findPage",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/user/findLoginLogPage",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/user/findOperateLogPage",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/user/save",method:"post",data:e})}function s(e,t){return Object(n["a"])({url:"/user/updateById",method:"post",params:{id:e},data:t})}function u(e){return Object(n["a"])({url:"/user/enabledByIds",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/user/disableByIds",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/user/resetLoginPasswordByIds",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/user/findSelectAccounts",method:"post",params:{searchKey:e}})}},"8aa5":function(e,t,r){"use strict";var n=r("6547").charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),o=r("94ca"),i=r("6eeb"),l=r("5135"),s=r("c6b6"),u=r("7156"),c=r("c04e"),f=r("d039"),d=r("7c73"),p=r("241c").f,m=r("06cf").f,h=r("9bf2").f,b=r("58a8").trim,v="Number",g=a[v],y=g.prototype,x=s(d(y))==v,w=function(e){var t,r,n,a,o,i,l,s,u=c(e,!1);if("string"==typeof u&&u.length>2)if(u=b(u),t=u.charCodeAt(0),43===t||45===t){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(o=u.slice(2),i=o.length,l=0;l<i;l++)if(s=o.charCodeAt(l),s<48||s>a)return NaN;return parseInt(o,n)}return+u};if(o(v,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var E,_=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof _&&(x?f((function(){y.valueOf.call(r)})):s(r)!=v)?u(new g(w(t)),r,_):w(t)},k=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;k.length>O;O++)l(g,E=k[O])&&!l(_,E)&&h(_,E,m(g,E));_.prototype=y,y.constructor=_,i(a,v,_)}},cc5e:function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return s})),r.d(t,"c",(function(){return u}));var n=r("b775");function a(e){return Object(n["a"])({url:"/user/role/findPage",method:"post",data:e})}function o(){return Object(n["a"])({url:"/user/role/findAll",method:"post"})}function i(e){return Object(n["a"])({url:"/user/role/deleteByIds",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/user/role/save",method:"post",data:e})}function s(e,t){return Object(n["a"])({url:"/user/role/updateById",method:"post",params:{id:e},data:t})}function u(){return Object(n["a"])({url:"/user/authority/findAllAuthorities",method:"post"})}},d784:function(e,t,r){"use strict";r("ac1f");var n=r("6eeb"),a=r("d039"),o=r("b622"),i=r("9263"),l=r("9112"),s=o("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),p=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));e.exports=function(e,t,r,f){var m=o(e),h=!a((function(){var t={};return t[m]=function(){return 7},7!=""[e](t)})),b=h&&!a((function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[s]=function(){return r},r.flags="",r[m]=/./[m]),r.exec=function(){return t=!0,null},r[m](""),!t}));if(!h||!b||"replace"===e&&(!u||!c||d)||"split"===e&&!p){var v=/./[m],g=r(m,""[e],(function(e,t,r,n,a){return t.exec===i?h&&!a?{done:!0,value:v.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=g[0],x=g[1];n(String.prototype,e,y),n(RegExp.prototype,m,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&l(RegExp.prototype[m],"sham",!0)}}}]);
|