isdata-customer-sdk 0.1.46 → 0.1.48
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/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.min.js
CHANGED
|
@@ -23,5 +23,5 @@ return t.mode.CTRGladman=function(){var n=t.lib.BlockCipherMode.extend();functio
|
|
|
23
23
|
|
|
24
24
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
25
25
|
*/
|
|
26
|
-
return function(){var n=t,r=n.lib,e=r.WordArray,i=r.Hasher,o=n.algo,u=e.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=e.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=e.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=e.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=e.create([0,1518500249,1859775393,2400959708,2840853838]),l=e.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var r=0;r<16;r++){var e=n+r,i=t[e];t[e]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,w,m,b,x,S,k,B,A,E,j=this._hash.words,O=f.words,C=l.words,I=u.words,R=a.words,P=c.words,D=s.words;x=o=j[0],S=h=j[1],k=w=j[2],B=m=j[3],A=b=j[4];for(r=0;r<80;r+=1)E=o+t[n+I[r]]|0,E+=r<16?p(h,w,m)+O[0]:r<32?v(h,w,m)+O[1]:r<48?d(h,w,m)+O[2]:r<64?g(h,w,m)+O[3]:y(h,w,m)+O[4],E|=0,E=_(E,P[r]),E=E+b|0,o=b,b=m,m=_(w,10),w=h,h=E,E=x+t[n+R[r]]|0,E+=r<16?y(S,k,B)+C[0]:r<32?g(S,k,B)+C[1]:r<48?d(S,k,B)+C[2]:r<64?v(S,k,B)+C[3]:p(S,k,B)+C[4],E|=0,E=_(E,D[r]),E=E+A|0,x=A,A=B,B=_(k,10),k=S,S=E;E=j[1]+w+B|0,j[1]=j[2]+m+A|0,j[2]=j[3]+b+x|0,j[3]=j[4]+o+S|0,j[4]=j[0]+h+k|0,j[0]=E},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,e=8*t.sigBytes;n[e>>>5]|=128<<24-e%32,n[14+(e+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,o=i.words,u=0;u<5;u++){var a=o[u];o[u]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,n,r){return t^n^r}function v(t,n,r){return t&n|~t&r}function d(t,n,r){return(t|~n)^r}function g(t,n,r){return t&r|n&~r}function y(t,n,r){return t^(n|~r)}function _(t,n){return t<<n|t>>>32-n}n.RIPEMD160=i._createHelper(h),n.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}))},8111:function(t,n,r){"use strict";var e=r(6518),i=r(4576),o=r(679),u=r(8551),a=r(4901),c=r(2787),s=r(2106),f=r(4659),l=r(9039),h=r(9297),p=r(8227),v=r(7657).IteratorPrototype,d=r(3724),g=r(6395),y="constructor",_="Iterator",w=p("toStringTag"),m=TypeError,b=i[_],x=g||!a(b)||b.prototype!==v||!l((function(){b({})})),S=function(){if(o(this,v),c(this)===v)throw new m("Abstract class Iterator not directly constructable")},k=function(t,n){d?s(v,t,{configurable:!0,get:function(){return n},set:function(n){if(u(this),this===v)throw new m("You can't redefine this property");h(this,t)?this[t]=n:f(this,t,n)}}):v[t]=n};h(v,w)||k(w,_),!x&&h(v,y)&&v[y]!==Object||k(y,S),S.prototype=v,e({global:!0,constructor:!0,forced:x},{Iterator:S})},8124:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(7165))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},8227:function(t,n,r){"use strict";var e=r(4576),i=r(5745),o=r(9297),u=r(3392),a=r(4495),c=r(7040),s=e.Symbol,f=i("wks"),l=c?s["for"]||s:s&&s.withoutSetter||u;t.exports=function(t){return o(f,t)||(f[t]=a&&o(s,t)?s[t]:l("Symbol."+t)),f[t]}},8454:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(7165))})(0,(function(t){return t.mode.ECB=function(){var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),n}(),t.mode.ECB}))},8480:function(t,n,r){"use strict";var e=r(1828),i=r(8727),o=i.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},8551:function(t,n,r){"use strict";var e=r(34),i=String,o=TypeError;t.exports=function(t){if(e(t))return t;throw new o(i(t)+" is not an object")}},8622:function(t,n,r){"use strict";var e=r(4576),i=r(4901),o=e.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8686:function(t,n,r){"use strict";var e=r(3724),i=r(9039);t.exports=e&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,i=e&&!r.call({1:2},1);n.f=i?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},8807:function(t,n,r){"use strict";r(4114),r(8111),r(7588);var e=r(2543),i=r.n(e);class o{constructor(){this.__listeners={}}register(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]),this.__listeners[n]=this.__listeners[n]||[],this.__listeners[n].push({callback:r})}fireEvent(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]);let e=this.__listeners[n]||[],o=!0;return i().forEach(e,(t=>{let n=t.callback,e=n.call(null,r);if(!1===e)return o=!1,!1})),o}unregister(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]),i().isString(n)&&!i().isEmpty(this.__listeners[n])&&i().remove(this.__listeners[n],(t=>t.callback===r||void 0===r))}hasListener(t){return i().isString(t)&&!i().isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}}const u=new o;n.A=u},8981:function(t,n,r){"use strict";var e=r(7750),i=Object;t.exports=function(t){return i(e(t))}},9012:function(t){"use strict";t.exports=function(t,n){return function(){for(var r=new Array(arguments.length),e=0;e<r.length;e++)r[e]=arguments[e];return t.apply(n,r)}}},9021:function(t,n,r){(function(n,r){t.exports=r()})(0,(function(){var t=t||function(t,n){var e;if("undefined"!==typeof window&&window.crypto&&(e=window.crypto),"undefined"!==typeof self&&self.crypto&&(e=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!==typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&"undefined"!==typeof r.g&&r.g.crypto&&(e=r.g.crypto),!e)try{e=r(477)}catch(g){}var i=function(){if(e){if("function"===typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),u={},a=u.lib={},c=a.Base=function(){return{extend:function(t){var n=o(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=c.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=n?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var u=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=u<<24-(e+o)%4*8}else for(var a=0;a<i;a+=4)n[e+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,r=this.sigBytes;n[r>>>2]&=4294967295<<32-r%4*8,n.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(i());return new s.init(n,t)}}),f=u.enc={},l=f.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(r,n/2)}},h=f.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(r,n)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var r,e=this._data,i=e.words,o=e.sigBytes,u=this.blockSize,a=4*u,c=o/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var f=c*u,l=t.min(4*f,o);if(f){for(var h=0;h<f;h+=u)this._doProcessBlock(i,h);r=i.splice(0,f),e.sigBytes-=l}return new s.init(r,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=v.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new d.HMAC.init(t,r).finalize(n)}}}),u.algo={});return u}(Math);return t}))},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(n){return!0}}},9106:function(t,n,r){"use strict";var e=r(9516);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(e.isURLSearchParams(n))o=n.toString();else{var u=[];e.forEach(n,(function(t,n){null!==t&&"undefined"!==typeof t&&(e.isArray(t)?n+="[]":t=[t],e.forEach(t,(function(t){e.isDate(t)?t=t.toISOString():e.isObject(t)&&(t=JSON.stringify(t)),u.push(i(n)+"="+i(t))})))})),o=u.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9297:function(t,n,r){"use strict";var e=r(9504),i=r(8981),o=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return o(i(t),n)}},9306:function(t,n,r){"use strict";var e=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(e(t))return t;throw new o(i(t)+" is not a function")}},9433:function(t,n,r){"use strict";var e=r(4576),i=Object.defineProperty;t.exports=function(t,n){try{i(e,t,{value:n,configurable:!0,writable:!0})}catch(r){e[t]=n}return n}},9462:function(t,n,r){"use strict";var e=r(9565),i=r(2360),o=r(6699),u=r(6279),a=r(8227),c=r(1181),s=r(5966),f=r(7657).IteratorPrototype,l=r(2529),h=r(9539),p=a("toStringTag"),v="IteratorHelper",d="WrapForValidIterator",g=c.set,y=function(t){var n=c.getterFor(t?d:v);return u(i(f),{next:function(){var r=n(this);if(t)return r.nextHandler();if(r.done)return l(void 0,!0);try{var e=r.nextHandler();return r.returnHandlerResult?e:l(e,r.done)}catch(i){throw r.done=!0,i}},return:function(){var r=n(this),i=r.iterator;if(r.done=!0,t){var o=s(i,"return");return o?e(o,i):l(void 0,!0)}if(r.inner)try{h(r.inner.iterator,"normal")}catch(u){return h(i,"throw",u)}return i&&h(i,"normal"),l(void 0,!0)}})},_=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,n,r){var e=function(e,i){i?(i.iterator=e.iterator,i.next=e.next):i=e,i.type=n?d:v,i.returnHandlerResult=!!r,i.nextHandler=t,i.counter=0,i.done=!1,g(this,i)};return e.prototype=n?_:w,e}},9504:function(t,n,r){"use strict";var e=r(616),i=Function.prototype,o=i.call,u=e&&i.bind.bind(o,o);t.exports=e?u:function(t){return function(){return o.apply(t,arguments)}}},9506:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(5471),r(1025))})(0,(function(t){return function(){var n=t,r=n.lib,e=r.Base,i=r.WordArray,o=n.algo,u=o.MD5,a=o.EvpKDF=e.extend({cfg:e.extend({keySize:4,hasher:u,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){var r,e=this.cfg,o=e.hasher.create(),u=i.create(),a=u.words,c=e.keySize,s=e.iterations;while(a.length<c){r&&o.update(r),r=o.update(t).finalize(n),o.reset();for(var f=1;f<s;f++)r=o.finalize(r),o.reset();u.concat(r)}return u.sigBytes=4*c,u}});n.EvpKDF=function(t,n,r){return a.create(r).compute(t,n)}}(),t.EvpKDF}))},9516:function(t,n,r){"use strict";var e=r(9012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function u(t){return"undefined"===typeof t}function a(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function c(t){return"[object ArrayBuffer]"===i.call(t)}function s(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var n;return n="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,n}function l(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function v(t){if("[object Object]"!==i.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function d(t){return"[object Date]"===i.call(t)}function g(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function _(t){return"[object Function]"===i.call(t)}function w(t){return p(t)&&_(t.pipe)}function m(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,n){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var r=0,e=t.length;r<e;r++)n.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}function k(){var t={};function n(n,r){v(t[r])&&v(n)?t[r]=k(t[r],n):v(n)?t[r]=k({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,e=arguments.length;r<e;r++)S(arguments[r],n);return t}function B(t,n,r){return S(n,(function(n,i){t[i]=r&&"function"===typeof n?e(n,r):n})),t}function A(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:c,isBuffer:a,isFormData:s,isArrayBufferView:f,isString:l,isNumber:h,isObject:p,isPlainObject:v,isUndefined:u,isDate:d,isFile:g,isBlob:y,isFunction:_,isStream:w,isURLSearchParams:m,isStandardBrowserEnv:x,forEach:S,merge:k,extend:B,trim:b,stripBOM:A}},9519:function(t,n,r){"use strict";var e,i,o=r(4576),u=r(2839),a=o.process,c=o.Deno,s=a&&a.versions||c&&c.version,f=s&&s.v8;f&&(e=f.split("."),i=e[0]>0&&e[0]<4?1:+(e[0]+e[1])),!i&&u&&(e=u.match(/Edge\/(\d+)/),(!e||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/),e&&(i=+e[1]))),t.exports=i},9539:function(t,n,r){"use strict";var e=r(9565),i=r(8551),o=r(5966);t.exports=function(t,n,r){var u,a;i(t);try{if(u=o(t,"return"),!u){if("throw"===n)throw r;return r}u=e(u,t)}catch(c){a=!0,u=c}if("throw"===n)throw r;if(a)throw u;return i(u),r}},9557:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(3240),r(1380))})(0,(function(t){return function(){var n=t,r=n.x64,e=r.Word,i=r.WordArray,o=n.algo,u=o.SHA512,a=o.SHA384=u.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=u._doFinalize.call(this);return t.sigBytes-=16,t}});n.SHA384=u._createHelper(a),n.HmacSHA384=u._createHmacHelper(a)}(),t.SHA384}))},9565:function(t,n,r){"use strict";var e=r(616),i=Function.prototype.call;t.exports=e?i.bind(i):function(){return i.apply(i,arguments)}},9615:function(t,n,r){"use strict";var e=r(9137),i=r(4680);t.exports=function(t,n){return t&&!e(n)?i(t,n):n}},9617:function(t,n,r){"use strict";var e=r(5397),i=r(5610),o=r(6198),u=function(t){return function(n,r,u){var a=e(n),c=o(a);if(0===c)return!t&&-1;var s,f=i(u,c);if(t&&r!==r){while(c>f)if(s=a[f++],s!==s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9641:function(t){t.exports={version:"0.23.0"}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}!function(){r.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(n,{a:n}),n}}(),function(){r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){r.p=""}();var e={};return function(){"use strict";if(r.r(e),r.d(e,{addObjectUsedTimes:function(){return q},decrypt:function(){return U},destroyEventCenter:function(){return u},fireEvent:function(){return c},getAPPInfosByID:function(){return Y},getAppPortalMenuDatas:function(){return _},getAuthPic:function(){return z},getCurrentUserPortalPageID:function(){return k},getGroupMappingsByAccount:function(){return X},getKey:function(){return N},getLoginPageNotices:function(){return R},getMappingAppInfoByID:function(){return I},getMenuDatasByGroupID:function(){return w},getMenuDatasByRoleIDs:function(){return m},getObjectUseTimes:function(){return K},getOfficeInfosByIDs:function(){return V},getPageIDByComponentID:function(){return G},getPoratlAppID:function(){return y},getPortalPageConfig:function(){return E},getPortalPageMenuID:function(){return C},getPortalUserMappingInfos:function(){return A},getRoleIDsByUserAndGroupID:function(){return x},getUrlParamValue:function(){return F},getUserAllMappngPortal:function(){return B},hasListener:function(){return s},initEventCenter:function(){return o},loginAccount:function(){return H},logoutAccount:function(){return T},queryAppVariable:function(){return $},queryAssetById:function(){return L},queryGroupIDByOfficeId:function(){return W},queryGroupInfosByOfficeId:function(){return J},queryOfficeInfosById:function(){return Z},registerEventListener:function(){return i},removeEventListener:function(){return a},setPortalPageConfig:function(){return j},switchPortalLogin:function(){return M},updateUserSelectPortal:function(){return O},validateSSOPageLoaded:function(){return b}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}const i=(t,n)=>{let r=window.rjEventCenter;r||(o(),r=window.rjEventCenter),r&&r.register&&r.register(t,n)},o=()=>{if(window.rjEventCenter)console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`);else{console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`);let t=r(8807).A;window.rjEventCenter=t}},u=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},a=(t,n)=>{let r=window.rjEventCenter;r&&r.unregister&&r.unregister(t,n)},c=(t,n)=>{let r=window.rjEventCenter;r&&r.fireEvent&&r.fireEvent(t,n)},s=t=>{let n=window.rjEventCenter;return!(!n||!n.hasListener)&&n.hasListener(t)};r(4114),r(8111),r(2489),r(116),r(7588);var f=r(2505),l=r.n(f),h=r(3992);let p="";const v=(t="")=>{t&&(t.startsWith("/")&&(t=t.slice(1,t.length)),t.endsWith("/")&&(t=t.slice(0,-1)));const n=l().create({baseURL:`${p}/${t?t+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&h.parse(window.location.search).token||window.token?{token:h.parse(window.location.search).token||window.token}:{}});return n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use((t=>{let{data:n}=t;return"string"===typeof n&&(n=JSON.parse(n)),!n||200===n.status||n instanceof Blob?n instanceof Blob?(t.data=n,t):(t.data=n&&n.result,t):Promise.reject(t)}),(t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)})),n};let d=window.prefixPath||"";var g=v(d);const y=(t,n)=>{let r="";return t?r=window.appSdk.getAppId():(r=window.sessionStorage.getItem("iportal_app_id"),r||n.forEach((t=>{"iPortal_app_id"==t.name&&(r=t.default_value)})),r||(r=window.appSdk.getAppId())),r},_=async(t,n,r,e)=>{let i=y(r,e),o=await x(t,i,n),u=await w(n,o),a=window.appSdk.getAppId(),c=u.filter((t=>{if(r)return!0;if(t.app_id==i)return!0;{let n=t.children,r=!1;return n&&n.length>0&&n.forEach((t=>{let n=t.children;if(n&&n.length>0){let t=n.filter((t=>t.app_id===a));t&&t.length>0&&(r=!0)}})),r}}));return c},w=async(t,n)=>{let r={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",r),i=e.data.resultDatas,o=e.data.menuTypes;if(n&&n.length>0){let r=await m(n,t),e=r.data.quickMenuMappingDatas||[],u={};for(const t of e){let n=t.menu_mapping_id;u[n]=t}let a=r.data.menuMappingDatas||[];for(const t of a){let n=t.id;u[n]=t}return S(i,o,u)}return S(i,o,[])},m=async(t,n)=>{let r={param:{role_ids:t,group_id:n}},e=await g.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",r);return e},b=async(t,n,r)=>{let e={param:{app_id:t,appSecret:n,returnUrl:r}},i=await g.post("/dataservice/rest/orchestration/validateSSOPageLoaded",e),o=i.data.count;return o},x=async(t,n,r)=>{let e={param:{user_id:t,app_id:n,group_id:r}},i=await g.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",e),o=i.data.portal_role_ids;return o},S=(t,n,r)=>{let e={},i={};for(const u of t){let t=u.id,n={id:t,index:u.menu_id,name:u.title,sort:u.sort,actionType:u.actionType,url:u.url,iconClass:u.image,children:[],app_id:u.app_id,menu_id:u.menu_id,beyond_type:u.menu_type?u.menu_type:"RJVIEW-OTHERS",beyond_type_sort:u.menu_type_sort?u.menu_type_sort:999};r?(r[t]||"4"==u.type)&&(e[t]=n):e[t]=n}for(const u of n){let t=u.id;i[t]=u}for(const u of t){let t=u.type;if("5"==t){let t=e[u.id];if(!t)continue;let n=u.parent_id,r=t.beyond_type,o=e[n],a=o.children,c=a.find((t=>t.id==r));if(c){let n=c.children;n.push(t),t.typeItem=c}else{let n=i[r],e=n?{id:r,index:r,name:n.title,children:[],sort:n.value}:{id:r,index:r,name:"其他",children:[],sort:999},o=e.children;o.push(t),a.push(e),t.typeItem=e}}}const o=[];for(const u of t){let t=u.type;if("4"==t){let t=e[u.id];if(!t)continue;let n=t.children,r=0;for(const e of n){let t=e.children,n=t.length;if(r+=n,n>0)break}if(0==r)continue;o.push(t);let i=t.children;i.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort));for(let e of i){let t=e.children;t.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort))}}}return o.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort)),o},k=async t=>{let n={param:{userData:t}},r=await g.post("/dataservice/rest/orchestration/getPortalPageID",n),e=r.data.portal_id;return e},B=t=>{let n={param:{userData:t}};return g.post("/dataservice/rest/orchestration/getUserAllMappngPortal",n)},A=async t=>{let n={param:{operateData:t}},r=await g.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",n),e=r.data.portalMapping;return e},E=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getPortalPageConfig",n),e=r.data.portal_page_config||"[]";return e},j=t=>{let n={param:t};return g.post("/dataservice/rest/orchestration/setPortalPageConfig",n)},O=t=>{let n={param:{portalMappingData:t}};return g.post("/dataservice/rest/orchestration/updateUserSelectPortal",n)},C=async(t,n)=>{let r={param:{id:t,appid:n}},e=await g.post("/dataservice/rest/orchestration/getPortalPageMenuID",r),i=e.data.menu_id;return i},I=async(t,n)=>{let r={param:{appID:t,groupID:n}},e=await g.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",r),i=e.data.appInfo;return i},R=async()=>{let t={param:{id:"1005"}},n=await g.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",t),r=n.data.resultDatas;return r};var P=r(1396),D=r.n(P);const z=()=>g.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),T=async t=>{let n=await g.get(`/system/authority/logout?isMobileLogout=${t}`),r=JSON.parse(n.request.response),e=r.code;return"10110020"==e?(window.sessionStorage.setItem("iportal_login_user_id",""),window.sessionStorage.setItem("iportal_group_id",""),window.sessionStorage.setItem("iportal_login_user_key",""),{code:e,message:r.message}):{code:e,message:r.message}},U=async t=>{let n=await N();const r=D().AES.decrypt(t,n).toString(D().enc.Utf8);return r},M=async(t,n,r)=>{let e=window.sessionStorage.getItem("iportal_login_user_key");e=await U(e),t.password=e;let i=await T(r),o=i.code,u=i.message;if("10110020"==o){let r=await H(t,n);return r}return{code:o,message:u}},H=async(t,n)=>{let r={param:{loginData:{account:t.account_view,group_id:t.groupid,imageCode:t.imageCode}}},e=await g.post("/dataservice/rest/orchestration/getLoginPortalAccountKey",r),i=await N(),o=JSON.parse(e.request.response),u=o.result.code;if(10001==u){let r=o.result.codeData.code,a=r,c=o.result.codeData.key;if(r=D().AES.decrypt(r,i).toString(D().enc.Utf8),c=D().AES.decrypt(c,i).toString(D().enc.Utf8),c==t.password){if(r=window.appSdk.Encrypt(r),t.password=r,e=await g.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${n}&mobileOrWeb=web`,t),o=JSON.parse(e.request.response),u=o.code,10110004==u){let n=o.id;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),{code:u}}return{code:u,message:o.message}}return{code:u,message:"账户密码错误!"}}return{code:u,message:o.result.message}},N=async()=>{let t={param:{}},n=await g.post("/dataservice/rest/orchestration/getKey",t),r=n.data.key;return r},L=(t,n=200)=>g.post(`/asset/getAssetData?asset_id=${t}&count=${n}`,{filters:[]}),F=(t,n)=>{try{const r=new URL(t),e=r.searchParams.get(n);return e&&-1!==e.indexOf("#")?e.split("#")[0]:e}catch(r){return console.error("URL 格式错误:",r),""}},W=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),e=r.data.resultDptData,i=e.id;return i},$=(t,n)=>{if(n&&n.length>0)for(let r=0;r<n.length;r++)if(n[r].name==t)return n[r].default_value;return""},q=t=>{let n={param:{operateData:t}};return g.post("/dataservice/rest/orchestration/addObjectUsedTimes",n)},K=t=>{let n={param:{objectInfo:t}};return g.post("/dataservice/rest/orchestration/getObjectUseTimes",n)},G=async t=>{let n={param:{componentID:t}},r=await g.post("/dataservice/rest/orchestration/getPageIDByComponentID",n),e=r.data.page_id;return e},X=async t=>{let n={param:{account:t}},r=await g.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",n),e=r.data.resultGroups;return e},J=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),e=r.data.resultDptData;return e},V=async t=>{let n={param:{ids:t}},r=await g.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",n),e=r.data.officeInfos;return e},Z=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getOfficeInfosByID",n),e=r.data.officeData;return e},Y=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getAPPInfosByID",n),e=r.data.appInfo;return e}}(),e}()}));
|
|
26
|
+
return function(){var n=t,r=n.lib,e=r.WordArray,i=r.Hasher,o=n.algo,u=e.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=e.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=e.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=e.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=e.create([0,1518500249,1859775393,2400959708,2840853838]),l=e.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var r=0;r<16;r++){var e=n+r,i=t[e];t[e]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,w,m,b,x,S,k,B,A,E,j=this._hash.words,O=f.words,C=l.words,I=u.words,R=a.words,P=c.words,D=s.words;x=o=j[0],S=h=j[1],k=w=j[2],B=m=j[3],A=b=j[4];for(r=0;r<80;r+=1)E=o+t[n+I[r]]|0,E+=r<16?p(h,w,m)+O[0]:r<32?v(h,w,m)+O[1]:r<48?d(h,w,m)+O[2]:r<64?g(h,w,m)+O[3]:y(h,w,m)+O[4],E|=0,E=_(E,P[r]),E=E+b|0,o=b,b=m,m=_(w,10),w=h,h=E,E=x+t[n+R[r]]|0,E+=r<16?y(S,k,B)+C[0]:r<32?g(S,k,B)+C[1]:r<48?d(S,k,B)+C[2]:r<64?v(S,k,B)+C[3]:p(S,k,B)+C[4],E|=0,E=_(E,D[r]),E=E+A|0,x=A,A=B,B=_(k,10),k=S,S=E;E=j[1]+w+B|0,j[1]=j[2]+m+A|0,j[2]=j[3]+b+x|0,j[3]=j[4]+o+S|0,j[4]=j[0]+h+k|0,j[0]=E},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,e=8*t.sigBytes;n[e>>>5]|=128<<24-e%32,n[14+(e+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var i=this._hash,o=i.words,u=0;u<5;u++){var a=o[u];o[u]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,n,r){return t^n^r}function v(t,n,r){return t&n|~t&r}function d(t,n,r){return(t|~n)^r}function g(t,n,r){return t&r|n&~r}function y(t,n,r){return t^(n|~r)}function _(t,n){return t<<n|t>>>32-n}n.RIPEMD160=i._createHelper(h),n.HmacRIPEMD160=i._createHmacHelper(h)}(Math),t.RIPEMD160}))},8111:function(t,n,r){"use strict";var e=r(6518),i=r(4576),o=r(679),u=r(8551),a=r(4901),c=r(2787),s=r(2106),f=r(4659),l=r(9039),h=r(9297),p=r(8227),v=r(7657).IteratorPrototype,d=r(3724),g=r(6395),y="constructor",_="Iterator",w=p("toStringTag"),m=TypeError,b=i[_],x=g||!a(b)||b.prototype!==v||!l((function(){b({})})),S=function(){if(o(this,v),c(this)===v)throw new m("Abstract class Iterator not directly constructable")},k=function(t,n){d?s(v,t,{configurable:!0,get:function(){return n},set:function(n){if(u(this),this===v)throw new m("You can't redefine this property");h(this,t)?this[t]=n:f(this,t,n)}}):v[t]=n};h(v,w)||k(w,_),!x&&h(v,y)&&v[y]!==Object||k(y,S),S.prototype=v,e({global:!0,constructor:!0,forced:x},{Iterator:S})},8124:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(7165))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},8227:function(t,n,r){"use strict";var e=r(4576),i=r(5745),o=r(9297),u=r(3392),a=r(4495),c=r(7040),s=e.Symbol,f=i("wks"),l=c?s["for"]||s:s&&s.withoutSetter||u;t.exports=function(t){return o(f,t)||(f[t]=a&&o(s,t)?s[t]:l("Symbol."+t)),f[t]}},8454:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(7165))})(0,(function(t){return t.mode.ECB=function(){var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),n.Decryptor=n.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),n}(),t.mode.ECB}))},8480:function(t,n,r){"use strict";var e=r(1828),i=r(8727),o=i.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},8551:function(t,n,r){"use strict";var e=r(34),i=String,o=TypeError;t.exports=function(t){if(e(t))return t;throw new o(i(t)+" is not an object")}},8622:function(t,n,r){"use strict";var e=r(4576),i=r(4901),o=e.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},8686:function(t,n,r){"use strict";var e=r(3724),i=r(9039);t.exports=e&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8773:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,i=e&&!r.call({1:2},1);n.f=i?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},8807:function(t,n,r){"use strict";r(4114),r(8111),r(7588);var e=r(2543),i=r.n(e);class o{constructor(){this.__listeners={}}register(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]),this.__listeners[n]=this.__listeners[n]||[],this.__listeners[n].push({callback:r})}fireEvent(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]);let e=this.__listeners[n]||[],o=!0;return i().forEach(e,(t=>{let n=t.callback,e=n.call(null,r);if(!1===e)return o=!1,!1})),o}unregister(...t){let n,r;3==t.length?(n=`${t[0]}-${t[1]}`,r=t[2]):(n=t[0],r=t[1]),i().isString(n)&&!i().isEmpty(this.__listeners[n])&&i().remove(this.__listeners[n],(t=>t.callback===r||void 0===r))}hasListener(t){return i().isString(t)&&!i().isEmpty(this.__listeners[t])}clearAll(){this.__listeners={}}}const u=new o;n.A=u},8981:function(t,n,r){"use strict";var e=r(7750),i=Object;t.exports=function(t){return i(e(t))}},9012:function(t){"use strict";t.exports=function(t,n){return function(){for(var r=new Array(arguments.length),e=0;e<r.length;e++)r[e]=arguments[e];return t.apply(n,r)}}},9021:function(t,n,r){(function(n,r){t.exports=r()})(0,(function(){var t=t||function(t,n){var e;if("undefined"!==typeof window&&window.crypto&&(e=window.crypto),"undefined"!==typeof self&&self.crypto&&(e=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!==typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&"undefined"!==typeof r.g&&r.g.crypto&&(e=r.g.crypto),!e)try{e=r(477)}catch(g){}var i=function(){if(e){if("function"===typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),u={},a=u.lib={},c=a.Base=function(){return{extend:function(t){var n=o(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=a.WordArray=c.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=n?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var u=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=u<<24-(e+o)%4*8}else for(var a=0;a<i;a+=4)n[e+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var n=this.words,r=this.sigBytes;n[r>>>2]&=4294967295<<32-r%4*8,n.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(i());return new s.init(n,t)}}),f=u.enc={},l=f.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(r,n/2)}},h=f.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(r,n)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var r,e=this._data,i=e.words,o=e.sigBytes,u=this.blockSize,a=4*u,c=o/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var f=c*u,l=t.min(4*f,o);if(f){for(var h=0;h<f;h+=u)this._doProcessBlock(i,h);r=i.splice(0,f),e.sigBytes-=l}return new s.init(r,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=v.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new d.HMAC.init(t,r).finalize(n)}}}),u.algo={});return u}(Math);return t}))},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(n){return!0}}},9106:function(t,n,r){"use strict";var e=r(9516);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(e.isURLSearchParams(n))o=n.toString();else{var u=[];e.forEach(n,(function(t,n){null!==t&&"undefined"!==typeof t&&(e.isArray(t)?n+="[]":t=[t],e.forEach(t,(function(t){e.isDate(t)?t=t.toISOString():e.isObject(t)&&(t=JSON.stringify(t)),u.push(i(n)+"="+i(t))})))})),o=u.join("&")}if(o){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},9137:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},9297:function(t,n,r){"use strict";var e=r(9504),i=r(8981),o=e({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return o(i(t),n)}},9306:function(t,n,r){"use strict";var e=r(4901),i=r(6823),o=TypeError;t.exports=function(t){if(e(t))return t;throw new o(i(t)+" is not a function")}},9433:function(t,n,r){"use strict";var e=r(4576),i=Object.defineProperty;t.exports=function(t,n){try{i(e,t,{value:n,configurable:!0,writable:!0})}catch(r){e[t]=n}return n}},9462:function(t,n,r){"use strict";var e=r(9565),i=r(2360),o=r(6699),u=r(6279),a=r(8227),c=r(1181),s=r(5966),f=r(7657).IteratorPrototype,l=r(2529),h=r(9539),p=a("toStringTag"),v="IteratorHelper",d="WrapForValidIterator",g=c.set,y=function(t){var n=c.getterFor(t?d:v);return u(i(f),{next:function(){var r=n(this);if(t)return r.nextHandler();if(r.done)return l(void 0,!0);try{var e=r.nextHandler();return r.returnHandlerResult?e:l(e,r.done)}catch(i){throw r.done=!0,i}},return:function(){var r=n(this),i=r.iterator;if(r.done=!0,t){var o=s(i,"return");return o?e(o,i):l(void 0,!0)}if(r.inner)try{h(r.inner.iterator,"normal")}catch(u){return h(i,"throw",u)}return i&&h(i,"normal"),l(void 0,!0)}})},_=y(!0),w=y(!1);o(w,p,"Iterator Helper"),t.exports=function(t,n,r){var e=function(e,i){i?(i.iterator=e.iterator,i.next=e.next):i=e,i.type=n?d:v,i.returnHandlerResult=!!r,i.nextHandler=t,i.counter=0,i.done=!1,g(this,i)};return e.prototype=n?_:w,e}},9504:function(t,n,r){"use strict";var e=r(616),i=Function.prototype,o=i.call,u=e&&i.bind.bind(o,o);t.exports=e?u:function(t){return function(){return o.apply(t,arguments)}}},9506:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(5471),r(1025))})(0,(function(t){return function(){var n=t,r=n.lib,e=r.Base,i=r.WordArray,o=n.algo,u=o.MD5,a=o.EvpKDF=e.extend({cfg:e.extend({keySize:4,hasher:u,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,n){var r,e=this.cfg,o=e.hasher.create(),u=i.create(),a=u.words,c=e.keySize,s=e.iterations;while(a.length<c){r&&o.update(r),r=o.update(t).finalize(n),o.reset();for(var f=1;f<s;f++)r=o.finalize(r),o.reset();u.concat(r)}return u.sigBytes=4*c,u}});n.EvpKDF=function(t,n,r){return a.create(r).compute(t,n)}}(),t.EvpKDF}))},9516:function(t,n,r){"use strict";var e=r(9012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function u(t){return"undefined"===typeof t}function a(t){return null!==t&&!u(t)&&null!==t.constructor&&!u(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function c(t){return"[object ArrayBuffer]"===i.call(t)}function s(t){return"undefined"!==typeof FormData&&t instanceof FormData}function f(t){var n;return n="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,n}function l(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function v(t){if("[object Object]"!==i.call(t))return!1;var n=Object.getPrototypeOf(t);return null===n||n===Object.prototype}function d(t){return"[object Date]"===i.call(t)}function g(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function _(t){return"[object Function]"===i.call(t)}function w(t){return p(t)&&_(t.pipe)}function m(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function b(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,n){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var r=0,e=t.length;r<e;r++)n.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}function k(){var t={};function n(n,r){v(t[r])&&v(n)?t[r]=k(t[r],n):v(n)?t[r]=k({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,e=arguments.length;r<e;r++)S(arguments[r],n);return t}function B(t,n,r){return S(n,(function(n,i){t[i]=r&&"function"===typeof n?e(n,r):n})),t}function A(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:c,isBuffer:a,isFormData:s,isArrayBufferView:f,isString:l,isNumber:h,isObject:p,isPlainObject:v,isUndefined:u,isDate:d,isFile:g,isBlob:y,isFunction:_,isStream:w,isURLSearchParams:m,isStandardBrowserEnv:x,forEach:S,merge:k,extend:B,trim:b,stripBOM:A}},9519:function(t,n,r){"use strict";var e,i,o=r(4576),u=r(2839),a=o.process,c=o.Deno,s=a&&a.versions||c&&c.version,f=s&&s.v8;f&&(e=f.split("."),i=e[0]>0&&e[0]<4?1:+(e[0]+e[1])),!i&&u&&(e=u.match(/Edge\/(\d+)/),(!e||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/),e&&(i=+e[1]))),t.exports=i},9539:function(t,n,r){"use strict";var e=r(9565),i=r(8551),o=r(5966);t.exports=function(t,n,r){var u,a;i(t);try{if(u=o(t,"return"),!u){if("throw"===n)throw r;return r}u=e(u,t)}catch(c){a=!0,u=c}if("throw"===n)throw r;if(a)throw u;return i(u),r}},9557:function(t,n,r){(function(n,e){t.exports=e(r(9021),r(3240),r(1380))})(0,(function(t){return function(){var n=t,r=n.x64,e=r.Word,i=r.WordArray,o=n.algo,u=o.SHA512,a=o.SHA384=u.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=u._doFinalize.call(this);return t.sigBytes-=16,t}});n.SHA384=u._createHelper(a),n.HmacSHA384=u._createHmacHelper(a)}(),t.SHA384}))},9565:function(t,n,r){"use strict";var e=r(616),i=Function.prototype.call;t.exports=e?i.bind(i):function(){return i.apply(i,arguments)}},9615:function(t,n,r){"use strict";var e=r(9137),i=r(4680);t.exports=function(t,n){return t&&!e(n)?i(t,n):n}},9617:function(t,n,r){"use strict";var e=r(5397),i=r(5610),o=r(6198),u=function(t){return function(n,r,u){var a=e(n),c=o(a);if(0===c)return!t&&-1;var s,f=i(u,c);if(t&&r!==r){while(c>f)if(s=a[f++],s!==s)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9641:function(t){t.exports={version:"0.23.0"}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}!function(){r.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(n,{a:n}),n}}(),function(){r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){r.p=""}();var e={};return function(){"use strict";if(r.r(e),r.d(e,{addObjectUsedTimes:function(){return K},decrypt:function(){return M},destroyEventCenter:function(){return u},fireEvent:function(){return c},getAPPInfosByID:function(){return Q},getAppPortalMenuDatas:function(){return w},getAuthPic:function(){return T},getCurrentUserPortalPageID:function(){return B},getGroupMappingsByAccount:function(){return J},getKey:function(){return L},getLoginPageNotices:function(){return P},getMappingAppInfoByID:function(){return R},getMenuDatasByGroupID:function(){return m},getMenuDatasByRoleIDs:function(){return b},getObjectUseTimes:function(){return G},getOfficeInfosByIDs:function(){return Z},getPageIDByComponentID:function(){return X},getPoratlAppID:function(){return _},getPortalAccessToken:function(){return y},getPortalPageConfig:function(){return j},getPortalPageMenuID:function(){return I},getPortalUserMappingInfos:function(){return E},getRoleIDsByUserAndGroupID:function(){return S},getUrlParamValue:function(){return W},getUserAllMappngPortal:function(){return A},hasListener:function(){return s},initEventCenter:function(){return o},loginAccount:function(){return N},logoutAccount:function(){return U},queryAppVariable:function(){return q},queryAssetById:function(){return F},queryGroupIDByOfficeId:function(){return $},queryGroupInfosByOfficeId:function(){return V},queryOfficeInfosById:function(){return Y},registerEventListener:function(){return i},removeEventListener:function(){return a},setPortalPageConfig:function(){return O},switchPortalLogin:function(){return H},updateUserSelectPortal:function(){return C},validateSSOPageLoaded:function(){return x}}),"undefined"!==typeof window){var t=window.document.currentScript,n=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}const i=(t,n)=>{let r=window.rjEventCenter;r||(o(),r=window.rjEventCenter),r&&r.register&&r.register(t,n)},o=()=>{if(window.rjEventCenter)console.log(`事件中心已经初始化,不需要重新初始化:时间戳: ${(new Date).toLocaleString()}`);else{console.log(`初始化事件中心:时间戳: ${(new Date).toLocaleString()}`);let t=r(8807).A;window.rjEventCenter=t}},u=()=>{window.rjEventCenter&&(window.rjEventCenter.clearAll(),window.rjEventCenter=null,console.log(`事件中心已清理:时间戳: ${(new Date).toLocaleString()}`))},a=(t,n)=>{let r=window.rjEventCenter;r&&r.unregister&&r.unregister(t,n)},c=(t,n)=>{let r=window.rjEventCenter;r&&r.fireEvent&&r.fireEvent(t,n)},s=t=>{let n=window.rjEventCenter;return!(!n||!n.hasListener)&&n.hasListener(t)};r(4114),r(8111),r(2489),r(116),r(7588);var f=r(2505),l=r.n(f),h=r(3992);let p="";const v=(t="")=>{t&&(t.startsWith("/")&&(t=t.slice(1,t.length)),t.endsWith("/")&&(t=t.slice(0,-1)));const n=l().create({baseURL:`${p}/${t?t+"/":""}sdata/rest`,timeout:6e4,validateStatus:function(t){return t>=200&&t<300},headers:window.location.search&&h.parse(window.location.search).token||window.token?{token:h.parse(window.location.search).token||window.token}:{}});return n.defaults.headers.post["Content-Type"]="application/json",n.interceptors.response.use((t=>{let{data:n}=t;return"string"===typeof n&&(n=JSON.parse(n)),!n||200===n.status||n instanceof Blob?n instanceof Blob?(t.data=n,t):(t.data=n&&n.result,t):Promise.reject(t)}),(t=>{if(!t.response||401!==t.response.status)return Promise.reject(t.response)})),n};let d=window.prefixPath||"";var g=v(d);const y=async(t,n)=>{let r=await g.get(`/sdata/rest/appAuth/getAccessToken?appKey=${t}&appSecret=${n}`);return console.log("getPortalAccessToken",r),r},_=(t,n)=>{let r="";return t?r=window.appSdk.getAppId():(r=window.sessionStorage.getItem("iportal_app_id"),r||n.forEach((t=>{"iPortal_app_id"==t.name&&(r=t.default_value)})),r||(r=window.appSdk.getAppId())),r},w=async(t,n,r,e)=>{let i=_(r,e),o=await S(t,i,n),u=await m(n,o),a=window.appSdk.getAppId(),c=u.filter((t=>{if(r)return!0;if(t.app_id==i)return!0;{let n=t.children,r=!1;return n&&n.length>0&&n.forEach((t=>{let n=t.children;if(n&&n.length>0){let t=n.filter((t=>t.app_id===a));t&&t.length>0&&(r=!0)}})),r}}));return c},m=async(t,n)=>{let r={param:{id:t}},e=await g.post("/dataservice/rest/orchestration/getMenuDatasByGroupID",r),i=e.data.resultDatas,o=e.data.menuTypes;if(n&&n.length>0){let r=await b(n,t),e=r.data.quickMenuMappingDatas||[],u={};for(const t of e){let n=t.menu_mapping_id;u[n]=t}let a=r.data.menuMappingDatas||[];for(const t of a){let n=t.id;u[n]=t}return k(i,o,u)}return k(i,o,[])},b=async(t,n)=>{let r={param:{role_ids:t,group_id:n}},e=await g.post("/dataservice/rest/orchestration/getQuckMenuMappingsByRoleIDs",r);return e},x=async(t,n,r)=>{let e={param:{app_id:t,appSecret:n,returnUrl:r}},i=await g.post("/dataservice/rest/orchestration/validateSSOPageLoaded",e),o=i.data.count;return o},S=async(t,n,r)=>{let e={param:{user_id:t,app_id:n,group_id:r}},i=await g.post("/dataservice/rest/orchestration/getRoleIDsByUserAndGroupID",e),o=i.data.portal_role_ids;return o},k=(t,n,r)=>{let e={},i={};for(const u of t){let t=u.id,n={id:t,index:u.menu_id,name:u.title,sort:u.sort,actionType:u.actionType,url:u.url,iconClass:u.image,children:[],app_id:u.app_id,menu_id:u.menu_id,beyond_type:u.menu_type?u.menu_type:"RJVIEW-OTHERS",beyond_type_sort:u.menu_type_sort?u.menu_type_sort:999};r?(r[t]||"4"==u.type)&&(e[t]=n):e[t]=n}for(const u of n){let t=u.id;i[t]=u}for(const u of t){let t=u.type;if("5"==t){let t=e[u.id];if(!t)continue;let n=u.parent_id,r=t.beyond_type,o=e[n],a=o.children,c=a.find((t=>t.id==r));if(c){let n=c.children;n.push(t),t.typeItem=c}else{let n=i[r],e=n?{id:r,index:r,name:n.title,children:[],sort:n.value}:{id:r,index:r,name:"其他",children:[],sort:999},o=e.children;o.push(t),a.push(e),t.typeItem=e}}}const o=[];for(const u of t){let t=u.type;if("4"==t){let t=e[u.id];if(!t)continue;let n=t.children,r=0;for(const e of n){let t=e.children,n=t.length;if(r+=n,n>0)break}if(0==r)continue;o.push(t);let i=t.children;i.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort));for(let e of i){let t=e.children;t.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort))}}}return o.sort(((t,n)=>Number.isNaN(t.sort)?1:Number.isNaN(n.sort)?-1:t.sort-n.sort)),o},B=async t=>{let n={param:{userData:t}},r=await g.post("/dataservice/rest/orchestration/getPortalPageID",n),e=r.data.portal_id;return e},A=t=>{let n={param:{userData:t}};return g.post("/dataservice/rest/orchestration/getUserAllMappngPortal",n)},E=async t=>{let n={param:{operateData:t}},r=await g.post("/dataservice/rest/orchestration/getPortalUserMappingInfos",n),e=r.data.portalMapping;return e},j=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getPortalPageConfig",n),e=r.data.portal_page_config||"[]";return e},O=t=>{let n={param:t};return g.post("/dataservice/rest/orchestration/setPortalPageConfig",n)},C=t=>{let n={param:{portalMappingData:t}};return g.post("/dataservice/rest/orchestration/updateUserSelectPortal",n)},I=async(t,n)=>{let r={param:{id:t,appid:n}},e=await g.post("/dataservice/rest/orchestration/getPortalPageMenuID",r),i=e.data.menu_id;return i},R=async(t,n)=>{let r={param:{appID:t,groupID:n}},e=await g.post("/dataservice/rest/orchestration/getPortalMappingAppInfoByID",r),i=e.data.appInfo;return i},P=async()=>{let t={param:{id:"1005"}},n=await g.post("/dataservice/rest/orchestration/getNoticeInfosByAppTypeID",t),r=n.data.resultDatas;return r};var D=r(1396),z=r.n(D);const T=()=>g.get("/system/authority/getAuthPic?module=loginPassword",{responseType:"arraybuffer"}),U=async t=>{let n=await g.get(`/system/authority/logout?isMobileLogout=${t}`),r=JSON.parse(n.request.response),e=r.code;return"10110020"==e?(window.sessionStorage.setItem("iportal_login_user_id",""),window.sessionStorage.setItem("iportal_group_id",""),window.sessionStorage.setItem("iportal_login_user_key",""),{code:e,message:r.message}):{code:e,message:r.message}},M=async t=>{let n=await L();const r=z().AES.decrypt(t,n).toString(z().enc.Utf8);return r},H=async(t,n,r)=>{let e=window.sessionStorage.getItem("iportal_login_user_key");e=await M(e),t.password=e;let i=await U(r),o=i.code,u=i.message;if("10110020"==o){let r=await N(t,n);return r}return{code:o,message:u}},N=async(t,n)=>{let r={param:{loginData:{account:t.account_view,group_id:t.groupid,imageCode:t.imageCode}}},e=await g.post("/dataservice/rest/orchestration/getLoginPortalAccountKey",r),i=await L(),o=JSON.parse(e.request.response),u=o.result.code;if(10001==u){let r=o.result.codeData.code,a=r,c=o.result.codeData.key;if(r=z().AES.decrypt(r,i).toString(z().enc.Utf8),c=z().AES.decrypt(c,i).toString(z().enc.Utf8),c==t.password){if(r=window.appSdk.Encrypt(r),t.password=r,e=await g.post(`/system/authority/loginAccount4Application?authPicCode=${t.imageCode}&dataappId=${n}&mobileOrWeb=web`,t),o=JSON.parse(e.request.response),u=o.code,10110004==u){let n=o.id;return window.sessionStorage.setItem("iportal_login_user_id",n),window.sessionStorage.setItem("iportal_group_id",t.groupid),window.sessionStorage.setItem("iportal_login_user_key",a),{code:u}}return{code:u,message:o.message}}return{code:u,message:"账户密码错误!"}}return{code:u,message:o.result.message}},L=async()=>{let t={param:{}},n=await g.post("/dataservice/rest/orchestration/getKey",t),r=n.data.key;return r},F=(t,n=200)=>g.post(`/asset/getAssetData?asset_id=${t}&count=${n}`,{filters:[]}),W=(t,n)=>{try{const r=new URL(t),e=r.searchParams.get(n);return e&&-1!==e.indexOf("#")?e.split("#")[0]:e}catch(r){return console.error("URL 格式错误:",r),""}},$=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),e=r.data.resultDptData,i=e.id;return i},q=(t,n)=>{if(n&&n.length>0)for(let r=0;r<n.length;r++)if(n[r].name==t)return n[r].default_value;return""},K=t=>{let n={param:{operateData:t}};return g.post("/dataservice/rest/orchestration/addObjectUsedTimes",n)},G=t=>{let n={param:{objectInfo:t}};return g.post("/dataservice/rest/orchestration/getObjectUseTimes",n)},X=async t=>{let n={param:{componentID:t}},r=await g.post("/dataservice/rest/orchestration/getPageIDByComponentID",n),e=r.data.page_id;return e},J=async t=>{let n={param:{account:t}},r=await g.post("/dataservice/rest/orchestration/getGourpMappingsByAccountName",n),e=r.data.resultGroups;return e},V=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getGroupIDByDptID",n),e=r.data.resultDptData;return e},Z=async t=>{let n={param:{ids:t}},r=await g.post("/dataservice/rest/orchestration/getOfficeInfosByIDs",n),e=r.data.officeInfos;return e},Y=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getOfficeInfosByID",n),e=r.data.officeData;return e},Q=async t=>{let n={param:{id:t}},r=await g.post("/dataservice/rest/orchestration/getAPPInfosByID",n),e=r.data.appInfo;return e}}(),e}()}));
|
|
27
27
|
//# sourceMappingURL=index.umd.min.js.map
|