(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a4ef476","chunk-3b58f39b"],{"0a3b":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"positionT0L0"},[n("a-form-model",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,labelAlign:"right","label-col":{span:2},"wrapper-col":{span:10}}},[n("a-form-model-item",{staticClass:"por",attrs:{label:"海报名称",prop:"name"}},[n("a-input",{attrs:{maxLength:32,placeholder:"请输入海报名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}},[n("div",{attrs:{slot:"addonAfter"},slot:"addonAfter"},[e._v(e._s(e.form.name.length)+"/32")])])],1),n("a-form-model-item",{attrs:{label:"海报图片",prop:"imageUrl"}},[n("div",{staticClass:"poster"},[n("UpdateImg",{attrs:{imageUrlNum:1,imgUrl:e.form.imageUrl?[e.form.imageUrl]:[],urlSize:1024},on:{avatarfns:function(t){return e.form.imageUrl=t[0]}}}),n("div",[n("span",[e._v("应用于签到分享海报")]),n("span",[e._v("建议尺寸600px * 860px,JPG.PNG.格式 图片小于500k")])])],1)]),n("a-form-model-item",{attrs:{label:"日期",prop:"effectiveDate"}},[n("a-date-picker",{attrs:{format:"YYYY-MM-DD","disabled-date":e.disabledDate,placeholder:"选择日期"},model:{value:e.form.effectiveDate,callback:function(t){e.$set(e.form,"effectiveDate",t)},expression:"form.effectiveDate"}})],1),n("a-form-model-item",{attrs:{label:"跳转方式",prop:"targetType",required:""}},[n("a-radio-group",{model:{value:e.form.targetType,callback:function(t){e.$set(e.form,"targetType",t)},expression:"form.targetType"}},[n("a-radio",{attrs:{value:1}},[e._v(" 课程 ")]),n("a-radio",{attrs:{value:2}},[e._v(" 音频 ")]),n("a-radio",{attrs:{value:3}},[e._v(" 视频 ")])],1)],1),1===+e.form.targetType?n("a-form-model-item",{attrs:{label:"选择课程",prop:"businessNo"}},[n("a-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v(e._s(0===e.tableList.length?"添加课程":"修改课程"))]),e.tableList.length>0?n("div",[n("ProductCard",{attrs:{"table-list":e.tableList}})],1):e._e()],1):n("a-form-model-item",{attrs:{label:"背景图片",prop:"background"}},[n("div",{staticClass:"poster"},[n("UpdateImg",{attrs:{imageUrlNum:1,imgUrl:e.form.background?[e.form.background]:[]},on:{avatarfns:function(t){return e.form.background=t[0]}}}),n("div",[n("span",[e._v("应用于H5背景图")]),n("span",[e._v("建议尺寸686px * 1190px,JPG.PNG.格式 图片小于500k")])])],1)]),2===e.form.targetType?n("a-form-model-item",{attrs:{label:"音频上传",prop:"attachementUrl"}},[n("QiniuVideoAudio",{attrs:{oldFileName:e.form.attachementName,type:1},on:{videoFn:e.getAudioInfo}}),n("div",{staticStyle:{"font-weight":"600"}},[e._v("格式支持mp3,为保证音频加载与播放的流畅性,建议上传大小不超过500M。")])],1):e._e(),3===e.form.targetType?n("a-form-model-item",{attrs:{label:"视频上传",prop:"attachementUrl"}},[n("QiniuVideoAudio",{attrs:{oldFileName:e.form.attachementUrl,type:2,id:"videoUpdate"},on:{videoFn:function(t){return e.form.attachementUrl=t.fileUrl}}}),n("div",{staticStyle:{"font-weight":"600"}},[e._v("格式支持mp4,为保证音频加载与播放的流畅性,建议上传大小不超过500M。")])],1):e._e()],1),n("FooterToolBar",{attrs:{collapsed:e.sideCollapsed}},[n("a-button",{staticClass:"margin_right60",on:{click:function(){return e.$router.go(-1)}}},[e._v("返回")]),n("a-button",{attrs:{type:"primary",loading:e.keepLoading,disabled:e.keepLoading},on:{click:e.keepClick}},[e._v("保存")])],1),e.visible?n("RadioModal",{attrs:{modalVisible:e.visible,tabType:e.form.businessType,type:0,selectedRowKeys:e.selectedRowKeys},on:{cancel:function(t){e.visible=!1},ok:e.handleOk}}):e._e()],1)},i=[],o=n("1da1"),a=(n("96cf"),n("a9e3"),n("6395")),s=n("432b"),u=n("5a70"),c=n("c1df"),l=n.n(c),f=n("a65c"),h=n("b893"),d=n("49ef"),p=n("5497"),g=n("d11d"),m={mixins:[s["a"]],components:{FooterToolBar:u["a"],RadioModal:a["a"],UpdateImg:f["a"],ProductCard:d["a"],QiniuVideoAudio:p["a"]},data:function(){return{keepLoading:!1,form:{id:"",name:"",imageUrl:"",businessNo:"",businessType:1,effectiveDate:"",state:2,targetType:1,background:"",attachementUrl:"",appendixTime:0,attachementName:""},rules:{name:[{required:!0,message:"输入的内容不能为空",trigger:"blur"},{max:32,message:"长度最长为32个",trigger:"blur"}],imageUrl:[{required:!0,message:"请上传海报图片",trigger:["blur","change"]}],businessNo:[{required:!0,message:"请选择课程",trigger:["blur","change"]}],effectiveDate:[{required:!0,message:"请选择时间",trigger:["change","blur"]}],background:[{required:!0,message:"请上传背景图片",trigger:["blur","change"]}],attachementUrl:[{required:!0,message:"请上传音频",trigger:["blur","change"]}]},visible:!1,mdl:null,selectedRowKeys:[],disabledDate:h["c"],tableList:[]}},created:function(){var e=+this.$route.params.id;0!==e&&this.getDetail(e)},watch:{"form.targetType":function(e){2===e&&(this.rules.attachementUrl=[{required:!0,message:"请上传音频",trigger:["blur","change"]}]),3===e&&(this.rules.attachementUrl=[{required:!0,message:"请上传视频",trigger:["blur","change"]}])}},methods:{moment:l.a,getAudioInfo:function(e){this.form.attachementUrl=e.fileUrl,this.form.appendixTime=Math.round(Number(e.videoTime)),this.form.attachementName=e.oldFileName},getDetail:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(g["bb"])({id:e});case 2:if(r=n.sent,i=r.code,o=r.data,200===i){n.next=7;break}return n.abrupt("return");case 7:Object.assign(t.form,o),1===+o.targetType&&(a={businessName:o.businessName,businessType:o.businessType,coverUrl:o.coverUrl,price:o.price},t.tableList=[a]);case 9:case"end":return n.stop()}}),n)})))()},handleOk:function(e,t){this.visible=!1,0!==e.length&&(this.form.businessNo=t.courseNo,this.tableList=[t],this.selectedRowKeys=e)},keepClick:function(){var e=this;this.keepLoading=!0,this.$refs.ruleForm.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=9;break}if(e.form.effectiveDate=l()(e.form.effectiveDate).format("yyyy-MM-DD"),!e.form.id){t.next=7;break}return t.next=5,e.edit();case 5:t.next=9;break;case 7:return t.next=9,e.add();case 9:e.keepLoading=!1;case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},add:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return delete e.form.id,t.next=3,Object(g["X"])(e.form);case 3:if(n=t.sent,r=n.code,200===r){t.next=7;break}return t.abrupt("return");case 7:e.$message.success("添加成功"),e.$router.push("/indexManage/signPoster");case 9:case"end":return t.stop()}}),t)})))()},edit:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(g["ab"])(e.form);case 2:if(n=t.sent,r=n.code,200===r){t.next=6;break}return t.abrupt("return");case 6:e.$message.success("修改成功"),e.$router.push("/indexManage/signPoster");case 8:case"end":return t.stop()}}),t)})))()}}},y=m,v=(n("1cc6"),n("2877")),b=Object(v["a"])(y,r,i,!1,null,"aeaa3828",null);t["default"]=b.exports},1148:function(e,t,n){"use strict";var r=n("a691"),i=n("1d80");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"1cc6":function(e,t,n){"use strict";n("2950")},2950:function(e,t,n){},"2a99":function(e,t,n){},3489:function(e,t,n){"use strict";n("2a99")},"3fed":function(e,t,n){},"408a":function(e,t,n){var r=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},"481e":function(e,t,n){},"49ef":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-container"},[n("a-list",{attrs:{"item-layout":"horizontal","data-source":e.tableList},scopedSlots:e._u([{key:"renderItem",fn:function(t){return n("a-list-item",{},[n("div",{staticClass:"info-wrap flexbox middle justify"},[n("div",{staticClass:"item-info flexbox flex1"},[n("img",{staticClass:"p-img",attrs:{src:t.coverUrl?t.coverUrl:t.coverImg,alt:""}}),n("div",{staticClass:"p-info flex1"},[n("div",{staticClass:"p-wrap"},[n("div",{staticClass:"p-info-name more-t"},[e._v(" "+e._s(t.name?t.name:t.businessName||t.memberName)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&0==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 0"}],staticClass:"p-info-price"},[e._v(" 免费 ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&1==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 1"}],staticClass:"p-info-price"},[e._v(" ¥"+e._s(t.price.toFixed(2))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:1==t.courseType&&2==t.pricingType,expression:"item.courseType == 1 && item.pricingType == 2"}],staticClass:"p-info-price"},[e._v(" 不支持单独售卖 ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:1!=t.courseType,expression:"item.courseType != 1"}],staticClass:"p-info-price"},[e._v(" ¥"+e._s(t.price.toFixed(2))+" ")])]),n("div",{staticClass:"p-info-type"},[e._v(" 商品类型 :"+e._s(e.businessTypeMap.get(t.courseType?t.courseType:t.businessType))+" ")])])]),e.showDel?n("div",[n("a",{on:{click:function(n){return e.delHandle(t)}}},[n("a-icon",{staticStyle:{color:"#b2b2b2","margin-right":"10px"},attrs:{type:"close"}})],1)]):e._e()])])}}])})],1)},i=[],o=(n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),new Map([[1,"课程"],[2,"会员"],[void 0,"会员"]])),a={name:"ProductCard",props:{tableList:{type:Array,default:[]},showDel:{type:Boolean,default:!1}},data:function(){return{businessTypeMap:o}},methods:{delHandle:function(e){this.$emit("del",e)}}},s=a,u=(n("89c2"),n("2877")),c=Object(u["a"])(s,r,i,!1,null,"773baa91",null);t["a"]=c.exports},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,u=n("241c").f,c=n("44e7"),l=n("ad6d"),f=n("9f7f"),h=n("6eeb"),d=n("d039"),p=n("69f3").set,g=n("2626"),m=n("b622"),y=m("match"),v=i.RegExp,b=v.prototype,w=/a/g,x=/a/g,S=new v(w)!==w,C=f.UNSUPPORTED_Y,k=r&&o("RegExp",!S||C||d((function(){return x[y]=!1,v(w)!=w||v(x)==x||"/a/i"!=v(w,"i")})));if(k){var F=function(e,t){var n,r=this instanceof F,i=c(e),o=void 0===t;if(!r&&i&&e.constructor===F&&o)return e;S?i&&!o&&(e=e.source):e instanceof F&&(o&&(t=l.call(e)),e=e.source),C&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(S?new v(e,t):v(e,t),r?this:b,F);return C&&n&&p(s,{sticky:n}),s},P=function(e){e in F||s(F,e,{configurable:!0,get:function(){return v[e]},set:function(t){v[e]=t}})},T=u(v),U=0;while(T.length>U)P(T[U++]);b.constructor=F,F.prototype=b,h(i,"RegExp",F)}g("RegExp")},5497:function(e,t,n){"use strict";var r,i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ft-plant-upload-button"},[e.showProgress?e._e():n("button",{staticClass:"upload-btn",attrs:{type:"ghost",disabled:e.percent>.01&&e.percent<100},on:{click:e.zh_uploadFile}},[e._v("上传文件")]),e.showProgress?n("div",{staticClass:"progress-wraper"},[e.percent>.01&&e.percent<100?n("div",{staticClass:"progress"},[n("div",{staticClass:"progress-bar",style:{width:e.percent+"%"},attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100"}})]):e._e(),e.percent>.01&&e.percent<100?n("div",{staticClass:"precent"},[e._v(" "+e._s(e.percent||0)+"% "),n("a-icon",{attrs:{type:"close-circle"},on:{click:e.delClick}})],1):e._e()]):e._e(),n("div",{staticClass:"file-name"},[e._v(e._s(e.oldFileName))]),n("input",{ref:"evfile",staticStyle:{display:"none"},attrs:{type:"file",id:e.id},on:{change:e.zh_uploadFile_change}}),n("video",{ref:"videoPlayerNew",staticStyle:{display:"none"},attrs:{src:e.videoUrl,controls:"controls"}})])},o=[],a=(n("a9e3"),n("b0c0"),n("8a79"),n("99af"),n("b680"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());(function(e){e["InvalidFile"]="InvalidFile",e["InvalidToken"]="InvalidToken",e["InvalidMetadata"]="InvalidMetadata",e["InvalidChunkSize"]="InvalidChunkSize",e["InvalidCustomVars"]="InvalidCustomVars",e["NotAvailableUploadHost"]="NotAvailableUploadHost",e["ReadCacheFailed"]="ReadCacheFailed",e["InvalidCacheData"]="InvalidCacheData",e["WriteCacheFailed"]="WriteCacheFailed",e["RemoveCacheFailed"]="RemoveCacheFailed",e["InvalidTransformOrientation"]="InvalidTransformOrientation",e["GetCanvasContextFailed"]="GetCanvasContextFailed",e["UnsupportedFileType"]="UnsupportedFileType",e["FileReaderReadFailed"]="FileReaderReadFailed",e["NotAvailableXMLHttpRequest"]="NotAvailableXMLHttpRequest",e["InvalidProgressEventTarget"]="InvalidProgressEventTarget",e["RequestError"]="RequestError"})(r||(r={}));var s=function(){function e(e,t){this.name=e,this.message=t,this.stack=(new Error).stack}return e}(),u=function(e){function t(t,n,i,o){var a=e.call(this,r.RequestError,i)||this;return a.code=t,a.reqId=n,a.isRequestError=!0,a.data=o,a}return a(t,e),t}(s),c=function(e){function t(t,n){return void 0===n&&(n=""),e.call(this,0,n,t)||this}return a(t,e),t}(u),l=function(){function e(e,t){this.runTask=e,this.limit=t,this.queue=[],this.processing=[]}return e.prototype.enqueue=function(e){var t=this;return new Promise((function(n,r){t.queue.push({task:e,resolve:n,reject:r}),t.check()}))},e.prototype.run=function(e){var t=this;this.queue=this.queue.filter((function(t){return t!==e})),this.processing.push(e),this.runTask(e.task).then((function(){t.processing=t.processing.filter((function(t){return t!==e})),e.resolve(),t.check()}),(function(t){return e.reject(t)}))},e.prototype.check=function(){var e=this,t=this.processing.length,n=this.limit-t;this.queue.slice(0,n).forEach((function(t){e.run(t)}))},e}(),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n127&&s<2048)u=String.fromCharCode(s>>6|192,63&s|128);else if((63488&s^55296)>0)u=String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128);else{if((64512&s^55296)>0)throw new RangeError("Unmatched trail surrogate at "+a);var c=r.charCodeAt(++a);if((64512&c^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(a-1));s=((1023&s)<<10)+(1023&c)+65536,u=String.fromCharCode(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}null!==u&&(n>t&&(i+=r.slice(t,n)),i+=u,t=n=a+1)}return n>t&&(i+=r.slice(t,o)),i}function y(e){var t=[],n=0,r=0,i=0;e+="";while(n>10&1023)),t.push(String.fromCharCode(56320|1023&r))):t.push(String.fromCharCode(r)),n+=i}return t.join("")}function v(e){var t,n,r,i,o,a,s,u,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,f=0,h="",d=[];if(!e)return e;e=m(e+"");do{t=e.charCodeAt(l++),n=e.charCodeAt(l++),r=e.charCodeAt(l++),u=t<<16|n<<8|r,i=u>>18&63,o=u>>12&63,a=u>>6&63,s=63&u,d[f++]=c.charAt(i)+c.charAt(o)+c.charAt(a)+c.charAt(s)}while(l>16&255,n=u>>8&255,r=255&u,d[f++]=64===a?String.fromCharCode(t):64===s?String.fromCharCode(t,n):String.fromCharCode(t,n,r)}while(l0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]e.size)n=e.size;else while(e.size>1e4*n)n*=2;for(var r=[],i=Math.ceil(e.size/n),o=0;o3?t[1]:t[0];if(!n)throw new s(r.InvalidToken,"missing assess key field.");var i=null;try{i=JSON.parse(x(t[t.length-1]))}catch(a){throw new s(r.InvalidToken,"token parse failed.")}if(null==i)throw new s(r.InvalidToken,"putPolicy is null.");if(null==i.scope)throw new s(r.InvalidToken,"scope field is null.");var o=i.scope.split(":")[0];if(!o)throw new s(r.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:o,scope:i.scope}}function K(e){var t=window.URL||window.webkitURL||window.mozURL;return t.createObjectURL(e)}function W(e,t){var n=e.width,i=e.height;switch(t){case 1:return{width:n,height:i,matrix:[1,0,0,1,0,0]};case 2:return{width:n,height:i,matrix:[-1,0,0,1,n,0]};case 3:return{width:n,height:i,matrix:[-1,0,0,-1,n,i]};case 4:return{width:n,height:i,matrix:[1,0,0,-1,0,i]};case 5:return{width:i,height:n,matrix:[0,1,1,0,0,0]};case 6:return{width:i,height:n,matrix:[0,1,-1,0,i,0]};case 7:return{width:i,height:n,matrix:[0,-1,-1,0,i,n]};case 8:return{width:i,height:n,matrix:[0,-1,1,0,0,n]};default:throw new s(r.InvalidTransformOrientation,"orientation "+t+" is unavailable")}}var X={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},J=(S={},S[X.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},S[X.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},S[X.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},S[X.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},S[X.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},S[X.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},S),Y=n("b383"),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},fe=function(){for(var e=[],t=0;t1e4*ge)return this.handleError(new s(r.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!R(this.putExtra.customVars))return this.handleError(new s(r.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!_(this.putExtra.metadata))return this.handleError(new s(r.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];c.label=1;case 1:return c.trys.push([1,4,,5]),this.uploadAt=(new Date).getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return c.sent(),[4,this.run()];case 3:return e=c.sent(),this.onComplete(e.data),this.checkAndUnfreezeHost(),this.sendLog(e.reqId,200),[2];case 4:return t=c.sent(),this.logger.error(t),this.clear(),t instanceof u&&(n=this.aborted?"":t.reqId,i=this.aborted?-2:t.code,this.sendLog(n,i),this.checkAndFreezeHost(t),o=++this.retryCount<=this.config.retryCount,a=!this.aborted&&pe.includes(t.code),a&&o)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(t),[3,5]);case 5:return[2]}}))}))},e.prototype.clear=function(){this.logger.info("start cleaning all xhr."),this.xhrList.forEach((function(e){e.onreadystatechange=null,e.abort()})),this.logger.info("cleanup completed."),this.xhrList=[]},e.prototype.stop=function(){this.logger.info("stop."),this.clear(),this.aborted=!0},e.prototype.addXhr=function(e){this.xhrList.push(e)},e.prototype.sendLog=function(e,t){var n,r;this.logger.report({code:t,reqId:e,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:B(null===(n=this.uploadHost)||void 0===n?void 0:n.getUrl()),host:$(null===(r=this.uploadHost)||void 0===r?void 0:r.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor(((new Date).getTime()-this.uploadAt)/1e3)})},e.prototype.getProgressInfoItem=function(e,t,n){return se({size:t,loaded:e,percent:e/t*100},null==n?{}:{fromCache:n})},e}(),ye=me,ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1024)throw new s(r.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:c.sent(),e=new l((function(e){return a.uploadChunk(e)}),this.config.concurrentRequestLimit),t=null,n=this.getLocalKey(),i=this.chunks.map((function(t,n){return e.enqueue({chunk:t,index:n})})),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,Promise.all(i)];case 3:return c.sent(),[4,this.mkFileReq()];case 4:return t=c.sent(),[3,6];case 5:throw o=c.sent(),o instanceof u&&(612===o.code||400===o.code)&&E(n,this.logger),o;case 6:return E(n,this.logger),[2,t]}}))}))},t.prototype.uploadChunk=function(e){return we(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,c,l=this;return xe(this,(function(f){switch(f.label){case 0:return t=e.index,n=e.chunk,r=this.cachedUploadedList[t],this.logger.info("upload part "+t+", cache:",r),i=this.config.checkByMD5,o=function(){l.usedCacheList[t]=!0,l.updateChunkProgress(n.size,t),l.uploadedList[t]=r,l.updateLocalCache()},r&&!i?(o(),[2]):[4,G(n)];case 1:return a=f.sent(),this.logger.info("computed part md5.",a),r&&a===r.md5?(o(),[2]):(this.usedCacheList[t]=!1,s=function(e){l.updateChunkProgress(e.loaded,t)},u={body:n,onProgress:s,onCreate:function(e){return l.addXhr(e)}},this.logger.info("part "+t+" start uploading."),[4,ie(this.token,this.key,e.index+1,this.getUploadInfo(),u)]);case 2:return c=f.sent(),this.logger.info("part "+t+" upload completed."),s({loaded:n.size,total:n.size}),this.uploadedList[t]={etag:c.data.etag,md5:c.data.md5,size:n.size},this.updateLocalCache(),[2]}}))}))},t.prototype.mkFileReq=function(){return we(this,void 0,void 0,(function(){var e,t,n=this;return xe(this,(function(r){switch(r.label){case 0:return e=be(be(be({parts:this.uploadedList.map((function(e,t){return{etag:e.etag,partNumber:t+1}})),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",e),[4,oe(this.token,this.key,this.getUploadInfo(),{onCreate:function(e){return n.addXhr(e)},body:JSON.stringify(e)})];case 1:return t=r.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,t]}}))}))},t.prototype.initBeforeUploadChunks=function(){return we(this,void 0,void 0,(function(){var e,t,n;return xe(this,(function(r){switch(r.label){case 0:return this.uploadedList=[],this.usedCacheList=[],e=N(this.getLocalKey(),this.logger),e?[3,2]:(this.logger.info("init upload parts from api."),[4,re(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return t=r.sent(),this.logger.info("initd upload parts of id: "+t.data.uploadId+"."),this.uploadId=t.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:n=["resume upload parts from local cache,","total "+e.data.length+" part,","id is "+e.id+"."],this.logger.info(n.join(" ")),this.cachedUploadedList=e.data,this.uploadId=e.id,r.label=3;case 3:return this.chunks=I(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map((function(e){return 0}))},this.notifyResumeProgress(),[2]}}))}))},t.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},t.prototype.getLocalKey=function(){return L(this.file.name,this.key,this.file.size)},t.prototype.updateLocalCache=function(){A(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},t.prototype.updateChunkProgress=function(e,t){this.loaded.chunks[t]=e,this.notifyResumeProgress()},t.prototype.updateMkFileProgress=function(e){this.loaded.mkFileProgress=e,this.notifyResumeProgress()},t.prototype.notifyResumeProgress=function(){var e=this;this.progress={total:this.getProgressInfoItem(O(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map((function(t,n){var r=e.usedCacheList[n];return e.getProgressInfoItem(e.loaded.chunks[n],t.size,r)})),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},t}(ye),ke=Ce,Fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pe=function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},Te=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&_e(e,t,n-1)};var i=[t.code||"",t.reqId||"",t.host||"",t.remoteIp||"",t.port||"",t.duration||"",t.time||"",t.bytesSent||"",t.upType||"",t.size||""].join(",");r.send(i)}var Re=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},Oe=function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},Me=function(){for(var e=[],t=0;t=e},e.prototype.freeze=function(e){void 0===e&&(e=20);var t=(new Date).getTime()+1e3*e;ze.set(this.host,t)},e.prototype.unfreeze=function(){ze["delete"](this.host)},e.prototype.getUrl=function(){return this.protocol+"://"+this.host},e.prototype.getUnfreezeTime=function(){return ze.get(this.host)},e}(),Ge=function(){function e(e){void 0===e&&(e=[]),this.initHosts=e,this.cachedHostsMap=new Map}return e.prototype.register=function(e,t,n,r){this.cachedHostsMap.set(e+"@"+t,n.map((function(e){return new je(e,r)})))},e.prototype.refresh=function(e,t,n){var r,i,o,a;return Ee(this,void 0,void 0,(function(){var s,u,c;return Ne(this,(function(l){switch(l.label){case 0:return s=this.cachedHostsMap.get(e+"@"+t)||[],s.length>0?[2]:this.initHosts.length>0?(this.register(e,t,this.initHosts,n),[2]):[4,te(e,t,n)];case 1:return u=l.sent(),null!=(null===u||void 0===u?void 0:u.data)&&(c=Me((null===(i=null===(r=u.data.up)||void 0===r?void 0:r.acc)||void 0===i?void 0:i.main)||[],(null===(a=null===(o=u.data.up)||void 0===o?void 0:o.acc)||void 0===a?void 0:a.backup)||[]),this.register(e,t,c,n)),[2]}}))}))},e.prototype.getUp=function(e,t,n){return Ee(this,void 0,void 0,(function(){var r,i,o;return Ne(this,(function(a){switch(a.label){case 0:return[4,this.refresh(e,t,n)];case 1:return a.sent(),r=this.cachedHostsMap.get(e+"@"+t)||[],0===r.length?[2,null]:(i=r.filter((function(e){return!e.isFrozen()})),i.length>0?[2,i[0]]:(o=r.slice().sort((function(e,t){return(e.getUnfreezeTime()||0)-(t.getUnfreezeTime()||0)})),[2,o[0]]))}}))}))},e}();function qe(e,t,n,r){return e.config&&e.config.forceDirect?(r.info("ues forceDirect mode."),new Ie(e,t,n,r)):e.file.size>4*U?(r.info("file size over 4M, use Resume."),new ke(e,t,n,r)):(r.info("file size less or equal than 4M, use Direct."),new Ie(e,t,n,r))}function He(e,t,n,r,i){var o=new Le(n,null===i||void 0===i?void 0:i.disableStatisticsReport,null===i||void 0===i?void 0:i.debugLogLevel,e.name),a={file:e,key:t,token:n,putExtra:r,config:We(i,o)},s=new Ge(a.config.uphost);return new g((function(e){var t=qe(a,{onData:function(t){return e.next(t)},onError:function(t){return e.error(t)},onComplete:function(t){return e.complete(t)}},s,o);return t.putFile(),t.stop.bind(t)}))}var Be=function(){return Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},Ke=function(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},et=function(){for(var e=[],t=0;tthis.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:e.width,height:e.height}]:[2,{dist:a,width:o.width,height:o.height}]}}))}))},e.prototype.clear=function(e,t,n){this.outputType===ot?(e.fillStyle="#fff",e.fillRect(0,0,t,n)):e.clearRect(0,0,t,n)},e.prototype.getOriginImage=function(){var e=this;return new Promise((function(t,n){var r=K(e.file),i=new Image;i.onload=function(){t(i)},i.onerror=function(){n("image load error")},i.src=r}))},e.prototype.getCanvas=function(e){var t=this;return new Promise((function(n,i){Xe["EXIF"].getData(e,(function(){var o=Xe["EXIF"].getTag(e,"Orientation")||1,a=W(e,o),u=a.width,c=a.height,l=a.matrix,f=document.createElement("canvas"),h=f.getContext("2d");h?(f.width=u,f.height=c,t.clear(h,u,c),h.transform.apply(h,et(l)),h.drawImage(e,0,0),n(f)):i(new s(r.GetCanvasContextFailed,"context is null"))}))}))},e.prototype.doScale=function(e,t){return Ye(this,void 0,void 0,(function(){var n,i,o,a,u,c,l,f,h,d,p,g,m,y,v,b;return Qe(this,(function(w){if(1===t)return[2,e];if(n=e.getContext("2d"),i=Math.min(nt,Math.ceil(1/t/rt)),o=Math.pow(t,1/i),a=document.createElement("canvas"),u=a.getContext("2d"),c=e.width,l=e.height,f=c,h=l,a.width=c,a.height=l,!u||!n)throw new s(r.GetCanvasContextFailed,"mctx or sctx can't be null");for(g=0;ge.courseList.length){if(2==e.businessType&&e.isShowMember){++e.memberPage;var r=Math.ceil(e.memberCount/e.memberPageSize);if(r>>25)+r|0,o+=(n&r|~n&i)+t[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[10]-42063|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&o|i&~o)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^o)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,r(e.substring(t-64,t)));for(e=e.substring(t-64),i=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function a(e){var t,r,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,i(e.subarray(t-64,t)));for(e=t-64>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function u(e){var t;for(t=0;t>16)+(t>>16)+(n>>16);return r<<16|65535&n},"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,c=t(n,u),l=u;return r!==e&&(l=t(r,u)),c>l?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,c,i),a.set(s),o)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=d(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=8*this._length,r=r.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var n=o(e),r=u(n);return t?d(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=h(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=d(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=f(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=l(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=a(new Uint8Array(e)),r=u(n);return t?d(r):r},p}))},"6e45":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n("284b"),i=function(e){return r["a"].post("/admin/sys/user/login",e)},o=function(){return r["a"].post("/admin/sys/user/logout")},a=function(){return r["a"].get("/adminv2/config/dictionary")},s=function(e){return r["a"].get("/admin/config/getUploadToken",{params:e})}},"6f45":function(e,t,r){var i,o;(function(){var r=!1,a=function(e){return e instanceof a?e:this instanceof a?void(this.EXIFwrapped=e):new a(e)};e.exports&&(t=e.exports=a),t.EXIF=a;var s=a.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},u=a.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},c=a.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=a.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},f=a.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function h(e){return!!e.exifdata}function d(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a4?d:t+8,a=[],u=0;u4?d:t+8,k(e,o,h-1);case 3:if(1==h)return e.getUint16(t+8,!i);for(o=h>2?d:t+8,a=[],u=0;ue.byteLength)return{};var o=w(e,t,t+i,l,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=t+o.JpegIFOffset,s=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(e.buffer,a,s)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function k(e,t,r){var i="";for(n=t;n")+8;u=u.substring(u.indexOf("0){t["@attributes"]={};for(var n=0;n0)for(var n=0;n1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:f(o(n),r),u=String(e);return l?l.call(t,u,i):t.slice(i-u.length,i)===u}})},"91dd":function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=g.substr(0,m),h=g.substr(m+1)):(f=g,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},9644:function(e,t,n){"use strict";n("481e")},9940:function(e,t,n){},a65c:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"maxBox"},[n("div",{staticClass:"imgClass"},[e.imgUrl.length>0||e.readOnly?e._l(e.imgUrl,(function(t,r){return n("div",{key:r,staticClass:"box",on:{mouseenter:function(t){return e.handleMouse(r)},mouseleave:function(t){e.indexChange=-1}}},[n("img",{attrs:{src:t,alt:""}}),e.readOnly?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.indexChange==r,expression:"indexChange == index"}],staticClass:"mark",on:{click:function(t){return e.circleClick(r)}}},[e._v("删除 ")])])})):e._e(),e.imgUrl.length1024*t){var r=this.urlSize>=1024?this.urlSize/1024+"M":"".concat(t,"k");return u["a"].warning("图片大小不能超过".concat(r)),!1}var i=new FileReader;i.readAsDataURL(n),i.onload=function(t){if(1==e.sizeWh){var r=0,i=0,a=new Image;a.src=t.target.result,a.onload=function(){r=this.width,i=this.height},setTimeout((function(){if(console.log(r,i),r>650||i>1e3)return u["a"].warning("请上传小于等于650*1000图片!"),!1;var a=e.dataURLtoFile(t.target.result,n.name),c=new window.FormData;c.append("uploadFile",a),s.a.post("".concat(o["a"],"/admin/files/upload/images"),c).then((function(t){200==t.data.code&&(e.imgUrl.push(t.data.data.url),e.$emit("avatarfns",e.imgUrl))}))}),1e3)}else{var c=e.dataURLtoFile(t.target.result,n.name),l=new window.FormData;l.append("uploadFile",c),s.a.post("".concat(o["a"],"/admin/files/upload/images"),l).then((function(t){200==t.data.code&&(e.imgUrl.push(t.data.data.url),e.$emit("avatarfns",e.imgUrl))}))}}},GetPercent:function(e,t){return e=parseFloat(e),t=parseFloat(t),isNaN(e)||isNaN(t)?"-":Math.round(e/t*100)/100},dataURLtoFile:function(e,t){var n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,a=new Uint8Array(o);while(o--)a[o]=i.charCodeAt(o);return new File([a],t,{type:r})}},mounted:function(){}},l=c,f=(n("9644"),n("2877")),h=Object(f["a"])(l,r,i,!1,null,"6b1c416e",null);t["a"]=h.exports},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},b383:function(e,t,n){"use strict";t.decode=t.parse=n("91dd"),t.encode=t.stringify=n("e099")},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("a691"),o=n("408a"),a=n("1148"),s=n("d039"),u=1..toFixed,c=Math.floor,l=function(e,t,n){return 0===t?n:t%2===1?l(e,t-1,n*e):l(e*e,t/2,n)},f=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},h=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},d=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=c(r/t),r=r%t*1e7},p=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n},g=u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){u.call({})}));r({target:"Number",proto:!0,forced:g},{toFixed:function(e){var t,n,r,s,u=o(this),c=i(e),g=[0,0,0,0,0,0],m="",y="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(t=f(u*l(2,69,1))-69,n=t<0?u*l(2,-t,1):u/l(2,t,1),n*=4503599627370496,t=52-t,t>0){h(g,0,n),r=c;while(r>=7)h(g,1e7,0),r-=7;h(g,l(10,r,1),0),r=t-1;while(r>=23)d(g,1<<23),r-=23;d(g,1<0?(s=y.length,y=m+(s<=c?"0."+a.call("0",c-s)+y:y.slice(0,s-c)+"."+y.slice(s-c))):y=m+y,y}})},b893:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f}));n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("d81d"),n("159b");var r,i=n("c1df"),o=n.n(i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))},s=null,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;null!==s&&clearTimeout(s),s=setTimeout((function(){"function"===typeof e&&e()}),t)},c=function(e,t){var n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t},l=function(e){var t=JSON.parse(localStorage.getItem("powerListArr")),n="";return t.map((function(t){t.children.forEach((function(t){t.code==e&&(n=e),t.children.forEach((function(t){t.code==e&&(n=e)}))}))})),n},f=function(e){return e&&e