System.register([],(function(t){"use strict";return{execute:function(){function n(t){if(t instanceof Array)t&&t.length>0&&t.splice(0,t.length);else if(t instanceof Object&&t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]}t({ascSort:function(t,n){return t.sort((function(t,e){var r=n?t[n]:t,o=n?e[n]:e;return r>o?1:r<o?-1:0}))},clearAll:n,clearCookie:function(t,n){j(t,"",-1,n)},createUUID:function(){return"".concat(g()+g(),"-").concat(g(),"-").concat(g(),"-").concat(g(),"-").concat(g()).concat(g()).concat(g())},descSort:function(t,n){return t.sort((function(t,e){var r=n?t[n]:t,o=n?e[n]:e;return r<o?1:r>o?-1:0}))},formatHttpParams:x,generateOrderValue:function(t){return 100*(t+1)},getCookie:function(t){var n=new RegExp("(^| )".concat(t,"=([^;]*)(;|$)")),e=document.cookie.match(n);if(e&&e.length>1)return unescape(e[2]);return null},getQueryVariable:function(t,n){void 0===n&&(n=location.search);n.startsWith("?")&&(n=n.substring(1));for(var e=n.split("&"),r=0;r<e.length;r++){var o=e[r].split("=");if(o[0]==t)return o[1]}return!1},isArray:h,isAsync:f,isBoolean:function(t){return"boolean"===d(t)},isFunc:s,isMap:y,isNilOrEmpty:function(t){if(w(t)||O(t))return!0;return!1},isNumber:function(t){return"number"===d(t)},isObject:p,isPromise:l,isSet:m,isString:b,isWeakMap:function(t){return"weakmap"===d(t)},notNilEmpty:function(t){if(!w(t)&&!O(t))return!0;return!1},setCookie:j,setUrlQuery:function(t,n){var e=x(n);t=t.endsWith("?")||-1!==t.indexOf("?")&&t.endsWith("&")?"".concat(t).concat(e):-1===t.indexOf("?")||t.endsWith("&")?"".concat(t,"?").concat(e):"".concat(t,"&").concat(e);return t},typeOf:d});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},e(t,n)};function r(t,n,e,r){return new(e||(e=Promise))((function(o,i){function c(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(c,a)}u((r=r.apply(t,n||[])).next())}))}function o(t,n){var e,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(c=0)),c;)try{if(e=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=n.call(t,c)}catch(t){a=[6,t],r=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function i(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),c=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return c}function c(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}var a=function(){function t(){this.map=new Map,this.maxListeners=100}return t.prototype.setMaxListeners=function(t){this.maxListeners=t},t.prototype.getSize=function(t){return this.map.has(t)?this.map.get(t).length:0},t.prototype.addListener=function(t,n){if(n instanceof Function){this.map.has(t)||this.map.set(t,[]);var e=this.map.get(t);if(!(e.length<this.maxListeners))throw new Error("事件监听已达最大上限[".concat(this.maxListeners,"],无法新增监听!"));e.push(n)}},t.prototype.removeListener=function(t,n){if(this.map.has(t)){var e=this.map.get(t);if(e.length>0)for(var r=0;r<e.length;r++){if(e[r]===n){e.splice(r,1);break}}}},t.prototype.emit=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(this.map.has(t)){var r=this.map.get(t);r.forEach((function(t){t.apply(void 0,c([],i(n),!1))}))}},t.prototype.asyncEmit=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return r(this,void 0,void 0,(function(){var e,r;return o(this,(function(o){return this.map.has(t)?(e=this.map.get(t),r=e.map((function(t){return t.apply(void 0,c([],i(n),!1))})),[2,Promise.all(r)]):[2,[]]}))}))},t.prototype.reset=function(){this.map.forEach((function(t){n(t)})),this.map.clear()},t}(),u=(t("QXEvent",function(){function t(t){this.e=new a,this.e.setMaxListeners(t||300)}return t.prototype.getSize=function(t){return this.e.getSize(t)},t.prototype.on=function(t,n){this.e.addListener(t,n)},t.prototype.off=function(t,n){this.e.removeListener(t,n)},t.prototype.emit=function(t){for(var n,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];(n=this.e).emit.apply(n,c([t],i(e),!1))},t.prototype.asyncEmit=function(t){for(var n,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return(n=this.e).asyncEmit.apply(n,c([t],i(e),!1))},t.prototype.reset=function(){this.e.reset()},t}()),Object.prototype.toString);function s(t){return"function"===d(t)}function f(t){return"[object AsyncFunction]"===u.call(t)}function l(t){return"[object Promise]"===u.call(t)}function p(t){return"object"===d(t)}function h(t){return"array"===d(t)}function y(t){return"map"===d(t)}function m(t){return"set"===d(t)}function b(t){return"string"===d(t)}var v={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object","[object Set]":"set","[object Map]":"map","[object WeakMap]":"weakmap"};function d(t){return v[u.call(t)]}function g(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function j(t,n,e,r,o){void 0===e&&(e=0),void 0===r&&(r=!1),void 0===o&&(o="/");var i="";if(r){if(!/^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/.test(location.hostname)){var c=location.hostname;c.indexOf(".")!==c.lastIndexOf(".")&&(i=";domain=".concat(c.substring(c.indexOf("."),c.length)))}}if(0!==e){var a=24*e*60*60*1e3,u=new Date((new Date).getTime()+a);document.cookie="".concat(t,"=").concat(escape(n),";path=").concat(o,";expires=").concat(u.toUTCString()).concat(i)}else document.cookie="".concat(t,"=").concat(escape(n),";path=").concat(o).concat(i)}function w(t){return null==t}function O(t){if(h(t)||b(t))return 0===t.length;if(p(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}return y(t)||m(t)?0===t.size:null==t}function x(t){var n={},e=[];return Object.assign(n,t),Object.keys(n).forEach((function(t){var r=n[t];r instanceof Array||r instanceof Object?e.push("".concat(t,"=").concat(encodeURIComponent(JSON.stringify(r)))):e.push("".concat(t,"=").concat(encodeURIComponent(r)))})),e.join("&")}var S=t("SyncSeriesHook",function(){function t(){this.items=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),t.prototype.callSync=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];for(var r,o=t||Object.create({}),a=0;a<this.items.length;a++){var u=this.items[a];if(u.fn&&(r=u.fn.apply(u,c([o],i(n),!1))),null===r){console.warn("因".concat(u.fn?u.fn.name:null,"方法返回值为「null」,钩子中断执行。"),u);break}}return o},t.prototype.tap=function(t){if(t&&s(t)){var n={mode:"sync"};n.fn=t,this.items.push(n)}},t.prototype.removeTap=function(t){if(t)for(var n=0;n<this.items.length;n++){t===this.items[n].fn&&this.items.splice(n,1)}},t.prototype.clear=function(){this.items=[]},t}());t("AsyncSeriesHook",function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n.prototype.call=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return r(this,void 0,void 0,(function(){var e,r,a,u;return o(this,(function(o){switch(o.label){case 0:e=t||Object.create({}),a=0,o.label=1;case 1:return a<this.items.length?(u=this.items[a]).fn?"promise"!==u.mode?[3,4]:l(r=u.fn.apply(u,c([e],i(n),!1)))?[4,r]:[3,3]:[3,5]:[3,7];case 2:r=o.sent(),o.label=3;case 3:return[3,5];case 4:r=u.fn.apply(u,c([e],i(n),!1)),o.label=5;case 5:if(null===r)return console.warn("因".concat(u.fn?u.fn.name:null,"方法返回值为「null」,钩子中断执行。"),u),[3,7];o.label=6;case 6:return a++,[3,1];case 7:return[2,e]}}))}))},n.prototype.tapPromise=function(t){if(t&&(s(t)||f(t))){var n={mode:"promise"};n.fn=t,this.items.push(n)}},n.prototype.removeTapPromise=function(t){this.removeTap(t)},n}(S))}}}));