import{J as t,K as e,L as r,N as s,O as i}from"./index-CMW5gdnj.js";const n=(t,e)=>{const r=t.__vccOpts||t;for(const[s,i]of e)r[s]=i;return r};function o(t,e){return"string"==typeof t?e:t}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function f(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var r=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var s=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,s.get?s:{enumerable:!0,get:function(){return t[e]}})})),r}var u={exports:{}};const c=f(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))); /** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.8.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2023 * @license MIT */ var l;l=u,function(){var t="input is invalid type",e="object"==typeof window,r=e?window:{};r.JS_MD5_NO_WINDOW&&(e=!1);var s=!e&&"object"==typeof self,i=!r.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;i?r=a:s&&(r=self);var n,o=!r.JS_MD5_NO_COMMON_JS&&l.exports,h=!r.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,f="0123456789abcdef".split(""),u=[128,32768,8388608,-2147483648],p=[0,8,16,24],y=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(h){var m=new ArrayBuffer(68);n=new Uint8Array(m),g=new Uint32Array(m)}var b=Array.isArray;!r.JS_MD5_NO_NODE_JS&&b||(b=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var v=ArrayBuffer.isView;!h||!r.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&v||(v=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var w=function(e){var r=typeof e;if("string"===r)return[e,!0];if("object"!==r||null===e)throw new Error(t);if(h&&e.constructor===ArrayBuffer)return[new Uint8Array(e),!1];if(!b(e)&&!v(e))throw new Error(t);return[e,!1]},_=function(t){return function(e){return new A(!0).update(e)[t]()}},x=function(e){var s,i=c,n=c.Buffer;return s=n.from&&!r.JS_MD5_NO_BUFFER_FROM?n.from:function(t){return new n(t)},function(r){if("string"==typeof r)return i.createHash("md5").update(r,"utf8").digest("hex");if(null==r)throw new Error(t);return r.constructor===ArrayBuffer&&(r=new Uint8Array(r)),b(r)||v(r)||r.constructor===n?i.createHash("md5").update(s(r)).digest("hex"):e(r)}},S=function(t){return function(e,r){return new O(e,!0).update(r)[t]()}};function A(t){if(t)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=n;else if(h){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function O(t,e){var r,s=w(t);if(t=s[0],s[1]){var i,n=[],o=t.length,a=0;for(r=0;r>>6,n[a++]=128|63&i):i<55296||i>=57344?(n[a++]=224|i>>>12,n[a++]=128|i>>>6&63,n[a++]=128|63&i):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++r)),n[a++]=240|i>>>18,n[a++]=128|i>>>12&63,n[a++]=128|i>>>6&63,n[a++]=128|63&i);t=n}t.length>64&&(t=new A(!0).update(t).array());var h=[],f=[];for(r=0;r<64;++r){var u=t[r]||0;h[r]=92^u,f[r]=54^u}A.call(this,e),this.update(f),this.oKeyPad=h,this.inner=!0,this.sharedMemory=e}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e=w(t);t=e[0];for(var r,s,i=e[1],n=0,o=t.length,a=this.blocks,f=this.buffer8;n>>6,f[s++]=128|63&r):r<55296||r>=57344?(f[s++]=224|r>>>12,f[s++]=128|r>>>6&63,f[s++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++n)),f[s++]=240|r>>>18,f[s++]=128|r>>>12&63,f[s++]=128|r>>>6&63,f[s++]=128|63&r);else for(s=this.start;n>>2]|=r<>>2]|=(192|r>>>6)<>>2]|=(128|63&r)<=57344?(a[s>>>2]|=(224|r>>>12)<>>2]|=(128|r>>>6&63)<>>2]|=(128|63&r)<>>2]|=(240|r>>>18)<>>2]|=(128|r>>>12&63)<>>2]|=(128|r>>>6&63)<>>2]|=(128|63&r)<>>2]|=t[n]<=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=u[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},A.prototype.hash=function(){var t,e,r,s,i,n,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(s=((s=(-1732584194^2004318071&t)+o[1]-117830708)<<12|s>>>20)+t<<0)&(-271733879^t))+o[2]-1126478375)<<17|r>>>15)+s<<0)&(s^t))+o[3]-1316259209)<<22|e>>>10)+r<<0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((s=this.h3)^e&(r^s))+o[0]-680876936)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+o[1]-389564586)<<12|s>>>20)+t<<0)&(t^e))+o[2]+606105819)<<17|r>>>15)+s<<0)&(s^t))+o[3]-1044525330)<<22|e>>>10)+r<<0),e=((e+=((t=((t+=(s^e&(r^s))+o[4]-176418897)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+o[5]+1200080426)<<12|s>>>20)+t<<0)&(t^e))+o[6]-1473231341)<<17|r>>>15)+s<<0)&(s^t))+o[7]-45705983)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+o[8]+1770035416)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+o[9]-1958414417)<<12|s>>>20)+t<<0)&(t^e))+o[10]-42063)<<17|r>>>15)+s<<0)&(s^t))+o[11]-1990404162)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(s^e&(r^s))+o[12]+1804603682)<<7|t>>>25)+e<<0)^(r=((r+=(e^(s=((s+=(r^t&(e^r))+o[13]-40341101)<<12|s>>>20)+t<<0)&(t^e))+o[14]-1502002290)<<17|r>>>15)+s<<0)&(s^t))+o[15]+1236535329)<<22|e>>>10)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+o[1]-165796510)<<5|t>>>27)+e<<0)^e))+o[6]-1069501632)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+o[11]+643717713)<<14|r>>>18)+s<<0)^s))+o[0]-373897302)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+o[5]-701558691)<<5|t>>>27)+e<<0)^e))+o[10]+38016083)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+o[15]-660478335)<<14|r>>>18)+s<<0)^s))+o[4]-405537848)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+o[9]+568446438)<<5|t>>>27)+e<<0)^e))+o[14]-1019803690)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+o[3]-187363961)<<14|r>>>18)+s<<0)^s))+o[8]+1163531501)<<20|e>>>12)+r<<0,e=((e+=((s=((s+=(e^r&((t=((t+=(r^s&(e^r))+o[13]-1444681467)<<5|t>>>27)+e<<0)^e))+o[2]-51403784)<<9|s>>>23)+t<<0)^t&((r=((r+=(t^e&(s^t))+o[7]+1735328473)<<14|r>>>18)+s<<0)^s))+o[12]-1926607734)<<20|e>>>12)+r<<0,e=((e+=((n=(s=((s+=((i=e^r)^(t=((t+=(i^s)+o[5]-378558)<<4|t>>>28)+e<<0))+o[8]-2022574463)<<11|s>>>21)+t<<0)^t)^(r=((r+=(n^e)+o[11]+1839030562)<<16|r>>>16)+s<<0))+o[14]-35309556)<<23|e>>>9)+r<<0,e=((e+=((n=(s=((s+=((i=e^r)^(t=((t+=(i^s)+o[1]-1530992060)<<4|t>>>28)+e<<0))+o[4]+1272893353)<<11|s>>>21)+t<<0)^t)^(r=((r+=(n^e)+o[7]-155497632)<<16|r>>>16)+s<<0))+o[10]-1094730640)<<23|e>>>9)+r<<0,e=((e+=((n=(s=((s+=((i=e^r)^(t=((t+=(i^s)+o[13]+681279174)<<4|t>>>28)+e<<0))+o[0]-358537222)<<11|s>>>21)+t<<0)^t)^(r=((r+=(n^e)+o[3]-722521979)<<16|r>>>16)+s<<0))+o[6]+76029189)<<23|e>>>9)+r<<0,e=((e+=((n=(s=((s+=((i=e^r)^(t=((t+=(i^s)+o[9]-640364487)<<4|t>>>28)+e<<0))+o[12]-421815835)<<11|s>>>21)+t<<0)^t)^(r=((r+=(n^e)+o[15]+530742520)<<16|r>>>16)+s<<0))+o[2]-995338651)<<23|e>>>9)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+o[0]-198630844)<<6|t>>>26)+e<<0)|~r))+o[7]+1126891415)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+o[14]-1416354905)<<15|r>>>17)+s<<0)|~t))+o[5]-57434055)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+o[12]+1700485571)<<6|t>>>26)+e<<0)|~r))+o[3]-1894986606)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+o[10]-1051523)<<15|r>>>17)+s<<0)|~t))+o[1]-2054922799)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+o[8]+1873313359)<<6|t>>>26)+e<<0)|~r))+o[15]-30611744)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+o[6]-1560198380)<<15|r>>>17)+s<<0)|~t))+o[13]+1309151649)<<21|e>>>11)+r<<0,e=((e+=((s=((s+=(e^((t=((t+=(r^(e|~s))+o[4]-145523070)<<6|t>>>26)+e<<0)|~r))+o[11]-1120210379)<<10|s>>>22)+t<<0)^((r=((r+=(t^(s|~e))+o[2]+718787259)<<15|r>>>17)+s<<0)|~t))+o[9]-343485551)<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=s+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+s<<0)},A.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return f[t>>>4&15]+f[15&t]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>28&15]+f[t>>>24&15]+f[e>>>4&15]+f[15&e]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>28&15]+f[e>>>24&15]+f[r>>>4&15]+f[15&r]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>28&15]+f[r>>>24&15]+f[s>>>4&15]+f[15&s]+f[s>>>12&15]+f[s>>>8&15]+f[s>>>20&15]+f[s>>>16&15]+f[s>>>28&15]+f[s>>>24&15]},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,s=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&s,s>>>8&255,s>>>16&255,s>>>24&255]},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.base64=function(){for(var t,e,r,s="",i=this.array(),n=0;n<15;)t=i[n++],e=i[n++],r=i[n++],s+=d[t>>>2]+d[63&(t<<4|e>>>4)]+d[63&(e<<2|r>>>6)]+d[63&r];return t=i[n],s+=d[t>>>2]+d[t<<4&63]+"=="},O.prototype=new A,O.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();A.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),A.prototype.finalize.call(this)}};var I=function(){var t=_("hex");i&&(t=x(t)),t.create=function(){return new A},t.update=function(e){return t.create().update(e)};for(var e=0;e0)for(let r in e)!0===e.hasOwnProperty(r)&&(this.myIsNaN(e[r])&&(e[r]=e[r].toString()),t[r]=e[r]);return t}static urlEncode(t,e,r){if(null==t)return"";let s="",i=typeof t;if("string"==i||"number"==i||"boolean"==i)s+="&"+e+"="+(null==r||r?encodeURIComponent(t):t);else for(let n in t){let i=null==e?n:e+(t instanceof Array?"["+n+"]":"."+n);s+=this.urlEncode(t[n],i,r)}return s}static getTimestamp(){return(new Date).getTime()}static myIsNaN(t){return"number"==typeof t&&!isNaN(t)}}.getSign(n,a)),h=e({url:"http://10.11.12.100:8080"+n,method:o,data:a}).finally((()=>{r(),s()}))):h=e({url:"http://10.11.12.100:8080"+n,method:o,header:{"x-access-token":sessionStorage.getItem("token"),"x-tenant-id":"0","x-Sign":sessionStorage.getItem("sign"),"x-timestamp":(new Date).getTime()+"","x-version":"v3"},data:a}).then((t=>{if(console.log(t),!1!==t.data.success||4!==t.data.code[0])return t;sessionStorage.removeItem("examId"),sessionStorage.removeItem("token"),sessionStorage.removeItem("user"),sessionStorage.removeItem("sign"),i({url:"/pages/login/Login"})})).finally((()=>{r(),s()})),h}function v(){b("/exam-boot/sys/logout","GET",{t:new Date}).then((t=>{r(),s()})),sessionStorage.removeItem("examId"),sessionStorage.removeItem("token"),sessionStorage.removeItem("user"),sessionStorage.removeItem("sign"),i({url:"/pages/login/Login"})}function w(t){let e=sessionStorage.getItem("user"),r=sessionStorage.getItem("token");null===e||null===r?v():null!=t?i({url:t}):console.log("跳转失败")}function _(){w("/pages/login/Login")}function x(){w("/pages/examPage/examInfo")}function S(){w("/pages/examPage/examStart")}export{n as _,o as a,d as b,m as c,x as d,v as e,g as f,y as g,_ as h,w as r,S as t};