@ajaxjs/ui 1.3.7 → 1.3.8

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.
@@ -1,2 +1,2 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["@ajaxjs/ui"]=e(require("vue")):t["@ajaxjs/ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={2414:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"datasource",staticStyle:{overflow:"hidden"}},[e("div",{staticClass:"left"},[e("ul",t._l(t.datasources,(function(r){return e("li",{key:r.id,class:{actived:t.activedItem==r.id},on:{click:function(e){return t.active(r)}}},[e("span",[e("Icon",{staticClass:"del-icon",attrs:{type:"md-trash",title:"删除此数据源"},on:{click:function(e){return t.del(r.id,r.name)}}})],1),t._v(" "+t._s(r.name)+" ")])})),0),e("a",{staticClass:"add",on:{click:t.add}},[t._v("+ 新建……")])]),e("div",{staticClass:"right"},[e("i-Form",{ref:"editForm",staticStyle:{"margin-right":"100px"},attrs:{model:t.form.data,rules:t.form.rules,"label-width":120}},[e("form-item",{attrs:{label:"数据源名称",prop:"name"}},[e("i-Input",{attrs:{placeholder:"数据源名称"},model:{value:t.form.data.name,callback:function(e){t.$set(t.form.data,"name",e)},expression:"form.data.name"}})],1),e("form-item",{attrs:{label:"数据源编码",prop:"urlDir"}},[e("i-Input",{attrs:{placeholder:"数据源编码全局唯一不重复"},model:{value:t.form.data.urlDir,callback:function(e){t.$set(t.form.data,"urlDir",e)},expression:"form.data.urlDir"}})],1),e("form-item",{attrs:{label:"数据库类型",prop:"type"}},[e("i-Select",{model:{value:t.form.data.type,callback:function(e){t.$set(t.form.data,"type",e)},expression:"form.data.type"}},t._l(t.DBType,(function(r,n){return e("i-Option",{key:n,attrs:{value:n}},[t._v(t._s(r))])})),1)],1),e("form-item",{attrs:{label:"连接地址",prop:"url"}},[e("i-Input",{attrs:{maxlength:"200","show-word-limit":"",type:"textarea",rows:4,placeholder:"数据库连接 URL,注意无须携带用户名和密码,且不需要 URL 转义"},model:{value:t.form.data.url,callback:function(e){t.$set(t.form.data,"url",e)},expression:"form.data.url"}})],1),e("form-item",{attrs:{label:"登录用户",prop:"username"}},[e("i-Input",{attrs:{placeholder:"请输入数据库用户账号"},model:{value:t.form.data.username,callback:function(e){t.$set(t.form.data,"username",e)},expression:"form.data.username"}})],1),e("form-item",{attrs:{label:"登录密码",prop:"password"}},[e("i-Input",{attrs:{type:"password",password:"",placeholder:"请输入账号密码"},model:{value:t.form.data.password,callback:function(e){t.$set(t.form.data,"password",e)},expression:"form.data.password"}})],1),e("form-item",{attrs:{label:"是否跨库",prop:"crossDb"}},[e("i-switch",{model:{value:t.form.data.crossDb,callback:function(e){t.$set(t.form.data,"crossDb",e)},expression:"form.data.crossDb"}})],1)],1),e("div",{attrs:{align:"center"}},[t.activedItem?t._e():e("i-Button",{attrs:{icon:"md-checkmark"},on:{click:t.create}},[t._v("保存新建")]),t.activedItem?e("i-Button",{on:{click:t.update}},[t._v("保存")]):t._e(),t._v("   "),t.activedItem?e("i-Button",{on:{click:t.test}},[t._v("测试连接")]):t._e(),t._v("   "),t.activedItem?e("i-Button",{on:{click:function(e){return t.$emit("change_datasource",t.form.data)}}},[t._v("切换")]):t._e()],1)],1)])},o=[],i=r(681),s=r(9274),a=r.n(s);const c={MY_SQL:"MySQL",ORACLE:"Oracle",SQL_SERVER:"Sql Server",SPARK:"Spark",SQLITE:"SQLite",DB2:"DB2"},u=window.API_ROOT?API_ROOT+"/data_service/datasource":"../../data_service/datasource";window.API_ROOT&&API_ROOT;var l=a().extend({name:"DataSource",data(){return{isCreate:!0,datasources:[{id:1,name:"加载中……"}],activedItem:null,editing:{},form:{data:{},rules:{name:[{required:!0,message:"数据源名称不能为空",trigger:"blur"}]}},DBType:c}},mounted(){this.getList()},methods:{active(t){this.activedItem=t.id,this.form.data=t},getList(t){xhr_get(`${window.config.dsApiRoot}/datasource`,(t=>{this.datasources=t.data}),{start:0,limit:99})},add(){this.activedItem=null,this.form.data={name:""}},create(){this.$refs.editForm.validate((t=>{t?i.TF.xhr_post(u,this.form.data,(t=>{if(1===t.status){const e=t.data;this.getList((()=>this.activedItem=e)),this.$Message.success("创建数据源成功"),this.form.data.id=e}})):this.$Message.error("表单验证不通过")}))},update(){const t=Object.assign({},this.form.data);i.TF.xhr_put(u,t,(t=>{1===t.status&&this.$Message.success("修改数据源成功")}))},del(t,e){this.$Modal.confirm({title:"删除数据源",content:`是否删除数据源 #${e}?`,onOk:()=>{i.TF.xhr_del(u+t,(t=>{this.$Message.success("删除数据源成功"),this.getList((()=>this.add()))}))}})},test(){xhr_get(`${window.config.dsApiRoot}/datasource/test/`+this.activedItem,(t=>{t.status&&this.$Modal.success({title:"连接数据源成功"})}))}}}),f=l,p=r(1656),d=(0,p.A)(f,n,o,!1,null,"79e01278",null),h=d.exports},7813:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("a",{on:{click:t.showUserInfo}},[t._v(t._s(t.state))])},o=[],i=(r(4979),r(681)),s=r(9274),a=r.n(s);const c="localStorage.removeItem('accessToken');location.reload();";var u=a().extend({name:"IamUser",data(){return{state:"未登录",isShowInfo:!1,payload:null}},mounted(){let t=localStorage.getItem("accessToken");if(t){const e=t.split("."),r=JSON.parse(atob(e[1]));this.payload=r,this.state=r.name+"已登录"}},methods:{showUserInfo(){"未登录"===this.state?location.assign(window.config.loginUrl):this.$Modal.info({title:"当前用户信息",content:`<p>用户名: ${this.payload.name}</p><p>Token 过期时间:${i.Aq.dateFormat.call(new Date(1e3*this.payload.exp),"yyyy-MM-dd hh:mm:ss")}</p><p><a href="#" onclick="${c}">用户登出</a></p>`})}}}),l=u,f=r(1656),p=(0,f.A)(l,n,o,!1,null,null,null),d=p.exports},2162:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("Card",{staticClass:"common-search-panel",staticStyle:{"text-align":"left"},attrs:{bordered:!1,"dis-hover":""}},[e("span",{staticStyle:{float:"right"}},[e("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:function(e){return t.$parent.getData()}}},[t._v("查询")]),e("Button",{staticStyle:{"margin-left":"10px"},on:{click:t.reset}},[t._v("重置")])],1),e("Input",{attrs:{suffix:"ios-search",clearable:"",placeholder:"请输入"+t.widgetName_+"名称"},on:{"on-enter":t.getData},model:{value:t.list.search.name,callback:function(e){t.$set(t.list.search,"name",e)},expression:"list.search.name"}})],1),e("div",[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"toolbar"},[e("Tooltip",{staticClass:"ivu-ml",attrs:{content:"刷新",placement:"top"}},[e("Icon",{staticStyle:{cursor:"pointer"},attrs:{size:"20",type:"ios-refresh"},on:{click:t.getData}})],1),t._t("toolbar"),t.createRoute||t.$parent.onCreate?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onCreate}},[t._v("新建"+t._s(t.widgetName_))]):t._e()],2),e("Table",{attrs:{columns:t.list.columns,data:t.list.data,loading:t.list.loading,height:"500"},scopedSlots:t._u([{key:"action",fn:function({row:r,index:n}){return[t._t("list_action",null,{item:r}),t.pickup?e("a",{staticStyle:{color:"green"},on:{click:function(e){return t.doPickup(r)}}},[t._v("选择")]):t._e(),t.pickup?t._e():e("span",[e("a",{staticStyle:{color:"green"},on:{click:function(e){return t.onEdit(r.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("Poptip",{attrs:{confirm:"",transfer:"",title:"是否要删除此行?"},on:{"on-ok":function(e){return t.deleteInfo(r.id,n)}}},[e("a",{staticStyle:{color:"red"}},[t._v("删除")])])],1)]}}],null,!0)}),e("Page",{staticClass:"ivu-mt ivu-text-right",attrs:{total:t.list.total,current:t.list.pageNo,"show-total":"","show-sizer":"","page-size":t.list.limit},on:{"update:current":function(e){return t.$set(t.list,"pageNo",e)},"on-page-size-change":t.handleChangePageSize}})],1)],1)],1)},o=[],i=(r(4114),r(9274)),s=r.n(i),a=r(6326),c=r(681),u=s().extend({name:"FastViewTable",props:{widgetName:{type:String,required:!1},apiUrl:{type:String,required:!1},columnsDef:{type:Array,required:!1},listApiUrl:{type:String,required:!0},createRoute:{type:String,required:!1},editRoute:{type:String,required:!1},pickup:{type:Boolean,required:!1}},data(){return{widgetName_:this.widgetName,listApiUrl_:this.listApiUrl,colDefId:0,list:{columns:this.columnsDef||[],data:[],total:0,start:0,limit:9,pageNo:1,pageSize:9,loading:!1,search:{name:""}}}},mounted(){this.getData()},methods:{getData(){this.list.loading=!0;const t={pageNo:this.list.pageNo,pageSize:this.list.pageSize};this.listApiUrl_&&c.TF.xhr_get(this.listApiUrl_,(t=>{this.list.loading=!1,t.status?(this.list.data=t.data.rows,this.list.total=t.data.total):this.$Message.warning(t.message||"获取列表失败")}),t)},handleChangePageSize(t){this.list.limit=t,this.getData()},reset(){for(const t in this.search)this.search[t]="";this.getData()},onCreate(){if(this.createRoute)this.$router.push({path:this.createRoute});else{if(!this.$parent.onCreate)throw"请设置父组件的 onCreate 事件处理器";this.$parent.onCreate()}},onEdit(t){if(this.editRoute)this.$router.push({path:this.editRoute,query:{id:t}});else{if(!this.$parent.onEdit)throw"请设置父组件的 onEdit 事件处理器";this.$parent.onEdit(t)}},doPickup(t){this.$emit("on-select",t)},deleteInfo(t,e){this.list.loading=!0,c.TF.xhr_del(`${this.apiUrl}/${t}`,a.A.afterDelete((()=>{this.list.data.splice(e,1),this.list.total--,this.list.loading=!1})).bind(this))}},watch:{listApiUrl(t){this.listApiUrl_=t,this.getData()},current(t){this.start=(t-1)*this.list.limit,this.getData()},"list.pageNo"(t){this.list.start=(t-1)*this.list.limit,this.getData()}}}),l=u,f=r(1656),p=(0,f.A)(l,n,o,!1,null,"75ca7672",null),d=p.exports},8750:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"table-selector"},[e("Row",{staticStyle:{margin:"20px 0"},attrs:{type:"flex",justify:"center",align:"middle"}},[t.isCrossDb?e("i-Col",{staticStyle:{"padding-right":"10px"},attrs:{span:"6"}},[e("i-Select",{attrs:{placeholder:"请选择数据库名"},model:{value:t.databaseName,callback:function(e){t.databaseName=e},expression:"databaseName"}},t._l(t.databaseList,(function(r){return e("i-Option",{key:r,attrs:{value:r}},[t._v(t._s(r))])})),1)],1):t._e(),e("i-Col",{attrs:{span:t.isCrossDb?6:12}},[e("i-Input",{ref:"inputEl",attrs:{search:"","enter-button":"",placeholder:"按表名模糊搜索"},on:{"on-keyup":t.search}})],1),e("i-Col",{attrs:{span:"12"}},[t._v("    "),e("a",{on:{click:t.resetData}},[t._v("重置")])])],1),e("i-Table",{staticClass:"table-selector-table",attrs:{columns:t.list_column,data:t.data,width:"100%","max-height":"300",loading:t.loading},on:{"on-selection-change":t.onSelect},scopedSlots:t._u([{key:"select",fn:function({row:r}){return[e("a",{on:{click:function(e){return t.$emit("on-select",r,t.databaseName)}}},[t._v("选择")])]}}])}),e("br"),t.isFilter?t._e():e("div",{staticClass:"ivu-mt ivu-text-right"},[e("Page",{attrs:{total:t.total,current:t.current,"show-total":"","page-size":t.pageSize},on:{"update:current":function(e){t.current=e}}})],1)],1)},o=[],i=r(9274),s=r.n(i),a=r(681),c=s().extend({name:"TableSelector",data(){return{list_column:[{title:"#",width:60,type:"index"},{title:"表名",key:"tableName"},{title:"说明",key:"comment"},{title:"操作",slot:"select"}],listData:[],data:[],total:0,current:1,pageSize:5,isFilter:!1,start:0,searchKeyword:"",loading:!1,databaseList:[],databaseName:""}},props:{isCrossDb:{type:Boolean,required:!0},dataSourceId:{type:Number,required:!0}},mounted(){this.getData()},methods:{getData(){this.loading=!0;let t=`${window.config.dsApiRoot}/datasource/${this.dataSourceId}/get_all_tables?start=${this.start}&limit=${this.pageSize}`;this.searchKeyword&&(t+=`&tableName=${this.searchKeyword}`),this.databaseName&&(t+=`&dbName=${this.databaseName}`),a.TF.xhr_get(t,(t=>{t.status?(this.data=t.data.rows,this.total=t.data.total):this.$Message.error(t.message),this.loading=!1}))},handleChangePageSize(){let t=(this.current-1)*this.pageSize,e=t+this.pageSize;this.listData=this.data.slice(t,e)},onSelect(t){},resetData(){this.searchKeyword="",this.start=0,this.getData(),this.$refs.inputEl.$el.querySelector("input").value=""},search(t){let e=t.target,r=e.value;r&&(this.searchKeyword=r,this.start=0,this.current=1,this.getData())},onkeypress(t){let e=t.target,r=e.value;if(r){this.isFilter=!0;let t=this.data.filter((t=>-1!=t.tableName.indexOf(r)));this.listData=t}else this.resetData()}},watch:{current(t){this.start=(t-1)*this.pageSize,this.getData()},dataSourceId(t){t&&(this.isCrossDb?a.TF.xhr_get(`/admin/${this.dataSourceId}/get_databases`,(t=>{if(t.status){let e=["information_schema","performance_schema","sys","mysql"],r=t.data.filter((t=>!e.includes(t)));this.databaseList=r,this.start=0,this.current=1,this.databaseName=r[0]}else this.$Message.error(t.message)})):(this.databaseName=null,this.getData()))},databaseName(t){this.getData()}}}),u=c,l=r(1656),f=(0,l.A)(u,n,o,!1,null,null,null),p=f.exports},5533:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("i",{staticClass:"ivu-icon ivu-icon-ios-help-circle-outline",staticStyle:{cursor:"pointer"},attrs:{title:t.text}})},o=[],i=r(9274),s=r.n(i),a=s().extend({name:"Tips",props:{text:{type:String,required:!0}}}),c=a,u=r(1656),l=(0,u.A)(c,n,o,!1,null,null,null),f=l.exports},1656:function(t,e,r){"use strict";function n(t,e,r,n,o,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}r.d(e,{A:function(){return n}})},6326:function(t,e,r){"use strict";var n=r(681);e.A={afterDelete(t){return function(e){e.status?(t&&t(e),this.$Message.success("删除成功")):this.$Message.info("删除失败。"+e.message)}},delInfo(t){n.TF.xhr_del(`${this.API}/${this.list.data[t].id}`,(e=>{e.status?(this.list.data.splice(t,1),this.list.total--,this.$Message.success("删除成功")):this.$Message.info("删除失败。"+e.message)}))},id:{title:"#",width:60,key:"id",align:"center"},createDate:{title:"创建日期",width:160,align:"center",render(t,e){return t("div",n.Aq.dateFormat.call(new Date(e.row.createDate),"yyyy-MM-dd hh:mm"))}},tags:{title:"分类标签",minWidth:100,key:"tagsNames",align:"center",ellipsis:!0},status:{title:"状态",width:80,render(t,e){let r="",n="";switch(e.row.stat){case-1:r="草稿",n="gray";break;case 2:n="red",r="禁用";break;case 1:n="red",r="已删除";break;case null:case 0:default:n="green",r="启用"}return t("div",{style:{color:n}},r)}},getPageList(t,e,r){return n=>{n.status?(e.total=n.data.total,e.data=n.data.rows,r&&r()):t.$Message.warning(n.message||"获取数据失败")}},copyBeanClean(t){const e=JSON.parse(JSON.stringify(t));return delete e.createDate,delete e.updateDate,delete e.updateDate,delete e.creatorId,delete e.updaterId,delete e.creator,delete e.updater,delete e.extend,e}}},9887:function(t,e,r){var n={"./data-source/data-source.vue":2414,"./iam/user.vue":7813,"./iview-ext/fast-iview-table.vue":2162,"./iview-ext/table-selector.vue":8750,"./iview-ext/tips.vue":5533};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id=9887},9274:function(e){"use strict";e.exports=t},9306:function(t,e,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},3506:function(t,e,r){"use strict";var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},679:function(t,e,r){"use strict";var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,r){"use strict";var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(t){return function(e,r,s){var a=n(e),c=i(a);if(0===c)return!t&&-1;var u,l=o(s,c);if(t&&r!==r){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4527:function(t,e,r){"use strict";var n=r(3724),o=r(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,e,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),s=r(8227),a=s("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=c(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7740:function(t,e,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},6699:function(t,e,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106:function(t,e,r){"use strict";var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},6840:function(t,e,r){"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(n(r)&&i(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},9433:function(t,e,r){"use strict";var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var n=r(4576),o=r(34),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},5002:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,r){"use strict";var n=r(4576),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519:function(t,e,r){"use strict";var n,o,i=r(4576),s=r(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},6193:function(t,e,r){"use strict";var n=r(9504),o=Error,i=n("".replace),s=function(t){return String(new o(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,a,"");return t}},6518:function(t,e,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),s=r(6840),a=r(9433),c=r(7740),u=r(2796);t.exports=function(t,e){var r,l,f,p,d,h,m=t.target,g=t.global,v=t.stat;if(l=g?n:v?n[m]||a(m,{}):n[m]&&n[m].prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(h=o(l,f),p=h&&h.value):p=l[f],r=u(g?f:m+(v?".":"#")+f,t.forced),!r&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),s(l,f,d,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},616:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,e,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:function(t,e,r){"use strict";var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},9504:function(t,e,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var n=r(4576),o=r(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},5966:function(t,e,r){"use strict";var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},4576:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){"use strict";t.exports={}},5917:function(t,e,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3167:function(t,e,r){"use strict";var n=r(4901),o=r(34),i=r(2967);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},3706:function(t,e,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},1181:function(t,e,r){"use strict";var n,o,i,s=r(8622),a=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),p=r(6119),d=r(421),h="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(t){return i(t)?o(t):n(t,{})},y=function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}};if(s||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw new m(h);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var _=p("state");d[_]=!0,n=function(t,e){if(l(t,_))throw new m(h);return e.facade=t,u(t,_,e),e},o=function(t){return l(t,_)?t[_]:{}},i=function(t){return l(t,_)}}t.exports={set:n,get:o,has:i,enforce:v,getterFor:y}},4376:function(t,e,r){"use strict";var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,r){"use strict";var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:function(t,e,r){"use strict";var n=r(34);t.exports=function(t){return n(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},6198:function(t,e,r){"use strict";var n=r(8014);t.exports=function(t){return n(t.length)}},283:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),a=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),y=a&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,r){"Symbol("===m(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=f(t);return s(n,"source")||(n.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&p(this).source||u(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2603:function(t,e,r){"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},4913:function(t,e,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),a=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),a=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(r){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var n=r(1828),o=r(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625:function(t,e,r){"use strict";var n=r(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,a=r(421),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);while(e.length>u)o(n,r=e[u++])&&(~s(l,r)||c(l,r));return l}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2967:function(t,e,r){"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(a){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},4270:function(t,e,r){"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),a=r(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},7750:function(t,e,r){"use strict";var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},4495:function(t,e,r){"use strict";var n=r(9519),o=r(9039),i=r(4576),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},5610:function(t,e,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5397:function(t,e,r){"use strict";var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},1291:function(t,e,r){"use strict";var n=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},8014:function(t,e,r){"use strict";var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:function(t,e,r){"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),a=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,r){"use strict";var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},2140:function(t,e,r){"use strict";var n=r(8227),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},655:function(t,e,r){"use strict";var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},3392:function(t,e,r){"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040:function(t,e,r){"use strict";var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var n=r(3724),o=r(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:function(t,e,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:function(t,e,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),s=r(3392),a=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u["for"]||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},4114:function(t,e,r){"use strict";var n=r(6518),o=r(8981),i=r(6198),s=r(4527),a=r(6837),c=r(9039),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),r=i(e),n=arguments.length;a(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return s(e,r),r}})},4979:function(t,e,r){"use strict";var n=r(6518),o=r(4576),i=r(7751),s=r(6980),a=r(4913).f,c=r(9297),u=r(679),l=r(3167),f=r(2603),p=r(5002),d=r(6193),h=r(3724),m=r(6395),g="DOMException",v=i("Error"),y=i(g),b=function(){u(this,_);var t=arguments.length,e=f(t<1?void 0:arguments[0]),r=f(t<2?void 0:arguments[1],"Error"),n=new y(e,r),o=new v(e);return o.name=g,a(n,"stack",s(1,d(o.stack,1))),l(n,this,b),n},_=b.prototype=y.prototype,w="stack"in new v(g),x="stack"in new y(1,2),S=y&&h&&Object.getOwnPropertyDescriptor(o,g),E=!!S&&!(S.writable&&S.configurable),O=w&&!E&&!x;n({global:!0,constructor:!0,forced:m||O},{DOMException:O?b:y});var R=i(g),T=R.prototype;if(T.constructor!==R)for(var I in m||a(T,"constructor",s(1,R)),p)if(c(p,I)){var D=p[I],C=D.s;c(R,C)||a(R,C,s(6,D.c))}},4603:function(t,e,r){"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.append),l=o(c["delete"]),f=o(c.forEach),p=o([].push),d=new a("a=1&a=2&b=3");d["delete"]("a",1),d["delete"]("b",void 0),d+""!=="a=2"&&n(c,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=[];f(this,(function(t,e){p(n,{key:e,value:t})})),s(e,1);var o,a=i(t),c=i(r),d=0,h=0,m=!1,g=n.length;while(d<g)o=n[d++],m||o.key===a?(m=!0,l(this,o.key)):h++;while(h<g)o=n[h++],o.key===a&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7566:function(t,e,r){"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.getAll),l=o(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||n(c,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=u(this,t);s(e,1);var o=i(r),a=0;while(a<n.length)if(n[a++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:function(t,e,r){"use strict";var n=r(3724),o=r(9504),i=r(2106),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},681:function(t,e,r){"use strict";r.d(e,{Aq:function(){return l},TF:function(){return T}});function n(){return!1}function o(){let t=window.location.hostname;return t.startsWith("192.168.")||t.startsWith("10.")||"localhost"===t}function i(t){let e,r,n,o={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(r in/(y+)/.test(t)&&(e=RegExp.$1,t=t.replace(e,String(this.getFullYear()).substr(4-e))),o)new RegExp("("+r+")").test(t)&&(e=RegExp.$1,n=String(o[r]),n=1==e.length?n:("00"+n).substr(n.length),t=t.replace(e,n));return t}function s(t,e){let r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)if(new RegExp("("+n+")").test(e)){let t=1==RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length);e=e.replace(RegExp.$1,t)}return e}function a(t,e){let r,n=0,o=Array(t.length).fill().map((()=>({isActive:!1,data:null}))),i=function(){return o.every((t=>!0===t.isActive))},s=function(t){return function(r){o[t].data=r,o[t].isActive=!0;let n=i();if(n){let t=o.map((t=>t.data));e(t)}}};while(r=t.shift())r(s(n)),n++}function c(t,e,r){var n,o;return function(){var i=+new Date;if(window.clearTimeout(n),o||(o=i),i-o>=r)t.apply(this,arguments),o=i;else{var s=arguments;n=window.setTimeout((()=>t.apply(this,s)),e)}}}function u(t){if(navigator.clipboard)navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");document.body.appendChild(e),e.style.position="fixed",e.style.clip="rect(0 0 0 0)",e.style.top="10px",e.value=t,e.select(),document.execCommand("copy",!0),document.body.removeChild(e)}}var l=Object.freeze({__proto__:null,copyToClipboard:u,dateFormat:i,dateFormat2:s,isDebug:n,isDev:o,parallel:a,throttle:c});const f={timeout:5e3,withCredentials:!1,parseContentType:"json"};let p=null;function d(t){null===p&&(p={}),Object.assign(p,t)}function h(t,e,r,n,o=f){let i=w(o);if(null!=n&&(-1!=e.indexOf("?")?e+="&"+E(n):e+="?"+E(n)),i.open(t.toUpperCase(),e,!0),i.onreadystatechange=function(){S(this,r,o)},p)for(let s in p)i.setRequestHeader(s,p[s]);i.send()}function m(t,e,r,n,o=f){let i=w(o);if(i.open(t,e,!0),i.onreadystatechange=function(){S(this,r,o)},p)for(let a in p)i.setRequestHeader(a,p[a]);o.contentType?i.setRequestHeader("Content-Type",o.contentType):i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");let s="string"!=typeof n?E(n):n;s?i.send(s):i.send()}function g(t,e,r,n=f){let o=w(n);if(o.open("post",t,!0),o.onreadystatechange=function(){S(this,e,n)},p)for(let i in p)o.setRequestHeader(i,p[i]);o.send(r)}function v(t,e,r,n=f){h("get",t,e,r,n)}function y(t,e,r,n=f){h("delete",t,e,r,n)}function b(t,e,r,n=f){m("post",t,e,r,n)}function _(t,e,r,n=f){m("put",t,e,r,n)}function w(t){let e=new XMLHttpRequest;return t&&t.timeout&&(e.timeout=t.timeout,e.ontimeout=t=>console.error("系统异常,XHR 连接服务超时")),t&&t.withCredentials&&(e.withCredentials=!0),e}function x(t){let e;e=t.status<=400?"请求参数错误或者权限不足。":t.status<=500?"服务端异常。":`未知异常,HTTP code:${t.status}。`,t.responseText||(e+=" 服务端返回空的字符串!"),console.error(e,t.responseText)}function S(t,e,r){if(4==t.readyState)if(t.status>=200&&t.status<300||304==t.status){let o,i=t.responseText;switch(i||console.warn("服务端没有返回任何字符串"),r.parseContentType){case"text":break;case"xml":o=t.responseXML;break;case"json":default:try{o=JSON.parse(i)}catch(n){console.error("解析 JSON 时候发生错误,非法 JSON"),console.warn(n)}}e&&e(o,i)}else x(t)}function E(t){let e="";for(let r in t)"function"!=typeof t[r]&&(e+="&"+r+"="+encodeURIComponent(t[r]));return e.substring(1)}function O(t){const e=location.hash.indexOf("?"),r=location.hash.substring(e+1);let n=r.split("&");for(let o=0;o<n.length;o++){const e=n[o].split("=");if(e[0]==t)return e[1]}return""}function R(t,e,r){return n=>{n.status?(e.total=n.total,e.data=n.data,r&&r()):t.$Message.warning(n.message||"获取数据失败")}}var T=Object.freeze({__proto__:null,getPageList:R,getQuery:O,setBaseHeadParams:d,toParams:E,xhr_del:y,xhr_get:v,xhr_post:b,xhr_post_upload:g,xhr_put:_})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t].call(i.exports,i,i.exports,n),i.exports}!function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){"use strict";if(n.r(o),n.d(o,{IAM:function(){return s},List:function(){return r.A},install:function(){return l}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var r=n(6326),i=(n(4979),n(4603),n(7566),n(8721),n(681)),s={getLoginInfo(t,e){const r=a("token",!1);let n=localStorage.getItem("accessToken");if(!n&&!r){console.log("你未登录!");const r=`${t}?web_url=${encodeURIComponent(e)}`;return void(confirm("你未登录。是否跳转到登录页面?")&&location.assign(r))}if(r){n=decodeURIComponent(r),localStorage.setItem("accessToken",n);const t=new URL(location.href),e=new URLSearchParams(t.search);e.delete("token"),t.search=e.toString(),location.assign(t.href)}i.TF.setBaseHeadParams({Authorization:"Bearer "+n});const o=n.split("."),s=JSON.parse(atob(o[1]));return s}};function a(t,e){const r=(e?parent.location:window.location).search.substring(1),n=r.split("&");for(let o=0;o<n.length;o++){const e=n[o].split("=");if(e[0]==t)return e[1]}return null}const c=n(9887),u={};c.keys().forEach((t=>{if("./App.vue"!=t){const e=c(t).default||c(t);e.extendOptions&&(u[e.extendOptions.name]=e)}}));const l=t=>{if(l.installed)return l.installed;c.keys().forEach((e=>{if("./App.vue"!=e){const r=c(e).default||c(e);r.extendOptions&&r.extendOptions.name&&t.component(r.extendOptions.name,r)}})),t.directive("focus",{inserted:function(t){t.focus()}})};"undefined"!==typeof window&&window.Vue&&l(window.Vue);r.A}(),o}()}));
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["@ajaxjs/ui"]=e(require("vue")):t["@ajaxjs/ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={2414:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return h}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"datasource",staticStyle:{overflow:"hidden"}},[e("div",{staticClass:"left"},[e("ul",t._l(t.datasources,(function(r){return e("li",{key:r.id,class:{actived:t.activedItem==r.id},on:{click:function(e){return t.active(r)}}},[e("span",[e("Icon",{staticClass:"del-icon",attrs:{type:"md-trash",title:"删除此数据源"},on:{click:function(e){return t.del(r.id,r.name)}}})],1),t._v(" "+t._s(r.name)+" ")])})),0),e("a",{staticClass:"add",on:{click:t.add}},[t._v("+ 新建……")])]),e("div",{staticClass:"right"},[e("i-Form",{ref:"editForm",staticStyle:{"margin-right":"100px"},attrs:{model:t.form.data,rules:t.form.rules,"label-width":120}},[e("form-item",{attrs:{label:"数据源名称",prop:"name"}},[e("i-Input",{attrs:{placeholder:"数据源名称"},model:{value:t.form.data.name,callback:function(e){t.$set(t.form.data,"name",e)},expression:"form.data.name"}})],1),e("form-item",{attrs:{label:"数据源编码",prop:"urlDir"}},[e("i-Input",{attrs:{placeholder:"数据源编码全局唯一不重复"},model:{value:t.form.data.urlDir,callback:function(e){t.$set(t.form.data,"urlDir",e)},expression:"form.data.urlDir"}})],1),e("form-item",{attrs:{label:"数据库类型",prop:"type"}},[e("i-Select",{model:{value:t.form.data.type,callback:function(e){t.$set(t.form.data,"type",e)},expression:"form.data.type"}},t._l(t.DBType,(function(r,n){return e("i-Option",{key:n,attrs:{value:n}},[t._v(t._s(r))])})),1)],1),e("form-item",{attrs:{label:"连接地址",prop:"url"}},[e("i-Input",{attrs:{maxlength:"200","show-word-limit":"",type:"textarea",rows:4,placeholder:"数据库连接 URL,注意无须携带用户名和密码,且不需要 URL 转义"},model:{value:t.form.data.url,callback:function(e){t.$set(t.form.data,"url",e)},expression:"form.data.url"}})],1),e("form-item",{attrs:{label:"登录用户",prop:"username"}},[e("i-Input",{attrs:{placeholder:"请输入数据库用户账号"},model:{value:t.form.data.username,callback:function(e){t.$set(t.form.data,"username",e)},expression:"form.data.username"}})],1),e("form-item",{attrs:{label:"登录密码",prop:"password"}},[e("i-Input",{attrs:{type:"password",password:"",placeholder:"请输入账号密码"},model:{value:t.form.data.password,callback:function(e){t.$set(t.form.data,"password",e)},expression:"form.data.password"}})],1),e("form-item",{attrs:{label:"是否跨库",prop:"crossDb"}},[e("i-switch",{model:{value:t.form.data.crossDb,callback:function(e){t.$set(t.form.data,"crossDb",e)},expression:"form.data.crossDb"}})],1)],1),e("div",{attrs:{align:"center"}},[t.activedItem?t._e():e("i-Button",{attrs:{icon:"md-checkmark"},on:{click:t.create}},[t._v("保存新建")]),t.activedItem?e("i-Button",{on:{click:t.update}},[t._v("保存")]):t._e(),t._v("   "),t.activedItem?e("i-Button",{on:{click:t.test}},[t._v("测试连接")]):t._e(),t._v("   "),t.activedItem?e("i-Button",{on:{click:function(e){return t.$emit("change_datasource",t.form.data)}}},[t._v("切换")]):t._e()],1)],1)])},o=[],i=r(681),s=r(9274),a=r.n(s);const c={MY_SQL:"MySQL",ORACLE:"Oracle",SQL_SERVER:"Sql Server",SPARK:"Spark",SQLITE:"SQLite",DB2:"DB2"},u=window.API_ROOT?API_ROOT+"/data_service/datasource":"../../data_service/datasource";window.API_ROOT&&API_ROOT;var l=a().extend({name:"DataSource",data(){return{isCreate:!0,datasources:[{id:1,name:"加载中……"}],activedItem:null,editing:{},form:{data:{},rules:{name:[{required:!0,message:"数据源名称不能为空",trigger:"blur"}]}},DBType:c}},mounted(){this.getList()},methods:{active(t){this.activedItem=t.id,this.form.data=t},getList(t){xhr_get(`${window.config.dsApiRoot}/datasource`,(t=>{this.datasources=t.data}),{start:0,limit:99})},add(){this.activedItem=null,this.form.data={name:""}},create(){this.$refs.editForm.validate((t=>{t?i.TF.xhr_post(u,this.form.data,(t=>{if(1===t.status){const e=t.data;this.getList((()=>this.activedItem=e)),this.$Message.success("创建数据源成功"),this.form.data.id=e}})):this.$Message.error("表单验证不通过")}))},update(){const t=Object.assign({},this.form.data);i.TF.xhr_put(u,t,(t=>{1===t.status&&this.$Message.success("修改数据源成功")}))},del(t,e){this.$Modal.confirm({title:"删除数据源",content:`是否删除数据源 #${e}?`,onOk:()=>{i.TF.xhr_del(u+t,(t=>{this.$Message.success("删除数据源成功"),this.getList((()=>this.add()))}))}})},test(){xhr_get(`${window.config.dsApiRoot}/datasource/test/`+this.activedItem,(t=>{t.status&&this.$Modal.success({title:"连接数据源成功"})}))}}}),f=l,p=r(1656),d=(0,p.A)(f,n,o,!1,null,"79e01278",null),h=d.exports},7813:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("a",{on:{click:t.showUserInfo}},[t._v(t._s(t.state))])},o=[],i=(r(4979),r(681)),s=r(9274),a=r.n(s);const c="localStorage.removeItem('accessToken');location.reload();";var u=a().extend({name:"IamUser",data(){return{state:"未登录",isShowInfo:!1,payload:null}},mounted(){let t=localStorage.getItem("accessToken");if(t){const e=t.split("."),r=JSON.parse(atob(e[1]));this.payload=r,this.state=r.name+"已登录"}},methods:{showUserInfo(){"未登录"===this.state?location.assign(window.config.loginUrl):this.$Modal.info({title:"当前用户信息",content:`<p>用户名: ${this.payload.name}</p><p>Token 过期时间:${i.Aq.dateFormat.call(new Date(1e3*this.payload.exp),"yyyy-MM-dd hh:mm:ss")}</p><p><a href="#" onclick="${c}">用户登出</a></p>`})}}}),l=u,f=r(1656),p=(0,f.A)(l,n,o,!1,null,null,null),d=p.exports},2162:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("Card",{staticClass:"common-search-panel",staticStyle:{"text-align":"left"},attrs:{bordered:!1,"dis-hover":""}},[e("span",{staticStyle:{float:"right"}},[e("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:function(e){return t.$parent.getData()}}},[t._v("查询")]),e("Button",{staticStyle:{"margin-left":"10px"},on:{click:t.reset}},[t._v("重置")])],1),e("Input",{attrs:{suffix:"ios-search",clearable:"",placeholder:"请输入"+t.widgetName_+"名称"},on:{"on-enter":t.getData},model:{value:t.list.search.name,callback:function(e){t.$set(t.list.search,"name",e)},expression:"list.search.name"}})],1),e("div",[e("Card",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"toolbar"},[e("Tooltip",{staticClass:"ivu-ml",attrs:{content:"刷新",placement:"top"}},[e("Icon",{staticStyle:{cursor:"pointer"},attrs:{size:"20",type:"ios-refresh"},on:{click:t.getData}})],1),t._t("toolbar"),t.createRoute||t.$parent.onCreate?e("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.onCreate}},[t._v("新建"+t._s(t.widgetName_))]):t._e()],2),e("Table",{attrs:{columns:t.list.columns,data:t.list.data,loading:t.list.loading,height:"500"},scopedSlots:t._u([{key:"action",fn:function({row:r,index:n}){return[t._t("list_action",null,{item:r}),t.pickup?e("a",{staticStyle:{color:"green"},on:{click:function(e){return t.doPickup(r)}}},[t._v("选择")]):t._e(),t.pickup?t._e():e("span",[e("a",{staticStyle:{color:"green"},on:{click:function(e){return t.onEdit(r.id)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("Poptip",{attrs:{confirm:"",transfer:"",title:"是否要删除此行?"},on:{"on-ok":function(e){return t.deleteInfo(r.id,n)}}},[e("a",{staticStyle:{color:"red"}},[t._v("删除")])])],1)]}}],null,!0)}),e("Page",{staticClass:"ivu-mt ivu-text-right",attrs:{total:t.list.total,current:t.list.pageNo,"show-total":"","show-sizer":"","page-size":t.list.limit},on:{"update:current":function(e){return t.$set(t.list,"pageNo",e)},"on-page-size-change":t.handleChangePageSize}})],1)],1)],1)},o=[],i=(r(4114),r(9274)),s=r.n(i),a=r(6326),c=r(681),u=s().extend({name:"FastViewTable",props:{widgetName:{type:String,required:!1},apiUrl:{type:String,required:!1},columnsDef:{type:Array,required:!1},listApiUrl:{type:String,required:!0},createRoute:{type:String,required:!1},editRoute:{type:String,required:!1},pickup:{type:Boolean,required:!1}},data(){return{widgetName_:this.widgetName,listApiUrl_:this.listApiUrl,colDefId:0,list:{columns:this.columnsDef||[],data:[],total:0,start:0,limit:9,pageNo:1,pageSize:9,loading:!1,search:{name:""}}}},mounted(){this.getData()},methods:{getData(){this.list.loading=!0;const t={pageNo:this.list.pageNo,pageSize:this.list.pageSize};this.listApiUrl_&&c.TF.xhr_get(this.listApiUrl_,(t=>{this.list.loading=!1,t.status?(this.list.data=t.data.rows,this.list.total=t.data.total):this.$Message.warning(t.message||"获取列表失败")}),t)},handleChangePageSize(t){this.list.limit=t,this.getData()},reset(){for(const t in this.search)this.search[t]="";this.getData()},onCreate(){if(this.createRoute)this.$router.push({path:this.createRoute});else{if(!this.$parent.onCreate)throw"请设置父组件的 onCreate 事件处理器";this.$parent.onCreate()}},onEdit(t){if(this.editRoute)this.$router.push({path:this.editRoute,query:{id:t}});else{if(!this.$parent.onEdit)throw"请设置父组件的 onEdit 事件处理器";this.$parent.onEdit(t)}},doPickup(t){this.$emit("on-select",t)},deleteInfo(t,e){this.list.loading=!0,c.TF.xhr_del(`${this.apiUrl}/${t}`,a.A.afterDelete((()=>{this.list.data.splice(e,1),this.list.total--,this.list.loading=!1})).bind(this))}},watch:{listApiUrl(t){this.listApiUrl_=t,this.getData()},current(t){this.start=(t-1)*this.list.limit,this.getData()},"list.pageNo"(t){this.list.start=(t-1)*this.list.limit,this.getData()}}}),l=u,f=r(1656),p=(0,f.A)(l,n,o,!1,null,"75ca7672",null),d=p.exports},8750:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return p}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"table-selector"},[e("Row",{staticStyle:{margin:"20px 0"},attrs:{type:"flex",justify:"center",align:"middle"}},[t.isCrossDb?e("i-Col",{staticStyle:{"padding-right":"10px"},attrs:{span:"6"}},[e("i-Select",{attrs:{placeholder:"请选择数据库名"},model:{value:t.databaseName,callback:function(e){t.databaseName=e},expression:"databaseName"}},t._l(t.databaseList,(function(r){return e("i-Option",{key:r,attrs:{value:r}},[t._v(t._s(r))])})),1)],1):t._e(),e("i-Col",{attrs:{span:t.isCrossDb?6:12}},[e("i-Input",{ref:"inputEl",attrs:{search:"","enter-button":"",placeholder:"按表名模糊搜索"},on:{"on-keyup":t.search}})],1),e("i-Col",{attrs:{span:"12"}},[t._v("    "),e("a",{on:{click:t.resetData}},[t._v("重置")])])],1),e("i-Table",{staticClass:"table-selector-table",attrs:{columns:t.list_column,data:t.data,width:"100%","max-height":"300",loading:t.loading},on:{"on-selection-change":t.onSelect},scopedSlots:t._u([{key:"select",fn:function({row:r}){return[e("a",{on:{click:function(e){return t.$emit("on-select",r,t.databaseName)}}},[t._v("选择")])]}}])}),e("br"),t.isFilter?t._e():e("div",{staticClass:"ivu-mt ivu-text-right"},[e("Page",{attrs:{total:t.total,current:t.current,"show-total":"","page-size":t.pageSize},on:{"update:current":function(e){t.current=e}}})],1)],1)},o=[],i=r(9274),s=r.n(i),a=r(681),c=s().extend({name:"TableSelector",data(){return{list_column:[{title:"#",width:60,type:"index"},{title:"表名",key:"tableName"},{title:"说明",key:"comment"},{title:"操作",slot:"select"}],listData:[],data:[],total:0,current:1,pageSize:5,isFilter:!1,start:0,searchKeyword:"",loading:!1,databaseList:[],databaseName:""}},props:{isCrossDb:{type:Boolean,required:!0},dataSourceId:{type:Number,required:!0}},mounted(){this.getData()},methods:{getData(){this.loading=!0;let t=`${window.config.dsApiRoot}/datasource/${this.dataSourceId}/get_all_tables?start=${this.start}&limit=${this.pageSize}`;this.searchKeyword&&(t+=`&tableName=${this.searchKeyword}`),this.databaseName&&(t+=`&dbName=${this.databaseName}`),a.TF.xhr_get(t,(t=>{t.status?(this.data=t.data.rows,this.total=t.data.total):this.$Message.error(t.message),this.loading=!1}))},handleChangePageSize(){let t=(this.current-1)*this.pageSize,e=t+this.pageSize;this.listData=this.data.slice(t,e)},onSelect(t){},resetData(){this.searchKeyword="",this.start=0,this.getData(),this.$refs.inputEl.$el.querySelector("input").value=""},search(t){let e=t.target,r=e.value;r&&(this.searchKeyword=r,this.start=0,this.current=1,this.getData())},onkeypress(t){let e=t.target,r=e.value;if(r){this.isFilter=!0;let t=this.data.filter((t=>-1!=t.tableName.indexOf(r)));this.listData=t}else this.resetData()}},watch:{current(t){this.start=(t-1)*this.pageSize,this.getData()},dataSourceId(t){t&&(this.isCrossDb?a.TF.xhr_get(`/admin/${this.dataSourceId}/get_databases`,(t=>{if(t.status){let e=["information_schema","performance_schema","sys","mysql"],r=t.data.filter((t=>!e.includes(t)));this.databaseList=r,this.start=0,this.current=1,this.databaseName=r[0]}else this.$Message.error(t.message)})):(this.databaseName=null,this.getData()))},databaseName(t){this.getData()}}}),u=c,l=r(1656),f=(0,l.A)(u,n,o,!1,null,null,null),p=f.exports},5533:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("i",{staticClass:"ivu-icon ivu-icon-ios-help-circle-outline",staticStyle:{cursor:"pointer"},attrs:{title:t.text}})},o=[],i=r(9274),s=r.n(i),a=s().extend({name:"Tips",props:{text:{type:String,required:!0}}}),c=a,u=r(1656),l=(0,u.A)(c,n,o,!1,null,null,null),f=l.exports},1656:function(t,e,r){"use strict";function n(t,e,r,n,o,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}r.d(e,{A:function(){return n}})},6326:function(t,e,r){"use strict";var n=r(681);e.A={afterDelete(t){return function(e){e.status?(t&&t(e),this.$Message.success("删除成功")):this.$Message.info("删除失败。"+e.message)}},delInfo(t){n.TF.xhr_del(`${this.API}/${this.list.data[t].id}`,(e=>{e.status?(this.list.data.splice(t,1),this.list.total--,this.$Message.success("删除成功")):this.$Message.info("删除失败。"+e.message)}))},id:{title:"#",width:60,key:"id",align:"center"},createDate:{title:"创建日期",width:160,align:"center",render(t,e){return t("div",n.Aq.dateFormat.call(new Date(e.row.createDate),"yyyy-MM-dd hh:mm"))}},tags:{title:"分类标签",minWidth:100,key:"tagsNames",align:"center",ellipsis:!0},status:{title:"状态",width:80,render(t,e){let r="",n="";switch(e.row.stat){case-1:r="草稿",n="gray";break;case 2:n="red",r="禁用";break;case 1:n="red",r="已删除";break;case null:case 0:default:n="green",r="启用"}return t("div",{style:{color:n}},r)}},getPageList(t,e,r){return n=>{n.status?(e.total=n.data.total,e.data=n.data.rows,r&&r()):t.$Message.warning(n.message||"获取数据失败")}},copyBeanClean(t){const e=JSON.parse(JSON.stringify(t));return delete e.createDate,delete e.updateDate,delete e.updateDate,delete e.creatorId,delete e.updaterId,delete e.creator,delete e.updater,delete e.extend,e}}},9887:function(t,e,r){var n={"./data-source/data-source.vue":2414,"./iam/user.vue":7813,"./iview-ext/fast-iview-table.vue":2162,"./iview-ext/table-selector.vue":8750,"./iview-ext/tips.vue":5533};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id=9887},9274:function(e){"use strict";e.exports=t},9306:function(t,e,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},3506:function(t,e,r){"use strict";var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},679:function(t,e,r){"use strict";var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,r){"use strict";var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(t){return function(e,r,s){var a=n(e),c=i(a);if(0===c)return!t&&-1;var u,l=o(s,c);if(t&&r!==r){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4527:function(t,e,r){"use strict";var n=r(3724),o=r(4376),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},2195:function(t,e,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,e,r){"use strict";var n=r(2140),o=r(4901),i=r(2195),s=r(8227),a=s("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=c(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7740:function(t,e,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},6699:function(t,e,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106:function(t,e,r){"use strict";var n=r(283),o=r(4913);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},6840:function(t,e,r){"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(n(r)&&i(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},9433:function(t,e,r){"use strict";var n=r(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3724:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var n=r(4576),o=r(34),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},5002:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,r){"use strict";var n=r(4576),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519:function(t,e,r){"use strict";var n,o,i=r(4576),s=r(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},6193:function(t,e,r){"use strict";var n=r(9504),o=Error,i=n("".replace),s=function(t){return String(new o(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,a,"");return t}},6518:function(t,e,r){"use strict";var n=r(4576),o=r(7347).f,i=r(6699),s=r(6840),a=r(9433),c=r(7740),u=r(2796);t.exports=function(t,e){var r,l,f,p,d,h,m=t.target,g=t.global,v=t.stat;if(l=g?n:v?n[m]||a(m,{}):n[m]&&n[m].prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(h=o(l,f),p=h&&h.value):p=l[f],r=u(g?f:m+(v?".":"#")+f,t.forced),!r&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),s(l,f,d,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},616:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,e,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6706:function(t,e,r){"use strict";var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},9504:function(t,e,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var n=r(4576),o=r(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},5966:function(t,e,r){"use strict";var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},4576:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){"use strict";t.exports={}},5917:function(t,e,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(2195),s=Object,a=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):s(t)}:s},3167:function(t,e,r){"use strict";var n=r(4901),o=r(34),i=r(2967);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},3706:function(t,e,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},1181:function(t,e,r){"use strict";var n,o,i,s=r(8622),a=r(4576),c=r(34),u=r(6699),l=r(9297),f=r(7629),p=r(6119),d=r(421),h="Object already initialized",m=a.TypeError,g=a.WeakMap,v=function(t){return i(t)?o(t):n(t,{})},y=function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}};if(s||f.state){var b=f.state||(f.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw new m(h);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var _=p("state");d[_]=!0,n=function(t,e){if(l(t,_))throw new m(h);return e.facade=t,u(t,_,e),e},o=function(t){return l(t,_)?t[_]:{}},i=function(t){return l(t,_)}}t.exports={set:n,get:o,has:i,enforce:v,getterFor:y}},4376:function(t,e,r){"use strict";var n=r(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,r){"use strict";var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:function(t,e,r){"use strict";var n=r(34);t.exports=function(t){return n(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},6198:function(t,e,r){"use strict";var n=r(8014);t.exports=function(t){return n(t.length)}},283:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),a=r(3724),c=r(350).CONFIGURABLE,u=r(3706),l=r(1181),f=l.enforce,p=l.get,d=String,h=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),y=a&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,r){"Symbol("===m(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&s(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=f(t);return s(n,"source")||(n.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return i(this)&&p(this).source||u(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},2603:function(t,e,r){"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},4913:function(t,e,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),a=r(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=l(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),a=r(5397),c=r(6969),u=r(9297),l=r(5917),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(r){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var n=r(1828),o=r(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625:function(t,e,r){"use strict";var n=r(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,a=r(421),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);while(e.length>u)o(n,r=e[u++])&&(~s(l,r)||c(l,r));return l}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2967:function(t,e,r){"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(a){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},4270:function(t,e,r){"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),a=r(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},7750:function(t,e,r){"use strict";var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,r){"use strict";var n=r(6395),o=r(4576),i=r(9433),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},4495:function(t,e,r){"use strict";var n=r(9519),o=r(9039),i=r(4576),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},5610:function(t,e,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5397:function(t,e,r){"use strict";var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},1291:function(t,e,r){"use strict";var n=r(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},8014:function(t,e,r){"use strict";var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:function(t,e,r){"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),a=r(4270),c=r(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,r){"use strict";var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},2140:function(t,e,r){"use strict";var n=r(8227),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},655:function(t,e,r){"use strict";var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},3392:function(t,e,r){"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040:function(t,e,r){"use strict";var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var n=r(3724),o=r(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:function(t,e,r){"use strict";var n=r(4576),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:function(t,e,r){"use strict";var n=r(4576),o=r(5745),i=r(9297),s=r(3392),a=r(4495),c=r(7040),u=n.Symbol,l=o("wks"),f=c?u["for"]||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},4114:function(t,e,r){"use strict";var n=r(6518),o=r(8981),i=r(6198),s=r(4527),a=r(6837),c=r(9039),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),r=i(e),n=arguments.length;a(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return s(e,r),r}})},4979:function(t,e,r){"use strict";var n=r(6518),o=r(4576),i=r(7751),s=r(6980),a=r(4913).f,c=r(9297),u=r(679),l=r(3167),f=r(2603),p=r(5002),d=r(6193),h=r(3724),m=r(6395),g="DOMException",v=i("Error"),y=i(g),b=function(){u(this,_);var t=arguments.length,e=f(t<1?void 0:arguments[0]),r=f(t<2?void 0:arguments[1],"Error"),n=new y(e,r),o=new v(e);return o.name=g,a(n,"stack",s(1,d(o.stack,1))),l(n,this,b),n},_=b.prototype=y.prototype,w="stack"in new v(g),x="stack"in new y(1,2),S=y&&h&&Object.getOwnPropertyDescriptor(o,g),E=!!S&&!(S.writable&&S.configurable),O=w&&!E&&!x;n({global:!0,constructor:!0,forced:m||O},{DOMException:O?b:y});var R=i(g),T=R.prototype;if(T.constructor!==R)for(var I in m||a(T,"constructor",s(1,R)),p)if(c(p,I)){var D=p[I],C=D.s;c(R,C)||a(R,C,s(6,D.c))}},4603:function(t,e,r){"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.append),l=o(c["delete"]),f=o(c.forEach),p=o([].push),d=new a("a=1&a=2&b=3");d["delete"]("a",1),d["delete"]("b",void 0),d+""!=="a=2"&&n(c,"delete",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=[];f(this,(function(t,e){p(n,{key:e,value:t})})),s(e,1);var o,a=i(t),c=i(r),d=0,h=0,m=!1,g=n.length;while(d<g)o=n[d++],m||o.key===a?(m=!0,l(this,o.key)):h++;while(h<g)o=n[h++],o.key===a&&o.value===c||u(this,o.key,o.value)}),{enumerable:!0,unsafe:!0})},7566:function(t,e,r){"use strict";var n=r(6840),o=r(9504),i=r(655),s=r(2812),a=URLSearchParams,c=a.prototype,u=o(c.getAll),l=o(c.has),f=new a("a=1");!f.has("a",2)&&f.has("a",void 0)||n(c,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=u(this,t);s(e,1);var o=i(r),a=0;while(a<n.length)if(n[a++]===o)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:function(t,e,r){"use strict";var n=r(3724),o=r(9504),i=r(2106),s=URLSearchParams.prototype,a=o(s.forEach);n&&!("size"in s)&&i(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})},681:function(t,e,r){"use strict";r.d(e,{Aq:function(){return l},TF:function(){return T}});function n(){return!1}function o(){let t=window.location.hostname;return t.startsWith("192.168.")||t.startsWith("10.")||"localhost"===t}function i(t){let e,r,n,o={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(r in/(y+)/.test(t)&&(e=RegExp.$1,t=t.replace(e,String(this.getFullYear()).substr(4-e))),o)new RegExp("("+r+")").test(t)&&(e=RegExp.$1,n=String(o[r]),n=1==e.length?n:("00"+n).substr(n.length),t=t.replace(e,n));return t}function s(t,e){let r={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var n in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)if(new RegExp("("+n+")").test(e)){let t=1==RegExp.$1.length?r[n]:("00"+r[n]).substr((""+r[n]).length);e=e.replace(RegExp.$1,t)}return e}function a(t,e){let r,n=0,o=Array(t.length).fill().map((()=>({isActive:!1,data:null}))),i=function(){return o.every((t=>!0===t.isActive))},s=function(t){return function(r){o[t].data=r,o[t].isActive=!0;let n=i();if(n){let t=o.map((t=>t.data));e(t)}}};while(r=t.shift())r(s(n)),n++}function c(t,e,r){var n,o;return function(){var i=+new Date;if(window.clearTimeout(n),o||(o=i),i-o>=r)t.apply(this,arguments),o=i;else{var s=arguments;n=window.setTimeout((()=>t.apply(this,s)),e)}}}function u(t){if(navigator.clipboard)navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");document.body.appendChild(e),e.style.position="fixed",e.style.clip="rect(0 0 0 0)",e.style.top="10px",e.value=t,e.select(),document.execCommand("copy",!0),document.body.removeChild(e)}}var l=Object.freeze({__proto__:null,copyToClipboard:u,dateFormat:i,dateFormat2:s,isDebug:n,isDev:o,parallel:a,throttle:c});const f={timeout:5e3,withCredentials:!1,parseContentType:"json"};let p=null;function d(t){null===p&&(p={}),Object.assign(p,t)}function h(t,e,r,n,o=f){let i=w(o);if(null!=n&&(-1!=e.indexOf("?")?e+="&"+E(n):e+="?"+E(n)),i.open(t.toUpperCase(),e,!0),i.onreadystatechange=function(){S(this,r,o)},p)for(let s in p)i.setRequestHeader(s,p[s]);i.send()}function m(t,e,r,n,o=f){let i=w(o);if(i.open(t,e,!0),i.onreadystatechange=function(){S(this,r,o)},p)for(let a in p)i.setRequestHeader(a,p[a]);o.contentType?i.setRequestHeader("Content-Type",o.contentType):i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");let s="string"!=typeof n?E(n):n;s?i.send(s):i.send()}function g(t,e,r,n=f){let o=w(n);if(o.open("post",t,!0),o.onreadystatechange=function(){S(this,e,n)},p)for(let i in p)o.setRequestHeader(i,p[i]);o.send(r)}function v(t,e,r,n=f){h("get",t,e,r,n)}function y(t,e,r,n=f){h("delete",t,e,r,n)}function b(t,e,r,n=f){m("post",t,e,r,n)}function _(t,e,r,n=f){m("put",t,e,r,n)}function w(t){let e=new XMLHttpRequest;return t&&t.timeout&&(e.timeout=t.timeout,e.ontimeout=t=>console.error("系统异常,XHR 连接服务超时")),t&&t.withCredentials&&(e.withCredentials=!0),e}function x(t){let e;e=t.status<=400?"请求参数错误或者权限不足。":t.status<=500?"服务端异常。":`未知异常,HTTP code:${t.status}。`,t.responseText||(e+=" 服务端返回空的字符串!"),console.error(e,t.responseText)}function S(t,e,r){if(4==t.readyState)if(t.status>=200&&t.status<300||304==t.status){let o,i=t.responseText;switch(i||console.warn("服务端没有返回任何字符串"),r.parseContentType){case"text":break;case"xml":o=t.responseXML;break;case"json":default:try{o=JSON.parse(i)}catch(n){console.error("解析 JSON 时候发生错误,非法 JSON"),console.warn(n)}}e&&e(o,i)}else x(t)}function E(t){let e="";for(let r in t)"function"!=typeof t[r]&&(e+="&"+r+"="+encodeURIComponent(t[r]));return e.substring(1)}function O(t){const e=location.hash.indexOf("?"),r=location.hash.substring(e+1);let n=r.split("&");for(let o=0;o<n.length;o++){const e=n[o].split("=");if(e[0]==t)return e[1]}return""}function R(t,e,r){return n=>{n.status?(e.total=n.total,e.data=n.data,r&&r()):t.$Message.warning(n.message||"获取数据失败")}}var T=Object.freeze({__proto__:null,getPageList:R,getQuery:O,setBaseHeadParams:d,toParams:E,xhr_del:y,xhr_get:v,xhr_post:b,xhr_post_upload:g,xhr_put:_})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t].call(i.exports,i,i.exports,n),i.exports}!function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){"use strict";if(n.r(o),n.d(o,{default:function(){return p}}),"undefined"!==typeof window){var t=window.document.currentScript,e=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);e&&(n.p=e[1])}var r=n(6326),i=(n(4979),n(4603),n(7566),n(8721),n(681)),s={getLoginInfo(t,e){const r=a("token",!1);let n=localStorage.getItem("accessToken");if(!n&&!r){console.log("你未登录!");const r=`${t}?web_url=${encodeURIComponent(e)}`;return void(confirm("你未登录。是否跳转到登录页面?")&&location.assign(r))}if(r){n=decodeURIComponent(r),localStorage.setItem("accessToken",n);const t=new URL(location.href),e=new URLSearchParams(t.search);e.delete("token"),t.search=e.toString(),location.assign(t.href)}i.TF.setBaseHeadParams({Authorization:"Bearer "+n});const o=n.split("."),s=JSON.parse(atob(o[1]));return s}};function a(t,e){const r=(e?parent.location:window.location).search.substring(1),n=r.split("&");for(let o=0;o<n.length;o++){const e=n[o].split("=");if(e[0]==t)return e[1]}return null}const c=n(9887),u={};c.keys().forEach((t=>{if("./App.vue"!=t){const e=c(t).default||c(t);e.extendOptions&&(u[e.extendOptions.name]=e)}}));const l=t=>{if(l.installed)return l.installed;c.keys().forEach((e=>{if("./App.vue"!=e){const r=c(e).default||c(e);r.extendOptions&&r.extendOptions.name&&t.component(r.extendOptions.name,r)}})),t.directive("focus",{inserted:function(t){t.focus()}})};"undefined"!==typeof window&&window.Vue&&l(window.Vue);var f={install:l,List:r.A,IAM:s,...u},p=f}(),o}()}));
2
2
  //# sourceMappingURL=ui.umd.min.js.map