cool-common-utils 1.0.2 → 1.0.4
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/aes.js +1 -1
- package/dist/aes.mjs +1 -1
- package/dist/amap-utils.js +1 -1
- package/dist/amap-utils.mjs +1 -1
- package/dist/commons/vendor-axios-eBPqXPbi.js +1 -0
- package/dist/commons/vendor-axios-qlYN5UV5.js +1 -0
- package/dist/commons/vendor-crypto-js-AYnBdXB5.js +18 -0
- package/dist/commons/vendor-crypto-js-Dhi5niDn.js +18 -0
- package/dist/commons/vendor-other-Cd2MOa_2.js +1 -0
- package/dist/commons/vendor-other-odeBaM7w.js +1 -0
- package/dist/commons/vendor-qs-B9_OEdmf.js +1 -0
- package/dist/commons/vendor-qs-L1Bpz2hz.js +1 -0
- package/dist/commons/vendor-socket.io-client-DfIeTHYA.js +1 -0
- package/dist/commons/vendor-socket.io-client-OWv_jVwG.js +1 -0
- package/dist/commons/vendor-sweetalert-4FJTrmvX.js +1 -0
- package/dist/commons/vendor-sweetalert-KX8J3Sv0.js +1 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/message.js +1 -1
- package/dist/message.mjs +1 -1
- package/dist/request.js +1 -1
- package/dist/request.mjs +1 -1
- package/dist/socket-io.js +1 -1
- package/dist/socket-io.mjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/websocket.js +1 -1
- package/dist/websocket.mjs +1 -1
- package/package.json +8 -10
- package/dist/commons/axios-DsdlaZnY.js +0 -1
- package/dist/commons/axios-DxFWCEd0.js +0 -1
- package/dist/commons/crypto-CT1W49ET.js +0 -18
- package/dist/commons/crypto-DuLLVHQr.js +0 -18
- package/dist/commons/mqtt-ClqAR6Iy.js +0 -13
- package/dist/commons/mqtt-CsLh6xMv.js +0 -13
- package/dist/commons/qs-D46UmmL2.js +0 -1
- package/dist/commons/qs-yb498JEx.js +0 -1
- package/dist/commons/socket_io-Bw6JUjpU.js +0 -1
- package/dist/commons/socket_io-CSNhVzSE.js +0 -1
- package/dist/commons/sweetalert-B1ksMzDj.js +0 -1
- package/dist/commons/sweetalert-DMYmZawW.js +0 -1
- package/dist/commons/tslib.es6-BjAlDJRq.js +0 -1
- package/dist/commons/tslib.es6-DVnGIs25.js +0 -1
- package/dist/commons/xlsx_js-D6tizOBX.js +0 -2
- package/dist/commons/xlsx_js-qidrMB31.js +0 -2
- package/dist/excel-xlsx-util.js +0 -1
- package/dist/excel-xlsx-util.mjs +0 -1
- package/dist/mqtt.js +0 -1
- package/dist/mqtt.mjs +0 -1
- package/dist/utils/exports/excel-xlsx-util.d.ts +0 -14
- package/dist/utils/sockets/mqtt.d.ts +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as e}from"./vendor-crypto-js-Dhi5niDn.js";import{r}from"./vendor-other-odeBaM7w.js";var t,o,n,i,a,l,c,s,f,p;function u(){if(o)return t;o=1;var e=String.prototype.replace,r=/%20/g,n="RFC3986";return t={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function d(){if(i)return n;i=1;var e=u(),t=r(),o=Object.prototype.hasOwnProperty,a=Array.isArray,l=t(),c=function(e,r){return l.set(e,r),e},s=function(e){return l.has(e)},f=function(e){return l.get(e)},p=function(e,r){l.set(e,r)},d=function(){for(var e=[],r=0;r<256;++r)e[e.length]="%"+((r<16?"0":"")+r.toString(16)).toUpperCase();return e}(),y=function(e,r){for(var t=r&&r.plainObjects?{__proto__:null}:{},o=0;o<e.length;++o)void 0!==e[o]&&(t[o]=e[o]);return t},m=1024;return n={arrayToObject:y,assign:function(e,r){return Object.keys(r).reduce(function(e,t){return e[t]=r[t],e},e)},combine:function(e,r,t,o){if(s(e)){var n=f(e)+1;return e[n]=r,p(e,n),e}var i=[].concat(e,r);return i.length>t?c(y(i,{plainObjects:o}),i.length-1):i},compact:function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o<r.length;++o)for(var n=r[o],i=n.obj[n.prop],l=Object.keys(i),c=0;c<l.length;++c){var s=l[c],f=i[s];"object"==typeof f&&null!==f&&-1===t.indexOf(f)&&(r[r.length]={obj:i,prop:s},t[t.length]=f)}return function(e){for(;e.length>1;){var r=e.pop(),t=r.obj[r.prop];if(a(t)){for(var o=[],n=0;n<t.length;++n)void 0!==t[n]&&(o[o.length]=t[n]);r.obj[r.prop]=o}}}(r),e},decode:function(e,r,t){var o=e.replace(/\+/g," ");if("iso-8859-1"===t)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(r,t,o,n,i){if(0===r.length)return r;var a=r;if("symbol"==typeof r?a=Symbol.prototype.toString.call(r):"string"!=typeof r&&(a=String(r)),"iso-8859-1"===o)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",c=0;c<a.length;c+=m){for(var s=a.length>=m?a.slice(c,c+m):a,f=[],p=0;p<s.length;++p){var u=s.charCodeAt(p);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===e.RFC1738&&(40===u||41===u)?f[f.length]=s.charAt(p):u<128?f[f.length]=d[u]:u<2048?f[f.length]=d[192|u>>6]+d[128|63&u]:u<55296||u>=57344?f[f.length]=d[224|u>>12]+d[128|u>>6&63]+d[128|63&u]:(p+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(p)),f[f.length]=d[240|u>>18]+d[128|u>>12&63]+d[128|u>>6&63]+d[128|63&u])}l+=f.join("")}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:s,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:c,maybeMap:function(e,r){if(a(e)){for(var t=[],o=0;o<e.length;o+=1)t[t.length]=r(e[o]);return t}return r(e)},merge:function e(r,t,n){if(!t)return r;if("object"!=typeof t&&"function"!=typeof t){if(a(r)){var i=r.length;if(n&&"number"==typeof n.arrayLimit&&i>n.arrayLimit)return c(y(r.concat(t),n),i);r[i]=t}else{if(!r||"object"!=typeof r)return[r,t];if(s(r)){var l=f(r)+1;r[l]=t,p(r,l)}else{if(n&&n.strictMerge)return[r,t];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,t))&&(r[t]=!0)}}return r}if(!r||"object"!=typeof r){if(s(t)){for(var u=Object.keys(t),d=n&&n.plainObjects?{__proto__:null,0:r}:{0:r},m=0;m<u.length;m++){d[parseInt(u[m],10)+1]=t[u[m]]}return c(d,f(t)+1)}var h=[r].concat(t);return n&&"number"==typeof n.arrayLimit&&h.length>n.arrayLimit?c(y(h,n),h.length-1):h}var g=r;return a(r)&&!a(t)&&(g=y(r,n)),a(r)&&a(t)?(t.forEach(function(t,i){if(o.call(r,i)){var a=r[i];a&&"object"==typeof a&&t&&"object"==typeof t?r[i]=e(a,t,n):r[r.length]=t}else r[i]=t}),r):Object.keys(t).reduce(function(r,i){var a=t[i];if(o.call(r,i)?r[i]=e(r[i],a,n):r[i]=a,s(t)&&!s(r)&&c(r,f(t)),s(r)){var l=parseInt(i,10);String(l)===i&&l>=0&&l>f(r)&&p(r,l)}return r},g)}},n}function y(){if(l)return a;l=1;var e=r(),t=d(),o=u(),n=Object.prototype.hasOwnProperty,i={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},c=Array.isArray,s=Array.prototype.push,f=function(e,r){s.apply(e,c(r)?r:[r])},p=Date.prototype.toISOString,y=o.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:y,formatter:o.formatters[y],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},g=function r(o,n,i,a,l,s,p,u,d,y,g,v,b,w,O,E,j,D){for(var A,x=o,L=D,S=0,I=!1;void 0!==(L=L.get(h))&&!I;){var N=L.get(o);if(S+=1,void 0!==N){if(N===S)throw new RangeError("Cyclic object value");I=!0}void 0===L.get(h)&&(S=0)}if("function"==typeof y?x=y(n,x):x instanceof Date?x=b(x):"comma"===i&&c(x)&&(x=t.maybeMap(x,function(e){return e instanceof Date?b(e):e})),null===x){if(s)return O(d&&!E?d(n,m.encoder,j,"key",w):n);x=""}if("string"==typeof(A=x)||"number"==typeof A||"boolean"==typeof A||"symbol"==typeof A||"bigint"==typeof A||t.isBuffer(x))return d?[O(E?n:d(n,m.encoder,j,"key",w))+"="+O(d(x,m.encoder,j,"value",w))]:[O(n)+"="+O(String(x))];var _,R=[];if(void 0===x)return R;if("comma"===i&&c(x))E&&d&&(x=t.maybeMap(x,function(e){return null==e?e:d(e)})),_=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(y))_=y;else{var P=Object.keys(x);_=g?P.sort(g):P}var T=u?String(n).replace(/\./g,"%2E"):String(n),k=a&&c(x)&&1===x.length?T+"[]":T;if(l&&c(x)&&0===x.length)return k+"[]";for(var K=0;K<_.length;++K){var C=_[K],F="object"==typeof C&&C&&void 0!==C.value?C.value:x[C];if(!p||null!==F){var H=v&&u?String(C).replace(/\./g,"%2E"):String(C),M=c(x)?"function"==typeof i?i(k,H):k:k+(v?"."+H:"["+H+"]");D.set(o,S);var Q=e();Q.set(h,D),f(R,r(F,M,i,a,l,s,p,u,"comma"===i&&E&&c(x)?null:d,y,g,v,b,w,O,E,j,Q))}}return R};return a=function(r,t){var a,l=r,s=function(e){if(!e)return m;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var r=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=o.default;if(void 0!==e.format){if(!n.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");t=e.format}var a,l=o.formatters[t],s=m.filter;if(("function"==typeof e.filter||c(e.filter))&&(s=e.filter),a=e.arrayFormat in i?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":m.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=void 0===e.allowDots?!0===e.encodeDotInKeys||m.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:f,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:m.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:s,format:t,formatter:l,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof s.filter?l=(0,s.filter)("",l):c(s.filter)&&(a=s.filter);var p=[];if("object"!=typeof l||null===l)return"";var u=i[s.arrayFormat],d="comma"===u&&s.commaRoundTrip;a||(a=Object.keys(l)),s.sort&&a.sort(s.sort);for(var y=e(),h=0;h<a.length;++h){var v=a[h];if(null!=v){var b=l[v];s.skipNulls&&null===b||f(p,g(b,v,u,d,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,y))}}var w=p.join(s.delimiter),O=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?O+="utf8=%26%2310003%3B"+s.delimiter:O+="utf8=%E2%9C%93"+s.delimiter),w.length>0?O+w:""}}function m(){if(s)return c;s=1;var e=d(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},n=function(e){return e.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},i=function(e,r,t){if(e&&"string"==typeof e&&r.comma&&e.indexOf(",")>-1)return e.split(",");if(r.throwOnLimitExceeded&&t>=r.arrayLimit)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");return e},a=function(t,o,n,a){if(t){var l=function(e,t){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;return[o]}var n=[],i=o.indexOf("["),a=i>=0?o.slice(0,i):o;if(a){if(!t.plainObjects&&r.call(Object.prototype,a)&&!t.allowPrototypes)return;n[n.length]=a}for(var l=o.length,c=i,s=0;c>=0&&s<t.depth;){for(var f=1,p=c+1,u=-1;p<l&&u<0;){var d=o.charCodeAt(p);91===d?f+=1:93===d&&0==(f-=1)&&(u=p),p+=1}if(u<0)return n[n.length]="["+o.slice(c)+"]",n;var y=o.slice(c,u+1),m=y.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,m)&&!t.allowPrototypes)return;n[n.length]=y,s+=1,c=o.indexOf("[",u+1)}if(c>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");n[n.length]="["+o.slice(c)+"]"}return n}(t,n);if(l)return function(r,t,o,n){var a=0;if(r.length>0&&"[]"===r[r.length-1]){var l=r.slice(0,-1).join("");a=Array.isArray(t)&&t[l]?t[l].length:0}for(var c=n?t:i(t,o,a),s=r.length-1;s>=0;--s){var f,p=r[s];if("[]"===p&&o.parseArrays)f=e.isOverflow(c)?c:o.allowEmptyArrays&&(""===c||o.strictNullHandling&&null===c)?[]:e.combine([],c,o.arrayLimit,o.plainObjects);else{f=o.plainObjects?{__proto__:null}:{};var u="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,d=o.decodeDotInKeys?u.replace(/%2E/g,"."):u,y=parseInt(d,10),m=!isNaN(y)&&p!==d&&String(y)===d&&y>=0&&o.parseArrays;if(o.parseArrays||""!==d)if(m&&y<o.arrayLimit)(f=[])[y]=c;else{if(m&&o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");m?(f[y]=c,e.markOverflow(f,y)):"__proto__"!==d&&(f[d]=c)}else f={0:c}}c=f}return c}(l,o,n,a)}};return c=function(l,c){var s=function(r){if(!r)return o;if(void 0!==r.allowEmptyArrays&&"boolean"!=typeof r.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==r.decodeDotInKeys&&"boolean"!=typeof r.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==r.charset&&"utf-8"!==r.charset&&"iso-8859-1"!==r.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==r.throwOnLimitExceeded&&"boolean"!=typeof r.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===r.charset?o.charset:r.charset,n=void 0===r.duplicates?o.duplicates:r.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===r.allowDots?!0===r.decodeDotInKeys||o.allowDots:!!r.allowDots,allowEmptyArrays:"boolean"==typeof r.allowEmptyArrays?!!r.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof r.allowSparse?r.allowSparse:o.allowSparse,arrayLimit:"number"==typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof r.charsetSentinel?r.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof r.comma?r.comma:o.comma,decodeDotInKeys:"boolean"==typeof r.decodeDotInKeys?r.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof r.decoder?r.decoder:o.decoder,delimiter:"string"==typeof r.delimiter||e.isRegExp(r.delimiter)?r.delimiter:o.delimiter,depth:"number"==typeof r.depth||!1===r.depth?+r.depth:o.depth,duplicates:n,ignoreQueryPrefix:!0===r.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof r.interpretNumericEntities?r.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,parseArrays:!1!==r.parseArrays,plainObjects:"boolean"==typeof r.plainObjects?r.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof r.strictDepth?!!r.strictDepth:o.strictDepth,strictMerge:"boolean"==typeof r.strictMerge?!!r.strictMerge:o.strictMerge,strictNullHandling:"boolean"==typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof r.throwOnLimitExceeded&&r.throwOnLimitExceeded}}(c);if(""===l||null==l)return s.plainObjects?{__proto__:null}:{};for(var f="string"==typeof l?function(a,l){var c={__proto__:null},s=l.ignoreQueryPrefix?a.replace(/^\?/,""):a;s=s.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var f=l.parameterLimit===1/0?void 0:l.parameterLimit,p=s.split(l.delimiter,l.throwOnLimitExceeded&&void 0!==f?f+1:f);if(l.throwOnLimitExceeded&&void 0!==f&&p.length>f)throw new RangeError("Parameter limit exceeded. Only "+f+" parameter"+(1===f?"":"s")+" allowed.");var u,d=-1,y=l.charset;if(l.charsetSentinel)for(u=0;u<p.length;++u)0===p[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[u]?y="utf-8":"utf8=%26%2310003%3B"===p[u]&&(y="iso-8859-1"),d=u,u=p.length);for(u=0;u<p.length;++u)if(u!==d){var m,h,g=p[u],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;if(-1===b?(m=l.decoder(g,o.decoder,y,"key"),h=l.strictNullHandling?null:""):null!==(m=l.decoder(g.slice(0,b),o.decoder,y,"key"))&&(h=e.maybeMap(i(g.slice(b+1),l,t(c[m])?c[m].length:0),function(e){return l.decoder(e,o.decoder,y,"value")})),h&&l.interpretNumericEntities&&"iso-8859-1"===y&&(h=n(String(h))),g.indexOf("[]=")>-1&&(h=t(h)?[h]:h),l.comma&&t(h)&&h.length>l.arrayLimit){if(l.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+l.arrayLimit+" element"+(1===l.arrayLimit?"":"s")+" allowed in an array.");h=e.combine([],h,l.arrayLimit,l.plainObjects)}if(null!==m){var w=r.call(c,m);w&&("combine"===l.duplicates||g.indexOf("[]=")>-1)?c[m]=e.combine(c[m],h,l.arrayLimit,l.plainObjects):w&&"last"!==l.duplicates||(c[m]=h)}}return c}(l,s):l,p=s.plainObjects?{__proto__:null}:{},u=Object.keys(f),d=0;d<u.length;++d){var y=u[d],m=a(y,f[y],s,"string"==typeof l);p=e.merge(p,m,s)}return!0===s.allowSparse?p:e.compact(p)}}function h(){if(p)return f;p=1;var e=y(),r=m();return f={formats:u(),parse:r,stringify:e}}var g=e(h());export{g as q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as t,c as e,P as s,i,a as n,S as o,n as r}from"./vendor-other-odeBaM7w.js";function h(t,e,s){return t.on(e,s),function(){t.off(e,s)}}const c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends e.Emitter{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[h(t,"open",this.onopen.bind(this)),h(t,"packet",this.onpacket.bind(this)),h(t,"error",this.onerror.bind(this)),h(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var i,n,o;if(c.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:s.EVENT,data:e,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){const t=this.ids++,s=e.pop();this._registerAckCallback(t,s),r.id=t}const h=null===(n=null===(i=this.io.engine)||void 0===i?void 0:i.transport)||void 0===n?void 0:n.writable,a=this.connected&&!(null===(o=this.io.engine)||void 0===o?void 0:o._hasPingExpired());return this.flags.volatile&&!h||(a?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const i=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===i)return void(this.acks[t]=e);const n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,new Error("operation has timed out"))},i),o=(...t)=>{this.io.clearTimeoutFn(n),e.apply(this,t)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...e){return new Promise((s,i)=>{const n=(t,e)=>t?i(t):s(e);n.withError=!0,e.push(n),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...i)=>{this._queue[0];return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...i)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:s.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case s.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case s.EVENT:case s.BINARY_EVENT:this.onevent(t);break;case s.ACK:case s.BINARY_ACK:this.onack(t);break;case s.DISCONNECT:this.ondisconnect();break;case s.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let i=!1;return function(...n){i||(i=!0,e.packet({type:s.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:s.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}u.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+s:t-s}return 0|Math.min(t,this.max)},u.prototype.reset=function(){this.attempts=0},u.prototype.setMin=function(t){this.ms=t},u.prototype.setMax=function(t){this.max=t},u.prototype.setJitter=function(t){this.jitter=t};class d extends e.Emitter{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,i(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const o=e.parser||n;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new o(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=h(e,"open",function(){s.onopen(),t&&t()}),n=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},r=h(e,"error",n);if(!1!==this._timeout){const t=this._timeout,s=this.setTimeoutFn(()=>{i(),n(new Error("timeout")),e.close()},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(i),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(h(t,"ping",this.onping.bind(this)),h(t,"data",this.ondata.bind(this)),h(t,"error",this.onerror.bind(this)),h(t,"close",this.onclose.bind(this)),h(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){r(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new a(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const t of e){if(this.nsps[t].active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const p={};function f(e,s){"object"==typeof e&&(s=e,e=void 0);const i=function(e,s="",i){let n=e;i=i||"undefined"!=typeof location&&location,null==e&&(e=i.protocol+"//"+i.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?i.protocol+e:i.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==i?i.protocol+"//"+e:"https://"+e),n=t(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+s,n.href=n.protocol+"://"+o+(i&&i.port===n.port?"":":"+n.port),n}(e,(s=s||{}).path||"/socket.io"),n=i.source,o=i.id,r=i.path,h=p[o]&&r in p[o].nsps;let c;return s.forceNew||s["force new connection"]||!1===s.multiplex||h?c=new d(n,s):(p[o]||(p[o]=new d(n,s)),c=p[o]),i.query&&!s.query&&(s.query=i.queryKey),c.socket(i.path,s)}Object.assign(f,{Manager:d,Socket:a,io:f,connect:f});export{f as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t=require("./vendor-other-Cd2MOa_2.js");function e(t,e,s){return t.on(e,s),function(){t.off(e,s)}}const s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class i extends t.cjsExports.Emitter{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[e(t,"open",this.onopen.bind(this)),e(t,"packet",this.onpacket.bind(this)),e(t,"error",this.onerror.bind(this)),e(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(e,...i){var n,o,r;if(s.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(i.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const h={type:t.PacketType.EVENT,data:i,options:{}};if(h.options.compress=!1!==this.flags.compress,"function"==typeof i[i.length-1]){const t=this.ids++,e=i.pop();this._registerAckCallback(t,e),h.id=t}const c=null===(o=null===(n=this.io.engine)||void 0===n?void 0:n.transport)||void 0===o?void 0:o.writable,a=this.connected&&!(null===(r=this.io.engine)||void 0===r?void 0:r._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h)),this.flags={},this}_registerAckCallback(t,e){var s;const i=null!==(s=this.flags.timeout)&&void 0!==s?s:this._opts.ackTimeout;if(void 0===i)return void(this.acks[t]=e);const n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,new Error("operation has timed out"))},i),o=(...t)=>{this.io.clearTimeoutFn(n),e.apply(this,t)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...e){return new Promise((s,i)=>{const n=(t,e)=>t?i(t):s(e);n.withError=!0,e.push(n),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...i)=>{this._queue[0];return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...i)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case t.PacketType.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(e);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(e);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(e){const s=this;let i=!1;return function(...n){i||(i=!0,s.packet({type:t.PacketType.ACK,id:e,data:n}))}}onack(t){const e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:t.PacketType.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+s:t-s}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t};class o extends t.cjsExports.Emitter{constructor(e,s){var i;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(s=e,e=void 0),(s=s||{}).path=s.path||"/socket.io",this.opts=s,t.installTimerFunctions(this,s),this.reconnection(!1!==s.reconnection),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(i=s.randomizationFactor)&&void 0!==i?i:.5),this.backoff=new n({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==s.timeout?2e4:s.timeout),this._readyState="closed",this.uri=e;const o=s.parser||t.parser;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=!1!==s.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(s){if(~this._readyState.indexOf("open"))return this;this.engine=new t.Socket(this.uri,this.opts);const i=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=e(i,"open",function(){n.onopen(),s&&s()}),r=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),s?s(t):this.maybeReconnectOnOpen()},h=e(i,"error",r);if(!1!==this._timeout){const t=this._timeout,e=this.setTimeoutFn(()=>{o(),r(new Error("timeout")),i.close()},t);this.opts.autoUnref&&e.unref(),this.subs.push(()=>{this.clearTimeoutFn(e)})}return this.subs.push(o),this.subs.push(h),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(e(t,"ping",this.onping.bind(this)),e(t,"data",this.ondata.bind(this)),e(t,"error",this.onerror.bind(this)),e(t,"close",this.onclose.bind(this)),e(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(e){t.nextTick(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new i(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const t of e){if(this.nsps[t].active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const r={};function h(e,s){"object"==typeof e&&(s=e,e=void 0);const i=function(e,s="",i){let n=e;i=i||"undefined"!=typeof location&&location,null==e&&(e=i.protocol+"//"+i.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?i.protocol+e:i.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==i?i.protocol+"//"+e:"https://"+e),n=t.parse(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+s,n.href=n.protocol+"://"+o+(i&&i.port===n.port?"":":"+n.port),n}(e,(s=s||{}).path||"/socket.io"),n=i.source,h=i.id,c=i.path,a=r[h]&&c in r[h].nsps;let u;return s.forceNew||s["force new connection"]||!1===s.multiplex||a?u=new o(n,s):(r[h]||(r[h]=new o(n,s)),u=r[h]),i.query&&!s.query&&(s.query=i.queryKey),u.socket(i.path,s)}Object.assign(h,{Manager:o,Socket:i,io:h,connect:h}),exports.lookup=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./vendor-crypto-js-Dhi5niDn.js";var e,n={exports:{}};var o=t((e||(e=1,n.exports=function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:o,CONFIRM_BUTTON:o+"--confirm",CANCEL_BUTTON:o+"--cancel",DANGER_BUTTON:o+"--danger",BUTTON_LOADING:o+"--loading",BUTTON_LOADER:o+"__loader"},e.default=e.CLASS_NAMES},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var n=e.nextSibling;e.parentNode.insertBefore(t,n)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw"SweetAlert: "+(t=t.replace(/ +(?= )/g,"")).trim()},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"}},function(t,e,n){function o(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),o(n(25));var r=n(26);e.overlayMarkup=r.default,o(n(27)),o(n(28)),o(n(29));var i=n(0),a=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,c=i.default.ICON,l=i.default.FOOTER;e.iconMarkup='\n <div class="'+c+'"></div>',e.titleMarkup='\n <div class="'+a+'"></div>\n',e.textMarkup='\n <div class="'+s+'"></div>',e.footerMarkup='\n <div class="'+l+'"></div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var r={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},r,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},r,{text:"OK",value:!0});e.defaultButtonList={cancel:i,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return i;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},r,{text:n,value:t})}},c=function(t,e){var n=s(t);return!0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):o.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},l=function(t){for(var e={},n=0,o=Object.keys(t);n<o.length;n++){var r=o[n],a=t[r],s=c(r,a);e[r]=s}return e.cancel||(e.cancel=i),e},u=function(t){var n={};switch(t.length){case 1:n[e.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[e.CANCEL_KEY]=c(e.CANCEL_KEY,t[0]),n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t[1]);break;default:o.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};e.getButtonListOpts=function(t){var n=e.defaultButtonList;return"string"==typeof t?n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t):Array.isArray(t)?n=u(t):o.isPlainObject(t)?n=l(t):!0===t?n=u([!0,!0]):!1===t?n=u([!1,!1]):void 0===t&&(n=e.defaultButtonList),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=n(0),a=i.default.MODAL,s=i.default.OVERLAY,c=n(30),l=n(31),u=n(32),f=n(33);e.injectElIntoModal=function(t){var e=o.getNode(a),n=o.stringToNode(t);return e.appendChild(n),n};var d=function(t){t.className=a,t.textContent=""},p=function(t,e){d(t);var n=e.className;n&&t.classList.add(n)};e.initModalContent=function(t){var e=o.getNode(a);p(e,t),c.default(t.icon),l.initTitle(t.title),l.initText(t.text),f.default(t.content),u.default(t.buttons,t.dangerMode)};var m=function(){var t=o.getNode(s),e=o.stringToNode(r.modalMarkup);t.appendChild(e)};e.default=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r={isOpen:!1,promise:null,actions:{},timer:null},i=Object.assign({},r);e.resetState=function(){i=Object.assign({},r)},e.setActionValue=function(t){if("string"==typeof t)return a(o.CONFIRM_KEY,t);for(var e in t)a(e,t[e])};var a=function(t,e){i.actions[t]||(i.actions[t]={}),Object.assign(i.actions[t],{value:e})};e.setActionOptionsFor=function(t,e){var n=(void 0===e?{}:e).closeModal,o=void 0===n||n;Object.assign(i.actions[t],{closeModal:o})},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(0),a=i.default.OVERLAY,s=i.default.SHOW_MODAL,c=i.default.BUTTON,l=i.default.BUTTON_LOADING,u=n(5);e.openModal=function(){o.getNode(a).classList.add(s),u.default.isOpen=!0};var f=function(){o.getNode(a).classList.remove(s),u.default.isOpen=!1};e.onAction=function(t){void 0===t&&(t=r.CANCEL_KEY);var e=u.default.actions[t],n=e.value;if(!1===e.closeModal){var i=c+"--"+t;o.getNode(i).classList.add(l)}else f();u.default.promise.resolve(n)},e.getState=function(){var t=Object.assign({},u.default);return delete t.promise,delete t.timer,t},e.stopLoading=function(){for(var t=document.querySelectorAll("."+c),e=0;e<t.length;e++)t[e].classList.remove(l)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){t.exports=e.sweetAlert=n(9)}).call(e,n(7))},function(t,e,n){(function(e){t.exports=e.swal=n(10)}).call(e,n(7))},function(t,e,n){"undefined"!=typeof window&&n(11),n(16);var o=n(23).default;t.exports=o},function(t,e,n){var o=n(12);"string"==typeof o&&(o=[[t.i,o,""]]);var r={insertAt:"top",transform:void 0};n(14)(o,r),o.locals&&(t.exports=o.locals)},function(t,e,n){(t.exports=n(13)(void 0)).push([t.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=o(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=n(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function o(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=m[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(u(o.parts[i],e))}else{var a=[];for(i=0;i<o.parts.length;i++)a.push(u(o.parts[i],e));m[o.id]={id:o.id,refs:1,parts:a}}}}function r(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function i(t,e){var n=g(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=w[w.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),i(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),i(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function u(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var l=h++;n=v||(v=s(e)),o=f.bind(null,n,l,!1),r=f.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),o=p.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),o=d.bind(null,n),r=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}function f(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=x(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},b=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,h=0,w=[],x=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=b()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return o(n,e),function(t){for(var i=[],a=0;a<n.length;a++){var s=n[a];(c=m[s.id]).refs--,i.push(c)}for(t&&o(r(t,e),e),a=0;a<i.length;a++){var c;if(0===(c=i[a]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete m[c.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,n){var o=n(17);"undefined"==typeof window||window.Promise||(window.Promise=o),n(21),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if(0===o)return!1;for(var r=0|e,i=Math.max(r>=0?r:o-Math.abs(r),0);i<o;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(n[i],t))return!0;i++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})},function(t,e,n){(function(e){!function(n){function o(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var o;try{o=n(t._value)}catch(t){return void c(e.promise,t)}s(e.promise,o)}else(1===t._state?s:c)(e.promise,t._value)})):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void f(r(n,e),t)}t._state=1,t._value=e,l(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function u(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,s(e,t))},function(t){n||(n=!0,c(e,t))})}catch(t){if(n)return;n=!0,c(e,t)}}var d=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(o);return a(this,new u(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(i,t)},n)}e[i]=a,0==--r&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var r=e.length,i=0;i<e.length;i++)o(i,e[i])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var o=0,r=t.length;o<r;o++)t[o].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){d(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=i:n.Promise||(n.Promise=i)}(this)}).call(e,n(18).setImmediate)},function(t,e,n){function o(t,e){this._id=t,this._clearFn=e}var r=Function.prototype.apply;e.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(19),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return l[c]=o,s(c),c++}function r(t){delete l[t]}function i(t){var e=t.callback,o=t.args;switch(o.length){case 0:e();break;case 1:e(o[0]);break;case 2:e(o[0],o[1]);break;case 3:e(o[0],o[1],o[2]);break;default:e.apply(n,o)}}function a(t){if(u)setTimeout(a,0,t);else{var e=l[t];if(e){u=!0;try{i(e)}finally{r(t),u=!1}}}}if(!t.setImmediate){var s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?s=function(t){e.nextTick(function(){a(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():s=function(t){setTimeout(a,0,t)},d.setImmediate=o,d.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(7),n(20))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){b&&p&&(b=!1,p.length?m=p.concat(m):g=-1,m.length&&s())}function s(){if(!b){var t=r(a);b=!0;for(var e=m.length;e;){for(p=m,m=[];++g<e;)p&&p[g].run();g=-1,e=m.length}p=null,b=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,f,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var p,m=[],b=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new c(t,e)),1!==m.length||b||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){n(22).polyfill()},function(t,e,n){function o(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i=Object.keys(Object(r)),a=0,s=i.length;a<s;a++){var c=i[a],l=Object.getOwnPropertyDescriptor(r,c);void 0!==l&&l.enumerable&&(n[c]=r[c])}}return n}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}t.exports={assign:o,polyfill:r}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(24),r=n(6),i=n(5),a=n(36),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("undefined"!=typeof window){var n=a.getOpts.apply(void 0,t);return new Promise(function(t,e){i.default.promise={resolve:t,reject:e},o.default(n),setTimeout(function(){r.openModal()})})}};s.close=r.onAction,s.getState=r.getState,s.setActionValue=i.setActionValue,s.stopLoading=r.stopLoading,s.setDefaults=a.setDefaults,e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0).default.MODAL,i=n(4),a=n(34),s=n(35),c=n(1);e.init=function(t){o.getNode(r)||(document.body||c.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),a.default(),i.default()),i.initModalContent(t),s.default(t)},e.default=e.init},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.MODAL;e.modalMarkup='\n <div class="'+o+'" role="dialog" aria-modal="true"></div>',e.default=e.modalMarkup},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o='<div \n class="'+n(0).default.OVERLAY+'"\n tabIndex="-1">\n </div>';e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.ICON;e.errorIconMarkup=function(){var t=o+"--error",e=t+"__line";return'\n <div class="'+t+'__x-mark">\n <span class="'+e+" "+e+'--left"></span>\n <span class="'+e+" "+e+'--right"></span>\n </div>\n '},e.warningIconMarkup=function(){var t=o+"--warning";return'\n <span class="'+t+'__body">\n <span class="'+t+'__dot"></span>\n </span>\n '},e.successIconMarkup=function(){var t=o+"--success";return'\n <span class="'+t+"__line "+t+'__line--long"></span>\n <span class="'+t+"__line "+t+'__line--tip"></span>\n\n <div class="'+t+'__ring"></div>\n <div class="'+t+'__hide-corners"></div>\n '}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.CONTENT;e.contentMarkup='\n <div class="'+o+'">\n\n </div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.BUTTON_CONTAINER,i=o.default.BUTTON,a=o.default.BUTTON_LOADER;e.buttonMarkup='\n <div class="'+r+'">\n\n <button\n class="'+i+'"\n ></button>\n\n <div class="'+a+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(2),i=n(0),a=i.default.ICON,s=i.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:r.errorIconMarkup(),warning:r.warningIconMarkup(),success:r.successIconMarkup()},u=function(t,e){var n=a+"--"+t;e.classList.add(n);var o=l[t];o&&(e.innerHTML=o)},f=function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n)},d=function(t){if(t){var e=o.injectElIntoModal(r.iconMarkup);c.includes(t)?u(t,e):f(t,e)}};e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="")};e.initTitle=function(t){if(t){var e=r.injectElIntoModal(o.titleMarkup);e.textContent=t,i(e)}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach(function(t,n,o){e.appendChild(document.createTextNode(t)),n<o.length-1&&e.appendChild(document.createElement("br"))});var n=r.injectElIntoModal(o.textMarkup);n.appendChild(e),i(n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(4),i=n(0),a=i.default.BUTTON,s=i.default.DANGER_BUTTON,c=n(3),l=n(2),u=n(6),f=n(5),d=function(t,e,n){var r=e.text,i=e.value,d=e.className,p=e.closeModal,m=o.stringToNode(l.buttonMarkup),b=m.querySelector("."+a),g=a+"--"+t;b.classList.add(g),d&&(Array.isArray(d)?d:d.split(" ")).filter(function(t){return t.length>0}).forEach(function(t){b.classList.add(t)}),n&&t===c.CONFIRM_KEY&&b.classList.add(s),b.textContent=r;var v={};return v[t]=i,f.setActionValue(v),f.setActionOptionsFor(t,{closeModal:p}),b.addEventListener("click",function(){return u.onAction(t)}),m},p=function(t,e){var n=r.injectElIntoModal(l.footerMarkup);for(var o in t){var i=t[o],a=d(o,i,e);i.visible&&n.appendChild(a)}0===n.children.length&&n.remove()};e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(4),i=n(2),a=n(5),s=n(6),c=n(0).default.CONTENT,l=function(t){t.addEventListener("input",function(t){var e=t.target.value;a.setActionValue(e)}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(o.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("")},0)},u=function(t,e,n){var o=document.createElement(e),r=c+"__"+e;for(var i in o.classList.add(r),n){var a=n[i];o[i]=a}"input"===e&&l(o),t.appendChild(o)},f=function(t){if(t){var e=r.injectElIntoModal(i.contentMarkup),n=t.element,o=t.attributes;"string"==typeof n?u(e,n,o):e.appendChild(n)}};e.default=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=function(){var t=o.stringToNode(r.overlayMarkup);document.body.appendChild(t)};e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(6),i=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,f=function(t){t.preventDefault(),g()},d=function(t){t.preventDefault(),v()},p=function(t){if(o.default.isOpen&&"Escape"===t.key)return r.onAction(a.CANCEL_KEY)},m=function(t){if(o.default.isOpen&&"Tab"===t.key)return f(t)},b=function(t){if(o.default.isOpen)return"Tab"===t.key&&t.shiftKey?d(t):void 0},g=function(){var t=i.getNode(l);t&&(t.tabIndex=0,t.focus())},v=function(){var t=i.getNode(c).querySelectorAll("."+l),e=t[t.length-1];e&&e.focus()},h=function(t){t[t.length-1].addEventListener("keydown",m)},w=function(t){t[0].addEventListener("keydown",b)},x=function(){var t=i.getNode(c).querySelectorAll("."+l);t.length&&(h(t),w(t))},y=function(t){if(i.getNode(u)===t.target)return r.onAction(a.CANCEL_KEY)},_=function(t){var e=i.getNode(u);e.removeEventListener("click",y),t&&e.addEventListener("click",y)},k=function(t){o.default.timer&&clearTimeout(o.default.timer),t&&(o.default.timer=window.setTimeout(function(){return r.onAction(a.CANCEL_KEY)},t))},O=function(t){t.closeOnEsc?document.addEventListener("keyup",p):document.removeEventListener("keyup",p),t.dangerMode?g():v(),x(),_(t.closeOnClickOutside),k(t.timer)};e.default=O},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:r.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);e.setDefaults=function(t){c=Object.assign({},s,t)};var l=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&o.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},u=function(t){return o.ordinalSuffixOf(t+1)},f=function(t,e){o.throwErr(u(e)+" argument ('"+t+"') is invalid")},d=function(t,e){var n=t+1,r=e[n];o.isPlainObject(r)||void 0===r||o.throwErr("Expected "+u(n)+" argument ('"+r+"') to be a plain object")},p=function(t,e){var n=t+1,r=e[n];void 0!==r&&o.throwErr("Unexpected "+u(n)+" argument ("+r+")")},m=function(t,e,n,r){var i=e instanceof Element;if("string"==typeof e){if(0===n)return{text:e};if(1===n)return{text:e,title:r[0]};if(2===n)return d(n,r),{icon:e};f(e,n)}else{if(i&&0===n)return d(n,r),{content:e};if(o.isPlainObject(e))return p(n,r),e;f(e,n)}};e.getOpts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={};t.forEach(function(e,o){var r=m(0,e,o,t);Object.assign(n,r)});var o=l(n);n.buttons=r.getButtonListOpts(o),delete n.button,n.content=i.getContentOpts(n.content);var u=Object.assign({},s,c,n);return Object.keys(u).forEach(function(t){a.DEPRECATED_OPTS[t]&&a.logDeprecation(t)}),u}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(t){var e={};return o.isPlainObject(t)?Object.assign(e,t):t instanceof Element?{element:t}:"input"===t?r:null}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(t){var n=e.DEPRECATED_OPTS[t],o=n.onlyRename,r=n.replacement,i=n.subOption,a=n.link,s='SweetAlert warning: "'+t+'" option has been '+(o?"renamed":"deprecated")+".";r&&(s+=" Please use"+(i?' "'+i+'" in ':" ")+'"'+r+'" instead.');var c="https://sweetalert.js.org";s+=a?" More details: "+c+a:" More details: "+c+"/guides/#upgrading-from-1x",console.warn(s)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])),n.exports));export{o as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var t,e=require("./vendor-crypto-js-AYnBdXB5.js"),n={exports:{}};var o=(t||(t=1,n.exports=function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=8)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o="swal-button";e.CLASS_NAMES={MODAL:"swal-modal",OVERLAY:"swal-overlay",SHOW_MODAL:"swal-overlay--show-modal",MODAL_TITLE:"swal-title",MODAL_TEXT:"swal-text",ICON:"swal-icon",ICON_CUSTOM:"swal-icon--custom",CONTENT:"swal-content",FOOTER:"swal-footer",BUTTON_CONTAINER:"swal-button-container",BUTTON:o,CONFIRM_BUTTON:o+"--confirm",CANCEL_BUTTON:o+"--cancel",DANGER_BUTTON:o+"--danger",BUTTON_LOADING:o+"--loading",BUTTON_LOADER:o+"__loader"},e.default=e.CLASS_NAMES},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getNode=function(t){var e="."+t;return document.querySelector(e)},e.stringToNode=function(t){var e=document.createElement("div");return e.innerHTML=t.trim(),e.firstChild},e.insertAfter=function(t,e){var n=e.nextSibling;e.parentNode.insertBefore(t,n)},e.removeNode=function(t){t.parentElement.removeChild(t)},e.throwErr=function(t){throw"SweetAlert: "+(t=t.replace(/ +(?= )/g,"")).trim()},e.isPlainObject=function(t){if("[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype},e.ordinalSuffixOf=function(t){var e=t%10,n=t%100;return 1===e&&11!==n?t+"st":2===e&&12!==n?t+"nd":3===e&&13!==n?t+"rd":t+"th"}},function(t,e,n){function o(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),o(n(25));var r=n(26);e.overlayMarkup=r.default,o(n(27)),o(n(28)),o(n(29));var i=n(0),a=i.default.MODAL_TITLE,s=i.default.MODAL_TEXT,c=i.default.ICON,l=i.default.FOOTER;e.iconMarkup='\n <div class="'+c+'"></div>',e.titleMarkup='\n <div class="'+a+'"></div>\n',e.textMarkup='\n <div class="'+s+'"></div>',e.footerMarkup='\n <div class="'+l+'"></div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1);e.CONFIRM_KEY="confirm",e.CANCEL_KEY="cancel";var r={visible:!0,text:null,value:null,className:"",closeModal:!0},i=Object.assign({},r,{visible:!1,text:"Cancel",value:null}),a=Object.assign({},r,{text:"OK",value:!0});e.defaultButtonList={cancel:i,confirm:a};var s=function(t){switch(t){case e.CONFIRM_KEY:return a;case e.CANCEL_KEY:return i;default:var n=t.charAt(0).toUpperCase()+t.slice(1);return Object.assign({},r,{text:n,value:t})}},c=function(t,e){var n=s(t);return!0===e?Object.assign({},n,{visible:!0}):"string"==typeof e?Object.assign({},n,{visible:!0,text:e}):o.isPlainObject(e)?Object.assign({visible:!0},n,e):Object.assign({},n,{visible:!1})},l=function(t){for(var e={},n=0,o=Object.keys(t);n<o.length;n++){var r=o[n],a=t[r],s=c(r,a);e[r]=s}return e.cancel||(e.cancel=i),e},u=function(t){var n={};switch(t.length){case 1:n[e.CANCEL_KEY]=Object.assign({},i,{visible:!1});break;case 2:n[e.CANCEL_KEY]=c(e.CANCEL_KEY,t[0]),n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t[1]);break;default:o.throwErr("Invalid number of 'buttons' in array ("+t.length+").\n If you want more than 2 buttons, you need to use an object!")}return n};e.getButtonListOpts=function(t){var n=e.defaultButtonList;return"string"==typeof t?n[e.CONFIRM_KEY]=c(e.CONFIRM_KEY,t):Array.isArray(t)?n=u(t):o.isPlainObject(t)?n=l(t):!0===t?n=u([!0,!0]):!1===t?n=u([!1,!1]):void 0===t&&(n=e.defaultButtonList),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=n(0),a=i.default.MODAL,s=i.default.OVERLAY,c=n(30),l=n(31),u=n(32),f=n(33);e.injectElIntoModal=function(t){var e=o.getNode(a),n=o.stringToNode(t);return e.appendChild(n),n};var d=function(t){t.className=a,t.textContent=""},p=function(t,e){d(t);var n=e.className;n&&t.classList.add(n)};e.initModalContent=function(t){var e=o.getNode(a);p(e,t),c.default(t.icon),l.initTitle(t.title),l.initText(t.text),f.default(t.content),u.default(t.buttons,t.dangerMode)};var m=function(){var t=o.getNode(s),e=o.stringToNode(r.modalMarkup);t.appendChild(e)};e.default=m},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r={isOpen:!1,promise:null,actions:{},timer:null},i=Object.assign({},r);e.resetState=function(){i=Object.assign({},r)},e.setActionValue=function(t){if("string"==typeof t)return a(o.CONFIRM_KEY,t);for(var e in t)a(e,t[e])};var a=function(t,e){i.actions[t]||(i.actions[t]={}),Object.assign(i.actions[t],{value:e})};e.setActionOptionsFor=function(t,e){var n=(void 0===e?{}:e).closeModal,o=void 0===n||n;Object.assign(i.actions[t],{closeModal:o})},e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(0),a=i.default.OVERLAY,s=i.default.SHOW_MODAL,c=i.default.BUTTON,l=i.default.BUTTON_LOADING,u=n(5);e.openModal=function(){o.getNode(a).classList.add(s),u.default.isOpen=!0};var f=function(){o.getNode(a).classList.remove(s),u.default.isOpen=!1};e.onAction=function(t){void 0===t&&(t=r.CANCEL_KEY);var e=u.default.actions[t],n=e.value;if(!1===e.closeModal){var i=c+"--"+t;o.getNode(i).classList.add(l)}else f();u.default.promise.resolve(n)},e.getState=function(){var t=Object.assign({},u.default);return delete t.promise,delete t.timer,t},e.stopLoading=function(){for(var t=document.querySelectorAll("."+c),e=0;e<t.length;e++)t[e].classList.remove(l)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){(function(e){t.exports=e.sweetAlert=n(9)}).call(e,n(7))},function(t,e,n){(function(e){t.exports=e.swal=n(10)}).call(e,n(7))},function(t,e,n){"undefined"!=typeof window&&n(11),n(16);var o=n(23).default;t.exports=o},function(t,e,n){var o=n(12);"string"==typeof o&&(o=[[t.i,o,""]]);var r={insertAt:"top",transform:void 0};n(14)(o,r),o.locals&&(t.exports=o.locals)},function(t,e,n){(t.exports=n(13)(void 0)).push([t.i,'.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;padding:1px;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button:not([disabled]):hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel:not([disabled]):hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger:not([disabled]):hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:auto;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}',""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=o(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=n(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function o(t,e){for(var n=0;n<t.length;n++){var o=t[n],r=m[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(u(o.parts[i],e))}else{var a=[];for(i=0;i<o.parts.length;i++)a.push(u(o.parts[i],e));m[o.id]={id:o.id,refs:1,parts:a}}}}function r(t,e){for(var n=[],o={},r=0;r<t.length;r++){var i=t[r],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function i(t,e){var n=g(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=w[w.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),w.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=w.indexOf(t);e>=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return t.attrs.type="text/css",l(e,t.attrs),i(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",l(e,t.attrs),i(t,e),e}function l(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function u(t,e){var n,o,r,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var l=h++;n=v||(v=s(e)),o=f.bind(null,n,l,!1),r=f.bind(null,n,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),o=p.bind(null,n,e),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),o=d.bind(null,n),r=function(){a(n)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else r()}}function f(t,e,n,o){var r=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var i=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function d(t,e){var n=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var o=n.css,r=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(o=x(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var m={},b=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),g=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t.call(this,n)),e[n]}}(function(t){return document.querySelector(t)}),v=null,h=0,w=[],x=n(15);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=b()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=r(t,e);return o(n,e),function(t){for(var i=[],a=0;a<n.length;a++){var s=n[a];(c=m[s.id]).refs--,i.push(c)}for(t&&o(r(t,e),e),a=0;a<i.length;a++){var c;if(0===(c=i[a]).refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete m[c.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,n){var o=n(17);"undefined"==typeof window||window.Promise||(window.Promise=o),n(21),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),o=n.length>>>0;if(0===o)return!1;for(var r=0|e,i=Math.max(r>=0?r:o-Math.abs(r),0);i<o;){if(function(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}(n[i],t))return!0;i++}return!1}}),"undefined"!=typeof window&&[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})},function(t,e,n){(function(e){!function(n){function o(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var o;try{o=n(t._value)}catch(t){return void c(e.promise,t)}s(e.promise,o)}else(1===t._state?s:c)(e.promise,t._value)})):t._deferreds.push(e)}function s(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void f(r(n,e),t)}t._state=1,t._value=e,l(t)}catch(e){c(t,e)}}function c(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function u(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function f(t,e){var n=!1;try{t(function(t){n||(n=!0,s(e,t))},function(t){n||(n=!0,c(e,t))})}catch(t){if(n)return;n=!0,c(e,t)}}var d=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(o);return a(this,new u(t,e,n)),n},i.all=function(t){var e=Array.prototype.slice.call(t);return new i(function(t,n){function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(i,t)},n)}e[i]=a,0==--r&&t(e)}catch(t){n(t)}}if(0===e.length)return t([]);for(var r=e.length,i=0;i<e.length;i++)o(i,e[i])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var o=0,r=t.length;o<r;o++)t[o].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){d(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},i._setImmediateFn=function(t){i._immediateFn=t},i._setUnhandledRejectionFn=function(t){i._unhandledRejectionFn=t},void 0!==t&&t.exports?t.exports=i:n.Promise||(n.Promise=i)}(this)}).call(e,n(18).setImmediate)},function(t,e,n){function o(t,e){this._id=t,this._clearFn=e}var r=Function.prototype.apply;e.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(19),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return l[c]=o,s(c),c++}function r(t){delete l[t]}function i(t){var e=t.callback,o=t.args;switch(o.length){case 0:e();break;case 1:e(o[0]);break;case 2:e(o[0],o[1]);break;case 3:e(o[0],o[1],o[2]);break;default:e.apply(n,o)}}function a(t){if(u)setTimeout(a,0,t);else{var e=l[t];if(e){u=!0;try{i(e)}finally{r(t),u=!1}}}}if(!t.setImmediate){var s,c=1,l={},u=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?s=function(t){e.nextTick(function(){a(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():s=function(t){setTimeout(a,0,t)},d.setImmediate=o,d.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(7),n(20))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){b&&p&&(b=!1,p.length?m=p.concat(m):g=-1,m.length&&s())}function s(){if(!b){var t=r(a);b=!0;for(var e=m.length;e;){for(p=m,m=[];++g<e;)p&&p[g].run();g=-1,e=m.length}p=null,b=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,f,d=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var p,m=[],b=!1,g=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];m.push(new c(t,e)),1!==m.length||b||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){n(22).polyfill()},function(t,e,n){function o(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var n=Object(t),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i=Object.keys(Object(r)),a=0,s=i.length;a<s;a++){var c=i[a],l=Object.getOwnPropertyDescriptor(r,c);void 0!==l&&l.enumerable&&(n[c]=r[c])}}return n}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}t.exports={assign:o,polyfill:r}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(24),r=n(6),i=n(5),a=n(36),s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if("undefined"!=typeof window){var n=a.getOpts.apply(void 0,t);return new Promise(function(t,e){i.default.promise={resolve:t,reject:e},o.default(n),setTimeout(function(){r.openModal()})})}};s.close=r.onAction,s.getState=r.getState,s.setActionValue=i.setActionValue,s.stopLoading=r.stopLoading,s.setDefaults=a.setDefaults,e.default=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0).default.MODAL,i=n(4),a=n(34),s=n(35),c=n(1);e.init=function(t){o.getNode(r)||(document.body||c.throwErr("You can only use SweetAlert AFTER the DOM has loaded!"),a.default(),i.default()),i.initModalContent(t),s.default(t)},e.default=e.init},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.MODAL;e.modalMarkup='\n <div class="'+o+'" role="dialog" aria-modal="true"></div>',e.default=e.modalMarkup},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o='<div \n class="'+n(0).default.OVERLAY+'"\n tabIndex="-1">\n </div>';e.default=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.ICON;e.errorIconMarkup=function(){var t=o+"--error",e=t+"__line";return'\n <div class="'+t+'__x-mark">\n <span class="'+e+" "+e+'--left"></span>\n <span class="'+e+" "+e+'--right"></span>\n </div>\n '},e.warningIconMarkup=function(){var t=o+"--warning";return'\n <span class="'+t+'__body">\n <span class="'+t+'__dot"></span>\n </span>\n '},e.successIconMarkup=function(){var t=o+"--success";return'\n <span class="'+t+"__line "+t+'__line--long"></span>\n <span class="'+t+"__line "+t+'__line--tip"></span>\n\n <div class="'+t+'__ring"></div>\n <div class="'+t+'__hide-corners"></div>\n '}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0).default.CONTENT;e.contentMarkup='\n <div class="'+o+'">\n\n </div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=o.default.BUTTON_CONTAINER,i=o.default.BUTTON,a=o.default.BUTTON_LOADER;e.buttonMarkup='\n <div class="'+r+'">\n\n <button\n class="'+i+'"\n ></button>\n\n <div class="'+a+'">\n <div></div>\n <div></div>\n <div></div>\n </div>\n\n </div>\n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(2),i=n(0),a=i.default.ICON,s=i.default.ICON_CUSTOM,c=["error","warning","success","info"],l={error:r.errorIconMarkup(),warning:r.warningIconMarkup(),success:r.successIconMarkup()},u=function(t,e){var n=a+"--"+t;e.classList.add(n);var o=l[t];o&&(e.innerHTML=o)},f=function(t,e){e.classList.add(s);var n=document.createElement("img");n.src=t,e.appendChild(n)},d=function(t){if(t){var e=o.injectElIntoModal(r.iconMarkup);c.includes(t)?u(t,e):f(t,e)}};e.default=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(4),i=function(t){navigator.userAgent.includes("AppleWebKit")&&(t.style.display="none",t.offsetHeight,t.style.display="")};e.initTitle=function(t){if(t){var e=r.injectElIntoModal(o.titleMarkup);e.textContent=t,i(e)}},e.initText=function(t){if(t){var e=document.createDocumentFragment();t.split("\n").forEach(function(t,n,o){e.appendChild(document.createTextNode(t)),n<o.length-1&&e.appendChild(document.createElement("br"))});var n=r.injectElIntoModal(o.textMarkup);n.appendChild(e),i(n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(4),i=n(0),a=i.default.BUTTON,s=i.default.DANGER_BUTTON,c=n(3),l=n(2),u=n(6),f=n(5),d=function(t,e,n){var r=e.text,i=e.value,d=e.className,p=e.closeModal,m=o.stringToNode(l.buttonMarkup),b=m.querySelector("."+a),g=a+"--"+t;b.classList.add(g),d&&(Array.isArray(d)?d:d.split(" ")).filter(function(t){return t.length>0}).forEach(function(t){b.classList.add(t)}),n&&t===c.CONFIRM_KEY&&b.classList.add(s),b.textContent=r;var v={};return v[t]=i,f.setActionValue(v),f.setActionOptionsFor(t,{closeModal:p}),b.addEventListener("click",function(){return u.onAction(t)}),m},p=function(t,e){var n=r.injectElIntoModal(l.footerMarkup);for(var o in t){var i=t[o],a=d(o,i,e);i.visible&&n.appendChild(a)}0===n.children.length&&n.remove()};e.default=p},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(4),i=n(2),a=n(5),s=n(6),c=n(0).default.CONTENT,l=function(t){t.addEventListener("input",function(t){var e=t.target.value;a.setActionValue(e)}),t.addEventListener("keyup",function(t){if("Enter"===t.key)return s.onAction(o.CONFIRM_KEY)}),setTimeout(function(){t.focus(),a.setActionValue("")},0)},u=function(t,e,n){var o=document.createElement(e),r=c+"__"+e;for(var i in o.classList.add(r),n){var a=n[i];o[i]=a}"input"===e&&l(o),t.appendChild(o)},f=function(t){if(t){var e=r.injectElIntoModal(i.contentMarkup),n=t.element,o=t.attributes;"string"==typeof n?u(e,n,o):e.appendChild(n)}};e.default=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=function(){var t=o.stringToNode(r.overlayMarkup);document.body.appendChild(t)};e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(6),i=n(1),a=n(3),s=n(0),c=s.default.MODAL,l=s.default.BUTTON,u=s.default.OVERLAY,f=function(t){t.preventDefault(),g()},d=function(t){t.preventDefault(),v()},p=function(t){if(o.default.isOpen&&"Escape"===t.key)return r.onAction(a.CANCEL_KEY)},m=function(t){if(o.default.isOpen&&"Tab"===t.key)return f(t)},b=function(t){if(o.default.isOpen)return"Tab"===t.key&&t.shiftKey?d(t):void 0},g=function(){var t=i.getNode(l);t&&(t.tabIndex=0,t.focus())},v=function(){var t=i.getNode(c).querySelectorAll("."+l),e=t[t.length-1];e&&e.focus()},h=function(t){t[t.length-1].addEventListener("keydown",m)},w=function(t){t[0].addEventListener("keydown",b)},x=function(){var t=i.getNode(c).querySelectorAll("."+l);t.length&&(h(t),w(t))},y=function(t){if(i.getNode(u)===t.target)return r.onAction(a.CANCEL_KEY)},_=function(t){var e=i.getNode(u);e.removeEventListener("click",y),t&&e.addEventListener("click",y)},k=function(t){o.default.timer&&clearTimeout(o.default.timer),t&&(o.default.timer=window.setTimeout(function(){return r.onAction(a.CANCEL_KEY)},t))},O=function(t){t.closeOnEsc?document.addEventListener("keyup",p):document.removeEventListener("keyup",p),t.dangerMode?g():v(),x(),_(t.closeOnClickOutside),k(t.timer)};e.default=O},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(3),i=n(37),a=n(38),s={title:null,text:null,icon:null,buttons:r.defaultButtonList,content:null,className:null,closeOnClickOutside:!0,closeOnEsc:!0,dangerMode:!1,timer:null},c=Object.assign({},s);e.setDefaults=function(t){c=Object.assign({},s,t)};var l=function(t){var e=t&&t.button,n=t&&t.buttons;return void 0!==e&&void 0!==n&&o.throwErr("Cannot set both 'button' and 'buttons' options!"),void 0!==e?{confirm:e}:n},u=function(t){return o.ordinalSuffixOf(t+1)},f=function(t,e){o.throwErr(u(e)+" argument ('"+t+"') is invalid")},d=function(t,e){var n=t+1,r=e[n];o.isPlainObject(r)||void 0===r||o.throwErr("Expected "+u(n)+" argument ('"+r+"') to be a plain object")},p=function(t,e){var n=t+1,r=e[n];void 0!==r&&o.throwErr("Unexpected "+u(n)+" argument ("+r+")")},m=function(t,e,n,r){var i=e instanceof Element;if("string"==typeof e){if(0===n)return{text:e};if(1===n)return{text:e,title:r[0]};if(2===n)return d(n,r),{icon:e};f(e,n)}else{if(i&&0===n)return d(n,r),{content:e};if(o.isPlainObject(e))return p(n,r),e;f(e,n)}};e.getOpts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n={};t.forEach(function(e,o){var r=m(0,e,o,t);Object.assign(n,r)});var o=l(n);n.buttons=r.getButtonListOpts(o),delete n.button,n.content=i.getContentOpts(n.content);var u=Object.assign({},s,c,n);return Object.keys(u).forEach(function(t){a.DEPRECATED_OPTS[t]&&a.logDeprecation(t)}),u}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r={element:"input",attributes:{placeholder:""}};e.getContentOpts=function(t){var e={};return o.isPlainObject(t)?Object.assign(e,t):t instanceof Element?{element:t}:"input"===t?r:null}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.logDeprecation=function(t){var n=e.DEPRECATED_OPTS[t],o=n.onlyRename,r=n.replacement,i=n.subOption,a=n.link,s='SweetAlert warning: "'+t+'" option has been '+(o?"renamed":"deprecated")+".";r&&(s+=" Please use"+(i?' "'+i+'" in ':" ")+'"'+r+'" instead.');var c="https://sweetalert.js.org";s+=a?" More details: "+c+a:" More details: "+c+"/guides/#upgrading-from-1x",console.warn(s)},e.DEPRECATED_OPTS={type:{replacement:"icon",link:"/docs/#icon"},imageUrl:{replacement:"icon",link:"/docs/#icon"},customClass:{replacement:"className",onlyRename:!0,link:"/docs/#classname"},imageSize:{},showCancelButton:{replacement:"buttons",link:"/docs/#buttons"},showConfirmButton:{replacement:"button",link:"/docs/#button"},confirmButtonText:{replacement:"button",link:"/docs/#button"},confirmButtonColor:{},cancelButtonText:{replacement:"buttons",link:"/docs/#buttons"},closeOnConfirm:{replacement:"button",subOption:"closeModal",link:"/docs/#button"},closeOnCancel:{replacement:"buttons",subOption:"closeModal",link:"/docs/#buttons"},showLoaderOnConfirm:{replacement:"buttons"},animation:{},inputType:{replacement:"content",link:"/docs/#content"},inputValue:{replacement:"content",link:"/docs/#content"},inputPlaceholder:{replacement:"content",link:"/docs/#content"},html:{replacement:"content",link:"/docs/#content"},allowEscapeKey:{replacement:"closeOnEsc",onlyRename:!0,link:"/docs/#closeonesc"},allowClickOutside:{replacement:"closeOnClickOutside",onlyRename:!0,link:"/docs/#closeonclickoutside"}}}])),n.exports),r=e.getDefaultExportFromCjs(o);exports.swal=r;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,11 +2,9 @@ import { CreateRequest, ApiType, ConfigOptions, Options } from "./utils/requests
|
|
|
2
2
|
import { SweetSuccess, SweetError, SweetAlert, SweetWarning, SweetConfirm } from "./utils/toasts/message";
|
|
3
3
|
import { Websocket, EventId, WebSocketRequestMessage, WebSocketResponseMessage } from "./utils/sockets/websocket";
|
|
4
4
|
import { SocketIO } from "./utils/sockets/socket-io";
|
|
5
|
-
import { MQTTClient } from "./utils/sockets/mqtt";
|
|
6
5
|
import { encryptAES, decryptAES } from "./utils/encrypts/aes";
|
|
7
6
|
import { drawCode, codeRandomColor } from "./utils/codes/verification-code";
|
|
8
7
|
import { CanvasWater, addWater } from "./utils/watermarks/canvas-water";
|
|
9
8
|
import { TransformConvertor, isJson, formatSearchFiled, flattenDeepArray, isNumber, UUID, getTreeName, getSelectName, platformListGenerate, formatNumber, replaceUrlOrigin } from "./utils/utils";
|
|
10
|
-
import { exportExcelXlsx } from "./utils/exports/excel-xlsx-util";
|
|
11
9
|
import { setCenter, setCenterZoom, setMapFitView, AddPolygonList, AddPolylineList, AddCluster, AddInfoWindow, AddTrackInfoWindow, AddMarkerList, AddHideMarkerList, AddLabelMarkerList, AddCircleList, RectSelect, AddTrack, AddTrackList, RealtimeTrack, AddCircleMarkerList, AddCarPolyline, AddPolygonFormGeoJson, AddPolylineFormGeoJson, AddMarkerFormGeoJson, AddClusterFormGeoJson } from './utils/maps/amap-utils';
|
|
12
|
-
export { CreateRequest, ApiType, ConfigOptions, Options, SweetSuccess, SweetError, SweetAlert, SweetWarning, SweetConfirm, Websocket, EventId, WebSocketRequestMessage, WebSocketResponseMessage, SocketIO,
|
|
10
|
+
export { CreateRequest, ApiType, ConfigOptions, Options, SweetSuccess, SweetError, SweetAlert, SweetWarning, SweetConfirm, Websocket, EventId, WebSocketRequestMessage, WebSocketResponseMessage, SocketIO, encryptAES, decryptAES, drawCode, codeRandomColor, CanvasWater, addWater, TransformConvertor, isJson, formatSearchFiled, flattenDeepArray, isNumber, UUID, getTreeName, getSelectName, platformListGenerate, formatNumber, replaceUrlOrigin, setCenter, setCenterZoom, setMapFitView, AddPolygonList, AddPolylineList, AddCluster, AddInfoWindow, AddTrackInfoWindow, AddMarkerList, AddHideMarkerList, AddLabelMarkerList, AddCircleList, RectSelect, AddTrack, AddTrackList, RealtimeTrack, AddCircleMarkerList, AddCarPolyline, AddPolygonFormGeoJson, AddPolylineFormGeoJson, AddMarkerFormGeoJson, AddClusterFormGeoJson };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./request.js"),r=require("./message.js"),
|
|
1
|
+
"use strict";var e=require("./request.js"),r=require("./message.js"),o=require("./websocket.js"),t=require("./socket-io.js"),s=require("./aes.js"),d=require("./verification-code.js"),i=require("./canvas-water.js"),a=require("./utils.js"),n=require("./amap-utils.js");require("./commons/vendor-other-Cd2MOa_2.js"),require("./commons/vendor-crypto-js-AYnBdXB5.js"),require("./commons/vendor-axios-qlYN5UV5.js"),require("./commons/vendor-qs-B9_OEdmf.js"),require("./commons/vendor-sweetalert-KX8J3Sv0.js"),require("./commons/vendor-socket.io-client-OWv_jVwG.js"),exports.CreateRequest=e.CreateRequest,exports.SweetAlert=r.SweetAlert,exports.SweetConfirm=r.SweetConfirm,exports.SweetError=r.SweetError,exports.SweetSuccess=r.SweetSuccess,exports.SweetWarning=r.SweetWarning,Object.defineProperty(exports,"EventId",{enumerable:!0,get:function(){return o.EventId}}),exports.Websocket=o.Websocket,exports.SocketIO=t.SocketIO,exports.decryptAES=s.decryptAES,exports.encryptAES=s.encryptAES,exports.codeRandomColor=d.codeRandomColor,exports.drawCode=d.drawCode,exports.CanvasWater=i.CanvasWater,exports.addWater=i.addWater,exports.TransformConvertor=a.TransformConvertor,exports.UUID=a.UUID,exports.flattenDeepArray=a.flattenDeepArray,exports.formatNumber=a.formatNumber,exports.formatSearchFiled=a.formatSearchFiled,exports.getSelectName=a.getSelectName,exports.getTreeName=a.getTreeName,exports.isJson=a.isJson,exports.isNumber=a.isNumber,exports.platformListGenerate=a.platformListGenerate,exports.replaceUrlOrigin=a.replaceUrlOrigin,exports.AddCarPolyline=n.AddCarPolyline,exports.AddCircleList=n.AddCircleList,exports.AddCircleMarkerList=n.AddCircleMarkerList,exports.AddCluster=n.AddCluster,exports.AddClusterFormGeoJson=n.AddClusterFormGeoJson,exports.AddHideMarkerList=n.AddHideMarkerList,exports.AddInfoWindow=n.AddInfoWindow,exports.AddLabelMarkerList=n.AddLabelMarkerList,exports.AddMarkerFormGeoJson=n.AddMarkerFormGeoJson,exports.AddMarkerList=n.AddMarkerList,exports.AddPolygonFormGeoJson=n.AddPolygonFormGeoJson,exports.AddPolygonList=n.AddPolygonList,exports.AddPolylineFormGeoJson=n.AddPolylineFormGeoJson,exports.AddPolylineList=n.AddPolylineList,exports.AddTrack=n.AddTrack,exports.AddTrackInfoWindow=n.AddTrackInfoWindow,exports.AddTrackList=n.AddTrackList,exports.RealtimeTrack=n.RealtimeTrack,exports.RectSelect=n.RectSelect,exports.setCenter=n.setCenter,exports.setCenterZoom=n.setCenterZoom,exports.setMapFitView=n.setMapFitView;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CreateRequest}from"./request.mjs";export{SweetAlert,SweetConfirm,SweetError,SweetSuccess,SweetWarning}from"./message.mjs";export{EventId,Websocket}from"./websocket.mjs";export{SocketIO}from"./socket-io.mjs";export{
|
|
1
|
+
export{CreateRequest}from"./request.mjs";export{SweetAlert,SweetConfirm,SweetError,SweetSuccess,SweetWarning}from"./message.mjs";export{EventId,Websocket}from"./websocket.mjs";export{SocketIO}from"./socket-io.mjs";export{decryptAES,encryptAES}from"./aes.mjs";export{codeRandomColor,drawCode}from"./verification-code.mjs";export{CanvasWater,addWater}from"./canvas-water.mjs";export{TransformConvertor,UUID,flattenDeepArray,formatNumber,formatSearchFiled,getSelectName,getTreeName,isJson,isNumber,platformListGenerate,replaceUrlOrigin}from"./utils.mjs";export{AddCarPolyline,AddCircleList,AddCircleMarkerList,AddCluster,AddClusterFormGeoJson,AddHideMarkerList,AddInfoWindow,AddLabelMarkerList,AddMarkerFormGeoJson,AddMarkerList,AddPolygonFormGeoJson,AddPolygonList,AddPolylineFormGeoJson,AddPolylineList,AddTrack,AddTrackInfoWindow,AddTrackList,RealtimeTrack,RectSelect,setCenter,setCenterZoom,setMapFitView}from"./amap-utils.mjs";import"./commons/vendor-other-odeBaM7w.js";import"./commons/vendor-crypto-js-Dhi5niDn.js";import"./commons/vendor-axios-eBPqXPbi.js";import"./commons/vendor-qs-L1Bpz2hz.js";import"./commons/vendor-sweetalert-4FJTrmvX.js";import"./commons/vendor-socket.io-client-DfIeTHYA.js";
|
package/dist/message.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./commons/
|
|
1
|
+
"use strict";var e=require("./commons/vendor-sweetalert-KX8J3Sv0.js");require("./commons/vendor-crypto-js-AYnBdXB5.js");exports.SweetAlert=function(t){return void 0===t&&(t=""),e.swal({title:"",text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetConfirm=function(t,o,s,i){return void 0===t&&(t=""),void 0===o&&(o=""),void 0===s&&(s="取消"),void 0===i&&(i="确定"),e.swal({title:o,text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:s,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:i,value:!0,visible:!0,className:"",closeModal:!0}}})},exports.SweetError=function(t,o){return void 0===t&&(t=""),void 0===o&&(o=2e3),e.swal({title:"错误",text:t,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:o})},exports.SweetSuccess=function(t,o){return void 0===t&&(t=""),void 0===o&&(o=2e3),e.swal({title:t,text:"".concat(o/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:o})},exports.SweetWarning=function(t,o,s){return void 0===t&&(t=""),void 0===o&&(o="提示"),void 0===s&&(s=2e3),e.swal({title:o,text:t,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:s})};
|
package/dist/message.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{s as e}from"./commons/vendor-sweetalert-4FJTrmvX.js";import"./commons/vendor-crypto-js-Dhi5niDn.js";var t=function(t,o){return void 0===t&&(t=""),void 0===o&&(o=2e3),e({title:t,text:"".concat(o/1e3,"秒后自动关闭"),icon:"success",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:o})},o=function(t,o){return void 0===t&&(t=""),void 0===o&&(o=2e3),e({title:"错误",text:t,icon:"error",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:o})},i=function(t,o,i){return void 0===t&&(t=""),void 0===o&&(o="提示"),void 0===i&&(i=2e3),e({title:o,text:t,icon:"warning",buttons:[!1],closeOnEsc:!1,closeOnClickOutside:!1,timer:i})},n=function(t,o,i,n){return void 0===t&&(t=""),void 0===o&&(o=""),void 0===i&&(i="取消"),void 0===n&&(n="确定"),e({title:o,text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{cancel:{text:i,value:!1,visible:!0,className:"",closeModal:!0},confirm:{text:n,value:!0,visible:!0,className:"",closeModal:!0}}})},s=function(t){return void 0===t&&(t=""),e({title:"",text:t,icon:"warning",closeOnClickOutside:!1,closeOnEsc:!1,buttons:{confirm:{text:"确定",value:!0,visible:!0,className:"",closeModal:!0}}})};export{s as SweetAlert,n as SweetConfirm,o as SweetError,t as SweetSuccess,i as SweetWarning};
|
package/dist/request.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./commons/
|
|
1
|
+
"use strict";var e=require("./commons/vendor-other-Cd2MOa_2.js"),t=require("./commons/vendor-axios-qlYN5UV5.js"),r=require("./commons/vendor-qs-B9_OEdmf.js"),n=require("./message.js");require("./commons/vendor-crypto-js-AYnBdXB5.js"),require("./commons/vendor-sweetalert-KX8J3Sv0.js");var o=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),s=function(){function s(r,n){var s;this.config=e.__assign(e.__assign({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),n||{}),this.postType=this.config.type,this.instance=t.axios.create({baseURL:r,headers:{"Content-Type":null!==(s=o.get(this.config.type))&&void 0!==s?s:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return s.prototype.setupInterceptors=function(){var e=this;this.instance.interceptors.request.use(function(r){var n,o,s=null===(o=(n=e.config).getAuthorization)||void 0===o?void 0:o.call(n);return s&&r.headers&&r.headers.set("Authorization",s),r.cancelToken=new t.axios.CancelToken(function(t){var n,o;null===(o=(n=e.config).cancelCallback)||void 0===o||o.call(n,{cancelToken:{name:r.url,cancel:t}})}),r},this.handleError),this.instance.interceptors.response.use(function(t){var r;return(null===(r=e.config.ERROR_CODES)||void 0===r?void 0:r.includes(String(t.data.code)))?(n.SweetError(t.data.msg).then(function(){var t,r;null===(r=(t=e.config).errorCallback)||void 0===r||r.call(t)}),Promise.reject(t.data.msg)):t.data},this.handleError)},s.prototype.handleError=function(e){return Promise.reject(e.message)},s.prototype.get=function(e,t){return this.instance.get(e,{params:t})},s.prototype.post=function(e,t){var n="form"===this.postType?r.qs.stringify(t):t;return this.instance.post(e,n)},s.prototype.put=function(e,t){var n="form"===this.postType?r.qs.stringify(t):t;return this.instance.put(e,n)},s.prototype.delete=function(e,t){return this.instance.delete(e,{params:{id:t}})},s}();exports.CreateRequest=s;
|
package/dist/request.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./commons/
|
|
1
|
+
import{_ as t}from"./commons/vendor-other-odeBaM7w.js";import{a as e}from"./commons/vendor-axios-eBPqXPbi.js";import{q as o}from"./commons/vendor-qs-L1Bpz2hz.js";import{SweetError as n}from"./message.mjs";import"./commons/vendor-crypto-js-Dhi5niDn.js";import"./commons/vendor-sweetalert-4FJTrmvX.js";var r=new Map([["form","application/x-www-form-urlencoded;charset=UTF-8"],["upload","multipart/form-data"]]),i=function(){function i(o,n){var i;this.config=t(t({},{type:"",timeout:0,responseType:"json",withCredentials:!1,proxy:!1,ERROR_CODES:["1005","1006","1008","1009"]}),n||{}),this.postType=this.config.type,this.instance=e.create({baseURL:o,headers:{"Content-Type":null!==(i=r.get(this.config.type))&&void 0!==i?i:"application/json;charset=UTF-8"},timeout:this.config.timeout,responseType:this.config.responseType,withCredentials:this.config.withCredentials,proxy:this.config.proxy}),this.setupInterceptors()}return i.prototype.setupInterceptors=function(){var t=this;this.instance.interceptors.request.use(function(o){var n,r,i=null===(r=(n=t.config).getAuthorization)||void 0===r?void 0:r.call(n);return i&&o.headers&&o.headers.set("Authorization",i),o.cancelToken=new e.CancelToken(function(e){var n,r;null===(r=(n=t.config).cancelCallback)||void 0===r||r.call(n,{cancelToken:{name:o.url,cancel:e}})}),o},this.handleError),this.instance.interceptors.response.use(function(e){var o;return(null===(o=t.config.ERROR_CODES)||void 0===o?void 0:o.includes(String(e.data.code)))?(n(e.data.msg).then(function(){var e,o;null===(o=(e=t.config).errorCallback)||void 0===o||o.call(e)}),Promise.reject(e.data.msg)):e.data},this.handleError)},i.prototype.handleError=function(t){return Promise.reject(t.message)},i.prototype.get=function(t,e){return this.instance.get(t,{params:e})},i.prototype.post=function(t,e){var n="form"===this.postType?o.stringify(e):e;return this.instance.post(t,n)},i.prototype.put=function(t,e){var n="form"===this.postType?o.stringify(e):e;return this.instance.put(t,n)},i.prototype.delete=function(t,e){return this.instance.delete(t,{params:{id:e}})},i}();export{i as CreateRequest};
|
package/dist/socket-io.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./commons/
|
|
1
|
+
"use strict";var e=require("./commons/vendor-other-Cd2MOa_2.js"),t=require("./commons/vendor-socket.io-client-OWv_jVwG.js"),o=require("./utils.js");require("./commons/vendor-crypto-js-AYnBdXB5.js");var s=function(){function s(e,t){void 0===t&&(t={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,t),this.createSocketIO(e)}return s.prototype.createSocketIO=function(o){var s,n,i,c,r,l,a,u=this;try{null===(i=this.socket)||void 0===i||i.disconnect(),this.socket=t.lookup(o,this.options),null===(c=this.socket)||void 0===c||c.on("connect",function(){var t,o,s;u.isConnected=!0;try{for(var n=e.__values(u.messageQueueList),i=n.next();!i.done;i=n.next()){var c=e.__read(i.value,2),r=c[0],l=c[1];null===(s=u.socket)||void 0===s||s.emit(l.event,l.data),u.messageQueueList.delete(r)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}console.log("socket.io连接成功")}),null===(r=this.socket)||void 0===r||r.on("disconnect",function(){u.isConnected=!1,console.log("socket.io连接断开")}),null===(l=this.socket)||void 0===l||l.on("connect_error",function(e){u.isConnected=!1,console.log("socket.io连接错误",e)});var d=function(e,t){null===(a=h.socket)||void 0===a||a.on(e,function(e){null==t||t(e)})},h=this;try{for(var v=e.__values(this.registerMessageHandlerMap),k=v.next();!k.done;k=v.next()){var p=e.__read(k.value,2);d(p[0],p[1])}}catch(e){s={error:e}}finally{try{k&&!k.done&&(n=v.return)&&n.call(v)}finally{if(s)throw s.error}}}catch(e){console.log("socket.io连接异常",e.message)}},s.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},s.prototype.send=function(e,t){var s;this.isConnected?null===(s=this.socket)||void 0===s||s.emit(e,t):this.messageQueueList.set("".concat(e,"-").concat(o.UUID(8,16)),{event:e,data:t})},s.prototype.registerMessageHandler=function(e,t){this.registerMessageHandlerMap.set(e,t)},s}();exports.SocketIO=s;
|
package/dist/socket-io.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b as t,d as e}from"./commons/vendor-other-odeBaM7w.js";import{l as o}from"./commons/vendor-socket.io-client-DfIeTHYA.js";import{UUID as n}from"./utils.mjs";import"./commons/vendor-crypto-js-Dhi5niDn.js";var s=function(){function s(t,e){void 0===e&&(e={}),this.socket=null,this.isConnected=!1,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.options={reconnectionAttempts:5},this.options=Object.assign(this.options,e),this.createSocketIO(t)}return s.prototype.createSocketIO=function(n){var s,i,c,r,l,a,u,d=this;try{null===(c=this.socket)||void 0===c||c.disconnect(),this.socket=o(n,this.options),null===(r=this.socket)||void 0===r||r.on("connect",function(){var o,n,s;d.isConnected=!0;try{for(var i=t(d.messageQueueList),c=i.next();!c.done;c=i.next()){var r=e(c.value,2),l=r[0],a=r[1];null===(s=d.socket)||void 0===s||s.emit(a.event,a.data),d.messageQueueList.delete(l)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}console.log("socket.io连接成功")}),null===(l=this.socket)||void 0===l||l.on("disconnect",function(){d.isConnected=!1,console.log("socket.io连接断开")}),null===(a=this.socket)||void 0===a||a.on("connect_error",function(t){d.isConnected=!1,console.log("socket.io连接错误",t)});var h=function(t,e){null===(u=p.socket)||void 0===u||u.on(t,function(t){null==e||e(t)})},p=this;try{for(var v=t(this.registerMessageHandlerMap),f=v.next();!f.done;f=v.next()){var m=e(f.value,2);h(m[0],m[1])}}catch(t){s={error:t}}finally{try{f&&!f.done&&(i=v.return)&&i.call(v)}finally{if(s)throw s.error}}}catch(t){console.log("socket.io连接异常",t.message)}},s.prototype.disconnect=function(){this.socket&&(this.socket.disconnect(),this.socket=null,this.isConnected=!1,console.log("手动断开socket.io连接"))},s.prototype.send=function(t,e){var o;this.isConnected?null===(o=this.socket)||void 0===o||o.emit(t,e):this.messageQueueList.set("".concat(t,"-").concat(n(8,16)),{event:t,data:e})},s.prototype.registerMessageHandler=function(t,e){this.registerMessageHandlerMap.set(t,e)},s}();export{s as SocketIO};
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("./commons/
|
|
1
|
+
"use strict";var t=require("./commons/vendor-other-Cd2MOa_2.js");require("./commons/vendor-crypto-js-AYnBdXB5.js");var r=function(n){return n.reduce(function(n,s){return s.children&&s.children.length?t.__spreadArray(t.__spreadArray(t.__spreadArray([],t.__read(n),!1),t.__read(r(s.children)),!1),[s],!1):t.__spreadArray(t.__spreadArray([],t.__read(n),!1),[s],!1)},[])},n=function(){function t(){this.M_PI=3.141592653589793,this.A=6378245,this.EE=.006693421622965943,this.X_PI=3e3*this.M_PI/180}return t.prototype.outOfChine=function(t){return t.lng<72.004||t.lng>137.8347||(t.lat<.8293||t.lat>55.8271)},t.prototype.WGS2GCJLat=function(t,r){var n=2*t-100+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,n+=2*(20*Math.sin(r*this.M_PI)+40*Math.sin(r/3*this.M_PI))/3,n+=2*(160*Math.sin(r/12*this.M_PI)+320*Math.sin(r*this.M_PI/30))/3},t.prototype.WGS2GCJLng=function(t,r){var n=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,n+=2*(20*Math.sin(t*this.M_PI)+40*Math.sin(t/3*this.M_PI))/3,n+=2*(150*Math.sin(t/12*this.M_PI)+300*Math.sin(t/30*this.M_PI))/3},t.prototype.transformLat=function(t,r){var n=2*t-100+3*r+.2*r*r+.1*t*r+.2*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,n+=2*(20*Math.sin(r*this.M_PI)+40*Math.sin(r/3*this.M_PI))/3,n+=2*(160*Math.sin(r/12*this.M_PI)+320*Math.sin(r*this.M_PI/30))/3},t.prototype.transformLon=function(t,r){var n=300+t+2*r+.1*t*t+.1*t*r+.1*Math.sqrt(Math.abs(t));return n+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,n+=2*(20*Math.sin(t*this.M_PI)+40*Math.sin(t/3*this.M_PI))/3,n+=2*(150*Math.sin(t/12*this.M_PI)+300*Math.sin(t/30*this.M_PI))/3},t.prototype.delta=function(t,r){var n=6378245,s=.006693421622965943,e=this.transformLat(r-105,t-35),i=this.transformLon(r-105,t-35),a=t/180*this.M_PI,h=Math.sin(a);h=1-s*h*h;var o=Math.sqrt(h);return{lat:e=180*e/(n*(1-s)/(h*o)*this.M_PI),lon:i=180*i/(n/o*Math.cos(a)*this.M_PI)}},t.prototype.WGS2GCJ=function(t){if(!this.outOfChine(t)){var r={},n=this.WGS2GCJLat(t.lng-105,t.lat-35),s=this.WGS2GCJLng(t.lng-105,t.lat-35),e=t.lat/180*this.M_PI,i=Math.sin(e);i=1-this.EE*i*i;var a=Math.sqrt(i);return n=180*n/(this.A*(1-this.EE)/(i*a)*this.M_PI),s=180*s/(this.A/a*Math.cos(e)*this.M_PI),r.lat=Number(t.lat)+Number(n),r.lng=Number(t.lng)+Number(s),r}},t.prototype.GCJ2BD09=function(t){var r={},n=t.lng,s=t.lat,e=Math.sqrt(n*n+s*s)+2e-5*Math.sin(s*this.X_PI),i=Math.atan2(s,n)+3e-6*Math.cos(n*this.X_PI);return r.lng=e*Math.cos(i)+.0065,r.lat=e*Math.sin(i)+.006,r},t.prototype.WGS2BD09=function(t){var r=this.WGS2GCJ(t);return this.GCJ2BD09(r)},t.prototype.transformGCJ2WGS=function(t,r){var n=this.delta(t,r);return{lat:t-n.lat,lon:r-n.lon}},t}();exports.TransformConvertor=n,exports.UUID=function(t,r){var n,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),e=[];if(r=r||s.length,t)for(n=0;n<t;n++)e[n]=s[0|Math.random()*r];else{var i=void 0;for(e[8]=e[13]=e[18]=e[23]="-",e[14]="4",n=0;n<36;n++)e[n]||(i=0|16*Math.random(),e[n]=s[19===n?3&i|8:i])}return e.join("")},exports.flattenDeepArray=r,exports.formatNumber=function(t){return t<10?"0".concat(t):t},exports.formatSearchFiled=function(t){if("object"!=typeof t||null===t)return{};var r={};for(var n in t)if(Reflect.has(t,n)){var s=t[n];(s&&"boolean"!=typeof s||0===s&&"number"==typeof s)&&(r[n]=s)}return r},exports.getSelectName=function(t,r,n,s){void 0===s&&(s="string");var e=t.filter(function(t){return r.includes(t[n.key])}).map(function(t){return t[n.name]});return"string"===s?e.join():e},exports.getTreeName=function(t,n,s,e){void 0===e&&(e="string");var i=r(t).filter(function(t){return n.includes(t[s.key])}).map(function(t){return t[s.name]});return"string"===e?i.join():i},exports.isJson=function(t){if("string"!=typeof t)return!1;if(""===t.trim())return!1;try{return"object"==typeof JSON.parse(t)}catch(t){return!1}},exports.isNumber=function(t){return"number"==typeof t},exports.platformListGenerate=function(t,r){var n=[];if(Math.abs(t.length-2*(r-1))%(r-2)>0){var s=t.splice(0,r-1),e=Math.ceil(t.length/(r-2));n.push(s);for(var i=0;i<e;i++)n.push(t.splice(0,r-2))}else if(t.length>2*(r-1)){s=t.splice(0,r-1);var a=t.splice(t.length-(r-1),r-1);e=Math.ceil(t.length/(r-2));n.push(s);for(i=0;i<e;i++)n.push(t.splice(0,r-2)),i>=e-1&&n.push(a)}else if(t.length===r){s=t.splice(0,r);n.push(s)}else{s=t.splice(0,r-1),a=t.splice(t.length-(r-1),r-1);n.push(s),n.push(a)}return n},exports.replaceUrlOrigin=function(t,r){var n=new URL(t);return"".concat(r).concat(n.pathname).concat(n.search)};
|
package/dist/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{e as t,d as n}from"./commons/vendor-other-odeBaM7w.js";import"./commons/vendor-crypto-js-Dhi5niDn.js";var i=function(t){if("string"!=typeof t)return!1;if(""===t.trim())return!1;try{return"object"==typeof JSON.parse(t)}catch(t){return!1}},r=function(t){if("object"!=typeof t||null===t)return{};var n={};for(var i in t)if(Reflect.has(t,i)){var r=t[i];(r&&"boolean"!=typeof r||0===r&&"number"==typeof r)&&(n[i]=r)}return n},s=function(i){return i.reduce(function(i,r){return r.children&&r.children.length?t(t(t([],n(i),!1),n(s(r.children)),!1),[r],!1):t(t([],n(i),!1),[r],!1)},[])},h=function(t){return"number"==typeof t},a=function(){function t(){this.M_PI=3.141592653589793,this.A=6378245,this.EE=.006693421622965943,this.X_PI=3e3*this.M_PI/180}return t.prototype.outOfChine=function(t){return t.lng<72.004||t.lng>137.8347||(t.lat<.8293||t.lat>55.8271)},t.prototype.WGS2GCJLat=function(t,n){var i=2*t-100+3*n+.2*n*n+.1*t*n+.2*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,i+=2*(20*Math.sin(n*this.M_PI)+40*Math.sin(n/3*this.M_PI))/3,i+=2*(160*Math.sin(n/12*this.M_PI)+320*Math.sin(n*this.M_PI/30))/3},t.prototype.WGS2GCJLng=function(t,n){var i=300+t+2*n+.1*t*t+.1*t*n+.1*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,i+=2*(20*Math.sin(t*this.M_PI)+40*Math.sin(t/3*this.M_PI))/3,i+=2*(150*Math.sin(t/12*this.M_PI)+300*Math.sin(t/30*this.M_PI))/3},t.prototype.transformLat=function(t,n){var i=2*t-100+3*n+.2*n*n+.1*t*n+.2*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,i+=2*(20*Math.sin(n*this.M_PI)+40*Math.sin(n/3*this.M_PI))/3,i+=2*(160*Math.sin(n/12*this.M_PI)+320*Math.sin(n*this.M_PI/30))/3},t.prototype.transformLon=function(t,n){var i=300+t+2*n+.1*t*t+.1*t*n+.1*Math.sqrt(Math.abs(t));return i+=2*(20*Math.sin(6*t*this.M_PI)+20*Math.sin(2*t*this.M_PI))/3,i+=2*(20*Math.sin(t*this.M_PI)+40*Math.sin(t/3*this.M_PI))/3,i+=2*(150*Math.sin(t/12*this.M_PI)+300*Math.sin(t/30*this.M_PI))/3},t.prototype.delta=function(t,n){var i=6378245,r=.006693421622965943,s=this.transformLat(n-105,t-35),h=this.transformLon(n-105,t-35),a=t/180*this.M_PI,e=Math.sin(a);e=1-r*e*e;var o=Math.sqrt(e);return{lat:s=180*s/(i*(1-r)/(e*o)*this.M_PI),lon:h=180*h/(i/o*Math.cos(a)*this.M_PI)}},t.prototype.WGS2GCJ=function(t){if(!this.outOfChine(t)){var n={},i=this.WGS2GCJLat(t.lng-105,t.lat-35),r=this.WGS2GCJLng(t.lng-105,t.lat-35),s=t.lat/180*this.M_PI,h=Math.sin(s);h=1-this.EE*h*h;var a=Math.sqrt(h);return i=180*i/(this.A*(1-this.EE)/(h*a)*this.M_PI),r=180*r/(this.A/a*Math.cos(s)*this.M_PI),n.lat=Number(t.lat)+Number(i),n.lng=Number(t.lng)+Number(r),n}},t.prototype.GCJ2BD09=function(t){var n={},i=t.lng,r=t.lat,s=Math.sqrt(i*i+r*r)+2e-5*Math.sin(r*this.X_PI),h=Math.atan2(r,i)+3e-6*Math.cos(i*this.X_PI);return n.lng=s*Math.cos(h)+.0065,n.lat=s*Math.sin(h)+.006,n},t.prototype.WGS2BD09=function(t){var n=this.WGS2GCJ(t);return this.GCJ2BD09(n)},t.prototype.transformGCJ2WGS=function(t,n){var i=this.delta(t,n);return{lat:t-i.lat,lon:n-i.lon}},t}(),e=function(t,n){var i,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),s=[];if(n=n||r.length,t)for(i=0;i<t;i++)s[i]=r[0|Math.random()*n];else{var h=void 0;for(s[8]=s[13]=s[18]=s[23]="-",s[14]="4",i=0;i<36;i++)s[i]||(h=0|16*Math.random(),s[i]=r[19===i?3&h|8:h])}return s.join("")},o=function(t,n,i,r){void 0===r&&(r="string");var h=s(t).filter(function(t){return n.includes(t[i.key])}).map(function(t){return t[i.name]});return"string"===r?h.join():h},M=function(t,n,i,r){void 0===r&&(r="string");var s=t.filter(function(t){return n.includes(t[i.key])}).map(function(t){return t[i.name]});return"string"===r?s.join():s},u=function(t,n){var i=[];if(Math.abs(t.length-2*(n-1))%(n-2)>0){var r=t.splice(0,n-1),s=Math.ceil(t.length/(n-2));i.push(r);for(var h=0;h<s;h++)i.push(t.splice(0,n-2))}else if(t.length>2*(n-1)){r=t.splice(0,n-1);var a=t.splice(t.length-(n-1),n-1);s=Math.ceil(t.length/(n-2));i.push(r);for(h=0;h<s;h++)i.push(t.splice(0,n-2)),h>=s-1&&i.push(a)}else if(t.length===n){r=t.splice(0,n);i.push(r)}else{r=t.splice(0,n-1),a=t.splice(t.length-(n-1),n-1);i.push(r),i.push(a)}return i},c=function(t,n){var i=new URL(t);return"".concat(n).concat(i.pathname).concat(i.search)},l=function(t){return t<10?"0".concat(t):t};export{a as TransformConvertor,e as UUID,s as flattenDeepArray,l as formatNumber,r as formatSearchFiled,M as getSelectName,o as getTreeName,i as isJson,h as isNumber,u as platformListGenerate,c as replaceUrlOrigin};
|
package/dist/websocket.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=require("./commons/
|
|
1
|
+
"use strict";var e,t=require("./commons/vendor-other-Cd2MOa_2.js"),o=require("./utils.js");require("./commons/vendor-crypto-js-AYnBdXB5.js"),exports.EventId=void 0,(e=exports.EventId||(exports.EventId={}))[e.HEARTBEAT=1e3]="HEARTBEAT";var s=function(){function e(e){var t=this;this.websocket=null,this.connectState=!1,this.reconnectCount=0,this.maxReconnectCount=5,this.reconnectTimestamp=1e4,this.heartBeatTimer=null,this.heartBeatTimeout=4e3,this.heartBeatData={actionId:exports.EventId.HEARTBEAT},this.registerTipMap=new Map,this.registerMessageHandlerMap=new Map,this.messageQueueList=new Map,this.startHeartBeat=function(){t.send(t.heartBeatData),t.heartBeatTimer=setTimeout(t.startHeartBeat,t.heartBeatTimeout)},this.url=e,this.addStatus(),this.initWebsocket()}return e.prototype.initWebsocket=function(){var e,t=this;0===this.reconnectCount&&console.log("%cWebSocket","background-color: #889CBB;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","初始化连接..."),(null===(e=this.websocket)||void 0===e?void 0:e.readyState)!==WebSocket.OPEN&&(this.websocket=new WebSocket(this.url),this.websocket.onopen=function(){t.websocketOpen()},this.websocket.onmessage=function(e){t.websocketOnMessage(e)},this.websocket.onerror=function(){t.websocketOnError()},this.websocket.onclose=function(){t.websocketOnClose()})},e.prototype.websocketOpen=function(){var e,o,s;this.connectState=!0,this.reconnectCount=0,this.clearHeartBeat(),this.startHeartBeat(),this.allRegisterWebsocket();try{for(var r=t.__values(this.messageQueueList),n=r.next();!n.done;n=r.next()){var a=t.__read(n.value,2),i=a[0],c=a[1];null===(s=this.websocket)||void 0===s||s.send(JSON.stringify(c)),this.messageQueueList.delete(i)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(e)throw e.error}}this.changeStatusColor("#5FB878"),console.log("%cWebSocket","background-color: #5FB878;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","连接成功,等待服务端数据推送[onopen]...")},e.prototype.websocketOnError=function(){0===this.reconnectCount&&(this.changeStatusColor("#FF5722"),console.log("%cWebSocket","background-color: #FF5722;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","连接异常[onerror]...")),this.clearHeartBeat()},e.prototype.websocketOnClose=function(){0===this.reconnectCount&&(this.changeStatusColor("#FF5722"),console.log("%cWebSocket","background-color: #FF5722;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","连接断开[onclose]...")),this.connectState&&this.disconnectAndReconnect()},e.prototype.websocketOnMessage=function(e){var t=e.data;o.isJson(e.data)&&(t=JSON.parse(e.data)),-1!==t.msgType&&(this.allRegisterMessageHandler(t),window.dispatchEvent(new CustomEvent("websocketOnMessage",{detail:{data:t}})))},e.prototype.disconnectAndReconnect=function(){var e=this;this.reconnectCount<this.maxReconnectCount?(++this.reconnectCount,this.changeStatusColor("#FFB800"),console.log("%cWebSocket","background-color: #FFB800;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","尝试重连...".concat(this.reconnectCount,"/").concat(this.maxReconnectCount)),setTimeout(function(){e.initWebsocket()},this.reconnectTimestamp)):(this.clearHeartBeat(),this.connectState=!1,this.reconnectCount=0,this.changeStatusColor("#FF5722"),console.log("%cWebSocket","background-color: #FF5722;color: #FFFFFF;padding: 2px 5px;border-radius: 3px;","最大重连失败, 终止重连..."))},e.prototype.resetHeartBeat=function(){this.clearHeartBeat(),this.startHeartBeat()},e.prototype.clearHeartBeat=function(){this.heartBeatTimer&&clearTimeout(this.heartBeatTimer),this.heartBeatTimer=null},e.prototype.allRegisterWebsocket=function(){var e,o;try{for(var s=t.__values(this.registerTipMap.entries()),r=s.next();!r.done;r=s.next()){var n=t.__read(r.value,1)[0];this.send(this.registerTipMap.get(n))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}},e.prototype.allRegisterMessageHandler=function(e){var o,s;try{for(var r=t.__values(this.registerMessageHandlerMap.entries()),n=r.next();!n.done;n=r.next()){var a=t.__read(n.value,1)[0];this.registerMessageHandlerMap.get(a)(e)}}catch(e){o={error:e}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(o)throw o.error}}},e.prototype.registerWebsocket=function(e){this.registerTipMap.set(String(e.eventId),e),this.send(e)},e.prototype.unregisterWebsocket=function(e){this.registerTipMap.delete(String(e.eventId)),this.send(e)},e.prototype.send=function(e){var t,s;(null===(t=this.websocket)||void 0===t?void 0:t.readyState)===WebSocket.OPEN&&this.connectState?null===(s=this.websocket)||void 0===s||s.send(JSON.stringify(e)):this.messageQueueList.set("".concat(e.eventId,"-").concat(o.UUID(8,16)),e)},e.prototype.message=function(e,t){this.registerMessageHandlerMap.set(e,t)},e.prototype.close=function(){this.websocket&&(this.connectState=!1,this.websocket.close(),this.websocket=null,this.changeStatusColor("#999999")),this.clearHeartBeat()},e.prototype.addStatus=function(){this.removeStatus();var e=document.createElement("div");e.id="websocketStatus",e.style.width="10px",e.style.height="10px",e.style.backgroundColor="#999999",e.style.position="fixed",e.style.right="0",e.style.top="0",e.style.zIndex="9999",document.body.appendChild(e)},e.prototype.removeStatus=function(){var e=document.getElementById("websocketStatus");e&&document.body.removeChild(e)},e.prototype.changeStatusColor=function(e){var t=document.getElementById("websocketStatus");t&&(t.style.backgroundColor=e)},e}();exports.Websocket=s;
|