@egova/egova-api 1.3.8 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/index.html +26 -0
  3. package/dist/static/css/app.bc5a3384.css +1 -0
  4. package/dist/static/css/chunk-053872d1.4a141679.css +1 -0
  5. package/dist/static/css/chunk-1ab4b9f7.0f241a4e.css +1 -0
  6. package/dist/static/css/chunk-211c69c2.cc3af54f.css +1 -0
  7. package/dist/static/css/chunk-21d822fa.489d3c11.css +1 -0
  8. package/dist/static/css/chunk-2faeecce.814ade88.css +1 -0
  9. package/dist/static/css/chunk-38af701c.71ff4fd2.css +1 -0
  10. package/dist/static/css/chunk-443b023b.2e3a4829.css +1 -0
  11. package/dist/static/css/chunk-56371b4c.2520ecfc.css +1 -0
  12. package/dist/static/css/chunk-5a57cace.2d18da9b.css +1 -0
  13. package/dist/static/css/chunk-6710c591.17a5e7db.css +1 -0
  14. package/dist/static/css/chunk-6cf2028e.a4b6cfe8.css +1 -0
  15. package/dist/static/css/chunk-7d36da7f.36ef3b85.css +1 -0
  16. package/dist/static/css/chunk-f710f872.ae524a6d.css +1 -0
  17. package/dist/static/css/chunk-vendors.da730b12.css +20 -0
  18. package/dist/static/fonts/ionicons.143146fa.woff2 +0 -0
  19. package/dist/static/fonts/ionicons.99ac3308.woff +0 -0
  20. package/dist/static/fonts/ionicons.d535a25a.ttf +0 -0
  21. package/dist/static/img/ionicons.a2c4a261.svg +870 -0
  22. package/dist/static/js/app.b6504211.js +1 -0
  23. package/dist/static/js/chunk-053872d1.65f49d68.js +1 -0
  24. package/dist/static/js/chunk-1ab4b9f7.14f716ff.js +8 -0
  25. package/dist/static/js/chunk-211c69c2.dbf8d591.js +1 -0
  26. package/dist/static/js/chunk-21d822fa.834c0df0.js +22 -0
  27. package/dist/static/js/chunk-2faeecce.4a94945d.js +1 -0
  28. package/dist/static/js/chunk-302b8592.613856d1.js +16 -0
  29. package/dist/static/js/chunk-38af701c.c4a64c82.js +1 -0
  30. package/dist/static/js/chunk-443b023b.04ccce40.js +7 -0
  31. package/dist/static/js/chunk-56371b4c.0671a399.js +1 -0
  32. package/dist/static/js/chunk-5a57cace.3b080319.js +1 -0
  33. package/dist/static/js/chunk-6710c591.364dcbdc.js +1 -0
  34. package/dist/static/js/chunk-6cf2028e.95c31efe.js +1 -0
  35. package/dist/static/js/chunk-7d36da7f.83928752.js +1 -0
  36. package/dist/static/js/chunk-f710f872.c79f3870.js +1 -0
  37. package/dist/static/js/chunk-vendors.ed2610de.js +111 -0
  38. package/dist/static/setting.js +19 -0
  39. package/package.json +2 -2
  40. package/dist/demo.html +0 -10
  41. package/dist/index.common.js +0 -15587
  42. package/dist/index.css +0 -1
  43. package/dist/index.umd.js +0 -15597
  44. package/dist/index.umd.min.js +0 -28
@@ -0,0 +1 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2faeecce"],{"08ba":function(t,n,e){"use strict";e("e184");var r=e("76fa");e.d(n,"a",(function(){return r["a"]}))},"09e1":function(t,n,e){"use strict";e.r(n);e("e02e");var r=e("96dc"),o=e("2ad7"),i=e("59be"),a=e("d735"),c=(e("1aea"),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(n,t),Object(r["c"])([Object(a["PropSync"])("visiable",{default:!1})],n.prototype,"value",void 0),Object(r["c"])([Object(i["config"])({default:function(){return new Object}})],n.prototype,"data",void 0),n=Object(r["c"])([Object(i["component"])({template:e("6255")})],n),n}(i["Component"])),s=c,l=e("5573"),d=(e("270f"),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(n,t),n.prototype.onDelete=function(){this.$emit("on-delete",this.data)},n.prototype.onDetail=function(){this.$emit("on-detail",this.data)},n.prototype.onEdit=function(){this.$emit("on-edit",this.data)},n.prototype.onClick=function(t){this.$emit("on-"+t,this.data)},Object(r["c"])([Object(i["config"])({default:function(){return new Object}})],n.prototype,"data",void 0),n=Object(r["c"])([Object(i["component"])({template:e("ef27"),components:{"u-confirm":l["a"]}})],n),n}(i["Component"])),p=d,u=(e("17fe"),e("1d0e")),f=e("1d8a"),m=e("b5af"),h=e("3699"),b=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type="card",n.condition={},n.dataList=[],n.showAddModal=!1,n.loading=!1,n.columns=[{title:"项目名称",key:"name",align:"left",tooltip:!0},{title:"项目描述",key:"description",align:"left",tooltip:!0},{title:"创建时间",key:"createTime",align:"left",tooltip:!0},{title:"操作",slot:"action",align:"left"}],n.current={},n}return Object(r["d"])(n,t),Object.defineProperty(n.prototype,"uploadAction",{get:function(){return h["a"].signatureHref(f["a"].baseUrl+"/unity/api/info/import")},enumerable:!1,configurable:!0}),n.prototype.onCheckType=function(t){this.type=t},n.prototype.onAdd=function(){this.current={},this.showAddModal=!0},n.prototype.onDelete=function(t){return Object(r["b"])(this,void 0,void 0,(function(){var n;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return[4,this.service.deleteProject(t.id)];case 1:return n=e.sent(),n&&!n.hasError&&this.onQuery(),[2]}}))}))},n.prototype.onDetail=function(t){this.$router.push({name:"project-detail",params:{id:t.id},query:{name:t.name}})},n.prototype.onEdit=function(t){this.current=t,this.showAddModal=!0},n.prototype.onExport=function(t){return Object(r["b"])(this,void 0,void 0,(function(){var n;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return n=Object.create(null),n={projectId:t.id},this.loading=!0,[4,this.service.exportProject(n)];case 1:return e.sent(),this.loading=!1,[2]}}))}))},n.prototype.onComment=function(){this.$router.push({name:"project-comment"})},n.prototype.onQuery=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["e"])(this,(function(n){switch(n.label){case 0:return this.loading=!0,[4,this.service.getProjectList(this.condition)];case 1:return t=n.sent(),this.dataList=(null===t||void 0===t?void 0:t.result)||[],this.loading=!1,[2]}}))}))},n.prototype.mounted=function(){this.onQuery()},n.prototype.onSave=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["e"])(this,(function(n){switch(n.label){case 0:return[4,this.service.saveProject(this.current)];case 1:return t=n.sent(),t&&!t.hasError&&(this.showAddModal=!1,this.onQuery()),[2]}}))}))},Object.defineProperty(n.prototype,"headers",{get:function(){var t=Object(m["a"])().headers;return Object(r["a"])(Object(r["a"])({},t),{"App-Id":h["a"].appIdCode.id})},enumerable:!1,configurable:!0}),n.prototype.onSuccess=function(t,n){if(t&&!t.hasError)return this.$Message.success("导入成功"),this.onQuery(),void(this.loading=!1);this.loading=!1,this.$Message.error(t.message||"导入出错,请稍后再试")},n.prototype.onBeforeUpload=function(t){return this.loading=!0,-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),this.loading=!1,!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),this.loading=!1,!1)},n.prototype.onFormatError=function(t){this.loading=!1,this.$Message.warning("文件".concat(t.name,"格式错误"))},Object(r["c"])([Object(o["a"])(u["a"])],n.prototype,"service",void 0),n=Object(r["c"])([Object(i["component"])({name:"ApiProjectList",template:e("cfb3"),components:{"u-card":p,"u-add-modal":s,"u-confirm":l["a"]}})],n),n}(i["View"]);n["default"]=b},"17fe":function(t,n,e){},"1aea":function(t,n,e){},"1d0e":function(t,n,e){"use strict";e("68b7"),e("a4d2"),e("d371");var r=e("96dc"),o=e("b134"),i=e("08ba"),a=e("4ade"),c=e.n(a),s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(n,t),n.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},n.prototype.saveProject=function(t){return t.id?this._put("/unity/api/project",t):this._post("/unity/api/project",t)},n.prototype.deleteProject=function(t){return this._delete("/unity/api/project/".concat(t))},n.prototype.exportProject=function(t){return c.a.post(this.url("/unity/api/info/export"),t,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var n=new Blob([t.data],{type:"application/json"}),e=URL.createObjectURL(n),r=document.createElement("a");r.href=e,r.download=decodeURI("data-model.json"),r.style.display="none",document.body.appendChild(r),r.target="_blank",r.click(),r.parentNode.removeChild(r),window.URL.revokeObjectURL(e)}))},Object(r["c"])([Object(o["a"])("query",{title:"获取所有项目"})],n.prototype,"getProjectList",null),Object(r["c"])([Object(o["a"])("save",{title:"保存项目",showTip:!0,showErrorMsg:!0})],n.prototype,"saveProject",null),Object(r["c"])([Object(o["a"])("save",{title:"删除项目",showTip:!0,showErrorMsg:!0})],n.prototype,"deleteProject",null),n}(i["a"]);n["a"]=s},"270f":function(t,n,e){},5573:function(t,n,e){"use strict";var r=e("96dc"),o=e("59be"),i=(e("e9fa"),function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.value=!1,n}return Object(r["d"])(n,t),n.prototype.onOpenConfirm=function(){this.value=!0},n.prototype.onCancel=function(){this.value=!1,this.$emit("on-cancel")},n.prototype.onOk=function(){this.value=!1,this.$emit("on-ok")},Object(r["c"])([Object(o["config"])({default:"系统提示"})],n.prototype,"title",void 0),Object(r["c"])([Object(o["config"])({default:""})],n.prototype,"message",void 0),n=Object(r["c"])([Object(o["component"])({template:e("bc13")})],n),n}(o["Component"]));n["a"]=i},6255:function(t,n){t.exports='<i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal"\r\n :mask-closable="false"\r\n :title="data.id ? \'编辑项目\': \'新建项目\'"\r\n>\r\n <i-form :label-width="95" class="diy-form" label-colon>\r\n <i-form-item label="项目名称" required>\r\n <i-input\r\n v-model.trim="data.name"\r\n class="diy-input"\r\n placeholder="请输入项目名称"\r\n ></i-input>\r\n </i-form-item>\r\n <i-form-item label="项目描述">\r\n <i-input\r\n class="diy-input"\r\n type="textarea"\r\n :rows="4"\r\n v-model="data.description"\r\n placeholder="请输入项目描述"\r\n ></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <slot slot="footer" name="footer"> </slot>\r\n</i-modal>\r\n'},bc13:function(t,n){t.exports='<div class="confirm">\r\n <div @click.stop="onOpenConfirm">\r\n <slot></slot>\r\n </div>\r\n <i-modal\r\n width=400\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal confirm-modal"\r\n :mask-closable="false"\r\n :title="title"\r\n >\r\n <div>\r\n <i class="api-icon icon-warning"></i>\r\n </div>\r\n <p>\r\n {{message}}\r\n </p>\r\n <footer slot="footer">\r\n <i-button type="primary" class="diy-btn-primary " @click="onOk"\r\n >确定</i-button\r\n >\r\n <i-button @click="onCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</div>\r\n'},cfb3:function(t,n){t.exports='<article class="project-list">\r\n <header>\r\n <i-input\r\n class="diy-input"\r\n v-model="condition.name"\r\n search\r\n @on-search="onQuery"\r\n placeholder="输入关键字检索"\r\n ></i-input>\r\n </header>\r\n <main>\r\n <header class="tool-bar">\r\n <span>项目列表</span>\r\n <div class="right-tool">\r\n <div class="action-btn">\r\n <i-upload\r\n class="action-item"\r\n :action="uploadAction"\r\n accept=".json"\r\n :headers="headers"\r\n :show-upload-list="false"\r\n :format="[\'json\']"\r\n :on-success="onSuccess"\r\n :before-upload="onBeforeUpload"\r\n :on-format-error="onFormatError"\r\n >\r\n <i class="api-icon icon-import"></i>\r\n <div>导入项目</div>\r\n </i-upload>\r\n </div>\r\n <div class="action-btn" @click="onComment">\r\n <i\r\n class="api-icon icon-star"\r\n @click="onCheckType(\'list\')"\r\n ></i>\r\n <div>查看项目动态</div>\r\n </div>\r\n <i\r\n class="api-icon icon-list"\r\n :class="{\'active\': type === \'list\'}"\r\n title="列表展示"\r\n @click="onCheckType(\'list\')"\r\n ></i>\r\n <i\r\n class="api-icon icon-card"\r\n :class="{\'active\': type === \'card\'}"\r\n title="卡片展示"\r\n @click="onCheckType(\'card\')"\r\n ></i>\r\n </div>\r\n </header>\r\n <main>\r\n <section class="projects" v-if="type===\'card\'">\r\n <div class="project-card" @click="onAdd">\r\n <div class="add-card">\r\n <i-icon type="md-add" />\r\n <p>新建项目</p>\r\n </div>\r\n </div>\r\n <u-card\r\n v-for="item in dataList"\r\n :data="item"\r\n :key="item.id"\r\n @on-delete="onDelete"\r\n @on-detail="onDetail"\r\n @on-edit="onEdit"\r\n @on-export="onExport"\r\n ></u-card>\r\n </section>\r\n <section class="projects" v-else>\r\n <i-table class="diy-table" :columns="columns" :data="dataList">\r\n <template slot-scope="{ row,index }" slot="action">\r\n <span @click="onExport(row)" class="action-btn export"\r\n ><i class="api-icon icon-export projects-icon-export" title="导出此项目"></i\r\n ></span>\r\n <span @click="onDetail(row)" class="action-btn detail"\r\n ><i class="api-icon icon-detail" title="详情"></i\r\n ></span>\r\n <span @click="onEdit(row)" class="action-btn detail"\r\n ><i class="api-icon icon-edit" title="修改"></i\r\n ></span>\r\n <u-confirm\r\n title="删除项目"\r\n @on-ok="onDelete(row)"\r\n message="项目内所有接口将被一并删除, 是否确认执行?"\r\n >\r\n <span class="action-btn delete"\r\n ><i\r\n class="api-icon icon-delete"\r\n title="删除"\r\n ></i\r\n ></span>\r\n </u-confirm>\r\n </template>\r\n </i-table>\r\n </section>\r\n </main>\r\n </main>\r\n <u-add-modal :visiable.sync="showAddModal" :data="current">\r\n <footer slot="footer">\r\n <i-button @click="showAddModal = false">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary " @click="onSave"\r\n >确定</i-button\r\n >\r\n </footer>\r\n </u-add-modal>\r\n <i-spin fix v-show="loading">\r\n <i class="spin-icon-load ivu-icon"></i>\r\n </i-spin>\r\n</article>\r\n'},e9fa:function(t,n,e){},ef27:function(t,n){t.exports='<article class="project-card" @click="onDetail">\r\n <header>{{data.name}}</header>\r\n <i-dropdown transfer transfer-class-name="api-project-oprate" class="project-card-i-dropdown" @on-click="onClick">\r\n <i-icon type="ios-more" />\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item :name="\'export\'">\r\n <i\r\n class="api-icon icon-export project-card-i-dropdown-item-icon"\r\n title="导出此项目"\r\n @click.stop="onExport"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop="onEdit">修改</div>\r\n <u-confirm\r\n class="delete"\r\n title="删除项目"\r\n message="项目内所有接口将被一并删除, 是否确认执行?"\r\n @on-ok="onDelete"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n'}}]);
@@ -0,0 +1,16 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-302b8592"],{"09cf":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"d",(function(){return s})),i.d(e,"f",(function(){return o})),i.d(e,"g",(function(){return h})),i.d(e,"e",(function(){return a})),i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return c}));var r="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return r.charAt(t)}function s(t,e){return t&e}function o(t,e){return t|e}function h(t,e){return t^e}function a(t,e){return t&~e}function u(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function c(t){var e=0;while(0!=t)t&=t-1,++e;return e}},"0fed":function(t,e,i){"use strict";i.d(e,"a",(function(){return ot}));var r,n,s=i("f7ef"),o={decode:function(t){var e;if(void 0===r){var i="0123456789ABCDEF",n=" \f\n\r\t \u2028\u2029";for(r={},e=0;e<16;++e)r[i.charAt(e)]=e;for(i=i.toLowerCase(),e=10;e<16;++e)r[i.charAt(e)]=e;for(e=0;e<n.length;++e)r[n.charAt(e)]=-1}var s=[],o=0,h=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=r[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,++h>=2?(s[s.length]=o,o=0,h=0):o<<=4}}if(h)throw new Error("Hex encoding incomplete: 4 bits missing");return s}},h={decode:function(t){var e;if(void 0===n){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="= \f\n\r\t \u2028\u2029";for(n=Object.create(null),e=0;e<64;++e)n[i.charAt(e)]=e;for(n["-"]=62,n["_"]=63,e=0;e<r.length;++e)n[r.charAt(e)]=-1}var s=[],o=0,h=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(a=n[a],-1!=a){if(void 0===a)throw new Error("Illegal character at offset "+e);o|=a,++h>=4?(s[s.length]=o>>16,s[s.length]=o>>8&255,s[s.length]=255&o,o=0,h=0):o<<=6}}switch(h){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:s[s.length]=o>>10;break;case 3:s[s.length]=o>>16,s[s.length]=o>>8&255;break}return s},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=h.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return h.decode(t)}},a=1e13,u=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var i,r,n=this.buf,s=n.length;for(i=0;i<s;++i)r=n[i]*t+e,r<a?e=0:(e=0|r/a,r-=e*a),n[i]=r;e>0&&(n[i]=e)},t.prototype.sub=function(t){var e,i,r=this.buf,n=r.length;for(e=0;e<n;++e)i=r[e]-t,i<0?(i+=a,t=1):t=0,r[e]=i;while(0===r[r.length-1])r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,i=e[e.length-1].toString(),r=e.length-2;r>=0;--r)i+=(a+e[r]).toString().substring(1);return i},t.prototype.valueOf=function(){for(var t=this.buf,e=0,i=t.length-1;i>=0;--i)e=e*a+t[i];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),c="…",f=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,l=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function p(t,e){return t.length>e&&(t=t.substring(0,e)+c),t}var g,d=function(){function t(e,i){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=i)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,i){for(var r="",n=t;n<e;++n)if(r+=this.hexByte(this.get(n)),!0!==i)switch(15&n){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var i=t;i<e;++i){var r=this.get(i);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var i="",r=t;r<e;++r)i+=String.fromCharCode(this.get(r));return i},t.prototype.parseStringUTF=function(t,e){for(var i="",r=t;r<e;){var n=this.get(r++);i+=n<128?String.fromCharCode(n):n>191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(r++)):String.fromCharCode((15&n)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return i},t.prototype.parseStringBMP=function(t,e){for(var i,r,n="",s=t;s<e;)i=this.get(s++),r=this.get(s++),n+=String.fromCharCode(i<<8|r);return n},t.prototype.parseTime=function(t,e,i){var r=this.parseStringISO(t,e),n=(i?f:l).exec(r);return n?(i&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),r=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(r+=":"+n[5],n[6]&&(r+=":"+n[6],n[7]&&(r+="."+n[7]))),n[8]&&(r+=" UTC","Z"!=n[8]&&(r+=n[8],n[9]&&(r+=":"+n[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){var i,r=this.get(t),n=r>127,s=n?255:0,o="";while(r==s&&++t<e)r=this.get(t);if(i=e-t,0===i)return n?-1:0;if(i>4){o=r,i<<=3;while(0==(128&(+o^s)))o=+o<<1,--i;o="("+i+" bit)\n"}n&&(r-=256);for(var h=new u(r),a=t+1;a<e;++a)h.mulAdd(256,this.get(a));return o+h.toString()},t.prototype.parseBitString=function(t,e,i){for(var r=this.get(t),n=(e-t-1<<3)-r,s="("+n+" bit)\n",o="",h=t+1;h<e;++h){for(var a=this.get(h),u=h==e-1?r:0,c=7;c>=u;--c)o+=a>>c&1?"1":"0";if(o.length>i)return s+p(o,i)}return s+o},t.prototype.parseOctetString=function(t,e,i){if(this.isASCII(t,e))return p(this.parseStringISO(t,e),i);var r=e-t,n="("+r+" byte)\n";i/=2,r>i&&(e=t+i);for(var s=t;s<e;++s)n+=this.hexByte(this.get(s));return r>i&&(n+=c),n},t.prototype.parseOID=function(t,e,i){for(var r="",n=new u,s=0,o=t;o<e;++o){var h=this.get(o);if(n.mulAdd(128,127&h),s+=7,!(128&h)){if(""===r)if(n=n.simplify(),n instanceof u)n.sub(80),r="2."+n.toString();else{var a=n<80?n<40?0:1:2;r=a+"."+(n-40*a)}else r+="."+n.toString();if(r.length>i)return p(r,i);n=new u,s=0}}return s>0&&(r+=".incomplete"),r},t}(),y=function(){function t(t,e,i,r,n){if(!(r instanceof v))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=i,this.tag=r,this.sub=n}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),i=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+i);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+i,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+i,t);case 6:return this.stream.parseOID(e,e+i,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return p(this.stream.parseStringUTF(e,e+i),t);case 18:case 19:case 20:case 21:case 22:case 26:return p(this.stream.parseStringISO(e,e+i),t);case 30:return p(this.stream.parseStringBMP(e,e+i),t);case 23:case 24:return this.stream.parseTime(e,e+i,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var i=0,r=this.sub.length;i<r;++i)e+=this.sub[i].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),i=127&e;if(i==e)return i;if(i>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===i)return null;e=0;for(var r=0;r<i;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,i=2*this.length;return t.substr(e,i)},t.decode=function(e){var i;i=e instanceof d?e:new d(e,0);var r=new d(i),n=new v(i),s=t.decodeLength(i),o=i.pos,h=o-r.pos,a=null,u=function(){var e=[];if(null!==s){var r=o+s;while(i.pos<r)e[e.length]=t.decode(i);if(i.pos!=r)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var n=t.decode(i);if(n.tag.isEOC())break;e[e.length]=n}s=o-i.pos}catch(h){throw new Error("Exception while decoding undefined length content: "+h)}return e};if(n.tagConstructed)a=u();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=i.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");a=u();for(var c=0;c<a.length;++c)if(a[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){a=null}if(null===a){if(null===s)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);i.pos=o+Math.abs(s)}return new t(r,h,s,n,a)},t}(),v=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!==(32&e),this.tagNumber=31&e,31==this.tagNumber){var i=new u;do{e=t.get(),i.mulAdd(128,127&e)}while(128&e);this.tagNumber=i.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),m=i("09cf"),b=0xdeadbeefcafe,w=15715070==(16777215&b),T=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],S=(1<<26)/T[T.length-1],E=function(){function t(t,e,i){null!=t&&("number"==typeof t?this.fromNumber(t,e,i):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,r=(1<<e)-1,n=!1,s="",o=this.t,h=this.DB-o*this.DB%e;if(o-- >0){h<this.DB&&(i=this[o]>>h)>0&&(n=!0,s=Object(m["b"])(i));while(o>=0)h<e?(i=(this[o]&(1<<h)-1)<<e-h,i|=this[--o]>>(h+=this.DB-e)):(i=this[o]>>(h-=e)&r,h<=0&&(h+=this.DB,--o)),i>0&&(n=!0),n&&(s+=Object(m["b"])(i))}return n?s:"0"},t.prototype.negate=function(){var e=B();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(e=i-t.t,0!=e)return this.s<0?-e:e;while(--i>=0)if(0!=(e=this[i]-t[i]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+L(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var i=B();return this.abs().divRemTo(e,null,i),this.s<0&&i.compareTo(t.ZERO)>0&&e.subTo(i,i),i},t.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new O(e):new x(e),this.exp(t,i)},t.prototype.clone=function(){var t=B();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var i,r=this.DB-t*this.DB%8,n=0;if(t-- >0){r<this.DB&&(i=this[t]>>r)!=(this.s&this.DM)>>r&&(e[n++]=i|this.s<<this.DB-r);while(t>=0)r<8?(i=(this[t]&(1<<r)-1)<<8-r,i|=this[--t]>>(r+=this.DB-8)):(i=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&i)&&(i|=-256),0==n&&(128&this.s)!=(128&i)&&++n,(n>0||i!=this.s)&&(e[n++]=i)}return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=B();return this.bitwiseTo(t,m["d"],e),e},t.prototype.or=function(t){var e=B();return this.bitwiseTo(t,m["f"],e),e},t.prototype.xor=function(t){var e=B();return this.bitwiseTo(t,m["g"],e),e},t.prototype.andNot=function(t){var e=B();return this.bitwiseTo(t,m["e"],e),e},t.prototype.not=function(){for(var t=B(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=B();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=B();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Object(m["c"])(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,i=0;i<this.t;++i)t+=Object(m["a"])(this[i]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,m["f"])},t.prototype.clearBit=function(t){return this.changeBit(t,m["e"])},t.prototype.flipBit=function(t){return this.changeBit(t,m["g"])},t.prototype.add=function(t){var e=B();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=B();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=B();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=B();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=B();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=B(),i=B();return this.divRemTo(t,e,i),[e,i]},t.prototype.modPow=function(t,e){var i,r,n=t.bitLength(),s=q(1);if(n<=0)return s;i=n<18?1:n<48?3:n<144?4:n<768?5:6,r=n<8?new O(e):e.isEven()?new R(e):new x(e);var o=[],h=3,a=i-1,u=(1<<i)-1;if(o[1]=r.convert(this),i>1){var c=B();r.sqrTo(o[1],c);while(h<=u)o[h]=B(),r.mulTo(c,o[h-2],o[h]),h+=2}var f,l,p=t.t-1,g=!0,d=B();n=L(t[p])-1;while(p>=0){n>=a?f=t[p]>>n-a&u:(f=(t[p]&(1<<n+1)-1)<<a-n,p>0&&(f|=t[p-1]>>this.DB+n-a)),h=i;while(0==(1&f))f>>=1,--h;if((n-=h)<0&&(n+=this.DB,--p),g)o[f].copyTo(s),g=!1;else{while(h>1)r.sqrTo(s,d),r.sqrTo(d,s),h-=2;h>0?r.sqrTo(s,d):(l=s,s=d,d=l),r.mulTo(d,o[f],s)}while(p>=0&&0==(t[p]&1<<n))r.sqrTo(s,d),l=s,s=d,d=l,--n<0&&(n=this.DB-1,--p)}return r.revert(s)},t.prototype.modInverse=function(e){var i=e.isEven();if(this.isEven()&&i||0==e.signum())return t.ZERO;var r=e.clone(),n=this.clone(),s=q(1),o=q(0),h=q(0),a=q(1);while(0!=r.signum()){while(r.isEven())r.rShiftTo(1,r),i?(s.isEven()&&o.isEven()||(s.addTo(this,s),o.subTo(e,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);while(n.isEven())n.rShiftTo(1,n),i?(h.isEven()&&a.isEven()||(h.addTo(this,h),a.subTo(e,a)),h.rShiftTo(1,h)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);r.compareTo(n)>=0?(r.subTo(n,r),i&&s.subTo(h,s),o.subTo(a,o)):(n.subTo(r,n),i&&h.subTo(s,h),a.subTo(o,a))}return 0!=n.compareTo(t.ONE)?t.ZERO:a.compareTo(e)>=0?a.subtract(e):a.signum()<0?(a.addTo(e,a),a.signum()<0?a.add(e):a):a},t.prototype.pow=function(t){return this.exp(t,new D)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var r=e;e=i,i=r}var n=e.getLowestSetBit(),s=i.getLowestSetBit();if(s<0)return e;n<s&&(s=n),s>0&&(e.rShiftTo(s,e),i.rShiftTo(s,i));while(e.signum()>0)(n=e.getLowestSetBit())>0&&e.rShiftTo(n,e),(n=i.getLowestSetBit())>0&&i.rShiftTo(n,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return s>0&&i.lShiftTo(s,i),i},t.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=T[T.length-1]){for(e=0;e<T.length;++e)if(i[0]==T[e])return!0;return!1}if(i.isEven())return!1;e=1;while(e<T.length){var r=T[e],n=e+1;while(n<T.length&&r<S)r*=T[n++];r=i.modInt(r);while(e<n)if(r%T[e++]==0)return!1}return i.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,i){var r;if(16==i)r=4;else if(8==i)r=3;else if(256==i)r=8;else if(2==i)r=1;else if(32==i)r=5;else{if(4!=i)return void this.fromRadix(e,i);r=2}this.t=0,this.s=0;var n=e.length,s=!1,o=0;while(--n>=0){var h=8==r?255&+e[n]:M(e,n);h<0?"-"==e.charAt(n)&&(s=!0):(s=!1,0==o?this[this.t++]=h:o+r>this.DB?(this[this.t-1]|=(h&(1<<this.DB-o)-1)<<o,this[this.t++]=h>>this.DB-o):this[this.t-1]|=h<<o,o+=r,o>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){var t=this.s&this.DM;while(this.t>0&&this[this.t-1]==t)--this.t},t.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var i=t;i<this.t;++i)e[i-t]=this[i];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var i=t%this.DB,r=this.DB-i,n=(1<<r)-1,s=Math.floor(t/this.DB),o=this.s<<i&this.DM,h=this.t-1;h>=0;--h)e[h+s+1]=this[h]>>r|o,o=(this[h]&n)<<i;for(h=s-1;h>=0;--h)e[h]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var r=t%this.DB,n=this.DB-r,s=(1<<r)-1;e[0]=this[i]>>r;for(var o=i+1;o<this.t;++o)e[o-i-1]|=(this[o]&s)<<n,e[o-i]=this[o]>>r;r>0&&(e[this.t-i-1]|=(this.s&s)<<n),e.t=this.t-i,e.clamp()}},t.prototype.subTo=function(t,e){var i=0,r=0,n=Math.min(t.t,this.t);while(i<n)r+=this[i]-t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){r-=t.s;while(i<this.t)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(i<t.t)r-=t[i],e[i++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[i++]=this.DV+r:r>0&&(e[i++]=r),e.t=i,e.clamp()},t.prototype.multiplyTo=function(e,i){var r=this.abs(),n=e.abs(),s=r.t;i.t=s+n.t;while(--s>=0)i[s]=0;for(s=0;s<n.t;++s)i[s+r.t]=r.am(0,n[s],i,s,0,r.t);i.s=0,i.clamp(),this.s!=e.s&&t.ZERO.subTo(i,i)},t.prototype.squareTo=function(t){var e=this.abs(),i=t.t=2*e.t;while(--i>=0)t[i]=0;for(i=0;i<e.t-1;++i){var r=e.am(i,e[i],t,2*i,0,1);(t[i+e.t]+=e.am(i+1,2*e[i],t,2*i+1,r,e.t-i-1))>=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,i,r){var n=e.abs();if(!(n.t<=0)){var s=this.abs();if(s.t<n.t)return null!=i&&i.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=B());var o=B(),h=this.s,a=e.s,u=this.DB-L(n[n.t-1]);u>0?(n.lShiftTo(u,o),s.lShiftTo(u,r)):(n.copyTo(o),s.copyTo(r));var c=o.t,f=o[c-1];if(0!=f){var l=f*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),p=this.FV/l,g=(1<<this.F1)/l,d=1<<this.F2,y=r.t,v=y-c,m=null==i?B():i;o.dlShiftTo(v,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),t.ONE.dlShiftTo(c,m),m.subTo(o,o);while(o.t<c)o[o.t++]=0;while(--v>=0){var b=r[--y]==f?this.DM:Math.floor(r[y]*p+(r[y-1]+d)*g);if((r[y]+=o.am(0,b,r,v,0,c))<b){o.dlShiftTo(v,m),r.subTo(m,r);while(r[y]<--b)r.subTo(m,r)}}null!=i&&(r.drShiftTo(c,i),h!=a&&t.ZERO.subTo(i,i)),r.t=c,r.clamp(),u>0&&r.rShiftTo(u,r),h<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,i){if(e>4294967295||e<1)return t.ONE;var r=B(),n=B(),s=i.convert(this),o=L(e)-1;s.copyTo(r);while(--o>=0)if(i.sqrTo(r,n),(e&1<<o)>0)i.mulTo(n,s,r);else{var h=r;r=n,n=h}return i.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),r=q(i),n=B(),s=B(),o="";this.divRemTo(r,n,s);while(n.signum()>0)o=(i+s.intValue()).toString(t).substr(1)+o,n.divRemTo(r,n,s);return s.intValue().toString(t)+o},t.prototype.fromRadix=function(e,i){this.fromInt(0),null==i&&(i=10);for(var r=this.chunkSize(i),n=Math.pow(i,r),s=!1,o=0,h=0,a=0;a<e.length;++a){var u=M(e,a);u<0?"-"==e.charAt(a)&&0==this.signum()&&(s=!0):(h=i*h+u,++o>=r&&(this.dMultiply(n),this.dAddOffset(h,0),o=0,h=0))}o>0&&(this.dMultiply(Math.pow(i,o)),this.dAddOffset(h,0)),s&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,i,r){if("number"==typeof i)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),m["f"],this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(i))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this)}else{var n=[],s=7&e;n.length=1+(e>>3),i.nextBytes(n),s>0?n[0]&=(1<<s)-1:n[0]=0,this.fromString(n,256)}},t.prototype.bitwiseTo=function(t,e,i){var r,n,s=Math.min(t.t,this.t);for(r=0;r<s;++r)i[r]=e(this[r],t[r]);if(t.t<this.t){for(n=t.s&this.DM,r=s;r<this.t;++r)i[r]=e(this[r],n);i.t=this.t}else{for(n=this.s&this.DM,r=s;r<t.t;++r)i[r]=e(n,t[r]);i.t=t.t}i.s=e(this.s,t.s),i.clamp()},t.prototype.changeBit=function(e,i){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,i,r),r},t.prototype.addTo=function(t,e){var i=0,r=0,n=Math.min(t.t,this.t);while(i<n)r+=this[i]+t[i],e[i++]=r&this.DM,r>>=this.DB;if(t.t<this.t){r+=t.s;while(i<this.t)r+=this[i],e[i++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(i<t.t)r+=t[i],e[i++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[i++]=r:r<-1&&(e[i++]=this.DV+r),e.t=i,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,i){var r=Math.min(this.t+t.t,e);i.s=0,i.t=r;while(r>0)i[--r]=0;for(var n=i.t-this.t;r<n;++r)i[r+this.t]=this.am(0,t[r],i,r,0,this.t);for(n=Math.min(t.t,e);r<n;++r)this.am(0,t[r],i,r,0,e-r);i.clamp()},t.prototype.multiplyUpperTo=function(t,e,i){--e;var r=i.t=this.t+t.t-e;i.s=0;while(--r>=0)i[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)i[this.t+r-e]=this.am(e-r,t[r],i,0,0,this.t+r-e);i.clamp(),i.drShiftTo(1,i)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,i=this.s<0?t-1:0;if(this.t>0)if(0==e)i=this[0]%t;else for(var r=this.t-1;r>=0;--r)i=(e*i+this[r])%t;return i},t.prototype.millerRabin=function(e){var i=this.subtract(t.ONE),r=i.getLowestSetBit();if(r<=0)return!1;var n=i.shiftRight(r);e=e+1>>1,e>T.length&&(e=T.length);for(var s=B(),o=0;o<e;++o){s.fromInt(T[Math.floor(Math.random()*T.length)]);var h=s.modPow(n,this);if(0!=h.compareTo(t.ONE)&&0!=h.compareTo(i)){var a=1;while(a++<r&&0!=h.compareTo(i))if(h=h.modPowInt(2,this),0==h.compareTo(t.ONE))return!1;if(0!=h.compareTo(i))return!1}}return!0},t.prototype.square=function(){var t=B();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var n=i;i=r,r=n}var s=i.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)e(i);else{s<o&&(o=s),o>0&&(i.rShiftTo(o,i),r.rShiftTo(o,r));var h=function(){(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r)),i.signum()>0?setTimeout(h,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(h,10)}},t.prototype.fromNumberAsync=function(e,i,r,n){if("number"==typeof i)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),m["f"],this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>e&&s.subTo(t.ONE.shiftLeft(e-1),s),s.isProbablePrime(i)?setTimeout((function(){n()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var h=[],a=7&e;h.length=1+(e>>3),i.nextBytes(h),a>0?h[0]&=(1<<a)-1:h[0]=0,this.fromString(h,256)}},t}(),D=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),O=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),x=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=B();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(E.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=B();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var i=32767&t[e],r=i*this.mpl+((i*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;i=e+this.m.t,t[i]+=this.m.am(0,r,t,e,0,this.m.t);while(t[i]>=t.DV)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),R=function(){function t(t){this.m=t,this.r2=B(),this.q3=B(),E.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=B();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function B(){return new E(null)}function A(t,e){return new E(t,e)}var V="undefined"!==typeof navigator;V&&w&&"Microsoft Internet Explorer"==navigator.appName?(E.prototype.am=function(t,e,i,r,n,s){var o=32767&e,h=e>>15;while(--s>=0){var a=32767&this[t],u=this[t++]>>15,c=h*a+u*o;a=o*a+((32767&c)<<15)+i[r]+(1073741823&n),n=(a>>>30)+(c>>>15)+h*u+(n>>>30),i[r++]=1073741823&a}return n},g=30):V&&w&&"Netscape"!=navigator.appName?(E.prototype.am=function(t,e,i,r,n,s){while(--s>=0){var o=e*this[t++]+i[r]+n;n=Math.floor(o/67108864),i[r++]=67108863&o}return n},g=26):(E.prototype.am=function(t,e,i,r,n,s){var o=16383&e,h=e>>14;while(--s>=0){var a=16383&this[t],u=this[t++]>>14,c=h*a+u*o;a=o*a+((16383&c)<<14)+i[r]+n,n=(a>>28)+(c>>14)+h*u,i[r++]=268435455&a}return n},g=28),E.prototype.DB=g,E.prototype.DM=(1<<g)-1,E.prototype.DV=1<<g;var I=52;E.prototype.FV=Math.pow(2,I),E.prototype.F1=I-g,E.prototype.F2=2*g-I;var N,j,P=[];for(N="0".charCodeAt(0),j=0;j<=9;++j)P[N++]=j;for(N="a".charCodeAt(0),j=10;j<36;++j)P[N++]=j;for(N="A".charCodeAt(0),j=10;j<36;++j)P[N++]=j;function M(t,e){var i=P[t.charCodeAt(e)];return null==i?-1:i}function q(t){var e=B();return e.fromInt(t),e}function L(t){var e,i=1;return 0!=(e=t>>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}E.ZERO=q(0),E.ONE=q(1);var H=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,i,r;for(e=0;e<256;++e)this.S[e]=e;for(i=0,e=0;e<256;++e)i=i+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[i],this.S[i]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();function C(){return new H}var _,U,k=256,F=null;if(null==F){F=[],U=0;var K=void 0;if("undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues){var z=new Uint32Array(256);for(window.crypto.getRandomValues(z),K=0;K<z.length;++K)F[U++]=255&z[K]}var Z=0,$=function(t){if(Z=Z||0,Z>=256||U>=k)window.removeEventListener?window.removeEventListener("mousemove",$,!1):window.detachEvent&&window.detachEvent("onmousemove",$);else try{var e=t.x+t.y;F[U++]=255&e,Z+=1}catch(i){}};"undefined"!==typeof window&&(window.addEventListener?window.addEventListener("mousemove",$,!1):window.attachEvent&&window.attachEvent("onmousemove",$))}function G(){if(null==_){_=C();while(U<k){var t=Math.floor(65536*Math.random());F[U++]=255&t}for(_.init(F),U=0;U<F.length;++U)F[U]=0;U=0}return _.next()}var Y=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=G()},t}();function X(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var i=e-t.length-6,r="",n=0;n<i;n+=2)r+="ff";var s="0001"+r+"00"+t;return A(s,16)}function J(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;var i=[],r=t.length-1;while(r>=0&&e>0){var n=t.charCodeAt(r--);n<128?i[--e]=n:n>127&&n<2048?(i[--e]=63&n|128,i[--e]=n>>6|192):(i[--e]=63&n|128,i[--e]=n>>6&63|128,i[--e]=n>>12|224)}i[--e]=0;var s=new Y,o=[];while(e>2){o[0]=0;while(0==o[0])s.nextBytes(o);i[--e]=o[0]}return i[--e]=2,i[--e]=0,new E(i)}var W=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p),i=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(i)<0)e=e.add(this.p);return e.subtract(i).multiply(this.coeff).mod(this.p).multiply(this.q).add(i)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=A(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,i=J(t,e);if(null==i)return null;var r=this.doPublic(i);if(null==r)return null;for(var n=r.toString(16),s=n.length,o=0;o<2*e-s;o++)n="0"+n;return n},t.prototype.setPrivate=function(t,e,i){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=A(t,16),this.e=parseInt(e,16),this.d=A(i,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,i,r,n,s,o,h){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=A(t,16),this.e=parseInt(e,16),this.d=A(i,16),this.p=A(r,16),this.q=A(n,16),this.dmp1=A(s,16),this.dmq1=A(o,16),this.coeff=A(h,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var i=new Y,r=t>>1;this.e=parseInt(e,16);for(var n=new E(e,16);;){for(;;)if(this.p=new E(t-r,1,i),0==this.p.subtract(E.ONE).gcd(n).compareTo(E.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new E(r,1,i),0==this.q.subtract(E.ONE).gcd(n).compareTo(E.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var o=this.p.subtract(E.ONE),h=this.q.subtract(E.ONE),a=o.multiply(h);if(0==a.gcd(n).compareTo(E.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(a),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(h),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=A(t,16),i=this.doPrivate(e);return null==i?null:Q(i,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,i){var r=new Y,n=t>>1;this.e=parseInt(e,16);var s=new E(e,16),o=this,h=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(E.ONE),r=o.q.subtract(E.ONE),n=e.multiply(r);0==n.gcd(s).compareTo(E.ONE)?(o.n=o.p.multiply(o.q),o.d=s.modInverse(n),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){i()}),0)):setTimeout(h,0)},a=function(){o.q=B(),o.q.fromNumberAsync(n,1,r,(function(){o.q.subtract(E.ONE).gcda(s,(function(t){0==t.compareTo(E.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(a,0)}))}))},u=function(){o.p=B(),o.p.fromNumberAsync(t-n,1,r,(function(){o.p.subtract(E.ONE).gcda(s,(function(t){0==t.compareTo(E.ONE)&&o.p.isProbablePrime(10)?setTimeout(a,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(h,0)},t.prototype.sign=function(t,e,i){var r=et(i),n=r+e(t).toString(),s=X(n,this.n.bitLength()/4);if(null==s)return null;var o=this.doPrivate(s);if(null==o)return null;var h=o.toString(16);return 0==(1&h.length)?h:"0"+h},t.prototype.verify=function(t,e,i){var r=A(e,16),n=this.doPublic(r);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,""),o=it(s);return o==i(t).toString()},t}();function Q(t,e){var i=t.toByteArray(),r=0;while(r<i.length&&0==i[r])++r;if(i.length-r!=e-1||2!=i[r])return null;++r;while(0!=i[r])if(++r>=i.length)return null;var n="";while(++r<i.length){var s=255&i[r];s<128?n+=String.fromCharCode(s):s>191&&s<224?(n+=String.fromCharCode((31&s)<<6|63&i[r+1]),++r):(n+=String.fromCharCode((15&s)<<12|(63&i[r+1])<<6|63&i[r+2]),r+=2)}return n}var tt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function et(t){return tt[t]||""}function it(t){for(var e in tt)if(tt.hasOwnProperty(e)){var i=tt[e],r=i.length;if(t.substr(0,r)==i)return t.substr(r)}return t}
2
+ /*!
3
+ Copyright (c) 2011, Yahoo! Inc. All rights reserved.
4
+ Code licensed under the BSD License:
5
+ http://developer.yahoo.com/yui/license.html
6
+ version: 2.9.0
7
+ */var rt={};rt.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var n;for(n in i)t.prototype[n]=i[n];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(t,e){for(n=0;n<o.length;n+=1){var i=o[n],r=e[i];"function"===typeof r&&r!=Object.prototype[i]&&(t[i]=r)}})}catch(h){}s(t.prototype,i)}}};
8
+ /**
9
+ * @fileOverview
10
+ * @name asn1-1.0.js
11
+ * @author Kenji Urushima kenji.urushima@gmail.com
12
+ * @version asn1 1.0.13 (2017-Jun-02)
13
+ * @since jsrsasign 2.1
14
+ * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
15
+ */
16
+ var nt={};"undefined"!=typeof nt.asn1&&nt.asn1||(nt.asn1={}),nt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var i=e.substr(1),r=i.length;r%2==1?r+=1:e.match(/^[0-7]/)||(r+=2);for(var n="",s=0;s<r;s++)n+="f";var o=new E(n,16),h=o.xor(t).add(E.ONE);e=h.toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=nt,i=e.asn1,r=i.DERBoolean,n=i.DERInteger,s=i.DERBitString,o=i.DEROctetString,h=i.DERNull,a=i.DERObjectIdentifier,u=i.DEREnumerated,c=i.DERUTF8String,f=i.DERNumericString,l=i.DERPrintableString,p=i.DERTeletexString,g=i.DERIA5String,d=i.DERUTCTime,y=i.DERGeneralizedTime,v=i.DERSequence,m=i.DERSet,b=i.DERTaggedObject,w=i.ASN1Util.newObject,T=Object.keys(t);if(1!=T.length)throw"key of param shall be only one.";var S=T[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+S+":"))throw"undefined key: "+S;if("bool"==S)return new r(t[S]);if("int"==S)return new n(t[S]);if("bitstr"==S)return new s(t[S]);if("octstr"==S)return new o(t[S]);if("null"==S)return new h(t[S]);if("oid"==S)return new a(t[S]);if("enum"==S)return new u(t[S]);if("utf8str"==S)return new c(t[S]);if("numstr"==S)return new f(t[S]);if("prnstr"==S)return new l(t[S]);if("telstr"==S)return new p(t[S]);if("ia5str"==S)return new g(t[S]);if("utctime"==S)return new d(t[S]);if("gentime"==S)return new y(t[S]);if("seq"==S){for(var E=t[S],D=[],O=0;O<E.length;O++){var x=w(E[O]);D.push(x)}return new v({array:D})}if("set"==S){for(E=t[S],D=[],O=0;O<E.length;O++){x=w(E[O]);D.push(x)}return new m({array:D})}if("tag"==S){var R=t[S];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){var B=w(R[2]);return new b({tag:R[0],explicit:R[1],obj:B})}var A={};if(void 0!==R.explicit&&(A.explicit=R.explicit),void 0!==R.tag&&(A.tag=R.tag),void 0===R.obj)throw"obj shall be specified for 'tag'.";return A.obj=w(R.obj),new b(A)}},this.jsonToASN1HEX=function(t){var e=this.newObject(t);return e.getEncodedHex()}},nt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",i=parseInt(t.substr(0,2),16),r=Math.floor(i/40),n=i%40,s=(e=r+"."+n,""),o=2;o<t.length;o+=2){var h=parseInt(t.substr(o,2),16),a=("00000000"+h.toString(2)).slice(-8);if(s+=a.substr(1,7),"0"==a.substr(0,1)){var u=new E(s,2);e=e+"."+u.toString(10),s=""}}return e},nt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},i=function(t){var i="",r=new E(t,10),n=r.toString(2),s=7-n.length%7;7==s&&(s=0);for(var o="",h=0;h<s;h++)o+="0";n=o+n;for(h=0;h<n.length-1;h+=7){var a=n.substr(h,7);h!=n.length-7&&(a="1"+a),i+=e(parseInt(a,2))}return i};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",n=t.split("."),s=40*parseInt(n[0])+parseInt(n[1]);r+=e(s),n.splice(0,2);for(var o=0;o<n.length;o++)r+=i(n[o]);return r},nt.asn1.ASN1Object=function(){var t="";this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+t.length+",v="+this.hV;var e=this.hV.length/2,i=e.toString(16);if(i.length%2==1&&(i="0"+i),e<128)return i;var r=i.length/2;if(r>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);var n=128+r;return n.toString(16)+i},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},nt.asn1.DERAbstractString=function(t){nt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t?this.setString(t):"undefined"!=typeof t["str"]?this.setString(t["str"]):"undefined"!=typeof t["hex"]&&this.setStringHex(t["hex"]))},rt.lang.extend(nt.asn1.DERAbstractString,nt.asn1.ASN1Object),nt.asn1.DERAbstractTime=function(t){nt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e},this.formatDate=function(t,e,i){var r=this.zeroPadding,n=this.localDateToUTC(t),s=String(n.getFullYear());"utc"==e&&(s=s.substr(2,2));var o=r(String(n.getMonth()+1),2),h=r(String(n.getDate()),2),a=r(String(n.getHours()),2),u=r(String(n.getMinutes()),2),c=r(String(n.getSeconds()),2),f=s+o+h+a+u+c;if(!0===i){var l=n.getMilliseconds();if(0!=l){var p=r(String(l),3);p=p.replace(/[0]+$/,""),f=f+"."+p}}return f+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,i,r,n,s){var o=new Date(Date.UTC(t,e-1,i,r,n,s,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},rt.lang.extend(nt.asn1.DERAbstractTime,nt.asn1.ASN1Object),nt.asn1.DERAbstractStructured=function(t){nt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,"undefined"!=typeof t&&"undefined"!=typeof t["array"]&&(this.asn1Array=t["array"])},rt.lang.extend(nt.asn1.DERAbstractStructured,nt.asn1.ASN1Object),nt.asn1.DERBoolean=function(){nt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},rt.lang.extend(nt.asn1.DERBoolean,nt.asn1.ASN1Object),nt.asn1.DERInteger=function(t){nt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=nt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new E(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["bigint"]?this.setByBigInteger(t["bigint"]):"undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},rt.lang.extend(nt.asn1.DERInteger,nt.asn1.ASN1Object),nt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=nt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}nt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var i="0"+t;this.hTLV=null,this.isModified=!0,this.hV=i+e},this.setByBinaryString=function(t){t=t.replace(/0+$/,"");var e=8-t.length%8;8==e&&(e=0);for(var i=0;i<=e;i++)t+="0";var r="";for(i=0;i<t.length-1;i+=8){var n=t.substr(i,8),s=parseInt(n,2).toString(16);1==s.length&&(s="0"+s),r+=s}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",i=0;i<t.length;i++)1==t[i]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),i=0;i<t;i++)e[i]=!1;return e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):"undefined"!=typeof t["hex"]?this.setHexValueIncludingUnusedBits(t["hex"]):"undefined"!=typeof t["bin"]?this.setByBinaryString(t["bin"]):"undefined"!=typeof t["array"]&&this.setByBooleanArray(t["array"]))},rt.lang.extend(nt.asn1.DERBitString,nt.asn1.ASN1Object),nt.asn1.DEROctetString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=nt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}nt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},rt.lang.extend(nt.asn1.DEROctetString,nt.asn1.DERAbstractString),nt.asn1.DERNull=function(){nt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},rt.lang.extend(nt.asn1.DERNull,nt.asn1.ASN1Object),nt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},i=function(t){var i="",r=new E(t,10),n=r.toString(2),s=7-n.length%7;7==s&&(s=0);for(var o="",h=0;h<s;h++)o+="0";n=o+n;for(h=0;h<n.length-1;h+=7){var a=n.substr(h,7);h!=n.length-7&&(a="1"+a),i+=e(parseInt(a,2))}return i};nt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",n=t.split("."),s=40*parseInt(n[0])+parseInt(n[1]);r+=e(s),n.splice(0,2);for(var o=0;o<n.length;o++)r+=i(n[o]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=nt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"===typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},rt.lang.extend(nt.asn1.DERObjectIdentifier,nt.asn1.ASN1Object),nt.asn1.DEREnumerated=function(t){nt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=nt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new E(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["int"]?this.setByInteger(t["int"]):"number"==typeof t?this.setByInteger(t):"undefined"!=typeof t["hex"]&&this.setValueHex(t["hex"]))},rt.lang.extend(nt.asn1.DEREnumerated,nt.asn1.ASN1Object),nt.asn1.DERUTF8String=function(t){nt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},rt.lang.extend(nt.asn1.DERUTF8String,nt.asn1.DERAbstractString),nt.asn1.DERNumericString=function(t){nt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},rt.lang.extend(nt.asn1.DERNumericString,nt.asn1.DERAbstractString),nt.asn1.DERPrintableString=function(t){nt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},rt.lang.extend(nt.asn1.DERPrintableString,nt.asn1.DERAbstractString),nt.asn1.DERTeletexString=function(t){nt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},rt.lang.extend(nt.asn1.DERTeletexString,nt.asn1.DERAbstractString),nt.asn1.DERIA5String=function(t){nt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},rt.lang.extend(nt.asn1.DERIA5String,nt.asn1.DERAbstractString),nt.asn1.DERUTCTime=function(t){nt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return"undefined"==typeof this.date&&"undefined"==typeof this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},rt.lang.extend(nt.asn1.DERUTCTime,nt.asn1.DERAbstractTime),nt.asn1.DERGeneralizedTime=function(t){nt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},rt.lang.extend(nt.asn1.DERGeneralizedTime,nt.asn1.DERAbstractTime),nt.asn1.DERSequence=function(t){nt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t+=i.getEncodedHex()}return this.hV=t,this.hV}},rt.lang.extend(nt.asn1.DERSequence,nt.asn1.DERAbstractStructured),nt.asn1.DERSet=function(t){nt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var i=this.asn1Array[e];t.push(i.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},"undefined"!=typeof t&&"undefined"!=typeof t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},rt.lang.extend(nt.asn1.DERSet,nt.asn1.DERAbstractStructured),nt.asn1.DERTaggedObject=function(t){nt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,i){this.hT=e,this.isExplicit=t,this.asn1Object=i,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=i.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof t&&("undefined"!=typeof t["tag"]&&(this.hT=t["tag"]),"undefined"!=typeof t["explicit"]&&(this.isExplicit=t["explicit"]),"undefined"!=typeof t["obj"]&&(this.asn1Object=t["obj"],this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},rt.lang.extend(nt.asn1.DERTaggedObject,nt.asn1.ASN1Object);var st=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!==typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ot=function(t){function e(i){var r=t.call(this)||this;return i&&("string"===typeof i?r.parseKey(i):(e.hasPrivateKeyProperty(i)||e.hasPublicKeyProperty(i))&&r.parsePropertiesFrom(i)),r}return st(e,t),e.prototype.parseKey=function(t){try{var e=0,i=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,n=r.test(t)?o.decode(t):h.unarmor(t),s=y.decode(n);if(3===s.sub.length&&(s=s.sub[2].sub[0]),9===s.sub.length){e=s.sub[1].getHexStringValue(),this.n=A(e,16),i=s.sub[2].getHexStringValue(),this.e=parseInt(i,16);var a=s.sub[3].getHexStringValue();this.d=A(a,16);var u=s.sub[4].getHexStringValue();this.p=A(u,16);var c=s.sub[5].getHexStringValue();this.q=A(c,16);var f=s.sub[6].getHexStringValue();this.dmp1=A(f,16);var l=s.sub[7].getHexStringValue();this.dmq1=A(l,16);var p=s.sub[8].getHexStringValue();this.coeff=A(p,16)}else{if(2!==s.sub.length)return!1;if(s.sub[0].sub){var g=s.sub[1],d=g.sub[0];e=d.sub[0].getHexStringValue(),this.n=A(e,16),i=d.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else e=s.sub[0].getHexStringValue(),this.n=A(e,16),i=s.sub[1].getHexStringValue(),this.e=parseInt(i,16)}return!0}catch(v){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new nt.asn1.DERInteger({int:0}),new nt.asn1.DERInteger({bigint:this.n}),new nt.asn1.DERInteger({int:this.e}),new nt.asn1.DERInteger({bigint:this.d}),new nt.asn1.DERInteger({bigint:this.p}),new nt.asn1.DERInteger({bigint:this.q}),new nt.asn1.DERInteger({bigint:this.dmp1}),new nt.asn1.DERInteger({bigint:this.dmq1}),new nt.asn1.DERInteger({bigint:this.coeff})]},e=new nt.asn1.DERSequence(t);return e.getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Object(s["b"])(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new nt.asn1.DERSequence({array:[new nt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new nt.asn1.DERNull]}),e=new nt.asn1.DERSequence({array:[new nt.asn1.DERInteger({bigint:this.n}),new nt.asn1.DERInteger({int:this.e})]}),i=new nt.asn1.DERBitString({hex:"00"+e.getEncodedHex()}),r=new nt.asn1.DERSequence({array:[t,i]});return r.getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Object(s["b"])(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(e=e||64,!t)return t;var i="(.{1,"+e+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(i,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----",t},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----",t},e.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(W)},"1d8a":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var r=i("96dc"),n=window,s=Object(r["a"])({},n.commonSetting)},"2ad7":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var r=i("f3e7");function n(t){return function(e,i){var n=t;n&&!r["a"].has(n)&&r["a"].set(n,r["a"].create(t)),Object.defineProperty(e,i,{get:function(){return r["a"].get(n)}})}}},4068:function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return h}));var r,n=i("f7ef"),s=i("0fed"),o="undefined"!==typeof t?null===(r=Object({NODE_ENV:"production",BASE_URL:""}))||void 0===r?void 0:r.npm_package_version:void 0,h=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new s["a"](t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Object(n["a"])(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return Object(n["b"])(this.getKey().encrypt(t))}catch(e){return!1}},t.prototype.sign=function(t,e,i){try{return Object(n["b"])(this.getKey().sign(t,e,i))}catch(r){return!1}},t.prototype.verify=function(t,e,i){try{return this.getKey().verify(t,Object(n["a"])(e),i)}catch(r){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new s["a"],t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=o,t}()}).call(this,i("0418"))},"76fa":function(t,e,i){"use strict";var r=i("96dc"),n=i("b134"),s=i("e184"),o=i("91e4"),h=i.n(o),a=i("4068"),u=a["a"],c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(e,t),e.prototype.getPublicKey=function(){return Object(r["b"])(this,void 0,Promise,(function(){var t;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return[4,this._get("".concat(this.securityServer,"/oauth/extras/public-key"))];case 1:return t=e.sent(),h.a.set("public-key",t.result||"none"),[2,t]}}))}))},e.prototype.login=function(t,e){return Object(r["b"])(this,void 0,Promise,(function(){return Object(r["e"])(this,(function(i){return[2,this._post("".concat(this.securityServer,"/oauth/extras/token"),{client_id:"unity-client",client_secret:"unity",grant_type:"password",password:this.getEncryptPassword(e),username:t})]}))}))},e.prototype.getEncryptPassword=function(t){var e=h.a.get("public-key");if("none"===e||!e)return t;var i=new u;return i.setPublicKey(e),i.encrypt(t)},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.getCategoryTree=function(t){return this._get("/unity/category/tree?type=".concat(t))},e.prototype.getEnumByType=function(t){return this._get("/free/display/".concat(t))},e.prototype.getItemListByType=function(t){return this._get("/free/display/".concat(t))},Object(r["c"])([Object(n["a"])("query",{title:"获取加密需要的公钥"})],e.prototype,"getPublicKey",null),Object(r["c"])([Object(n["a"])("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),Object(r["c"])([Object(n["a"])("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),Object(r["c"])([Object(n["a"])("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),Object(r["c"])([Object(n["a"])("query",{title:"查询枚举数据",showTip:!0,showErrorMsg:!0})],e.prototype,"getEnumByType",null),Object(r["c"])([Object(n["a"])("query")],e.prototype,"getItemListByType",null),e}(s["a"]);e["a"]=c},b134:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));i("e02e");var r=i("96dc"),n=i("a9a8"),s=i("f3e7");function o(t,e){return function(i,r){var n=i[r],o="query"===t?h.queryHandler:h.saveHandler,a=i.constructor,u=s["a"].has(a)?s["a"].get(a):s["a"].create(i.constructor);Object.defineProperty(u,r,{get:function(){return o(u,n,e)}}),s["a"].set(a,u)}}var h=function(){function t(){}return t.queryHandler=function(e,i,n){var s=this;return function(){for(var o=[],h=0;h<arguments.length;h++)o[h]=arguments[h];return Object(r["b"])(s,void 0,void 0,(function(){var s,h,a,u,c,f,l,p,g,d,y,v,m,b,w;return Object(r["e"])(this,(function(r){switch(r.label){case 0:s=n,h=s.title,a=void 0===h?"":h,u=s.dataName,c=void 0===u?"":u,f=s.showTip,l=void 0!==f&&f,p=s.showErrorMsg,g=void 0===p||p,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.apply(e,o)];case 2:return d=r.sent(),m=void 0,d.hasError?(m=a?"".concat(a,"出错!"):"请求服务失败",m=g?d.message:m,(l||g)&&t.message.error(m),console.error(m),[2,d]):(y=(c?d[c]:d)||"",(!y||y.$isObject()&&y.$isEmpty()||y.$isArray()&&y.$isEmpty()||""===c&&(d.result||[]).$isEmpty())&&(m="".concat(a,"无结果!"),l&&t.message.warning(m),console.warn(m)),[2,y]);case 3:return v=r.sent(),m=a?"".concat(a,"出错!"):"请求服务失败",m=g&&(null===(w=null===(b=v.response)||void 0===b?void 0:b.data)||void 0===w?void 0:w.message)||m,(l||g)&&t.message.error(m),console.error(m,v),[3,4];case 4:return[2]}}))}))}},t.saveHandler=function(e,i,n){var s=this,o=n,h=o.title,a=void 0===h?"":h,u=o.dataName,c=void 0===u?"":u,f=o.showTip,l=void 0!==f&&f,p=o.showErrorMsg,g=void 0===p||p;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return Object(r["b"])(s,void 0,void 0,(function(){var s,o,h,u,f,p;return Object(r["e"])(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i.apply(this||e,n)];case 1:return s=r.sent(),u=void 0,s.hasError?(u=a?"".concat(a,"出错!"):"请求服务失败",u=g?s.message:u,(l||g)&&t.message.error(u),console.error(u),[2,s]):(u=a?"".concat(a,"成功!"):"请求服务成功",l&&t.message.success(u),o=c?s[c]:s,[2,o]);case 2:return h=r.sent(),u=a?"".concat(a,"出错!"):"请求服务失败",u=g&&(null===(p=null===(f=h.response)||void 0===f?void 0:f.data)||void 0===p?void 0:p.message)||u,(l||g)&&t.message.error(u),console.error(u,h),[3,3];case 3:return[2]}}))}))}},Object.defineProperty(t,"message",{get:function(){return n["default"].prototype.$Message},enumerable:!1,configurable:!0}),t}()},e184:function(t,e,i){"use strict";i("68b7"),i("a4d2"),i("d371");var r=i("135b"),n=i.n(r),s=i("4ade"),o=i.n(s),h=i("1d8a"),a=function(){function t(){this.securityServer=h["a"].securityServer||"",this.adminServer=h["a"].adminServer||""}return t.prototype.url=function(t){return h["a"].baseUrl+t},Object.defineProperty(t.prototype,"applicationContext",{get:function(){return n.a.Application.context},enumerable:!1,configurable:!0}),t.prototype._post=function(t,e){return o.a.post(this.url(t),e).then((function(t){return t.data}))},t.prototype._get=function(t){return o.a.get(this.url(t)).then((function(t){return t.data}))},t.prototype._put=function(t,e){return o.a.put(this.url(t),e).then((function(t){return t.data}))},t.prototype._delete=function(t){return o.a.delete(this.url(t)).then((function(t){return t.data}))},t.prototype._export=function(t,e){return o.a.post(this.url(t),e,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),i=URL.createObjectURL(e);window.location.href=i}))},t}();e["a"]=a},f3e7:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));i("7579"),i("e02e");var r=i("96dc"),n=i("135b"),s=i.n(n),o=function(){function t(){}return t.get=function(t){return this.maps.get(t)},t.set=function(t,e){this.maps.set(t,e)},t.has=function(t){return this.maps.has(t)},t.match=function(t){var e=new Array;return this.maps.forEach((function(i,r){r.startsWith(t)&&e.push(i)})),e},t.create=function(t){for(var e,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return(e=s.a.Activator).createInstance.apply(e,Object(r["f"])([t],i,!1))},t.maps=new Map,t}()},f7ef:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return h}));var r=i("09cf"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="=";function o(t){var e,i,r="";for(e=0;e+3<=t.length;e+=3)i=parseInt(t.substring(e,e+3),16),r+=n.charAt(i>>6)+n.charAt(63&i);e+1==t.length?(i=parseInt(t.substring(e,e+1),16),r+=n.charAt(i<<2)):e+2==t.length&&(i=parseInt(t.substring(e,e+2),16),r+=n.charAt(i>>2)+n.charAt((3&i)<<4));while((3&r.length)>0)r+=s;return r}function h(t){var e,i="",o=0,h=0;for(e=0;e<t.length;++e){if(t.charAt(e)==s)break;var a=n.indexOf(t.charAt(e));a<0||(0==o?(i+=Object(r["b"])(a>>2),h=3&a,o=1):1==o?(i+=Object(r["b"])(h<<2|a>>4),h=15&a,o=2):2==o?(i+=Object(r["b"])(h),i+=Object(r["b"])(a>>2),h=3&a,o=3):(i+=Object(r["b"])(h<<2|a>>4),i+=Object(r["b"])(15&a),o=0))}return 1==o&&(i+=Object(r["b"])(h<<2)),i}}}]);
@@ -0,0 +1 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38af701c"],{"0b9c":function(n,t,e){"use strict";e.r(t);e("e02e");var r=e("96dc"),i=(e("5499"),e("c90e"),e("d735")),o=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.user={},t}return Object(r["d"])(t,n),t.prototype.onHandleError=function(n){n.target.src="https://i.loli.net/2017/08/21/599a521472424.jpg"},t.prototype.onLogout=function(){this.$store.commit("user/logout"),this.$router.push({name:"login"})},t.prototype.mounted=function(){this.user=this.$store.state.user},t=Object(r["c"])([Object(i["Component"])({template:e("6754")})],t),t}(i["Vue"]),s=o,a=e("f1e8"),c=e("59be"),u=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.active="",t.routes=a["a"].children,t.collapsed=!1,t}return Object(r["d"])(t,n),Object.defineProperty(t.prototype,"menuList",{get:function(){return this.routes||[]},enumerable:!1,configurable:!0}),t.prototype.onGoToHome=function(){this.$router.push({name:"home"})},t.prototype.routeChange=function(){var n,t=this;this.active=null===(n=this.menuList.find((function(n){return t.$route.path.startsWith("/"+n.path)})))||void 0===n?void 0:n.name},Object(r["c"])([Object(c["watch"])("$route",{immediate:!0})],t.prototype,"routeChange",null),t=Object(r["c"])([Object(c["component"])({template:e("4718"),components:{"u-setting":s}})],t),t}(c["View"]);t["default"]=u},4718:function(n,t){n.exports='<!DOCTYPE html>\r\n<div class="main-wrapper" :class="{\'mini-menu-wrapper\':collapsed}">\r\n <header>\r\n <div class="title" @click="onGoToHome">\r\n <div class="image"></div>\r\n <span v-if="!collapsed">API管理</span>\r\n </div>\r\n <i-icon\r\n type="md-menu"\r\n class="switch-icon"\r\n @click="collapsed=!collapsed"\r\n />\r\n <div class="rest">\r\n <u-setting></u-setting>\r\n </div>\r\n </header>\r\n <main>\r\n <div class="side">\r\n <i-menu :active-name="active"">\r\n <i-menu-item v-for="item in menuList" :key="item.path" :name="item.name" :to="item">\r\n {{item.title || item.meta.title}}\r\n </i-menu-item>\r\n </i-menu>\r\n </div>\r\n <div class="content">\r\n <router-view />\r\n </div>\r\n </main>\r\n</div>\r\n'},5499:function(n,t,e){},6754:function(n,t){n.exports='<!DOCTYPE html>\r\n<div class="setting-wrapper">\r\n\r\n <i-dropdown>\r\n <span class="user-name">{{user.username}}</span>\r\n <i-icon type="ios-arrow-down"></i-icon>\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item name="loginout" @click.native="onLogout">注销</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <img :src="user.photo" @error="onHandleError" class="ivu-avatar ivu-avatar-circle" />\r\n\r\n</div>'},c90e:function(n,t,e){}}]);
@@ -0,0 +1,7 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-443b023b"],{"08ba":function(t,e,i){"use strict";i("e184");var r=i("76fa");i.d(e,"a",(function(){return r["a"]}))},1136:function(t,e,i){"use strict";var r=i("96dc"),n=i("b134"),o=i("08ba"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(e,t),e.prototype.getApiTree=function(t){return this._get("/unity/api/info/tree/".concat(t))},e.prototype.deleteApi=function(t){return this._delete("/unity/api/info/".concat(t))},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.checkCategory=function(t){return this._post("/unity/api/category/update/check",t)},e.prototype.updateMoveCategory=function(t,e){return this._post("/unity/api/category/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.saveApi=function(t){return t.id?this._put("/unity/api/info",t):this._post("/unity/api/info",t)},e.prototype.checkApi=function(t){return this._post("/unity/api/info/update/check",t)},e.prototype.updateMoveApi=function(t,e){return this._post("/unity/api/info/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.copyApi=function(t,e,i,r){return this._post("/unity/api/info/copy?id=".concat(t,"&name=").concat(e,"&projectId=").concat(i,"&categoryId=").concat(r))},e.prototype.apiInfo=function(t){return this._get("/unity/api/info/".concat(t,"/whole"))},e.prototype.run=function(t,e){return this._post("/unity/api/run/".concat(t,"/web"),e)},e.prototype.runWithFile=function(t,e){return this._post("/unity/api/run/".concat(t,"/exec"),e)},e.prototype.saveApiInfo=function(t){return this._post("/unity/api/info/save/whole",t)},e.prototype.parseResponse2Fields=function(t,e,i){return void 0===e&&(e=""),void 0===i&&(i=!0),this._post("/unity/api/field-mapping/parse/model",{originalJson:t,convertRoot:e,collapse:i})},e.prototype.preScript=function(){return this._get("/api-help/preScript.json")},e.prototype.postScript=function(){return this._get("/api-help/postScript.json")},e.prototype.projectInfo=function(t){return this._get("/unity/api/project/".concat(t))},e.prototype.getSecurityList=function(t){return this._post("/unity/api/authentication/list",t)},e.prototype.deleteSecurityItem=function(t){return this._delete("/unity/api/authentication/".concat(t))},e.prototype.addSecurityItem=function(t){return this._post("/unity/api/authentication",t)},e.prototype.updateSecurityItem=function(t){return this._put("/unity/api/authentication",t)},e.prototype.getVariableList=function(t){return this._post("/unity/api/environment-param/list",t)},e.prototype.saveVariable=function(t){return(null===t||void 0===t?void 0:t.id)?this._put("/unity/api/environment-param",t):this._post("/unity/api/environment-param",t)},e.prototype.deleteVariable=function(t){return this._delete("/unity/api/environment-param/".concat(t))},e.prototype.onBatchEnv=function(t){return this._post("/unity/api/info/env",t)},e.prototype.onBatchAuth=function(t){return this._post("/unity/api/info/auth",t)},e.prototype.getScriptDoc1=function(){return this._get("/api-help/apiParam.md")},e.prototype.getScriptDoc=function(){return this._get("/api-help/authScript.md")},e.prototype.onImportAvr=function(t){return this._post("/unity/api/info/import-model",t)},e.prototype.onValidateImport=function(t){return this._post("/unity/api/info/check-name",t)},e.prototype.getEgovaApiTree=function(){return this._get("/unity/wizdom-api/tree")},e.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},e.prototype.getApiRequestParams=function(t){return this._get("/unity/api/request-param/apiId/".concat(t))},e.prototype.getCategoryList=function(){return this._get("/unity/proxy/tree")},e.prototype.getProxyNameList=function(t){return this._get("/unity/proxy/getbyapi?apiId=".concat(t))},e.prototype.save=function(t){return t.id?this._put("/unity/proxy",t):this._post("/unity/proxy",t)},Object(r["c"])([Object(n["a"])("query",{title:"获取接口树"})],e.prototype,"getApiTree",null),Object(r["c"])([Object(n["a"])("save",{title:"删除接口",showErrorMsg:!0,showTip:!0})],e.prototype,"deleteApi",null),Object(r["c"])([Object(n["a"])("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),Object(r["c"])([Object(n["a"])("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),Object(r["c"])([Object(n["a"])("save",{title:"保存分组",showTip:!1,showErrorMsg:!0})],e.prototype,"checkCategory",null),Object(r["c"])([Object(n["a"])("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveCategory",null),Object(r["c"])([Object(n["a"])("save",{title:"保存接口",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApi",null),Object(r["c"])([Object(n["a"])("save",{title:"保存接口",showErrorMsg:!0,showTip:!1})],e.prototype,"checkApi",null),Object(r["c"])([Object(n["a"])("save",{title:"保存接口",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveApi",null),Object(r["c"])([Object(n["a"])("save",{title:"复制接口",showErrorMsg:!1,showTip:!1})],e.prototype,"copyApi",null),Object(r["c"])([Object(n["a"])("query",{title:"接口详情"})],e.prototype,"apiInfo",null),Object(r["c"])([Object(n["a"])("query",{title:"在线测试"})],e.prototype,"run",null),Object(r["c"])([Object(n["a"])("query",{title:"在线测试"})],e.prototype,"runWithFile",null),Object(r["c"])([Object(n["a"])("save",{title:"保存接口详情",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApiInfo",null),Object(r["c"])([Object(n["a"])("query",{title:"提取json的节点数据"})],e.prototype,"parseResponse2Fields",null),Object(r["c"])([Object(n["a"])("query",{title:"前置脚本"})],e.prototype,"preScript",null),Object(r["c"])([Object(n["a"])("query",{title:"后置脚本"})],e.prototype,"postScript",null),Object(r["c"])([Object(n["a"])("query",{title:"项目详情"})],e.prototype,"projectInfo",null),Object(r["c"])([Object(n["a"])("query",{title:"授权认证列表查询"})],e.prototype,"getSecurityList",null),Object(r["c"])([Object(n["a"])("save",{title:"删除授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteSecurityItem",null),Object(r["c"])([Object(n["a"])("save",{title:"新增授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"addSecurityItem",null),Object(r["c"])([Object(n["a"])("save",{title:"更新授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"updateSecurityItem",null),Object(r["c"])([Object(n["a"])("query",{title:"环境变量详情",showErrorMsg:!0})],e.prototype,"getVariableList",null),Object(r["c"])([Object(n["a"])("save",{title:"保存环境变量",showErrorMsg:!0})],e.prototype,"saveVariable",null),Object(r["c"])([Object(n["a"])("query",{title:"删除环境变量",showErrorMsg:!0})],e.prototype,"deleteVariable",null),Object(r["c"])([Object(n["a"])("query",{title:"批量修改环境变量",showErrorMsg:!0})],e.prototype,"onBatchEnv",null),Object(r["c"])([Object(n["a"])("query",{title:"批量修改授权设置",showErrorMsg:!0})],e.prototype,"onBatchAuth",null),Object(r["c"])([Object(n["a"])("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onImportAvr",null),Object(r["c"])([Object(n["a"])("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onValidateImport",null),Object(r["c"])([Object(n["a"])("query",{title:"获取egova接口树"})],e.prototype,"getEgovaApiTree",null),Object(r["c"])([Object(n["a"])("query",{title:"获取API项目列表"})],e.prototype,"getProjectList",null),Object(r["c"])([Object(n["a"])("query",{title:"获取API参数列表"})],e.prototype,"getApiRequestParams",null),Object(r["c"])([Object(n["a"])("query",{title:"查询分类树"})],e.prototype,"getCategoryList",null),Object(r["c"])([Object(n["a"])("query",{title:"查询代理详情"})],e.prototype,"getProxyNameList",null),Object(r["c"])([Object(n["a"])("save",{title:"保存接口配置",showTip:!0,showErrorMsg:!0})],e.prototype,"save",null),e}(o["a"]);e["a"]=s},"625b":function(t,e,i){"use strict";i.r(e);i("e02e");var r=i("96dc"),n=i("59be"),o=(i("65e5"),i("7af4")),s=i.n(o),a=i("2ad7"),c=i("1136"),u=(i("ca38"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(e,t),e.prototype.onMore=function(){this.source.func&&this.source.func()},e.prototype.onToApi=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return[4,this.service.apiInfo(this.source.apiId)];case 1:return t=e.sent(),t.hasError?[2,this.$message.error("接口不存在")]:(this.$router.push({name:"project-detail",params:{id:this.source.projectId},query:{apiId:this.source.apiId,apiName:this.source.apiName}}),[2])}}))}))},Object(r["c"])([Object(n["config"])({type:Object,default:function(){return Object.create(null)}})],e.prototype,"source",void 0),Object(r["c"])([Object(n["config"])({type:Number,default:function(){return 0}})],e.prototype,"index",void 0),Object(r["c"])([Object(a["a"])(c["a"])],e.prototype,"service",void 0),e=Object(r["c"])([Object(n["component"])({template:i("9b44"),components:{}})],e),e}(n["Component"])),p=u,l=i("b134"),h=i("08ba"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["d"])(e,t),e.prototype.page=function(t){return this._post("/unity/api/trends/page",t)},Object(r["c"])([Object(l["a"])("query",{title:"分页查询表单动态"})],e.prototype,"page",null),e}(h["a"]),f=d,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.list=[],e.itemComponent=p,e.condition={endCreateTime:new Date},e.paging={pageIndex:0,pageSize:10,totalCount:0},e}return Object(r["d"])(e,t),e.prototype.mounted=function(){this.onQuery()},e.prototype.onMore=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return this.paging.pageIndex++,this.list.length>0&&this.list.pop(),[4,this.query()];case 1:return t=e.sent(),this.list=this.list.concat(t),this.paging.pageIndex*this.paging.pageSize<this.paging.totalCount&&this.list.push({id:this.paging.pageIndex,type:"more",func:this.onMore}),[2]}}))}))},e.prototype.query=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["e"])(this,(function(e){switch(e.label){case 0:return[4,this.service.page({condition:this.condition,paging:this.paging})];case 1:return t=e.sent(),this.paging.totalCount=t.totalCount,[2,Promise.resolve(t.result||[])]}}))}))},e.prototype.onQuery=function(){this.paging.pageIndex=0,this.list=[],this.onMore()},Object(r["c"])([Object(a["a"])(f)],e.prototype,"service",void 0),e=Object(r["c"])([Object(n["component"])({name:"ApiProjectComment",template:i("b769"),components:{VirtualList:s.a}})],e),e}(n["View"]);e["default"]=y},"65e5":function(t,e,i){},"7af4":function(t,e,i){
2
+ /*!
3
+ * vue-virtual-scroll-list v2.3.4
4
+ * open source under the MIT license
5
+ * https://github.com/tangbc/vue-virtual-scroll-list#readme
6
+ */
7
+ (function(e,r){t.exports=r(i("a9a8"))})(0,(function(t){"use strict";function e(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function i(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t){return c(t)||u(t)||p(t)||h()}function c(t){if(Array.isArray(t))return l(t)}function u(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(t,e){if(t){if("string"===typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var d={FRONT:"FRONT",BEHIND:"BEHIND"},f={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},y=0,g=function(){function t(e,i){r(this,t),this.init(e,i)}return o(t,[{key:"init",value:function(t,e){this.param=t,this.callUpdate=e,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.fixedSizeValue=0,this.calcType=f.INIT,this.offset=0,this.direction="",this.range=Object.create(null),t&&this.checkRange(0,t.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var t=Object.create(null);return t.start=this.range.start,t.end=this.range.end,t.padFront=this.range.padFront,t.padBehind=this.range.padBehind,t}},{key:"isBehind",value:function(){return this.direction===d.BEHIND}},{key:"isFront",value:function(){return this.direction===d.FRONT}},{key:"getOffset",value:function(t){return(t<1?0:this.getIndexOffset(t))+this.param.slotHeaderSize}},{key:"updateParam",value:function(t,e){var i=this;this.param&&t in this.param&&("uniqueIds"===t&&this.sizes.forEach((function(t,r){e.includes(r)||i.sizes["delete"](r)})),this.param[t]=e)}},{key:"saveSize",value:function(t,e){this.sizes.set(t,e),this.calcType===f.INIT?(this.fixedSizeValue=e,this.calcType=f.FIXED):this.calcType===f.FIXED&&this.fixedSizeValue!==e&&(this.calcType=f.DYNAMIC,delete this.fixedSizeValue),this.calcType!==f.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=a(this.sizes.values()).reduce((function(t,e){return t+e}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var t=this.range.start;this.isFront()?t-=y:this.isBehind()&&(t+=y),t=Math.max(t,0),this.updateRange(this.range.start,this.getEndByStart(t))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(t){this.direction=t<this.offset||0===t?d.FRONT:d.BEHIND,this.offset=t,this.param&&(this.direction===d.FRONT?this.handleFront():this.direction===d.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var t=this.getScrollOvers();if(!(t>this.range.start)){var e=Math.max(t-this.param.buffer,0);this.checkRange(e,this.getEndByStart(e))}}},{key:"handleBehind",value:function(){var t=this.getScrollOvers();t<this.range.start+this.param.buffer||this.checkRange(t,this.getEndByStart(t))}},{key:"getScrollOvers",value:function(){var t=this.offset-this.param.slotHeaderSize;if(t<=0)return 0;if(this.isFixedType())return Math.floor(t/this.fixedSizeValue);var e=0,i=0,r=0,n=this.param.uniqueIds.length;while(e<=n){if(i=e+Math.floor((n-e)/2),r=this.getIndexOffset(i),r===t)return i;r<t?e=i+1:r>t&&(n=i-1)}return e>0?--e:0}},{key:"getIndexOffset",value:function(t){if(!t)return 0;for(var e=0,i=0,r=0;r<t;r++)i=this.sizes.get(this.param.uniqueIds[r]),e+="number"===typeof i?i:this.getEstimateSize();return e}},{key:"isFixedType",value:function(){return this.calcType===f.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(t,e){var i=this.param.keeps,r=this.param.uniqueIds.length;r<=i?(t=0,e=this.getLastIndex()):e-t<i-1&&(t=e-i+1),this.range.start!==t&&this.updateRange(t,e)}},{key:"updateRange",value:function(t,e){this.range.start=t,this.range.end=e,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(t){var e=t+this.param.keeps-1,i=Math.min(e,this.getLastIndex());return i}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var t=this.range.end,e=this.getLastIndex();return this.isFixedType()?(e-t)*this.fixedSizeValue:(e-t)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),t}(),m={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},v={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},b={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},O={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var t=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){t.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.resizeObserver.observe(this.$el)},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},S=t.component("virtual-list-item",{mixins:[O],props:v,render:function(t){var e=this.tag,r=this.component,n=this.extraProps,o=void 0===n?{}:n,s=this.index,a=this.source,c=this.scopedSlots,u=void 0===c?{}:c,p=this.uniqueKey,l=this.slotComponent,h=i(i({},o),{},{source:a,index:s});return t(e,{key:p,attrs:{role:"listitem"}},[l?l({item:a,index:s,scope:h}):t(r,{props:h,scopedSlots:u})])}}),j=t.component("virtual-list-slot",{mixins:[O],props:b,render:function(t){var e=this.tag,i=this.uniqueKey;return t(e,{key:i,attrs:{role:i}},this.$slots["default"])}}),T={ITEM:"item_resize",SLOT:"slot_resize"},z={HEADER:"thead",FOOTER:"tfoot"},I=t.component("virtual-list",{props:m,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(t){this.virtual.updateParam("keeps",t),this.virtual.handleSlotSizeChange()},start:function(t){this.scrollToIndex(t)},offset:function(t){this.scrollToOffset(t)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(T.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(T.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset),this.pageMode&&document.addEventListener("scroll",this.onScroll,{passive:!1})},deactivated:function(){this.pageMode&&document.removeEventListener("scroll",this.onScroll)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(t){return this.virtual.sizes.get(t)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var t=this.$refs.root;return t?Math.ceil(t[this.directionKey]):0},getClientSize:function(){var t=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},getScrollSize:function(){var t=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},scrollToOffset:function(t){if(this.pageMode)document.body[this.directionKey]=t,document.documentElement[this.directionKey]=t;else{var e=this.$refs.root;e&&(e[this.directionKey]=t)}},scrollToIndex:function(t){if(t>=this.dataSources.length-1)this.scrollToBottom();else{var e=this.virtual.getOffset(t);this.scrollToOffset(e)}},scrollToBottom:function(){var t=this,e=this.$refs.shepherd;if(e){var i=e[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(i),setTimeout((function(){t.getOffset()+t.getClientSize()+1<t.getScrollSize()&&t.scrollToBottom()}),3)}},updatePageModeFront:function(){var t=this.$refs.root;if(t){var e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView,r=this.isHorizontal?e.left+i.pageXOffset:e.top+i.pageYOffset;this.virtual.updateParam("slotHeaderSize",r)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new g({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var t=this.dataKey;return this.dataSources.map((function(e){return"function"===typeof t?t(e):e[t]}))},onItemResized:function(t,e){this.virtual.saveSize(t,e),this.$emit("resized",t,e)},onSlotResized:function(t,e,i){t===z.HEADER?this.virtual.updateParam("slotHeaderSize",e):t===z.FOOTER&&this.virtual.updateParam("slotFooterSize",e),i&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(t){this.range=t},onScroll:function(t){var e=this.getOffset(),i=this.getClientSize(),r=this.getScrollSize();e<0||e+i>r+1||!r||(this.virtual.handleScroll(e),this.emitEvent(e,i,r,t))},emitEvent:function(t,e,i,r){this.$emit("scroll",r,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&t-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&t+e+this.bottomThreshold>=i&&this.$emit("tobottom")},getRenderSlots:function(t){for(var e=[],i=this.range,r=i.start,n=i.end,o=this.dataSources,s=this.dataKey,a=this.itemClass,c=this.itemTag,u=this.itemStyle,p=this.isHorizontal,l=this.extraProps,h=this.dataComponent,d=this.itemScopedSlots,f=this.$scopedSlots&&this.$scopedSlots.item,y=r;y<=n;y++){var g=o[y];if(g){var m="function"===typeof s?s(g):g[s];"string"===typeof m||"number"===typeof m?e.push(t(S,{props:{index:y,tag:c,event:T.ITEM,horizontal:p,uniqueKey:m,source:g,extraProps:l,component:h,slotComponent:f,scopedSlots:d},style:u,class:"".concat(a).concat(this.itemClassAdd?" "+this.itemClassAdd(y):"")})):console.warn("Cannot get the data-key '".concat(s,"' from data-sources."))}else console.warn("Cannot get the index '".concat(y,"' from data-sources."))}return e}},render:function(t){var e=this.$slots,i=e.header,r=e.footer,n=this.range,o=n.padFront,s=n.padBehind,a=this.isHorizontal,c=this.pageMode,u=this.rootTag,p=this.wrapTag,l=this.wrapClass,h=this.wrapStyle,d=this.headerTag,f=this.headerClass,y=this.headerStyle,g=this.footerTag,m=this.footerClass,v=this.footerStyle,b={padding:a?"0px ".concat(s,"px 0px ").concat(o,"px"):"".concat(o,"px 0px ").concat(s,"px")},O=h?Object.assign({},h,b):b;return t(u,{ref:"root",on:{"&scroll":!c&&this.onScroll}},[i?t(j,{class:f,style:y,props:{tag:d,event:T.SLOT,uniqueKey:z.HEADER}},i):null,t(p,{class:l,attrs:{role:"group"},style:O},this.getRenderSlots(t)),r?t(j,{class:m,style:v,props:{tag:g,event:T.SLOT,uniqueKey:z.FOOTER}},r):null,t("div",{ref:"shepherd",style:{width:a?"0px":"100%",height:a?"100%":"0px"}})])}});return I}))},"9b44":function(t,e){t.exports='<i-timeline-item v-if="source.type===\'more\'" class="trends-item">\r\n <i slot="dot"></i>\r\n <div class="item-more" @click="onMore">查看更多</div>\r\n</i-timeline-item>\r\n<i-timeline-item v-else class="trends-item">\r\n <i-avatar size="large" :class="source.operateType" slot="dot"></i-avatar>\r\n <div class="item-body">\r\n <i-time class="time" :time="source.createTime" />\r\n <div class="title">\r\n <span>{{source.projectName}}</span>\r\n <span class="create-time">{{source.createTime}}</span>\r\n </div>\r\n <div class="content">\r\n <span class="name">{{source.creatorName || source.creator}}</span>\r\n <span>{{source._operateType && source._operateType.text}}</span>\r\n <span class="name">{{source.categoryName}}</span>\r\n <span v-if="source.categoryName">分组下的</span>\r\n <span class="name api-name" @click="onToApi">{{source.apiName}}</span>\r\n <span>接口</span>\r\n </div>\r\n </div>\r\n</i-timeline-item>\r\n'},b769:function(t,e){t.exports='<article class="project-comment">\r\n <header>\r\n <i-input\r\n class="diy-input"\r\n prefix="ios-search"\r\n search\r\n @on-search="onQuery"\r\n placeholder="输入关键字检索"\r\n v-model="condition.apiName"\r\n ></i-input>\r\n </header>\r\n\r\n <main>\r\n <header class="tool-bar">\r\n <span>项目动态</span>\r\n </header>\r\n <main>\r\n <i-timeline :pending="false">\r\n <virtual-list\r\n class="scroll-list"\r\n data-key="id"\r\n :data-sources="list"\r\n :data-component="itemComponent"\r\n >\r\n </virtual-list>\r\n </i-timeline>\r\n </main>\r\n </main>\r\n</article>\r\n'},ca38:function(t,e,i){}}]);
@@ -0,0 +1 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56371b4c"],{"556b":function(n,t,e){"use strict";e.r(t);var i=e("96dc"),r=(e("a609"),e("d735")),o=e("59be"),c=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return Object(i["d"])(t,n),t=Object(i["c"])([Object(r["Component"])({template:e("8e13")})],t),t}(o["View"]);t["default"]=c},"8e13":function(n,t){n.exports='<div class="page-container">\r\n <transition name="fade" mode="out-in">\r\n <router-view></router-view>\r\n </transition>\r\n</div>\r\n'},a609:function(n,t,e){}}]);
@@ -0,0 +1 @@
1
+ (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a57cace"],{"08ba":function(e,r,t){"use strict";t("e184");var n=t("76fa");t.d(r,"a",(function(){return n["a"]}))},"31bb":function(e,r){e.exports='<div class="v-login" @keydown.enter="onLogin">\r\n <div class="v-login-content">\r\n <i-card>\r\n <div class="v-login-content-title"> 系统登录</div>\r\n <div class="v-login-content-form">\r\n <i-form ref="loginForm" :model="form" :rules="rules">\r\n <i-form-item prop="userName">\r\n <i-input class="diy-input" v-model="form.userName" placeholder="请输入用户名">\r\n <span slot="prepend">\r\n 用户\r\n </span>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item prop="password">\r\n <i-input class="diy-input" type="password" v-model="form.password" placeholder="请输入密码">\r\n <span slot="prepend">\r\n 密码\r\n </span>\r\n </i-input>\r\n </i-form-item>\r\n <div class="tool-bar">\r\n <i-checkbox v-model="remember">记住账号</i-checkbox>\r\n <a>忘记密码</a>\r\n </div>\r\n <i-form-item>\r\n <i-button :loading="logging" @click="onLogin" class="login-btn" type="primary">登录</i-button>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </i-card>\r\n </div>\r\n</div>\r\n'},"5eb6":function(e,r,t){},f083:function(e,r,t){"use strict";t.r(r);t("e02e");var n=t("96dc"),i=t("59be"),o=t("91e4"),s=t.n(o),a=t("08ba"),c=t("2ad7"),u=t("1d8a"),m=t("4ade"),d=t.n(m),l=(t("5eb6"),function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.remember=!1,r.form={userName:"",password:""},r.rules={userName:[{required:!0,message:"账号不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]},r.loading=!1,r.logging=!1,r.publicKey="",r}return Object(n["d"])(r,e),r.prototype.onLogin=function(){var e=this;this.$refs.loginForm.validate((function(r){return Object(n["b"])(e,void 0,void 0,(function(){return Object(n["e"])(this,(function(e){if(!r)return this.$notice.warning({title:"验证不通过"}),[2];try{this.doLogin()}catch(t){this.$notice.error({title:"调用服务异常"})}return[2]}))}))}))},r.prototype.onRememberChanged=function(e,r){e?(s.a.set("remember_login_name",this.form.userName),s.a.set("remember","1")):s.a.set("remember","0")},r.prototype.mounted=function(){this.getPublicKey();var e=s.a.get("remember_login_name");this.remember="1"===s.a.get("remember"),e&&(this.form.userName=e)},r.prototype.getPublicKey=function(){return Object(n["b"])(this,void 0,void 0,(function(){var e;return Object(n["e"])(this,(function(r){switch(r.label){case 0:return this.loading=!0,[4,this.commonService.getPublicKey()];case 1:return e=r.sent(),this.loading=!1,e?(this.publicKey=e.result,[2]):(this.$message.error("获取公钥失败"),[2])}}))}))},r.prototype.doLogin=function(){return Object(n["b"])(this,void 0,void 0,(function(){var e=this;return Object(n["e"])(this,(function(r){return this.loading||(this.logging=!0,d.a.post("".concat(u["a"].baseUrl).concat(u["a"].securityServer||"","/oauth/extras/token"),{client_id:"unity-client",client_secret:"unity",grant_type:"password",password:this.commonService.getEncryptPassword(this.form.password),username:this.form.userName}).then((function(r){return Object(n["b"])(e,void 0,void 0,(function(){var e,t;return Object(n["e"])(this,(function(n){return e=null===(t=r.data.person)||void 0===t?void 0:t.disabled,e?(this.$message.error("账号已被禁用,请联系管理员"),[2]):(this.$store.commit("user/save",r.data),localStorage.setItem("user",JSON.stringify(r.data)),this.$router.push({name:"home"}),[2])}))}))})).catch((function(r){r&&r.response&&401===r.response.status?e.$message.error(r.response.data.error_description):e.$message.error("调用服务异常")})).finally((function(){e.logging=!1}))),[2]}))}))},Object(n["c"])([Object(c["a"])(a["a"])],r.prototype,"commonService",void 0),Object(n["c"])([Object(i["watch"])("remember",{immediate:!1})],r.prototype,"onRememberChanged",null),r=Object(n["c"])([Object(i["component"])({template:t("31bb")})],r),r}(i["View"]));r["default"]=l}}]);