UNPKG

@mediatrack/open-asset

Version:

文档见 [分秒帧开放平台](https://open.mediatrack.cn/#/docs/api/jssdk/upload)

6 lines 243 kB
(function(r,m){typeof exports=="object"&&typeof module<"u"?module.exports=m():typeof define=="function"&&define.amd?define(m):(r=typeof globalThis<"u"?globalThis:r||self,r.OpenAsset=m())})(this,function(){"use strict";function filenameParser(r){const m=r.split(".");if(m.length===1)return[r,""];const o=m.pop();return/([a-z]|\d[a-z]+)/i.test(o)?[m.join("."),o]:[r,""]}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var cosJsSdkV5={exports:{}};(function(module,exports){(function(m,o){module.exports=o()})(commonjsGlobal,function(){return function(r){var m={};function o(p){if(m[p])return m[p].exports;var b=m[p]={i:p,l:!1,exports:{}};return r[p].call(b.exports,b,b.exports,o),b.l=!0,b.exports}return o.m=r,o.c=m,o.d=function(p,b,u){o.o(p,b)||Object.defineProperty(p,b,{enumerable:!0,get:u})},o.r=function(p){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(p,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(p,"__esModule",{value:!0})},o.t=function(p,b){if(b&1&&(p=o(p)),b&8||b&4&&typeof p=="object"&&p&&p.__esModule)return p;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:p}),b&2&&typeof p!="string")for(var T in p)o.d(u,T,function(I){return p[I]}.bind(null,T));return u},o.n=function(p){var b=p&&p.__esModule?function(){return p.default}:function(){return p};return o.d(b,"a",b),b},o.o=function(p,b){return Object.prototype.hasOwnProperty.call(p,b)},o.p="/dist/",o(o.s="./index.js")}({"./index.js":function(r,m,o){var p=o("./src/cos.js");r.exports=p},"./lib/beacon.min.js":function(r,m,o){var p,b,u=o("./node_modules/@babel/runtime/helpers/typeof.js");(function(T,I){u(m)=="object"&&typeof r<"u"?r.exports=I():(p=I,b=typeof p=="function"?p.call(m,o,m,r):p,b!==void 0&&(r.exports=b))})(this,function(){var T=function(s,l){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,S){c.__proto__=S}||function(c,S){for(var A in S)Object.prototype.hasOwnProperty.call(S,A)&&(c[A]=S[A])},T(s,l)},I=function(){return I=Object.assign||function(s){for(var l,c=1,S=arguments.length;c<S;c++)for(var A in l=arguments[c])Object.prototype.hasOwnProperty.call(l,A)&&(s[A]=l[A]);return s},I.apply(this,arguments)};function q(g,s,l,c){return new(l||(l=Promise))(function(S,A){function M(xe){try{ve(c.next(xe))}catch(Y){A(Y)}}function ee(xe){try{ve(c.throw(xe))}catch(Y){A(Y)}}function ve(xe){var Y;xe.done?S(xe.value):(Y=xe.value,Y instanceof l?Y:new l(function(Pe){Pe(Y)})).then(M,ee)}ve((c=c.apply(g,s||[])).next())})}function j(g,s){var l,c,S,A,M={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return A={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function ee(ve){return function(xe){return function(Y){if(l)throw new TypeError("Generator is already executing.");for(;M;)try{if(l=1,c&&(S=2&Y[0]?c.return:Y[0]?c.throw||((S=c.return)&&S.call(c),0):c.next)&&!(S=S.call(c,Y[1])).done)return S;switch(c=0,S&&(Y=[2&Y[0],S.value]),Y[0]){case 0:case 1:S=Y;break;case 4:return M.label++,{value:Y[1],done:!1};case 5:M.label++,c=Y[1],Y=[0];continue;case 7:Y=M.ops.pop(),M.trys.pop();continue;default:if(S=M.trys,!((S=S.length>0&&S[S.length-1])||Y[0]!==6&&Y[0]!==2)){M=0;continue}if(Y[0]===3&&(!S||Y[1]>S[0]&&Y[1]<S[3])){M.label=Y[1];break}if(Y[0]===6&&M.label<S[1]){M.label=S[1],S=Y;break}if(S&&M.label<S[2]){M.label=S[2],M.ops.push(Y);break}S[2]&&M.ops.pop(),M.trys.pop();continue}Y=s.call(g,M)}catch(Pe){Y=[6,Pe],c=0}finally{l=S=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}([ve,xe])}}}var _="__BEACON_",z="__BEACON_deviceId",X="last_report_time",W="sending_event_ids",F="beacon_config",N="beacon_config_request_time",K=function(){function g(){var s=this;this.emit=function(l,c){if(s){var S,A=s.__EventsList[l];if(A!=null&&A.length){A=A.slice();for(var M=0;M<A.length;M++){S=A[M];try{var ee=S.callback.apply(s,[c]);if(S.type===1&&s.remove(l,S.callback),ee===!1)break}catch(ve){throw ve}}}return s}},this.__EventsList={}}return g.prototype.indexOf=function(s,l){for(var c=0;c<s.length;c++)if(s[c].callback===l)return c;return-1},g.prototype.on=function(s,l,c){if(c===void 0&&(c=0),this){var S=this.__EventsList[s];if(S||(S=this.__EventsList[s]=[]),this.indexOf(S,l)===-1){var A={name:s,type:c||0,callback:l};return S.push(A),this}return this}},g.prototype.one=function(s,l){this.on(s,l,1)},g.prototype.remove=function(s,l){if(this){var c=this.__EventsList[s];if(!c)return null;if(!l){try{delete this.__EventsList[s]}catch{}return null}if(c.length){var S=this.indexOf(c,l);c.splice(S,1)}return this}},g}();function w(g,s){for(var l={},c=0,S=Object.keys(g);c<S.length;c++){var A=S[c],M=g[A];if(typeof M=="string")l[E(A)]=E(M);else{if(s)throw new Error("value mast be string !!!!");l[E(String(A))]=E(String(M))}}return l}function E(g){if(typeof g!="string")return g;try{return g.replace(new RegExp("\\|","g"),"%7C").replace(new RegExp("\\&","g"),"%26").replace(new RegExp("\\=","g"),"%3D").replace(new RegExp("\\+","g"),"%2B")}catch{return""}}function a(g){return String(g.A99)+String(g.A100)}var t=function(){},n=function(){function g(s){var l=this;this.lifeCycle=new K,this.uploadJobQueue=[],this.additionalParams={},this.delayTime=0,this._normalLogPipeline=function(c){if(!c||!c.reduce||!c.length)throw new TypeError("createPipeline 方法需要传入至少有一个 pipe 的数组");return c.length===1?function(S,A){c[0](S,A||t)}:c.reduce(function(S,A){return function(M,ee){return ee===void 0&&(ee=t),S(M,function(ve){return A==null?void 0:A(ve,ee)})}})}([function(c){l.send({url:l.strategy.getUploadUrl(),data:c,method:"post",contentType:"application/json;charset=UTF-8"},function(){var S=l.config.onReportSuccess;typeof S=="function"&&S(JSON.stringify(c.events))},function(){var S=l.config.onReportFail;typeof S=="function"&&S(JSON.stringify(c.events))})}]),function(c,S){if(!c)throw S instanceof Error?S:new Error(S)}(!!s.appkey,"appkey must be initial"),this.config=I({},s)}return g.prototype.onUserAction=function(s,l){this.preReport(s,l,!1)},g.prototype.onDirectUserAction=function(s,l){this.preReport(s,l,!0)},g.prototype.preReport=function(s,l,c){s?this.strategy.isEventUpOnOff()&&(this.strategy.isBlackEvent(s)||this.strategy.isSampleEvent(s)||this.onReport(s,l,c)):this.errorReport.reportError("602"," no eventCode")},g.prototype.addAdditionalParams=function(s){for(var l=0,c=Object.keys(s);l<c.length;l++){var S=c[l];this.additionalParams[S]=s[S]}},g.prototype.setChannelId=function(s){this.commonInfo.channelID=String(s)},g.prototype.setOpenId=function(s){this.commonInfo.openid=String(s)},g.prototype.setUnionid=function(s){this.commonInfo.unid=String(s)},g.prototype.getDeviceId=function(){return this.commonInfo.deviceId},g.prototype.getCommonInfo=function(){return this.commonInfo},g.prototype.removeSendingId=function(s){try{var l=JSON.parse(this.storage.getItem(W)),c=l.indexOf(s);c!=-1&&(l.splice(c,1),this.storage.setItem(W,JSON.stringify(l)))}catch{}},g}(),v=function(){function g(s,l,c,S){this.requestParams={},this.network=S,this.requestParams.attaid="00400014144",this.requestParams.token="6478159937",this.requestParams.product_id=s.appkey,this.requestParams.platform=c,this.requestParams.uin=l.deviceId,this.requestParams.model="",this.requestParams.os=c,this.requestParams.app_version=s.appVersion,this.requestParams.sdk_version=l.sdkVersion,this.requestParams.error_stack="",this.uploadUrl=s.isOversea?"https://htrace.wetvinfo.com/kv":"https://h.trace.qq.com/kv"}return g.prototype.reportError=function(s,l){this.requestParams._dc=Math.random(),this.requestParams.error_msg=l,this.requestParams.error_code=s,this.network.get(this.uploadUrl,{params:this.requestParams}).catch(function(c){})},g}(),d=function(){function g(s,l,c,S,A){this.strategy={isEventUpOnOff:!0,httpsUploadUrl:"https://otheve.beacon.qq.com/analytics/v2_upload",requestInterval:30,blacklist:[],samplelist:[]},this.realSample={},this.appkey="",this.needQueryConfig=!0,this.appkey=l.appkey,this.storage=S,this.needQueryConfig=s;try{var M=JSON.parse(this.storage.getItem(F));M&&this.processData(M)}catch{}l.isOversea&&(this.strategy.httpsUploadUrl="https://svibeacon.onezapp.com/analytics/v2_upload"),!l.isOversea&&this.needRequestConfig()&&this.requestConfig(l.appVersion,c,A)}return g.prototype.requestConfig=function(s,l,c){var S=this;this.storage.setItem(N,Date.now().toString()),c.post("https://oth.str.beacon.qq.com/trpc.beacon.configserver.BeaconConfigService/QueryConfig",{platformId:typeof wx>"u"?"3":"4",mainAppKey:this.appkey,appVersion:s,sdkVersion:l.sdkVersion,osVersion:l.userAgent,model:"",packageName:"",params:{A3:l.deviceId}}).then(function(A){if(A.data.ret==0)try{var M=JSON.parse(A.data.beaconConfig);M&&(S.processData(M),S.storage.setItem(F,A.data.beaconConfig))}catch{}else S.processData(null),S.storage.setItem(F,"")}).catch(function(A){})},g.prototype.processData=function(s){var l,c,S,A,M;this.strategy.isEventUpOnOff=(l=s==null?void 0:s.isEventUpOnOff)!==null&&l!==void 0?l:this.strategy.isEventUpOnOff,this.strategy.httpsUploadUrl=(c=s==null?void 0:s.httpsUploadUrl)!==null&&c!==void 0?c:this.strategy.httpsUploadUrl,this.strategy.requestInterval=(S=s==null?void 0:s.requestInterval)!==null&&S!==void 0?S:this.strategy.requestInterval,this.strategy.blacklist=(A=s==null?void 0:s.blacklist)!==null&&A!==void 0?A:this.strategy.blacklist,this.strategy.samplelist=(M=s==null?void 0:s.samplelist)!==null&&M!==void 0?M:this.strategy.samplelist;for(var ee=0,ve=this.strategy.samplelist;ee<ve.length;ee++){var xe=ve[ee].split(",");xe.length==2&&(this.realSample[xe[0]]=xe[1])}},g.prototype.needRequestConfig=function(){if(!this.needQueryConfig)return!1;var s=Number(this.storage.getItem(N));return Date.now()-s>60*this.strategy.requestInterval*1e3},g.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},g.prototype.isBlackEvent=function(s){return this.strategy.blacklist.indexOf(s)!=-1},g.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},g.prototype.isSampleEvent=function(s){return!!Object.prototype.hasOwnProperty.call(this.realSample,s)&&this.realSample[s]<Math.floor(Math.random()*Math.floor(1e4))},g}(),L="session_storage_key",U=function(){function g(s,l,c){this.getSessionStackDepth=0,this.beacon=c,this.storage=s,this.duration=l,this.appkey=c.config.appkey}return g.prototype.getSession=function(){this.getSessionStackDepth+=1;var s=this.storage.getItem(L);if(!s)return this.createSession();var l="",c=0;try{var S=JSON.parse(s)||{sessionId:void 0,sessionStart:void 0};if(!S.sessionId||!S.sessionStart)return this.createSession();var A=Number(this.storage.getItem(X));if(Date.now()-A>this.duration)return this.createSession();l=S.sessionId,c=S.sessionStart,this.getSessionStackDepth=0}catch{}return{sessionId:l,sessionStart:c}},g.prototype.createSession=function(){var s=Date.now(),l={sessionId:this.appkey+"_"+s.toString(),sessionStart:s};this.storage.setItem(L,JSON.stringify(l)),this.storage.setItem(X,s.toString());var c="is_new_user",S=this.storage.getItem(c);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:S?"N":"Y"}),this.storage.setItem(c,JSON.stringify(!1)),l},g}();function G(){var g=navigator.userAgent,s=g.indexOf("compatible")>-1&&g.indexOf("MSIE")>-1,l=g.indexOf("Edge")>-1&&!s,c=g.indexOf("Trident")>-1&&g.indexOf("rv:11.0")>-1;if(s){new RegExp("MSIE (\\d+\\.\\d+);").test(g);var S=parseFloat(RegExp.$1);return S==7?7:S==8?8:S==9?9:S==10?10:6}return l?-2:c?11:-1}function he(g,s){var l,c;return(l="https://tun-cos-1258344701.file.myqcloud.com/fp.js",c===void 0&&(c=Date.now()+"-"+Math.random()),new Promise(function(S,A){if(document.getElementById(c))S(void 0);else{var M=document.getElementsByTagName("head")[0],ee=document.createElement("script");ee.onload=function(){return function(){ee.onload=null,S(void 0)}},ee.onerror=function(ve){ee.onerror=null,M.removeChild(ee),A(ve)},ee.src=l,ee.id=c,M.appendChild(ee)}})).then(function(){new Fingerprint().getQimei36(g,s)}).catch(function(S){}),""}var P=function(){return(P=Object.assign||function(s){for(var l,c=1,S=arguments.length;c<S;c++)for(var A in l=arguments[c])Object.prototype.hasOwnProperty.call(l,A)&&(s[A]=l[A]);return s}).apply(this,arguments)},Q,$=function(){function g(s,l){l===void 0&&(l={}),this.reportOptions={},this.config=s,this.reportOptions=l}return g.canUseDB=function(){return!!(window!=null&&window.indexedDB)},g.prototype.openDB=function(){var s=this;return new Promise(function(l,c){if(!g.canUseDB())return c({message:"当前不支持 indexeddb"});var S=s.config,A=S.name,M=S.version,ee=S.stores,ve=indexedDB.open(A,M);ve.onsuccess=function(){s.db=ve.result,l(),P({result:1,func:"open",params:JSON.stringify(s.config)},s.reportOptions)},ve.onerror=function(xe){var Y,Pe;c(xe),P({result:0,func:"open",params:JSON.stringify(s.config),error_msg:(Pe=(Y=xe.target)===null||Y===void 0?void 0:Y.error)===null||Pe===void 0?void 0:Pe.message},s.reportOptions)},ve.onupgradeneeded=function(){s.db=ve.result;try{ee==null||ee.forEach(function(xe){s.createStore(xe)})}catch(xe){P({result:0,func:"open",params:JSON.stringify(s.config),error_msg:xe.message},s.reportOptions),c(xe)}}})},g.prototype.useStore=function(s){return this.storeName=s,this},g.prototype.deleteDB=function(){var s=this;return this.closeDB(),new Promise(function(l,c){var S=indexedDB.deleteDatabase(s.config.name);S.onsuccess=function(){return l()},S.onerror=c})},g.prototype.closeDB=function(){var s;(s=this.db)===null||s===void 0||s.close(),this.db=null},g.prototype.getStoreCount=function(){var s=this;return new Promise(function(l,c){var S=s.getStore("readonly").count();S.onsuccess=function(){return l(S.result)},S.onerror=c})},g.prototype.clearStore=function(){var s=this;return new Promise(function(l,c){var S=s.getStore("readwrite").clear();S.onsuccess=function(){return l()},S.onerror=c})},g.prototype.add=function(s,l){var c=this;return new Promise(function(S,A){var M=c.getStore("readwrite").add(s,l);M.onsuccess=function(){S(M.result)},M.onerror=A})},g.prototype.put=function(s,l){var c=this;return new Promise(function(S,A){var M=c.getStore("readwrite").put(s,l);M.onsuccess=function(){S(M.result)},M.onerror=A})},g.prototype.getStoreAllData=function(){var s=this;return new Promise(function(l,c){var S=s.getStore("readonly").openCursor(),A=[];S.onsuccess=function(){var M;if(!((M=S.result)===null||M===void 0)&&M.value){var ee=S.result.value;A.push(ee),S.result.continue()}else l(A)},S.onerror=c})},g.prototype.getDataRangeByIndex=function(s,l,c,S,A){var M=this;return new Promise(function(ee,ve){var xe=M.getStore().index(s),Y=IDBKeyRange.bound(l,c,S,A),Pe=[],ke=xe.openCursor(Y);ke.onsuccess=function(){var Ue;!((Ue=ke==null?void 0:ke.result)===null||Ue===void 0)&&Ue.value?(Pe.push(ke==null?void 0:ke.result.value),ke==null||ke.result.continue()):ee(Pe)},ke.onerror=ve})},g.prototype.removeDataByIndex=function(s,l,c,S,A){var M=this;return new Promise(function(ee,ve){var xe=M.getStore("readwrite").index(s),Y=IDBKeyRange.bound(l,c,S,A),Pe=xe.openCursor(Y),ke=0;Pe.onsuccess=function(Ue){var f=Ue.target.result;f?(ke+=1,f.delete(),f.continue()):ee(ke)},Pe.onerror=ve})},g.prototype.createStore=function(s){var l=s.name,c=s.indexes,S=c===void 0?[]:c,A=s.options;if(this.db){this.db.objectStoreNames.contains(l)&&this.db.deleteObjectStore(l);var M=this.db.createObjectStore(l,A);S.forEach(function(ee){M.createIndex(ee.indexName,ee.keyPath,ee.options)})}},g.prototype.getStore=function(s){var l;return s===void 0&&(s="readonly"),(l=this.db)===null||l===void 0?void 0:l.transaction(this.storeName,s).objectStore(this.storeName)},g}(),J="event_table_v3",te="eventId",re=function(){function g(s){this.isReady=!1,this.taskQueue=Promise.resolve(),this.db=new $({name:"Beacon_"+s+"_V3",version:1,stores:[{name:J,options:{keyPath:te},indexes:[{indexName:te,keyPath:te,options:{unique:!0}}]}]}),this.open()}return g.prototype.getCount=function(){var s=this;return this.readyExec(function(){return s.db.getStoreCount()})},g.prototype.setItem=function(s,l){var c=this;return this.readyExec(function(){return c.db.add({eventId:s,value:l})})},g.prototype.getItem=function(s){return q(this,void 0,void 0,function(){var l=this;return j(this,function(c){return[2,this.readyExec(function(){return l.db.getDataRangeByIndex(te,s,s)})]})})},g.prototype.removeItem=function(s){var l=this;return this.readyExec(function(){return l.db.removeDataByIndex(te,s,s)})},g.prototype.updateItem=function(s,l){var c=this;return this.readyExec(function(){return c.db.put({eventId:s,value:l})})},g.prototype.iterate=function(s){var l=this;return this.readyExec(function(){return l.db.getStoreAllData().then(function(c){c.forEach(function(S){s(S.value)})})})},g.prototype.open=function(){return q(this,void 0,void 0,function(){var s=this;return j(this,function(l){switch(l.label){case 0:return this.taskQueue=this.taskQueue.then(function(){return s.db.openDB()}),[4,this.taskQueue];case 1:return l.sent(),this.isReady=!0,this.db.useStore(J),[2]}})})},g.prototype.readyExec=function(s){return this.isReady?s():(this.taskQueue=this.taskQueue.then(function(){return s()}),this.taskQueue)},g}(),le=function(){function g(s){this.keyObject={},this.storage=s}return g.prototype.getCount=function(){return this.storage.getStoreCount()},g.prototype.removeItem=function(s){this.storage.removeItem(s),delete this.keyObject[s]},g.prototype.setItem=function(s,l){var c=JSON.stringify(l);this.storage.setItem(s,c),this.keyObject[s]=l},g.prototype.iterate=function(s){for(var l=Object.keys(this.keyObject),c=0;c<l.length;c++){var S=this.storage.getItem(l[c]);s(JSON.parse(S))}},g}(),ue=function(){function g(s,l){var c=this;this.dbEventCount=0,G()>0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new le(l),this.dbEventCount=this.store.getCount()):(this.store=new re(s),this.getCount().then(function(S){c.dbEventCount=S}).catch(function(S){}))}return g.prototype.getCount=function(){return q(this,void 0,void 0,function(){return j(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,s.sent()];case 2:return s.sent(),[2,Promise.reject()];case 3:return[2]}})})},g.prototype.insertEvent=function(s,l){return q(this,void 0,void 0,function(){var c,S;return j(this,function(A){switch(A.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];c=a(s.mapValue),A.label=1;case 1:return A.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(c,s)];case 2:return[2,A.sent()];case 3:return S=A.sent(),l&&l(S,s),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},g.prototype.getEvents=function(){return q(this,void 0,void 0,function(){var s;return j(this,function(l){switch(l.label){case 0:s=[],l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.store.iterate(function(c){s.push(c)})];case 2:return l.sent(),[2,Promise.all(s)];case 3:return l.sent(),[2,Promise.all(s)];case 4:return[2]}})})},g.prototype.removeEvent=function(s){return q(this,void 0,void 0,function(){var l;return j(this,function(c){switch(c.label){case 0:l=a(s.mapValue),c.label=1;case 1:return c.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(l)];case 2:return[2,c.sent()];case 3:return c.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},g}(),ne=function(){return(ne=Object.assign||function(s){for(var l,c=1,S=arguments.length;c<S;c++)for(var A in l=arguments[c])Object.prototype.hasOwnProperty.call(l,A)&&(s[A]=l[A]);return s}).apply(this,arguments)};function pe(g){try{return decodeURIComponent(g.replace(/\+/g," "))}catch{return null}}function se(g,s){var l=[null,void 0,"",NaN].includes(g);if(s.isSkipEmpty&&l)return null;var c=!s.isSkipEmpty&&l?"":g;try{return s.encode?encodeURIComponent(c):c}catch{return null}}function de(g,s){s===void 0&&(s={encode:!0,isSkipEmpty:!1});var l=g.url,c=g.query,S=c===void 0?{}:c,A=g.hash,M=l.split("#"),ee=M[0],ve=M[1],xe=ve===void 0?"":ve,Y=ee.split("?")[0],Pe=[],ke=se(A||xe,s),Ue=ne(ne({},function(f){var x=f.split("#"),B=x[0],V=x[1],ce=V===void 0?"":V,Be=B.split("?"),Me=Be[0],Ke=Be[1],Je=Ke===void 0?"":Ke,We=pe(ce),qe=Object.create(null);return Je.split("&").forEach(function(Ve){var He=Ve.split("="),$e=He[0],Ge=He[1],Xe=Ge===void 0?"":Ge,fe=pe($e),Fe=pe(Xe);fe===null||Fe===null||fe===""&&Fe===""||qe[fe]||(qe[fe]=Fe)}),{url:Me,query:qe,hash:We}}(l).query),S);return Object.keys(Ue).forEach(function(f){var x=se(f,s),B=se(Ue[f],s);x!==null&&B!==null&&Pe.push(x+"="+B)}),Y+(Pe.length?"?"+Pe.join("&"):"")+(ke?"#"+ke:"")}function ae(g,s){return new Promise(function(l,c){if(s&&document.querySelectorAll("script[data-tag="+s+"]").length)return l();var S=document.createElement("script"),A=ne({type:"text/javascript",charset:"utf-8"},g);Object.keys(A).forEach(function(M){return function(ee,ve,xe){if(ee)return xe===void 0?ee.getAttribute(ve):ee.setAttribute(ve,xe)}(S,M,A[M])}),s&&(S.dataset.tag=s),S.onload=function(){return l()},S.onreadystatechange=function(){var M=S.readyState;["complete","loaded"].includes(M)&&(S.onreadystatechange=null,l())},S.onerror=c,document.body.appendChild(S)})}(function(g){g[g.equal=0]="equal",g[g.low=-1]="low",g[g.high=1]="high"})(Q||(Q={}));var Z=function(){return(Z=Object.assign||function(s){for(var l,c=1,S=arguments.length;c<S;c++)for(var A in l=arguments[c])Object.prototype.hasOwnProperty.call(l,A)&&(s[A]=l[A]);return s}).apply(this,arguments)};function ge(g,s,l,c){return new(l||(l=Promise))(function(S,A){function M(xe){try{ve(c.next(xe))}catch(Y){A(Y)}}function ee(xe){try{ve(c.throw(xe))}catch(Y){A(Y)}}function ve(xe){var Y;xe.done?S(xe.value):(Y=xe.value,Y instanceof l?Y:new l(function(Pe){Pe(Y)})).then(M,ee)}ve((c=c.apply(g,s||[])).next())})}function Ce(g,s){var l,c,S,A,M={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return A={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function ee(ve){return function(xe){return function(Y){if(l)throw new TypeError("Generator is already executing.");for(;M;)try{if(l=1,c&&(S=2&Y[0]?c.return:Y[0]?c.throw||((S=c.return)&&S.call(c),0):c.next)&&!(S=S.call(c,Y[1])).done)return S;switch(c=0,S&&(Y=[2&Y[0],S.value]),Y[0]){case 0:case 1:S=Y;break;case 4:return M.label++,{value:Y[1],done:!1};case 5:M.label++,c=Y[1],Y=[0];continue;case 7:Y=M.ops.pop(),M.trys.pop();continue;default:if(!((S=(S=M.trys).length>0&&S[S.length-1])||Y[0]!==6&&Y[0]!==2)){M=0;continue}if(Y[0]===3&&(!S||Y[1]>S[0]&&Y[1]<S[3])){M.label=Y[1];break}if(Y[0]===6&&M.label<S[1]){M.label=S[1],S=Y;break}if(S&&M.label<S[2]){M.label=S[2],M.ops.push(Y);break}S[2]&&M.ops.pop(),M.trys.pop();continue}Y=s.call(g,M)}catch(Pe){Y=[6,Pe],c=0}finally{l=S=0}if(5&Y[0])throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}([ve,xe])}}}var me=function(){function g(){this.interceptors=[]}return g.prototype.use=function(s,l){return this.interceptors.push({resolved:s,rejected:l}),this.interceptors.length-1},g.prototype.traverse=function(s,l){l===void 0&&(l=!1);var c=Promise.resolve(s);return(l?Array.prototype.reduceRight:Array.prototype.reduce).call(this.interceptors,function(S,A){if(A){var M=A.resolved,ee=A.rejected;c=c.then(M,ee)}return S},""),c},g.prototype.eject=function(s){this.interceptors[s]&&(this.interceptors[s]=null)},g}(),ye={defaults:{timeout:0,method:"GET",mode:"cors",redirect:"follow",credentials:"same-origin"},headers:{common:{Accept:"application/json, text/plain, */*"},POST:{"Content-Type":"application/x-www-form-urlencoded"},PUT:{"Content-Type":"application/x-www-form-urlencoded"},PATCH:{"Content-Type":"application/x-www-form-urlencoded"}},baseURL:"",polyfillUrl:"https://vm.gtimg.cn/comps/script/fetch.min.js",interceptors:{request:new me,response:new me}},Se=/^([a-z][a-z\d+\-.]*:)?\/\//i,Te=Object.prototype.toString;function Re(g){return ge(this,void 0,void 0,function(){var s;return Ce(this,function(l){switch(l.label){case 0:if(window.fetch)return[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ae({src:g})];case 2:return l.sent(),[3,4];case 3:throw s=l.sent(),new Error("加载 polyfill "+g+" 失败: "+s.message);case 4:return[2]}})})}function we(g){return["Accept","Content-Type"].forEach(function(s){return l=s,void((c=g.headers)&&Object.keys(c).forEach(function(S){S!==l&&S.toUpperCase()===l.toUpperCase()&&(c[l]=c[S],delete c[S])}));var l,c}),function(s){if(Te.call(s)!=="[object Object]")return!1;var l=Object.getPrototypeOf(s);return l===null||l===Object.prototype}(g.body)&&(g.body=JSON.stringify(g.body),g.headers&&(g.headers["Content-Type"]="application/json;charset=utf-8")),g}function Ie(g){return ge(this,void 0,void 0,function(){var s,l,c,S,A,M,ee,ve,xe,Y,Pe,ke,Ue,f,x,B,V;return Ce(this,function(ce){switch(ce.label){case 0:return s=ye.baseURL,l=ye.defaults,c=ye.interceptors,[4,Re(ye.polyfillUrl)];case 1:return ce.sent(),(S=Z(Z({},l),g)).headers||(S.headers=function(Be){Be===void 0&&(Be="GET");var Me=ye.headers[Be]||{};return Z(Z({},ye.headers.common),Me)}(S.method)),we(S),[4,c.request.traverse(S,!0)];case 2:if((A=ce.sent())instanceof Error)throw A;return A.url=function(Be,Me){return!Be||Se.test(Me)?Me:Be.replace(/\/+$/,"")+"/"+Me.replace(/^\/+/,"")}(s,A.url),M=A.url,ee=A.timeout,ve=A.params,xe=A.method,Y=["GET","DELETE","OPTIONS","HEAD"].includes(xe===void 0?"GET":xe)&&!!ve,Pe=Y?de({url:M,query:ve}):M,ke=[],ee&&!A.signal&&(x=new Promise(function(Be){Ue=setTimeout(function(){Be(new Error("timeout"))},ee)}),ke.push(x),f=new AbortController,A.signal=f.signal),ke.push(fetch(Pe,A).catch(function(Be){return Be})),[4,Promise.race(ke)];case 3:return B=ce.sent(),Ue&&clearTimeout(Ue),[4,c.response.traverse(B)];case 4:if((V=ce.sent())instanceof Error)throw f==null||f.abort(),V;return[2,V]}})})}var _e=function(){function g(s){ye.interceptors.request.use(function(l){var c=l.url,S=l.method,A=l.body,M=A;if(s.onReportBeforeSend){var ee=s.onReportBeforeSend({url:c,method:S,data:A?JSON.parse(A):null});M=ee!=null&&ee.data?JSON.stringify(ee.data):null}return S!="GET"&&M?I(I({},l),{body:M}):l})}return g.prototype.get=function(s,l){return q(this,void 0,void 0,function(){var c,S;return j(this,function(A){switch(A.label){case 0:return[4,Ie(I({url:s},l))];case 1:return[4,(c=A.sent()).json()];case 2:return S=A.sent(),[2,Promise.resolve({data:S,status:c.status,statusText:c.statusText,headers:c.headers})]}})})},g.prototype.post=function(s,l,c){return q(this,void 0,void 0,function(){var S,A;return j(this,function(M){switch(M.label){case 0:return[4,Ie(I({url:s,body:l,method:"POST"},c))];case 1:return[4,(S=M.sent()).json()];case 2:return A=M.sent(),[2,Promise.resolve({data:A,status:S.status,statusText:S.statusText,headers:S.headers})]}})})},g}(),oe=function(){function g(s){this.appkey=s}return g.prototype.getItem=function(s){try{return window.localStorage.getItem(this.getStoreKey(s))}catch{return""}},g.prototype.removeItem=function(s){try{window.localStorage.removeItem(this.getStoreKey(s))}catch{}},g.prototype.setItem=function(s,l){try{window.localStorage.setItem(this.getStoreKey(s),l)}catch{}},g.prototype.setSessionItem=function(s,l){try{window.sessionStorage.setItem(this.getStoreKey(s),l)}catch{}},g.prototype.getSessionItem=function(s){try{return window.sessionStorage.getItem(this.getStoreKey(s))}catch{return""}},g.prototype.getStoreKey=function(s){return _+this.appkey+"_"+s},g.prototype.createDeviceId=function(){try{var s=window.localStorage.getItem(z);return s||(s=function(l){for(var c="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",S="",A=0;A<l;A++)S+=c.charAt(Math.floor(Math.random()*c.length));return S}(32),window.localStorage.setItem(z,s)),s}catch{return""}},g.prototype.clear=function(){try{for(var s=window.localStorage.length,l=0;l<s;l++){var c=window.localStorage.key(l);(c==null?void 0:c.substr(0,9))==_&&window.localStorage.removeItem(c)}}catch{}},g.prototype.getStoreCount=function(){var s=0;try{s=window.localStorage.length}catch{}return s},g}(),O="logid_start",H="4.5.14-web";return function(g){function s(l){var c=g.call(this,l)||this;c.qimei36="",c.uselessCycleTaskNum=0,c.underWeakNet=!1,c.pauseSearching=!1,c.send=function(ee,ve,xe){c.storage.setItem(X,Date.now().toString()),c.network.post(c.uploadUrl||c.strategy.getUploadUrl(),ee.data).then(function(Y){var Pe;((Pe=Y==null?void 0:Y.data)===null||Pe===void 0?void 0:Pe.result)==100?c.delayTime=1e3*Y.data.delayTime:c.delayTime=0,ve&&ve(ee.data),ee.data.events.forEach(function(ke){c.store.removeEvent(ke).then(function(){c.removeSendingId(a(ke.mapValue))})}),c.doCustomCycleTask()}).catch(function(Y){var Pe=ee.data.events;c.errorReport.reportError(Y.code?Y.code.toString():"600",Y.message),xe&&xe(ee.data);var ke=JSON.parse(c.storage.getItem(W));Pe.forEach(function(Ue){ke&&ke.indexOf(a(Ue))!=-1&&c.store.insertEvent(Ue,function(f,x){f&&c.errorReport.reportError("604","insertEvent fail!")}),c.removeSendingId(a(Ue))}),c.monitorUploadFailed()})};var S,A,M=G();return c.isUnderIE8=M>0&&M<8,c.isUnderIE8||(c.isUnderIE=M>0,l.needInitQimei&&he(l.appkey,function(ee){c.qimei36=ee.q36}),c.network=new _e(l),c.storage=new oe(l.appkey),c.initCommonInfo(l),c.store=new ue(l.appkey,c.storage),c.errorReport=new v(c.config,c.commonInfo,"web",c.network),c.strategy=new d(l.needQueryConfig==null||l.needQueryConfig,c.config,c.commonInfo,c.storage,c.network),c.logidStartTime=c.storage.getItem(O),c.logidStartTime||(c.logidStartTime=Date.now().toString(),c.storage.setItem(O,c.logidStartTime)),S=c.logidStartTime,A=Date.now()-Number.parseFloat(S),Math.floor(A/864e5)>=365&&c.storage.clear(),c.initSession(l),c.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return c.lifeCycle.emit("init")},0),c.initDelayTime=l.delay?l.delay:1e3,c.cycleTask(c.initDelayTime)),c}return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function S(){this.constructor=l}T(l,c),l.prototype=c===null?Object.create(c):(S.prototype=c.prototype,new S)}(s,g),s.prototype.initSession=function(l){var c=18e5;l.sessionDuration&&l.sessionDuration>3e4&&(c=l.sessionDuration),this.beaconSession=new U(this.storage,c,this)},s.prototype.initCommonInfo=function(l){var c=Number(this.storage.getItem(X));try{var S=JSON.parse(this.storage.getItem(W));(Date.now()-c>3e4||!S)&&this.storage.setItem(W,JSON.stringify([]))}catch{}l.uploadUrl&&(this.uploadUrl=l.uploadUrl+"?appkey="+l.appkey);var A=[window.screen.width,window.screen.height];window.devicePixelRatio&&A.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:A.join("*"),channelID:l.channelID?String(l.channelID):"",openid:l.openid?String(l.openid):"",unid:l.unionid?String(l.unionid):"",sdkVersion:H},this.config.appVersion=l.versionCode?String(l.versionCode):"",this.config.strictMode=l.strictMode},s.prototype.cycleTask=function(l){var c=this;this.intervalID=window.setInterval(function(){c.pauseSearching||c.store.getEvents().then(function(S){S.length==0&&(c.pauseSearching=!0);var A=[],M=JSON.parse(c.storage.getItem(W));M||(M=[]),S&&S.forEach(function(ee){var ve=a(ee.mapValue);M.indexOf(ve)==-1&&(A.push(ee),M.push(ve))}),A.length!=0&&(c.storage.setItem(W,JSON.stringify(M)),c._normalLogPipeline(c.assembleData(A)))}).catch(function(S){})},l)},s.prototype.onReport=function(l,c,S){var A=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var M=this.generateData(l,c,S);if(S&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(M));else{var ee=M.shift();ee&&this.store.insertEvent(ee,function(ve){ve&&A.errorReport.reportError("604","insertEvent fail!")}).catch(function(ve){A._normalLogPipeline(A.assembleData(M))})}}},s.prototype.onSendBeacon=function(l,c){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var S=this.assembleData(this.generateData(l,c,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(S))}},s.prototype.generateData=function(l,c,S){var A=[],M="4.5.14-web_"+(S?"direct_log_id":"normal_log_id"),ee=Number(this.storage.getItem(M));return ee=ee||1,c=I(I({},c),{A99:S?"Y":"N",A100:ee.toString(),A72:H,A88:this.logidStartTime}),ee++,this.storage.setItem(M,ee.toString()),A.push({eventCode:l,eventTime:Date.now().toString(),mapValue:w(c,this.config.strictMode)}),A},s.prototype.assembleData=function(l){var c=this.beaconSession.getSession();return{appVersion:this.config.appVersion?E(this.config.appVersion):"",sdkId:"js",sdkVersion:H,mainAppKey:this.config.appkey,platformId:3,common:w(I(I({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:c.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:l}},s.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},s.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},s}(n)})},"./lib/crypto.js":function(r,m,o){(function(p){var b=o("./node_modules/@babel/runtime/helpers/typeof.js"),u=u||function(T,I){var q={},j=q.lib={},_=function(){},z=j.Base={extend:function(t){_.prototype=this;var n=new _;return t&&n.mixIn(t),n.hasOwnProperty("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)}},X=j.WordArray=z.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=I?n:4*t.length},toString:function(t){return(t||F).stringify(this)},concat:function(t){var n=this.words,v=t.words,d=this.sigBytes;if(t=t.sigBytes,this.clamp(),d%4)for(var L=0;L<t;L++)n[d+L>>>2]|=(v[L>>>2]>>>24-8*(L%4)&255)<<24-8*((d+L)%4);else if(65535<v.length)for(L=0;L<t;L+=4)n[d+L>>>2]=v[L>>>2];else n.push.apply(n,v);return this.sigBytes+=t,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-8*(n%4),t.length=T.ceil(n/4)},clone:function(){var t=z.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],v=0;v<t;v+=4)n.push(4294967296*T.random()|0);return new X.init(n,t)}}),W=q.enc={},F=W.Hex={stringify:function(t){var n=t.words;t=t.sigBytes;for(var v=[],d=0;d<t;d++){var L=n[d>>>2]>>>24-8*(d%4)&255;v.push((L>>>4).toString(16)),v.push((L&15).toString(16))}return v.join("")},parse:function(t){for(var n=t.length,v=[],d=0;d<n;d+=2)v[d>>>3]|=parseInt(t.substr(d,2),16)<<24-4*(d%8);return new X.init(v,n/2)}},N=W.Latin1={stringify:function(t){var n=t.words;t=t.sigBytes;for(var v=[],d=0;d<t;d++)v.push(String.fromCharCode(n[d>>>2]>>>24-8*(d%4)&255));return v.join("")},parse:function(t){for(var n=t.length,v=[],d=0;d<n;d++)v[d>>>2]|=(t.charCodeAt(d)&255)<<24-8*(d%4);return new X.init(v,n)}},K=W.Utf8={stringify:function(t){try{return decodeURIComponent(escape(N.stringify(t)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(t){return N.parse(unescape(encodeURIComponent(t)))}},w=j.BufferedBlockAlgorithm=z.extend({reset:function(){this._data=new X.init,this._nDataBytes=0},_append:function(t){typeof t=="string"&&(t=K.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n=this._data,v=n.words,d=n.sigBytes,L=this.blockSize,U=d/(4*L),U=t?T.ceil(U):T.max((U|0)-this._minBufferSize,0);if(t=U*L,d=T.min(4*t,d),t){for(var G=0;G<t;G+=L)this._doProcessBlock(v,G);G=v.splice(0,t),n.sigBytes-=d}return new X.init(G,d)},clone:function(){var t=z.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});j.Hasher=w.extend({cfg:z.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,v){return new t.init(v).finalize(n)}},_createHmacHelper:function(t){return function(n,v){return new E.HMAC.init(t,v).finalize(n)}}});var E=q.algo={};return q}(Math);(function(){var T=u,_=T.lib,I=_.WordArray,q=_.Hasher,j=[],_=T.algo.SHA1=q.extend({_doReset:function(){this._hash=new I.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(X,W){for(var F=this._hash.words,N=F[0],K=F[1],w=F[2],E=F[3],a=F[4],t=0;80>t;t++){if(16>t)j[t]=X[W+t]|0;else{var n=j[t-3]^j[t-8]^j[t-14]^j[t-16];j[t]=n<<1|n>>>31}n=(N<<5|N>>>27)+a+j[t],n=20>t?n+((K&w|~K&E)+1518500249):40>t?n+((K^w^E)+1859775393):60>t?n+((K&w|K&E|w&E)-1894007588):n+((K^w^E)-899497514),a=E,E=w,w=K<<30|K>>>2,K=N,N=n}F[0]=F[0]+N|0,F[1]=F[1]+K|0,F[2]=F[2]+w|0,F[3]=F[3]+E|0,F[4]=F[4]+a|0},_doFinalize:function(){var X=this._data,W=X.words,F=8*this._nDataBytes,N=8*X.sigBytes;return W[N>>>5]|=128<<24-N%32,W[(N+64>>>9<<4)+14]=Math.floor(F/4294967296),W[(N+64>>>9<<4)+15]=F,X.sigBytes=4*W.length,this._process(),this._hash},clone:function(){var X=q.clone.call(this);return X._hash=this._hash.clone(),X}});T.SHA1=q._createHelper(_),T.HmacSHA1=q._createHmacHelper(_)})(),function(){var T=u,I=T.enc.Utf8;T.algo.HMAC=T.lib.Base.extend({init:function(j,_){j=this._hasher=new j.init,typeof _=="string"&&(_=I.parse(_));var z=j.blockSize,X=4*z;_.sigBytes>X&&(_=j.finalize(_)),_.clamp();for(var W=this._oKey=_.clone(),F=this._iKey=_.clone(),N=W.words,K=F.words,w=0;w<z;w++)N[w]^=1549556828,K[w]^=909522486;W.sigBytes=F.sigBytes=X,this.reset()},reset:function(){var j=this._hasher;j.reset(),j.update(this._iKey)},update:function(j){return this._hasher.update(j),this},finalize:function(j){var _=this._hasher;return j=_.finalize(j),_.reset(),_.finalize(this._oKey.clone().concat(j))}})}(),function(){var T=u,I=T.lib,q=I.WordArray,j=T.enc;j.Base64={stringify:function(z){var X=z.words,W=z.sigBytes,F=this._map;z.clamp();for(var N=[],K=0;K<W;K+=3)for(var w=X[K>>>2]>>>24-K%4*8&255,E=X[K+1>>>2]>>>24-(K+1)%4*8&255,a=X[K+2>>>2]>>>24-(K+2)%4*8&255,t=w<<16|E<<8|a,n=0;n<4&&K+n*.75<W;n++)N.push(F.charAt(t>>>6*(3-n)&63));var v=F.charAt(64);if(v)for(;N.length%4;)N.push(v);return N.join("")},parse:function(z){var X=z.length,W=this._map,F=W.charAt(64);if(F){var N=z.indexOf(F);N!=-1&&(X=N)}for(var K=[],w=0,E=0;E<X;E++)if(E%4){var a=W.indexOf(z.charAt(E-1))<<E%4*2,t=W.indexOf(z.charAt(E))>>>6-E%4*2;K[w>>>2]|=(a|t)<<24-w%4*8,w++}return q.create(K,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),b(p)==="object"?p.exports=u:window.CryptoJS=u}).call(this,o("./node_modules/webpack/buildin/module.js")(r))},"./lib/json2xml.js":function(r,m,o){var p=o("./node_modules/@babel/runtime/helpers/typeof.js"),b="a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿿、-퟿豈-﷏ﷰ-�",u="-.0-9·̀-ͯ‿⁀",T=new RegExp("^([^"+b+"])|^((x|X)(m|M)(l|L))|([^"+b+u+"])","g"),I=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,q=function(W){var F=[];if(W instanceof Object)for(var N in W)W.hasOwnProperty(N)&&F.push(N);return F},j=function(W,F){var N=function(w,E,a,t,n){var v=F.indent!==void 0?F.indent:" ",d=F.prettyPrint?` `+new Array(t).join(v):"";F.removeIllegalNameCharacters&&(w=w.replace(T,"_"));var L=[d,"<",w,a||""];return E&&E.length>0?(L.push(">"),L.push(E),n&&L.push(d),L.push("</"),L.push(w),L.push(">")):L.push("/>"),L.join("")};return function K(w,E,a){var t=p(w);switch((Array.isArray?Array.isArray(w):w instanceof Array)?t="array":w instanceof Date&&(t="date"),t){case"array":var n=[];return w.map(function(U){n.push(K(U,1,a+1))}),F.prettyPrint&&n.push(` `),n.join("");case"date":return w.toJSON?w.toJSON():w+"";case"object":var v=[];for(var d in w)if(w.hasOwnProperty(d))if(w[d]instanceof Array)for(var L=0;L<w[d].length;L++)w[d].hasOwnProperty(L)&&v.push(N(d,K(w[d][L],0,a+1),null,a+1,q(w[d][L]).length));else v.push(N(d,K(w[d],0,a+1),null,a+1));return F.prettyPrint&&v.length>0&&v.push(` `),v.join("");case"function":return w();default:return F.escape?z(w):""+w}}(W,0,0)},_=function(W){var F=['<?xml version="1.0" encoding="UTF-8"'];return W&&F.push(' standalone="yes"'),F.push("?>"),F.join("")};function z(X){return(""+X).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(I,"")}r.exports=function(X,W){if(W||(W={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof X=="string")try{X=JSON.parse(X.toString())}catch{return!1}var F="",N="";W&&(p(W)=="object"?(W.xmlHeader&&(F=_(!!W.xmlHeader.standalone)),typeof W.docType<"u"&&(N="<!DOCTYPE "+W.docType+">")):F=_()),W=W||{};var K=[F,W.prettyPrint&&N?` `:"",N,j(X,W)];return K.join("").replace(/\n{2,}/g,` `).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){var ERROR="input is invalid type",WINDOW=(typeof window>"u"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self>"u"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process>"u"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__webpack_require__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(r){return Object.prototype.toString.call(r)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(r){return _typeof(r)==="object"&&r.buffer&&r.buffer.constructor===ArrayBuffer});var createOutputMethod=function(m){return function(o,p){return new Md5(!0).update(o,p)[m]()}},createMethod=function(){var m=createOutputMethod("hex");NODE_JS&&(m=nodeWrap(m)),m.getCtx=m.create=function(){return new Md5},m.update=function(b){return m.create().update(b)};for(var o=0;o<OUTPUT_TYPES.length;++o){var p=OUTPUT_TYPES[o];m[p]=createOutputMethod(p)}return m},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function r(m){if(typeof m=="string")return crypto.createHash("md5").update(m,"utf8").digest("hex");if(m==null)throw ERROR;return m.constructor===ArrayBuffer&&(m=new Uint8Array(m)),Array.isArray(m)||ArrayBuffer.isView(m)||m.constructor===Buffer?crypto.createHash("md5").update(new Buffer(m)).digest("hex"):method(m)};return nodeMethod};function Md5(r){if(r)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var m=new ArrayBuffer(68);this.buffer8=new Uint8Array(m),this.blocks=new Uint32Array(m)}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}Md5.prototype.update=function(r,m){if(!this.finalized){for(var o,p=0,b,u=r.length,T=this.blocks,I=this.buffer8;p<u;){if(this.hashed&&(this.hashed=!1,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),ARRAY_BUFFER)for(b=this.start;p<u&&b<64;++p)o=r.charCodeAt(p),m||o<128?I[b++]=o:o<2048?(I[b++]=192|o>>6,I[b++]=128|o&63):o<55296||o>=57344?(I[b++]=224|o>>12,I[b++]=128|o>>6&63,I[b++]=128|o&63):(o=65536+((o&1023)<<10|r.charCodeAt(++p)&1023),I[b++]=240|o>>18,I[b++]=128|o>>12&63,I[b++]=128|o>>6&63,I[b++]=128|o&63);else for(b=this.start;p<u&&b<64;++p)o=r.charCodeAt(p),m||o<128?T[b>>2]|=o<<SHIFT[b++&3]:o<2048?(T[b>>2]|=(192|o>>6)<<SHIFT[b++&3],T[b>>2]|=(128|o&63)<<SHIFT[b++&3]):o<55296||o>=57344?(T[b>>2]|=(224|o>>12)<<SHIFT[b++&3],T[b>>2]|=(128|o>>6&63)<<SHIFT[b++&3],T[b>>2]|=(128|o&63)<<SHIFT[b++&3]):(o=65536+((o&1023)<<10|r.charCodeAt(++p)&1023),T[b>>2]|=(240|o>>18)<<SHIFT[b++&3],T[b>>2]|=(128|o>>12&63)<<SHIFT[b++&3],T[b>>2]|=(128|o>>6&63)<<SHIFT[b++&3],T[b>>2]|=(128|o&63)<<SHIFT[b++&3]);this.lastByteIndex=b,this.bytes+=b-this.start,b>=64?(this.start=b-64,this.hash(),this.hashed=!0):this.start=b}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var r=this.blocks,m=this.lastByteIndex;r[m>>2]|=EXTRA[m&3],m>=56&&(this.hashed||this.hash(),r[0]=r[16],r[16]=r[1]=r[2]=r[3]=r[4]=r[5]=r[6]=r[7]=r[8]=r[9]=r[10]=r[11]=r[12]=r[13]=r[14]=r[15]=0),r[14]=this.bytes<<3,r[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var r,m,o,p,b,u,T=this.blocks;this.first?(r=T[0]-680876937,r=(r<<7|r>>>25)-271733879<<0,p=(-1732584194^r&2004318071)+T[1]-117830708,p=(p<<12|p>>>20)+r<<0,o=(-271733879^p&(r^-271733879))+T[2]-1126478375,o=(o<<17|o>>>15)+p<<0,m=(r^o&(p^r))+T[3]-1316259209,m=(m<<22|m>>>10)+o<<0):(r=this.h0,m=this.h1,o=this.h2,p=this.h3,r+=(p^m&(o^p))+T[0]-680876936,r=(r<<7|r>>>25)+m<<0,p+=(o^r&(m^o))+T[1]-389564586,p=(p<<12|p>>>20)+r<<0,o+=(m^p&(r^m))+T[2]+606105819,o=(o<<17|o>>>15)+p<<0,m+=(r^o&(p^r))+T[3]-1044525330,m=(m<<22|m>>>10)+o<<0),r+=(p^m&(o^p))+T[4]-176418897,r=(r<<7|r>>>25)+m<<0,p+=(o^r&(m^o))+T[5]+1200080426,p=(p<<12|p>>>20)+r<<0,o+=(m^p&(r^m))+T[6]-1473231341,o=(o<<17|o>>>15)+p<<0,m+=(r^o&(p^r))+T[7]-45705983,m=(m<<22|m>>>10)+o<<0,r+=(p^m&(o^p))+T[8]+1770035416,r=(r<<7|r>>>25)+m<<0,p+=(o^r&(m^o))+T[9]-1958414417,p=(p<<12|p>>>20)+r<<0,o+=(m^p&(r^m))+T[10]-42063,o=(o<<17|o>>>15)+p<<0,m+=(r^o&(p^r))+T[11]-1990404162,m=(m<<22|m>>>10)+o<<0,r+=(p^m&(o^p))+T[12]+1804603682,r=(r<<7|r>>>25)+m<<0,p+=(o^r&(m^o))+T[13]-40341101,p=(p<<12|p>>>20)+r<<0,o+=(m^p&(r^m))+T[14]-1502002290,o=(o<<17|o>>>15)+p<<0,m+=(r^o&(p^r))+T[15]+1236535329,m=(m<<22|m>>>10)+o<<0,r+=(o^p&(m^o))+T[1]-165796510,r=(r<<5|r>>>27)+m<<0,p+=(m^o&(r^m))+T[6]-1069501632,p=(p<<9|p>>>23)+r<<0,o+=(r^m&(p^r))+T[11]+643717713,o=(o<<14|o>>>18)+p<<0,m+=(p^r&(o^p))+T[0]-373897302,m=(m<<20|m>>>12)+o<<0,r+=(o^p&(m^o))+T[5]-701558691,r=(r<<5|r>>>27)+m<<0,p+=(m^o&(r^m))+T[10]+38016083,p=(p<<9|p>>>23)+r<<0,o+=(r^m&(p^r))+T[15]-660478335,o=(o<<14|o>>>18)+p<<0,m+=(p^r&(o^p))+T[4]-405537848,m=(m<<20|m>>>12)+o<<0,r+=(o^p&(m^o))+T[9]+568446438,r=(r<<5|r>>>27)+m<<0,p+=(m^o&(r^m))+T[14]-1019803690,p=(p<<9|p>>>23)+r<<0,o+=(r^m&(p^r))+T[3]-187363961,o=(o<<14|o>>>18)+p<<0,m+=(p^r&(o^p))+T[8]+1163531501,m=(m<<20|m>>>12)+o<<0,r+=(o^p&(m^o))+T[13]-1444681467,r=(r<<5|r>>>27)+m<<0,p+=(m^o&(r^m))+T[2]-51403784,p=(p<<9|p>>>23)+r<<0,o+=(r^m&(p^r))+T[7]+1735328473,o=(o<<14|o>>>18)+p<<0,m+=(p^r&(o^p))+T[12]-1926607734,m=(m<<20|m>>>12)+o<<0,b=m^o,r+=(b^p)+T[5]-378558,r=(r<<4|r>>>28)+m<<0,p+=(b^r)+T[8]-2022574463,p=(p<<11|p>>>21)+r<<0,u=p^r,o+=(u^m)+T[11]+1839030562,o=(o<<16|o>>>16)+p<<0,m+=(u^o)+T[14]-35309556,m=(m<<23|m>>>9)+o<<0,b=m^o,r+=(b^p)+T[1]-1530992060,r=(r<<4|r>>>28)+m<<0,p+=(b^r)+T[4]+1272893353,p=(p<<11|p>>>21)+r<<0,u=p^r,o+=(u^m)+T[7]-155497632,o=(o<<16|o>>>16)+p<<0,m+=(u^o)+T[10]-1094730640,m=(m<<23|m>>>9)+o<<0,b=m^o,r+=(b^p)+T[13]+681279174,r=(r<<4|r>>>28)+m<<0,p+=(b^r)+T[0]-358537222,p=(p<<11|p>>>21)+r<<0,u=p^r,o+=(u^m)+T[3]-722521979,o=(o<<16|o>>>16)+p<<0,m+=(u^o)+T[6]+76029189,m=(m<<23|m>>>9)+o<<0,b=m^o,r+=(b^p)+T[9]-640364487,r=(r<<4|r>>>28)+m<<0,p+=(b^r)+T[12]-421815835,p=(p<<11|p>>>21)+r<<0,u=p^r,o+=(u^m)+T[15]+530742520,o=(o<<16|o>>>16)+p<<0,m+=(u^o)+T[2]-995338651,m=(m<<23|m>>>9)+o<<0,r+=(o^(m|~p))+T[0]-198630844,r=(r<<6|r>>>26)+m<<0,p+=(m^(r|~o))+T[7]+1126891415,p=(p<<10|p>>>22)+r<<0,o+=(r^(p|~m))+T[14]-1416354905,o=(o<<15|o>>>17)+p<<0,m+=(p^(o|~r))+T[5]-57434055,m=(m<<21|m>>>11)+o<<0,r+=(o^(m|~p))+T[12]+1700485571,r=(r<<6|r>>>26)+m<<0,p+=(m^(r|~o))+T[3]-1894986606,p=(p<<10|p>>>22)+r<<0,o+=(r^(p|~m))+T[10]-1051523,o=(o<<15|o>>>17)+p<<0,m+=(p^(o|~r))+T[1]-2054922799,m=(m<<21|m>>>11)+o<<0,r+=(o^(m|~p))+T[8]+1873313359,r=(r<<6|r>>>26)+m<<0,p+=(m^(r|~o))+T[15]-30611744,p=(p<<10|p>>>22)+r<<0,o+=(r^(p|~m))+T[6]-1560198380,o=(o<<15|o>>>17)+p<<0,m+=(p^(o|~r))+T[13]+1309151649,m=(m<<21|m>>>11)+o<<0,r+=(o^(m|~p))+T[4]-145523070,r=(r<<6|r>>>26)+m<<0,p+=(m^(r|~o))+T[11]-1120210379,p=(p<<10|p>>>22)+r<<0,o+=(r^(p|~m))+T[2]+718787259,o=(o<<15|o>>>17)+p<<0,m+=(p^(o|~r))+T[9]-343485551,m=(m<<21|m>>>11)+o<<0,this.first?(this.h0=r+1732584193<<0,this.h1=m-271733879<<0,this.h2=o-1732584194<<0,this.h3=p+271733878<<0,this.first=!1):(this.h0=this.h0+r<<0,this.h1=this.h1+m<<0,this.h2=this.h2+o<<0,this.h3=this.h3+p<<0)},Md5.prototype.hex=function(){this.finalize();var r=this.h0,m=this.h1,o=this.h2,p=this.h3;return HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[m&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[o&15