bmp-layout 0.0.17 → 0.0.18

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.
package/bmp-layout.es.js CHANGED
@@ -1110,7 +1110,7 @@ const usePermissionStore = defineStore("layout-permission", {
1110
1110
  const children = findRouter.children || [];
1111
1111
  const parentPath = findRouter.path ? findRouter.path.startsWith("/") ? findRouter.path : `/${findRouter.path}` : "";
1112
1112
  this.moduleRouters = children.map((child) => {
1113
- const childPath = child.path ? child.path.startsWith("/") ? child.path : `/${child.path}` : "";
1113
+ const childPath = child.path ? parentPath.endsWith("/") ? child.path.startsWith("/") ? child.path.substring(1) : child.path : child.path.startsWith("/") ? child.path : `/${child.path}` : "";
1114
1114
  return { ...child, path: `${parentPath}${childPath}` };
1115
1115
  });
1116
1116
  }
package/bmp-layout.umd.js CHANGED
@@ -4,7 +4,7 @@
4
4
  Version 1.1.1
5
5
  https://github.com/WQTeam/web-storage-cache
6
6
  (c) 2013-2016 WQTeam, MIT license
7
- */f.exports=function(){function e(e,t){for(var r in t)e[r]=t[r];return e}function t(e){var t=!1;if(e&&e.setItem){t=!0;var r="__"+Math.round(1e7*Math.random());try{e.setItem(r,r),e.removeItem(r)}catch(o){t=!1}}return t}function r(e){return"string"==typeof e&&window[e]instanceof Storage?window[e]:e}function o(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function n(e,t){if(t=t||new Date,"number"==typeof e?e=e===1/0?d:new Date(t.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!o(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e}function i(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}function l(e,t){this.c=(new Date).getTime();var r=n(t=t||f);this.e=r.getTime(),this.v=e}function a(e){return"object"==typeof e&&!!(e&&"c"in e&&"e"in e&&"v"in e)}function s(e){return(new Date).getTime()<e.e}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(n){var i=e({storage:"localStorage",exp:1/0},n),l=i.exp;if(l&&"number"!=typeof l&&!o(l))throw new Error("Constructor `exp` parameter cannot be converted to a valid Date instance");f=l;var a=r(i.storage),s=t(a);this.isSupported=function(){return s},s?(this.storage=a,this.quotaExceedHandler=function(e,t,r){if(r&&!0===r.force){this.deleteAllExpires();try{r.force=!1,this.set(e,t,r)}catch(o){}}}):e(this,m)}var d=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),f=d,p={serialize:function(e){return JSON.stringify(e)},deserialize:function(e){return e&&JSON.parse(e)}},m={set:function(){},get:function(){},delete:function(){},deleteAllExpires:function(){},clear:function(){},add:function(){},replace:function(){},touch:function(){}},h={set:function(t,r,o){if(t=c(t),"number"==typeof o&&(o={exp:o}),o=e({force:!0},o),void 0===r)return this.delete(t);var n=p.serialize(r),a=new l(n,o.exp);try{this.storage.setItem(t,p.serialize(a))}catch(s){i(s)&&this.quotaExceedHandler(t,n,o,s)}return r},get:function(e){e=c(e);var t=null;try{t=p.deserialize(this.storage.getItem(e))}catch(o){return null}if(a(t)){if(s(t)){var r=t.v;return p.deserialize(r)}this.delete(e)}return null},delete:function(e){return e=c(e),this.storage.removeItem(e),e},deleteAllExpires:function(){for(var e=this.storage.length,t=[],r=this,o=0;e>o;o++){var n=this.storage.key(o),i=null;try{i=p.deserialize(this.storage.getItem(n))}catch(l){}null!==i&&void 0!==i.e&&(new Date).getTime()>=i.e&&t.push(n)}return t.forEach((function(e){r.delete(e)})),t},clear:function(){this.storage.clear()},add:function(t,r,o){t=c(t),"number"==typeof o&&(o={exp:o}),o=e({force:!0},o);try{var n=p.deserialize(this.storage.getItem(t));if(!a(n)||!s(n))return this.set(t,r,o),!0}catch(i){return this.set(t,r,o),!0}return!1},replace:function(e,t,r){e=c(e);var o=null;try{o=p.deserialize(this.storage.getItem(e))}catch(n){return!1}if(a(o)){if(s(o))return this.set(e,t,r),!0;this.delete(e)}return!1},touch:function(e,t){e=c(e);var r=null;try{r=p.deserialize(this.storage.getItem(e))}catch(o){return!1}if(a(r)){if(s(r))return this.set(e,this.get(e),{exp:t}),!0;this.delete(e)}return!1}};return u.prototype=h,u}();const p=d(f.exports),m="roleRouters",h="user",g="visitTenantId",v="lang",y="theme",b="layout",C=(e="localStorage")=>({wsCache:new p({storage:e})}),B={elColorDanger:"#f50000",elBorderColor:"#d2d5e4",elMenuItemHeight:"40px",elMenuSubItemHeight:"40px",elMenuLevelPadding:"14px",elMenuBaseLevelPadding:"22px",elMenuIconWidth:"16px",elButtonDefaultBgColor:"#fff",elButtonDefaultHoverBgColor:"#fff",elButtonDefaultActiveBgColor:"#fff",elButtonDefaultDisabledBgColor:"rgba(0, 0, 0, 0.04)",elButtonDefaultDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDefaultDisabledBorderColor:"#d9d9d9",elButtonLinkDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDangerBgColor:"#ff4d4f",elButtonDangerTextColor:"#fff",elButtonDangerBorderColor:"#ff4d4f",elButtonDangerHoverBgColor:"#ff7875",elButtonDangerHoverTextColor:"#fff",elButtonDangerHoverBorderColor:"#ff7875",elButtonDangerActiveBgColor:"#d9363e",elButtonDangerActiveTextColor:"#fff",elButtonDangerActiveBorderColor:"#d9363e",elButtonDangerLinkTextColor:"#ff4d4f",elButtonDangerLinkHoverTextColor:"#ff7875",elButtonDangerLinkActiveTextColor:"#d9363e",elUploadBgColor:"#f6f7fc",elUploadIconColor:"#d2d5e4",elUploadTextColor:"#b9bdcd",elUploadTipColor:"#9fa3b9",elDropdownMenuItemHoverTextColor:"#333",elTableHeaderColumnBgColor:"#eeeff4",elTableDefaultBorderColor:"#e5e5e5",elTableStripedBgColor:"#f7f8fd",elPaginationButtonBorderColor:"#eeeff4",elTagPrimaryBgColor:"#e6f4ff",elTagPrimaryTextColor:"#1677FF",elTagSuccessBgColor:"#f6ffed",elTagSuccessTextColor:"#52c41a",elTagDangerBgColor:"#fff1f0",elTagDangerTextColor:"#ff4d4f",elTagWarningBgColor:"#fffbe6",elTagWarningTextColor:"#ffaa00",elTagInfoBgColor:"rgba(0, 0, 0, 0.02)",elTagInfoTextColor:"rgba(0, 0, 0, 0.88)",elMessageSuccessBorderColor:"#d9f7be",elMessageWarningBorderColor:"#fff1b8",elMessageErrorBorderColor:"#ffccc7",elDialogBorderColor:"#eeeff4",elAlertSuccessBorderColor:"rgba(82,196,26,0.6)",elAlertSuccessBgColor:"#f6ffed",elAlertInfoBorderColor:"rgba(0, 0, 0, 0.12)",elAlertInfoBgColor:"rgba(0, 0, 0, 0.02)",elAlertWarningBorderColor:"#ffe58f",elAlertWarningBgColor:"#fffbe6",elAlertErrorBorderColor:"#ffccc7",elAlertErrorBgColor:"#fff1f0"},E={whiteLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"#fff",leftMenuItemBgActiveColor:"rgba(36,104,242,1)",leftMenuItemBgHoverColor:"rgba(36,104,242,0.8)",leftMenuTextColor:"#333",topMenuItemBgActiveColor:"rgba(36,104,242,1)",topMenuItemBgHoverColor:"rgba(36,104,242,0.8)",topHeaderBgColor:"#fff",topHeaderTextColor:"#6b778e",menuTriggerBgColor:"#2468F2"},blueLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"0, #2897FB 0%, #1B61EE 100%",leftMenuItemBgActiveColor:"rgba(103,153,255,1)",leftMenuItemBgHoverColor:"rgba(103,153,255,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(103,153,255,1)",topMenuItemBgHoverColor:"rgba(103,153,255,0.5)",topHeaderBgColor:"270deg, #29ACFE 0%, #2468F2 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},redLight:{...B,elColorPrimary:"#ea4636",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#d23f30",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#bb382b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#ea4636",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#ea4636",elButtonPrimaryHoverBgColor:"#d23f30",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#d23f30",elButtonPrimaryActiveBgColor:"#bb382b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#bb382b",elButtonPrimaryLinkTextColor:"#ea4636",elButtonPrimaryLinkHoverTextColor:"#d23f30",elButtonPrimaryLinkActiveTextColor:"#bb382b",elDropdownMenuItemHoverBgColor:"#ffebeb",elTableColumnHoverBgColor:"#ffebeb",elTreeItemHoverBgColor:"#ffebeb",bgColor:"#ffebeb",leftMenuBgColor:"0, #cf271c, #cf271c",leftMenuItemBgActiveColor:"rgba(221, 98, 90, 1)",leftMenuItemBgHoverColor:"rgba(221, 98, 90, 0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(244, 101, 85, 1)",topMenuItemBgHoverColor:"rgba(244, 101, 85, 0.5)",topHeaderBgColor:"0, #ea4636, #ea4636",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},greenLight:{...B,elColorPrimary:"#0acfa5",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#09ba94",elButtonDefaultHoverBorderColor:"#09ba94",elButtonDefaultActiveTextColor:"#08a684",elButtonDefaultActiveBorderColor:"#08a684",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#0acfa5",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#0acfa5",elButtonPrimaryHoverBgColor:"#09ba94",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#09ba94",elButtonPrimaryActiveBgColor:"#08a684",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#08a684",elButtonPrimaryLinkTextColor:"#0acfa5",elButtonPrimaryLinkHoverTextColor:"#09ba94",elButtonPrimaryLinkActiveTextColor:"#08a684",elDropdownMenuItemHoverBgColor:"#e4f6f2",elTableColumnHoverBgColor:"#e4f6f2",elTreeItemHoverBgColor:"#e4f6f2",bgColor:"#e4f6f2",leftMenuBgColor:"0, #01b18b, #01b18b",leftMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",leftMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",topMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",topHeaderBgColor:"0, #0acfa5, #0acfa5",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},springFestival:{...B,elColorPrimary:"#e42b22",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#cd271f",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#b6221b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#e42b22",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#e42b22",elButtonPrimaryHoverBgColor:"#cd271f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#cd271f",elButtonPrimaryActiveBgColor:"#b6221b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#b6221b",elButtonPrimaryLinkTextColor:"#e42b22",elButtonPrimaryLinkHoverTextColor:"#cd271f",elButtonPrimaryLinkActiveTextColor:"#b6221b",elDropdownMenuItemHoverBgColor:"#fee2e2",elTableColumnHoverBgColor:"#fee2e2",elTreeItemHoverBgColor:"#fee2e2",bgColor:"#fee2e2",leftMenuBgColor:"0, #f53a19 0%, #bf241f 100%",leftMenuItemBgActiveColor:"rgba(255,95,83,1)",leftMenuItemBgHoverColor:"rgba(255,95,83,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,95,83,1)",topMenuItemBgHoverColor:"rgba(255,95,83,0.5)",topHeaderBgColor:"270deg, #f25416 0%, #ef2704 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},dragonBoatFestival:{...B,elColorPrimary:"#1ebc74",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#1ba968",elButtonDefaultHoverBorderColor:"#1ba968",elButtonDefaultActiveTextColor:"#18965d",elButtonDefaultActiveBorderColor:"#18965d",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#1ebc74",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#1ebc74",elButtonPrimaryHoverBgColor:"#1ba968",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#1ba968",elButtonPrimaryActiveBgColor:"#18965d",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#18965d",elButtonPrimaryLinkTextColor:"#1ebc74",elButtonPrimaryLinkHoverTextColor:"#1ba968",elButtonPrimaryLinkActiveTextColor:"#18965d",elDropdownMenuItemHoverBgColor:"#d3f4e6",elTableColumnHoverBgColor:"#d3f4e6",elTreeItemHoverBgColor:"#d3f4e6",bgColor:"#d3f4e6",leftMenuBgColor:"0, #3ac777 0%, #1baa59 100%",leftMenuItemBgActiveColor:"rgba(129,207,161,1)",leftMenuItemBgHoverColor:"rgba(129,207,161,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(93,215,135,1)",topMenuItemBgHoverColor:"rgba(93,215,135,0.5)",topHeaderBgColor:"270deg, #3ac677 0%, #0dc35c 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},midAutumnFestival:{...B,elColorPrimary:"#fc8522",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#e2771f",elButtonDefaultHoverBorderColor:"#e2771f",elButtonDefaultActiveTextColor:"#ca6a1b",elButtonDefaultActiveBorderColor:"#ca6a1b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#fc8522",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#fc8522",elButtonPrimaryHoverBgColor:"#e2771f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#e2771f",elButtonPrimaryActiveBgColor:"#ca6a1b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#ca6a1b",elButtonPrimaryLinkTextColor:"#fc8522",elButtonPrimaryLinkHoverTextColor:"#e2771f",elButtonPrimaryLinkActiveTextColor:"#ca6a1b",elDropdownMenuItemHoverBgColor:"#ffe6d2",elTableColumnHoverBgColor:"#ffe6d2",elTreeItemHoverBgColor:"#ffe6d2",bgColor:"#ffe6d2",leftMenuBgColor:"0, #fc9b4b 0%, #ed6715 100%",leftMenuItemBgActiveColor:"rgba(255,176,129,1)",leftMenuItemBgHoverColor:"rgba(255,176,129,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,180,75,1)",topMenuItemBgHoverColor:"rgba(255,180,75,0.5)",topHeaderBgColor:"270deg, #fc9b4b 0%, #fa771d 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},newYearsDay:{...B,elColorPrimary:"#f63344",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#dd2e3d",elButtonDefaultHoverBorderColor:"#dd2e3d",elButtonDefaultActiveTextColor:"#c52936",elButtonDefaultActiveBorderColor:"#c52936",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#f63344",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#f63344",elButtonPrimaryHoverBgColor:"#dd2e3d",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#dd2e3d",elButtonPrimaryActiveBgColor:"#c52936",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#c52936",elButtonPrimaryLinkTextColor:"#f63344",elButtonPrimaryLinkHoverTextColor:"#dd2e3d",elButtonPrimaryLinkActiveTextColor:"#c52936",elDropdownMenuItemHoverBgColor:"#fed8dc",elTableColumnHoverBgColor:"#fed8dc",elTreeItemHoverBgColor:"#fed8dc",bgColor:"#fed8dc",leftMenuBgColor:"0, #f83d4d 0%, #dc2035 100%",leftMenuItemBgActiveColor:"rgba(255,78,96,1)",leftMenuItemBgHoverColor:"rgba(255,78,96,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,78,96,1)",topMenuItemBgHoverColor:"rgba(255,78,96,0.5)",topHeaderBgColor:"270deg, #f84958 0%, #f63344 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"}},{wsCache:x}=C(),S=r.defineStore("layout-app",{state:()=>({userInfo:"userInfo",sizeMap:["default","large","small"],title:"业务中台",pageLoading:!1,breadcrumb:!1,breadcrumbIcon:!0,collapse:!1,uniqueOpened:!0,hamburger:!0,search:!1,locale:!1,setting:!0,message:!0,logo:!0,footer:!1,greyMode:!1,layout:x.get(b)||"left",currentSize:x.get("default")||"default",theme:x.get(y)||"whiteLight",isSetTheme:!1}),getters:{getBreadcrumb(){return this.breadcrumb},getBreadcrumbIcon(){return this.breadcrumbIcon},getCollapse(){return this.collapse},getUniqueOpened(){return this.uniqueOpened},getHamburger(){return this.hamburger},getLocale(){return this.locale},getSetting(){return this.setting},getMessage(){return this.message},getLogo(){return this.logo},getGreyMode(){return this.greyMode},getPageLoading(){return this.pageLoading},getLayout(){return this.layout},getTitle(){return this.title},getUserInfo(){return this.userInfo},getCurrentSize(){return this.currentSize},getSizeMap(){return this.sizeMap},getTheme(){return this.theme},getCurrentTheme(){return E[this.theme]},getFooter(){return this.footer},getIsSetTheme(){return this.isSetTheme}},actions:{setBreadcrumb(e){this.breadcrumb=e},setBreadcrumbIcon(e){this.breadcrumbIcon=e},setCollapse(e){this.collapse=e},setUniqueOpened(e){this.uniqueOpened=e},setHamburger(e){this.hamburger=e},setLocale(e){this.locale=e},setMessage(e){this.message=e},setLogo(e){this.logo=e},setGreyMode(e){this.greyMode=e},setPageLoading(e){this.pageLoading=e},setLayout(e){this.layout=e,x.set(b,this.layout)},setTitle(e){this.title=e},setCurrentSize(e){this.currentSize=e,x.set("currentSize",this.currentSize)},setTheme(e){this.theme=e,x.set(y,e)},setCssVarTheme(){this.isSetTheme=!0;const e=E[this.theme];for(const r in e)u(`--${t=r,t.replace(/([A-Z])/g,"-$1").toLowerCase()}`,e[r]);var t},setFooter(e){this.footer=e},async setUserTheme(){}},persist:!1}),w={namespace:"v",elNamespace:"el"},T=()=>{const e=w;return{variables:e,getPrefixCls:t=>`${e.namespace}-${t}`}},A=Object.assign({name:"BackTop"},{__name:"Backtop",setup(e){const{getPrefixCls:r,variables:o}=T(),n=r("backtop");return(e,r)=>(t.openBlock(),t.createBlock(t.unref(i.ElBacktop),{class:t.normalizeClass(`${t.unref(n)}-backtop`),target:`.${t.unref(o).namespace}-layout-content-scrollbar .${t.unref(o).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),k=Object.prototype.toString,I=(e,t)=>k.call(e)===`[object ${t}]`,P=e=>I(e,"String"),N=!("undefined"==typeof window),D=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%#\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),M=(e,t)=>{if(D(t))return t;return`${e}${t.startsWith("/")||!t?t:`/${t}`}`.replace(/\/\//g,"/")},V=e=>{var t,r;if(!e||!Reflect.has(e,"children")||!(null==(t=e.children)?void 0:t.length))return!1;const o=e.children;let n=!1;for(let i=0;i<o.length;i++){if(null==(r=o[i].children)?void 0:r.length){n=!0;break}}return n},R=e=>{var t;let r=l.createRouter({routes:[e],history:l.createWebHashHistory()});const o=r.getRoutes();F(o,e.children||[],e),r=null,e.children=null==(t=e.children)?void 0:t.map((e=>n.omit(e,"children")))},F=(e,t,r)=>{var o,n;for(let i=0;i<t.length;i++){const l=t[i],a=e.find((e=>e.name===l.name));a&&(r.children=r.children||[],r.children.find((e=>e.name===a.name))||null==(o=r.children)||o.push(a),(null==(n=l.children)?void 0:n.length)&&F(e,l.children,r))}},{wsCache:L}=C(),j=r.defineStore("layout-permission",{state:()=>({routers:[],addRouters:[],menuTabRouters:[],leftMenuRouters:[],moduleRouters:[],moduleId:void 0}),getters:{getRouters(){return this.routers},getRouterMap(){return this.addRouters},getAddRouters(){return(e=>{const t=n.cloneDeep(e);for(let r=0;r<t.length;r++){const e=t[r];V(e)&&R(e)}return t})(n.cloneDeep(this.addRouters))},getMenuTabRouters(){return this.menuTabRouters},getLeftMenuRouters(){return this.leftMenuRouters},getRoleRouters:()=>L.get(m)||[],getModuleRouters(){return this.moduleRouters},getModuleId(){return this.moduleId}},actions:{setRouters(e){this.routers=e},setAddRouters(e){this.addRouters=e},setMenuTabRouters(e){this.menuTabRouters=e},setLeftMenuRouters(e="",r=[]){const o=e?e.startsWith("/")?e:`/${e}`:"",n=r.map((e=>{const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${o}${t}`}}));this.leftMenuRouters=[],t.nextTick((()=>{this.leftMenuRouters=n}))},setModuleRouters(e){this.moduleId=e;const t=this.getRoleRouters.find((t=>t.id===e));if(t){const e=t.children||[],r=t.path?t.path.startsWith("/")?t.path:`/${t.path}`:"";this.moduleRouters=e.map((e=>{const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${r}${t}`}}))}}},persist:!1}),O=()=>j(c),U={id:"id",children:"children",pid:"pid"},H=e=>Object.assign({},U,e),Q=(e=[],r)=>{const o=t.ref(),n=e.filter((e=>!(e.meta??{}).hidden&&(o.value=e,!0)));return 1===n.length?{oneShowingChild:!0,onlyOneChild:t.unref(o)}:n.length?{oneShowingChild:!1,onlyOneChild:t.unref(o)}:(o.value={...r,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:t.unref(o)})},K=(e,t)=>{const r=O(),o=r.getRouters.find((t=>t.path==e));if(o){const n=o.meta??{},{oneShowingChild:i,onlyOneChild:l}=Q(o.children,o);if(!i||(null==l?void 0:l.children)&&!(null==l?void 0:l.noShowingChildren)||(null==n?void 0:n.alwaysShow)){r.setLeftMenuRouters(o.path,o.children);const e=q(o.path,o.children);t&&t(e)}else r.setLeftMenuRouters(),t&&t(e)}},q=(e,t)=>{const r=t.find((e=>!1!==e.meta));return r?r.children&&r.children.length>0?q(`${e}/${r.path}`,r.children):`${e}/${r.path}`:e},J=Object.freeze({left:0,top:0,width:16,height:16}),z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Y=Object.freeze({...J,...z}),G=Object.freeze({...Y,body:"",hidden:!1});function X(e,t){const r=function(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(r.rotate=o),r}(e,t);for(const o in G)o in z?o in e&&!(o in r)&&(r[o]=z[o]):o in t?r[o]=t[o]:o in e&&(r[o]=e[o]);return r}function W(e,t,r){const o=e.icons,n=e.aliases||Object.create(null);let i={};function l(e){i=X(o[e]||n[e],i)}return l(t),r.forEach(l),X(e,i)}function Z(e,t){const r=[];if("object"!=typeof e||"object"!=typeof e.icons)return r;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),r.push(e)}));const o=function(e){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return Object.keys(t).concat(Object.keys(r)).forEach((function e(n){if(t[n])return o[n]=[];if(!(n in o)){o[n]=null;const t=r[n]&&r[n].parent,i=t&&e(t);i&&(o[n]=[t].concat(i))}return o[n]})),o}(e);for(const n in o){const i=o[n];i&&(t(n,W(e,n,i)),r.push(n))}return r}const _=/^[a-z0-9]+(-[a-z0-9]+)*$/,$=(e,t,r,o="")=>{const n=e.split(":");if("@"===e.slice(0,1)){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const e=n.pop(),r=n.pop(),i={provider:n.length>0?n[0]:o,prefix:r,name:e};return t&&!ee(i)?null:i}const i=n[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!ee(e)?null:e}if(r&&""===o){const e={provider:o,prefix:"",name:i};return t&&!ee(e,r)?null:e}return null},ee=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(_)||!(t&&""===e.prefix||e.prefix.match(_))||!e.name.match(_)),te={provider:"",aliases:{},not_found:{},...J};function re(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}const oe=Object.create(null);function ne(e,t){const r=oe[e]||(oe[e]=Object.create(null));return r[t]||(r[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ie(e,t){return function(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!re(e,te))return null;const r=t.icons;for(const n in r){const e=r[n];if(!n.match(_)||"string"!=typeof e.body||!re(e,G))return null}const o=t.aliases||Object.create(null);for(const n in o){const e=o[n],t=e.parent;if(!n.match(_)||"string"!=typeof t||!r[t]&&!o[t]||!re(e,G))return null}return t}(t)?Z(t,((t,r)=>{r?e.icons[t]=r:e.missing.add(t)})):[]}let le=!1;function ae(e){const t="string"==typeof e?$(e,!0,le):e;if(t){const e=ne(t.provider,t.prefix),r=t.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}function se(e,t){if("object"!=typeof e)return!1;"string"!=typeof t&&(t=e.provider||"");const r=e.prefix;if(!ee({provider:t,prefix:r,name:"a"}))return!1;return!!ie(ne(t,r),e)}const ce=Object.freeze({width:null,height:null}),ue=Object.freeze({...ce,...z}),de=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;const o=e.split(de);if(null===o||!o.length)return e;const n=[];let i=o.shift(),l=fe.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?n.push(i):n.push(Math.ceil(e*t*r)/r)}else n.push(i);if(i=o.shift(),void 0===i)return n.join("");l=!l}}function me(e,t){const r={...Y,...e},o={...ue,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,o].forEach((e=>{const t=[],r=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(r?o?a+=2:(t.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),t.push("scale(-1 1)"),n.top=n.left=0):o&&(t.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),t.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=n.height/2+n.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:l=n.width/2+n.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(n.left!==n.top&&(l=n.left,n.left=n.top,n.top=l),n.width!==n.height&&(l=n.width,n.width=n.height,n.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=n.width,c=n.height;let u,d;null===l?(d=null===a?"1em":"auto"===a?c:a,u=pe(d,s/c)):(u="auto"===l?s:l,d=null===a?pe(u,c/s):"auto"===a?c:a);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",u),p("height",d),f.viewBox=n.left.toString()+" "+n.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:i}}const he=/\sid="(\S+)"/g,ge="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let ve=0;function ye(e,t=ge){const r=[];let o;for(;o=he.exec(e);)r.push(o[1]);if(!r.length)return e;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((r=>{const o="function"==typeof t?t(r):t+(ve++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")})),e=e.replace(new RegExp(n,"g"),"")}const be={local:!0,session:!0},Ce={local:new Set,session:new Set};let Be=!1;const Ee="iconify2",xe="iconify",Se=xe+"-count",we=xe+"-version",Te=36e5;function Ae(e,t){try{return e.getItem(t)}catch(r){}}function ke(e,t,r){try{return e.setItem(t,r),!0}catch(o){}}function Ie(e,t){try{e.removeItem(t)}catch(r){}}function Pe(e,t){return ke(e,Se,t.toString())}function Ne(e){return parseInt(Ae(e,Se))||0}let De="undefined"==typeof window?{}:window;function Me(e){const t=e+"Storage";try{if(De&&De[t]&&"number"==typeof De[t].length)return De[t]}catch(r){}be[e]=!1}function Ve(e,t){const r=Me(e);if(!r)return;const o=Ae(r,we);if(o!==Ee){if(o){const e=Ne(r);for(let t=0;t<e;t++)Ie(r,xe+t.toString())}return ke(r,we,Ee),void Pe(r,0)}const n=Math.floor(Date.now()/Te)-168,i=e=>{const o=xe+e.toString(),i=Ae(r,o);if("string"==typeof i){try{const r=JSON.parse(i);if("object"==typeof r&&"number"==typeof r.cached&&r.cached>n&&"string"==typeof r.provider&&"object"==typeof r.data&&"string"==typeof r.data.prefix&&t(r,e))return!0}catch(l){}Ie(r,o)}};let l=Ne(r);for(let a=l-1;a>=0;a--)i(a)||(a===l-1?(l--,Pe(r,l)):Ce[e].add(a))}function Re(){if(!Be){Be=!0;for(const e in be)Ve(e,(e=>{const t=e.data,r=ne(e.provider,t.prefix);if(!ie(r,t).length)return!1;const o=t.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0}))}}function Fe(e,t){switch(e){case"local":case"session":be[e]=t;break;case"all":for(const e in be)be[e]=t}}const Le=Object.create(null);function je(e,t){Le[e]=t}function Oe(e){return Le[e]||Le[""]}function Ue(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const He=Object.create(null),Qe=["https://api.simplesvg.com","https://api.unisvg.com"],Ke=[];for(;Qe.length>0;)1===Qe.length||Math.random()>.5?Ke.push(Qe.shift()):Ke.push(Qe.pop());function qe(e,t){const r=Ue(t);return null!==r&&(He[e]=r,!0)}function Je(e){return He[e]}He[""]=Ue({resources:["https://api.iconify.design"].concat(Ke)});let ze=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const Ye={prepare:(e,t,r)=>{const o=[],n=function(e,t){const r=Je(e);if(!r)return 0;let o;if(r.maxURL){let e=0;r.resources.forEach((t=>{const r=t;e=Math.max(e,r.length)}));const n=t+".json?icons=";o=r.maxURL-e-r.path.length-n.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return r.forEach(((r,s)=>{a+=r.length+1,a>=n&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=r.length),l.icons.push(r)})),o.push(l),o},send:(e,t,r)=>{if(!ze)return void r("abort",424);let o=function(e){if("string"==typeof e){const t=Je(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,r=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:r}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void r("abort",400)}let n=503;ze(e+o).then((e=>{const t=e.status;if(200===t)return n=501,e.json();setTimeout((()=>{r(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{r("success",e)})):setTimeout((()=>{404===e?r("abort",e):r("next",n)}))})).catch((()=>{r("next",n)}))}};function Ge(e,t){e.forEach((e=>{const r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter((e=>e.id!==t)))}))}let Xe=0;var We={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ze(e,t,r,o){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,c="pending",u=0,d=null,f=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function h(){"pending"===c&&(c="aborted"),m(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==c)return;m();const o=l.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{m(),"pending"===c&&(y(),v())}),e.timeout)):void v();const n={status:"pending",resource:o,callback:(t,r)=>{!function(t,r,o){const n="success"!==r;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(n||!e.dataAfterTimeout)return;break;default:return}if("abort"===r)return s=o,void v();if(n)return s=o,void(f.length||(l.length?b():v()));if(m(),y(),!e.random){const r=e.resources.indexOf(t.resource);-1!==r&&r!==e.index&&(e.index=r)}c="completed",p.forEach((e=>{e(o)}))}(n,t,r)}};f.push(n),u++,d=setTimeout(b,e.rotate),r(o,t,n.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:g,abort:h}}}function _e(e){const t={...We,...e};let r=[];function o(){r=r.filter((e=>"pending"===e().status))}return{query:function(e,n,i){const l=Ze(t,e,n,((e,t)=>{o(),i&&i(e,t)}));return r.push(l),l},find:function(e){return r.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function $e(){}const et=Object.create(null);function tt(e,t,r){let o,n;if("string"==typeof e){const t=Oe(e);if(!t)return r(void 0,424),$e;n=t.send;const i=function(e){if(!et[e]){const t=Je(e);if(!t)return;const r={config:t,redundancy:_e(t)};et[e]=r}return et[e]}(e);i&&(o=i.redundancy)}else{const t=Ue(e);if(t){o=_e(t);const r=Oe(e.resources?e.resources[0]:"");r&&(n=r.send)}}return o&&n?o.query(t,n,r)().abort:(r(void 0,424),$e)}function rt(e,t){function r(r){let o;if(!be[r]||!(o=Me(r)))return;const n=Ce[r];let i;if(n.size)n.delete(i=Array.from(n).shift());else if(i=Ne(o),!Pe(o,i+1))return;const l={cached:Math.floor(Date.now()/Te),provider:e.provider,data:t};return ke(o,xe+i.toString(),JSON.stringify(l))}Be||Re(),t.lastModified&&!function(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const o in be)Ve(o,(r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,r("local")||r("session"))}function ot(){}function nt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const o=e.provider,n=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==n)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:n,name:l});else{if(!e.missing.has(l))return r=!0,!0;i.missing.push({provider:o,prefix:n,name:l})}return!1})),i.pending.length!==l&&(r||Ge([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const it=(e,t)=>{const r=function(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const n=e.provider,i=e.prefix,l=e.name,a=r[n]||(r[n]=Object.create(null)),s=a[i]||(a[i]=ne(n,i));let c;c=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const u={provider:n,prefix:i,name:l};c.push(u)})),t}(function(e,t=!0,r=!1){const o=[];return e.forEach((e=>{const n="string"==typeof e?$(e,t,r):e;n&&o.push(n)})),o}(e,!0,le));if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,ot)})),()=>{e=!1}}const o=Object.create(null),n=[];let i,l;return r.pending.forEach((e=>{const{provider:t,prefix:r}=e;if(r===l&&t===i)return;i=t,l=r,n.push(ne(t,r));const a=o[t]||(o[t]=Object.create(null));a[r]||(a[r]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:r,name:n}=e,i=ne(t,r),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(n)||(l.add(n),o[t][r].push(n))})),n.forEach((e=>{const{provider:t,prefix:r}=e;o[t][r].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;let n;delete e.iconsToLoad,o&&(n=Oe(t))&&n.prepare(t,r,o).forEach((r=>{tt(t,r,(t=>{if("object"!=typeof t)r.icons.forEach((t=>{e.missing.add(t)}));else try{const r=ie(e,t);if(!r.length)return;const o=e.pendingIcons;o&&r.forEach((e=>{o.delete(e)})),rt(e,t)}catch(o){}nt(e)}))}))})))}(e,o[t][r])})),t?function(e,t,r){const o=Xe++,n=Ge.bind(null,r,o);if(!t.pending.length)return n;const i={id:o,icons:t,callback:e,abort:n};return r.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),n}(t,r,n):ot};function lt(e,t){const r={...e};for(const o in t){const e=t[o],n=typeof e;o in ce?(null===e||e&&("string"===n||"number"===n))&&(r[o]=e):n===typeof r[o]&&(r[o]="rotate"===o?e%4:e)}return r}const at={...ue,inline:!1},st="iconify",ct="iconify-inline",ut="iconifyData"+Date.now();let dt=[];function ft(e){for(let t=0;t<dt.length;t++){const r=dt[t];if(("function"==typeof r.node?r.node():r.node)===e)return r}}function pt(e,t=!1){let r=ft(e);return r?(r.temporary&&(r.temporary=t),r):(r={node:e,temporary:t},dt.push(r),r)}function mt(){return dt}let ht=null;const gt={childList:!0,subtree:!0,attributes:!0};function vt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,ht&&ht(e)})))}function yt(e,t){if(!e.observer)return;const r=e.observer;if(!r.pendingScan)for(let o=0;o<t.length;o++){const n=t[o];if(n.addedNodes&&n.addedNodes.length>0||"attributes"===n.type&&void 0!==n.target[ut])return void(r.paused||vt(e))}}function bt(e,t){e.observer.instance.observe(t,gt)}function Ct(e){let t=e.observer;if(t&&t.instance)return;const r="function"==typeof e.node?e.node():e.node;r&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(yt.bind(null,e)),bt(e,r),t.paused||vt(e))}function Bt(){mt().forEach(Ct)}function Et(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function xt(e){const t=null!==ht;ht!==e&&(ht=e,t&&mt().forEach(Et)),t?Bt():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Bt)}function St(e){(e?[e]:mt()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function wt(e){(e?[e]:mt()).forEach((e=>{if(!e.observer)return void Ct(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const r="function"==typeof e.node?e.node():e.node;if(!r)return;t.instance?bt(e,r):Ct(e)}}))}function Tt(e,t=!1){const r=pt(e,t);return Ct(r),r}function At(e){const t=ft(e);t&&(Et(t),function(e){dt=dt.filter((t=>e!==t&&e!==("function"==typeof t.node?t.node():t.node)))}(e))}const kt=/[\s,]+/;const It=["width","height"],Pt=["inline","hFlip","vFlip"];function Nt(e){const t=e.getAttribute("data-icon"),r="string"==typeof t&&$(t,!0);if(!r)return null;const o={...at,inline:e.classList&&e.classList.contains(ct)};It.forEach((t=>{const r=e.getAttribute("data-"+t);r&&(o[t]=r)}));const n=e.getAttribute("data-rotate");"string"==typeof n&&(o.rotate=function(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===r){const t=parseInt(e);return isNaN(t)?0:o(t)}if(r!==e){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let n=parseFloat(e.slice(0,e.length-r.length));return isNaN(n)?0:(n/=t,n%1==0?o(n):0)}}return t}(n));const i=e.getAttribute("data-flip");"string"==typeof i&&function(e,t){t.split(kt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(o,i),Pt.forEach((t=>{const r="data-"+t,n=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(r),r);"boolean"==typeof n&&(o[t]=n)}));const l=e.getAttribute("data-mode");return{name:t,icon:r,customisations:o,mode:l}}const Dt="svg."+st+", i."+st+", span."+st+", i."+ct+", span."+ct;function Mt(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)r+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}let Vt;function Rt(e){return void 0===Vt&&function(){try{Vt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Vt=null}}(),Vt?Vt.createHTML(e):e}function Ft(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((r=>{e[r]&&t.add("iconify--"+e[r])})),t}function Lt(e,t,r,o){const n=e.classList;if(o){const e=o.classList;Array.from(e).forEach((e=>{n.add(e)}))}const i=[];return t.forEach((e=>{n.contains(e)?r.has(e)&&i.push(e):(n.add(e),i.push(e))})),r.forEach((e=>{t.has(e)||n.remove(e)})),i}function jt(e,t,r){const o=e.style;(r||[]).forEach((e=>{o.removeProperty(e)}));const n=[];for(const i in t)o.getPropertyValue(i)||(n.push(i),o.setProperty(i,t[i]));return n}function Ot(e,t,r){let o;try{o=document.createElement("span")}catch(p){return e}const n=t.customisations,i=me(r,n),l=e[ut],a=Mt(ye(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=Rt(a);const s=o.childNodes[0],c=e.attributes;for(let m=0;m<c.length;m++){const e=c.item(m),t=e.name;"class"===t||s.hasAttribute(t)||s.setAttribute(t,e.value)}const u=Lt(s,Ft(t.icon),new Set(l&&l.addedClasses),e),d=jt(s,n.inline?{"vertical-align":"-0.125em"}:{},l&&l.addedStyles),f={...t,status:"loaded",addedClasses:u,addedStyles:d};return s[ut]=f,e.parentNode&&e.parentNode.replaceChild(s,e),s}const Ut={display:"inline-block"},Ht={"background-color":"currentColor"},Qt={"background-color":"transparent"},Kt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qt={"-webkit-mask":Ht,mask:Ht,background:Qt};for(const Hi in qt){const e=qt[Hi];for(const t in Kt)e[Hi+"-"+t]=Kt[t]}function Jt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let zt=!1;function Yt(){zt||(zt=!0,setTimeout((()=>{zt&&(zt=!1,Gt())})))}function Gt(e,t=!1){const r=Object.create(null);function o(e,t){const{provider:o,prefix:n,name:i}=e,l=ne(o,n),a=l.icons[i];if(a)return{status:"loaded",icon:a};if(l.missing.has(i))return{status:"missing"};if(t&&!(e=>{const t=ne(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))})(e)){const e=r[o]||(r[o]=Object.create(null));(e[n]||(e[n]=new Set)).add(i)}return{status:"loading"}}(e?[e]:mt()).forEach((e=>{const r="function"==typeof e.node?e.node():e.node;if(!r||!r.querySelectorAll)return;let n=!1,i=!1;function l(t,r,o){if(i||(i=!0,St(e)),"SVG"!==t.tagName.toUpperCase()){const e=r.mode,n="mask"===e||"bg"!==e&&("style"===e?-1!==o.body.indexOf("currentColor"):null);if("boolean"==typeof n)return void function(e,t,r,o){const n=t.customisations,i=me(r,n),l=i.attributes,a=e[ut],s=Mt(i.body,{...l,width:r.width+"",height:r.height+""}),c=Lt(e,Ft(t.icon),new Set(a&&a.addedClasses)),u={"--svg":'url("'+(d=s,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(d)+'")'),width:Jt(l.width),height:Jt(l.height),...Ut,...o?Ht:Qt};var d;n.inline&&(u["vertical-align"]="-0.125em");const f=jt(e,u,a&&a.addedStyles),p={...t,status:"loaded",addedClasses:c,addedStyles:f};e[ut]=p}(t,r,{...Y,...o},n)}Ot(t,r,o)}(function(e){const t=[];return e.querySelectorAll(Dt).forEach((e=>{const r=e[ut]||"svg"!==e.tagName.toLowerCase()?Nt(e):null;r&&t.push({node:e,props:r})})),t})(r).forEach((({node:e,props:t})=>{const r=e[ut];if(!r){const{status:r,icon:i}=o(t.icon,!0);return i?void l(e,t,i):(n=n||"loading"===r,void(e[ut]={...t,status:r}))}let i;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const r=e.customisations,o=t.customisations;for(const n in at)if(r[n]!==o[n])return!0;return!1}(r,t)){if(i=o(t.icon,r.name!==t.name),!i.icon)return n=n||"loading"===i.status,void Object.assign(r,{...t,status:i.status})}else{if("loading"!==r.status)return;if(i=o(t.icon,!1),!i.icon)return void(r.status=i.status)}l(e,t,i.icon)})),e.temporary&&!n?At(r):t&&n?Tt(r,!0):i&&e.observer&&wt(e)}));for(const n in r){const e=r[n];for(const t in e){const r=e[t];it(Array.from(r).map((e=>({provider:n,prefix:t,name:e}))),Yt)}}}function Xt(e,t,r=!1){const o=ae(e);if(!o)return null;const n=$(e),i=lt(at,t||{}),l=Ot(document.createElement("span"),{name:e,icon:n,customisations:i},o);return r?l.outerHTML:l}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return pt(document.documentElement);dt.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload;"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{"object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||se(e)}catch(t){}}))}setTimeout((()=>{xt(Gt),Gt()}))}if(je("",Ye),"undefined"!=typeof document&&"undefined"!=typeof window){Re();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(const e in t){try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;qe(e,r)}catch(Oi){}}}}const Wt={_api:{getAPIConfig:Je,setAPIModule:je,sendAPIQuery:tt,setFetch:function(e){ze=e},getFetch:function(){return ze},listAPIProviders:function(){return Object.keys(He)}},addAPIProvider:qe,loadIcons:it,loadIcon:e=>new Promise(((t,r)=>{const o="string"==typeof e?$(e,!0):e;o?it([o||e],(n=>{if(n.length&&o){const e=ae(o);if(e)return void t({...Y,...e})}r(e)})):r(e)})),iconExists:function(e){return!!ae(e)},getIcon:function(e){const t=ae(e);return t?{...Y,...t}:null},listIcons:function(e,t){let r=[];return("string"==typeof e?[e]:Object.keys(oe)).forEach((e=>{("string"==typeof e&&"string"==typeof t?[t]:Object.keys(oe[e]||{})).forEach((t=>{const o=ne(e,t);r=r.concat(Object.keys(o.icons).map((r=>(""!==e?"@"+e+":":"")+t+":"+r)))}))})),r},addIcon:function(e,t){const r=$(e,!0,le);return!!r&&function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]={...r},!0}catch(o){}return!1}(ne(r.provider,r.prefix),r.name,t)},addCollection:se,replaceIDs:ye,calculateSize:pe,buildIcon:me,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return Xt(e,t,!1)},renderHTML:function(e,t){return Xt(e,t,!0)},renderIcon:function(e,t){const r=ae(e);return r?me(r,lt(at,t||{})):null},scan:function(e){e?function(e){const t=ft(e);t?Gt(t):Gt({node:e,temporary:!0},!0)}(e):Gt()},observe:Tt,stopObserving:At,pauseObserver:function(e){if(e){const t=ft(e);t&&St(t)}else St()},resumeObserver:function(e){if(e){const t=ft(e);t&&wt(t)}else wt()},enableCache:function(e,t){Fe(e,!1!==t)},disableCache:function(e){Fe(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=Wt)}catch(Ui){}const Zt=["xlink:href"],_t=["data-icon"],$t=Object.assign({name:"Icon"},{__name:"Icon",props:{icon:String,color:String,size:{type:Number,default:16},svgClass:{type:String,default:""}},setup(e){const{getPrefixCls:r}=T(),o=r("icon"),n=e,l=t.ref(null),a=t.computed((()=>{var e;return null==(e=n.icon)?void 0:e.startsWith("svg-icon:")})),s=t.computed((()=>t.unref(a)?`#icon-${n.icon.split("svg-icon:")[1]}`:n.icon)),c=t.computed((()=>{const{color:e,size:t}=n;return{fontSize:`${t}px`,height:"1em",color:e}})),u=t.computed((()=>{const{svgClass:e}=n;return`iconify ${e}`}));return t.watch((()=>n.icon),(e=>{(async e=>{if(t.unref(a))return;const r=t.unref(l);if(!r)return;if(await t.nextTick(),!e)return;const o=Wt.renderSVG(e,{});if(o)r.textContent="",r.appendChild(o);else{const t=document.createElement("span");t.className="iconify",t.dataset.icon=e,r.textContent="",r.appendChild(t)}})(e)})),(r,n)=>(t.openBlock(),t.createBlock(t.unref(i.ElIcon),{class:t.normalizeClass(t.unref(o)),color:e.color,size:e.size},{default:t.withCtx((()=>[t.unref(a)?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(t.unref(u))},[t.createElementVNode("use",{"xlink:href":t.unref(s)},null,8,Zt)],2)):(t.openBlock(),t.createElementBlock("span",{key:1,ref_key:"elRef",ref:l,class:t.normalizeClass(r.$attrs.class),style:t.normalizeStyle(t.unref(c))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(u)),"data-icon":t.unref(s)},null,10,_t)],6))])),_:1},8,["class","color","size"]))}}),er=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r};let tr=null;const rr=(e,t)=>e?t.startsWith(e)?t:`${e}.${t}`:t,or=e=>{if(!tr)return{t:t=>rr(e,t)};const{t:t,...r}=tr.global;return{...r,t:(r,...o)=>r?r.includes(".")||e?t(rr(e,r),...o):r:""}},{getPrefixCls:nr}=T(),ir=nr("menu"),{renderMenuTitle:lr}=(()=>{const e=S(),r=t.computed((()=>e.getLayout));return{renderMenuTitle:(e,o,n)=>{const{t:i}=or(),{title:l="Please set title",icon:a}=e,s=t.computed((()=>{switch(r.value){case"left":return 0==o;case"top":return!1;case"topLeft":return"vertical"==n&&0==o}}));return t.createVNode(t.Fragment,null,[s.value&&a?t.createVNode($t,{icon:e.icon},null):void 0,t.createVNode("span",{class:[`${ir}__title`,"overflow-hidden overflow-ellipsis whitespace-nowrap text-ellipsis"]},[i(l)])])}}})();const{getPrefixCls:ar}=T(),sr=ar("menu"),cr=er(t.defineComponent({name:"Menu",props:{menuSelect:{type:Function,default:void 0},mode:{type:String,default:"vertical"}},setup(e){const r=S(),o=t.computed((()=>r.getLayout)),{push:n,currentRoute:a}=l.useRouter(),s=j(),c=t.computed((()=>{switch(t.unref(o)){case"left":return"vertical";case"top":return"horizontal";case"topLeft":return e.mode}})),u=t.computed((()=>"topLeft"==o.value&&"vertical"==e.mode?s.getLeftMenuRouters:s.getRouters)),d=t.computed((()=>r.getCollapse)),f=t.computed((()=>r.getUniqueOpened)),p=t.computed((()=>{const{meta:e,path:r}=t.unref(a);return e.activeMenu?e.activeMenu:r})),m=t=>{e.menuSelect&&e.menuSelect(t),D(t)?window.open(t):"topLeft"==o.value&&"horizontal"==e.mode?K(t,n):n(t)},h=()=>{if("top"===t.unref(o))return g();{let r;return t.createVNode(i.ElScrollbar,null,"function"==typeof(e=r=g())||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?r:{default:()=>[r]})}var e},g=()=>t.createVNode(i.ElMenu,{defaultActive:t.unref(p),mode:t.unref(c),collapse:"top"!==t.unref(o)&&("topLeft"!==t.unref(o)||"horizontal"!==e.mode)&&t.unref(d),uniqueOpened:"top"!==t.unref(o)&&t.unref(f),backgroundColor:"transparent",textColor:"var(--left-menu-text-color)",activeTextColor:"var(--left-menu-text-active-color)",popperClass:"vertical"===t.unref(c)?`${sr}-popper--vertical`:`${sr}-popper--horizontal`,onSelect:m},{default:()=>{const{renderMenuItem:r}=(()=>{const e=S(),r=t.computed((()=>e.getLayout)),o=(e,n,a="/",s=0)=>{const c=l.useRoute();return e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>{const l=e.meta??{},{oneShowingChild:u,onlyOneChild:d}=Q(e.children,e),f=D(e.path)?e.path:M(a,e.path);if(!u||(null==d?void 0:d.children)&&!(null==d?void 0:d.noShowingChildren)||(null==l?void 0:l.alwaysShow)){if("topLeft"==r.value&&"horizontal"==n){const e=c.path.includes(f);return e&&K(f),t.createVNode(i.ElMenuItem,{index:f,class:e?"is-active":""},{default:()=>lr(l,l,n)})}return t.createVNode(i.ElSubMenu,{index:f},{title:()=>lr(l,s,n),default:()=>o(e.children,n,f,s+1)})}return t.createVNode(i.ElMenuItem,{index:d?M(f,d.path):f},{default:()=>lr(d?null==d?void 0:d.meta:l,s,n)})}))};return{renderMenuItem:o}})();return r(u.value,e.mode)}});return()=>t.createVNode("div",{id:sr,class:[`${sr} ${sr}__${t.unref(c)}`,"h-[100%] overflow-hidden flex-col",{"w-[var(--left-menu-min-width)]":t.unref(d),"w-[var(--left-menu-max-width)]":!t.unref(d),"bg-[linear-gradient(var(--left-menu-bg-color))]":"left"==t.unref(o)||"topLeft"==t.unref(o)&&"vertical"==e.mode}]},[h()])}}),[["__scopeId","data-v-f85f5936"]]),ur=er(Object.assign({name:"MenuTrigger"},{__name:"MenuTrigger",props:{active:{type:Boolean,default:!1}},emits:["click","toggle"],setup(e,{emit:r}){const{getPrefixCls:o}=T(),n=o("menu-trigger"),i=e,l=r,a=()=>{l("click"),l("toggle",!i.active)};return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(n),"flex items-center justify-center cursor-pointer",{"is-active":i.active}]),onClick:a},[t.createElementVNode("div",{class:t.normalizeClass(`${t.unref(n)}__hamburger-icon`)},r[0]||(r[0]=[t.createElementVNode("span",{class:"line"},null,-1),t.createElementVNode("span",{class:"line"},null,-1),t.createElementVNode("span",{class:"line"},null,-1)]),2)],2))}}),[["__scopeId","data-v-08d82a5c"]]),dr={class:"sidebar-inner"},fr=["onClick"],pr=["onClick"],mr=["onClick"],hr=er(Object.assign({name:"ProductServicePanel"},{__name:"ProductServicePanel",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","select"],setup(e,{emit:r}){const{getPrefixCls:o}=T(),n=o("product-service-panel"),{t:a}=or("layout"),s=e,c=r,u=l.useRouter(),d=j(),f=t.ref(""),p=t.ref(0),m=t.computed((()=>d.getRoleRouters)),h=t.computed((()=>{const e=f.value.toLowerCase().trim(),t=e=>e&&Array.isArray(e)?e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>({...e,children:e.children?t(e.children):[]}))):[],r=t(m.value);if(!e)return r;const o=t=>t.reduce(((t,r)=>{var n;const i=((null==(n=r.meta)?void 0:n.title)||"").toLowerCase().includes(e),l=r.children?o(r.children):[];return(i||l.length>0)&&t.push({...r,children:l.length>0?l:r.children}),t}),[]);return o(r)})),g=t.computed((()=>h.value.map((e=>{var t,r;return{id:e.id,title:(null==(t=e.meta)?void 0:t.title)||e.name,icon:null==(r=e.meta)?void 0:r.icon,path:e.path,children:(e.children||[]).filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)}))}})))),v=t.computed((()=>{if(0===g.value.length)return[];const e=g.value[p.value];return(null==e?void 0:e.children)||[]})),y=(e,t="")=>{const r=t?`${t}/${e.path}`:e.path;if(e.children&&e.children.length>0){const t=e.children.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)}));if(t.length>0)return y(t[0],r)}return r},b=()=>{c("update:visible",!1),f.value="",p.value=0},C=(e,t="")=>{var r;const o=y(e,t);if(o){const e=d.getModuleId;if((null==(r=g.value[p.value])?void 0:r.id)===e)u.push(o.startsWith("/")?o:`/${o}`);else{const e=`${window.location.origin}${o.startsWith("/")?o:`/${o}`}`;window.location.href=e}b()}};return t.watch((()=>s.visible),(e=>{e&&(f.value="",p.value=0)})),(r,o)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(n)+"__overlay"]),onClick:b},[t.createVNode(t.Transition,{name:"slide-down"},{default:t.withCtx((()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(n)]),onClick:o[1]||(o[1]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__body"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__sidebar"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__sidebar-title"])},[t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.allProducts")),1)],2),t.createVNode(t.unref(i.ElScrollbar),null,{default:t.withCtx((()=>[t.createElementVNode("div",dr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,((e,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,class:t.normalizeClass([t.unref(n)+"__category",{"is-active":p.value===r}]),onClick:e=>(e=>{p.value=e})(r)},[t.createElementVNode("span",null,t.toDisplayString(e.title),1)],10,fr)))),128))])])),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__content"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__header"])},[t.createVNode(t.unref(i.ElInput),{modelValue:f.value,"onUpdate:modelValue":o[0]||(o[0]=e=>f.value=e),placeholder:t.unref(a)("common.searchMenu"),clearable:"",size:"default"},{prefix:t.withCtx((()=>[t.createVNode(t.unref($t),{icon:"ep:search",size:16})])),_:1},8,["modelValue","placeholder"]),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__close"]),onClick:b},[t.createVNode(t.unref($t),{icon:"ep:close",size:18})],2)],2),t.createVNode(t.unref(i.ElScrollbar),null,{default:t.withCtx((()=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__grid-container"])},[v.value.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(v.value,((e,r)=>{var o,i;return t.openBlock(),t.createElementBlock("div",{key:r,class:t.normalizeClass([t.unref(n)+"__column"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-title"])},[t.createElementVNode("span",null,t.toDisplayString((null==(o=e.meta)?void 0:o.title)||e.name),1)],2),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-list"])},[e.children&&e.children.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.children.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})),(r=>{var o;return t.openBlock(),t.createElementBlock("div",{key:r.path,class:t.normalizeClass([t.unref(n)+"__column-item"]),onClick:t=>{var o;return C(r,`${null==(o=g.value[p.value])?void 0:o.path}/${e.path}`)}},[t.createElementVNode("span",null,t.toDisplayString((null==(o=r.meta)?void 0:o.title)||r.name),1)],10,pr)})),128)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([t.unref(n)+"__column-item",{[t.unref(n)+"__column-item--disabled"]:1===e.type}]),onClick:t=>{var r;return 2===e.type&&C(e,null==(r=g.value[p.value])?void 0:r.path)}},[t.createElementVNode("span",null,t.toDisplayString(1===e.type?t.unref(a)("common.noData")||"暂无":(null==(i=e.meta)?void 0:i.title)||e.name),1)],10,mr))],2)],2)})),128)):g.value[p.value]?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([t.unref(n)+"__column"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-list"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-item",t.unref(n)+"__column-item--disabled"])},[t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.noData")||"暂无"),1)],2)],2)],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([t.unref(n)+"__empty"])},[t.createVNode(t.unref($t),{icon:"ant-design:inbox-outlined",size:48}),t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.noDataTitle")),1)],2))],2)])),_:1})],2)],2)],2)):t.createCommentVNode("",!0)])),_:1})],2)):t.createCommentVNode("",!0)])),_:1})]))}}),[["__scopeId","data-v-b7114eec"]]),gr=Object.assign({name:"Logo"},{__name:"Logo",setup(e){const{getPrefixCls:r}=T(),o=r("logo"),n=S(),i=t.computed((()=>n.getTitle)),l=t.computed((()=>n.getLayout)),a=t.computed((()=>n.getTheme)),s=t.ref(!1),c=e=>{s.value=e},u=t.computed((()=>"whiteLight"===a.value?"var(--el-color-primary)":"#fff"));return(e,r)=>{const n=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass([t.unref(o),`${t.unref(o)}__Top`,"flex !h-[var(--top-tool-height)] items-center cursor-default relative decoration-none overflow-hidden"])},[t.createVNode(t.unref(ur),{class:"mr-12px",active:s.value,onToggle:c},null,8,["active"]),t.createVNode(n,{icon:"svg-icon:logo",color:u.value,svgClass:"!w-full !h-full",class:t.normalizeClass(["!w-[var(--logo-height)]","!h-[var(--logo-height)]"])},null,8,["color"]),t.createElementVNode("div",{class:t.normalizeClass(["ml-10px text-16px font-700",{"text-[var(--top-header-text-color)]":["left","top","topLeft"].includes(l.value)}]),style:t.normalizeStyle({color:u.value})},t.toDisplayString(i.value),7)],2),t.createVNode(t.unref(hr),{visible:s.value,"onUpdate:visible":r[0]||(r[0]=e=>s.value=e)},null,8,["visible"])])}}}),vr={class:"w-full min-w-1000px"},yr=Object.assign({name:"AppView"},{__name:"AppView",setup(e){const r=t.ref(!0);return t.provide("reload",(()=>{r.value=!1,t.nextTick((()=>r.value=!0))})),(e,o)=>{const n=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("section",vr,[t.unref(r)?(t.openBlock(),t.createBlock(n,{key:0},{default:t.withCtx((({Component:e,route:r})=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e),{key:r.fullPath}))])),_:1})):t.createCommentVNode("",!0)])}}});function br(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function Cr(e,t){return e&t}function Br(e,t){return e|t}function Er(e,t){return e^t}function xr(e,t){return e&~t}function Sr(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function wr(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Tr,Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function kr(e){var t,r,o="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),o+=Ar.charAt(r>>6)+Ar.charAt(63&r);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),o+=Ar.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),o+=Ar.charAt(r>>2)+Ar.charAt((3&r)<<4));(3&o.length)>0;)o+="=";return o}var Ir,Pr=function(e){var t;if(void 0===Tr){var r="0123456789ABCDEF",o=" \f\n\r\t \u2028\u2029";for(Tr={},t=0;t<16;++t)Tr[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Tr[r.charAt(t)]=t;for(t=0;t<8;++t)Tr[o.charAt(t)]=-1}var n=[],i=0,l=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=Tr[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++l>=2?(n[n.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return n},Nr={decode:function(e){var t;if(void 0===Ir){var r="= \f\n\r\t \u2028\u2029";for(Ir=Object.create(null),t=0;t<64;++t)Ir["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(Ir["-"]=62,Ir._=63,t=0;t<9;++t)Ir[r.charAt(t)]=-1}var o=[],n=0,i=0;for(t=0;t<e.length;++t){var l=e.charAt(t);if("="==l)break;if(-1!=(l=Ir[l])){if(void 0===l)throw new Error("Illegal character at offset "+t);n|=l,++i>=4?(o[o.length]=n>>16,o[o.length]=n>>8&255,o[o.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=n>>10;break;case 3:o[o.length]=n>>16,o[o.length]=n>>8&255}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Nr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Nr.decode(e)}},Dr=1e13,Mr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var r,o,n=this.buf,i=n.length;for(r=0;r<i;++r)(o=n[r]*e+t)<Dr?t=0:o-=(t=0|o/Dr)*Dr,n[r]=o;t>0&&(n[r]=t)},e.prototype.sub=function(e){var t,r,o=this.buf,n=o.length;for(t=0;t<n;++t)(r=o[t]-e)<0?(r+=Dr,e=1):e=0,o[t]=r;for(;0===o[o.length-1];)o.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),o=t.length-2;o>=0;--o)r+=(Dr+t[o]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var e=this.buf,t=0,r=e.length-1;r>=0;--r)t=t*Dr+e[r];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Vr=/^(\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)?)?$/,Rr=/^(\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 Fr(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var Lr,jr=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,r){for(var o="",n=e;n<t;++n)if(o+=this.hexByte(this.get(n)),!0!==r)switch(15&n){case 7:o+=" ";break;case 15:o+="\n";break;default:o+=" "}return o},e.prototype.isASCII=function(e,t){for(var r=e;r<t;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var r="",o=e;o<t;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(e,t){for(var r="",o=e;o<t;){var n=this.get(o++);r+=n<128?String.fromCharCode(n):n>191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(o++)):String.fromCharCode((15&n)<<12|(63&this.get(o++))<<6|63&this.get(o++))}return r},e.prototype.parseStringBMP=function(e,t){for(var r,o,n="",i=e;i<t;)r=this.get(i++),o=this.get(i++),n+=String.fromCharCode(r<<8|o);return n},e.prototype.parseTime=function(e,t,r){var o=this.parseStringISO(e,t),n=(r?Vr:Rr).exec(o);return n?(r&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),o=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(o+=":"+n[5],n[6]&&(o+=":"+n[6],n[7]&&(o+="."+n[7]))),n[8]&&(o+=" UTC","Z"!=n[8]&&(o+=n[8],n[9]&&(o+=":"+n[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(e,t){for(var r,o=this.get(e),n=o>127,i=n?255:0,l="";o==i&&++e<t;)o=this.get(e);if(0===(r=t-e))return n?-1:0;if(r>4){for(l=o,r<<=3;!(128&(+l^i));)l=+l<<1,--r;l="("+r+" bit)\n"}n&&(o-=256);for(var a=new Mr(o),s=e+1;s<t;++s)a.mulAdd(256,this.get(s));return l+a.toString()},e.prototype.parseBitString=function(e,t,r){for(var o=this.get(e),n="("+((t-e-1<<3)-o)+" bit)\n",i="",l=e+1;l<t;++l){for(var a=this.get(l),s=l==t-1?o:0,c=7;c>=s;--c)i+=a>>c&1?"1":"0";if(i.length>r)return n+Fr(i,r)}return n+i},e.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return Fr(this.parseStringISO(e,t),r);var o=t-e,n="("+o+" byte)\n";o>(r/=2)&&(t=e+r);for(var i=e;i<t;++i)n+=this.hexByte(this.get(i));return o>r&&(n+="…"),n},e.prototype.parseOID=function(e,t,r){for(var o="",n=new Mr,i=0,l=e;l<t;++l){var a=this.get(l);if(n.mulAdd(128,127&a),i+=7,!(128&a)){if(""===o)if((n=n.simplify())instanceof Mr)n.sub(80),o="2."+n.toString();else{var s=n<80?n<40?0:1:2;o=s+"."+(n-40*s)}else o+="."+n.toString();if(o.length>r)return Fr(o,r);n=new Mr,i=0}}return i>0&&(o+=".incomplete"),o},e}(),Or=function(){function e(e,t,r,o,n){if(!(o instanceof Ur))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=o,this.sub=n}return e.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()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);case 6:return this.stream.parseOID(t,t+r,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Fr(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return Fr(this.stream.parseStringISO(t,t+r),e);case 30:return Fr(this.stream.parseStringBMP(t,t+r),e);case 23:case 24:return this.stream.parseTime(t,t+r,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var r=0,o=this.sub.length;r<o;++r)t+=this.sub[r].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),r=127&t;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===r)return null;t=0;for(var o=0;o<r;++o)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,r=2*this.length;return e.substr(t,r)},e.decode=function(t){var r;r=t instanceof jr?t:new jr(t,0);var o=new jr(r),n=new Ur(r),i=e.decodeLength(r),l=r.pos,a=l-o.pos,s=null,c=function(){var t=[];if(null!==i){for(var o=l+i;r.pos<o;)t[t.length]=e.decode(r);if(r.pos!=o)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var n=e.decode(r);if(n.tag.isEOC())break;t[t.length]=n}i=l-r.pos}catch(Oi){throw new Error("Exception while decoding undefined length content: "+Oi)}return t};if(n.tagConstructed)s=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var u=0;u<s.length;++u)if(s[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(Oi){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+l);r.pos=l+Math.abs(i)}return new e(o,a,i,n,s)},e}(),Ur=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var r=new Mr;do{t=e.get(),r.mulAdd(128,127&t)}while(128&t);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Hr=[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],Qr=(1<<26)/Hr[Hr.length-1],Kr=function(){function e(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,o=(1<<t)-1,n=!1,i="",l=this.t,a=this.DB-l*this.DB%t;if(l-- >0)for(a<this.DB&&(r=this[l]>>a)>0&&(n=!0,i=br(r));l>=0;)a<t?(r=(this[l]&(1<<a)-1)<<t-a,r|=this[--l]>>(a+=this.DB-t)):(r=this[l]>>(a-=t)&o,a<=0&&(a+=this.DB,--l)),r>0&&(n=!0),n&&(i+=br(r));return n?i:"0"},e.prototype.negate=function(){var t=Gr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ro(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Gr();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new Jr(t):new zr(t),this.exp(e,r)},e.prototype.clone=function(){var e=Gr();return this.copyTo(e),e},e.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]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r,o=this.DB-e*this.DB%8,n=0;if(e-- >0)for(o<this.DB&&(r=this[e]>>o)!=(this.s&this.DM)>>o&&(t[n++]=r|this.s<<this.DB-o);e>=0;)o<8?(r=(this[e]&(1<<o)-1)<<8-o,r|=this[--e]>>(o+=this.DB-8)):(r=this[e]>>(o-=8)&255,o<=0&&(o+=this.DB,--e)),128&r&&(r|=-256),0==n&&(128&this.s)!=(128&r)&&++n,(n>0||r!=this.s)&&(t[n++]=r);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Gr();return this.bitwiseTo(e,Cr,t),t},e.prototype.or=function(e){var t=Gr();return this.bitwiseTo(e,Br,t),t},e.prototype.xor=function(e){var t=Gr();return this.bitwiseTo(e,Er,t),t},e.prototype.andNot=function(e){var t=Gr();return this.bitwiseTo(e,xr,t),t},e.prototype.not=function(){for(var e=Gr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Gr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Gr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Sr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=wr(this[r]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Br)},e.prototype.clearBit=function(e){return this.changeBit(e,xr)},e.prototype.flipBit=function(e){return this.changeBit(e,Er)},e.prototype.add=function(e){var t=Gr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Gr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Gr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Gr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Gr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Gr(),r=Gr();return this.divRemTo(e,t,r),[t,r]},e.prototype.modPow=function(e,t){var r,o,n=e.bitLength(),i=to(1);if(n<=0)return i;r=n<18?1:n<48?3:n<144?4:n<768?5:6,o=n<8?new Jr(t):t.isEven()?new Yr(t):new zr(t);var l=[],a=3,s=r-1,c=(1<<r)-1;if(l[1]=o.convert(this),r>1){var u=Gr();for(o.sqrTo(l[1],u);a<=c;)l[a]=Gr(),o.mulTo(u,l[a-2],l[a]),a+=2}var d,f,p=e.t-1,m=!0,h=Gr();for(n=ro(e[p])-1;p>=0;){for(n>=s?d=e[p]>>n-s&c:(d=(e[p]&(1<<n+1)-1)<<s-n,p>0&&(d|=e[p-1]>>this.DB+n-s)),a=r;!(1&d);)d>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),m)l[d].copyTo(i),m=!1;else{for(;a>1;)o.sqrTo(i,h),o.sqrTo(h,i),a-=2;a>0?o.sqrTo(i,h):(f=i,i=h,h=f),o.mulTo(h,l[d],i)}for(;p>=0&&!(e[p]&1<<n);)o.sqrTo(i,h),f=i,i=h,h=f,--n<0&&(n=this.DB-1,--p)}return o.revert(i)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||0==t.signum())return e.ZERO;for(var o=t.clone(),n=this.clone(),i=to(1),l=to(0),a=to(0),s=to(1);0!=o.signum();){for(;o.isEven();)o.rShiftTo(1,o),r?(i.isEven()&&l.isEven()||(i.addTo(this,i),l.subTo(t,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);for(;n.isEven();)n.rShiftTo(1,n),r?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);o.compareTo(n)>=0?(o.subTo(n,o),r&&i.subTo(a,i),l.subTo(s,l)):(n.subTo(o,n),r&&a.subTo(i,a),s.subTo(l,s))}return 0!=n.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new qr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var o=t;t=r,r=o}var n=t.getLowestSetBit(),i=r.getLowestSetBit();if(i<0)return t;for(n<i&&(i=n),i>0&&(t.rShiftTo(i,t),r.rShiftTo(i,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r},e.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=Hr[Hr.length-1]){for(t=0;t<Hr.length;++t)if(r[0]==Hr[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Hr.length;){for(var o=Hr[t],n=t+1;n<Hr.length&&o<Qr;)o*=Hr[n++];for(o=r.modInt(o);t<n;)if(o%Hr[t++]==0)return!1}return r.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,r){var o;if(16==r)o=4;else if(8==r)o=3;else if(256==r)o=8;else if(2==r)o=1;else if(32==r)o=5;else{if(4!=r)return void this.fromRadix(t,r);o=2}this.t=0,this.s=0;for(var n=t.length,i=!1,l=0;--n>=0;){var a=8==o?255&+t[n]:eo(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==l?this[this.t++]=a:l+o>this.DB?(this[this.t-1]|=(a&(1<<this.DB-l)-1)<<l,this[this.t++]=a>>this.DB-l):this[this.t-1]|=a<<l,(l+=o)>=this.DB&&(l-=this.DB))}8==o&&128&+t[0]&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,o=this.DB-r,n=(1<<o)-1,i=Math.floor(e/this.DB),l=this.s<<r&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>o|l,l=(this[a]&n)<<r;for(a=i-1;a>=0;--a)t[a]=0;t[i]=l,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var o=e%this.DB,n=this.DB-o,i=(1<<o)-1;t[0]=this[r]>>o;for(var l=r+1;l<this.t;++l)t[l-r-1]|=(this[l]&i)<<n,t[l-r]=this[l]>>o;o>0&&(t[this.t-r-1]|=(this.s&i)<<n),t.t=this.t-r,t.clamp()}},e.prototype.subTo=function(e,t){for(var r=0,o=0,n=Math.min(e.t,this.t);r<n;)o+=this[r]-e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o-=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o-=e[r],t[r++]=o&this.DM,o>>=this.DB;o-=e.s}t.s=o<0?-1:0,o<-1?t[r++]=this.DV+o:o>0&&(t[r++]=o),t.t=r,t.clamp()},e.prototype.multiplyTo=function(t,r){var o=this.abs(),n=t.abs(),i=o.t;for(r.t=i+n.t;--i>=0;)r[i]=0;for(i=0;i<n.t;++i)r[i+o.t]=o.am(0,n[i],r,i,0,o.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var o=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,o,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,r,o){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=r&&r.fromInt(0),void(null!=o&&this.copyTo(o));null==o&&(o=Gr());var l=Gr(),a=this.s,s=t.s,c=this.DB-ro(n[n.t-1]);c>0?(n.lShiftTo(c,l),i.lShiftTo(c,o)):(n.copyTo(l),i.copyTo(o));var u=l.t,d=l[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?l[u-2]>>this.F2:0),p=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,g=o.t,v=g-u,y=null==r?Gr():r;for(l.dlShiftTo(v,y),o.compareTo(y)>=0&&(o[o.t++]=1,o.subTo(y,o)),e.ONE.dlShiftTo(u,y),y.subTo(l,l);l.t<u;)l[l.t++]=0;for(;--v>=0;){var b=o[--g]==d?this.DM:Math.floor(o[g]*p+(o[g-1]+h)*m);if((o[g]+=l.am(0,b,o,v,0,u))<b)for(l.dlShiftTo(v,y),o.subTo(y,o);o[g]<--b;)o.subTo(y,o)}null!=r&&(o.drShiftTo(u,r),a!=s&&e.ZERO.subTo(r,r)),o.t=u,o.clamp(),c>0&&o.rShiftTo(c,o),a<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var o=Gr(),n=Gr(),i=r.convert(this),l=ro(t)-1;for(i.copyTo(o);--l>=0;)if(r.sqrTo(o,n),(t&1<<l)>0)r.mulTo(n,i,o);else{var a=o;o=n,n=a}return r.revert(o)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),o=to(r),n=Gr(),i=Gr(),l="";for(this.divRemTo(o,n,i);n.signum()>0;)l=(r+i.intValue()).toString(e).substr(1)+l,n.divRemTo(o,n,i);return i.intValue().toString(e)+l},e.prototype.fromRadix=function(t,r){this.fromInt(0),null==r&&(r=10);for(var o=this.chunkSize(r),n=Math.pow(r,o),i=!1,l=0,a=0,s=0;s<t.length;++s){var c=eo(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(a=r*a+c,++l>=o&&(this.dMultiply(n),this.dAddOffset(a,0),l=0,a=0))}l>0&&(this.dMultiply(Math.pow(r,l)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,o){if("number"==typeof r)if(t<2)this.fromInt(1);else for(this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Br,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var n=[],i=7&t;n.length=1+(t>>3),r.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},e.prototype.bitwiseTo=function(e,t,r){var o,n,i=Math.min(e.t,this.t);for(o=0;o<i;++o)r[o]=t(this[o],e[o]);if(e.t<this.t){for(n=e.s&this.DM,o=i;o<this.t;++o)r[o]=t(this[o],n);r.t=this.t}else{for(n=this.s&this.DM,o=i;o<e.t;++o)r[o]=t(n,e[o]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},e.prototype.changeBit=function(t,r){var o=e.ONE.shiftLeft(t);return this.bitwiseTo(o,r,o),o},e.prototype.addTo=function(e,t){for(var r=0,o=0,n=Math.min(e.t,this.t);r<n;)o+=this[r]+e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o+=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o+=e[r],t[r++]=o&this.DM,o>>=this.DB;o+=e.s}t.s=o<0?-1:0,o>0?t[r++]=o:o<-1&&(t[r++]=this.DV+o),t.t=r,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,r){var o=Math.min(this.t+e.t,t);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var n=r.t-this.t;o<n;++o)r[o+this.t]=this.am(0,e[o],r,o,0,this.t);for(n=Math.min(e.t,t);o<n;++o)this.am(0,e[o],r,o,0,t-o);r.clamp()},e.prototype.multiplyUpperTo=function(e,t,r){--t;var o=r.t=this.t+e.t-t;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(t-this.t,0);o<e.t;++o)r[this.t+o-t]=this.am(t-o,e[o],r,0,0,this.t+o-t);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var o=this.t-1;o>=0;--o)r=(t*r+this[o])%e;return r},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),o=r.getLowestSetBit();if(o<=0)return!1;var n=r.shiftRight(o);(t=t+1>>1)>Hr.length&&(t=Hr.length);for(var i=Gr(),l=0;l<t;++l){i.fromInt(Hr[Math.floor(Math.random()*Hr.length)]);var a=i.modPow(n,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(r)){for(var s=1;s++<o&&0!=a.compareTo(r);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(r))return!1}}return!0},e.prototype.square=function(){var e=Gr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),o=e.s<0?e.negate():e.clone();if(r.compareTo(o)<0){var n=r;r=o,o=n}var i=r.getLowestSetBit(),l=o.getLowestSetBit();if(l<0)t(r);else{i<l&&(l=i),l>0&&(r.rShiftTo(l,r),o.rShiftTo(l,o));var a=function(){(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(a,0):(l>0&&o.lShiftTo(l,o),setTimeout((function(){t(o)}),0))};setTimeout(a,10)}},e.prototype.fromNumberAsync=function(t,r,o,n){if("number"==typeof r)if(t<2)this.fromInt(1);else{this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Br,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(r)?setTimeout((function(){n()}),0):setTimeout(l,0)};setTimeout(l,0)}else{var a=[],s=7&t;a.length=1+(t>>3),r.nextBytes(a),s>0?a[0]&=(1<<s)-1:a[0]=0,this.fromString(a,256)}},e}(),qr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Jr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),zr=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Gr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Kr.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Gr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],o=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,o,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Yr=function(){function e(e){this.m=e,this.r2=Gr(),this.q3=Gr(),Kr.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Gr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Gr(){return new Kr(null)}function Xr(e,t){return new Kr(e,t)}var Wr="undefined"!=typeof navigator;Wr&&"Microsoft Internet Explorer"==navigator.appName?(Kr.prototype.am=function(e,t,r,o,n,i){for(var l=32767&t,a=t>>15;--i>=0;){var s=32767&this[e],c=this[e++]>>15,u=a*s+c*l;n=((s=l*s+((32767&u)<<15)+r[o]+(1073741823&n))>>>30)+(u>>>15)+a*c+(n>>>30),r[o++]=1073741823&s}return n},Lr=30):Wr&&"Netscape"!=navigator.appName?(Kr.prototype.am=function(e,t,r,o,n,i){for(;--i>=0;){var l=t*this[e++]+r[o]+n;n=Math.floor(l/67108864),r[o++]=67108863&l}return n},Lr=26):(Kr.prototype.am=function(e,t,r,o,n,i){for(var l=16383&t,a=t>>14;--i>=0;){var s=16383&this[e],c=this[e++]>>14,u=a*s+c*l;n=((s=l*s+((16383&u)<<14)+r[o]+n)>>28)+(u>>14)+a*c,r[o++]=268435455&s}return n},Lr=28),Kr.prototype.DB=Lr,Kr.prototype.DM=(1<<Lr)-1,Kr.prototype.DV=1<<Lr;Kr.prototype.FV=Math.pow(2,52),Kr.prototype.F1=52-Lr,Kr.prototype.F2=2*Lr-52;var Zr,_r,$r=[];for(Zr="0".charCodeAt(0),_r=0;_r<=9;++_r)$r[Zr++]=_r;for(Zr="a".charCodeAt(0),_r=10;_r<36;++_r)$r[Zr++]=_r;for(Zr="A".charCodeAt(0),_r=10;_r<36;++_r)$r[Zr++]=_r;function eo(e,t){var r=$r[e.charCodeAt(t)];return null==r?-1:r}function to(e){var t=Gr();return t.fromInt(e),t}function ro(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}Kr.ZERO=to(0),Kr.ONE=to(1);var oo=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,r,o;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,o=this.S[t],this.S[t]=this.S[r],this.S[r]=o;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();var no,io,lo=null;if(null==lo){lo=[],io=0;var ao=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var so=new Uint32Array(256);for(window.crypto.getRandomValues(so),ao=0;ao<so.length;++ao)lo[io++]=255&so[ao]}var co=0,uo=function(e){if((co=co||0)>=256||io>=256)window.removeEventListener?window.removeEventListener("mousemove",uo,!1):window.detachEvent&&window.detachEvent("onmousemove",uo);else try{var t=e.x+e.y;lo[io++]=255&t,co+=1}catch(Oi){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",uo,!1):window.attachEvent&&window.attachEvent("onmousemove",uo))}function fo(){if(null==no){for(no=new oo;io<256;){var e=Math.floor(65536*Math.random());lo[io++]=255&e}for(no.init(lo),io=0;io<lo.length;++io)lo[io]=0;io=0}return no.next()}var po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=fo()},e}();var mo=function(){function e(){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 e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16))},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=function(e,t){if(t<e.length+11)return null;for(var r=[],o=e.length-1;o>=0&&t>0;){var n=e.charCodeAt(o--);n<128?r[--t]=n:n>127&&n<2048?(r[--t]=63&n|128,r[--t]=n>>6|192):(r[--t]=63&n|128,r[--t]=n>>6&63|128,r[--t]=n>>12|224)}r[--t]=0;for(var i=new po,l=[];t>2;){for(l[0]=0;0==l[0];)i.nextBytes(l);r[--t]=l[0]}return r[--t]=2,r[--t]=0,new Kr(r)}(e,t);if(null==r)return null;var o=this.doPublic(r);if(null==o)return null;for(var n=o.toString(16),i=n.length,l=0;l<2*t-i;l++)n="0"+n;return n},e.prototype.setPrivate=function(e,t,r){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16),this.d=Xr(r,16))},e.prototype.setPrivateEx=function(e,t,r,o,n,i,l,a){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16),this.d=Xr(r,16),this.p=Xr(o,16),this.q=Xr(n,16),this.dmp1=Xr(i,16),this.dmq1=Xr(l,16),this.coeff=Xr(a,16))},e.prototype.generate=function(e,t){var r=new po,o=e>>1;this.e=parseInt(t,16);for(var n=new Kr(t,16);;){for(;this.p=new Kr(e-o,1,r),0!=this.p.subtract(Kr.ONE).gcd(n).compareTo(Kr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Kr(o,1,r),0!=this.q.subtract(Kr.ONE).gcd(n).compareTo(Kr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var l=this.p.subtract(Kr.ONE),a=this.q.subtract(Kr.ONE),s=l.multiply(a);if(0==s.gcd(n).compareTo(Kr.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(s),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Xr(e,16),r=this.doPrivate(t);return null==r?null:function(e,t){var r=e.toByteArray(),o=0;for(;o<r.length&&0==r[o];)++o;if(r.length-o!=t-1||2!=r[o])return null;++o;for(;0!=r[o];)if(++o>=r.length)return null;var n="";for(;++o<r.length;){var i=255&r[o];i<128?n+=String.fromCharCode(i):i>191&&i<224?(n+=String.fromCharCode((31&i)<<6|63&r[o+1]),++o):(n+=String.fromCharCode((15&i)<<12|(63&r[o+1])<<6|63&r[o+2]),o+=2)}return n}(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,r){var o=new po,n=e>>1;this.e=parseInt(t,16);var i=new Kr(t,16),l=this,a=function(){var t=function(){if(l.p.compareTo(l.q)<=0){var e=l.p;l.p=l.q,l.q=e}var t=l.p.subtract(Kr.ONE),o=l.q.subtract(Kr.ONE),n=t.multiply(o);0==n.gcd(i).compareTo(Kr.ONE)?(l.n=l.p.multiply(l.q),l.d=i.modInverse(n),l.dmp1=l.d.mod(t),l.dmq1=l.d.mod(o),l.coeff=l.q.modInverse(l.p),setTimeout((function(){r()}),0)):setTimeout(a,0)},s=function(){l.q=Gr(),l.q.fromNumberAsync(n,1,o,(function(){l.q.subtract(Kr.ONE).gcda(i,(function(e){0==e.compareTo(Kr.ONE)&&l.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){l.p=Gr(),l.p.fromNumberAsync(e-n,1,o,(function(){l.p.subtract(Kr.ONE).gcda(i,(function(e){0==e.compareTo(Kr.ONE)&&l.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(a,0)},e.prototype.sign=function(e,t,r){var o=function(e,t){if(t<e.length+22)return null;for(var r=t-e.length-6,o="",n=0;n<r;n+=2)o+="ff";return Xr("0001"+o+"00"+e,16)}((ho[r]||"")+t(e).toString(),this.n.bitLength()/4);if(null==o)return null;var n=this.doPrivate(o);if(null==n)return null;var i=n.toString(16);return 1&i.length?"0"+i:i},e.prototype.verify=function(e,t,r){var o=Xr(t,16),n=this.doPublic(o);return null==n?null:function(e){for(var t in ho)if(ho.hasOwnProperty(t)){var r=ho[t],o=r.length;if(e.substr(0,o)==r)return e.substr(o)}return e}
7
+ */f.exports=function(){function e(e,t){for(var r in t)e[r]=t[r];return e}function t(e){var t=!1;if(e&&e.setItem){t=!0;var r="__"+Math.round(1e7*Math.random());try{e.setItem(r,r),e.removeItem(r)}catch(o){t=!1}}return t}function r(e){return"string"==typeof e&&window[e]instanceof Storage?window[e]:e}function o(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function n(e,t){if(t=t||new Date,"number"==typeof e?e=e===1/0?d:new Date(t.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!o(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e}function i(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}function l(e,t){this.c=(new Date).getTime();var r=n(t=t||f);this.e=r.getTime(),this.v=e}function a(e){return"object"==typeof e&&!!(e&&"c"in e&&"e"in e&&"v"in e)}function s(e){return(new Date).getTime()<e.e}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(n){var i=e({storage:"localStorage",exp:1/0},n),l=i.exp;if(l&&"number"!=typeof l&&!o(l))throw new Error("Constructor `exp` parameter cannot be converted to a valid Date instance");f=l;var a=r(i.storage),s=t(a);this.isSupported=function(){return s},s?(this.storage=a,this.quotaExceedHandler=function(e,t,r){if(r&&!0===r.force){this.deleteAllExpires();try{r.force=!1,this.set(e,t,r)}catch(o){}}}):e(this,m)}var d=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),f=d,p={serialize:function(e){return JSON.stringify(e)},deserialize:function(e){return e&&JSON.parse(e)}},m={set:function(){},get:function(){},delete:function(){},deleteAllExpires:function(){},clear:function(){},add:function(){},replace:function(){},touch:function(){}},h={set:function(t,r,o){if(t=c(t),"number"==typeof o&&(o={exp:o}),o=e({force:!0},o),void 0===r)return this.delete(t);var n=p.serialize(r),a=new l(n,o.exp);try{this.storage.setItem(t,p.serialize(a))}catch(s){i(s)&&this.quotaExceedHandler(t,n,o,s)}return r},get:function(e){e=c(e);var t=null;try{t=p.deserialize(this.storage.getItem(e))}catch(o){return null}if(a(t)){if(s(t)){var r=t.v;return p.deserialize(r)}this.delete(e)}return null},delete:function(e){return e=c(e),this.storage.removeItem(e),e},deleteAllExpires:function(){for(var e=this.storage.length,t=[],r=this,o=0;e>o;o++){var n=this.storage.key(o),i=null;try{i=p.deserialize(this.storage.getItem(n))}catch(l){}null!==i&&void 0!==i.e&&(new Date).getTime()>=i.e&&t.push(n)}return t.forEach((function(e){r.delete(e)})),t},clear:function(){this.storage.clear()},add:function(t,r,o){t=c(t),"number"==typeof o&&(o={exp:o}),o=e({force:!0},o);try{var n=p.deserialize(this.storage.getItem(t));if(!a(n)||!s(n))return this.set(t,r,o),!0}catch(i){return this.set(t,r,o),!0}return!1},replace:function(e,t,r){e=c(e);var o=null;try{o=p.deserialize(this.storage.getItem(e))}catch(n){return!1}if(a(o)){if(s(o))return this.set(e,t,r),!0;this.delete(e)}return!1},touch:function(e,t){e=c(e);var r=null;try{r=p.deserialize(this.storage.getItem(e))}catch(o){return!1}if(a(r)){if(s(r))return this.set(e,this.get(e),{exp:t}),!0;this.delete(e)}return!1}};return u.prototype=h,u}();const p=d(f.exports),m="roleRouters",h="user",g="visitTenantId",v="lang",y="theme",b="layout",C=(e="localStorage")=>({wsCache:new p({storage:e})}),B={elColorDanger:"#f50000",elBorderColor:"#d2d5e4",elMenuItemHeight:"40px",elMenuSubItemHeight:"40px",elMenuLevelPadding:"14px",elMenuBaseLevelPadding:"22px",elMenuIconWidth:"16px",elButtonDefaultBgColor:"#fff",elButtonDefaultHoverBgColor:"#fff",elButtonDefaultActiveBgColor:"#fff",elButtonDefaultDisabledBgColor:"rgba(0, 0, 0, 0.04)",elButtonDefaultDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDefaultDisabledBorderColor:"#d9d9d9",elButtonLinkDisabledTextColor:"rgba(0, 0, 0, 0.25)",elButtonDangerBgColor:"#ff4d4f",elButtonDangerTextColor:"#fff",elButtonDangerBorderColor:"#ff4d4f",elButtonDangerHoverBgColor:"#ff7875",elButtonDangerHoverTextColor:"#fff",elButtonDangerHoverBorderColor:"#ff7875",elButtonDangerActiveBgColor:"#d9363e",elButtonDangerActiveTextColor:"#fff",elButtonDangerActiveBorderColor:"#d9363e",elButtonDangerLinkTextColor:"#ff4d4f",elButtonDangerLinkHoverTextColor:"#ff7875",elButtonDangerLinkActiveTextColor:"#d9363e",elUploadBgColor:"#f6f7fc",elUploadIconColor:"#d2d5e4",elUploadTextColor:"#b9bdcd",elUploadTipColor:"#9fa3b9",elDropdownMenuItemHoverTextColor:"#333",elTableHeaderColumnBgColor:"#eeeff4",elTableDefaultBorderColor:"#e5e5e5",elTableStripedBgColor:"#f7f8fd",elPaginationButtonBorderColor:"#eeeff4",elTagPrimaryBgColor:"#e6f4ff",elTagPrimaryTextColor:"#1677FF",elTagSuccessBgColor:"#f6ffed",elTagSuccessTextColor:"#52c41a",elTagDangerBgColor:"#fff1f0",elTagDangerTextColor:"#ff4d4f",elTagWarningBgColor:"#fffbe6",elTagWarningTextColor:"#ffaa00",elTagInfoBgColor:"rgba(0, 0, 0, 0.02)",elTagInfoTextColor:"rgba(0, 0, 0, 0.88)",elMessageSuccessBorderColor:"#d9f7be",elMessageWarningBorderColor:"#fff1b8",elMessageErrorBorderColor:"#ffccc7",elDialogBorderColor:"#eeeff4",elAlertSuccessBorderColor:"rgba(82,196,26,0.6)",elAlertSuccessBgColor:"#f6ffed",elAlertInfoBorderColor:"rgba(0, 0, 0, 0.12)",elAlertInfoBgColor:"rgba(0, 0, 0, 0.02)",elAlertWarningBorderColor:"#ffe58f",elAlertWarningBgColor:"#fffbe6",elAlertErrorBorderColor:"#ffccc7",elAlertErrorBgColor:"#fff1f0"},E={whiteLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"#fff",leftMenuItemBgActiveColor:"rgba(36,104,242,1)",leftMenuItemBgHoverColor:"rgba(36,104,242,0.8)",leftMenuTextColor:"#333",topMenuItemBgActiveColor:"rgba(36,104,242,1)",topMenuItemBgHoverColor:"rgba(36,104,242,0.8)",topHeaderBgColor:"#fff",topHeaderTextColor:"#6b778e",menuTriggerBgColor:"#2468F2"},blueLight:{...B,elColorPrimary:"#2468f2",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#205dd9",elButtonDefaultHoverBorderColor:"#205dd9",elButtonDefaultActiveTextColor:"#1d53c2",elButtonDefaultActiveBorderColor:"#1d53c2",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#2468f2",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#2468f2",elButtonPrimaryHoverBgColor:"#205dd9",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#205dd9",elButtonPrimaryActiveBgColor:"#1d53c2",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#1d53c2",elButtonPrimaryLinkTextColor:"#2468f2",elButtonPrimaryLinkHoverTextColor:"#205dd9",elButtonPrimaryLinkActiveTextColor:"#1d53c2",elDropdownMenuItemHoverBgColor:"#edf1ff",elTableColumnHoverBgColor:"#edf1ff",elTreeItemHoverBgColor:"#edf1ff",bgColor:"#edf1ff",leftMenuBgColor:"0, #2897FB 0%, #1B61EE 100%",leftMenuItemBgActiveColor:"rgba(103,153,255,1)",leftMenuItemBgHoverColor:"rgba(103,153,255,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(103,153,255,1)",topMenuItemBgHoverColor:"rgba(103,153,255,0.5)",topHeaderBgColor:"270deg, #29ACFE 0%, #2468F2 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},redLight:{...B,elColorPrimary:"#ea4636",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#d23f30",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#bb382b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#ea4636",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#ea4636",elButtonPrimaryHoverBgColor:"#d23f30",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#d23f30",elButtonPrimaryActiveBgColor:"#bb382b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#bb382b",elButtonPrimaryLinkTextColor:"#ea4636",elButtonPrimaryLinkHoverTextColor:"#d23f30",elButtonPrimaryLinkActiveTextColor:"#bb382b",elDropdownMenuItemHoverBgColor:"#ffebeb",elTableColumnHoverBgColor:"#ffebeb",elTreeItemHoverBgColor:"#ffebeb",bgColor:"#ffebeb",leftMenuBgColor:"0, #cf271c, #cf271c",leftMenuItemBgActiveColor:"rgba(221, 98, 90, 1)",leftMenuItemBgHoverColor:"rgba(221, 98, 90, 0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(244, 101, 85, 1)",topMenuItemBgHoverColor:"rgba(244, 101, 85, 0.5)",topHeaderBgColor:"0, #ea4636, #ea4636",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},greenLight:{...B,elColorPrimary:"#0acfa5",elButtonDefaultTextColor:"#6b7080",elButtonDefaultBorderColor:"#b3b8cc",elButtonDefaultHoverTextColor:"#09ba94",elButtonDefaultHoverBorderColor:"#09ba94",elButtonDefaultActiveTextColor:"#08a684",elButtonDefaultActiveBorderColor:"#08a684",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#0acfa5",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#0acfa5",elButtonPrimaryHoverBgColor:"#09ba94",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#09ba94",elButtonPrimaryActiveBgColor:"#08a684",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#08a684",elButtonPrimaryLinkTextColor:"#0acfa5",elButtonPrimaryLinkHoverTextColor:"#09ba94",elButtonPrimaryLinkActiveTextColor:"#08a684",elDropdownMenuItemHoverBgColor:"#e4f6f2",elTableColumnHoverBgColor:"#e4f6f2",elTreeItemHoverBgColor:"#e4f6f2",bgColor:"#e4f6f2",leftMenuBgColor:"0, #01b18b, #01b18b",leftMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",leftMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(234, 255, 251, 0.4)",topMenuItemBgHoverColor:"rgba(234, 255, 251, 0.2)",topHeaderBgColor:"0, #0acfa5, #0acfa5",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},springFestival:{...B,elColorPrimary:"#e42b22",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#cd271f",elButtonDefaultHoverBorderColor:"#d23f30",elButtonDefaultActiveTextColor:"#b6221b",elButtonDefaultActiveBorderColor:"#bb382b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#e42b22",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#e42b22",elButtonPrimaryHoverBgColor:"#cd271f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#cd271f",elButtonPrimaryActiveBgColor:"#b6221b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#b6221b",elButtonPrimaryLinkTextColor:"#e42b22",elButtonPrimaryLinkHoverTextColor:"#cd271f",elButtonPrimaryLinkActiveTextColor:"#b6221b",elDropdownMenuItemHoverBgColor:"#fee2e2",elTableColumnHoverBgColor:"#fee2e2",elTreeItemHoverBgColor:"#fee2e2",bgColor:"#fee2e2",leftMenuBgColor:"0, #f53a19 0%, #bf241f 100%",leftMenuItemBgActiveColor:"rgba(255,95,83,1)",leftMenuItemBgHoverColor:"rgba(255,95,83,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,95,83,1)",topMenuItemBgHoverColor:"rgba(255,95,83,0.5)",topHeaderBgColor:"270deg, #f25416 0%, #ef2704 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},dragonBoatFestival:{...B,elColorPrimary:"#1ebc74",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#1ba968",elButtonDefaultHoverBorderColor:"#1ba968",elButtonDefaultActiveTextColor:"#18965d",elButtonDefaultActiveBorderColor:"#18965d",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#1ebc74",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#1ebc74",elButtonPrimaryHoverBgColor:"#1ba968",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#1ba968",elButtonPrimaryActiveBgColor:"#18965d",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#18965d",elButtonPrimaryLinkTextColor:"#1ebc74",elButtonPrimaryLinkHoverTextColor:"#1ba968",elButtonPrimaryLinkActiveTextColor:"#18965d",elDropdownMenuItemHoverBgColor:"#d3f4e6",elTableColumnHoverBgColor:"#d3f4e6",elTreeItemHoverBgColor:"#d3f4e6",bgColor:"#d3f4e6",leftMenuBgColor:"0, #3ac777 0%, #1baa59 100%",leftMenuItemBgActiveColor:"rgba(129,207,161,1)",leftMenuItemBgHoverColor:"rgba(129,207,161,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(93,215,135,1)",topMenuItemBgHoverColor:"rgba(93,215,135,0.5)",topHeaderBgColor:"270deg, #3ac677 0%, #0dc35c 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},midAutumnFestival:{...B,elColorPrimary:"#fc8522",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#e2771f",elButtonDefaultHoverBorderColor:"#e2771f",elButtonDefaultActiveTextColor:"#ca6a1b",elButtonDefaultActiveBorderColor:"#ca6a1b",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#fc8522",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#fc8522",elButtonPrimaryHoverBgColor:"#e2771f",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#e2771f",elButtonPrimaryActiveBgColor:"#ca6a1b",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#ca6a1b",elButtonPrimaryLinkTextColor:"#fc8522",elButtonPrimaryLinkHoverTextColor:"#e2771f",elButtonPrimaryLinkActiveTextColor:"#ca6a1b",elDropdownMenuItemHoverBgColor:"#ffe6d2",elTableColumnHoverBgColor:"#ffe6d2",elTreeItemHoverBgColor:"#ffe6d2",bgColor:"#ffe6d2",leftMenuBgColor:"0, #fc9b4b 0%, #ed6715 100%",leftMenuItemBgActiveColor:"rgba(255,176,129,1)",leftMenuItemBgHoverColor:"rgba(255,176,129,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,180,75,1)",topMenuItemBgHoverColor:"rgba(255,180,75,0.5)",topHeaderBgColor:"270deg, #fc9b4b 0%, #fa771d 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"},newYearsDay:{...B,elColorPrimary:"#f63344",elButtonDefaultTextColor:"#777",elButtonDefaultBorderColor:"#d3d3d3",elButtonDefaultHoverTextColor:"#dd2e3d",elButtonDefaultHoverBorderColor:"#dd2e3d",elButtonDefaultActiveTextColor:"#c52936",elButtonDefaultActiveBorderColor:"#c52936",elButtonDefaultLinkTextColor:"#6b7080",elButtonDefaultLinkHoverTextColor:"#4e535f",elButtonDefaultLinkActiveTextColor:"#2e3239",elButtonPrimaryBgColor:"#f63344",elButtonPrimaryTextColor:"#fff",elButtonPrimaryBorderColor:"#f63344",elButtonPrimaryHoverBgColor:"#dd2e3d",elButtonPrimaryHoverTextColor:"#fff",elButtonPrimaryHoverBorderColor:"#dd2e3d",elButtonPrimaryActiveBgColor:"#c52936",elButtonPrimaryActiveTextColor:"#fff",elButtonPrimaryActiveBorderColor:"#c52936",elButtonPrimaryLinkTextColor:"#f63344",elButtonPrimaryLinkHoverTextColor:"#dd2e3d",elButtonPrimaryLinkActiveTextColor:"#c52936",elDropdownMenuItemHoverBgColor:"#fed8dc",elTableColumnHoverBgColor:"#fed8dc",elTreeItemHoverBgColor:"#fed8dc",bgColor:"#fed8dc",leftMenuBgColor:"0, #f83d4d 0%, #dc2035 100%",leftMenuItemBgActiveColor:"rgba(255,78,96,1)",leftMenuItemBgHoverColor:"rgba(255,78,96,0.5)",leftMenuTextColor:"#fff",topMenuItemBgActiveColor:"rgba(255,78,96,1)",topMenuItemBgHoverColor:"rgba(255,78,96,0.5)",topHeaderBgColor:"270deg, #f84958 0%, #f63344 100%",topHeaderTextColor:"#fff",menuTriggerBgColor:"transparent"}},{wsCache:x}=C(),S=r.defineStore("layout-app",{state:()=>({userInfo:"userInfo",sizeMap:["default","large","small"],title:"业务中台",pageLoading:!1,breadcrumb:!1,breadcrumbIcon:!0,collapse:!1,uniqueOpened:!0,hamburger:!0,search:!1,locale:!1,setting:!0,message:!0,logo:!0,footer:!1,greyMode:!1,layout:x.get(b)||"left",currentSize:x.get("default")||"default",theme:x.get(y)||"whiteLight",isSetTheme:!1}),getters:{getBreadcrumb(){return this.breadcrumb},getBreadcrumbIcon(){return this.breadcrumbIcon},getCollapse(){return this.collapse},getUniqueOpened(){return this.uniqueOpened},getHamburger(){return this.hamburger},getLocale(){return this.locale},getSetting(){return this.setting},getMessage(){return this.message},getLogo(){return this.logo},getGreyMode(){return this.greyMode},getPageLoading(){return this.pageLoading},getLayout(){return this.layout},getTitle(){return this.title},getUserInfo(){return this.userInfo},getCurrentSize(){return this.currentSize},getSizeMap(){return this.sizeMap},getTheme(){return this.theme},getCurrentTheme(){return E[this.theme]},getFooter(){return this.footer},getIsSetTheme(){return this.isSetTheme}},actions:{setBreadcrumb(e){this.breadcrumb=e},setBreadcrumbIcon(e){this.breadcrumbIcon=e},setCollapse(e){this.collapse=e},setUniqueOpened(e){this.uniqueOpened=e},setHamburger(e){this.hamburger=e},setLocale(e){this.locale=e},setMessage(e){this.message=e},setLogo(e){this.logo=e},setGreyMode(e){this.greyMode=e},setPageLoading(e){this.pageLoading=e},setLayout(e){this.layout=e,x.set(b,this.layout)},setTitle(e){this.title=e},setCurrentSize(e){this.currentSize=e,x.set("currentSize",this.currentSize)},setTheme(e){this.theme=e,x.set(y,e)},setCssVarTheme(){this.isSetTheme=!0;const e=E[this.theme];for(const r in e)u(`--${t=r,t.replace(/([A-Z])/g,"-$1").toLowerCase()}`,e[r]);var t},setFooter(e){this.footer=e},async setUserTheme(){}},persist:!1}),w={namespace:"v",elNamespace:"el"},T=()=>{const e=w;return{variables:e,getPrefixCls:t=>`${e.namespace}-${t}`}},A=Object.assign({name:"BackTop"},{__name:"Backtop",setup(e){const{getPrefixCls:r,variables:o}=T(),n=r("backtop");return(e,r)=>(t.openBlock(),t.createBlock(t.unref(i.ElBacktop),{class:t.normalizeClass(`${t.unref(n)}-backtop`),target:`.${t.unref(o).namespace}-layout-content-scrollbar .${t.unref(o).elNamespace}-scrollbar__wrap`},null,8,["class","target"]))}}),k=Object.prototype.toString,I=(e,t)=>k.call(e)===`[object ${t}]`,P=e=>I(e,"String"),N=!("undefined"==typeof window),D=e=>/(((^https?:(?:\/\/)?)(?:[-:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%#\/.\w-_]*)?\??(?:[-\+=&%@.\w_]*)#?(?:[\w]*))?)$/.test(e),M=(e,t)=>{if(D(t))return t;return`${e}${t.startsWith("/")||!t?t:`/${t}`}`.replace(/\/\//g,"/")},V=e=>{var t,r;if(!e||!Reflect.has(e,"children")||!(null==(t=e.children)?void 0:t.length))return!1;const o=e.children;let n=!1;for(let i=0;i<o.length;i++){if(null==(r=o[i].children)?void 0:r.length){n=!0;break}}return n},R=e=>{var t;let r=l.createRouter({routes:[e],history:l.createWebHashHistory()});const o=r.getRoutes();F(o,e.children||[],e),r=null,e.children=null==(t=e.children)?void 0:t.map((e=>n.omit(e,"children")))},F=(e,t,r)=>{var o,n;for(let i=0;i<t.length;i++){const l=t[i],a=e.find((e=>e.name===l.name));a&&(r.children=r.children||[],r.children.find((e=>e.name===a.name))||null==(o=r.children)||o.push(a),(null==(n=l.children)?void 0:n.length)&&F(e,l.children,r))}},{wsCache:L}=C(),j=r.defineStore("layout-permission",{state:()=>({routers:[],addRouters:[],menuTabRouters:[],leftMenuRouters:[],moduleRouters:[],moduleId:void 0}),getters:{getRouters(){return this.routers},getRouterMap(){return this.addRouters},getAddRouters(){return(e=>{const t=n.cloneDeep(e);for(let r=0;r<t.length;r++){const e=t[r];V(e)&&R(e)}return t})(n.cloneDeep(this.addRouters))},getMenuTabRouters(){return this.menuTabRouters},getLeftMenuRouters(){return this.leftMenuRouters},getRoleRouters:()=>L.get(m)||[],getModuleRouters(){return this.moduleRouters},getModuleId(){return this.moduleId}},actions:{setRouters(e){this.routers=e},setAddRouters(e){this.addRouters=e},setMenuTabRouters(e){this.menuTabRouters=e},setLeftMenuRouters(e="",r=[]){const o=e?e.startsWith("/")?e:`/${e}`:"",n=r.map((e=>{const t=e.path?e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${o}${t}`}}));this.leftMenuRouters=[],t.nextTick((()=>{this.leftMenuRouters=n}))},setModuleRouters(e){this.moduleId=e;const t=this.getRoleRouters.find((t=>t.id===e));if(t){const e=t.children||[],r=t.path?t.path.startsWith("/")?t.path:`/${t.path}`:"";this.moduleRouters=e.map((e=>{const t=e.path?r.endsWith("/")?e.path.startsWith("/")?e.path.substring(1):e.path:e.path.startsWith("/")?e.path:`/${e.path}`:"";return{...e,path:`${r}${t}`}}))}}},persist:!1}),O=()=>j(c),U={id:"id",children:"children",pid:"pid"},H=e=>Object.assign({},U,e),Q=(e=[],r)=>{const o=t.ref(),n=e.filter((e=>!(e.meta??{}).hidden&&(o.value=e,!0)));return 1===n.length?{oneShowingChild:!0,onlyOneChild:t.unref(o)}:n.length?{oneShowingChild:!1,onlyOneChild:t.unref(o)}:(o.value={...r,path:"",noShowingChildren:!0},{oneShowingChild:!0,onlyOneChild:t.unref(o)})},K=(e,t)=>{const r=O(),o=r.getRouters.find((t=>t.path==e));if(o){const n=o.meta??{},{oneShowingChild:i,onlyOneChild:l}=Q(o.children,o);if(!i||(null==l?void 0:l.children)&&!(null==l?void 0:l.noShowingChildren)||(null==n?void 0:n.alwaysShow)){r.setLeftMenuRouters(o.path,o.children);const e=q(o.path,o.children);t&&t(e)}else r.setLeftMenuRouters(),t&&t(e)}},q=(e,t)=>{const r=t.find((e=>!1!==e.meta));return r?r.children&&r.children.length>0?q(`${e}/${r.path}`,r.children):`${e}/${r.path}`:e},J=Object.freeze({left:0,top:0,width:16,height:16}),z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Y=Object.freeze({...J,...z}),G=Object.freeze({...Y,body:"",hidden:!1});function X(e,t){const r=function(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(r.rotate=o),r}(e,t);for(const o in G)o in z?o in e&&!(o in r)&&(r[o]=z[o]):o in t?r[o]=t[o]:o in e&&(r[o]=e[o]);return r}function W(e,t,r){const o=e.icons,n=e.aliases||Object.create(null);let i={};function l(e){i=X(o[e]||n[e],i)}return l(t),r.forEach(l),X(e,i)}function Z(e,t){const r=[];if("object"!=typeof e||"object"!=typeof e.icons)return r;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),r.push(e)}));const o=function(e){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return Object.keys(t).concat(Object.keys(r)).forEach((function e(n){if(t[n])return o[n]=[];if(!(n in o)){o[n]=null;const t=r[n]&&r[n].parent,i=t&&e(t);i&&(o[n]=[t].concat(i))}return o[n]})),o}(e);for(const n in o){const i=o[n];i&&(t(n,W(e,n,i)),r.push(n))}return r}const _=/^[a-z0-9]+(-[a-z0-9]+)*$/,$=(e,t,r,o="")=>{const n=e.split(":");if("@"===e.slice(0,1)){if(n.length<2||n.length>3)return null;o=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const e=n.pop(),r=n.pop(),i={provider:n.length>0?n[0]:o,prefix:r,name:e};return t&&!ee(i)?null:i}const i=n[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!ee(e)?null:e}if(r&&""===o){const e={provider:o,prefix:"",name:i};return t&&!ee(e,r)?null:e}return null},ee=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(_)||!(t&&""===e.prefix||e.prefix.match(_))||!e.name.match(_)),te={provider:"",aliases:{},not_found:{},...J};function re(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}const oe=Object.create(null);function ne(e,t){const r=oe[e]||(oe[e]=Object.create(null));return r[t]||(r[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function ie(e,t){return function(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!re(e,te))return null;const r=t.icons;for(const n in r){const e=r[n];if(!n.match(_)||"string"!=typeof e.body||!re(e,G))return null}const o=t.aliases||Object.create(null);for(const n in o){const e=o[n],t=e.parent;if(!n.match(_)||"string"!=typeof t||!r[t]&&!o[t]||!re(e,G))return null}return t}(t)?Z(t,((t,r)=>{r?e.icons[t]=r:e.missing.add(t)})):[]}let le=!1;function ae(e){const t="string"==typeof e?$(e,!0,le):e;if(t){const e=ne(t.provider,t.prefix),r=t.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}function se(e,t){if("object"!=typeof e)return!1;"string"!=typeof t&&(t=e.provider||"");const r=e.prefix;if(!ee({provider:t,prefix:r,name:"a"}))return!1;return!!ie(ne(t,r),e)}const ce=Object.freeze({width:null,height:null}),ue=Object.freeze({...ce,...z}),de=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;const o=e.split(de);if(null===o||!o.length)return e;const n=[];let i=o.shift(),l=fe.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?n.push(i):n.push(Math.ceil(e*t*r)/r)}else n.push(i);if(i=o.shift(),void 0===i)return n.join("");l=!l}}function me(e,t){const r={...Y,...e},o={...ue,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,o].forEach((e=>{const t=[],r=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(r?o?a+=2:(t.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),t.push("scale(-1 1)"),n.top=n.left=0):o&&(t.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),t.push("scale(1 -1)"),n.top=n.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=n.height/2+n.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:l=n.width/2+n.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(n.left!==n.top&&(l=n.left,n.left=n.top,n.top=l),n.width!==n.height&&(l=n.width,n.width=n.height,n.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=n.width,c=n.height;let u,d;null===l?(d=null===a?"1em":"auto"===a?c:a,u=pe(d,s/c)):(u="auto"===l?s:l,d=null===a?pe(u,c/s):"auto"===a?c:a);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",u),p("height",d),f.viewBox=n.left.toString()+" "+n.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:i}}const he=/\sid="(\S+)"/g,ge="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let ve=0;function ye(e,t=ge){const r=[];let o;for(;o=he.exec(e);)r.push(o[1]);if(!r.length)return e;const n="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((r=>{const o="function"==typeof t?t(r):t+(ve++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")})),e=e.replace(new RegExp(n,"g"),"")}const be={local:!0,session:!0},Ce={local:new Set,session:new Set};let Be=!1;const Ee="iconify2",xe="iconify",Se=xe+"-count",we=xe+"-version",Te=36e5;function Ae(e,t){try{return e.getItem(t)}catch(r){}}function ke(e,t,r){try{return e.setItem(t,r),!0}catch(o){}}function Ie(e,t){try{e.removeItem(t)}catch(r){}}function Pe(e,t){return ke(e,Se,t.toString())}function Ne(e){return parseInt(Ae(e,Se))||0}let De="undefined"==typeof window?{}:window;function Me(e){const t=e+"Storage";try{if(De&&De[t]&&"number"==typeof De[t].length)return De[t]}catch(r){}be[e]=!1}function Ve(e,t){const r=Me(e);if(!r)return;const o=Ae(r,we);if(o!==Ee){if(o){const e=Ne(r);for(let t=0;t<e;t++)Ie(r,xe+t.toString())}return ke(r,we,Ee),void Pe(r,0)}const n=Math.floor(Date.now()/Te)-168,i=e=>{const o=xe+e.toString(),i=Ae(r,o);if("string"==typeof i){try{const r=JSON.parse(i);if("object"==typeof r&&"number"==typeof r.cached&&r.cached>n&&"string"==typeof r.provider&&"object"==typeof r.data&&"string"==typeof r.data.prefix&&t(r,e))return!0}catch(l){}Ie(r,o)}};let l=Ne(r);for(let a=l-1;a>=0;a--)i(a)||(a===l-1?(l--,Pe(r,l)):Ce[e].add(a))}function Re(){if(!Be){Be=!0;for(const e in be)Ve(e,(e=>{const t=e.data,r=ne(e.provider,t.prefix);if(!ie(r,t).length)return!1;const o=t.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0}))}}function Fe(e,t){switch(e){case"local":case"session":be[e]=t;break;case"all":for(const e in be)be[e]=t}}const Le=Object.create(null);function je(e,t){Le[e]=t}function Oe(e){return Le[e]||Le[""]}function Ue(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const He=Object.create(null),Qe=["https://api.simplesvg.com","https://api.unisvg.com"],Ke=[];for(;Qe.length>0;)1===Qe.length||Math.random()>.5?Ke.push(Qe.shift()):Ke.push(Qe.pop());function qe(e,t){const r=Ue(t);return null!==r&&(He[e]=r,!0)}function Je(e){return He[e]}He[""]=Ue({resources:["https://api.iconify.design"].concat(Ke)});let ze=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const Ye={prepare:(e,t,r)=>{const o=[],n=function(e,t){const r=Je(e);if(!r)return 0;let o;if(r.maxURL){let e=0;r.resources.forEach((t=>{const r=t;e=Math.max(e,r.length)}));const n=t+".json?icons=";o=r.maxURL-e-r.path.length-n.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return r.forEach(((r,s)=>{a+=r.length+1,a>=n&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=r.length),l.icons.push(r)})),o.push(l),o},send:(e,t,r)=>{if(!ze)return void r("abort",424);let o=function(e){if("string"==typeof e){const t=Je(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,r=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:r}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void r("abort",400)}let n=503;ze(e+o).then((e=>{const t=e.status;if(200===t)return n=501,e.json();setTimeout((()=>{r(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{r("success",e)})):setTimeout((()=>{404===e?r("abort",e):r("next",n)}))})).catch((()=>{r("next",n)}))}};function Ge(e,t){e.forEach((e=>{const r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter((e=>e.id!==t)))}))}let Xe=0;var We={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Ze(e,t,r,o){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,c="pending",u=0,d=null,f=[],p=[];function m(){d&&(clearTimeout(d),d=null)}function h(){"pending"===c&&(c="aborted"),m(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,s)}))}function y(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function b(){if("pending"!==c)return;m();const o=l.shift();if(void 0===o)return f.length?void(d=setTimeout((()=>{m(),"pending"===c&&(y(),v())}),e.timeout)):void v();const n={status:"pending",resource:o,callback:(t,r)=>{!function(t,r,o){const n="success"!==r;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(n||!e.dataAfterTimeout)return;break;default:return}if("abort"===r)return s=o,void v();if(n)return s=o,void(f.length||(l.length?b():v()));if(m(),y(),!e.random){const r=e.resources.indexOf(t.resource);-1!==r&&r!==e.index&&(e.index=r)}c="completed",p.forEach((e=>{e(o)}))}(n,t,r)}};f.push(n),u++,d=setTimeout(b,e.rotate),r(o,t,n.callback)}return"function"==typeof o&&p.push(o),setTimeout(b),function(){return{startTime:a,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:g,abort:h}}}function _e(e){const t={...We,...e};let r=[];function o(){r=r.filter((e=>"pending"===e().status))}return{query:function(e,n,i){const l=Ze(t,e,n,((e,t)=>{o(),i&&i(e,t)}));return r.push(l),l},find:function(e){return r.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function $e(){}const et=Object.create(null);function tt(e,t,r){let o,n;if("string"==typeof e){const t=Oe(e);if(!t)return r(void 0,424),$e;n=t.send;const i=function(e){if(!et[e]){const t=Je(e);if(!t)return;const r={config:t,redundancy:_e(t)};et[e]=r}return et[e]}(e);i&&(o=i.redundancy)}else{const t=Ue(e);if(t){o=_e(t);const r=Oe(e.resources?e.resources[0]:"");r&&(n=r.send)}}return o&&n?o.query(t,n,r)().abort:(r(void 0,424),$e)}function rt(e,t){function r(r){let o;if(!be[r]||!(o=Me(r)))return;const n=Ce[r];let i;if(n.size)n.delete(i=Array.from(n).shift());else if(i=Ne(o),!Pe(o,i+1))return;const l={cached:Math.floor(Date.now()/Te),provider:e.provider,data:t};return ke(o,xe+i.toString(),JSON.stringify(l))}Be||Re(),t.lastModified&&!function(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const o in be)Ve(o,(r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,r("local")||r("session"))}function ot(){}function nt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const o=e.provider,n=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==n)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:n,name:l});else{if(!e.missing.has(l))return r=!0,!0;i.missing.push({provider:o,prefix:n,name:l})}return!1})),i.pending.length!==l&&(r||Ge([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const it=(e,t)=>{const r=function(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const n=e.provider,i=e.prefix,l=e.name,a=r[n]||(r[n]=Object.create(null)),s=a[i]||(a[i]=ne(n,i));let c;c=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const u={provider:n,prefix:i,name:l};c.push(u)})),t}(function(e,t=!0,r=!1){const o=[];return e.forEach((e=>{const n="string"==typeof e?$(e,t,r):e;n&&o.push(n)})),o}(e,!0,le));if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,ot)})),()=>{e=!1}}const o=Object.create(null),n=[];let i,l;return r.pending.forEach((e=>{const{provider:t,prefix:r}=e;if(r===l&&t===i)return;i=t,l=r,n.push(ne(t,r));const a=o[t]||(o[t]=Object.create(null));a[r]||(a[r]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:r,name:n}=e,i=ne(t,r),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(n)||(l.add(n),o[t][r].push(n))})),n.forEach((e=>{const{provider:t,prefix:r}=e;o[t][r].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;let n;delete e.iconsToLoad,o&&(n=Oe(t))&&n.prepare(t,r,o).forEach((r=>{tt(t,r,(t=>{if("object"!=typeof t)r.icons.forEach((t=>{e.missing.add(t)}));else try{const r=ie(e,t);if(!r.length)return;const o=e.pendingIcons;o&&r.forEach((e=>{o.delete(e)})),rt(e,t)}catch(o){}nt(e)}))}))})))}(e,o[t][r])})),t?function(e,t,r){const o=Xe++,n=Ge.bind(null,r,o);if(!t.pending.length)return n;const i={id:o,icons:t,callback:e,abort:n};return r.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),n}(t,r,n):ot};function lt(e,t){const r={...e};for(const o in t){const e=t[o],n=typeof e;o in ce?(null===e||e&&("string"===n||"number"===n))&&(r[o]=e):n===typeof r[o]&&(r[o]="rotate"===o?e%4:e)}return r}const at={...ue,inline:!1},st="iconify",ct="iconify-inline",ut="iconifyData"+Date.now();let dt=[];function ft(e){for(let t=0;t<dt.length;t++){const r=dt[t];if(("function"==typeof r.node?r.node():r.node)===e)return r}}function pt(e,t=!1){let r=ft(e);return r?(r.temporary&&(r.temporary=t),r):(r={node:e,temporary:t},dt.push(r),r)}function mt(){return dt}let ht=null;const gt={childList:!0,subtree:!0,attributes:!0};function vt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout((()=>{delete t.pendingScan,ht&&ht(e)})))}function yt(e,t){if(!e.observer)return;const r=e.observer;if(!r.pendingScan)for(let o=0;o<t.length;o++){const n=t[o];if(n.addedNodes&&n.addedNodes.length>0||"attributes"===n.type&&void 0!==n.target[ut])return void(r.paused||vt(e))}}function bt(e,t){e.observer.instance.observe(t,gt)}function Ct(e){let t=e.observer;if(t&&t.instance)return;const r="function"==typeof e.node?e.node():e.node;r&&window&&(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(yt.bind(null,e)),bt(e,r),t.paused||vt(e))}function Bt(){mt().forEach(Ct)}function Et(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function xt(e){const t=null!==ht;ht!==e&&(ht=e,t&&mt().forEach(Et)),t?Bt():function(e){const t=document;t.readyState&&"loading"!==t.readyState?e():t.addEventListener("DOMContentLoaded",e)}(Bt)}function St(e){(e?[e]:mt()).forEach((e=>{if(!e.observer)return void(e.observer={paused:1});const t=e.observer;if(t.paused++,t.paused>1||!t.instance)return;t.instance.disconnect()}))}function wt(e){(e?[e]:mt()).forEach((e=>{if(!e.observer)return void Ct(e);const t=e.observer;if(t.paused&&(t.paused--,!t.paused)){const r="function"==typeof e.node?e.node():e.node;if(!r)return;t.instance?bt(e,r):Ct(e)}}))}function Tt(e,t=!1){const r=pt(e,t);return Ct(r),r}function At(e){const t=ft(e);t&&(Et(t),function(e){dt=dt.filter((t=>e!==t&&e!==("function"==typeof t.node?t.node():t.node)))}(e))}const kt=/[\s,]+/;const It=["width","height"],Pt=["inline","hFlip","vFlip"];function Nt(e){const t=e.getAttribute("data-icon"),r="string"==typeof t&&$(t,!0);if(!r)return null;const o={...at,inline:e.classList&&e.classList.contains(ct)};It.forEach((t=>{const r=e.getAttribute("data-"+t);r&&(o[t]=r)}));const n=e.getAttribute("data-rotate");"string"==typeof n&&(o.rotate=function(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===r){const t=parseInt(e);return isNaN(t)?0:o(t)}if(r!==e){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let n=parseFloat(e.slice(0,e.length-r.length));return isNaN(n)?0:(n/=t,n%1==0?o(n):0)}}return t}(n));const i=e.getAttribute("data-flip");"string"==typeof i&&function(e,t){t.split(kt).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}(o,i),Pt.forEach((t=>{const r="data-"+t,n=function(e,t){return e===t||"true"===e||""!==e&&"false"!==e&&null}(e.getAttribute(r),r);"boolean"==typeof n&&(o[t]=n)}));const l=e.getAttribute("data-mode");return{name:t,icon:r,customisations:o,mode:l}}const Dt="svg."+st+", i."+st+", span."+st+", i."+ct+", span."+ct;function Mt(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)r+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}let Vt;function Rt(e){return void 0===Vt&&function(){try{Vt=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){Vt=null}}(),Vt?Vt.createHTML(e):e}function Ft(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach((r=>{e[r]&&t.add("iconify--"+e[r])})),t}function Lt(e,t,r,o){const n=e.classList;if(o){const e=o.classList;Array.from(e).forEach((e=>{n.add(e)}))}const i=[];return t.forEach((e=>{n.contains(e)?r.has(e)&&i.push(e):(n.add(e),i.push(e))})),r.forEach((e=>{t.has(e)||n.remove(e)})),i}function jt(e,t,r){const o=e.style;(r||[]).forEach((e=>{o.removeProperty(e)}));const n=[];for(const i in t)o.getPropertyValue(i)||(n.push(i),o.setProperty(i,t[i]));return n}function Ot(e,t,r){let o;try{o=document.createElement("span")}catch(p){return e}const n=t.customisations,i=me(r,n),l=e[ut],a=Mt(ye(i.body),{"aria-hidden":"true",role:"img",...i.attributes});o.innerHTML=Rt(a);const s=o.childNodes[0],c=e.attributes;for(let m=0;m<c.length;m++){const e=c.item(m),t=e.name;"class"===t||s.hasAttribute(t)||s.setAttribute(t,e.value)}const u=Lt(s,Ft(t.icon),new Set(l&&l.addedClasses),e),d=jt(s,n.inline?{"vertical-align":"-0.125em"}:{},l&&l.addedStyles),f={...t,status:"loaded",addedClasses:u,addedStyles:d};return s[ut]=f,e.parentNode&&e.parentNode.replaceChild(s,e),s}const Ut={display:"inline-block"},Ht={"background-color":"currentColor"},Qt={"background-color":"transparent"},Kt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},qt={"-webkit-mask":Ht,mask:Ht,background:Qt};for(const Hi in qt){const e=qt[Hi];for(const t in Kt)e[Hi+"-"+t]=Kt[t]}function Jt(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let zt=!1;function Yt(){zt||(zt=!0,setTimeout((()=>{zt&&(zt=!1,Gt())})))}function Gt(e,t=!1){const r=Object.create(null);function o(e,t){const{provider:o,prefix:n,name:i}=e,l=ne(o,n),a=l.icons[i];if(a)return{status:"loaded",icon:a};if(l.missing.has(i))return{status:"missing"};if(t&&!(e=>{const t=ne(e.provider,e.prefix).pendingIcons;return!(!t||!t.has(e.name))})(e)){const e=r[o]||(r[o]=Object.create(null));(e[n]||(e[n]=new Set)).add(i)}return{status:"loading"}}(e?[e]:mt()).forEach((e=>{const r="function"==typeof e.node?e.node():e.node;if(!r||!r.querySelectorAll)return;let n=!1,i=!1;function l(t,r,o){if(i||(i=!0,St(e)),"SVG"!==t.tagName.toUpperCase()){const e=r.mode,n="mask"===e||"bg"!==e&&("style"===e?-1!==o.body.indexOf("currentColor"):null);if("boolean"==typeof n)return void function(e,t,r,o){const n=t.customisations,i=me(r,n),l=i.attributes,a=e[ut],s=Mt(i.body,{...l,width:r.width+"",height:r.height+""}),c=Lt(e,Ft(t.icon),new Set(a&&a.addedClasses)),u={"--svg":'url("'+(d=s,"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(d)+'")'),width:Jt(l.width),height:Jt(l.height),...Ut,...o?Ht:Qt};var d;n.inline&&(u["vertical-align"]="-0.125em");const f=jt(e,u,a&&a.addedStyles),p={...t,status:"loaded",addedClasses:c,addedStyles:f};e[ut]=p}(t,r,{...Y,...o},n)}Ot(t,r,o)}(function(e){const t=[];return e.querySelectorAll(Dt).forEach((e=>{const r=e[ut]||"svg"!==e.tagName.toLowerCase()?Nt(e):null;r&&t.push({node:e,props:r})})),t})(r).forEach((({node:e,props:t})=>{const r=e[ut];if(!r){const{status:r,icon:i}=o(t.icon,!0);return i?void l(e,t,i):(n=n||"loading"===r,void(e[ut]={...t,status:r}))}let i;if(function(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const r=e.customisations,o=t.customisations;for(const n in at)if(r[n]!==o[n])return!0;return!1}(r,t)){if(i=o(t.icon,r.name!==t.name),!i.icon)return n=n||"loading"===i.status,void Object.assign(r,{...t,status:i.status})}else{if("loading"!==r.status)return;if(i=o(t.icon,!1),!i.icon)return void(r.status=i.status)}l(e,t,i.icon)})),e.temporary&&!n?At(r):t&&n?Tt(r,!0):i&&e.observer&&wt(e)}));for(const n in r){const e=r[n];for(const t in e){const r=e[t];it(Array.from(r).map((e=>({provider:n,prefix:t,name:e}))),Yt)}}}function Xt(e,t,r=!1){const o=ae(e);if(!o)return null;const n=$(e),i=lt(at,t||{}),l=Ot(document.createElement("span"),{name:e,icon:n,customisations:i},o);return r?l.outerHTML:l}if("undefined"!=typeof document&&"undefined"!=typeof window){!function(){if(document.documentElement)return pt(document.documentElement);dt.push({node:()=>document.documentElement})}();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload;"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{"object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||se(e)}catch(t){}}))}setTimeout((()=>{xt(Gt),Gt()}))}if(je("",Ye),"undefined"!=typeof document&&"undefined"!=typeof window){Re();const e=window;if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(const e in t){try{const r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;qe(e,r)}catch(Oi){}}}}const Wt={_api:{getAPIConfig:Je,setAPIModule:je,sendAPIQuery:tt,setFetch:function(e){ze=e},getFetch:function(){return ze},listAPIProviders:function(){return Object.keys(He)}},addAPIProvider:qe,loadIcons:it,loadIcon:e=>new Promise(((t,r)=>{const o="string"==typeof e?$(e,!0):e;o?it([o||e],(n=>{if(n.length&&o){const e=ae(o);if(e)return void t({...Y,...e})}r(e)})):r(e)})),iconExists:function(e){return!!ae(e)},getIcon:function(e){const t=ae(e);return t?{...Y,...t}:null},listIcons:function(e,t){let r=[];return("string"==typeof e?[e]:Object.keys(oe)).forEach((e=>{("string"==typeof e&&"string"==typeof t?[t]:Object.keys(oe[e]||{})).forEach((t=>{const o=ne(e,t);r=r.concat(Object.keys(o.icons).map((r=>(""!==e?"@"+e+":":"")+t+":"+r)))}))})),r},addIcon:function(e,t){const r=$(e,!0,le);return!!r&&function(e,t,r){try{if("string"==typeof r.body)return e.icons[t]={...r},!0}catch(o){}return!1}(ne(r.provider,r.prefix),r.name,t)},addCollection:se,replaceIDs:ye,calculateSize:pe,buildIcon:me,getVersion:function(){return"3.1.1"},renderSVG:function(e,t){return Xt(e,t,!1)},renderHTML:function(e,t){return Xt(e,t,!0)},renderIcon:function(e,t){const r=ae(e);return r?me(r,lt(at,t||{})):null},scan:function(e){e?function(e){const t=ft(e);t?Gt(t):Gt({node:e,temporary:!0},!0)}(e):Gt()},observe:Tt,stopObserving:At,pauseObserver:function(e){if(e){const t=ft(e);t&&St(t)}else St()},resumeObserver:function(e){if(e){const t=ft(e);t&&wt(t)}else wt()},enableCache:function(e,t){Fe(e,!1!==t)},disableCache:function(e){Fe(e,!0)}};try{void 0===self.Iconify&&(self.Iconify=Wt)}catch(Ui){}const Zt=["xlink:href"],_t=["data-icon"],$t=Object.assign({name:"Icon"},{__name:"Icon",props:{icon:String,color:String,size:{type:Number,default:16},svgClass:{type:String,default:""}},setup(e){const{getPrefixCls:r}=T(),o=r("icon"),n=e,l=t.ref(null),a=t.computed((()=>{var e;return null==(e=n.icon)?void 0:e.startsWith("svg-icon:")})),s=t.computed((()=>t.unref(a)?`#icon-${n.icon.split("svg-icon:")[1]}`:n.icon)),c=t.computed((()=>{const{color:e,size:t}=n;return{fontSize:`${t}px`,height:"1em",color:e}})),u=t.computed((()=>{const{svgClass:e}=n;return`iconify ${e}`}));return t.watch((()=>n.icon),(e=>{(async e=>{if(t.unref(a))return;const r=t.unref(l);if(!r)return;if(await t.nextTick(),!e)return;const o=Wt.renderSVG(e,{});if(o)r.textContent="",r.appendChild(o);else{const t=document.createElement("span");t.className="iconify",t.dataset.icon=e,r.textContent="",r.appendChild(t)}})(e)})),(r,n)=>(t.openBlock(),t.createBlock(t.unref(i.ElIcon),{class:t.normalizeClass(t.unref(o)),color:e.color,size:e.size},{default:t.withCtx((()=>[t.unref(a)?(t.openBlock(),t.createElementBlock("svg",{key:0,class:t.normalizeClass(t.unref(u))},[t.createElementVNode("use",{"xlink:href":t.unref(s)},null,8,Zt)],2)):(t.openBlock(),t.createElementBlock("span",{key:1,ref_key:"elRef",ref:l,class:t.normalizeClass(r.$attrs.class),style:t.normalizeStyle(t.unref(c))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(u)),"data-icon":t.unref(s)},null,10,_t)],6))])),_:1},8,["class","color","size"]))}}),er=(e,t)=>{const r=e.__vccOpts||e;for(const[o,n]of t)r[o]=n;return r};let tr=null;const rr=(e,t)=>e?t.startsWith(e)?t:`${e}.${t}`:t,or=e=>{if(!tr)return{t:t=>rr(e,t)};const{t:t,...r}=tr.global;return{...r,t:(r,...o)=>r?r.includes(".")||e?t(rr(e,r),...o):r:""}},{getPrefixCls:nr}=T(),ir=nr("menu"),{renderMenuTitle:lr}=(()=>{const e=S(),r=t.computed((()=>e.getLayout));return{renderMenuTitle:(e,o,n)=>{const{t:i}=or(),{title:l="Please set title",icon:a}=e,s=t.computed((()=>{switch(r.value){case"left":return 0==o;case"top":return!1;case"topLeft":return"vertical"==n&&0==o}}));return t.createVNode(t.Fragment,null,[s.value&&a?t.createVNode($t,{icon:e.icon},null):void 0,t.createVNode("span",{class:[`${ir}__title`,"overflow-hidden overflow-ellipsis whitespace-nowrap text-ellipsis"]},[i(l)])])}}})();const{getPrefixCls:ar}=T(),sr=ar("menu"),cr=er(t.defineComponent({name:"Menu",props:{menuSelect:{type:Function,default:void 0},mode:{type:String,default:"vertical"}},setup(e){const r=S(),o=t.computed((()=>r.getLayout)),{push:n,currentRoute:a}=l.useRouter(),s=j(),c=t.computed((()=>{switch(t.unref(o)){case"left":return"vertical";case"top":return"horizontal";case"topLeft":return e.mode}})),u=t.computed((()=>"topLeft"==o.value&&"vertical"==e.mode?s.getLeftMenuRouters:s.getRouters)),d=t.computed((()=>r.getCollapse)),f=t.computed((()=>r.getUniqueOpened)),p=t.computed((()=>{const{meta:e,path:r}=t.unref(a);return e.activeMenu?e.activeMenu:r})),m=t=>{e.menuSelect&&e.menuSelect(t),D(t)?window.open(t):"topLeft"==o.value&&"horizontal"==e.mode?K(t,n):n(t)},h=()=>{if("top"===t.unref(o))return g();{let r;return t.createVNode(i.ElScrollbar,null,"function"==typeof(e=r=g())||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?r:{default:()=>[r]})}var e},g=()=>t.createVNode(i.ElMenu,{defaultActive:t.unref(p),mode:t.unref(c),collapse:"top"!==t.unref(o)&&("topLeft"!==t.unref(o)||"horizontal"!==e.mode)&&t.unref(d),uniqueOpened:"top"!==t.unref(o)&&t.unref(f),backgroundColor:"transparent",textColor:"var(--left-menu-text-color)",activeTextColor:"var(--left-menu-text-active-color)",popperClass:"vertical"===t.unref(c)?`${sr}-popper--vertical`:`${sr}-popper--horizontal`,onSelect:m},{default:()=>{const{renderMenuItem:r}=(()=>{const e=S(),r=t.computed((()=>e.getLayout)),o=(e,n,a="/",s=0)=>{const c=l.useRoute();return e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>{const l=e.meta??{},{oneShowingChild:u,onlyOneChild:d}=Q(e.children,e),f=D(e.path)?e.path:M(a,e.path);if(!u||(null==d?void 0:d.children)&&!(null==d?void 0:d.noShowingChildren)||(null==l?void 0:l.alwaysShow)){if("topLeft"==r.value&&"horizontal"==n){const e=c.path.includes(f);return e&&K(f),t.createVNode(i.ElMenuItem,{index:f,class:e?"is-active":""},{default:()=>lr(l,l,n)})}return t.createVNode(i.ElSubMenu,{index:f},{title:()=>lr(l,s,n),default:()=>o(e.children,n,f,s+1)})}return t.createVNode(i.ElMenuItem,{index:d?M(f,d.path):f},{default:()=>lr(d?null==d?void 0:d.meta:l,s,n)})}))};return{renderMenuItem:o}})();return r(u.value,e.mode)}});return()=>t.createVNode("div",{id:sr,class:[`${sr} ${sr}__${t.unref(c)}`,"h-[100%] overflow-hidden flex-col",{"w-[var(--left-menu-min-width)]":t.unref(d),"w-[var(--left-menu-max-width)]":!t.unref(d),"bg-[linear-gradient(var(--left-menu-bg-color))]":"left"==t.unref(o)||"topLeft"==t.unref(o)&&"vertical"==e.mode}]},[h()])}}),[["__scopeId","data-v-f85f5936"]]),ur=er(Object.assign({name:"MenuTrigger"},{__name:"MenuTrigger",props:{active:{type:Boolean,default:!1}},emits:["click","toggle"],setup(e,{emit:r}){const{getPrefixCls:o}=T(),n=o("menu-trigger"),i=e,l=r,a=()=>{l("click"),l("toggle",!i.active)};return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(n),"flex items-center justify-center cursor-pointer",{"is-active":i.active}]),onClick:a},[t.createElementVNode("div",{class:t.normalizeClass(`${t.unref(n)}__hamburger-icon`)},r[0]||(r[0]=[t.createElementVNode("span",{class:"line"},null,-1),t.createElementVNode("span",{class:"line"},null,-1),t.createElementVNode("span",{class:"line"},null,-1)]),2)],2))}}),[["__scopeId","data-v-08d82a5c"]]),dr={class:"sidebar-inner"},fr=["onClick"],pr=["onClick"],mr=["onClick"],hr=er(Object.assign({name:"ProductServicePanel"},{__name:"ProductServicePanel",props:{visible:{type:Boolean,default:!1}},emits:["update:visible","select"],setup(e,{emit:r}){const{getPrefixCls:o}=T(),n=o("product-service-panel"),{t:a}=or("layout"),s=e,c=r,u=l.useRouter(),d=j(),f=t.ref(""),p=t.ref(0),m=t.computed((()=>d.getRoleRouters)),h=t.computed((()=>{const e=f.value.toLowerCase().trim(),t=e=>e&&Array.isArray(e)?e.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})).map((e=>({...e,children:e.children?t(e.children):[]}))):[],r=t(m.value);if(!e)return r;const o=t=>t.reduce(((t,r)=>{var n;const i=((null==(n=r.meta)?void 0:n.title)||"").toLowerCase().includes(e),l=r.children?o(r.children):[];return(i||l.length>0)&&t.push({...r,children:l.length>0?l:r.children}),t}),[]);return o(r)})),g=t.computed((()=>h.value.map((e=>{var t,r;return{id:e.id,title:(null==(t=e.meta)?void 0:t.title)||e.name,icon:null==(r=e.meta)?void 0:r.icon,path:e.path,children:(e.children||[]).filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)}))}})))),v=t.computed((()=>{if(0===g.value.length)return[];const e=g.value[p.value];return(null==e?void 0:e.children)||[]})),y=(e,t="")=>{const r=t?`${t}/${e.path}`:e.path;if(e.children&&e.children.length>0){const t=e.children.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)}));if(t.length>0)return y(t[0],r)}return r},b=()=>{c("update:visible",!1),f.value="",p.value=0},C=(e,t="")=>{var r;const o=y(e,t);if(o){const e=d.getModuleId;if((null==(r=g.value[p.value])?void 0:r.id)===e)u.push(o.startsWith("/")?o:`/${o}`);else{const e=`${window.location.origin}${o.startsWith("/")?o:`/${o}`}`;window.location.href=e}b()}};return t.watch((()=>s.visible),(e=>{e&&(f.value="",p.value=0)})),(r,o)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx((()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(n)+"__overlay"]),onClick:b},[t.createVNode(t.Transition,{name:"slide-down"},{default:t.withCtx((()=>[e.visible?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([t.unref(n)]),onClick:o[1]||(o[1]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__body"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__sidebar"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__sidebar-title"])},[t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.allProducts")),1)],2),t.createVNode(t.unref(i.ElScrollbar),null,{default:t.withCtx((()=>[t.createElementVNode("div",dr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,((e,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,class:t.normalizeClass([t.unref(n)+"__category",{"is-active":p.value===r}]),onClick:e=>(e=>{p.value=e})(r)},[t.createElementVNode("span",null,t.toDisplayString(e.title),1)],10,fr)))),128))])])),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__content"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__header"])},[t.createVNode(t.unref(i.ElInput),{modelValue:f.value,"onUpdate:modelValue":o[0]||(o[0]=e=>f.value=e),placeholder:t.unref(a)("common.searchMenu"),clearable:"",size:"default"},{prefix:t.withCtx((()=>[t.createVNode(t.unref($t),{icon:"ep:search",size:16})])),_:1},8,["modelValue","placeholder"]),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__close"]),onClick:b},[t.createVNode(t.unref($t),{icon:"ep:close",size:18})],2)],2),t.createVNode(t.unref(i.ElScrollbar),null,{default:t.withCtx((()=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__grid-container"])},[v.value.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(v.value,((e,r)=>{var o,i;return t.openBlock(),t.createElementBlock("div",{key:r,class:t.normalizeClass([t.unref(n)+"__column"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-title"])},[t.createElementVNode("span",null,t.toDisplayString((null==(o=e.meta)?void 0:o.title)||e.name),1)],2),t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-list"])},[e.children&&e.children.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.children.filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hidden)})),(r=>{var o;return t.openBlock(),t.createElementBlock("div",{key:r.path,class:t.normalizeClass([t.unref(n)+"__column-item"]),onClick:t=>{var o;return C(r,`${null==(o=g.value[p.value])?void 0:o.path}/${e.path}`)}},[t.createElementVNode("span",null,t.toDisplayString((null==(o=r.meta)?void 0:o.title)||r.name),1)],10,pr)})),128)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([t.unref(n)+"__column-item",{[t.unref(n)+"__column-item--disabled"]:1===e.type}]),onClick:t=>{var r;return 2===e.type&&C(e,null==(r=g.value[p.value])?void 0:r.path)}},[t.createElementVNode("span",null,t.toDisplayString(1===e.type?t.unref(a)("common.noData")||"暂无":(null==(i=e.meta)?void 0:i.title)||e.name),1)],10,mr))],2)],2)})),128)):g.value[p.value]?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([t.unref(n)+"__column"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-list"])},[t.createElementVNode("div",{class:t.normalizeClass([t.unref(n)+"__column-item",t.unref(n)+"__column-item--disabled"])},[t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.noData")||"暂无"),1)],2)],2)],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([t.unref(n)+"__empty"])},[t.createVNode(t.unref($t),{icon:"ant-design:inbox-outlined",size:48}),t.createElementVNode("span",null,t.toDisplayString(t.unref(a)("common.noDataTitle")),1)],2))],2)])),_:1})],2)],2)],2)):t.createCommentVNode("",!0)])),_:1})],2)):t.createCommentVNode("",!0)])),_:1})]))}}),[["__scopeId","data-v-b7114eec"]]),gr=Object.assign({name:"Logo"},{__name:"Logo",setup(e){const{getPrefixCls:r}=T(),o=r("logo"),n=S(),i=t.computed((()=>n.getTitle)),l=t.computed((()=>n.getLayout)),a=t.computed((()=>n.getTheme)),s=t.ref(!1),c=e=>{s.value=e},u=t.computed((()=>"whiteLight"===a.value?"var(--el-color-primary)":"#fff"));return(e,r)=>{const n=t.resolveComponent("Icon");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass([t.unref(o),`${t.unref(o)}__Top`,"flex !h-[var(--top-tool-height)] items-center cursor-default relative decoration-none overflow-hidden"])},[t.createVNode(t.unref(ur),{class:"mr-12px",active:s.value,onToggle:c},null,8,["active"]),t.createVNode(n,{icon:"svg-icon:logo",color:u.value,svgClass:"!w-full !h-full",class:t.normalizeClass(["!w-[var(--logo-height)]","!h-[var(--logo-height)]"])},null,8,["color"]),t.createElementVNode("div",{class:t.normalizeClass(["ml-10px text-16px font-700",{"text-[var(--top-header-text-color)]":["left","top","topLeft"].includes(l.value)}]),style:t.normalizeStyle({color:u.value})},t.toDisplayString(i.value),7)],2),t.createVNode(t.unref(hr),{visible:s.value,"onUpdate:visible":r[0]||(r[0]=e=>s.value=e)},null,8,["visible"])])}}}),vr={class:"w-full min-w-1000px"},yr=Object.assign({name:"AppView"},{__name:"AppView",setup(e){const r=t.ref(!0);return t.provide("reload",(()=>{r.value=!1,t.nextTick((()=>r.value=!0))})),(e,o)=>{const n=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("section",vr,[t.unref(r)?(t.openBlock(),t.createBlock(n,{key:0},{default:t.withCtx((({Component:e,route:r})=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e),{key:r.fullPath}))])),_:1})):t.createCommentVNode("",!0)])}}});function br(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function Cr(e,t){return e&t}function Br(e,t){return e|t}function Er(e,t){return e^t}function xr(e,t){return e&~t}function Sr(e){if(0==e)return-1;var t=0;return 65535&e||(e>>=16,t+=16),255&e||(e>>=8,t+=8),15&e||(e>>=4,t+=4),3&e||(e>>=2,t+=2),1&e||++t,t}function wr(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Tr,Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function kr(e){var t,r,o="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),o+=Ar.charAt(r>>6)+Ar.charAt(63&r);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),o+=Ar.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),o+=Ar.charAt(r>>2)+Ar.charAt((3&r)<<4));(3&o.length)>0;)o+="=";return o}var Ir,Pr=function(e){var t;if(void 0===Tr){var r="0123456789ABCDEF",o=" \f\n\r\t \u2028\u2029";for(Tr={},t=0;t<16;++t)Tr[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Tr[r.charAt(t)]=t;for(t=0;t<8;++t)Tr[o.charAt(t)]=-1}var n=[],i=0,l=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=Tr[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++l>=2?(n[n.length]=i,i=0,l=0):i<<=4}}if(l)throw new Error("Hex encoding incomplete: 4 bits missing");return n},Nr={decode:function(e){var t;if(void 0===Ir){var r="= \f\n\r\t \u2028\u2029";for(Ir=Object.create(null),t=0;t<64;++t)Ir["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(Ir["-"]=62,Ir._=63,t=0;t<9;++t)Ir[r.charAt(t)]=-1}var o=[],n=0,i=0;for(t=0;t<e.length;++t){var l=e.charAt(t);if("="==l)break;if(-1!=(l=Ir[l])){if(void 0===l)throw new Error("Illegal character at offset "+t);n|=l,++i>=4?(o[o.length]=n>>16,o[o.length]=n>>8&255,o[o.length]=255&n,n=0,i=0):n<<=6}}switch(i){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=n>>10;break;case 3:o[o.length]=n>>16,o[o.length]=n>>8&255}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Nr.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Nr.decode(e)}},Dr=1e13,Mr=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var r,o,n=this.buf,i=n.length;for(r=0;r<i;++r)(o=n[r]*e+t)<Dr?t=0:o-=(t=0|o/Dr)*Dr,n[r]=o;t>0&&(n[r]=t)},e.prototype.sub=function(e){var t,r,o=this.buf,n=o.length;for(t=0;t<n;++t)(r=o[t]-e)<0?(r+=Dr,e=1):e=0,o[t]=r;for(;0===o[o.length-1];)o.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,r=t[t.length-1].toString(),o=t.length-2;o>=0;--o)r+=(Dr+t[o]).toString().substring(1);return r},e.prototype.valueOf=function(){for(var e=this.buf,t=0,r=e.length-1;r>=0;--r)t=t*Dr+e[r];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Vr=/^(\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)?)?$/,Rr=/^(\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 Fr(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var Lr,jr=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset ".concat(e," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,r){for(var o="",n=e;n<t;++n)if(o+=this.hexByte(this.get(n)),!0!==r)switch(15&n){case 7:o+=" ";break;case 15:o+="\n";break;default:o+=" "}return o},e.prototype.isASCII=function(e,t){for(var r=e;r<t;++r){var o=this.get(r);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var r="",o=e;o<t;++o)r+=String.fromCharCode(this.get(o));return r},e.prototype.parseStringUTF=function(e,t){for(var r="",o=e;o<t;){var n=this.get(o++);r+=n<128?String.fromCharCode(n):n>191&&n<224?String.fromCharCode((31&n)<<6|63&this.get(o++)):String.fromCharCode((15&n)<<12|(63&this.get(o++))<<6|63&this.get(o++))}return r},e.prototype.parseStringBMP=function(e,t){for(var r,o,n="",i=e;i<t;)r=this.get(i++),o=this.get(i++),n+=String.fromCharCode(r<<8|o);return n},e.prototype.parseTime=function(e,t,r){var o=this.parseStringISO(e,t),n=(r?Vr:Rr).exec(o);return n?(r&&(n[1]=+n[1],n[1]+=+n[1]<70?2e3:1900),o=n[1]+"-"+n[2]+"-"+n[3]+" "+n[4],n[5]&&(o+=":"+n[5],n[6]&&(o+=":"+n[6],n[7]&&(o+="."+n[7]))),n[8]&&(o+=" UTC","Z"!=n[8]&&(o+=n[8],n[9]&&(o+=":"+n[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(e,t){for(var r,o=this.get(e),n=o>127,i=n?255:0,l="";o==i&&++e<t;)o=this.get(e);if(0===(r=t-e))return n?-1:0;if(r>4){for(l=o,r<<=3;!(128&(+l^i));)l=+l<<1,--r;l="("+r+" bit)\n"}n&&(o-=256);for(var a=new Mr(o),s=e+1;s<t;++s)a.mulAdd(256,this.get(s));return l+a.toString()},e.prototype.parseBitString=function(e,t,r){for(var o=this.get(e),n="("+((t-e-1<<3)-o)+" bit)\n",i="",l=e+1;l<t;++l){for(var a=this.get(l),s=l==t-1?o:0,c=7;c>=s;--c)i+=a>>c&1?"1":"0";if(i.length>r)return n+Fr(i,r)}return n+i},e.prototype.parseOctetString=function(e,t,r){if(this.isASCII(e,t))return Fr(this.parseStringISO(e,t),r);var o=t-e,n="("+o+" byte)\n";o>(r/=2)&&(t=e+r);for(var i=e;i<t;++i)n+=this.hexByte(this.get(i));return o>r&&(n+="…"),n},e.prototype.parseOID=function(e,t,r){for(var o="",n=new Mr,i=0,l=e;l<t;++l){var a=this.get(l);if(n.mulAdd(128,127&a),i+=7,!(128&a)){if(""===o)if((n=n.simplify())instanceof Mr)n.sub(80),o="2."+n.toString();else{var s=n<80?n<40?0:1:2;o=s+"."+(n-40*s)}else o+="."+n.toString();if(o.length>r)return Fr(o,r);n=new Mr,i=0}}return i>0&&(o+=".incomplete"),o},e}(),Or=function(){function e(e,t,r,o,n){if(!(o instanceof Ur))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=r,this.tag=o,this.sub=n}return e.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()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),r=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+r,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+r,e);case 6:return this.stream.parseOID(t,t+r,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Fr(this.stream.parseStringUTF(t,t+r),e);case 18:case 19:case 20:case 21:case 22:case 26:return Fr(this.stream.parseStringISO(t,t+r),e);case 30:return Fr(this.stream.parseStringBMP(t,t+r),e);case 23:case 24:return this.stream.parseTime(t,t+r,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var r=0,o=this.sub.length;r<o;++r)t+=this.sub[r].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),r=127&t;if(r==t)return r;if(r>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===r)return null;t=0;for(var o=0;o<r;++o)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,r=2*this.length;return e.substr(t,r)},e.decode=function(t){var r;r=t instanceof jr?t:new jr(t,0);var o=new jr(r),n=new Ur(r),i=e.decodeLength(r),l=r.pos,a=l-o.pos,s=null,c=function(){var t=[];if(null!==i){for(var o=l+i;r.pos<o;)t[t.length]=e.decode(r);if(r.pos!=o)throw new Error("Content size is not correct for container starting at offset "+l)}else try{for(;;){var n=e.decode(r);if(n.tag.isEOC())break;t[t.length]=n}i=l-r.pos}catch(Oi){throw new Error("Exception while decoding undefined length content: "+Oi)}return t};if(n.tagConstructed)s=c();else if(n.isUniversal()&&(3==n.tagNumber||4==n.tagNumber))try{if(3==n.tagNumber&&0!=r.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");s=c();for(var u=0;u<s.length;++u)if(s[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(Oi){s=null}if(null===s){if(null===i)throw new Error("We can't skip over an invalid tag with undefined length at offset "+l);r.pos=l+Math.abs(i)}return new e(o,a,i,n,s)},e}(),Ur=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=!!(32&t),this.tagNumber=31&t,31==this.tagNumber){var r=new Mr;do{t=e.get(),r.mulAdd(128,127&t)}while(128&t);this.tagNumber=r.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Hr=[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],Qr=(1<<26)/Hr[Hr.length-1],Kr=function(){function e(e,t,r){null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,o=(1<<t)-1,n=!1,i="",l=this.t,a=this.DB-l*this.DB%t;if(l-- >0)for(a<this.DB&&(r=this[l]>>a)>0&&(n=!0,i=br(r));l>=0;)a<t?(r=(this[l]&(1<<a)-1)<<t-a,r|=this[--l]>>(a+=this.DB-t)):(r=this[l]>>(a-=t)&o,a<=0&&(a+=this.DB,--l)),r>0&&(n=!0),n&&(i+=br(r));return n?i:"0"},e.prototype.negate=function(){var t=Gr();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+ro(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Gr();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new Jr(t):new zr(t),this.exp(e,r)},e.prototype.clone=function(){var e=Gr();return this.copyTo(e),e},e.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]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var r,o=this.DB-e*this.DB%8,n=0;if(e-- >0)for(o<this.DB&&(r=this[e]>>o)!=(this.s&this.DM)>>o&&(t[n++]=r|this.s<<this.DB-o);e>=0;)o<8?(r=(this[e]&(1<<o)-1)<<8-o,r|=this[--e]>>(o+=this.DB-8)):(r=this[e]>>(o-=8)&255,o<=0&&(o+=this.DB,--e)),128&r&&(r|=-256),0==n&&(128&this.s)!=(128&r)&&++n,(n>0||r!=this.s)&&(t[n++]=r);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Gr();return this.bitwiseTo(e,Cr,t),t},e.prototype.or=function(e){var t=Gr();return this.bitwiseTo(e,Br,t),t},e.prototype.xor=function(e){var t=Gr();return this.bitwiseTo(e,Er,t),t},e.prototype.andNot=function(e){var t=Gr();return this.bitwiseTo(e,xr,t),t},e.prototype.not=function(){for(var e=Gr(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Gr();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Gr();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Sr(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=wr(this[r]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:!!(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Br)},e.prototype.clearBit=function(e){return this.changeBit(e,xr)},e.prototype.flipBit=function(e){return this.changeBit(e,Er)},e.prototype.add=function(e){var t=Gr();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Gr();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Gr();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Gr();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Gr();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Gr(),r=Gr();return this.divRemTo(e,t,r),[t,r]},e.prototype.modPow=function(e,t){var r,o,n=e.bitLength(),i=to(1);if(n<=0)return i;r=n<18?1:n<48?3:n<144?4:n<768?5:6,o=n<8?new Jr(t):t.isEven()?new Yr(t):new zr(t);var l=[],a=3,s=r-1,c=(1<<r)-1;if(l[1]=o.convert(this),r>1){var u=Gr();for(o.sqrTo(l[1],u);a<=c;)l[a]=Gr(),o.mulTo(u,l[a-2],l[a]),a+=2}var d,f,p=e.t-1,m=!0,h=Gr();for(n=ro(e[p])-1;p>=0;){for(n>=s?d=e[p]>>n-s&c:(d=(e[p]&(1<<n+1)-1)<<s-n,p>0&&(d|=e[p-1]>>this.DB+n-s)),a=r;!(1&d);)d>>=1,--a;if((n-=a)<0&&(n+=this.DB,--p),m)l[d].copyTo(i),m=!1;else{for(;a>1;)o.sqrTo(i,h),o.sqrTo(h,i),a-=2;a>0?o.sqrTo(i,h):(f=i,i=h,h=f),o.mulTo(h,l[d],i)}for(;p>=0&&!(e[p]&1<<n);)o.sqrTo(i,h),f=i,i=h,h=f,--n<0&&(n=this.DB-1,--p)}return o.revert(i)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||0==t.signum())return e.ZERO;for(var o=t.clone(),n=this.clone(),i=to(1),l=to(0),a=to(0),s=to(1);0!=o.signum();){for(;o.isEven();)o.rShiftTo(1,o),r?(i.isEven()&&l.isEven()||(i.addTo(this,i),l.subTo(t,l)),i.rShiftTo(1,i)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);for(;n.isEven();)n.rShiftTo(1,n),r?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);o.compareTo(n)>=0?(o.subTo(n,o),r&&i.subTo(a,i),l.subTo(s,l)):(n.subTo(o,n),r&&a.subTo(i,a),s.subTo(l,s))}return 0!=n.compareTo(e.ONE)?e.ZERO:s.compareTo(t)>=0?s.subtract(t):s.signum()<0?(s.addTo(t,s),s.signum()<0?s.add(t):s):s},e.prototype.pow=function(e){return this.exp(e,new qr)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var o=t;t=r,r=o}var n=t.getLowestSetBit(),i=r.getLowestSetBit();if(i<0)return t;for(n<i&&(i=n),i>0&&(t.rShiftTo(i,t),r.rShiftTo(i,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r},e.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=Hr[Hr.length-1]){for(t=0;t<Hr.length;++t)if(r[0]==Hr[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<Hr.length;){for(var o=Hr[t],n=t+1;n<Hr.length&&o<Qr;)o*=Hr[n++];for(o=r.modInt(o);t<n;)if(o%Hr[t++]==0)return!1}return r.millerRabin(e)},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,r){var o;if(16==r)o=4;else if(8==r)o=3;else if(256==r)o=8;else if(2==r)o=1;else if(32==r)o=5;else{if(4!=r)return void this.fromRadix(t,r);o=2}this.t=0,this.s=0;for(var n=t.length,i=!1,l=0;--n>=0;){var a=8==o?255&+t[n]:eo(t,n);a<0?"-"==t.charAt(n)&&(i=!0):(i=!1,0==l?this[this.t++]=a:l+o>this.DB?(this[this.t-1]|=(a&(1<<this.DB-l)-1)<<l,this[this.t++]=a>>this.DB-l):this[this.t-1]|=a<<l,(l+=o)>=this.DB&&(l-=this.DB))}8==o&&128&+t[0]&&(this.s=-1,l>0&&(this[this.t-1]|=(1<<this.DB-l)-1<<l)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.lShiftTo=function(e,t){for(var r=e%this.DB,o=this.DB-r,n=(1<<o)-1,i=Math.floor(e/this.DB),l=this.s<<r&this.DM,a=this.t-1;a>=0;--a)t[a+i+1]=this[a]>>o|l,l=(this[a]&n)<<r;for(a=i-1;a>=0;--a)t[a]=0;t[i]=l,t.t=this.t+i+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var o=e%this.DB,n=this.DB-o,i=(1<<o)-1;t[0]=this[r]>>o;for(var l=r+1;l<this.t;++l)t[l-r-1]|=(this[l]&i)<<n,t[l-r]=this[l]>>o;o>0&&(t[this.t-r-1]|=(this.s&i)<<n),t.t=this.t-r,t.clamp()}},e.prototype.subTo=function(e,t){for(var r=0,o=0,n=Math.min(e.t,this.t);r<n;)o+=this[r]-e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o-=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o-=e[r],t[r++]=o&this.DM,o>>=this.DB;o-=e.s}t.s=o<0?-1:0,o<-1?t[r++]=this.DV+o:o>0&&(t[r++]=o),t.t=r,t.clamp()},e.prototype.multiplyTo=function(t,r){var o=this.abs(),n=t.abs(),i=o.t;for(r.t=i+n.t;--i>=0;)r[i]=0;for(i=0;i<n.t;++i)r[i+o.t]=o.am(0,n[i],r,i,0,o.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var o=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,o,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,r,o){var n=t.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t)return null!=r&&r.fromInt(0),void(null!=o&&this.copyTo(o));null==o&&(o=Gr());var l=Gr(),a=this.s,s=t.s,c=this.DB-ro(n[n.t-1]);c>0?(n.lShiftTo(c,l),i.lShiftTo(c,o)):(n.copyTo(l),i.copyTo(o));var u=l.t,d=l[u-1];if(0!=d){var f=d*(1<<this.F1)+(u>1?l[u-2]>>this.F2:0),p=this.FV/f,m=(1<<this.F1)/f,h=1<<this.F2,g=o.t,v=g-u,y=null==r?Gr():r;for(l.dlShiftTo(v,y),o.compareTo(y)>=0&&(o[o.t++]=1,o.subTo(y,o)),e.ONE.dlShiftTo(u,y),y.subTo(l,l);l.t<u;)l[l.t++]=0;for(;--v>=0;){var b=o[--g]==d?this.DM:Math.floor(o[g]*p+(o[g-1]+h)*m);if((o[g]+=l.am(0,b,o,v,0,u))<b)for(l.dlShiftTo(v,y),o.subTo(y,o);o[g]<--b;)o.subTo(y,o)}null!=r&&(o.drShiftTo(u,r),a!=s&&e.ZERO.subTo(r,r)),o.t=u,o.clamp(),c>0&&o.rShiftTo(c,o),a<0&&e.ZERO.subTo(o,o)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(!(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var o=Gr(),n=Gr(),i=r.convert(this),l=ro(t)-1;for(i.copyTo(o);--l>=0;)if(r.sqrTo(o,n),(t&1<<l)>0)r.mulTo(n,i,o);else{var a=o;o=n,n=a}return r.revert(o)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),o=to(r),n=Gr(),i=Gr(),l="";for(this.divRemTo(o,n,i);n.signum()>0;)l=(r+i.intValue()).toString(e).substr(1)+l,n.divRemTo(o,n,i);return i.intValue().toString(e)+l},e.prototype.fromRadix=function(t,r){this.fromInt(0),null==r&&(r=10);for(var o=this.chunkSize(r),n=Math.pow(r,o),i=!1,l=0,a=0,s=0;s<t.length;++s){var c=eo(t,s);c<0?"-"==t.charAt(s)&&0==this.signum()&&(i=!0):(a=r*a+c,++l>=o&&(this.dMultiply(n),this.dAddOffset(a,0),l=0,a=0))}l>0&&(this.dMultiply(Math.pow(r,l)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,o){if("number"==typeof r)if(t<2)this.fromInt(1);else for(this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Br,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var n=[],i=7&t;n.length=1+(t>>3),r.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}},e.prototype.bitwiseTo=function(e,t,r){var o,n,i=Math.min(e.t,this.t);for(o=0;o<i;++o)r[o]=t(this[o],e[o]);if(e.t<this.t){for(n=e.s&this.DM,o=i;o<this.t;++o)r[o]=t(this[o],n);r.t=this.t}else{for(n=this.s&this.DM,o=i;o<e.t;++o)r[o]=t(n,e[o]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},e.prototype.changeBit=function(t,r){var o=e.ONE.shiftLeft(t);return this.bitwiseTo(o,r,o),o},e.prototype.addTo=function(e,t){for(var r=0,o=0,n=Math.min(e.t,this.t);r<n;)o+=this[r]+e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o+=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o+=e[r],t[r++]=o&this.DM,o>>=this.DB;o+=e.s}t.s=o<0?-1:0,o>0?t[r++]=o:o<-1&&(t[r++]=this.DV+o),t.t=r,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,r){var o=Math.min(this.t+e.t,t);for(r.s=0,r.t=o;o>0;)r[--o]=0;for(var n=r.t-this.t;o<n;++o)r[o+this.t]=this.am(0,e[o],r,o,0,this.t);for(n=Math.min(e.t,t);o<n;++o)this.am(0,e[o],r,o,0,t-o);r.clamp()},e.prototype.multiplyUpperTo=function(e,t,r){--t;var o=r.t=this.t+e.t-t;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(t-this.t,0);o<e.t;++o)r[this.t+o-t]=this.am(t-o,e[o],r,0,0,this.t+o-t);r.clamp(),r.drShiftTo(1,r)},e.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var o=this.t-1;o>=0;--o)r=(t*r+this[o])%e;return r},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),o=r.getLowestSetBit();if(o<=0)return!1;var n=r.shiftRight(o);(t=t+1>>1)>Hr.length&&(t=Hr.length);for(var i=Gr(),l=0;l<t;++l){i.fromInt(Hr[Math.floor(Math.random()*Hr.length)]);var a=i.modPow(n,this);if(0!=a.compareTo(e.ONE)&&0!=a.compareTo(r)){for(var s=1;s++<o&&0!=a.compareTo(r);)if(0==(a=a.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=a.compareTo(r))return!1}}return!0},e.prototype.square=function(){var e=Gr();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var r=this.s<0?this.negate():this.clone(),o=e.s<0?e.negate():e.clone();if(r.compareTo(o)<0){var n=r;r=o,o=n}var i=r.getLowestSetBit(),l=o.getLowestSetBit();if(l<0)t(r);else{i<l&&(l=i),l>0&&(r.rShiftTo(l,r),o.rShiftTo(l,o));var a=function(){(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=o.getLowestSetBit())>0&&o.rShiftTo(i,o),r.compareTo(o)>=0?(r.subTo(o,r),r.rShiftTo(1,r)):(o.subTo(r,o),o.rShiftTo(1,o)),r.signum()>0?setTimeout(a,0):(l>0&&o.lShiftTo(l,o),setTimeout((function(){t(o)}),0))};setTimeout(a,10)}},e.prototype.fromNumberAsync=function(t,r,o,n){if("number"==typeof r)if(t<2)this.fromInt(1);else{this.fromNumber(t,o),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Br,this),this.isEven()&&this.dAddOffset(1,0);var i=this,l=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(r)?setTimeout((function(){n()}),0):setTimeout(l,0)};setTimeout(l,0)}else{var a=[],s=7&t;a.length=1+(t>>3),r.nextBytes(a),s>0?a[0]&=(1<<s)-1:a[0]=0,this.fromString(a,256)}},e}(),qr=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Jr=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),zr=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=Gr();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Kr.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Gr();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],o=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,o,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Yr=function(){function e(e){this.m=e,this.r2=Gr(),this.q3=Gr(),Kr.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Gr();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Gr(){return new Kr(null)}function Xr(e,t){return new Kr(e,t)}var Wr="undefined"!=typeof navigator;Wr&&"Microsoft Internet Explorer"==navigator.appName?(Kr.prototype.am=function(e,t,r,o,n,i){for(var l=32767&t,a=t>>15;--i>=0;){var s=32767&this[e],c=this[e++]>>15,u=a*s+c*l;n=((s=l*s+((32767&u)<<15)+r[o]+(1073741823&n))>>>30)+(u>>>15)+a*c+(n>>>30),r[o++]=1073741823&s}return n},Lr=30):Wr&&"Netscape"!=navigator.appName?(Kr.prototype.am=function(e,t,r,o,n,i){for(;--i>=0;){var l=t*this[e++]+r[o]+n;n=Math.floor(l/67108864),r[o++]=67108863&l}return n},Lr=26):(Kr.prototype.am=function(e,t,r,o,n,i){for(var l=16383&t,a=t>>14;--i>=0;){var s=16383&this[e],c=this[e++]>>14,u=a*s+c*l;n=((s=l*s+((16383&u)<<14)+r[o]+n)>>28)+(u>>14)+a*c,r[o++]=268435455&s}return n},Lr=28),Kr.prototype.DB=Lr,Kr.prototype.DM=(1<<Lr)-1,Kr.prototype.DV=1<<Lr;Kr.prototype.FV=Math.pow(2,52),Kr.prototype.F1=52-Lr,Kr.prototype.F2=2*Lr-52;var Zr,_r,$r=[];for(Zr="0".charCodeAt(0),_r=0;_r<=9;++_r)$r[Zr++]=_r;for(Zr="a".charCodeAt(0),_r=10;_r<36;++_r)$r[Zr++]=_r;for(Zr="A".charCodeAt(0),_r=10;_r<36;++_r)$r[Zr++]=_r;function eo(e,t){var r=$r[e.charCodeAt(t)];return null==r?-1:r}function to(e){var t=Gr();return t.fromInt(e),t}function ro(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}Kr.ZERO=to(0),Kr.ONE=to(1);var oo=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,r,o;for(t=0;t<256;++t)this.S[t]=t;for(r=0,t=0;t<256;++t)r=r+this.S[t]+e[t%e.length]&255,o=this.S[t],this.S[t]=this.S[r],this.S[r]=o;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}();var no,io,lo=null;if(null==lo){lo=[],io=0;var ao=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var so=new Uint32Array(256);for(window.crypto.getRandomValues(so),ao=0;ao<so.length;++ao)lo[io++]=255&so[ao]}var co=0,uo=function(e){if((co=co||0)>=256||io>=256)window.removeEventListener?window.removeEventListener("mousemove",uo,!1):window.detachEvent&&window.detachEvent("onmousemove",uo);else try{var t=e.x+e.y;lo[io++]=255&t,co+=1}catch(Oi){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",uo,!1):window.attachEvent&&window.attachEvent("onmousemove",uo))}function fo(){if(null==no){for(no=new oo;io<256;){var e=Math.floor(65536*Math.random());lo[io++]=255&e}for(no.init(lo),io=0;io<lo.length;++io)lo[io]=0;io=0}return no.next()}var po=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=fo()},e}();var mo=function(){function e(){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 e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),r=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(r)<0;)t=t.add(this.p);return t.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16))},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,r=function(e,t){if(t<e.length+11)return null;for(var r=[],o=e.length-1;o>=0&&t>0;){var n=e.charCodeAt(o--);n<128?r[--t]=n:n>127&&n<2048?(r[--t]=63&n|128,r[--t]=n>>6|192):(r[--t]=63&n|128,r[--t]=n>>6&63|128,r[--t]=n>>12|224)}r[--t]=0;for(var i=new po,l=[];t>2;){for(l[0]=0;0==l[0];)i.nextBytes(l);r[--t]=l[0]}return r[--t]=2,r[--t]=0,new Kr(r)}(e,t);if(null==r)return null;var o=this.doPublic(r);if(null==o)return null;for(var n=o.toString(16),i=n.length,l=0;l<2*t-i;l++)n="0"+n;return n},e.prototype.setPrivate=function(e,t,r){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16),this.d=Xr(r,16))},e.prototype.setPrivateEx=function(e,t,r,o,n,i,l,a){null!=e&&null!=t&&e.length>0&&t.length>0&&(this.n=Xr(e,16),this.e=parseInt(t,16),this.d=Xr(r,16),this.p=Xr(o,16),this.q=Xr(n,16),this.dmp1=Xr(i,16),this.dmq1=Xr(l,16),this.coeff=Xr(a,16))},e.prototype.generate=function(e,t){var r=new po,o=e>>1;this.e=parseInt(t,16);for(var n=new Kr(t,16);;){for(;this.p=new Kr(e-o,1,r),0!=this.p.subtract(Kr.ONE).gcd(n).compareTo(Kr.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Kr(o,1,r),0!=this.q.subtract(Kr.ONE).gcd(n).compareTo(Kr.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var i=this.p;this.p=this.q,this.q=i}var l=this.p.subtract(Kr.ONE),a=this.q.subtract(Kr.ONE),s=l.multiply(a);if(0==s.gcd(n).compareTo(Kr.ONE)){this.n=this.p.multiply(this.q),this.d=n.modInverse(s),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Xr(e,16),r=this.doPrivate(t);return null==r?null:function(e,t){var r=e.toByteArray(),o=0;for(;o<r.length&&0==r[o];)++o;if(r.length-o!=t-1||2!=r[o])return null;++o;for(;0!=r[o];)if(++o>=r.length)return null;var n="";for(;++o<r.length;){var i=255&r[o];i<128?n+=String.fromCharCode(i):i>191&&i<224?(n+=String.fromCharCode((31&i)<<6|63&r[o+1]),++o):(n+=String.fromCharCode((15&i)<<12|(63&r[o+1])<<6|63&r[o+2]),o+=2)}return n}(r,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,r){var o=new po,n=e>>1;this.e=parseInt(t,16);var i=new Kr(t,16),l=this,a=function(){var t=function(){if(l.p.compareTo(l.q)<=0){var e=l.p;l.p=l.q,l.q=e}var t=l.p.subtract(Kr.ONE),o=l.q.subtract(Kr.ONE),n=t.multiply(o);0==n.gcd(i).compareTo(Kr.ONE)?(l.n=l.p.multiply(l.q),l.d=i.modInverse(n),l.dmp1=l.d.mod(t),l.dmq1=l.d.mod(o),l.coeff=l.q.modInverse(l.p),setTimeout((function(){r()}),0)):setTimeout(a,0)},s=function(){l.q=Gr(),l.q.fromNumberAsync(n,1,o,(function(){l.q.subtract(Kr.ONE).gcda(i,(function(e){0==e.compareTo(Kr.ONE)&&l.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(s,0)}))}))},c=function(){l.p=Gr(),l.p.fromNumberAsync(e-n,1,o,(function(){l.p.subtract(Kr.ONE).gcda(i,(function(e){0==e.compareTo(Kr.ONE)&&l.p.isProbablePrime(10)?setTimeout(s,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(a,0)},e.prototype.sign=function(e,t,r){var o=function(e,t){if(t<e.length+22)return null;for(var r=t-e.length-6,o="",n=0;n<r;n+=2)o+="ff";return Xr("0001"+o+"00"+e,16)}((ho[r]||"")+t(e).toString(),this.n.bitLength()/4);if(null==o)return null;var n=this.doPrivate(o);if(null==n)return null;var i=n.toString(16);return 1&i.length?"0"+i:i},e.prototype.verify=function(e,t,r){var o=Xr(t,16),n=this.doPublic(o);return null==n?null:function(e){for(var t in ho)if(ho.hasOwnProperty(t)){var r=ho[t],o=r.length;if(e.substr(0,o)==r)return e.substr(o)}return e}
8
8
  /*!
9
9
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
10
10
  Code licensed under the BSD License:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmp-layout",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "基于 Vue3、Element Plus 的后台管理布局组件库",
5
5
  "main": "./bmp-layout.umd.js",
6
6
  "module": "./bmp-layout.es.js",