You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

qdOrder.73dfb2b7.js 7.8KB

1
  1. import{a1 as t,a2 as n,a3 as e,a4 as r,a5 as o,_ as a,$ as i,l as u,a6 as c,a7 as s,r as f}from"./index-bda8fec4.js";function l(n,e){return t(n)?e:n}const d=(t=>(r,a=e())=>{!o&&n(t,r,a)})(r);function h(t,n){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function p(t,n,e,r,o,a){return h((i=h(h(n,t),h(r,a)))<<(u=o)|i>>>32-u,e);var i,u}function g(t,n,e,r,o,a,i){return p(n&e|~n&r,t,n,o,a,i)}function y(t,n,e,r,o,a,i){return p(n&r|e&~r,t,n,o,a,i)}function m(t,n,e,r,o,a,i){return p(n^e^r,t,n,o,a,i)}function A(t,n,e,r,o,a,i){return p(e^(n|~r),t,n,o,a,i)}function C(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;var e,r,o,a,i,u=1732584193,c=-271733879,s=-1732584194,f=271733878;for(e=0;e<t.length;e+=16)r=u,o=c,a=s,i=f,u=g(u,c,s,f,t[e],7,-680876936),f=g(f,u,c,s,t[e+1],12,-389564586),s=g(s,f,u,c,t[e+2],17,606105819),c=g(c,s,f,u,t[e+3],22,-1044525330),u=g(u,c,s,f,t[e+4],7,-176418897),f=g(f,u,c,s,t[e+5],12,1200080426),s=g(s,f,u,c,t[e+6],17,-1473231341),c=g(c,s,f,u,t[e+7],22,-45705983),u=g(u,c,s,f,t[e+8],7,1770035416),f=g(f,u,c,s,t[e+9],12,-1958414417),s=g(s,f,u,c,t[e+10],17,-42063),c=g(c,s,f,u,t[e+11],22,-1990404162),u=g(u,c,s,f,t[e+12],7,1804603682),f=g(f,u,c,s,t[e+13],12,-40341101),s=g(s,f,u,c,t[e+14],17,-1502002290),u=y(u,c=g(c,s,f,u,t[e+15],22,1236535329),s,f,t[e+1],5,-165796510),f=y(f,u,c,s,t[e+6],9,-1069501632),s=y(s,f,u,c,t[e+11],14,643717713),c=y(c,s,f,u,t[e],20,-373897302),u=y(u,c,s,f,t[e+5],5,-701558691),f=y(f,u,c,s,t[e+10],9,38016083),s=y(s,f,u,c,t[e+15],14,-660478335),c=y(c,s,f,u,t[e+4],20,-405537848),u=y(u,c,s,f,t[e+9],5,568446438),f=y(f,u,c,s,t[e+14],9,-1019803690),s=y(s,f,u,c,t[e+3],14,-187363961),c=y(c,s,f,u,t[e+8],20,1163531501),u=y(u,c,s,f,t[e+13],5,-1444681467),f=y(f,u,c,s,t[e+2],9,-51403784),s=y(s,f,u,c,t[e+7],14,1735328473),u=m(u,c=y(c,s,f,u,t[e+12],20,-1926607734),s,f,t[e+5],4,-378558),f=m(f,u,c,s,t[e+8],11,-2022574463),s=m(s,f,u,c,t[e+11],16,1839030562),c=m(c,s,f,u,t[e+14],23,-35309556),u=m(u,c,s,f,t[e+1],4,-1530992060),f=m(f,u,c,s,t[e+4],11,1272893353),s=m(s,f,u,c,t[e+7],16,-155497632),c=m(c,s,f,u,t[e+10],23,-1094730640),u=m(u,c,s,f,t[e+13],4,681279174),f=m(f,u,c,s,t[e],11,-358537222),s=m(s,f,u,c,t[e+3],16,-722521979),c=m(c,s,f,u,t[e+6],23,76029189),u=m(u,c,s,f,t[e+9],4,-640364487),f=m(f,u,c,s,t[e+12],11,-421815835),s=m(s,f,u,c,t[e+15],16,530742520),u=A(u,c=m(c,s,f,u,t[e+2],23,-995338651),s,f,t[e],6,-198630844),f=A(f,u,c,s,t[e+7],10,1126891415),s=A(s,f,u,c,t[e+14],15,-1416354905),c=A(c,s,f,u,t[e+5],21,-57434055),u=A(u,c,s,f,t[e+12],6,1700485571),f=A(f,u,c,s,t[e+3],10,-1894986606),s=A(s,f,u,c,t[e+10],15,-1051523),c=A(c,s,f,u,t[e+1],21,-2054922799),u=A(u,c,s,f,t[e+8],6,1873313359),f=A(f,u,c,s,t[e+15],10,-30611744),s=A(s,f,u,c,t[e+6],15,-1560198380),c=A(c,s,f,u,t[e+13],21,1309151649),u=A(u,c,s,f,t[e+4],6,-145523070),f=A(f,u,c,s,t[e+11],10,-1120210379),s=A(s,f,u,c,t[e+2],15,718787259),c=A(c,s,f,u,t[e+9],21,-343485551),u=h(u,r),c=h(c,o),s=h(s,a),f=h(f,i);return[u,c,s,f]}function v(t){var n,e="";for(n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}function w(t){var n,e=[];for(e[(t.length>>2)-1]=void 0,n=0;n<e.length;n+=1)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e}function b(t){var n,e,r="0123456789abcdef",o="";for(e=0;e<t.length;e+=1)n=t.charCodeAt(e),o+=r.charAt(n>>>4&15)+r.charAt(15&n);return o}function O(t){return unescape(encodeURIComponent(t))}function T(t){return function(t){return v(C(w(t),8*t.length))}(O(t))}function M(t,n){return function(t,n){var e,r,o=w(t),a=[],i=[];for(a[15]=i[15]=void 0,o.length>16&&(o=C(o,8*t.length)),e=0;e<16;e+=1)a[e]=909522486^o[e],i[e]=1549556828^o[e];return r=C(a.concat(w(n)),512+8*n.length),v(C(i.concat(r),640))}(O(t),O(n))}function j(t,n,e){return n?e?M(n,t):b(M(n,t)):e?T(t):b(T(t))}function U(t){return t<10?"0"+t:t}function x(t){return n=function(t){var n={};for(var e in t)if(t[e]instanceof Array)for(var r in n[e]={},t[e])if(t[e][r]instanceof Array)for(var o in n[e][r]={},t[e][r])if(t[e][r][o]instanceof Array)for(var a in n[e][r][o]={},t[e][r][o])n[e][r][o][a]=t[e][r][o][a];else n[e][r][o]=t[e][r][o];else n[e][r]=t[e][r];else n[e]=t[e];return JSON.stringify(n)}(t),JSON.parse(n);var n}function S(t){return(t=t.toString())[1]?t:`0${t}`}function I(t,n,e){var r,o=new Array;return o.ifCode=t,o.appId="admin001",o.signType="MD5",o.encryptType="NONE",o.reqId=o.appId+"_"+((r=new Date).getFullYear().toString()+U(r.getMonth()+1)+U(r.getDate())+U(r.getHours())+U(r.getMinutes())+U(r.getSeconds())+U(r.getMilliseconds())+"_")+function(t){for(var n=["0","1","2","3","4","5","6","7","8","9"],e="",r=0;r<t;r++)e+=n[Math.ceil(8*Math.random())];return e}(5),o.timestamp=function(t){const n=t.getFullYear(),e=t.getMonth()+1,r=t.getDate(),o=t.getHours(),a=t.getMinutes(),i=t.getSeconds();return`${[n,e,r].map(S).join("-")}T${[o,a,i].map(S).join(":")}`}(new Date),o.bizContent=JSON.stringify(n),o.sign=j("bizContent="+o.bizContent+"&signType="+o.signType+"&encryptType="+o.encryptType+"&timestamp="+o.timestamp+"&ifCode="+o.ifCode),x(o)}!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).base64js=t()}((function(){return function t(n,e,r){const o="function"==typeof require&&require;function a(i,u){if(!e[i]){if(!n[i]){const t="function"==typeof require&&require;if(!u&&t)return t(i,!0);if(o)return o(i,!0);const n=new Error("Cannot find module '"+i+"'");throw n.code="MODULE_NOT_FOUND",n}const c=e[i]={exports:{}};n[i][0].call(c.exports,(function(t){const e=n[i][1][t];return a(e||t)}),c,c.exports,t,n,e,r)}return e[i].exports}for(let i=0;i<r.length;i++)a(r[i]);return a}({"/":[function(t,n,e){e.byteLength=function(t){return 3*t.length/4-s(t)},e.toByteArray=function(t){let n,e,r,i,u;const c=t.length;i=s(t),u=new a(3*c/4-i),e=i>0?c-4:c;let f=0;for(n=0;n<e;n+=4)r=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],u[f++]=r>>16&255,u[f++]=r>>8&255,u[f++]=255&r;2===i?(r=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,u[f++]=255&r):1===i&&(r=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,u[f++]=r>>8&255,u[f++]=255&r);return u},e.fromByteArray=function(t){let n;const e=t.length,o=e%3;let a="";const i=[],u=16383;let c=0,s=e-o;for(;c<s;c+=u)i.push(l(t,c,c+u>s?s:c+u));1===o?(n=t[e-1],a+=r[n>>2],a+=r[n<<4&63],a+="=="):2===o&&(n=(t[e-2]<<8)+t[e-1],a+=r[n>>10],a+=r[n>>4&63],a+=r[n<<2&63],a+="=");return i.push(a),i.join("")};var r=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array;const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";let u=0,c=i.length;for(;u<c;++u)r[u]=i[u],o[i.charCodeAt(u)]=u;function s(t){const n=t.length;if(n%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[n-2]?2:"="===t[n-1]?1:0}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function l(t,n,e){let r;const o=[];for(let a=n;a<e;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(f(r));return o.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}]},{},[])("/")}));const q={baseUrl:"testmedusa.etcjz.cn"};function D(t,n={}){const e={};n.url="https://"+q.baseUrl+"/ifzt/api/interfaceMidGroundIn",n.baseUrl&&(n.url=n.baseUrl);let r="application/json;charset=UTF-8";return n.type&&2===n.type&&(r="application/x-www-form-urlencoded "),n.header={"content-type":r},n.method=n.method?n.method:"POST",n.timeout=6e4,t&&(n.data=I(t,Object.assign(e,{...n.data,appId:"52030131"}))),n.showLoading||a({title:n.showTitle?n.showTitle:"加载中",mask:!0}),new Promise(((t,e)=>{n.success=n=>{i(),0!==n.data.statusCode&&u({title:"提示",content:n.data.errorMsg,success:function(t){t.confirm?console.log("用户点击确定"):t.cancel&&console.log("用户点击取消")}}),t(n.data)},n.fail=t=>{i(),console.log("请求错误",t),e(t)},c(n)}))}const N=s("qdOrder",(()=>{let t=f({}),n=f({});return{setQdOrder:n=>{t.value=n},qdOrderVal:t,orderInfo:n}}));export{l as a,d as o,D as r,N as u};