Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

qdOrder.6d915f49.js 7.9KB

1
  1. import{a0 as t,a1 as n,a2 as e,a3 as r,a4 as o,Z as a,_ as i,s as c,a5 as u,a6 as s,r as f}from"./index-4cb6c62a.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)))<<(c=o)|i>>>32-c,e);var i,c}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,c=1732584193,u=-271733879,s=-1732584194,f=271733878;for(e=0;e<t.length;e+=16)r=c,o=u,a=s,i=f,c=g(c,u,s,f,t[e],7,-680876936),f=g(f,c,u,s,t[e+1],12,-389564586),s=g(s,f,c,u,t[e+2],17,606105819),u=g(u,s,f,c,t[e+3],22,-1044525330),c=g(c,u,s,f,t[e+4],7,-176418897),f=g(f,c,u,s,t[e+5],12,1200080426),s=g(s,f,c,u,t[e+6],17,-1473231341),u=g(u,s,f,c,t[e+7],22,-45705983),c=g(c,u,s,f,t[e+8],7,1770035416),f=g(f,c,u,s,t[e+9],12,-1958414417),s=g(s,f,c,u,t[e+10],17,-42063),u=g(u,s,f,c,t[e+11],22,-1990404162),c=g(c,u,s,f,t[e+12],7,1804603682),f=g(f,c,u,s,t[e+13],12,-40341101),s=g(s,f,c,u,t[e+14],17,-1502002290),c=y(c,u=g(u,s,f,c,t[e+15],22,1236535329),s,f,t[e+1],5,-165796510),f=y(f,c,u,s,t[e+6],9,-1069501632),s=y(s,f,c,u,t[e+11],14,643717713),u=y(u,s,f,c,t[e],20,-373897302),c=y(c,u,s,f,t[e+5],5,-701558691),f=y(f,c,u,s,t[e+10],9,38016083),s=y(s,f,c,u,t[e+15],14,-660478335),u=y(u,s,f,c,t[e+4],20,-405537848),c=y(c,u,s,f,t[e+9],5,568446438),f=y(f,c,u,s,t[e+14],9,-1019803690),s=y(s,f,c,u,t[e+3],14,-187363961),u=y(u,s,f,c,t[e+8],20,1163531501),c=y(c,u,s,f,t[e+13],5,-1444681467),f=y(f,c,u,s,t[e+2],9,-51403784),s=y(s,f,c,u,t[e+7],14,1735328473),c=m(c,u=y(u,s,f,c,t[e+12],20,-1926607734),s,f,t[e+5],4,-378558),f=m(f,c,u,s,t[e+8],11,-2022574463),s=m(s,f,c,u,t[e+11],16,1839030562),u=m(u,s,f,c,t[e+14],23,-35309556),c=m(c,u,s,f,t[e+1],4,-1530992060),f=m(f,c,u,s,t[e+4],11,1272893353),s=m(s,f,c,u,t[e+7],16,-155497632),u=m(u,s,f,c,t[e+10],23,-1094730640),c=m(c,u,s,f,t[e+13],4,681279174),f=m(f,c,u,s,t[e],11,-358537222),s=m(s,f,c,u,t[e+3],16,-722521979),u=m(u,s,f,c,t[e+6],23,76029189),c=m(c,u,s,f,t[e+9],4,-640364487),f=m(f,c,u,s,t[e+12],11,-421815835),s=m(s,f,c,u,t[e+15],16,530742520),c=A(c,u=m(u,s,f,c,t[e+2],23,-995338651),s,f,t[e],6,-198630844),f=A(f,c,u,s,t[e+7],10,1126891415),s=A(s,f,c,u,t[e+14],15,-1416354905),u=A(u,s,f,c,t[e+5],21,-57434055),c=A(c,u,s,f,t[e+12],6,1700485571),f=A(f,c,u,s,t[e+3],10,-1894986606),s=A(s,f,c,u,t[e+10],15,-1051523),u=A(u,s,f,c,t[e+1],21,-2054922799),c=A(c,u,s,f,t[e+8],6,1873313359),f=A(f,c,u,s,t[e+15],10,-30611744),s=A(s,f,c,u,t[e+6],15,-1560198380),u=A(u,s,f,c,t[e+13],21,1309151649),c=A(c,u,s,f,t[e+4],6,-145523070),f=A(f,c,u,s,t[e+11],10,-1120210379),s=A(s,f,c,u,t[e+2],15,718787259),u=A(u,s,f,c,t[e+9],21,-343485551),c=h(c,r),u=h(u,o),s=h(s,a),f=h(f,i);return[c,u,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 q(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,c){if(!e[i]){if(!n[i]){const t="function"==typeof require&&require;if(!c&&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 u=e[i]={exports:{}};n[i][0].call(u.exports,(function(t){const e=n[i][1][t];return a(e||t)}),u,u.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,c;const u=t.length;i=s(t),c=new a(3*u/4-i),e=i>0?u-4:u;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)],c[f++]=r>>16&255,c[f++]=r>>8&255,c[f++]=255&r;2===i?(r=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[f++]=255&r):1===i&&(r=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[f++]=r>>8&255,c[f++]=255&r);return c},e.fromByteArray=function(t){let n;const e=t.length,o=e%3;let a="";const i=[],c=16383;let u=0,s=e-o;for(;u<s;u+=c)i.push(l(t,u,u+c>s?s:u+c));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 c=0,u=i.length;for(;c<u;++c)r[c]=i[c],o[i.charCodeAt(c)]=c;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 I={baseUrl:"testmedusa.etcjz.cn"};function D(t,n={}){const e={};n.url="http://"+I.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=q(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&&c({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)},u(n)}))}const N=s("qdOrder",(()=>{let t=f({}),n=f({});return{setQdOrder:n=>{t.value=n,console.log("设置qdOrderVal",n)},qdOrderVal:t,orderInfo:n}}));export{l as a,d as o,D as r,N as u};